@diory/client-js 0.2.0-rc4 → 0.2.0-rc6

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.
package/dist/types.d.ts CHANGED
@@ -5,6 +5,9 @@ export interface IMetadata {
5
5
  name: string;
6
6
  created?: string;
7
7
  modified?: string;
8
+ duration?: string;
9
+ thumbnail?: string;
10
+ latlng?: string;
8
11
  }
9
12
  export interface IFileType {
10
13
  ext?: string;
@@ -24,7 +27,9 @@ export interface IDataClient {
24
27
  getFileNames(url: string): Promise<string[]>;
25
28
  getFolderNames(url: string): Promise<string[]>;
26
29
  getMetadata(url: string): IMetadata;
27
- getFileType(url: string): Promise<IFileType>;
30
+ getFileType?(url: string): Promise<IFileType>;
31
+ getThumbnail?(imageUrl: string): Promise<string | undefined>;
32
+ getVideoMetadata?(videoUrl: string): Promise<IMetadata>;
28
33
  }
29
34
  export interface IConnectionClient {
30
35
  type: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diory/client-js",
3
- "version": "0.2.0-rc4",
3
+ "version": "0.2.0-rc6",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "author": "Olli-Pekka Pohjola <op@diory.me>, Jouni Alanen <jouni@diory.me>",
package/src/types.ts CHANGED
@@ -11,6 +11,9 @@ export interface IMetadata {
11
11
  name: string
12
12
  created?: string
13
13
  modified?: string
14
+ duration?: string
15
+ thumbnail?: string
16
+ latlng?: string
14
17
  }
15
18
 
16
19
  export interface IFileType {
@@ -32,7 +35,9 @@ export interface IDataClient {
32
35
  getFileNames(url: string): Promise<string[]>
33
36
  getFolderNames(url: string): Promise<string[]>
34
37
  getMetadata(url: string): IMetadata
35
- getFileType(url: string): Promise<IFileType>
38
+ getFileType?(url: string): Promise<IFileType>
39
+ getThumbnail?(imageUrl: string): Promise<string | undefined>
40
+ getVideoMetadata?(videoUrl: string): Promise<IMetadata>
36
41
  }
37
42
 
38
43
  export interface IConnectionClient {