@squadbase/vite-server 0.1.9-dev.87dd3f7 → 0.1.9-dev.d3c856d
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 +50113 -41306
- 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/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-sheets.js +18 -2
- package/dist/connectors/google-slides.js +18 -2
- package/dist/connectors/tiktok-ads.js +15 -2
- package/dist/index.js +50179 -41372
- package/dist/main.js +50173 -41366
- package/dist/vite-plugin.js +50078 -41271
- package/package.json +5 -1
|
@@ -201,6 +201,16 @@ var AUTH_TYPES = {
|
|
|
201
201
|
USER_PASSWORD: "user-password"
|
|
202
202
|
};
|
|
203
203
|
|
|
204
|
+
// ../connectors/src/lib/normalize-path.ts
|
|
205
|
+
function normalizeRequestPath(path2, basePathSegment) {
|
|
206
|
+
let p = path2.trim();
|
|
207
|
+
if (!p.startsWith("/")) p = "/" + p;
|
|
208
|
+
if (p === basePathSegment || p.startsWith(basePathSegment + "/")) {
|
|
209
|
+
p = p.slice(basePathSegment.length) || "/";
|
|
210
|
+
}
|
|
211
|
+
return p;
|
|
212
|
+
}
|
|
213
|
+
|
|
204
214
|
// ../connectors/src/connectors/tiktok-ads/tools/list-advertisers.ts
|
|
205
215
|
import { z } from "zod";
|
|
206
216
|
var BASE_URL2 = "https://business-api.tiktok.com/open_api/v1.3/";
|
|
@@ -375,7 +385,9 @@ var parameters = {
|
|
|
375
385
|
|
|
376
386
|
// ../connectors/src/connectors/tiktok-ads/tools/request.ts
|
|
377
387
|
import { z as z2 } from "zod";
|
|
378
|
-
var
|
|
388
|
+
var BASE_HOST = "https://business-api.tiktok.com";
|
|
389
|
+
var BASE_PATH_SEGMENT = "/open_api/v1.3";
|
|
390
|
+
var BASE_URL3 = `${BASE_HOST}${BASE_PATH_SEGMENT}`;
|
|
379
391
|
var REQUEST_TIMEOUT_MS2 = 6e4;
|
|
380
392
|
var cachedToken2 = null;
|
|
381
393
|
async function getProxyToken2(config) {
|
|
@@ -451,7 +463,8 @@ The advertiser_id is automatically injected if configured.`,
|
|
|
451
463
|
);
|
|
452
464
|
try {
|
|
453
465
|
const advertiserId = parameters.advertiserId.tryGetValue(connection2) ?? "";
|
|
454
|
-
|
|
466
|
+
const normalizedPath = normalizeRequestPath(path2, BASE_PATH_SEGMENT);
|
|
467
|
+
let url = `${BASE_URL3}${normalizedPath}`;
|
|
455
468
|
if (method === "GET") {
|
|
456
469
|
const params = new URLSearchParams(queryParams ?? {});
|
|
457
470
|
if (advertiserId && !params.has("advertiser_id")) {
|