@@ -77,8 +77,9 @@ export async function proboApiRequestAllItems(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (connection?.pageInfo) {
|
if (connection?.pageInfo) {
|
||||||
hasNextPage = connection.pageInfo.hasNextPage;
|
const pageInfo = connection.pageInfo as IDataObject;
|
||||||
cursor = connection.pageInfo.endCursor;
|
hasNextPage = pageInfo.hasNextPage as boolean;
|
||||||
|
cursor = pageInfo.endCursor as string | null;
|
||||||
} else {
|
} else {
|
||||||
hasNextPage = false;
|
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';
|
import { proboApiRequestAllItems } from '../../GenericFunctions';
|
||||||
|
|
||||||
export const description: INodeProperties[] = [
|
export const description: INodeProperties[] = [
|
||||||
@@ -140,7 +140,11 @@ export async function execute(
|
|||||||
this,
|
this,
|
||||||
query,
|
query,
|
||||||
{ organizationId },
|
{ 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,
|
returnAll,
|
||||||
limit,
|
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';
|
import { proboApiRequestAllItems } from '../../GenericFunctions';
|
||||||
|
|
||||||
export const description: INodeProperties[] = [
|
export const description: INodeProperties[] = [
|
||||||
@@ -87,7 +87,11 @@ export async function execute(
|
|||||||
this,
|
this,
|
||||||
query,
|
query,
|
||||||
{ frameworkId },
|
{ 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,
|
returnAll,
|
||||||
limit,
|
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';
|
import { proboApiRequestAllItems } from '../../GenericFunctions';
|
||||||
|
|
||||||
export const description: INodeProperties[] = [
|
export const description: INodeProperties[] = [
|
||||||
@@ -138,7 +138,11 @@ export async function execute(
|
|||||||
this,
|
this,
|
||||||
query,
|
query,
|
||||||
{ organizationId },
|
{ 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,
|
returnAll,
|
||||||
limit,
|
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';
|
import { proboApiRequestAllItems } from '../../GenericFunctions';
|
||||||
|
|
||||||
export const description: INodeProperties[] = [
|
export const description: INodeProperties[] = [
|
||||||
@@ -84,7 +84,11 @@ export async function execute(
|
|||||||
this,
|
this,
|
||||||
query,
|
query,
|
||||||
{ organizationId },
|
{ 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,
|
returnAll,
|
||||||
limit,
|
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';
|
import { proboApiRequestAllItems } from '../../GenericFunctions';
|
||||||
|
|
||||||
export const description: INodeProperties[] = [
|
export const description: INodeProperties[] = [
|
||||||
@@ -86,7 +86,11 @@ export async function execute(
|
|||||||
this,
|
this,
|
||||||
query,
|
query,
|
||||||
{ organizationId },
|
{ 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,
|
returnAll,
|
||||||
limit,
|
limit,
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user