@companix/utils-js 0.0.37 → 0.0.38

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.
@@ -16,12 +16,20 @@ export interface MetaFile {
16
16
  originalname: string;
17
17
  size: number;
18
18
  }
19
+ export interface PhotoPreview {
20
+ size: 's' | 'm' | 'base';
21
+ width: number;
22
+ height: number;
23
+ filename: string;
24
+ }
19
25
  export declare namespace FileType {
20
- interface Photo extends Omit<MetaFile, 'originalname'> {
26
+ interface Photo extends MetaFile {
21
27
  type: 'photo';
22
- width: number;
23
- height: number;
24
- originalname?: string;
28
+ origphoto: {
29
+ width: number;
30
+ height: number;
31
+ };
32
+ previews: PhotoPreview[];
25
33
  }
26
34
  interface Video extends MetaFile {
27
35
  type: 'video';
@@ -29,6 +37,7 @@ export declare namespace FileType {
29
37
  }
30
38
  interface Document extends MetaFile {
31
39
  type: 'document';
40
+ extension: string;
32
41
  }
33
42
  }
34
43
  export type FilesTypes = FileType.Photo | FileType.Video | FileType.Document;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@companix/utils-js",
3
- "version": "0.0.37",
3
+ "version": "0.0.38",
4
4
  "main": "dist/bundle.cjs.js",
5
5
  "module": "dist/bundle.esm.js",
6
6
  "types": "./dist/index.d.ts",