@datagrok-libraries/utils
Advanced tools
Comparing version
@@ -7,3 +7,3 @@ { | ||
"fullName": "Utils", | ||
"version": "1.9.7", | ||
"version": "1.10.1", | ||
"description": "Common utilities", | ||
@@ -10,0 +10,0 @@ "dependencies": { |
@@ -9,2 +9,22 @@ import * as DG from 'datagrok-api/dg'; | ||
export declare const INTERACTIVE_CSS_CLASS = "cv-interactive"; | ||
declare type DateOptions = 'Any time' | 'Today' | 'Yesterday' | 'This week' | 'Last week' | 'This month' | 'Last month' | 'This year' | 'Last year'; | ||
declare type FilterOptions = { | ||
text?: string | null; | ||
date?: DateOptions | null; | ||
author?: DG.User | null; | ||
}; | ||
export declare const defaultUsersIds: { | ||
Test: string; | ||
Admin: string; | ||
System: string; | ||
}; | ||
export declare const defaultGroupsIds: { | ||
'All users': string; | ||
Developers: string; | ||
'Need to create': string; | ||
Test: string; | ||
Admin: string; | ||
System: string; | ||
Administrators: string; | ||
}; | ||
export declare class FunctionView extends DG.ViewBase { | ||
@@ -147,3 +167,21 @@ protected readonly context: DG.Context; | ||
addRunToFavorites(callToFavorite: DG.FuncCall): Promise<DG.FuncCall>; | ||
onBeforeRemoveRunFromShared(callToShare: DG.FuncCall): Promise<void>; | ||
onAfterRemoveRunFromSahred(sharedCall: DG.FuncCall): Promise<void>; | ||
/** | ||
* Removes run from shared | ||
* @param callToUnshare FuncCall object to remove from shared | ||
* @returns Saved FuncCall | ||
* @stability Experimental | ||
*/ | ||
removeRunFromShared(callToUnshare: DG.FuncCall): Promise<DG.FuncCall>; | ||
onBeforeAddingToShared(callToAddToShared: DG.FuncCall): Promise<void>; | ||
onAfterAddingToShared(sharedCall: DG.FuncCall): Promise<void>; | ||
/** | ||
* Saves the run as shared | ||
* @param callToShare FuncCall object to add to shared | ||
* @returns Saved FuncCall | ||
* @stability Experimental | ||
*/ | ||
addRunToShared(callToShare: DG.FuncCall): Promise<DG.FuncCall>; | ||
/** | ||
* Called before saving the FUncCall results to the historical results, returns the saved call. See also {@link saveRun}. | ||
@@ -222,3 +260,8 @@ * @param callToSave FuncCall object to save | ||
*/ | ||
pullRuns(funcId: string): Promise<DG.FuncCall[]>; | ||
pullRuns(funcId: string, filterOptions?: FilterOptions, listOptions?: { | ||
pageSize?: number; | ||
pageNumber?: number; | ||
filter?: string; | ||
order?: string; | ||
}): Promise<DG.FuncCall[]>; | ||
/** | ||
@@ -265,2 +308,3 @@ * Called before actual computations are made {@link run}. | ||
} | ||
export {}; | ||
//# sourceMappingURL=function-view.d.ts.map |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
509772
9.39%4025
7.94%