gemcap-be-common 1.5.141 → 1.5.142

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.
@@ -1,3 +1,4 @@
1
+ /// <reference types="node" />
1
2
  /// <reference types="mongoose/types/aggregate" />
2
3
  /// <reference types="mongoose/types/callback" />
3
4
  /// <reference types="mongoose/types/collection" />
@@ -29,6 +30,23 @@ export type TFileMetadataItem = {
29
30
  role: string;
30
31
  source: 'uploaded' | 'existing';
31
32
  };
33
+ export type TFileUploadContext = {
34
+ userId: string;
35
+ source: string;
36
+ taskId: string;
37
+ };
38
+ export type TUploadedFile = {
39
+ fieldname: string;
40
+ originalname: string;
41
+ mimetype: string;
42
+ size: number;
43
+ buffer: Buffer;
44
+ };
45
+ export type TUploadFilesParams = {
46
+ files: TUploadedFile[];
47
+ filesMetadata: TFileMetadataItem[];
48
+ context: TFileUploadContext;
49
+ };
32
50
  export declare const FILE_BUCKET: {
33
51
  readonly compliance: "compliance";
34
52
  readonly CRM: "crm";
@@ -9,6 +9,26 @@ export type TFileMetadataItem = {
9
9
  source: 'uploaded' | 'existing';
10
10
  };
11
11
 
12
+ export type TFileUploadContext = {
13
+ userId: string;
14
+ source: string;
15
+ taskId: string;
16
+ };
17
+
18
+ export type TUploadedFile = {
19
+ fieldname: string;
20
+ originalname: string;
21
+ mimetype: string;
22
+ size: number;
23
+ buffer: Buffer;
24
+ };
25
+
26
+ export type TUploadFilesParams = {
27
+ files: TUploadedFile[];
28
+ filesMetadata: TFileMetadataItem[];
29
+ context: TFileUploadContext;
30
+ };
31
+
12
32
  export const FILE_BUCKET = {
13
33
  compliance: 'compliance',
14
34
  CRM: 'crm',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gemcap-be-common",
3
- "version": "1.5.141",
3
+ "version": "1.5.142",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {