From f704432e55423124a071a47332dae6d400b37dbc Mon Sep 17 00:00:00 2001 From: Pascal Kaufmann Date: Fri, 22 Nov 2024 17:43:32 +0100 Subject: [PATCH] Fix service typeof obsolete types --- packages/core/src/services/index.ts | 41 ++++------------------------- 1 file changed, 5 insertions(+), 36 deletions(-) diff --git a/packages/core/src/services/index.ts b/packages/core/src/services/index.ts index d8b3e69503..d29505e697 100644 --- a/packages/core/src/services/index.ts +++ b/packages/core/src/services/index.ts @@ -11,42 +11,7 @@ import { migrateOrderCartsService } from './migrateOrderCartService.js'; import { nextUserCartService } from './nextUserCartService.js'; import { removeProductService } from './removeProductService.js'; -export interface UserServices { - updateUserAvatarAfterUpload: typeof updateUserAvatarAfterUploadService; - migrateUserData: typeof migrateUserDataService; -} - -export interface FileServices { - linkFile: typeof linkFileService; - uploadFileFromStream: typeof uploadFileFromStreamService; - uploadFileFromURL: typeof uploadFileFromURLService; - createSignedURL: typeof createSignedURLService; - removeFiles: typeof removeFilesService; - createDownloadStream: typeof createDownloadStreamService; -} - -export interface BookmarkServices { - migrateBookmarks: typeof migrateBookmarksService; -} - -export interface OrderServices { - migrateOrderCarts: typeof migrateOrderCartsService; - nextUserCart: typeof nextUserCartService; -} - -export interface ProductServices { - removeProduct: typeof removeProductService; -} - -export interface Services { - bookmarks: BookmarkServices; - files: FileServices; - orders: OrderServices; - products: ProductServices; - users: UserServices; -} - -export default { +const services = { bookmarks: { migrateBookmarks: migrateBookmarksService, }, @@ -70,3 +35,7 @@ export default { updateUserAvatarAfterUpload: updateUserAvatarAfterUploadService, }, }; + +export type Services = typeof services; + +export default services;