mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
13 lines
380 B
TypeScript
13 lines
380 B
TypeScript
import type { IVersion } from '@/Interface';
|
|
import { INSTANCE_ID_HEADER } from '@/constants';
|
|
import { get } from '@n8n/rest-api-client';
|
|
|
|
export async function getNextVersions(
|
|
endpoint: string,
|
|
version: string,
|
|
instanceId: string,
|
|
): Promise<IVersion[]> {
|
|
const headers = { [INSTANCE_ID_HEADER as string]: instanceId };
|
|
return await get(endpoint, version, {}, headers);
|
|
}
|