@@ -21,13 +21,21 @@ data class ListFoldersQueryParams(
2121 /* *
2222 * (Microsoft and EWS only.) Use the ID of a folder to find all child folders it contains.
2323 */
24- @Json(name = " parent_id" )
24+ @Json(name = " parent_id" )
2525 val parentId : String? = null ,
26+ /* *
27+ * Specify fields that you want Nylas to return, as a comma-separated list (for example, select=id,updated_at).
28+ * This allows you to receive only the portion of object data that you're interested in.
29+ * You can use select to optimize response size and reduce latency by limiting queries to only the information that you need
30+ */
31+ @Json(name = " select" )
32+ var select : String? = null ,
2633) : IQueryParams {
2734 class Builder {
2835 private var limit: Int? = null
2936 private var pageToken: String? = null
3037 private var parentId: String? = null
38+ private var select: String? = null
3139
3240 /* *
3341 * Sets the maximum number of objects to return.
@@ -52,6 +60,13 @@ data class ListFoldersQueryParams(
5260 */
5361 fun parentId (parentId : String? ) = apply { this .parentId = parentId }
5462
63+ /* *
64+ * Sets the fields to return in the response.
65+ * @param select List of field names to return (e.g. "id,updated_at")
66+ * @return The builder.
67+ */
68+ fun select (select : String? ) = apply { this .select = select }
69+
5570 /* *
5671 * Builds the [ListFoldersQueryParams] object.
5772 * @return The [ListFoldersQueryParams] object.
@@ -60,6 +75,7 @@ data class ListFoldersQueryParams(
6075 limit = limit,
6176 pageToken = pageToken,
6277 parentId = parentId,
78+ select = select,
6379 )
6480 }
6581}
0 commit comments