Skip to content

Commit

Permalink
Fix service typeof obsolete types
Browse files Browse the repository at this point in the history
  • Loading branch information
pozylon committed Nov 22, 2024
1 parent 239b4ed commit f704432
Showing 1 changed file with 5 additions and 36 deletions.
41 changes: 5 additions & 36 deletions packages/core/src/services/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand All @@ -70,3 +35,7 @@ export default {
updateUserAvatarAfterUpload: updateUserAvatarAfterUploadService,
},
};

export type Services = typeof services;

export default services;

0 comments on commit f704432

Please sign in to comment.