dataset-types 3.2.6 → 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.
Binary file
package/index.d.ts CHANGED
@@ -30,7 +30,7 @@ export interface INamedEntity extends IEntity, IName, IContext {
30
30
  }
31
31
  export interface ITimed {
32
32
  createdBy: string;
33
- createdAt: Date;
33
+ createdAt: Date | string;
34
34
  effective?: string;
35
35
  }
36
36
  export interface IDocumentReference extends IDataRow {
@@ -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, context: string, log: boolean, txmode: string, //production/development/test
81
- filetype: string, level: string, reference: string, encoding: BufferEncoding) => Promise<String | null>;
82
- downloadToFile: (localfilename: string, tenantid: string, context: string, log: boolean, filetype: string, level: string, reference: string, txmode: string) => Promise<any>;
83
- sendBlock: (tenantid: string, context: string, log: boolean, txmode: string, //production/development/test
84
- filetype: string, level: string, content: string, key: string, //blob id
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, context: string, log: boolean, page: number, pageSize: number, term: string, mode: string, recordtype: string, level: string, enabled: boolean, order: string) => Promise<IDatasetFiles>;
89
- remove: (tenantid: string, context: string, level: string, mode: string, name: string) => Promise<boolean>;
90
- setMeta: (tenantid: string, context: string, level: string, mode: string, name: string, status: string) => Promise<boolean>;
91
- getContainerName: (tenantid: string, context: string, level: string, log: boolean, txMode: string) => 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dataset-types",
3
- "version": "3.2.6",
3
+ "version": "3.2.8",
4
4
  "scripts": {
5
5
  "start": "npm run build && npm run package",
6
6
  "build": "tsc --rootDir 'src/types' --outDir './dist'",