dataset-types 3.2.7 → 3.2.8
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/dataset-types-3.2.8.tgz +0 -0
- package/index.d.ts +19 -9
- package/index.js +0 -0
- package/package.json +1 -1
|
Binary file
|
package/index.d.ts
CHANGED
|
@@ -76,19 +76,29 @@ 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 IFileResult {
|
|
80
|
+
content: string;
|
|
81
|
+
contenttype: string;
|
|
82
|
+
filename: string;
|
|
83
|
+
metadata: any;
|
|
84
|
+
}
|
|
79
85
|
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
|
-
|
|
86
|
+
download2: (tenant: string, projectcontext: string, log: boolean, txmode: string, //production/development/test
|
|
87
|
+
filetype: string, level: string, reference: string, encoding: BufferEncoding) => Promise<IFileResult>;
|
|
88
|
+
downloadToFile: (localfilename: string, tenantid: string, projectcontext: string, log: boolean, filetype: string, level: string, reference: string, txmode: string) => Promise<IFileResult>;
|
|
89
|
+
sendBlock: (tenantid: string, projectcontext: string, log: boolean, //NOLOG or LOG file. This results in a different container
|
|
90
|
+
txmode: string, //production/development/test
|
|
91
|
+
filetype: string, //CSV, PDF,...
|
|
92
|
+
level: string, //Whether the files are stored at the LEVEL_TENANT or LEVEL_PROJECTCONTEXT
|
|
93
|
+
content: string, //This content to save
|
|
94
|
+
key: string, //blob id or filename
|
|
85
95
|
sliceNumber: number, totalSlices: number, meta: any, //meta data
|
|
86
96
|
tags: any) => void;
|
|
87
97
|
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,
|
|
98
|
+
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>;
|
|
99
|
+
remove: (tenantid: string, projectcontext: string, level: string, mode: string, name: string) => Promise<boolean>;
|
|
100
|
+
setMeta: (tenantid: string, projectcontext: string, level: string, mode: string, name: string, status: string) => Promise<boolean>;
|
|
101
|
+
getContainerName: (tenantid: string, projectcontext: string, level: string, log: boolean, txMode: string) => string;
|
|
92
102
|
}
|
|
93
103
|
export interface ILogService {
|
|
94
104
|
archive: (context: string, projectcontext: string, level: string, submissionid: string, username: string, log: ILog[], processingtype?: string) => Promise<string>;
|
package/index.js
CHANGED
|
File without changes
|