@budibase/types 3.4.19 → 3.4.21

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.
@@ -9,7 +9,6 @@ export declare enum EmailTemplatePurpose {
9
9
  CUSTOM = "custom"
10
10
  }
11
11
  export interface SendEmailRequest {
12
- workspaceId?: string;
13
12
  email: string;
14
13
  userId?: string;
15
14
  purpose: EmailTemplatePurpose;
@@ -88,7 +88,7 @@ export interface EmailAttachment {
88
88
  export interface SendEmailOpts {
89
89
  to?: string;
90
90
  workspaceId?: string;
91
- user: User;
91
+ user?: User;
92
92
  from?: string;
93
93
  contents?: string;
94
94
  subject: string;
@@ -23,12 +23,27 @@ export interface Plugin extends Document {
23
23
  [key: string]: any;
24
24
  };
25
25
  hash: string;
26
- schema: {
27
- type: PluginType;
28
- [key: string]: any;
29
- };
26
+ schema: PluginSchema;
30
27
  iconFileName?: string;
31
28
  jsUrl?: string;
32
29
  iconUrl?: string;
33
30
  }
34
31
  export declare const PLUGIN_TYPE_ARR: PluginType[];
32
+ export interface PluginSchema {
33
+ type: PluginType;
34
+ [key: string]: any;
35
+ }
36
+ interface Package {
37
+ name: string;
38
+ version: string;
39
+ description: string;
40
+ }
41
+ export interface PluginMetadata {
42
+ schema: PluginSchema;
43
+ package: Package;
44
+ }
45
+ export interface PluginUpload {
46
+ metadata: PluginMetadata;
47
+ directory: string;
48
+ }
49
+ export {};