@budibase/pro 3.39.31 → 3.40.0
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BackupFetchOpts, BackupStatus, BackupTrigger, WorkspaceBackupContents, WorkspaceBackupMetadata } from "@budibase/types";
|
|
1
|
+
import { BackupFetchOpts, BackupStatus, BackupTrigger, WorkspaceBackup, WorkspaceBackupContents, WorkspaceBackupMetadata } from "@budibase/types";
|
|
2
2
|
import * as features from "../features";
|
|
3
3
|
/**
|
|
4
4
|
* Rather than exporting functions directly from licensed sdks,
|
|
@@ -16,12 +16,12 @@ declare const pkg: {
|
|
|
16
16
|
name?: string;
|
|
17
17
|
} | undefined) => Promise<Promise<string | undefined>>;
|
|
18
18
|
getBackupDownloadStream: (backupId: string) => Promise<Promise<{
|
|
19
|
-
metadata:
|
|
19
|
+
metadata: WorkspaceBackup;
|
|
20
20
|
stream: import("stream").Readable;
|
|
21
21
|
}>>;
|
|
22
22
|
downloadWorkspaceBackup: (backupId: string) => Promise<Promise<string>>;
|
|
23
23
|
fetchWorkspaceBackups: (workspaceId: string, opts?: BackupFetchOpts | undefined) => Promise<Promise<{
|
|
24
|
-
data:
|
|
24
|
+
data: WorkspaceBackup[];
|
|
25
25
|
hasNextPage: boolean;
|
|
26
26
|
nextPage?: string;
|
|
27
27
|
totalRows: number;
|
|
@@ -31,7 +31,7 @@ declare const pkg: {
|
|
|
31
31
|
} | undefined) => Promise<Promise<import("@budibase/types").PutResponse>>;
|
|
32
32
|
updateBackupStatus: (id: string, status: BackupStatus, contents?: WorkspaceBackupContents | undefined, filename?: string | undefined) => Promise<Promise<import("@budibase/types").PutResponse>>;
|
|
33
33
|
updateRestoreStatus: (id: string, rev: string, status: BackupStatus) => Promise<Promise<import("@budibase/types").PutResponse>>;
|
|
34
|
-
getWorkspaceBackup: (backupId: string) => Promise<Promise<
|
|
34
|
+
getWorkspaceBackup: (backupId: string) => Promise<Promise<WorkspaceBackup>>;
|
|
35
35
|
updateWorkspaceBackup: (backupId: string, backupName: string) => Promise<Promise<import("@budibase/types").PutResponse>>;
|
|
36
36
|
deleteWorkspaceBackup: (backupId: string) => Promise<Promise<void>>;
|
|
37
37
|
deleteWorkspaceBackups: (backupIds: string[]) => Promise<Promise<({
|
|
@@ -43,6 +43,10 @@ declare const pkg: {
|
|
|
43
43
|
success: boolean;
|
|
44
44
|
error: string;
|
|
45
45
|
})[]>>;
|
|
46
|
+
cleanupExpiredWorkspaceBackups: () => Promise<Promise<{
|
|
47
|
+
deleted: number;
|
|
48
|
+
failed: number;
|
|
49
|
+
}>>;
|
|
46
50
|
trackBackupError: (workspaceId: string, backupId: string, error: string) => Promise<Promise<void>>;
|
|
47
51
|
};
|
|
48
52
|
export default pkg;
|
|
@@ -42,6 +42,10 @@ declare const _default: {
|
|
|
42
42
|
success: boolean;
|
|
43
43
|
error: string;
|
|
44
44
|
})[]>>;
|
|
45
|
+
cleanupExpiredWorkspaceBackups: () => Promise<Promise<{
|
|
46
|
+
deleted: number;
|
|
47
|
+
failed: number;
|
|
48
|
+
}>>;
|
|
45
49
|
trackBackupError: (workspaceId: string, backupId: string, error: string) => Promise<Promise<void>>;
|
|
46
50
|
};
|
|
47
51
|
export default _default;
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"dist"
|
|
5
5
|
],
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
|
-
"version": "3.
|
|
7
|
+
"version": "3.40.0",
|
|
8
8
|
"description": "Budibase Pro (Backend)",
|
|
9
9
|
"main": "dist/index.js",
|
|
10
10
|
"types": "dist/index.d.ts",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "62b41fe729da5a2d00ad2fda5b400c117575402c"
|
|
70
70
|
}
|