mirror of
				https://github.com/mealie-recipes/mealie.git
				synced 2025-10-31 10:13:32 -04:00 
			
		
		
		
	Feature/group based notifications (#918)
* fix group page * setup group notification for backend * update type generators * script to auto-generate schema exports * setup frontend CRUD interface * remove old notifications UI * drop old events api * add test functionality * update naming for fields * add event dispatcher functionality * bump to python 3.10 * bump python version * purge old event code * use-async apprise * set mealie logo as image * unify styles for buttons rows * add links to banners
This commit is contained in:
		
							
								
								
									
										18
									
								
								frontend/api/class-interfaces/group-event-notifier.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								frontend/api/class-interfaces/group-event-notifier.ts
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,18 @@ | ||||
| import { BaseCRUDAPI } from "../_base"; | ||||
| import { GroupEventNotifierCreate, GroupEventNotifierOut } from "~/types/api-types/group"; | ||||
|  | ||||
| const prefix = "/api"; | ||||
|  | ||||
| const routes = { | ||||
|   eventNotifier: `${prefix}/groups/events/notifications`, | ||||
|   eventNotifierId: (id: string | number) => `${prefix}/groups/events/notifications/${id}`, | ||||
| }; | ||||
|  | ||||
| export class GroupEventNotifierApi extends BaseCRUDAPI<GroupEventNotifierOut, GroupEventNotifierCreate> { | ||||
|   baseRoute = routes.eventNotifier; | ||||
|   itemRoute = routes.eventNotifierId; | ||||
|  | ||||
|   async test(itemId: string) { | ||||
|     return await this.requests.post(`${this.baseRoute}/${itemId}/test`, {}); | ||||
|   } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user