@budibase/shared-core 3.34.1 → 3.34.3
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/constants/chat.d.ts +9 -0
- package/dist/constants/index.d.ts +1 -1
- package/dist/constants/urls.d.ts +1 -1
- package/dist/helpers/envVariables.d.ts +1 -0
- package/dist/helpers/helpers.d.ts +4 -0
- package/dist/helpers/index.d.ts +1 -0
- package/dist/index.js +3 -3
- package/dist/index.js.map +3 -3
- package/package.json +2 -2
- package/dist/constants/discord.d.ts +0 -5
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const ChatCommands: {
|
|
2
|
+
readonly ASK: "ask";
|
|
3
|
+
readonly NEW: "new";
|
|
4
|
+
readonly LINK: "link";
|
|
5
|
+
readonly UNSUPPORTED: "unsupported";
|
|
6
|
+
};
|
|
7
|
+
export type ChatCommand = (typeof ChatCommands)[keyof typeof ChatCommands];
|
|
8
|
+
export type SupportedChatCommand = typeof ChatCommands.ASK | typeof ChatCommands.NEW | typeof ChatCommands.LINK | typeof ChatCommands.UNSUPPORTED;
|
|
9
|
+
export declare const SupportedChatCommands: readonly ["ask", "new", "link", "unsupported"];
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export * from "./ai";
|
|
2
2
|
export * from "./api";
|
|
3
|
+
export * from "./chat";
|
|
3
4
|
export * from "./fields";
|
|
4
5
|
export * from "./rows";
|
|
5
6
|
export * from "./colors";
|
|
6
7
|
export * from "./themes";
|
|
7
8
|
export * from "./urls";
|
|
8
|
-
export * from "./discord";
|
|
9
9
|
export declare const OperatorOptions: {
|
|
10
10
|
Equals: {
|
|
11
11
|
value: string;
|
package/dist/constants/urls.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const BUILDER_URLS: {
|
|
2
|
-
readonly WORKSPACES: "/builder/
|
|
2
|
+
readonly WORKSPACES: "/builder/apps";
|
|
3
3
|
readonly SETTINGS_EMAIL: "/builder/settings/email";
|
|
4
4
|
readonly SETTINGS_AUTH: "/builder/settings/auth";
|
|
5
5
|
readonly SETTINGS_PEOPLE_USERS: "/builder/settings/people/users";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isEnvironmentVariableKey(str: unknown): boolean;
|
|
@@ -33,3 +33,7 @@ export declare function withTimeout<T>(timeout: number, promise: () => Promise<T
|
|
|
33
33
|
* @return the escaped string safe for use in HTML
|
|
34
34
|
*/
|
|
35
35
|
export declare const escapeHtml: (str: string | undefined | null) => string;
|
|
36
|
+
/**
|
|
37
|
+
* Normalizes a string for case-insensitive comparisons.
|
|
38
|
+
*/
|
|
39
|
+
export declare const normalizeForComparison: (value: string) => string;
|
package/dist/helpers/index.d.ts
CHANGED
|
@@ -15,3 +15,4 @@ export * as lists from "./lists";
|
|
|
15
15
|
export * from "./duplicate";
|
|
16
16
|
export { accountPortalAccountUrl, accountPortalBillingUrl, accountPortalUpgradeUrl, builderWorkspacesUrl, builderSettingsEmailUrl, builderSettingsAuthUrl, builderSettingsPeopleUsersUrl, builderAppsUrl, appChatUrl, appAgentUrl, agentChatUrl, urlHelpers, } from "./url";
|
|
17
17
|
export * from "./readableHelpers";
|
|
18
|
+
export { isEnvironmentVariableKey } from "./envVariables";
|