dataset-types 3.2.7 → 3.2.9
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 -9
- package/index.js +0 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -76,19 +76,60 @@ export interface IModelService {
|
|
|
76
76
|
upsert: (type: string, entity: any[]) => Promise<IPersistResult>;
|
|
77
77
|
upsertBatch: (type: string, entity: any[]) => Promise<IPersistResult>;
|
|
78
78
|
}
|
|
79
|
+
export interface IColumn {
|
|
80
|
+
name: string;
|
|
81
|
+
displayName?: string;
|
|
82
|
+
tooltip?: string;
|
|
83
|
+
type: string;
|
|
84
|
+
label: string;
|
|
85
|
+
options: string[];
|
|
86
|
+
valueRange?: string;
|
|
87
|
+
default?: string;
|
|
88
|
+
derivation?: string;
|
|
89
|
+
required?: boolean;
|
|
90
|
+
distinct?: boolean;
|
|
91
|
+
width?: string;
|
|
92
|
+
truncate?: boolean;
|
|
93
|
+
defaultValue?: string | number;
|
|
94
|
+
groupName?: string;
|
|
95
|
+
}
|
|
96
|
+
export interface IColumnGroup {
|
|
97
|
+
name: string;
|
|
98
|
+
columns: string[];
|
|
99
|
+
}
|
|
100
|
+
export interface ITable {
|
|
101
|
+
file: string;
|
|
102
|
+
name: string;
|
|
103
|
+
dataname?: string;
|
|
104
|
+
options: string[];
|
|
105
|
+
rows?: string[];
|
|
106
|
+
columns: IColumn[];
|
|
107
|
+
columnGroups?: IColumnGroup[];
|
|
108
|
+
helpFileName?: string;
|
|
109
|
+
}
|
|
110
|
+
export interface IFileResult {
|
|
111
|
+
content: string;
|
|
112
|
+
contenttype: string;
|
|
113
|
+
filename: string;
|
|
114
|
+
metadata: any;
|
|
115
|
+
}
|
|
79
116
|
export interface IFileService {
|
|
80
|
-
download2: (tenant: string,
|
|
81
|
-
filetype: string, level: string, reference: string, encoding: BufferEncoding) => Promise<
|
|
82
|
-
downloadToFile: (localfilename: string, tenantid: string,
|
|
83
|
-
sendBlock: (tenantid: string,
|
|
84
|
-
|
|
117
|
+
download2: (tenant: string, projectcontext: string, log: boolean, txmode: string, //production/development/test
|
|
118
|
+
filetype: string, level: string, reference: string, encoding: BufferEncoding) => Promise<IFileResult>;
|
|
119
|
+
downloadToFile: (localfilename: string, tenantid: string, projectcontext: string, log: boolean, filetype: string, level: string, reference: string, txmode: string) => Promise<IFileResult>;
|
|
120
|
+
sendBlock: (tenantid: string, projectcontext: string, log: boolean, //NOLOG or LOG file. This results in a different container
|
|
121
|
+
txmode: string, //production/development/test
|
|
122
|
+
filetype: string, //CSV, PDF,...
|
|
123
|
+
level: string, //Whether the files are stored at the LEVEL_TENANT or LEVEL_PROJECTCONTEXT
|
|
124
|
+
content: string, //This content to save
|
|
125
|
+
key: string, //blob id or filename
|
|
85
126
|
sliceNumber: number, totalSlices: number, meta: any, //meta data
|
|
86
127
|
tags: any) => void;
|
|
87
128
|
copy: (sourceContainer: string, sourceFile: string, targetContainer: string, targetFile: string) => Promise<void>;
|
|
88
|
-
list: (tenantid: string,
|
|
89
|
-
remove: (tenantid: string,
|
|
90
|
-
setMeta: (tenantid: string,
|
|
91
|
-
getContainerName: (tenantid: string,
|
|
129
|
+
list: (tenantid: string, projectcontext: string, log: boolean, page: number, pageSize: number, term: string, mode: string, recordtype: string, level: string, enabled: boolean, order: string) => Promise<IDatasetFiles>;
|
|
130
|
+
remove: (tenantid: string, projectcontext: string, level: string, mode: string, name: string) => Promise<boolean>;
|
|
131
|
+
setMeta: (tenantid: string, projectcontext: string, level: string, mode: string, name: string, status: string) => Promise<boolean>;
|
|
132
|
+
getContainerName: (tenantid: string, projectcontext: string, level: string, log: boolean, txMode: string) => string;
|
|
92
133
|
}
|
|
93
134
|
export interface ILogService {
|
|
94
135
|
archive: (context: string, projectcontext: string, level: string, submissionid: string, username: string, log: ILog[], processingtype?: string) => Promise<string>;
|
|
@@ -243,6 +284,7 @@ export interface IManageDataSetConfiguration {
|
|
|
243
284
|
[datatype: string]: HOOK_USE_DATA;
|
|
244
285
|
};
|
|
245
286
|
validators: any;
|
|
287
|
+
groupColumns: (dt: IDatasetTable, b: boolean) => ITable | undefined;
|
|
246
288
|
}
|
|
247
289
|
export type API_POST_SAMPLE = (source: string) => Promise<ICommandResult>;
|
|
248
290
|
export type API_POST_REPLAY = (source: string, logs: ILog[]) => Promise<ICommandResult>;
|
package/index.js
CHANGED
|
File without changes
|