Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency com.squareup:kotlinpoet to v2 #1010

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ koin = "4.0.1"
kotest = "5.9.1"
kotlin = "2.1.0"
kotlin-logging = "3.0.5"
kotlinpoet = "1.18.1"
kotlinpoet = "2.0.0"
kotlinx-coroutines = "1.10.1"
kotlinx-serialization = "1.7.3"
ktor = "2.3.13"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ public class ActivityLogApi(
/**
* Gets activity log entries.
*
* @param startIndex Optional. The record index to start at. All items with a lower index will be
* dropped from the results.
* @param startIndex Optional. The record index to start at. All items with a lower index will be dropped from the results.
* @param limit Optional. The maximum number of records to return.
* @param minDate Optional. The minimum date. Format = ISO.
* @param hasUserId Optional. Filter log entries if it has user id, or not.
Expand All @@ -43,8 +42,7 @@ public class ActivityLogApi(
put("hasUserId", hasUserId)
}
val data = null
val response = api.`get`<ActivityLogEntryQueryResult>("/System/ActivityLog/Entries",
pathParameters, queryParameters, data)
val response = api.`get`<ActivityLogEntryQueryResult>("/System/ActivityLog/Entries", pathParameters, queryParameters, data)
return response
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ public class ApiKeyApi(
val pathParameters = emptyMap<String, Any?>()
val queryParameters = emptyMap<String, Any?>()
val data = null
val response = api.`get`<AuthenticationInfoQueryResult>("/Auth/Keys", pathParameters,
queryParameters, data)
val response = api.`get`<AuthenticationInfoQueryResult>("/Auth/Keys", pathParameters, queryParameters, data)
return response
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,51 +37,33 @@ public class ArtistsApi(
* Gets all album artists from a given item, folder, or the entire library.
*
* @param minCommunityRating Optional filter by minimum community rating.
* @param startIndex Optional. The record index to start at. All items with a lower index will be
* dropped from the results.
* @param startIndex Optional. The record index to start at. All items with a lower index will be dropped from the results.
* @param limit Optional. The maximum number of records to return.
* @param searchTerm Optional. Search term.
* @param parentId Specify this to localize the search to a specific item or folder. Omit to use
* the root.
* @param parentId Specify this to localize the search to a specific item or folder. Omit to use the root.
* @param fields Optional. Specify additional fields of information to return in the output.
* @param excludeItemTypes Optional. If specified, results will be filtered out based on item type.
* This allows multiple, comma delimited.
* @param includeItemTypes Optional. If specified, results will be filtered based on item type.
* This allows multiple, comma delimited.
* @param excludeItemTypes Optional. If specified, results will be filtered out based on item type. This allows multiple, comma delimited.
* @param includeItemTypes Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimited.
* @param filters Optional. Specify additional filters to apply.
* @param isFavorite Optional filter by items that are marked as favorite, or not.
* @param mediaTypes Optional filter by MediaType. Allows multiple, comma delimited.
* @param genres Optional. If specified, results will be filtered based on genre. This allows
* multiple, pipe delimited.
* @param genreIds Optional. If specified, results will be filtered based on genre id. This allows
* multiple, pipe delimited.
* @param officialRatings Optional. If specified, results will be filtered based on OfficialRating.
* This allows multiple, pipe delimited.
* @param tags Optional. If specified, results will be filtered based on tag. This allows multiple,
* pipe delimited.
* @param years Optional. If specified, results will be filtered based on production year. This
* allows multiple, comma delimited.
* @param genres Optional. If specified, results will be filtered based on genre. This allows multiple, pipe delimited.
* @param genreIds Optional. If specified, results will be filtered based on genre id. This allows multiple, pipe delimited.
* @param officialRatings Optional. If specified, results will be filtered based on OfficialRating. This allows multiple, pipe delimited.
* @param tags Optional. If specified, results will be filtered based on tag. This allows multiple, pipe delimited.
* @param years Optional. If specified, results will be filtered based on production year. This allows multiple, comma delimited.
* @param enableUserData Optional, include user data.
* @param imageTypeLimit Optional, the max number of images to return, per image type.
* @param enableImageTypes Optional. The image types to include in the output.
* @param person Optional. If specified, results will be filtered to include only those containing
* the specified person.
* @param personIds Optional. If specified, results will be filtered to include only those
* containing the specified person ids.
* @param personTypes Optional. If specified, along with Person, results will be filtered to
* include only those containing the specified person and PersonType. Allows multiple,
* comma-delimited.
* @param studios Optional. If specified, results will be filtered based on studio. This allows
* multiple, pipe delimited.
* @param studioIds Optional. If specified, results will be filtered based on studio id. This
* allows multiple, pipe delimited.
* @param person Optional. If specified, results will be filtered to include only those containing the specified person.
* @param personIds Optional. If specified, results will be filtered to include only those containing the specified person ids.
* @param personTypes Optional. If specified, along with Person, results will be filtered to include only those containing the specified person and PersonType. Allows multiple, comma-delimited.
* @param studios Optional. If specified, results will be filtered based on studio. This allows multiple, pipe delimited.
* @param studioIds Optional. If specified, results will be filtered based on studio id. This allows multiple, pipe delimited.
* @param userId User id.
* @param nameStartsWithOrGreater Optional filter by items whose name is sorted equally or greater
* than a given input string.
* @param nameStartsWith Optional filter by items whose name is sorted equally than a given input
* string.
* @param nameLessThan Optional filter by items whose name is equally or lesser than a given input
* string.
* @param nameStartsWithOrGreater Optional filter by items whose name is sorted equally or greater than a given input string.
* @param nameStartsWith Optional filter by items whose name is sorted equally than a given input string.
* @param nameLessThan Optional filter by items whose name is equally or lesser than a given input string.
* @param sortBy Optional. Specify one or more sort orders, comma delimited.
* @param sortOrder Sort Order - Ascending,Descending.
* @param enableImages Optional, include image information in output.
Expand Down Expand Up @@ -157,8 +139,7 @@ public class ArtistsApi(
put("enableTotalRecordCount", enableTotalRecordCount)
}
val data = null
val response = api.`get`<BaseItemDtoQueryResult>("/Artists/AlbumArtists", pathParameters,
queryParameters, data)
val response = api.`get`<BaseItemDtoQueryResult>("/Artists/AlbumArtists", pathParameters, queryParameters, data)
return response
}

Expand All @@ -167,8 +148,7 @@ public class ArtistsApi(
*
* @param request The request parameters
*/
public suspend fun getAlbumArtists(request: GetAlbumArtistsRequest = GetAlbumArtistsRequest()):
Response<BaseItemDtoQueryResult> = getAlbumArtists(
public suspend fun getAlbumArtists(request: GetAlbumArtistsRequest = GetAlbumArtistsRequest()): Response<BaseItemDtoQueryResult> = getAlbumArtists(
minCommunityRating = request.minCommunityRating,
startIndex = request.startIndex,
limit = request.limit,
Expand Down Expand Up @@ -225,51 +205,33 @@ public class ArtistsApi(
* Gets all artists from a given item, folder, or the entire library.
*
* @param minCommunityRating Optional filter by minimum community rating.
* @param startIndex Optional. The record index to start at. All items with a lower index will be
* dropped from the results.
* @param startIndex Optional. The record index to start at. All items with a lower index will be dropped from the results.
* @param limit Optional. The maximum number of records to return.
* @param searchTerm Optional. Search term.
* @param parentId Specify this to localize the search to a specific item or folder. Omit to use
* the root.
* @param parentId Specify this to localize the search to a specific item or folder. Omit to use the root.
* @param fields Optional. Specify additional fields of information to return in the output.
* @param excludeItemTypes Optional. If specified, results will be filtered out based on item type.
* This allows multiple, comma delimited.
* @param includeItemTypes Optional. If specified, results will be filtered based on item type.
* This allows multiple, comma delimited.
* @param excludeItemTypes Optional. If specified, results will be filtered out based on item type. This allows multiple, comma delimited.
* @param includeItemTypes Optional. If specified, results will be filtered based on item type. This allows multiple, comma delimited.
* @param filters Optional. Specify additional filters to apply.
* @param isFavorite Optional filter by items that are marked as favorite, or not.
* @param mediaTypes Optional filter by MediaType. Allows multiple, comma delimited.
* @param genres Optional. If specified, results will be filtered based on genre. This allows
* multiple, pipe delimited.
* @param genreIds Optional. If specified, results will be filtered based on genre id. This allows
* multiple, pipe delimited.
* @param officialRatings Optional. If specified, results will be filtered based on OfficialRating.
* This allows multiple, pipe delimited.
* @param tags Optional. If specified, results will be filtered based on tag. This allows multiple,
* pipe delimited.
* @param years Optional. If specified, results will be filtered based on production year. This
* allows multiple, comma delimited.
* @param genres Optional. If specified, results will be filtered based on genre. This allows multiple, pipe delimited.
* @param genreIds Optional. If specified, results will be filtered based on genre id. This allows multiple, pipe delimited.
* @param officialRatings Optional. If specified, results will be filtered based on OfficialRating. This allows multiple, pipe delimited.
* @param tags Optional. If specified, results will be filtered based on tag. This allows multiple, pipe delimited.
* @param years Optional. If specified, results will be filtered based on production year. This allows multiple, comma delimited.
* @param enableUserData Optional, include user data.
* @param imageTypeLimit Optional, the max number of images to return, per image type.
* @param enableImageTypes Optional. The image types to include in the output.
* @param person Optional. If specified, results will be filtered to include only those containing
* the specified person.
* @param personIds Optional. If specified, results will be filtered to include only those
* containing the specified person ids.
* @param personTypes Optional. If specified, along with Person, results will be filtered to
* include only those containing the specified person and PersonType. Allows multiple,
* comma-delimited.
* @param studios Optional. If specified, results will be filtered based on studio. This allows
* multiple, pipe delimited.
* @param studioIds Optional. If specified, results will be filtered based on studio id. This
* allows multiple, pipe delimited.
* @param person Optional. If specified, results will be filtered to include only those containing the specified person.
* @param personIds Optional. If specified, results will be filtered to include only those containing the specified person ids.
* @param personTypes Optional. If specified, along with Person, results will be filtered to include only those containing the specified person and PersonType. Allows multiple, comma-delimited.
* @param studios Optional. If specified, results will be filtered based on studio. This allows multiple, pipe delimited.
* @param studioIds Optional. If specified, results will be filtered based on studio id. This allows multiple, pipe delimited.
* @param userId User id.
* @param nameStartsWithOrGreater Optional filter by items whose name is sorted equally or greater
* than a given input string.
* @param nameStartsWith Optional filter by items whose name is sorted equally than a given input
* string.
* @param nameLessThan Optional filter by items whose name is equally or lesser than a given input
* string.
* @param nameStartsWithOrGreater Optional filter by items whose name is sorted equally or greater than a given input string.
* @param nameStartsWith Optional filter by items whose name is sorted equally than a given input string.
* @param nameLessThan Optional filter by items whose name is equally or lesser than a given input string.
* @param sortBy Optional. Specify one or more sort orders, comma delimited.
* @param sortOrder Sort Order - Ascending,Descending.
* @param enableImages Optional, include image information in output.
Expand Down Expand Up @@ -345,8 +307,7 @@ public class ArtistsApi(
put("enableTotalRecordCount", enableTotalRecordCount)
}
val data = null
val response = api.`get`<BaseItemDtoQueryResult>("/Artists", pathParameters, queryParameters,
data)
val response = api.`get`<BaseItemDtoQueryResult>("/Artists", pathParameters, queryParameters, data)
return response
}

Expand All @@ -355,8 +316,7 @@ public class ArtistsApi(
*
* @param request The request parameters
*/
public suspend fun getArtists(request: GetArtistsRequest = GetArtistsRequest()):
Response<BaseItemDtoQueryResult> = getArtists(
public suspend fun getArtists(request: GetArtistsRequest = GetArtistsRequest()): Response<BaseItemDtoQueryResult> = getArtists(
minCommunityRating = request.minCommunityRating,
startIndex = request.startIndex,
limit = request.limit,
Expand Down
Loading
Loading