dataset-types 3.0.6 → 3.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.d.ts +7 -1
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -12,6 +12,7 @@ export interface IResults<Type> {
12
12
  }
13
13
  export interface IContext {
14
14
  context: string;
15
+ projectcontext: string;
15
16
  }
16
17
  export interface IName {
17
18
  name: string;
@@ -166,10 +167,15 @@ export type IProject = IDataLockable & IDataArchivable & {
166
167
  createdAt: Date;
167
168
  Categories?: ICategory[];
168
169
  };
169
- export interface ICategory extends IEntity {
170
+ export interface ICategory extends INamedEntity {
170
171
  colour: number;
171
172
  Projects?: IProject[];
172
173
  }
174
+ export interface IAction {
175
+ name: (item: any) => string;
176
+ icon: (item: any) => string;
177
+ action: (item: any) => void;
178
+ }
173
179
  export interface IActionContext {
174
180
  callback: () => void;
175
181
  permissions: IPermission[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dataset-types",
3
- "version": "3.0.6",
3
+ "version": "3.0.9",
4
4
  "scripts": {
5
5
  "start": "npm run build && npm run package",
6
6
  "build": "tsc --rootDir 'src/types' --outDir './dist'",