dataset-types 3.0.3 → 3.0.5
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.
- package/index.d.ts +51 -7
- package/package.json +1 -1
- package/dataset-types-3.0.3.tgz +0 -0
package/index.d.ts
CHANGED
|
@@ -5,6 +5,11 @@ export interface ICommandResult {
|
|
|
5
5
|
entity?: any;
|
|
6
6
|
log?: any[];
|
|
7
7
|
}
|
|
8
|
+
export interface IResults<Type> {
|
|
9
|
+
isLoading: boolean;
|
|
10
|
+
rows: Type[];
|
|
11
|
+
pageInfo?: any;
|
|
12
|
+
}
|
|
8
13
|
export interface IContext {
|
|
9
14
|
context: string;
|
|
10
15
|
}
|
|
@@ -102,19 +107,26 @@ export interface ILog {
|
|
|
102
107
|
documentId?: string;
|
|
103
108
|
name?: string;
|
|
104
109
|
localfilename?: string;
|
|
105
|
-
|
|
106
|
-
user?: string;
|
|
110
|
+
user: string;
|
|
107
111
|
meta: {
|
|
108
112
|
documenttype: string;
|
|
109
|
-
context
|
|
113
|
+
context: string;
|
|
114
|
+
projectcontext: string;
|
|
110
115
|
entity?: string;
|
|
111
|
-
user?: string;
|
|
112
|
-
createdat?: string;
|
|
113
|
-
recordstatus?: string;
|
|
114
|
-
effective?: string;
|
|
115
116
|
};
|
|
116
117
|
document?: IDocument;
|
|
118
|
+
processing?: any[];
|
|
117
119
|
rawdata?: any[];
|
|
120
|
+
transformeddata?: any[];
|
|
121
|
+
content_mappings?: any[];
|
|
122
|
+
enriched_contentmappings?: any[];
|
|
123
|
+
enricheddata?: any[];
|
|
124
|
+
persisted_data_result?: any[];
|
|
125
|
+
classifieddata?: any[];
|
|
126
|
+
filetype?: string;
|
|
127
|
+
filter?: any;
|
|
128
|
+
error?: string;
|
|
129
|
+
archiveid?: string;
|
|
118
130
|
}
|
|
119
131
|
export interface IUser {
|
|
120
132
|
id: string;
|
|
@@ -138,4 +150,36 @@ export type IDatasetFiles = {
|
|
|
138
150
|
files: IDatasetFile[];
|
|
139
151
|
};
|
|
140
152
|
export type IDayRange = number[];
|
|
153
|
+
export interface IDataLockable extends IEntity {
|
|
154
|
+
locked: boolean;
|
|
155
|
+
lockedBy?: string;
|
|
156
|
+
}
|
|
157
|
+
export interface IDataArchivable extends IEntity {
|
|
158
|
+
archived: boolean;
|
|
159
|
+
archivedBy?: string;
|
|
160
|
+
}
|
|
161
|
+
export type IProject = IDataLockable & IDataArchivable & {
|
|
162
|
+
description: string;
|
|
163
|
+
updatedBy: string;
|
|
164
|
+
updatedAt: Date;
|
|
165
|
+
createdBy: string;
|
|
166
|
+
createdAt: Date;
|
|
167
|
+
Categories?: ICategory[];
|
|
168
|
+
};
|
|
169
|
+
export interface ICategory extends IEntity {
|
|
170
|
+
colour: number;
|
|
171
|
+
Projects?: IProject[];
|
|
172
|
+
}
|
|
173
|
+
export interface IActionContext {
|
|
174
|
+
callback: () => void;
|
|
175
|
+
permissions: IPermission[];
|
|
176
|
+
logidsSet: (logs: ILogStatus[]) => void;
|
|
177
|
+
}
|
|
178
|
+
export type IGridAction<Type> = (d: Type, ac: IActionContext | null) => Promise<boolean>;
|
|
179
|
+
export type IGridActionDisabled<Type> = (d: Type, ac: IActionContext | null) => boolean;
|
|
180
|
+
export interface IDataGridAction<Type> {
|
|
181
|
+
label: string;
|
|
182
|
+
disabled?: IGridActionDisabled<Type>;
|
|
183
|
+
onClick?: IGridAction<Type>;
|
|
184
|
+
}
|
|
141
185
|
export {};
|
package/package.json
CHANGED
package/dataset-types-3.0.3.tgz
DELETED
|
Binary file
|