dataset-types 3.0.10 → 3.0.11

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 +39 -0
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -189,4 +189,43 @@ export interface IDataGridAction<Type> {
189
189
  disabled?: IGridActionDisabled<Type>;
190
190
  onClick?: IGridAction<Type>;
191
191
  }
192
+ export interface IManageDataSetConfiguration {
193
+ context: string;
194
+ projectcontext: string;
195
+ name: string;
196
+ datatype: string;
197
+ datatypeSet: (type: string) => void;
198
+ datatype_meta?: IDataTypeMeta[];
199
+ columns: {
200
+ [datatype: string]: any[];
201
+ };
202
+ required_permission: string;
203
+ permissions: IPermission[];
204
+ actions?: IDataGridAction<IDocument>[];
205
+ dataactions?: {
206
+ [datatype: string]: IDataGridAction<any>[];
207
+ };
208
+ createDocument?: (d: IDocument, stuff: any) => Promise<ICommandResult>;
209
+ queryValidationData?: (datatype: string, entities: string[]) => Promise<ICommandResult>;
210
+ queryRecords?: (documenttype: string, datatype: string, encoding: string) => Promise<ICommandResult>;
211
+ postFileSlice?: (filetype: string, content: string | ArrayBuffer, name: string, documenttype: string, sliceNumber: number, totalSlices: number, meta: any) => Promise<ICommandResult>;
212
+ postReplay: {
213
+ [datatype: string]: API_POST_REPLAY;
214
+ };
215
+ useConfigurationItems?: (context: string, itemtype: string, hash: number, page: number, pageSize: number) => IResults<IConfigurationItem>;
216
+ useDocuments?: (context: string, projectcontext: string, associated: string[], entity_type: string, entities: string[], entity: string, filetype: string, search: string, hash: number, page: number, pageSize: number, timeperiod: IDayRange | null) => IResults<IDocument>;
217
+ useData: {
218
+ [datatype: string]: HOOK_USE_DATA;
219
+ };
220
+ validators: any;
221
+ }
222
+ export type API_POST_REPLAY = (source: string, logs: ILog[]) => Promise<ICommandResult>;
223
+ export type HOOK_USE_DATA = (context: string, projectcontext: string, datatype: string | undefined, entity: string, entities: string[], timeperiod: IDayRange | null, hash: number, page: number, pageSize: number, transform: ((d: any) => any) | null, allentities: boolean) => IResults<any>;
224
+ export interface IDataTypeMeta {
225
+ property: string;
226
+ description: string;
227
+ label: string;
228
+ tooltip: string;
229
+ value: (ci: IConfigurationItem) => string;
230
+ }
192
231
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dataset-types",
3
- "version": "3.0.10",
3
+ "version": "3.0.11",
4
4
  "scripts": {
5
5
  "start": "npm run build && npm run package",
6
6
  "build": "tsc --rootDir 'src/types' --outDir './dist'",