@squadbase/vite-server 0.1.9-dev.87dd3f7 → 0.1.9-dev.a57a0ac

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.
Files changed (44) hide show
  1. package/dist/cli/index.js +74937 -61829
  2. package/dist/connectors/asana.js +15 -2
  3. package/dist/connectors/aws-billing.d.ts +5 -0
  4. package/dist/connectors/aws-billing.js +29843 -0
  5. package/dist/connectors/azure-sql.d.ts +5 -0
  6. package/dist/connectors/azure-sql.js +657 -0
  7. package/dist/connectors/clickup.d.ts +5 -0
  8. package/dist/connectors/clickup.js +850 -0
  9. package/dist/connectors/freshdesk.d.ts +5 -0
  10. package/dist/connectors/freshdesk.js +842 -0
  11. package/dist/connectors/freshsales.d.ts +5 -0
  12. package/dist/connectors/freshsales.js +867 -0
  13. package/dist/connectors/freshservice.d.ts +5 -0
  14. package/dist/connectors/freshservice.js +813 -0
  15. package/dist/connectors/github.d.ts +5 -0
  16. package/dist/connectors/github.js +963 -0
  17. package/dist/connectors/gmail-oauth.js +15 -2
  18. package/dist/connectors/gmail.js +23 -14
  19. package/dist/connectors/google-audit-log.js +25 -14
  20. package/dist/connectors/google-calendar-oauth.js +18 -2
  21. package/dist/connectors/google-calendar.js +40 -26
  22. package/dist/connectors/google-docs.js +18 -2
  23. package/dist/connectors/google-drive.js +15 -2
  24. package/dist/connectors/google-search-console-oauth.d.ts +5 -0
  25. package/dist/connectors/google-search-console-oauth.js +954 -0
  26. package/dist/connectors/google-sheets.js +18 -2
  27. package/dist/connectors/google-slides.js +18 -2
  28. package/dist/connectors/jdbc.d.ts +5 -0
  29. package/dist/connectors/jdbc.js +21097 -0
  30. package/dist/connectors/monday.d.ts +5 -0
  31. package/dist/connectors/monday.js +853 -0
  32. package/dist/connectors/oracle.d.ts +5 -0
  33. package/dist/connectors/oracle.js +665 -0
  34. package/dist/connectors/semrush.d.ts +5 -0
  35. package/dist/connectors/semrush.js +812 -0
  36. package/dist/connectors/sqlserver.d.ts +5 -0
  37. package/dist/connectors/sqlserver.js +656 -0
  38. package/dist/connectors/supabase.d.ts +5 -0
  39. package/dist/connectors/supabase.js +582 -0
  40. package/dist/connectors/tiktok-ads.js +15 -2
  41. package/dist/index.js +73506 -60398
  42. package/dist/main.js +73500 -60392
  43. package/dist/vite-plugin.js +73405 -60297
  44. package/package.json +60 -2
@@ -273,9 +273,21 @@ var AUTH_TYPES = {
273
273
  USER_PASSWORD: "user-password"
274
274
  };
275
275
 
276
+ // ../connectors/src/lib/normalize-path.ts
277
+ function normalizeRequestPath(path2, basePathSegment) {
278
+ let p = path2.trim();
279
+ if (!p.startsWith("/")) p = "/" + p;
280
+ if (p === basePathSegment || p.startsWith(basePathSegment + "/")) {
281
+ p = p.slice(basePathSegment.length) || "/";
282
+ }
283
+ return p;
284
+ }
285
+
276
286
  // ../connectors/src/connectors/google-sheets/tools/request.ts
277
287
  import { z } from "zod";
278
- var SHEETS_BASE_URL2 = "https://sheets.googleapis.com/v4/spreadsheets";
288
+ var SHEETS_BASE_HOST = "https://sheets.googleapis.com";
289
+ var SHEETS_BASE_PATH_SEGMENT = "/v4/spreadsheets";
290
+ var SHEETS_BASE_URL2 = `${SHEETS_BASE_HOST}${SHEETS_BASE_PATH_SEGMENT}`;
279
291
  var REQUEST_TIMEOUT_MS = 6e4;
280
292
  var cachedToken = null;
281
293
  async function getProxyToken(config) {
@@ -355,7 +367,11 @@ Authentication is handled automatically via OAuth proxy.`,
355
367
  `[connector-request] google-sheets/${connection2.name}: ${method} ${path2}`
356
368
  );
357
369
  try {
358
- let url = `${SHEETS_BASE_URL2}${path2 === "" || path2.startsWith("/") ? "" : "/"}${path2}`;
370
+ const normalizedPath = normalizeRequestPath(
371
+ path2,
372
+ SHEETS_BASE_PATH_SEGMENT
373
+ );
374
+ let url = `${SHEETS_BASE_URL2}${normalizedPath === "/" ? "" : normalizedPath}`;
359
375
  if (queryParams) {
360
376
  const searchParams = new URLSearchParams(queryParams);
361
377
  url += `?${searchParams.toString()}`;
@@ -215,6 +215,16 @@ var AUTH_TYPES = {
215
215
  USER_PASSWORD: "user-password"
216
216
  };
217
217
 
218
+ // ../connectors/src/lib/normalize-path.ts
219
+ function normalizeRequestPath(path2, basePathSegment) {
220
+ let p = path2.trim();
221
+ if (!p.startsWith("/")) p = "/" + p;
222
+ if (p === basePathSegment || p.startsWith(basePathSegment + "/")) {
223
+ p = p.slice(basePathSegment.length) || "/";
224
+ }
225
+ return p;
226
+ }
227
+
218
228
  // ../connectors/src/connectors/google-slides/setup.ts
219
229
  var googleSlidesOnboarding = new ConnectorOnboarding({
220
230
  dataOverviewInstructions: {
@@ -230,7 +240,9 @@ var parameters = {};
230
240
 
231
241
  // ../connectors/src/connectors/google-slides/tools/request.ts
232
242
  import { z } from "zod";
233
- var SLIDES_BASE_URL2 = "https://slides.googleapis.com/v1/presentations";
243
+ var SLIDES_BASE_HOST = "https://slides.googleapis.com";
244
+ var SLIDES_BASE_PATH_SEGMENT = "/v1/presentations";
245
+ var SLIDES_BASE_URL2 = `${SLIDES_BASE_HOST}${SLIDES_BASE_PATH_SEGMENT}`;
234
246
  var REQUEST_TIMEOUT_MS = 6e4;
235
247
  var cachedToken = null;
236
248
  async function getProxyToken(config) {
@@ -305,7 +317,11 @@ Authentication is handled automatically via OAuth proxy.`,
305
317
  `[connector-request] google-slides/${connection2.name}: ${method} ${path2}`
306
318
  );
307
319
  try {
308
- let url = `${SLIDES_BASE_URL2}${path2 === "" || path2.startsWith("/") ? "" : "/"}${path2}`;
320
+ const normalizedPath = normalizeRequestPath(
321
+ path2,
322
+ SLIDES_BASE_PATH_SEGMENT
323
+ );
324
+ let url = `${SLIDES_BASE_URL2}${normalizedPath === "/" ? "" : normalizedPath}`;
309
325
  if (queryParams) {
310
326
  const searchParams = new URLSearchParams(queryParams);
311
327
  url += `?${searchParams.toString()}`;
@@ -0,0 +1,5 @@
1
+ import * as _squadbase_connectors_sdk from '@squadbase/connectors/sdk';
2
+
3
+ declare const connection: (connectionId: string) => _squadbase_connectors_sdk.JdbcConnectorSdk;
4
+
5
+ export { connection };