@flashbacktech/flashbackclient 0.0.26 → 0.0.28

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.
@@ -8,6 +8,10 @@ export declare enum AccessType {
8
8
  WRITE = "WRITE",
9
9
  ADMIN = "ADMIN"
10
10
  }
11
+ export declare enum ModeType {
12
+ NORMAL = "NORMAL",
13
+ MIRROR = "MIRROR"
14
+ }
11
15
  export interface CreateUnitRequest {
12
16
  name: string;
13
17
  bucket: string;
@@ -22,10 +26,15 @@ export interface CreateUnitResponse {
22
26
  success: boolean;
23
27
  unitId: string;
24
28
  }
29
+ export interface RepoUnitInfo {
30
+ id: string;
31
+ folder: string;
32
+ }
25
33
  export interface CreateRepoRequest {
26
34
  name: string;
27
35
  storageType: StorageType;
28
- storageUnitIds: string[];
36
+ mode: ModeType;
37
+ repoUnits: RepoUnitInfo[];
29
38
  }
30
39
  export interface CreateRepoResponse {
31
40
  success: boolean;
package/dist/api/types.js CHANGED
@@ -10,3 +10,8 @@ export var AccessType;
10
10
  AccessType["WRITE"] = "WRITE";
11
11
  AccessType["ADMIN"] = "ADMIN";
12
12
  })(AccessType || (AccessType = {}));
13
+ export var ModeType;
14
+ (function (ModeType) {
15
+ ModeType["NORMAL"] = "NORMAL";
16
+ ModeType["MIRROR"] = "MIRROR";
17
+ })(ModeType || (ModeType = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flashbacktech/flashbackclient",
3
- "version": "0.0.26",
3
+ "version": "0.0.28",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },