@budibase/pro 3.18.9 → 3.18.11
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/api/controllers/apps/backups.d.ts +4 -4
- package/dist/db/backups.d.ts +5 -5
- package/dist/db/quotas/utils.d.ts +1 -1
- package/dist/index.js +16 -16
- package/dist/sdk/backups/backup.d.ts +9 -9
- package/dist/sdk/backups/index.d.ts +8 -8
- package/dist/sdk/backups/queue.d.ts +2 -2
- package/dist/sdk/environmentVariables/environmentVariables.d.ts +2 -2
- package/dist/types/init.d.ts +2 -2
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BackupFetchOpts, BackupStatus, BackupTrigger, WorkspaceBackupContents, WorkspaceBackupMetadata } from "@budibase/types";
|
|
2
2
|
import * as features from "../features";
|
|
3
3
|
/**
|
|
4
4
|
* Rather than exporting functions directly from licensed sdks,
|
|
@@ -11,26 +11,26 @@ declare const pkg: {
|
|
|
11
11
|
restoreId: string;
|
|
12
12
|
metadata: any;
|
|
13
13
|
}>>;
|
|
14
|
-
triggerAppBackup: (appId: string, trigger:
|
|
14
|
+
triggerAppBackup: (appId: string, trigger: BackupTrigger, opts?: {
|
|
15
15
|
createdBy?: string;
|
|
16
16
|
name?: string;
|
|
17
17
|
} | undefined) => Promise<Promise<string | undefined>>;
|
|
18
18
|
getBackupDownloadStream: (backupId: string) => Promise<Promise<{
|
|
19
|
-
metadata: import("@budibase/types").
|
|
19
|
+
metadata: import("@budibase/types").WorkspaceBackup;
|
|
20
20
|
stream: import("stream").Readable;
|
|
21
21
|
}>>;
|
|
22
22
|
downloadAppBackup: (backupId: string) => Promise<Promise<string>>;
|
|
23
|
-
fetchAppBackups: (appId: string, opts?:
|
|
24
|
-
data: import("@budibase/types").
|
|
23
|
+
fetchAppBackups: (appId: string, opts?: BackupFetchOpts | undefined) => Promise<Promise<{
|
|
24
|
+
data: import("@budibase/types").WorkspaceBackup[];
|
|
25
25
|
hasNextPage: boolean;
|
|
26
26
|
nextPage?: string;
|
|
27
27
|
}>>;
|
|
28
|
-
storeAppBackupMetadata: (metadata:
|
|
28
|
+
storeAppBackupMetadata: (metadata: WorkspaceBackupMetadata, opts?: {
|
|
29
29
|
filename?: string;
|
|
30
30
|
} | undefined) => Promise<Promise<import("@budibase/types").PutResponse>>;
|
|
31
|
-
updateBackupStatus: (id: string, status:
|
|
32
|
-
updateRestoreStatus: (id: string, rev: string, status:
|
|
33
|
-
getAppBackup: (backupId: string) => Promise<Promise<import("@budibase/types").
|
|
31
|
+
updateBackupStatus: (id: string, status: BackupStatus, contents?: WorkspaceBackupContents | undefined, filename?: string | undefined) => Promise<Promise<import("@budibase/types").PutResponse>>;
|
|
32
|
+
updateRestoreStatus: (id: string, rev: string, status: BackupStatus) => Promise<Promise<import("@budibase/types").PutResponse>>;
|
|
33
|
+
getAppBackup: (backupId: string) => Promise<Promise<import("@budibase/types").WorkspaceBackup>>;
|
|
34
34
|
updateAppBackup: (backupId: string, backupName: string) => Promise<Promise<import("@budibase/types").PutResponse>>;
|
|
35
35
|
deleteAppBackup: (backupId: string) => Promise<Promise<void>>;
|
|
36
36
|
deleteAppBackups: (backupIds: string[]) => Promise<Promise<({
|
|
@@ -10,26 +10,26 @@ declare const _default: {
|
|
|
10
10
|
restoreId: string;
|
|
11
11
|
metadata: any;
|
|
12
12
|
}>>;
|
|
13
|
-
triggerAppBackup: (appId: string, trigger: import("packages/types/dist").
|
|
13
|
+
triggerAppBackup: (appId: string, trigger: import("packages/types/dist").BackupTrigger, opts?: {
|
|
14
14
|
createdBy?: string;
|
|
15
15
|
name?: string;
|
|
16
16
|
} | undefined) => Promise<Promise<string | undefined>>;
|
|
17
17
|
getBackupDownloadStream: (backupId: string) => Promise<Promise<{
|
|
18
|
-
metadata: import("packages/types/dist").
|
|
18
|
+
metadata: import("packages/types/dist").WorkspaceBackup;
|
|
19
19
|
stream: import("stream").Readable;
|
|
20
20
|
}>>;
|
|
21
21
|
downloadAppBackup: (backupId: string) => Promise<Promise<string>>;
|
|
22
|
-
fetchAppBackups: (appId: string, opts?: import("packages/types/dist").
|
|
23
|
-
data: import("packages/types/dist").
|
|
22
|
+
fetchAppBackups: (appId: string, opts?: import("packages/types/dist").BackupFetchOpts | undefined) => Promise<Promise<{
|
|
23
|
+
data: import("packages/types/dist").WorkspaceBackup[];
|
|
24
24
|
hasNextPage: boolean;
|
|
25
25
|
nextPage?: string;
|
|
26
26
|
}>>;
|
|
27
|
-
storeAppBackupMetadata: (metadata: import("packages/types/dist").
|
|
27
|
+
storeAppBackupMetadata: (metadata: import("packages/types/dist").WorkspaceBackupMetadata, opts?: {
|
|
28
28
|
filename?: string;
|
|
29
29
|
} | undefined) => Promise<Promise<import("packages/types/dist").PutResponse>>;
|
|
30
|
-
updateBackupStatus: (id: string, status: import("packages/types/dist").
|
|
31
|
-
updateRestoreStatus: (id: string, rev: string, status: import("packages/types/dist").
|
|
32
|
-
getAppBackup: (backupId: string) => Promise<Promise<import("packages/types/dist").
|
|
30
|
+
updateBackupStatus: (id: string, status: import("packages/types/dist").BackupStatus, contents?: import("packages/types/dist").WorkspaceBackupContents | undefined, filename?: string | undefined) => Promise<Promise<import("packages/types/dist").PutResponse>>;
|
|
31
|
+
updateRestoreStatus: (id: string, rev: string, status: import("packages/types/dist").BackupStatus) => Promise<Promise<import("packages/types/dist").PutResponse>>;
|
|
32
|
+
getAppBackup: (backupId: string) => Promise<Promise<import("packages/types/dist").WorkspaceBackup>>;
|
|
33
33
|
updateAppBackup: (backupId: string, backupName: string) => Promise<Promise<import("packages/types/dist").PutResponse>>;
|
|
34
34
|
deleteAppBackup: (backupId: string) => Promise<Promise<void>>;
|
|
35
35
|
deleteAppBackups: (backupIds: string[]) => Promise<Promise<({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { queue } from "@budibase/backend-core";
|
|
2
|
-
import {
|
|
2
|
+
import { WorkspaceBackupQueueData } from "@budibase/types";
|
|
3
3
|
export declare function init(): void;
|
|
4
|
-
export declare function getBackupQueue(): queue.BudibaseQueue<
|
|
4
|
+
export declare function getBackupQueue(): queue.BudibaseQueue<WorkspaceBackupQueueData>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Environment, EnvironmentVariableValue } from "@budibase/types";
|
|
2
2
|
export declare function isEncryptionKeyAvailable(): boolean;
|
|
3
3
|
export declare function fetch(): Promise<string[]>;
|
|
4
|
-
export declare function fetchValues(environment:
|
|
4
|
+
export declare function fetchValues(environment: Environment): Promise<{
|
|
5
5
|
[key: string]: string;
|
|
6
6
|
}>;
|
|
7
7
|
export declare function update(varName: string, value: EnvironmentVariableValue): Promise<void>;
|
package/dist/types/init.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { WorkspaceBackupContents } from "@budibase/types";
|
|
2
2
|
export interface InitOpts {
|
|
3
3
|
backups?: BackupInitOpts;
|
|
4
4
|
}
|
|
@@ -16,7 +16,7 @@ type ExportAppFn = (devAppId: string, opts: {
|
|
|
16
16
|
tar: boolean;
|
|
17
17
|
}) => Promise<string>;
|
|
18
18
|
type ImportAppFn = (devAppId: string, db: any, config: ImportAppConfig) => Promise<string>;
|
|
19
|
-
type StatsFn = (devAppId: string) => Promise<
|
|
19
|
+
type StatsFn = (devAppId: string) => Promise<WorkspaceBackupContents>;
|
|
20
20
|
export interface BackupProcessingOpts {
|
|
21
21
|
exportAppFn: ExportAppFn;
|
|
22
22
|
importAppFn: ImportAppFn;
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"dist"
|
|
5
5
|
],
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
|
-
"version": "3.18.
|
|
7
|
+
"version": "3.18.11",
|
|
8
8
|
"description": "Budibase Pro (Backend)",
|
|
9
9
|
"main": "dist/index.js",
|
|
10
10
|
"types": "dist/index.d.ts",
|
|
@@ -70,5 +70,5 @@
|
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
},
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "c3163f7849e2b1ab1df4a6b17e6022772239480e"
|
|
74
74
|
}
|