@budibase/shared-core 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.
- package/dist/ids.d.ts +18 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +11 -11
- package/dist/index.js.map +4 -4
- package/dist/login.d.ts +1 -0
- package/package.json +2 -2
package/dist/ids.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DocumentType, VirtualDocumentType } from "@budibase/types";
|
|
2
|
+
export declare function getDocumentType(id: string): DocumentType | undefined;
|
|
3
|
+
export declare function getVirtualDocumentType(id: string): VirtualDocumentType | undefined;
|
|
4
|
+
export declare const isExternalTableId: (id: string) => boolean;
|
|
5
|
+
/**
|
|
6
|
+
* This function checks if the given ID is a table ID, including datasource
|
|
7
|
+
* plus tables.
|
|
8
|
+
*
|
|
9
|
+
* Example of IDs that will return true:
|
|
10
|
+
* - "ta_12345"
|
|
11
|
+
* - "datasource_plus_12345__ta_67890"
|
|
12
|
+
*/
|
|
13
|
+
export declare const isTableIdOrExternalTableId: (id: string) => boolean;
|
|
14
|
+
export declare const isTableId: (id: string) => boolean;
|
|
15
|
+
export declare const isViewId: (id: string) => boolean;
|
|
16
|
+
export declare const isDatasourceOrDatasourcePlusId: (id: string) => boolean;
|
|
17
|
+
export declare const isQueryId: (id: string) => boolean;
|
|
18
|
+
export declare function getTableIdFromViewId(viewId: string): string;
|