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,48 @@
import { BaseDomain } from "domain/common";
import { User } from "domain/users";
export class Circle extends BaseDomain {
/**
* Circle identifier
*
* @type {string}
* @memberof User
*/
public id?: string | null;
/**
* Circle creation date time
*
* @type {Date}
* @memberof Circle
*/
public creationDate?: number;
/**
* Circle owner identifier
*
* @type {string}
* @memberof Circle
*/
public ownerId?: string | null;
/**
* Circle name
*
* @type {string}
* @memberof User
*/
public name: string;
/**
* The users in a circle
*
* @type {string}
* @memberof User
*/
public users: {[userId:string]: User};
}

View File

@@ -0,0 +1,7 @@
import {Circle} from './circle';
import {UserFollower} from './userFollower';
export {
Circle,
UserFollower
}

View File

@@ -0,0 +1,40 @@
import { BaseDomain } from "domain/common";
export class UserFollower extends BaseDomain {
/**
* Circle creation date time
*
* @type {Date}
* @memberof Circle
*/
public creationDate?: number;
/**
* User full name
*
* @type {string}
* @memberof UserFollower
*/
public fullName: string;
/**
* Avatar URL address
*
* @type {string}
* @memberof UserFollower
*/
public avatar: string;
/**
* If following user approved {true} or not {false}
*
* @type {Boolean}
* @memberof UserFollower
*/
public approved: Boolean;
}