@squadbase/vite-server 0.1.9-dev.87dd3f7 → 0.1.9-dev.a120137
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/cli/index.js +73157 -60061
- package/dist/connectors/asana.js +15 -2
- package/dist/connectors/aws-billing.d.ts +5 -0
- package/dist/connectors/aws-billing.js +29843 -0
- package/dist/connectors/azure-sql.d.ts +5 -0
- package/dist/connectors/azure-sql.js +657 -0
- package/dist/connectors/clickup.d.ts +5 -0
- package/dist/connectors/clickup.js +850 -0
- package/dist/connectors/freshdesk.d.ts +5 -0
- package/dist/connectors/freshdesk.js +842 -0
- package/dist/connectors/freshsales.d.ts +5 -0
- package/dist/connectors/freshsales.js +867 -0
- package/dist/connectors/freshservice.d.ts +5 -0
- package/dist/connectors/freshservice.js +813 -0
- package/dist/connectors/github.d.ts +5 -0
- package/dist/connectors/github.js +963 -0
- package/dist/connectors/gmail-oauth.js +15 -2
- package/dist/connectors/gmail.js +23 -14
- package/dist/connectors/google-audit-log.js +25 -14
- package/dist/connectors/google-calendar-oauth.js +18 -2
- package/dist/connectors/google-calendar.js +40 -26
- package/dist/connectors/google-docs.js +18 -2
- package/dist/connectors/google-drive.js +15 -2
- package/dist/connectors/google-search-console-oauth.d.ts +5 -0
- package/dist/connectors/google-search-console-oauth.js +923 -0
- package/dist/connectors/google-sheets.js +18 -2
- package/dist/connectors/google-slides.js +18 -2
- package/dist/connectors/jdbc.d.ts +5 -0
- package/dist/connectors/jdbc.js +21097 -0
- package/dist/connectors/monday.d.ts +5 -0
- package/dist/connectors/monday.js +853 -0
- package/dist/connectors/oracle.d.ts +5 -0
- package/dist/connectors/oracle.js +665 -0
- package/dist/connectors/semrush.d.ts +5 -0
- package/dist/connectors/semrush.js +812 -0
- package/dist/connectors/sqlserver.d.ts +5 -0
- package/dist/connectors/sqlserver.js +656 -0
- package/dist/connectors/supabase.d.ts +5 -0
- package/dist/connectors/supabase.js +582 -0
- package/dist/connectors/tiktok-ads.js +15 -2
- package/dist/index.js +73218 -60122
- package/dist/main.js +73212 -60116
- package/dist/vite-plugin.js +73118 -60022
- 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
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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()}`;
|