@squadbase/vite-server 0.1.17-dev.24af54e → 0.1.17-dev.3b633bb
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 +1681 -449
- package/dist/connectors/airtable-oauth.js +28 -3
- package/dist/connectors/airtable.js +28 -3
- package/dist/connectors/amplitude.js +28 -3
- package/dist/connectors/asana.js +28 -3
- package/dist/connectors/attio.js +28 -3
- package/dist/connectors/aws-billing.js +28 -3
- package/dist/connectors/azure-sql.js +31 -6
- package/dist/connectors/backlog-api-key.js +28 -3
- package/dist/connectors/clickup.js +28 -3
- package/dist/connectors/cosmosdb.js +28 -3
- package/dist/connectors/customerio.js +29 -4
- package/dist/connectors/dbt.js +28 -3
- package/dist/connectors/freshdesk.js +28 -3
- package/dist/connectors/freshsales.js +28 -3
- package/dist/connectors/freshservice.js +28 -3
- package/dist/connectors/gamma.js +30 -5
- package/dist/connectors/github.js +28 -3
- package/dist/connectors/gmail-oauth.js +28 -3
- package/dist/connectors/gmail.js +28 -3
- package/dist/connectors/google-ads.js +28 -3
- package/dist/connectors/google-analytics-oauth.js +28 -3
- package/dist/connectors/google-analytics.js +227 -105
- package/dist/connectors/google-audit-log.js +28 -3
- package/dist/connectors/google-calendar-oauth.js +28 -3
- package/dist/connectors/google-calendar.js +28 -3
- package/dist/connectors/google-docs.js +28 -3
- package/dist/connectors/google-drive.js +28 -3
- package/dist/connectors/google-search-console-oauth.js +28 -3
- package/dist/connectors/google-sheets.js +28 -3
- package/dist/connectors/google-slides.js +28 -3
- package/dist/connectors/grafana.js +28 -3
- package/dist/connectors/hubspot-oauth.js +28 -3
- package/dist/connectors/hubspot.js +28 -3
- package/dist/connectors/influxdb.js +28 -3
- package/dist/connectors/intercom-oauth.js +28 -3
- package/dist/connectors/intercom.js +28 -3
- package/dist/connectors/jdbc.js +28 -3
- package/dist/connectors/jira-api-key.js +28 -3
- package/dist/connectors/kintone-api-token.js +28 -3
- package/dist/connectors/kintone.js +28 -3
- package/dist/connectors/linear.js +28 -3
- package/dist/connectors/linkedin-ads.js +28 -3
- package/dist/connectors/mailchimp-oauth.js +28 -3
- package/dist/connectors/mailchimp.js +28 -3
- package/dist/connectors/meta-ads-oauth.js +28 -3
- package/dist/connectors/meta-ads.js +28 -3
- package/dist/connectors/mixpanel.js +28 -3
- package/dist/connectors/monday.js +28 -3
- package/dist/connectors/mongodb.js +28 -3
- package/dist/connectors/notion-oauth.js +28 -3
- package/dist/connectors/notion.js +28 -3
- package/dist/connectors/oracle.js +54 -14
- package/dist/connectors/outlook-oauth.js +28 -3
- package/dist/connectors/powerbi-oauth.js +309 -37
- package/dist/connectors/salesforce.js +28 -3
- package/dist/connectors/semrush.js +366 -46
- package/dist/connectors/sentry.js +28 -3
- package/dist/connectors/shopify-oauth.js +28 -3
- package/dist/connectors/shopify.js +28 -3
- package/dist/connectors/sqlserver.js +31 -6
- package/dist/connectors/stripe-api-key.js +28 -3
- package/dist/connectors/stripe-oauth.js +28 -3
- package/dist/connectors/supabase.js +31 -6
- package/dist/connectors/tableau.js +246 -78
- package/dist/connectors/tiktok-ads.js +28 -3
- package/dist/connectors/wix-store.js +28 -3
- package/dist/connectors/zendesk-oauth.js +28 -3
- package/dist/connectors/zendesk.js +28 -3
- package/dist/index.js +1681 -449
- package/dist/main.js +1681 -449
- package/dist/vite-plugin.js +1681 -449
- package/package.json +1 -1
|
@@ -365,19 +365,34 @@ async function runSetupFlow(flow, params, ctx, config) {
|
|
|
365
365
|
};
|
|
366
366
|
let state = flow.initialState();
|
|
367
367
|
let answerIdx = 0;
|
|
368
|
+
const pendingParameterUpdates = [];
|
|
368
369
|
for (const step of flow.steps) {
|
|
369
370
|
const ans = ctx.answers[answerIdx];
|
|
370
371
|
if (ans && ans.questionSlug === step.slug) {
|
|
371
372
|
state = step.applyAnswer(state, ans.answer);
|
|
373
|
+
if (step.toParameterUpdates) {
|
|
374
|
+
pendingParameterUpdates.push(...step.toParameterUpdates(state));
|
|
375
|
+
}
|
|
372
376
|
answerIdx += 1;
|
|
373
377
|
continue;
|
|
374
378
|
}
|
|
379
|
+
const resolvedAllowFreeText = step.allowFreeText !== void 0 ? step.allowFreeText : true;
|
|
375
380
|
if (step.type === "text") {
|
|
381
|
+
if (step.fetchOptions) {
|
|
382
|
+
const options2 = await step.fetchOptions(state, runtime);
|
|
383
|
+
if (options2.length === 0) {
|
|
384
|
+
continue;
|
|
385
|
+
}
|
|
386
|
+
}
|
|
376
387
|
return {
|
|
377
388
|
type: "nextQuestion",
|
|
378
389
|
questionSlug: step.slug,
|
|
379
390
|
question: step.question[ctx.language],
|
|
380
|
-
questionType: "text"
|
|
391
|
+
questionType: "text",
|
|
392
|
+
allowFreeText: resolvedAllowFreeText,
|
|
393
|
+
...pendingParameterUpdates.length > 0 && {
|
|
394
|
+
parameterUpdates: pendingParameterUpdates
|
|
395
|
+
}
|
|
381
396
|
};
|
|
382
397
|
}
|
|
383
398
|
const options = step.fetchOptions ? await step.fetchOptions(state, runtime) : [];
|
|
@@ -389,11 +404,21 @@ async function runSetupFlow(flow, params, ctx, config) {
|
|
|
389
404
|
questionSlug: step.slug,
|
|
390
405
|
question: step.question[ctx.language],
|
|
391
406
|
questionType: step.type,
|
|
392
|
-
options
|
|
407
|
+
options,
|
|
408
|
+
allowFreeText: resolvedAllowFreeText,
|
|
409
|
+
...pendingParameterUpdates.length > 0 && {
|
|
410
|
+
parameterUpdates: pendingParameterUpdates
|
|
411
|
+
}
|
|
393
412
|
};
|
|
394
413
|
}
|
|
395
414
|
const dataInvestigationResult = await flow.finalize(state, runtime);
|
|
396
|
-
return {
|
|
415
|
+
return {
|
|
416
|
+
type: "fulfilled",
|
|
417
|
+
dataInvestigationResult,
|
|
418
|
+
...pendingParameterUpdates.length > 0 && {
|
|
419
|
+
parameterUpdates: pendingParameterUpdates
|
|
420
|
+
}
|
|
421
|
+
};
|
|
397
422
|
}
|
|
398
423
|
async function resolveSetupSelection(params) {
|
|
399
424
|
const { selected, allSentinel, fetchAll, limit } = params;
|