From d70b1bd051c257ed5a57f4923f667dbc799117f0 Mon Sep 17 00:00:00 2001 From: David Porter Date: Tue, 26 May 2026 12:37:31 +1000 Subject: [PATCH 1/2] AP-8753 # add form sort seach params --- src/types.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/types.ts b/src/types.ts index 001e6f2c..013d2646 100644 --- a/src/types.ts +++ b/src/types.ts @@ -116,6 +116,13 @@ export type FormsSearchOptions = BaseSearchOptions & { * a `workspaceId`. */ workspaceId?: number + /** Select a property to sort the results by. */ + sortBy?: 'name' | 'createdAt' | 'updatedAt' + /** + * Select the direction to sort the results by. `sortDirection` is ignored if + * `sortBy` is not specified. + */ + sortDirection?: 'asc' | 'desc' } export type FormSubmissionHistorySearchParameters = BaseSearchOptions & { From 2e16f770c25ad4cae1358af077c81d20110f2cf7 Mon Sep 17 00:00:00 2001 From: David Porter Date: Thu, 18 Jun 2026 20:27:42 +1000 Subject: [PATCH 2/2] AP-8753 # update changelog and types --- CHANGELOG.md | 4 ++++ package-lock.json | 32 +------------------------------- 2 files changed, 5 insertions(+), 31 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 67d460b7..1f74b745 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Added + +- `sortBy` and `sortDirection` to `FormSearchOptions` + ## [13.1.7] - 2026-06-18 ### Removed diff --git a/package-lock.json b/package-lock.json index 086f4079..0cf3dff2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1678,7 +1678,7 @@ }, "node_modules/@oneblink/types": { "version": "1.0.0", - "resolved": "git+ssh://git@github.com/oneblink/types.git#6879b3fef7a352c3072c00732d7d2b9bb47b03d5", + "resolved": "git+ssh://git@github.com/oneblink/types.git#11ab0f52d90b7a5b7e72ff749efb6a2e428b09f0", "dev": true, "license": "GPL-3.0-only", "dependencies": { @@ -1850,9 +1850,6 @@ "arm64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -1870,9 +1867,6 @@ "arm64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ @@ -1890,9 +1884,6 @@ "ppc64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -1910,9 +1901,6 @@ "s390x" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -1930,9 +1918,6 @@ "x64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -1950,9 +1935,6 @@ "x64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ @@ -6785,9 +6767,6 @@ "arm64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MPL-2.0", "optional": true, "os": [ @@ -6809,9 +6788,6 @@ "arm64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MPL-2.0", "optional": true, "os": [ @@ -6833,9 +6809,6 @@ "x64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MPL-2.0", "optional": true, "os": [ @@ -6857,9 +6830,6 @@ "x64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MPL-2.0", "optional": true, "os": [