dataset-types 3.0.30 → 3.0.32

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 +10 -0
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -215,6 +215,8 @@ export interface IManageDataSetConfiguration {
215
215
  [datatype: string]: IDataGridAction<any>[];
216
216
  };
217
217
  cleantransform?: ICleanTransformCallback;
218
+ getDataByID?: IGetDataByIdsCallback;
219
+ combineExistingAndUpdate?: ICombineExistingAndUpdateCallback;
218
220
  createDocument?: (d: IDocument, stuff: any) => Promise<ICommandResult>;
219
221
  queryValidationData?: (datatype: string, entities: string[]) => Promise<ICommandResult>;
220
222
  queryRecords?: (documenttype: string, datatype: string, encoding: string) => Promise<ICommandResult>;
@@ -286,9 +288,17 @@ export interface ITenant extends IEntity, IName, ITimed, IContext {
286
288
  underlay: string;
287
289
  epsg: string;
288
290
  }
291
+ export interface IFileSelection {
292
+ id: string;
293
+ name: string;
294
+ datasource: any;
295
+ }
289
296
  export type IDatasetTable = any[];
290
297
  export type IDatasetsPackage = {
291
298
  [datatype: string]: IDatasetTable;
292
299
  };
293
300
  export type ICleanTransformCallback = (data: IDatasetTable, datatype: string) => IDatasetsPackage;
301
+ export type IGetDataByIdsCallback = (ids: string[], datatype: string) => IDatasetTable;
302
+ export type ICombineExistingAndUpdateCallback = (existing: IDatasetTable, updates: IDatasetTable) => IDatasetTable;
303
+ export type IFileChoiceCallback = () => IFileSelection[];
294
304
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dataset-types",
3
- "version": "3.0.30",
3
+ "version": "3.0.32",
4
4
  "scripts": {
5
5
  "start": "npm run build && npm run package",
6
6
  "build": "tsc --rootDir 'src/types' --outDir './dist'",