Migrate actions,reducers and action types to TS #15
This commit is contained in:
48
app/domain/circles/circle.ts
Normal file
48
app/domain/circles/circle.ts
Normal 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};
|
||||
|
||||
|
||||
|
||||
}
|
||||
7
app/domain/circles/index.ts
Normal file
7
app/domain/circles/index.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import {Circle} from './circle';
|
||||
import {UserFollower} from './userFollower';
|
||||
|
||||
export {
|
||||
Circle,
|
||||
UserFollower
|
||||
}
|
||||
40
app/domain/circles/userFollower.ts
Normal file
40
app/domain/circles/userFollower.ts
Normal 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;
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user