File tree Expand file tree Collapse file tree 3 files changed +25
-1
lines changed Expand file tree Collapse file tree 3 files changed +25
-1
lines changed Original file line number Diff line number Diff line change 22
33# Changelog
44
5+ ## [ 1.6.10] - 2025-07-01
6+
7+ ### Added
8+
9+ - Added ` sortKey ` and ` sortDirection ` options to the ` getApps ` method
10+
511## [ 1.6.9] - 2025-06-10
612
713### Added
Original file line number Diff line number Diff line change 11{
22 "name" : " @pipedream/sdk" ,
33 "type" : " module" ,
4- "version" : " 1.6.9 " ,
4+ "version" : " 1.6.10 " ,
55 "description" : " Pipedream SDK" ,
66 "main" : " ./dist/server.js" ,
77 "module" : " ./dist/server.js" ,
Original file line number Diff line number Diff line change @@ -255,6 +255,18 @@ export type GetAppsOpts = RelationOpts & {
255255 * Filter by whether apps have triggers in the component registry.
256256 */
257257 hasTriggers ?: boolean ;
258+ /**
259+ * The key to sort the apps by.
260+ *
261+ * @default "name_slug"
262+ */
263+ sortKey ?: "name" | "featured_weight" | "name_slug" ;
264+ /**
265+ * The direction to sort the apps.
266+ *
267+ * @default "asc"
268+ */
269+ sortDirection ?: "asc" | "desc" ;
258270} ;
259271
260272/**
@@ -1178,6 +1190,12 @@ export abstract class BaseClient {
11781190 ? "1"
11791191 : "0" ;
11801192 }
1193+ if ( opts ?. sortKey ) {
1194+ params . sort_key = opts . sortKey ;
1195+ }
1196+ if ( opts ?. sortDirection ) {
1197+ params . sort_direction = opts . sortDirection ;
1198+ }
11811199
11821200 this . addRelationOpts ( params , opts ) ;
11831201 return this . makeAuthorizedRequest < GetAppsResponse > (
You can’t perform that action at this time.
0 commit comments