Migrate actions,reducers and action types to TS #15
This commit is contained in:
19
app/services/circles/ICircleService.ts
Normal file
19
app/services/circles/ICircleService.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import { User } from "domain/users";
|
||||
import { Circle, UserFollower } from "domain/circles";
|
||||
|
||||
/**
|
||||
* Circle service interface
|
||||
*
|
||||
* @export
|
||||
* @interface ICircleService
|
||||
*/
|
||||
export interface ICircleService {
|
||||
|
||||
addCircle: (userId: string, circle: Circle) => Promise<string>;
|
||||
addFollowingUser: (userId: string, circleId:string, userCircle: User, userFollower: UserFollower, userFollowingId: string) => Promise<void>;
|
||||
deleteFollowingUser: (userId: string, circleId: string,userFollowingId: string) => Promise<void>;
|
||||
updateCircle: (userId: string, circle: Circle, circleId: string) => Promise<void>;
|
||||
deleteCircle: (circleId: string, userId: string) => Promise<void>;
|
||||
getCircles: () => Promise<{ [circleId: string]: Circle }>;
|
||||
getCirclesByUserId: (userId: string) => Promise<{ [circleId: string]: Circle }>;
|
||||
}
|
||||
5
app/services/circles/index.ts
Normal file
5
app/services/circles/index.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import { ICircleService } from "./ICircleService";
|
||||
|
||||
export {
|
||||
ICircleService
|
||||
}
|
||||
15
app/services/comments/ICommentService.ts
Normal file
15
app/services/comments/ICommentService.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { User } from "domain/users";
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Comment service interface
|
||||
*
|
||||
* @export
|
||||
* @interface ICommentService
|
||||
*/
|
||||
export interface ICommentService {
|
||||
|
||||
|
||||
}
|
||||
5
app/services/comments/index.ts
Normal file
5
app/services/comments/index.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import { ICommentService } from "./ICommentService";
|
||||
|
||||
export {
|
||||
ICommentService
|
||||
}
|
||||
16
app/services/common/ICommonService.ts
Normal file
16
app/services/common/ICommonService.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import { User } from "domain/users";
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Common service interface
|
||||
*
|
||||
* @export
|
||||
* @interface ICommonService
|
||||
*/
|
||||
export interface ICommonService {
|
||||
|
||||
|
||||
|
||||
}
|
||||
5
app/services/common/index.ts
Normal file
5
app/services/common/index.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import { ICommonService } from "./ICommonService";
|
||||
|
||||
export {
|
||||
ICommonService
|
||||
}
|
||||
15
app/services/imageGallery/IImageGalleryService.ts
Normal file
15
app/services/imageGallery/IImageGalleryService.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { User } from "domain/users";
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Image gallery service interface
|
||||
*
|
||||
* @export
|
||||
* @interface IImageGalleryService
|
||||
*/
|
||||
export interface IImageGalleryService {
|
||||
|
||||
|
||||
}
|
||||
5
app/services/imageGallery/index.ts
Normal file
5
app/services/imageGallery/index.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import { IImageGalleryService } from "./IImageGalleryService";
|
||||
|
||||
export {
|
||||
IImageGalleryService
|
||||
}
|
||||
15
app/services/notifications/INotificationService.ts
Normal file
15
app/services/notifications/INotificationService.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { User } from "domain/users";
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Notification service interface
|
||||
*
|
||||
* @export
|
||||
* @interface INotificationService
|
||||
*/
|
||||
export interface INotificationService {
|
||||
|
||||
|
||||
}
|
||||
5
app/services/notifications/index.ts
Normal file
5
app/services/notifications/index.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import { INotificationService } from "./INotificationService";
|
||||
|
||||
export {
|
||||
INotificationService
|
||||
}
|
||||
15
app/services/posts/IPostService.ts
Normal file
15
app/services/posts/IPostService.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { User } from "domain/users";
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Post service interface
|
||||
*
|
||||
* @export
|
||||
* @interface IPostService
|
||||
*/
|
||||
export interface IPostService {
|
||||
|
||||
|
||||
}
|
||||
5
app/services/posts/index.ts
Normal file
5
app/services/posts/index.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import { IPostService } from "./IPostService";
|
||||
|
||||
export {
|
||||
IPostService
|
||||
}
|
||||
15
app/services/users/IUserService.ts
Normal file
15
app/services/users/IUserService.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { User } from "domain/users";
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* User service interface
|
||||
*
|
||||
* @export
|
||||
* @interface IUserService
|
||||
*/
|
||||
export interface IUserService {
|
||||
|
||||
|
||||
}
|
||||
5
app/services/users/index.ts
Normal file
5
app/services/users/index.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import { IUserService } from "./IUserService";
|
||||
|
||||
export {
|
||||
IUserService
|
||||
}
|
||||
15
app/services/votes/IVoteService.ts
Normal file
15
app/services/votes/IVoteService.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { User } from "domain/users";
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Vote service interface
|
||||
*
|
||||
* @export
|
||||
* @interface IVoteService
|
||||
*/
|
||||
export interface IVoteService {
|
||||
|
||||
|
||||
}
|
||||
5
app/services/votes/index.ts
Normal file
5
app/services/votes/index.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import { IVoteService } from "./IVoteService";
|
||||
|
||||
export {
|
||||
IVoteService
|
||||
}
|
||||
Reference in New Issue
Block a user