@e-mc/cloud 0.2.0 → 0.3.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-mc/cloud",
3
- "version": "0.2.0",
3
+ "version": "0.3.1",
4
4
  "description": "Cloud constructor for E-mc.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -20,8 +20,8 @@
20
20
  "license": "BSD 3-Clause",
21
21
  "homepage": "https://github.com/anpham6/e-mc#readme",
22
22
  "dependencies": {
23
- "@e-mc/core": "0.2.0",
24
- "@e-mc/db": "0.2.0",
25
- "@e-mc/types": "0.2.0"
23
+ "@e-mc/core": "0.3.1",
24
+ "@e-mc/db": "0.3.1",
25
+ "@e-mc/types": "0.3.1"
26
26
  }
27
27
  }
@@ -1,6 +1,6 @@
1
- import type { ICloud, IFileManager, IModule, IScopeOrigin } from '../types/lib';
2
- import type { BucketWebsiteOptions, CloudAsset, CloudDatabase, CloudService, CloudStorageUpload, DownloadData, UploadData } from '../types/lib/cloud';
3
- import type { BatchQueryResult, QueryResult } from '../types/lib/db';
1
+ import type { ICloud, IFileManager, IModule, IScopeOrigin } from '../../types/lib';
2
+ import type { BucketWebsiteOptions, CloudAsset, CloudDatabase, CloudService, CloudStorageUpload, DownloadData, UploadData } from '../../types/lib/cloud';
3
+ import type { BatchQueryResult, QueryResult } from '../../types/lib/db';
4
4
 
5
5
  export interface ICloudServiceClient<T extends CloudDatabase = CloudDatabase> {
6
6
  validateStorage?(credential: unknown, data?: CloudService): boolean;
@@ -17,7 +17,7 @@ export interface ICloudServiceClient<T extends CloudDatabase = CloudDatabase> {
17
17
  executeBatchQuery?(this: ICloud, credential: unknown, batch: T[], sessionKey?: string): Promise<BatchQueryResult>;
18
18
  }
19
19
 
20
- export interface CloudScopeOrigin<T extends IFileManager<U>, U extends CloudAsset = CloudAsset, V extends ICloud = ICloud> extends Required<IScopeOrigin<T, V>> {
20
+ export interface CloudScopeOrigin<T extends IFileManager<U>, U extends CloudAsset = CloudAsset, V extends ICloud = ICloud<T>> extends Required<IScopeOrigin<T, V>> {
21
21
  bucketGroup: string;
22
22
  localStorage: Map<U, CloudStorageUpload>;
23
23
  }