dataset-types 3.0.10 → 3.0.12

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 +40 -0
  2. package/package.json +2 -2
package/index.d.ts CHANGED
@@ -52,6 +52,7 @@ export interface IConfigurationItem extends INamedEntity, ITimed {
52
52
  baseline: string;
53
53
  dimension: string;
54
54
  datatypes: string;
55
+ group: string;
55
56
  }
56
57
  export type IPermission = String;
57
58
  export interface IRolePermission {
@@ -189,4 +190,43 @@ export interface IDataGridAction<Type> {
189
190
  disabled?: IGridActionDisabled<Type>;
190
191
  onClick?: IGridAction<Type>;
191
192
  }
193
+ export interface IManageDataSetConfiguration {
194
+ context: string;
195
+ projectcontext: string;
196
+ name: string;
197
+ datatype: string;
198
+ datatypeSet: (type: string) => void;
199
+ datatype_meta?: IDataTypeMeta[];
200
+ columns: {
201
+ [datatype: string]: any[];
202
+ };
203
+ required_permission: string;
204
+ permissions: IPermission[];
205
+ actions?: IDataGridAction<IDocument>[];
206
+ dataactions?: {
207
+ [datatype: string]: IDataGridAction<any>[];
208
+ };
209
+ createDocument?: (d: IDocument, stuff: any) => Promise<ICommandResult>;
210
+ queryValidationData?: (datatype: string, entities: string[]) => Promise<ICommandResult>;
211
+ queryRecords?: (documenttype: string, datatype: string, encoding: string) => Promise<ICommandResult>;
212
+ postFileSlice?: (filetype: string, content: string | ArrayBuffer, name: string, documenttype: string, sliceNumber: number, totalSlices: number, meta: any) => Promise<ICommandResult>;
213
+ postReplay: {
214
+ [datatype: string]: API_POST_REPLAY;
215
+ };
216
+ useConfigurationItems?: (context: string, itemtype: string, hash: number, page: number, pageSize: number) => IResults<IConfigurationItem>;
217
+ 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>;
218
+ useData: {
219
+ [datatype: string]: HOOK_USE_DATA;
220
+ };
221
+ validators: any;
222
+ }
223
+ export type API_POST_REPLAY = (source: string, logs: ILog[]) => Promise<ICommandResult>;
224
+ 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>;
225
+ export interface IDataTypeMeta {
226
+ property: string;
227
+ description: string;
228
+ label: string;
229
+ tooltip: string;
230
+ value: (ci: IConfigurationItem) => string;
231
+ }
192
232
  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.12",
4
4
  "scripts": {
5
5
  "start": "npm run build && npm run package",
6
6
  "build": "tsc --rootDir 'src/types' --outDir './dist'",
@@ -30,4 +30,4 @@
30
30
  "prettier": "^3.4.2",
31
31
  "typescript": "^5.7.2"
32
32
  }
33
- }
33
+ }