/** * Copyright Linkurious SAS 2012 - 2019 * * - Created on 2019-09-30. */ export interface GenericObject { [key: string]: T; } export declare enum SortDirection { ASC = "asc", DESC = "desc" } export interface PaginatedResponse { totalCount: number; items: T[]; } export interface PaginationClause { offset?: number; limit?: number; } export interface PaginationGenerator { (pageSize: number): PaginationClause; } export interface IDataSourceParams { sourceKey?: string; } export interface IGetSubGraphParams extends IDataSourceParams { edgesTo?: string[]; withDigest?: boolean; withDegree?: boolean; } export declare enum SharingMode { PRIVATE = "private", SOURCE = "source", GROUPS = "groups" } export interface SharingOptions { sharing: SharingMode; sharedWithGroups?: number[]; } export interface PersistedItem { id: number; createdAt: string; updatedAt: string; } export type FolderChildren = Array | (T & { type: N; })>; export interface Folder { id: number; title: string; type: 'folder'; children: FolderChildren; } export interface Tree { id: -1; title: 'root'; type: 'folder'; children: FolderChildren; } export type DummyCopy = { [K in keyof T]: T[K]; }; /** * Set as required the properties K in T */ export type RequiredProps = DummyCopy; export declare enum CurrencyFormat { SYMBOL_COMMAS_DOT = "[Symbol] #,###.##", DOTS_COMMA_SYMBOL = "#.###,## [Symbol]", SPACES_COMMA_SYMBOL = "# ###,## [Symbol]", SYMBOL_COMMAS = "[Symbol] #,###", DOTS_SYMBOL = "#.### [Symbol]", SPACES_SYMBOL = "# ### [Symbol]" } export interface ICurrencyOptions { type: 'currency'; format: CurrencyFormat; symbol?: string; } export interface CommentMention { position: number; length: number; user: MentionedUser; } export interface DeletableUser { username: string; email: string; } export interface MentionedUser extends DeletableUser { hasAccess: boolean; }