@base44-preview/sdk 0.8.20-pr.141.620d2a2 → 0.8.20-pr.142.985ee7b

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.
@@ -48,30 +48,42 @@ export interface ConnectorConnectionResponse {
48
48
  *
49
49
  * | Service | Type identifier |
50
50
  * |---|---|
51
+ * | Airtable | `airtable` |
51
52
  * | Box | `box` |
52
53
  * | ClickUp | `clickup` |
53
54
  * | Discord | `discord` |
55
+ * | Dropbox | `dropbox` |
54
56
  * | GitHub | `github` |
55
57
  * | Gmail | `gmail` |
56
58
  * | Google Analytics | `google_analytics` |
57
59
  * | Google BigQuery | `googlebigquery` |
58
60
  * | Google Calendar | `googlecalendar` |
61
+ * | Google Classroom | `google_classroom` |
59
62
  * | Google Docs | `googledocs` |
60
63
  * | Google Drive | `googledrive` |
64
+ * | Google Search Console | `google_search_console` |
61
65
  * | Google Sheets | `googlesheets` |
62
66
  * | Google Slides | `googleslides` |
63
67
  * | HubSpot | `hubspot` |
68
+ * | Linear | `linear` |
64
69
  * | LinkedIn | `linkedin` |
70
+ * | Microsoft Teams | `microsoft_teams` |
71
+ * | Microsoft OneDrive | `one_drive` |
65
72
  * | Notion | `notion` |
73
+ * | Outlook | `outlook` |
66
74
  * | Salesforce | `salesforce` |
75
+ * | SharePoint | `share_point` |
67
76
  * | Slack User | `slack` |
68
77
  * | Slack Bot | `slackbot` |
78
+ * | Splitwise | `splitwise` |
69
79
  * | TikTok | `tiktok` |
80
+ * | Typeform | `typeform` |
81
+ * | Wix | `wix` |
70
82
  * | Wrike | `wrike` |
71
83
  *
72
84
  * See the integration guides for more details:
73
85
  *
74
- * - **Scopes and permissions**: {@link https://docs.base44.com/Integrations/gmail-connector#gmail-scopes-and-permissions | Gmail}, {@link https://docs.base44.com/Integrations/linkedin-connector#linkedin-scopes-and-permissions | LinkedIn}, {@link https://docs.base44.com/Integrations/slack-connector#slack-scopes-and-permissions | Slack}
86
+ * - **Scopes and permissions**: {@link https://docs.base44.com/Integrations/gmail-connector#gmail-scopes-and-permissions | Gmail}, {@link https://docs.base44.com/Integrations/linkedin-connector#linkedin-scopes-and-permissions | LinkedIn}, {@link https://docs.base44.com/Integrations/slack-connector#slack-scopes-and-permissions | Slack}, {@link https://docs.base44.com/Integrations/github-connector#github-scopes-and-permissions | GitHub}
75
87
  * - **Slack connector types**: {@link https://docs.base44.com/Integrations/slack-connector#about-the-slack-connectors | About the Slack connectors} explains the difference between `slack` and `slackbot`
76
88
  *
77
89
  * ## Authentication Modes
@@ -7,32 +7,6 @@
7
7
  * @internal
8
8
  */
9
9
  export function createFunctionsModule(axios, appId) {
10
- const joinBaseUrl = (base, path) => {
11
- if (!base)
12
- return path;
13
- return `${String(base).replace(/\/$/, "")}${path}`;
14
- };
15
- const toHeaders = (inputHeaders) => {
16
- var _a;
17
- const headers = new Headers();
18
- const appendHeaders = (source) => {
19
- if (!source)
20
- return;
21
- Object.entries(source).forEach(([key, value]) => {
22
- if (value !== undefined && value !== null) {
23
- headers.set(key, String(value));
24
- }
25
- });
26
- };
27
- // Append common headers from axios defaults
28
- appendHeaders((_a = axios.defaults.headers) === null || _a === void 0 ? void 0 : _a.common);
29
- if (inputHeaders) {
30
- new Headers(inputHeaders).forEach((value, key) => {
31
- headers.set(key, value);
32
- });
33
- }
34
- return headers;
35
- };
36
10
  return {
37
11
  // Invoke a custom backend function by name
38
12
  async invoke(functionName, data) {
@@ -65,17 +39,5 @@ export function createFunctionsModule(axios, appId) {
65
39
  }
66
40
  return axios.post(`/apps/${appId}/functions/${functionName}`, formData || data, { headers: { "Content-Type": contentType } });
67
41
  },
68
- // Fetch a backend function endpoint directly (supports streaming).
69
- async fetch(path, init = {}) {
70
- const normalizedPath = path.startsWith("/") ? path : `/${path}`;
71
- const primaryPath = `/functions${normalizedPath}`;
72
- const headers = toHeaders(init.headers);
73
- const requestInit = {
74
- ...init,
75
- headers,
76
- };
77
- const response = await fetch(joinBaseUrl(axios.defaults.baseURL, primaryPath), requestInit);
78
- return response;
79
- },
80
42
  };
81
43
  }
@@ -14,12 +14,6 @@ export interface FunctionNameRegistry {
14
14
  * ```
15
15
  */
16
16
  export type FunctionName = keyof FunctionNameRegistry extends never ? string : keyof FunctionNameRegistry;
17
- /**
18
- * Options for {@linkcode FunctionsModule.fetch}.
19
- *
20
- * Uses native `fetch` options directly.
21
- */
22
- export type FunctionsFetchInit = RequestInit;
23
17
  /**
24
18
  * Functions module for invoking custom backend functions.
25
19
  *
@@ -74,17 +68,4 @@ export interface FunctionsModule {
74
68
  * ```
75
69
  */
76
70
  invoke(functionName: FunctionName, data?: Record<string, any>): Promise<any>;
77
- /**
78
- * Performs a direct HTTP request to a backend function path and returns the native `Response`.
79
- *
80
- * Use this when you need streaming behavior (SSE, chunked text, NDJSON),
81
- * because `invoke()` buffers the full response.
82
- *
83
- * Requests are sent to `/api/functions/<path>`.
84
- *
85
- * @param path - Function path, e.g. `/streaming_demo` or `/streaming_demo/deep/path`
86
- * @param init - Native fetch options.
87
- * @returns Promise resolving to a native fetch `Response`
88
- */
89
- fetch(path: string, init?: FunctionsFetchInit): Promise<Response>;
90
71
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base44-preview/sdk",
3
- "version": "0.8.20-pr.141.620d2a2",
3
+ "version": "0.8.20-pr.142.985ee7b",
4
4
  "description": "JavaScript SDK for Base44 API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",