Unverified Commit 000a1236 authored by Peter East's avatar Peter East
Browse files

lint fix

parent b4f3030e
Pipeline #13224 passed with stage
in 1 minute and 18 seconds
......@@ -2,8 +2,9 @@
* # Core types
* Share interfaces that exist in both domain and infrastructure concepts
*/
export interface Core {}
// tslint:disable-next-line
export interface Core {}
/**
* This is the lowest common denominator across all entities in PubSweet
......@@ -13,6 +14,7 @@ export interface IObject {
created: Date;
}
// tslint:disable-next-line
export interface IAction {
}
......@@ -31,7 +33,7 @@ export interface IDeletable extends IObject {
export interface IMutable extends IUpdatable, IDeletable {}
export interface IActor extends IObject {
kind: "user" | "admin" | "system";
kind: 'user' | 'admin' | 'system';
actor_id: string;
}
......@@ -45,7 +47,7 @@ export interface IOwnable extends IObject {
* Denotes a collection of users
*/
export interface IAssignable {
assignees: IActor[]
assignees: IActor[];
}
/**
......
......@@ -3,10 +3,12 @@ import { IAssignable, IActor, IObject, IMutable, IOwnable } from './abstract';
/**
* This is for domain types.
*
* This module is for interfaces and types that directly relate to the publishing domain. For example `ISubmittable` is a domain type, because it relates to a domain action that can be
* This module is for interfaces and types that directly relate to the publishing domain.
* For example `ISubmittable` is a domain type, because it relates to a domain action that can be
* taken on a domain entity.
*/
// tslint:disable-next-line
export interface Domain {}
interface Organisation extends IMutable {
......@@ -23,8 +25,8 @@ interface Journal extends IMutable {
interface Submission extends IMutable {
manuscriptVersions: never;
files: File[];
teams: any[];
reviews: any[];
teams: Team[];
reviews: Review[];
status: string;
formState: string;
decision: string;
......@@ -33,8 +35,8 @@ interface Submission extends IMutable {
articleIds: string;
abstract: string;
subjects: string;
history: Array<Date>;
publicationDates: Array<Date>;
history: Date[];
publicationDates: Date[];
notes: Note[];
}
......@@ -53,7 +55,8 @@ interface File extends IMutable {
}
interface Review extends IMutable, IOwnable {
comments: any[];
// wip
comments: unknown[];
reccomendation: string;
open: boolean;
}
......@@ -68,26 +71,26 @@ interface Team extends IMutable, IAssignable {
interface TeamMember {
user: IActor;
status: string;
alias: Alias; //Alias;
alias: Alias; // Alias;
}
interface Alias extends PureIdentity{
interface Alias extends PureIdentity {
name: string;
}
export type LocalIdentifier = {
export interface LocalIdentifier {
name: string;
};
}
export type ExternalIdentifier = {
export interface ExternalIdentifier {
identifier: string;
type: string;
};
}
export interface PureIdentity extends IObject, IMutable {
email: string;
aff: string; // JATS <aff>
};
}
export interface LocalIdentity extends PureIdentity, LocalIdentifier {}
export interface ExternalIdentity extends PureIdentity, ExternalIdentifier {}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment