dataset-types 3.0.31 → 3.0.33

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