@@ -7,7 +7,7 @@ use labrinth::models::{
7
7
teams:: { OrganizationPermissions , ProjectPermissions } ,
8
8
} ;
9
9
10
- use ariadne :: { api_v2:: ApiV2 , api_v3:: ApiV3 , dummy_data:: TestFile } ;
10
+ use crate :: common :: { api_v2:: ApiV2 , api_v3:: ApiV3 , dummy_data:: TestFile } ;
11
11
12
12
use super :: {
13
13
models:: { CommonProject , CommonVersion } ,
@@ -81,7 +81,7 @@ delegate_api_variant!(
81
81
[ add_gallery_item, ServiceResponse , id_or_slug: & str , image: ImageData , featured: bool , title: Option <String >, description: Option <String >, ordering: Option <i32 >, pat: Option <& str >] ,
82
82
[ remove_gallery_item, ServiceResponse , id_or_slug: & str , image_url: & str , pat: Option <& str >] ,
83
83
[ edit_gallery_item, ServiceResponse , id_or_slug: & str , image_url: & str , patch: HashMap <String , String >, pat: Option <& str >] ,
84
- [ create_report, ServiceResponse , report_type: & str , id: & str , item_type: ariadne :: api_common:: models:: CommonItemType , body: & str , pat: Option <& str >] ,
84
+ [ create_report, ServiceResponse , report_type: & str , id: & str , item_type: crate :: common :: api_common:: models:: CommonItemType , body: & str , pat: Option <& str >] ,
85
85
[ get_report, ServiceResponse , id: & str , pat: Option <& str >] ,
86
86
[ get_reports, ServiceResponse , ids: & [ & str ] , pat: Option <& str >] ,
87
87
[ get_user_reports, ServiceResponse , pat: Option <& str >] ,
@@ -100,28 +100,28 @@ delegate_api_variant!(
100
100
#[ async_trait( ?Send ) ]
101
101
impl ApiTags for GenericApi {
102
102
[ get_loaders, ServiceResponse , ] ,
103
- [ get_loaders_deserialized_common, Vec <ariadne :: api_common:: models:: CommonLoaderData >, ] ,
103
+ [ get_loaders_deserialized_common, Vec <crate :: common :: api_common:: models:: CommonLoaderData >, ] ,
104
104
[ get_categories, ServiceResponse , ] ,
105
- [ get_categories_deserialized_common, Vec <ariadne :: api_common:: models:: CommonCategoryData >, ] ,
105
+ [ get_categories_deserialized_common, Vec <crate :: common :: api_common:: models:: CommonCategoryData >, ] ,
106
106
}
107
107
) ;
108
108
109
109
delegate_api_variant ! (
110
110
#[ async_trait( ?Send ) ]
111
111
impl ApiTeams for GenericApi {
112
112
[ get_team_members, ServiceResponse , team_id: & str , pat: Option <& str >] ,
113
- [ get_team_members_deserialized_common, Vec <ariadne :: api_common:: models:: CommonTeamMember >, team_id: & str , pat: Option <& str >] ,
113
+ [ get_team_members_deserialized_common, Vec <crate :: common :: api_common:: models:: CommonTeamMember >, team_id: & str , pat: Option <& str >] ,
114
114
[ get_teams_members, ServiceResponse , ids: & [ & str ] , pat: Option <& str >] ,
115
115
[ get_project_members, ServiceResponse , id_or_slug: & str , pat: Option <& str >] ,
116
- [ get_project_members_deserialized_common, Vec <ariadne :: api_common:: models:: CommonTeamMember >, id_or_slug: & str , pat: Option <& str >] ,
116
+ [ get_project_members_deserialized_common, Vec <crate :: common :: api_common:: models:: CommonTeamMember >, id_or_slug: & str , pat: Option <& str >] ,
117
117
[ get_organization_members, ServiceResponse , id_or_title: & str , pat: Option <& str >] ,
118
- [ get_organization_members_deserialized_common, Vec <ariadne :: api_common:: models:: CommonTeamMember >, id_or_title: & str , pat: Option <& str >] ,
118
+ [ get_organization_members_deserialized_common, Vec <crate :: common :: api_common:: models:: CommonTeamMember >, id_or_title: & str , pat: Option <& str >] ,
119
119
[ join_team, ServiceResponse , team_id: & str , pat: Option <& str >] ,
120
120
[ remove_from_team, ServiceResponse , team_id: & str , user_id: & str , pat: Option <& str >] ,
121
121
[ edit_team_member, ServiceResponse , team_id: & str , user_id: & str , patch: serde_json:: Value , pat: Option <& str >] ,
122
122
[ transfer_team_ownership, ServiceResponse , team_id: & str , user_id: & str , pat: Option <& str >] ,
123
123
[ get_user_notifications, ServiceResponse , user_id: & str , pat: Option <& str >] ,
124
- [ get_user_notifications_deserialized_common, Vec <ariadne :: api_common:: models:: CommonNotification >, user_id: & str , pat: Option <& str >] ,
124
+ [ get_user_notifications_deserialized_common, Vec <crate :: common :: api_common:: models:: CommonNotification >, user_id: & str , pat: Option <& str >] ,
125
125
[ get_notification, ServiceResponse , notification_id: & str , pat: Option <& str >] ,
126
126
[ get_notifications, ServiceResponse , ids: & [ & str ] , pat: Option <& str >] ,
127
127
[ mark_notification_read, ServiceResponse , notification_id: & str , pat: Option <& str >] ,
0 commit comments