dataset-types 3.0.36 → 3.0.38

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 +6 -1
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -215,6 +215,10 @@ export interface IManageDataSetConfiguration {
215
215
  [datatype: string]: IDataGridAction<any>[];
216
216
  };
217
217
  cleantransform?: ICleanTransformCallback;
218
+ filter?: {
219
+ name: string;
220
+ filter: IFilterCallback;
221
+ };
218
222
  getIDsforData?: IGetIdsForDataCallback;
219
223
  getDataByID?: IGetDataByIdsCallback;
220
224
  combineExistingAndUpdate?: ICombineExistingAndUpdateCallback;
@@ -300,8 +304,9 @@ export type IDatasetsPackage = {
300
304
  [datatype: string]: IDatasetTable;
301
305
  };
302
306
  export type ICleanTransformCallback = (data: IDatasetTable, datatype: string) => IDatasetsPackage;
307
+ export type IFilterCallback = (datatype: string, row: any) => boolean;
303
308
  export type IGetIdsForDataCallback = (datatype: string, data: IDatasetTable) => string[];
304
- export type IGetDataByIdsCallback = (datatype: string, ids: string[]) => IDatasetTable;
309
+ export type IGetDataByIdsCallback = (datatype: string, ids: string[]) => Promise<IDatasetTable>;
305
310
  export type ICombineExistingAndUpdateCallback = (datatype: string, updatedata: IDatasetTable, existing: IDatasetTable) => Promise<IDatasetTable>;
306
311
  export type IFileChoiceCallback = () => IFileSelection[];
307
312
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dataset-types",
3
- "version": "3.0.36",
3
+ "version": "3.0.38",
4
4
  "scripts": {
5
5
  "start": "npm run build && npm run package",
6
6
  "build": "tsc --rootDir 'src/types' --outDir './dist'",