paginated steps on GenericModelList

paginate CustomFilter api and GenericModelList
paginate Automation api and GenericModelList
This commit is contained in:
smilerz
2024-02-23 08:33:50 -06:00
parent de80702e3f
commit 0e8cac7ab9
3 changed files with 181 additions and 80 deletions

View File

@@ -518,6 +518,7 @@ export class Models {
header_component: {
name: "BetaWarning",
},
params: ["page", "pageSize", "options"],
},
create: {
params: [["name", "description", "type", "param_1", "param_2", "param_3", "order", "disabled"]],
@@ -620,7 +621,7 @@ export class Models {
},
form_function: "AutomationOrderDefault",
},
},
}
}
static UNIT_CONVERSION = {
@@ -1032,7 +1033,7 @@ export class Models {
static CUSTOM_FILTER = {
name: "Custom Filter",
apiName: "CustomFilter",
paginated: true,
create: {
params: [["name", "search", "shared"]],
form: {
@@ -1055,6 +1056,9 @@ export class Models {
},
},
},
list: {
params: ["page", "pageSize", "options"],
},
}
static USER_NAME = {
name: "User",
@@ -1228,6 +1232,7 @@ export class Models {
static STEP = {
name: "Step",
apiName: "Step",
paginated: true,
list: {
params: ["recipe", "query", "page", "pageSize", "options"],
},