@budibase/types 3.18.10 → 3.18.12
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/web/dev.d.ts +1 -1
- package/dist/api/web/global/role.d.ts +1 -1
- package/dist/api/web/index.d.ts +9 -9
- package/dist/api/web/template.d.ts +1 -1
- package/dist/api/web/workspace/backup.d.ts +46 -0
- package/dist/api/web/{app → workspace}/deployment.d.ts +2 -2
- package/dist/api/web/{app → workspace}/index.d.ts +5 -5
- package/dist/api/web/{app → workspace}/rows/search.d.ts +3 -3
- package/dist/api/web/{app → workspace}/user.d.ts +2 -2
- package/dist/api/web/{app/application.d.ts → workspace/workspace.d.ts} +17 -17
- package/dist/documents/document.d.ts +3 -4
- package/dist/documents/global/quotas.d.ts +1 -1
- package/dist/documents/global/schedule.d.ts +4 -4
- package/dist/documents/index.d.ts +2 -2
- package/dist/documents/{app → workspace}/backup.d.ts +16 -16
- package/dist/documents/{app → workspace}/view.d.ts +2 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +4 -4
- package/dist/sdk/environmentVariables.d.ts +1 -1
- package/dist/sdk/events/backfill.d.ts +2 -2
- package/dist/sdk/events/backup.d.ts +5 -5
- package/dist/sdk/events/event.d.ts +12 -15
- package/dist/sdk/events/index.d.ts +13 -13
- package/dist/sdk/events/{app.d.ts → workspace.d.ts} +10 -10
- package/dist/sdk/licensing/feature.d.ts +1 -1
- package/dist/sdk/licensing/quota.d.ts +2 -2
- package/dist/sdk/locks.d.ts +1 -1
- package/dist/sdk/permissions.d.ts +1 -1
- package/package.json +2 -2
- package/dist/api/web/app/backup.d.ts +0 -43
- /package/dist/api/web/{app → workspace}/attachment.d.ts +0 -0
- /package/dist/api/web/{app → workspace}/automation.d.ts +0 -0
- /package/dist/api/web/{app → workspace}/component.d.ts +0 -0
- /package/dist/api/web/{app → workspace}/datasource.d.ts +0 -0
- /package/dist/api/web/{app → workspace}/features.d.ts +0 -0
- /package/dist/api/web/{app → workspace}/integration.d.ts +0 -0
- /package/dist/api/web/{app → workspace}/layout.d.ts +0 -0
- /package/dist/api/web/{app → workspace}/metadata.d.ts +0 -0
- /package/dist/api/web/{app → workspace}/navigation.d.ts +0 -0
- /package/dist/api/web/{app → workspace}/oauth2.d.ts +0 -0
- /package/dist/api/web/{app → workspace}/permission.d.ts +0 -0
- /package/dist/api/web/{app → workspace}/query.d.ts +0 -0
- /package/dist/api/web/{app → workspace}/recaptcha.d.ts +0 -0
- /package/dist/api/web/{app → workspace}/resource.d.ts +0 -0
- /package/dist/api/web/{app → workspace}/role.d.ts +0 -0
- /package/dist/api/web/{app → workspace}/rowAction.d.ts +0 -0
- /package/dist/api/web/{app → workspace}/rows/index.d.ts +0 -0
- /package/dist/api/web/{app → workspace}/screen.d.ts +0 -0
- /package/dist/api/web/{app → workspace}/static.d.ts +0 -0
- /package/dist/api/web/{app → workspace}/table.d.ts +0 -0
- /package/dist/api/web/{app → workspace}/view.d.ts +0 -0
- /package/dist/api/web/{app → workspace}/webhook.d.ts +0 -0
- /package/dist/api/web/{app → workspace}/workspaceApp.d.ts +0 -0
- /package/dist/api/web/{app → workspace}/workspaceFavourites.d.ts +0 -0
- /package/dist/documents/{app → workspace}/automation/StepInputsOutputs.d.ts +0 -0
- /package/dist/documents/{app → workspace}/automation/automation.d.ts +0 -0
- /package/dist/documents/{app → workspace}/automation/index.d.ts +0 -0
- /package/dist/documents/{app → workspace}/automation/schema.d.ts +0 -0
- /package/dist/documents/{app → workspace}/component.d.ts +0 -0
- /package/dist/documents/{app → workspace}/datasource.d.ts +0 -0
- /package/dist/documents/{app → workspace}/deployment.d.ts +0 -0
- /package/dist/documents/{app → workspace}/index.d.ts +0 -0
- /package/dist/documents/{app → workspace}/layout.d.ts +0 -0
- /package/dist/documents/{app → workspace}/links.d.ts +0 -0
- /package/dist/documents/{app → workspace}/metadata.d.ts +0 -0
- /package/dist/documents/{app → workspace}/oauth2.d.ts +0 -0
- /package/dist/documents/{app → workspace}/query.d.ts +0 -0
- /package/dist/documents/{app → workspace}/role.d.ts +0 -0
- /package/dist/documents/{app → workspace}/row.d.ts +0 -0
- /package/dist/documents/{app → workspace}/rowAction.d.ts +0 -0
- /package/dist/documents/{app → workspace}/screen.d.ts +0 -0
- /package/dist/documents/{app → workspace}/snippet.d.ts +0 -0
- /package/dist/documents/{app → workspace}/sqlite.d.ts +0 -0
- /package/dist/documents/{app → workspace}/table/constants.d.ts +0 -0
- /package/dist/documents/{app → workspace}/table/index.d.ts +0 -0
- /package/dist/documents/{app → workspace}/table/schema.d.ts +0 -0
- /package/dist/documents/{app → workspace}/table/table.d.ts +0 -0
- /package/dist/documents/{app → workspace}/theme.d.ts +0 -0
- /package/dist/documents/{app → workspace}/user.d.ts +0 -0
- /package/dist/documents/{app → workspace}/webhook.d.ts +0 -0
- /package/dist/documents/{app → workspace}/workspace.d.ts +0 -0
- /package/dist/documents/{app → workspace}/workspaceApp.d.ts +0 -0
- /package/dist/documents/{app → workspace}/workspaceFavourite.d.ts +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseEvent, Event } from "./event";
|
|
2
|
-
export interface
|
|
2
|
+
export interface WorkspaceBackfillSucceededEvent extends BaseEvent {
|
|
3
3
|
appId: string;
|
|
4
4
|
automations: number;
|
|
5
5
|
datasources: number;
|
|
@@ -11,7 +11,7 @@ export interface AppBackfillSucceededEvent extends BaseEvent {
|
|
|
11
11
|
errors?: string[];
|
|
12
12
|
errorCount?: number;
|
|
13
13
|
}
|
|
14
|
-
export interface
|
|
14
|
+
export interface WorkspaceBackfillFailedEvent extends BaseEvent {
|
|
15
15
|
error: string;
|
|
16
16
|
}
|
|
17
17
|
export interface TenantBackfillSucceededEvent extends BaseEvent {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
+
import { BackupTrigger, BackupType } from "../../documents";
|
|
1
2
|
import { BaseEvent } from "./event";
|
|
2
|
-
|
|
3
|
-
export interface AppBackupRestoreEvent extends BaseEvent {
|
|
3
|
+
export interface WorkspaceBackupRestoreEvent extends BaseEvent {
|
|
4
4
|
appId: string;
|
|
5
5
|
restoreId: string;
|
|
6
6
|
backupCreatedAt: string;
|
|
7
7
|
name: string;
|
|
8
8
|
}
|
|
9
|
-
export interface
|
|
9
|
+
export interface WorkspaceBackupTriggeredEvent extends BaseEvent {
|
|
10
10
|
backupId: string;
|
|
11
11
|
appId: string;
|
|
12
|
-
trigger:
|
|
13
|
-
type:
|
|
12
|
+
trigger: BackupTrigger;
|
|
13
|
+
type: BackupType;
|
|
14
14
|
name: string;
|
|
15
15
|
}
|
|
@@ -35,18 +35,18 @@ export declare enum Event {
|
|
|
35
35
|
INSTALLATION_FIRST_STARTUP = "installation:firstStartup",
|
|
36
36
|
ANALYTICS_OPT_OUT = "analytics:opt:out",
|
|
37
37
|
ANALYTICS_OPT_IN = "analytics:opt:in",
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
38
|
+
WORKSPACE_CREATED = "app:created",
|
|
39
|
+
WORKSPACE_UPDATED = "app:updated",
|
|
40
|
+
WORKSPACE_DELETED = "app:deleted",
|
|
41
|
+
WORKSPACE_DUPLICATED = "app:duplicated",
|
|
42
|
+
WORKSPACE_PUBLISHED = "app:published",
|
|
43
|
+
WORKSPACE_UNPUBLISHED = "app:unpublished",
|
|
44
|
+
WORKSPACE_TEMPLATE_IMPORTED = "app:template:imported",
|
|
45
|
+
WORKSPACE_FILE_IMPORTED = "app:file:imported",
|
|
46
|
+
WORKSPACE_APP_VERSION_UPDATED = "app:version:updated",
|
|
47
|
+
WORKSPACE_APP_VERSION_REVERTED = "app:version:reverted",
|
|
48
|
+
WORKSPACE_REVERTED = "app:reverted",
|
|
49
|
+
WORKSPACE_EXPORTED = "app:exported",
|
|
50
50
|
ROLE_CREATED = "role:created",
|
|
51
51
|
ROLE_UPDATED = "role:updated",
|
|
52
52
|
ROLE_DELETED = "role:deleted",
|
|
@@ -133,9 +133,6 @@ export declare enum Event {
|
|
|
133
133
|
ACTION_AUTOMATION_STEP_EXECUTED = "action:automation_step:executed",
|
|
134
134
|
ACTION_CRUD_EXECUTED = "action:crud:executed",
|
|
135
135
|
ACTION_AI_AGENT_EXECUTED = "action:ai_agent:executed",
|
|
136
|
-
WORKSPACE_CREATED = "workspace:created",
|
|
137
|
-
WORKSPACE_UPDATED = "workspace:updated",
|
|
138
|
-
WORKSPACE_DELETED = "workspace:deleted",
|
|
139
136
|
WORKSPACE_APP_CREATED = "workspace_app:created",
|
|
140
137
|
WORKSPACE_APP_UPDATED = "workspace_app:updated",
|
|
141
138
|
WORKSPACE_APP_DELETED = "workspace_app:deleted"
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
export * from "./
|
|
1
|
+
export * from "./account";
|
|
2
2
|
export * from "./action";
|
|
3
|
+
export * from "./ai";
|
|
4
|
+
export * from "./auditLog";
|
|
3
5
|
export * from "./auth";
|
|
4
6
|
export * from "./automation";
|
|
5
|
-
export * from "./
|
|
6
|
-
export * from "./
|
|
7
|
+
export * from "./backfill";
|
|
8
|
+
export * from "./backup";
|
|
7
9
|
export * from "./datasource";
|
|
10
|
+
export * from "./email";
|
|
11
|
+
export * from "./environmentVariable";
|
|
8
12
|
export * from "./event";
|
|
13
|
+
export * from "./identification";
|
|
9
14
|
export * from "./layout";
|
|
10
15
|
export * from "./license";
|
|
11
|
-
export * from "./
|
|
16
|
+
export * from "./plugin";
|
|
12
17
|
export * from "./query";
|
|
13
18
|
export * from "./role";
|
|
19
|
+
export * from "./rowAction";
|
|
14
20
|
export * from "./rows";
|
|
15
21
|
export * from "./screen";
|
|
16
22
|
export * from "./serve";
|
|
17
23
|
export * from "./table";
|
|
18
24
|
export * from "./user";
|
|
19
|
-
export * from "./view";
|
|
20
|
-
export * from "./account";
|
|
21
|
-
export * from "./backfill";
|
|
22
|
-
export * from "./identification";
|
|
23
25
|
export * from "./userGroup";
|
|
24
|
-
export * from "./
|
|
25
|
-
export * from "./
|
|
26
|
-
export * from "./
|
|
27
|
-
export * from "./auditLog";
|
|
28
|
-
export * from "./rowAction";
|
|
26
|
+
export * from "./version";
|
|
27
|
+
export * from "./view";
|
|
28
|
+
export * from "./workspace";
|
|
29
29
|
export * from "./workspaceApp";
|
|
@@ -1,50 +1,50 @@
|
|
|
1
1
|
import { BaseEvent } from "./event";
|
|
2
|
-
export interface
|
|
2
|
+
export interface WorkspaceCreatedEvent extends BaseEvent {
|
|
3
3
|
appId: string;
|
|
4
4
|
version: string;
|
|
5
5
|
audited: {
|
|
6
6
|
name: string;
|
|
7
7
|
};
|
|
8
8
|
}
|
|
9
|
-
export interface
|
|
9
|
+
export interface WorkspaceUpdatedEvent extends BaseEvent {
|
|
10
10
|
appId: string;
|
|
11
11
|
version: string;
|
|
12
12
|
audited: {
|
|
13
13
|
name: string;
|
|
14
14
|
};
|
|
15
15
|
}
|
|
16
|
-
export interface
|
|
16
|
+
export interface WorkspaceDeletedEvent extends BaseEvent {
|
|
17
17
|
appId: string;
|
|
18
18
|
audited: {
|
|
19
19
|
name: string;
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
|
-
export interface
|
|
22
|
+
export interface WorkspacePublishedEvent extends BaseEvent {
|
|
23
23
|
appId: string;
|
|
24
24
|
audited: {
|
|
25
25
|
name: string;
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
|
-
export interface
|
|
28
|
+
export interface WorkspaceUnpublishedEvent extends BaseEvent {
|
|
29
29
|
appId: string;
|
|
30
30
|
audited: {
|
|
31
31
|
name: string;
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
|
-
export interface
|
|
34
|
+
export interface WorkspaceFileImportedEvent extends BaseEvent {
|
|
35
35
|
appId: string;
|
|
36
36
|
audited: {
|
|
37
37
|
name: string;
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
|
-
export interface
|
|
40
|
+
export interface WorkspaceDuplicatedEvent extends BaseEvent {
|
|
41
41
|
duplicateAppId: string;
|
|
42
42
|
appId: string;
|
|
43
43
|
audited: {
|
|
44
44
|
name: string;
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
|
-
export interface
|
|
47
|
+
export interface WorkspaceTemplateImportedEvent extends BaseEvent {
|
|
48
48
|
appId: string;
|
|
49
49
|
templateKey: string;
|
|
50
50
|
audited: {
|
|
@@ -67,13 +67,13 @@ export interface AppVersionRevertedEvent extends BaseEvent {
|
|
|
67
67
|
name: string;
|
|
68
68
|
};
|
|
69
69
|
}
|
|
70
|
-
export interface
|
|
70
|
+
export interface WorkspaceRevertedEvent extends BaseEvent {
|
|
71
71
|
appId: string;
|
|
72
72
|
audited: {
|
|
73
73
|
name: string;
|
|
74
74
|
};
|
|
75
75
|
}
|
|
76
|
-
export interface
|
|
76
|
+
export interface WorkspaceExportedEvent extends BaseEvent {
|
|
77
77
|
appId: string;
|
|
78
78
|
audited: {
|
|
79
79
|
name: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PlanType } from "./plan";
|
|
2
2
|
export declare enum Feature {
|
|
3
3
|
USER_GROUPS = "userGroups",
|
|
4
|
-
|
|
4
|
+
WORKSPACE_BACKUPS = "appBackups",
|
|
5
5
|
ENVIRONMENT_VARIABLES = "environmentVariables",
|
|
6
6
|
AUDIT_LOGS = "auditLogs",
|
|
7
7
|
ENFORCEABLE_SSO = "enforceableSSO",
|
|
@@ -9,7 +9,7 @@ export declare enum QuotaType {
|
|
|
9
9
|
}
|
|
10
10
|
export declare enum StaticQuotaName {
|
|
11
11
|
ROWS = "rows",
|
|
12
|
-
|
|
12
|
+
WORKSPACES = "apps",
|
|
13
13
|
USERS = "users",
|
|
14
14
|
CREATORS = "creators",
|
|
15
15
|
USER_GROUPS = "userGroups",
|
|
@@ -42,7 +42,7 @@ export type MonthlyQuotas = {
|
|
|
42
42
|
};
|
|
43
43
|
export type StaticQuotas = {
|
|
44
44
|
[StaticQuotaName.ROWS]: Quota;
|
|
45
|
-
[StaticQuotaName.
|
|
45
|
+
[StaticQuotaName.WORKSPACES]: Quota;
|
|
46
46
|
[StaticQuotaName.USERS]: Quota;
|
|
47
47
|
[StaticQuotaName.CREATORS]: Quota;
|
|
48
48
|
[StaticQuotaName.USER_GROUPS]: Quota;
|
package/dist/sdk/locks.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export declare enum LockName {
|
|
|
18
18
|
UPDATE_TENANTS_DOC = "update_tenants_doc",
|
|
19
19
|
PERSIST_WRITETHROUGH = "persist_writethrough",
|
|
20
20
|
QUOTA_USAGE_EVENT = "quota_usage_event",
|
|
21
|
-
|
|
21
|
+
WORKSPACE_MIGRATION = "app_migrations",
|
|
22
22
|
PROCESS_USER_INVITE = "process_user_invite",
|
|
23
23
|
SQS_SYNC_DEFINITIONS = "sys_sync_definitions"
|
|
24
24
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@budibase/types",
|
|
3
|
-
"version": "3.18.
|
|
3
|
+
"version": "3.18.12",
|
|
4
4
|
"description": "Budibase types",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"scim-patch": "^0.8.1"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "5c2fb9963355ae36857804fabb62731a520f657c"
|
|
30
30
|
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { AppBackupTrigger, AppBackupType } from "../../../documents";
|
|
2
|
-
export interface SearchAppBackupsRequest {
|
|
3
|
-
trigger: AppBackupTrigger;
|
|
4
|
-
type: AppBackupType;
|
|
5
|
-
startDate: string;
|
|
6
|
-
endDate: string;
|
|
7
|
-
page?: string;
|
|
8
|
-
}
|
|
9
|
-
export interface CreateAppBackupRequest {
|
|
10
|
-
name: string;
|
|
11
|
-
}
|
|
12
|
-
export interface CreateAppBackupResponse {
|
|
13
|
-
backupId: string;
|
|
14
|
-
message: string;
|
|
15
|
-
}
|
|
16
|
-
export interface UpdateAppBackupRequest {
|
|
17
|
-
name: string;
|
|
18
|
-
}
|
|
19
|
-
export interface ImportAppBackupResponse {
|
|
20
|
-
restoreId: string;
|
|
21
|
-
message: string;
|
|
22
|
-
}
|
|
23
|
-
export interface ClearBackupErrorRequest {
|
|
24
|
-
appId: string;
|
|
25
|
-
backupId?: string;
|
|
26
|
-
}
|
|
27
|
-
export interface ClearBackupErrorResponse {
|
|
28
|
-
message: string;
|
|
29
|
-
}
|
|
30
|
-
export interface DeleteAppBackupResult {
|
|
31
|
-
backupId: string;
|
|
32
|
-
success: boolean;
|
|
33
|
-
error?: string;
|
|
34
|
-
}
|
|
35
|
-
export interface DeleteAppBackupsRequest {
|
|
36
|
-
backupIds: string[];
|
|
37
|
-
}
|
|
38
|
-
export interface DeleteAppBackupsResponse {
|
|
39
|
-
message: string;
|
|
40
|
-
results: DeleteAppBackupResult[];
|
|
41
|
-
successCount: number;
|
|
42
|
-
failureCount: number;
|
|
43
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|