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,27 @@
// - Import react components
import { firebaseRef, firebaseAuth } from 'app/firebase/';
import { SocialError } from "domain/common";
import { ICircleService } from 'services/circles';
import { Circle, UserFollower } from 'domain/circles';
import { User } from 'domain/users';
/**
* Firbase circle service
*
* @export
* @class CircleService
* @implements {ICircleService}
*/
export class CircleService implements 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 { AuthorizeService } from "./CircleService";
export {
AuthorizeService
}

View File

@@ -0,0 +1,17 @@
// - Import react components
import { firebaseRef, firebaseAuth } from 'app/firebase/';
import { SocialError } from "domain/common";
import { ICommentService } from 'services/comments';
/**
* Firbase comment service
*
* @export
* @class CommentService
* @implements {ICommentService}
*/
export class CommentService implements ICommentService {
}

View File

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

View File

@@ -0,0 +1,17 @@
// - Import react components
import { firebaseRef, firebaseAuth } from 'app/firebase/';
import { SocialError } from "domain/common";
import { ICommonService } from 'services/common';
/**
* Firbase common service
*
* @export
* @class CommonService
* @implements {ICommonService}
*/
export class CommonService implements ICommonService {
}

View File

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

View File

@@ -0,0 +1,17 @@
// - Import react components
import { firebaseRef, firebaseAuth } from 'app/firebase/';
import { SocialError } from "domain/common";
import { IImageGalleryService } from 'services/imageGallery';
/**
* Firbase image gallery service
*
* @export
* @class ImageGalleryService
* @implements {IImageGalleryService}
*/
export class ImageGalleryService implements IImageGalleryService {
}

View File

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

View File

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

View File

@@ -0,0 +1,17 @@
// - Import react components
import { firebaseRef, firebaseAuth } from 'app/firebase/';
import { SocialError } from "domain/common";
import { INotificationService } from 'services/notifications';
/**
* Firbase notification service
*
* @export
* @class NotificationService
* @implements {INotificationService}
*/
export class NotificationService implements INotificationService {
}

View File

@@ -0,0 +1,17 @@
// - Import react components
import { firebaseRef, firebaseAuth } from 'app/firebase/';
import { SocialError } from "domain/common";
import { IPostService } from 'services/posts';
/**
* Firbase post service
*
* @export
* @class PostService
* @implements {IPostService}
*/
export class PostService implements IPostService {
}

View File

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

View File

@@ -0,0 +1,17 @@
// - Import react components
import { firebaseRef, firebaseAuth } from 'app/firebase/';
import { SocialError } from "domain/common";
import { IUserService } from 'services/users';
/**
* Firbase user service
*
* @export
* @class UserService
* @implements {IUserService}
*/
export class UserService implements IUserService {
}

View File

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

View File

@@ -0,0 +1,17 @@
// - Import react components
import { firebaseRef, firebaseAuth } from 'app/firebase/';
import { SocialError } from "domain/common";
import { IVoteService } from 'services/votes';
/**
* Firbase vote service
*
* @export
* @class VoteService
* @implements {IVoteService}
*/
export class VoteService implements IVoteService {
}

View File

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