@flashbacktech/flashbackclient 0.0.66 → 0.0.67
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.
|
@@ -49,6 +49,8 @@ export interface CreateRepoRequest {
|
|
|
49
49
|
}
|
|
50
50
|
export interface CreateRepoResponse {
|
|
51
51
|
success: boolean;
|
|
52
|
+
error_code?: RepoErrorCodes;
|
|
53
|
+
error_message?: string;
|
|
52
54
|
repoId: string;
|
|
53
55
|
}
|
|
54
56
|
export interface UpdateRepoRequest extends CreateRepoRequest {
|
|
@@ -136,6 +138,13 @@ export interface ValidateRepoUnitsResponse {
|
|
|
136
138
|
error_message?: string;
|
|
137
139
|
}
|
|
138
140
|
export declare enum RepoErrorCodes {
|
|
141
|
+
SUCCESS = "SUCCESS",
|
|
142
|
+
NOT_FOUND = "NOT_FOUND",
|
|
143
|
+
NAME_ALREADY_USED = "NAME_ALREADY_USED",
|
|
139
144
|
MIRROR_MASTER_UNIT_COUNT_INVALID = "MIRROR_MASTER_UNIT_COUNT_INVALID",
|
|
140
|
-
|
|
145
|
+
MIRROR_MASTER_UNIT_MISSING = "MIRROR_MASTER_UNIT_MISSING",
|
|
146
|
+
MIRROR_UNIT_ALREADY_IN_OTHER_REPO = "MIRROR_UNIT_ALREADY_IN_OTHER_REPO",
|
|
147
|
+
NORMAL_UNIT_FOLDER_ALREADY_USED = "NORMAL_UNIT_FOLDER_ALREADY_USED",
|
|
148
|
+
NORMAL_UNIT_CANNOT_DELETE = "NORMAL_UNIT_FOLDER_CANNOT_DELETE",
|
|
149
|
+
NORMAL_UNIT_CANNOT_EDIT_FOLDER = "NORMAL_UNIT_CANNOT_EDIT_FOLDER"
|
|
141
150
|
}
|
|
@@ -20,6 +20,13 @@ var ModeType;
|
|
|
20
20
|
})(ModeType || (exports.ModeType = ModeType = {}));
|
|
21
21
|
var RepoErrorCodes;
|
|
22
22
|
(function (RepoErrorCodes) {
|
|
23
|
+
RepoErrorCodes["SUCCESS"] = "SUCCESS";
|
|
24
|
+
RepoErrorCodes["NOT_FOUND"] = "NOT_FOUND";
|
|
25
|
+
RepoErrorCodes["NAME_ALREADY_USED"] = "NAME_ALREADY_USED";
|
|
23
26
|
RepoErrorCodes["MIRROR_MASTER_UNIT_COUNT_INVALID"] = "MIRROR_MASTER_UNIT_COUNT_INVALID";
|
|
27
|
+
RepoErrorCodes["MIRROR_MASTER_UNIT_MISSING"] = "MIRROR_MASTER_UNIT_MISSING";
|
|
24
28
|
RepoErrorCodes["MIRROR_UNIT_ALREADY_IN_OTHER_REPO"] = "MIRROR_UNIT_ALREADY_IN_OTHER_REPO";
|
|
29
|
+
RepoErrorCodes["NORMAL_UNIT_FOLDER_ALREADY_USED"] = "NORMAL_UNIT_FOLDER_ALREADY_USED";
|
|
30
|
+
RepoErrorCodes["NORMAL_UNIT_CANNOT_DELETE"] = "NORMAL_UNIT_FOLDER_CANNOT_DELETE";
|
|
31
|
+
RepoErrorCodes["NORMAL_UNIT_CANNOT_EDIT_FOLDER"] = "NORMAL_UNIT_CANNOT_EDIT_FOLDER";
|
|
25
32
|
})(RepoErrorCodes || (exports.RepoErrorCodes = RepoErrorCodes = {}));
|