Migrate actions,reducers and action types to TS #15
This commit is contained in:
27
app/firebaseServices/circles/CircleService.ts
Normal file
27
app/firebaseServices/circles/CircleService.ts
Normal 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; }>;
|
||||
|
||||
}
|
||||
5
app/firebaseServices/circles/index.ts
Normal file
5
app/firebaseServices/circles/index.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import { AuthorizeService } from "./CircleService";
|
||||
|
||||
export {
|
||||
AuthorizeService
|
||||
}
|
||||
17
app/firebaseServices/comments/CommentService.ts
Normal file
17
app/firebaseServices/comments/CommentService.ts
Normal 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 {
|
||||
|
||||
|
||||
}
|
||||
5
app/firebaseServices/comments/index.ts
Normal file
5
app/firebaseServices/comments/index.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import { CommentService } from "./CommentService";
|
||||
|
||||
export {
|
||||
CommentService
|
||||
}
|
||||
17
app/firebaseServices/common/CommonService.ts
Normal file
17
app/firebaseServices/common/CommonService.ts
Normal 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 {
|
||||
|
||||
|
||||
}
|
||||
5
app/firebaseServices/common/index.ts
Normal file
5
app/firebaseServices/common/index.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import { CommonService } from "./CommonService";
|
||||
|
||||
export {
|
||||
CommonService
|
||||
}
|
||||
17
app/firebaseServices/imageGallery/ImageGalleryService.ts
Normal file
17
app/firebaseServices/imageGallery/ImageGalleryService.ts
Normal 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 {
|
||||
|
||||
|
||||
}
|
||||
5
app/firebaseServices/imageGallery/index.ts
Normal file
5
app/firebaseServices/imageGallery/index.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import { ImageGalleryService } from "./ImageGalleryService";
|
||||
|
||||
export {
|
||||
ImageGalleryService
|
||||
}
|
||||
5
app/firebaseServices/notifications/index.ts
Normal file
5
app/firebaseServices/notifications/index.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import { NotificationService } from "./NotificationService";
|
||||
|
||||
export {
|
||||
NotificationService
|
||||
}
|
||||
17
app/firebaseServices/notifications/notificationService.ts
Normal file
17
app/firebaseServices/notifications/notificationService.ts
Normal 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 {
|
||||
|
||||
|
||||
}
|
||||
17
app/firebaseServices/posts/PostService.ts
Normal file
17
app/firebaseServices/posts/PostService.ts
Normal 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 {
|
||||
|
||||
|
||||
}
|
||||
5
app/firebaseServices/posts/index.ts
Normal file
5
app/firebaseServices/posts/index.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import { PostService } from "./PostService";
|
||||
|
||||
export {
|
||||
PostService
|
||||
}
|
||||
17
app/firebaseServices/users/UserService.ts
Normal file
17
app/firebaseServices/users/UserService.ts
Normal 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 {
|
||||
|
||||
|
||||
}
|
||||
5
app/firebaseServices/users/index.ts
Normal file
5
app/firebaseServices/users/index.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import { UserService } from "./UserService";
|
||||
|
||||
export {
|
||||
UserService
|
||||
}
|
||||
17
app/firebaseServices/votes/VoteService.ts
Normal file
17
app/firebaseServices/votes/VoteService.ts
Normal 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 {
|
||||
|
||||
|
||||
}
|
||||
5
app/firebaseServices/votes/index.ts
Normal file
5
app/firebaseServices/votes/index.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import { VoteService } from "./VoteService";
|
||||
|
||||
export {
|
||||
VoteService
|
||||
}
|
||||
Reference in New Issue
Block a user