mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
feat(core): Simplify pagination in declarative node design (#5161)
* feat(core): Add pagination to declarative node design * ⚡ Actually make it work * ⚡ Remove rootProperty * ⚡ Fix typo * ⚡ Add support to overwrite url --------- Co-authored-by: Omar Ajoue <krynble@gmail.com>
This commit is contained in:
@@ -185,6 +185,7 @@ export interface IRequestOptionsSimplifiedAuth {
|
||||
body?: IDataObject;
|
||||
headers?: IDataObject;
|
||||
qs?: IDataObject;
|
||||
url?: string;
|
||||
skipSslCertificateValidation?: boolean | string;
|
||||
}
|
||||
|
||||
@@ -529,6 +530,7 @@ export interface IN8nHttpFullResponse {
|
||||
|
||||
export interface IN8nRequestOperations {
|
||||
pagination?:
|
||||
| IN8nRequestOperationPaginationGeneric
|
||||
| IN8nRequestOperationPaginationOffset
|
||||
| ((
|
||||
this: IExecutePaginationFunctions,
|
||||
@@ -539,7 +541,15 @@ export interface IN8nRequestOperations {
|
||||
export interface IN8nRequestOperationPaginationBase {
|
||||
type: string;
|
||||
properties: {
|
||||
[key: string]: string | number;
|
||||
[key: string]: unknown;
|
||||
};
|
||||
}
|
||||
|
||||
export interface IN8nRequestOperationPaginationGeneric extends IN8nRequestOperationPaginationBase {
|
||||
type: 'generic';
|
||||
properties: {
|
||||
continue: boolean | string;
|
||||
request: IRequestOptionsSimplifiedAuth;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user