@budibase/types 3.2.28 → 3.2.30

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.
Files changed (39) hide show
  1. package/dist/api/web/analytics.d.ts +4 -0
  2. package/dist/api/web/app/application.d.ts +9 -0
  3. package/dist/api/web/app/datasource.d.ts +1 -1
  4. package/dist/api/web/app/permission.d.ts +3 -1
  5. package/dist/api/web/app/rowAction.d.ts +3 -0
  6. package/dist/api/web/auth.d.ts +7 -0
  7. package/dist/api/web/global/environmentVariables.d.ts +9 -0
  8. package/dist/api/web/global/events.d.ts +3 -0
  9. package/dist/api/web/global/license.d.ts +9 -0
  10. package/dist/api/web/global/oldMigration.d.ts +3 -0
  11. package/dist/api/web/global/self.d.ts +1 -1
  12. package/dist/api/web/system/migration.d.ts +3 -0
  13. package/dist/api/web/user.d.ts +3 -0
  14. package/dist/documents/app/app.d.ts +1 -0
  15. package/dist/documents/app/automation/StepInputsOutputs.d.ts +7 -0
  16. package/dist/documents/app/automation/automation.d.ts +2 -1
  17. package/dist/documents/app/automation/schema.d.ts +3 -2
  18. package/dist/documents/app/view.d.ts +1 -0
  19. package/dist/documents/app/webhook.d.ts +2 -1
  20. package/dist/documents/global/user.d.ts +2 -0
  21. package/dist/index.d.ts +1 -0
  22. package/dist/index.js.map +2 -2
  23. package/dist/index.js.meta.json +1 -1
  24. package/dist/sdk/datasources.d.ts +1 -0
  25. package/dist/ui/index.d.ts +1 -0
  26. package/dist/ui/stores/automations.d.ts +11 -0
  27. package/dist/ui/stores/grid/columns.d.ts +21 -0
  28. package/dist/ui/stores/grid/condition.d.ts +10 -0
  29. package/dist/ui/stores/grid/datasource.d.ts +10 -0
  30. package/dist/ui/stores/grid/fetch.d.ts +23 -0
  31. package/dist/ui/stores/grid/filters.d.ts +4 -0
  32. package/dist/ui/stores/grid/index.d.ts +9 -0
  33. package/dist/ui/stores/grid/rows.d.ts +4 -0
  34. package/dist/ui/stores/grid/table.d.ts +27 -0
  35. package/dist/ui/stores/grid/user.d.ts +7 -0
  36. package/dist/ui/stores/grid/view.d.ts +5 -0
  37. package/dist/ui/stores/index.d.ts +3 -0
  38. package/dist/ui/stores/integration.d.ts +4 -0
  39. package/package.json +3 -2
@@ -10,3 +10,7 @@ export interface AnalyticsPingRequest {
10
10
  timezone: string;
11
11
  embedded?: boolean;
12
12
  }
13
+ export interface AnalyticsPingResponse {
14
+ message: string;
15
+ source?: PingSource;
16
+ }
@@ -39,6 +39,9 @@ export interface FetchAppPackageResponse {
39
39
  clientLibPath: string;
40
40
  hasLock: boolean;
41
41
  }
42
+ export interface AddAppSampleDataResponse {
43
+ message: string;
44
+ }
42
45
  export type FetchAppsResponse = App[];
43
46
  export interface PublishResponse {
44
47
  _id: string;
@@ -56,6 +59,9 @@ export interface RevertAppClientResponse extends App {
56
59
  export interface DeleteAppResponse {
57
60
  ok: boolean;
58
61
  }
62
+ export interface UnpublishAppResponse {
63
+ message: string;
64
+ }
59
65
  export interface ImportToUpdateAppRequest {
60
66
  encryptionPassword?: string;
61
67
  }
@@ -65,6 +71,9 @@ export interface ImportToUpdateAppResponse {
65
71
  export interface SetRevertableAppVersionRequest {
66
72
  revertableVersion: string;
67
73
  }
74
+ export interface SetRevertableAppVersionResponse {
75
+ message: string;
76
+ }
68
77
  export interface ExportAppDumpRequest {
69
78
  excludeRows: boolean;
70
79
  encryptPassword?: string;
@@ -9,7 +9,7 @@ export interface UpdateDatasourceResponse {
9
9
  export interface CreateDatasourceRequest {
10
10
  datasource: Datasource;
11
11
  fetchSchema?: boolean;
12
- tablesFilter: string[];
12
+ tablesFilter?: string[];
13
13
  }
14
14
  export interface VerifyDatasourceRequest {
15
15
  datasource: Datasource;
@@ -1,5 +1,5 @@
1
1
  import { BuiltinPermission, PermissionLevel } from "../../../sdk";
2
- export type FetchBuiltinPermissionsRequest = BuiltinPermission[];
2
+ export type FetchBuiltinPermissionsResponse = BuiltinPermission[];
3
3
  export type FetchPermissionLevelsRequest = string[];
4
4
  export interface FetchResourcePermissionInfoResponse {
5
5
  [key: string]: Record<string, string>;
@@ -22,6 +22,7 @@ export interface AddedPermission {
22
22
  reason?: string;
23
23
  }
24
24
  export interface AddPermissionResponse {
25
+ message: string;
25
26
  }
26
27
  export interface AddPermissionRequest {
27
28
  roleId: string;
@@ -31,4 +32,5 @@ export interface AddPermissionRequest {
31
32
  export interface RemovePermissionRequest extends AddPermissionRequest {
32
33
  }
33
34
  export interface RemovePermissionResponse {
35
+ message: string;
34
36
  }
@@ -17,6 +17,9 @@ export interface RowActionsResponse {
17
17
  export interface RowActionTriggerRequest {
18
18
  rowId: string;
19
19
  }
20
+ export interface RowActionTriggerResponse {
21
+ message: string;
22
+ }
20
23
  export interface RowActionPermissionsResponse extends RowActionPermissionsData {
21
24
  }
22
25
  export {};
@@ -2,11 +2,18 @@ export interface LoginRequest {
2
2
  username: string;
3
3
  password: string;
4
4
  }
5
+ export interface LoginResponse {
6
+ message: string;
7
+ userId?: string;
8
+ }
5
9
  export interface LogoutResponse {
6
10
  message: string;
7
11
  }
8
12
  export interface SetInitInfoRequest extends Record<string, any> {
9
13
  }
14
+ export interface SetInitInfoResponse {
15
+ message: string;
16
+ }
10
17
  export interface GetInitInfoResponse extends Record<string, any> {
11
18
  }
12
19
  export interface PasswordResetRequest {
@@ -6,10 +6,19 @@ export interface CreateEnvironmentVariableRequest {
6
6
  production: string;
7
7
  development: string;
8
8
  }
9
+ export interface CreateEnvironmentVariableResponse {
10
+ message: string;
11
+ }
9
12
  export interface UpdateEnvironmentVariableRequest {
10
13
  production: string;
11
14
  development: string;
12
15
  }
16
+ export interface UpdateEnvironmentVariableResponse {
17
+ message: string;
18
+ }
13
19
  export interface GetEnvironmentVariablesResponse {
14
20
  variables: string[];
15
21
  }
22
+ export interface DeleteEnvironmentVariablesResponse {
23
+ message: string;
24
+ }
@@ -4,3 +4,6 @@ export declare enum EventPublishType {
4
4
  export interface PostEventPublishRequest {
5
5
  type: EventPublishType;
6
6
  }
7
+ export interface PostEventPublishResponse {
8
+ message: string;
9
+ }
@@ -2,15 +2,24 @@ import { QuotaUsage } from "../../../documents";
2
2
  export interface ActivateLicenseKeyRequest {
3
3
  licenseKey: string;
4
4
  }
5
+ export interface ActivateLicenseKeyResponse {
6
+ message: string;
7
+ }
5
8
  export interface GetLicenseKeyResponse {
6
9
  licenseKey: string;
7
10
  }
8
11
  export interface ActivateOfflineLicenseTokenRequest {
9
12
  offlineLicenseToken: string;
10
13
  }
14
+ export interface ActivateOfflineLicenseTokenResponse {
15
+ message: string;
16
+ }
11
17
  export interface GetOfflineLicenseTokenResponse {
12
18
  offlineLicenseToken: string;
13
19
  }
20
+ export interface RefreshOfflineLicenseResponse {
21
+ message: string;
22
+ }
14
23
  export interface GetOfflineIdentifierResponse {
15
24
  identifierBase64: string;
16
25
  }
@@ -1,6 +1,9 @@
1
1
  import { Migration, MigrationOptions } from "../../../sdk";
2
2
  export interface RunOldMigrationRequest extends MigrationOptions {
3
3
  }
4
+ export interface RuneOldMigrationResponse {
5
+ message: string;
6
+ }
4
7
  export type FetchOldMigrationResponse = Migration[];
5
8
  export interface GetOldMigrationStatus {
6
9
  migrated: boolean;
@@ -1,6 +1,6 @@
1
1
  import { DevInfo, User } from "../../../documents";
2
2
  export interface GenerateAPIKeyRequest {
3
- userId: string;
3
+ userId?: string;
4
4
  }
5
5
  export interface GenerateAPIKeyResponse extends DevInfo {
6
6
  }
@@ -1,4 +1,7 @@
1
1
  import { MigrationDefinition, MigrationOptions } from "../../../sdk";
2
2
  export interface RunGlobalMigrationRequest extends MigrationOptions {
3
3
  }
4
+ export interface RunGlobalMigrationResponse {
5
+ message: string;
6
+ }
4
7
  export type FetchMigrationDefinitionsResponse = MigrationDefinition[];
@@ -110,6 +110,9 @@ export interface AddSSoUserRequest {
110
110
  ssoId: string;
111
111
  email: string;
112
112
  }
113
+ export interface AddSSoUserResponse {
114
+ message: string;
115
+ }
113
116
  export interface CreateAdminUserResponse {
114
117
  _id: string;
115
118
  _rev: string;
@@ -28,6 +28,7 @@ export interface App extends Document {
28
28
  upgradableVersion?: string;
29
29
  snippets?: Snippet[];
30
30
  creationVersion?: string;
31
+ updatedBy?: string;
31
32
  }
32
33
  export interface AppInstance {
33
34
  _id: string;
@@ -235,4 +235,11 @@ export type RowUpdatedTriggerOutputs = {
235
235
  id: string;
236
236
  revision?: string;
237
237
  };
238
+ export type WebhookTriggerInputs = {
239
+ schemaUrl: string;
240
+ triggerUrl: string;
241
+ };
242
+ export type WebhookTriggerOutputs = {
243
+ fields: Record<string, any>;
244
+ };
238
245
  export {};
@@ -126,6 +126,7 @@ export interface Automation extends Document {
126
126
  }
127
127
  interface BaseIOStructure {
128
128
  type?: AutomationIOType;
129
+ subtype?: AutomationIOType;
129
130
  customType?: AutomationCustomIOType;
130
131
  title?: string;
131
132
  description?: string;
@@ -164,7 +165,7 @@ export declare enum AutomationStoppedReason {
164
165
  export interface AutomationResults {
165
166
  automationId?: string;
166
167
  status?: AutomationStatus;
167
- trigger?: any;
168
+ trigger?: AutomationTrigger;
168
169
  steps: {
169
170
  stepId: AutomationTriggerStepId | AutomationActionStepId;
170
171
  inputs: {
@@ -1,5 +1,5 @@
1
1
  import { Hosting } from "../../../sdk";
2
- import { AutomationActionStepId, ActionImplementation, AutomationStepType, AutomationFeature, InputOutputBlock, AutomationTriggerStepId } from "./automation";
2
+ import { AutomationActionStepId, ActionImplementation, AutomationStepType, AutomationFeature, InputOutputBlock, AutomationTriggerStepId, AutomationEventType } from "./automation";
3
3
  import { CollectStepInputs, CollectStepOutputs, CreateRowStepInputs, CreateRowStepOutputs, DelayStepInputs, DelayStepOutputs, DeleteRowStepInputs, DeleteRowStepOutputs, ExecuteQueryStepInputs, ExecuteQueryStepOutputs, ExecuteScriptStepInputs, ExecuteScriptStepOutputs, FilterStepInputs, FilterStepOutputs, QueryRowsStepInputs, QueryRowsStepOutputs, SmtpEmailStepInputs, ServerLogStepInputs, ServerLogStepOutputs, TriggerAutomationStepInputs, TriggerAutomationStepOutputs, UpdateRowStepInputs, UpdateRowStepOutputs, OutgoingWebhookStepInputs, ExternalAppStepOutputs, DiscordStepInputs, SlackStepInputs, ZapierStepInputs, ZapierStepOutputs, MakeIntegrationInputs, n8nStepInputs, BashStepInputs, BashStepOutputs, OpenAIStepInputs, OpenAIStepOutputs, LoopStepInputs, AppActionTriggerInputs, CronTriggerInputs, RowUpdatedTriggerInputs, RowCreatedTriggerInputs, RowDeletedTriggerInputs, BranchStepInputs, BaseAutomationOutputs } from "./StepInputsOutputs";
4
4
  export type ActionImplementations<T extends Hosting> = {
5
5
  [AutomationActionStepId.COLLECT]: ActionImplementation<CollectStepInputs, CollectStepOutputs>;
@@ -27,6 +27,7 @@ export type ActionImplementations<T extends Hosting> = {
27
27
  export interface AutomationStepSchemaBase {
28
28
  name: string;
29
29
  stepTitle?: string;
30
+ event?: AutomationEventType;
30
31
  tagline: string;
31
32
  icon: string;
32
33
  description: string;
@@ -84,7 +85,7 @@ export type AutomationTriggerInputs<T extends AutomationTriggerStepId> = T exten
84
85
  export interface AutomationTriggerSchema<TTrigger extends AutomationTriggerStepId> extends AutomationStepSchemaBase {
85
86
  id: string;
86
87
  type: AutomationStepType.TRIGGER;
87
- event?: string;
88
+ event?: AutomationEventType;
88
89
  cronJobId?: string;
89
90
  stepId: TTrigger;
90
91
  inputs: AutomationTriggerInputs<TTrigger> & Record<string, any>;
@@ -74,6 +74,7 @@ export interface ViewV2 {
74
74
  type?: SortType;
75
75
  };
76
76
  schema?: ViewV2Schema;
77
+ rowHeight?: number;
77
78
  }
78
79
  export interface PublicAPIView extends Omit<ViewV2, "query" | "queryUI"> {
79
80
  query?: UISearchFilter;
@@ -1,4 +1,5 @@
1
1
  import { Document } from "../document";
2
+ import { JSONSchema7 } from "json-schema";
2
3
  export declare enum WebhookActionType {
3
4
  AUTOMATION = "automation"
4
5
  }
@@ -9,5 +10,5 @@ export interface Webhook extends Document {
9
10
  type: WebhookActionType;
10
11
  target: string;
11
12
  };
12
- bodySchema?: any;
13
+ bodySchema?: JSONSchema7;
13
14
  }
@@ -58,6 +58,8 @@ export interface User extends Document {
58
58
  appFavourites?: string[];
59
59
  ssoId?: string;
60
60
  appSort?: string;
61
+ budibaseAccess?: boolean;
62
+ accountPortalAccess?: boolean;
61
63
  }
62
64
  export interface UserBindings extends Document {
63
65
  firstName?: string;
package/dist/index.d.ts CHANGED
@@ -3,3 +3,4 @@ export * from "./sdk";
3
3
  export * from "./api";
4
4
  export * from "./core";
5
5
  export * from "./shared";
6
+ export * from "./ui";