@trudb/tru-common-lib 0.0.854 → 0.0.856

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.
@@ -0,0 +1,17 @@
1
+ import { TruUser } from "./tru-user";
2
+ import { TruUtil } from "./tru-util";
3
+ import * as i0 from "@angular/core";
4
+ export declare class TruCloudFileManager {
5
+ private util;
6
+ private user;
7
+ private reader;
8
+ private file;
9
+ private sliceSize;
10
+ constructor(util: TruUtil, user: TruUser);
11
+ private getFileLength;
12
+ private uploadFile;
13
+ upload: (tableName: string, propertyName: string, fileData: File, temp: any, updateProgress: (progress: number) => {}, done: (response: any | undefined) => {}) => void;
14
+ download: (blobId: string, temp: any, filename: string, updateProgress: (progress: number) => {}, done: () => {}) => void;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruCloudFileManager, never>;
16
+ static ɵprov: i0.ɵɵInjectableDeclaration<TruCloudFileManager>;
17
+ }
@@ -9,6 +9,13 @@ export declare class TruUtil {
9
9
  isDate: (date: Date) => boolean;
10
10
  isValidDate: (value: string) => boolean;
11
11
  rulesEval: (styles: object | null) => object;
12
+ /**
13
+ * Serializes an object as URL parameters. The object should be a base type or have
14
+ * properties that are each base types. Does not support a property with structure.
15
+ * @param {Object} data
16
+ * @returns {String}
17
+ */
18
+ formatAsUrlParameters: (data: any) => string;
12
19
  static ɵfac: i0.ɵɵFactoryDeclaration<TruUtil, never>;
13
20
  static ɵprov: i0.ɵɵInjectableDeclaration<TruUtil>;
14
21
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trudb/tru-common-lib",
3
- "version": "0.0.854",
3
+ "version": "0.0.856",
4
4
  "type": "module",
5
5
  "peerDependencies": {},
6
6
  "dependencies": {
package/public-api.d.ts CHANGED
@@ -106,6 +106,7 @@ export * from './lib/interfaces/tru-value';
106
106
  export * from './lib/services/tru-app-environment';
107
107
  export * from './lib/services/tru-breeze-context-factory';
108
108
  export * from './lib/services/tru-breeze-metadata-provider';
109
+ export * from './lib/services/tru-cloud-file-manager';
109
110
  export * from './lib/services/tru-component-lookup';
110
111
  export * from './lib/services/tru-connection-hub';
111
112
  export * from './lib/services/tru-context-filters';