zek 17.3.74 → 17.3.75

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,14 +1,14 @@
1
- export declare class FileBase {
2
- id?: number | null;
1
+ export interface IFileBase<TId = number, TContent = string> {
2
+ id?: TId | null;
3
+ key?: string | null;
3
4
  fileName?: string | null;
4
- fileType?: string | null;
5
+ extension?: string | null;
6
+ mediaType?: string | null;
5
7
  fileSize?: number | null;
8
+ hash?: string | null;
9
+ createDate?: Date | null;
6
10
  isDeleted?: boolean | null;
11
+ content?: TContent | null;
7
12
  }
8
- export declare class FileString extends FileBase {
9
- data?: string | null;
10
- constructor(init?: Partial<FileString>);
11
- }
12
- export declare class FileBytes extends FileBase {
13
- constructor(init?: Partial<FileString>);
13
+ export interface IFileString extends IFileBase<number, string> {
14
14
  }
@@ -1,5 +1,8 @@
1
+ import { IFileString } from "../models";
1
2
  export declare class Base64Helper {
2
3
  static utf8ToBase64String(str: string): string;
3
4
  static base64StringToUtf8(str: string): string;
4
5
  static base64StringToBlob(str: string, type?: string): Blob;
6
+ static fileToDataUrl(file: File): Promise<IFileString>;
7
+ static fileToBase64String(file: File): Promise<IFileString>;
5
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zek",
3
- "version": "17.3.74",
3
+ "version": "17.3.75",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.3.0",
6
6
  "@angular/core": "^17.3.0"