Migrate actions,reducers and action types to TS #15

This commit is contained in:
Qolzam
2017-10-10 08:01:25 +07:00
parent 3b3899e7af
commit f9d213f741
113 changed files with 2692 additions and 1275 deletions

View 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 }>;
}

View File

@@ -0,0 +1,5 @@
import { ICircleService } from "./ICircleService";
export {
ICircleService
}

View File

@@ -0,0 +1,15 @@
import { User } from "domain/users";
/**
* Comment service interface
*
* @export
* @interface ICommentService
*/
export interface ICommentService {
}

View File

@@ -0,0 +1,5 @@
import { ICommentService } from "./ICommentService";
export {
ICommentService
}

View File

@@ -0,0 +1,16 @@
import { User } from "domain/users";
/**
* Common service interface
*
* @export
* @interface ICommonService
*/
export interface ICommonService {
}

View File

@@ -0,0 +1,5 @@
import { ICommonService } from "./ICommonService";
export {
ICommonService
}

View File

@@ -0,0 +1,15 @@
import { User } from "domain/users";
/**
* Image gallery service interface
*
* @export
* @interface IImageGalleryService
*/
export interface IImageGalleryService {
}

View File

@@ -0,0 +1,5 @@
import { IImageGalleryService } from "./IImageGalleryService";
export {
IImageGalleryService
}

View File

@@ -0,0 +1,15 @@
import { User } from "domain/users";
/**
* Notification service interface
*
* @export
* @interface INotificationService
*/
export interface INotificationService {
}

View File

@@ -0,0 +1,5 @@
import { INotificationService } from "./INotificationService";
export {
INotificationService
}

View File

@@ -0,0 +1,15 @@
import { User } from "domain/users";
/**
* Post service interface
*
* @export
* @interface IPostService
*/
export interface IPostService {
}

View File

@@ -0,0 +1,5 @@
import { IPostService } from "./IPostService";
export {
IPostService
}

View File

@@ -0,0 +1,15 @@
import { User } from "domain/users";
/**
* User service interface
*
* @export
* @interface IUserService
*/
export interface IUserService {
}

View File

@@ -0,0 +1,5 @@
import { IUserService } from "./IUserService";
export {
IUserService
}

View File

@@ -0,0 +1,15 @@
import { User } from "domain/users";
/**
* Vote service interface
*
* @export
* @interface IVoteService
*/
export interface IVoteService {
}

View File

@@ -0,0 +1,5 @@
import { IVoteService } from "./IVoteService";
export {
IVoteService
}