@budibase/types 3.12.13 → 3.12.15

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.
@@ -43,10 +43,15 @@ export interface AddAppSampleDataResponse {
43
43
  message: string;
44
44
  }
45
45
  export type FetchAppsResponse = App[];
46
- export interface PublishResponse {
47
- _id: string;
48
- status: string;
49
- appUrl: string;
46
+ export interface PublishedAppData {
47
+ name: string;
48
+ appId: string;
49
+ url: string;
50
+ prodId: string;
51
+ updatedAt?: string;
52
+ }
53
+ export interface FetchPublishedAppsResponse {
54
+ apps: PublishedAppData[];
50
55
  }
51
56
  export interface UpdateAppRequest extends Partial<App> {
52
57
  }
@@ -1,4 +1,8 @@
1
1
  import { DeploymentDoc, DeploymentStatus } from "../../../documents";
2
+ export interface PublishAppRequest {
3
+ automationIds?: string[];
4
+ workspaceAppIds?: string[];
5
+ }
2
6
  export interface PublishAppResponse extends DeploymentDoc {
3
7
  }
4
8
  export interface DeploymentProgressResponse {
@@ -23,3 +23,4 @@ export * from "./user";
23
23
  export * from "./view";
24
24
  export * from "./webhook";
25
25
  export * from "./navigation";
26
+ export * from "./resource";
@@ -0,0 +1,23 @@
1
+ export interface ResourceUsageRequest {
2
+ workspaceAppIds?: string[];
3
+ automationIds?: string[];
4
+ }
5
+ export declare enum UsedByType {
6
+ WORKSPACE = "workspace",
7
+ AUTOMATION = "automation"
8
+ }
9
+ export declare enum ResourceType {
10
+ DATASOURCE = "datasource",
11
+ TABLE = "table",
12
+ ROW_ACTION = "row_action",
13
+ QUERY = "query",
14
+ AUTOMATION = "automation"
15
+ }
16
+ export interface UsedResource {
17
+ id: string;
18
+ name?: string;
19
+ type: ResourceType;
20
+ }
21
+ export interface ResourceUsageResponse {
22
+ resources: UsedResource[];
23
+ }
@@ -3,7 +3,7 @@ export interface WorkspaceAppResponse {
3
3
  _id: string;
4
4
  _rev: string;
5
5
  name: string;
6
- urlPrefix: string;
6
+ url: string;
7
7
  icon: string;
8
8
  iconColor?: string;
9
9
  navigation: AppNavigation;
@@ -11,7 +11,7 @@ export interface WorkspaceAppResponse {
11
11
  }
12
12
  export interface InsertWorkspaceAppRequest {
13
13
  name: string;
14
- urlPrefix: string;
14
+ url: string;
15
15
  icon: string;
16
16
  iconColor?: string;
17
17
  }
@@ -22,7 +22,7 @@ export interface UpdateWorkspaceAppRequest {
22
22
  _id: string;
23
23
  _rev: string;
24
24
  name: string;
25
- urlPrefix: string;
25
+ url: string;
26
26
  icon: string;
27
27
  iconColor?: string;
28
28
  navigation: AppNavigation;
@@ -1,5 +1,6 @@
1
1
  import { Document } from "../document";
2
2
  import { FieldSchema } from "./table";
3
+ export declare const EXTERNAL_ROW_REV = "rev";
3
4
  export declare enum FieldType {
4
5
  /**
5
6
  * a primitive type, stores a string, called Text within Budibase. This is one of the default
@@ -2,7 +2,7 @@ import { Document } from "../document";
2
2
  import { AppNavigation } from "./app";
3
3
  export interface WorkspaceApp extends Document {
4
4
  name: string;
5
- urlPrefix: string;
5
+ url: string;
6
6
  icon: string;
7
7
  iconColor?: string;
8
8
  navigation: AppNavigation;
@@ -42,7 +42,6 @@ export declare enum DocumentType {
42
42
  AGENT_TOOL_SOURCE = "agenttoolsource",
43
43
  WORKSPACE_APP = "workspace_app"
44
44
  }
45
- export declare function getDocumentType(id: string): DocumentType | undefined;
46
45
  export declare const DocumentTypesToImport: DocumentType[];
47
46
  export declare enum InternalTable {
48
47
  USER_METADATA = "ta_users"
@@ -51,7 +50,6 @@ export declare enum VirtualDocumentType {
51
50
  VIEW = "view",
52
51
  ROW_ACTION = "row_action"
53
52
  }
54
- export declare function getVirtualDocumentType(id: string): VirtualDocumentType | undefined;
55
53
  export interface Document {
56
54
  _id?: string;
57
55
  _rev?: string;