@squadbase/vite-server 0.1.17-dev.7408ec4 → 0.1.17-dev.a107052

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 (77) hide show
  1. package/dist/cli/index.js +43 -36
  2. package/dist/connectors/airtable-oauth.js +8 -0
  3. package/dist/connectors/airtable.js +8 -0
  4. package/dist/connectors/amplitude.js +8 -0
  5. package/dist/connectors/anthropic.js +2 -0
  6. package/dist/connectors/asana.js +8 -0
  7. package/dist/connectors/attio.js +8 -0
  8. package/dist/connectors/aws-billing.js +8 -0
  9. package/dist/connectors/azure-sql.js +8 -0
  10. package/dist/connectors/backlog-api-key.js +8 -0
  11. package/dist/connectors/clickup.js +8 -0
  12. package/dist/connectors/cosmosdb.js +8 -0
  13. package/dist/connectors/customerio.js +8 -0
  14. package/dist/connectors/dbt.js +8 -0
  15. package/dist/connectors/freshdesk.js +8 -0
  16. package/dist/connectors/freshsales.js +8 -0
  17. package/dist/connectors/freshservice.js +8 -0
  18. package/dist/connectors/gamma.js +8 -0
  19. package/dist/connectors/gemini.js +2 -0
  20. package/dist/connectors/github.js +8 -0
  21. package/dist/connectors/gmail-oauth.js +6 -0
  22. package/dist/connectors/gmail.js +8 -0
  23. package/dist/connectors/google-ads.js +8 -0
  24. package/dist/connectors/google-analytics-oauth.js +8 -0
  25. package/dist/connectors/google-analytics.js +64 -49
  26. package/dist/connectors/google-audit-log.js +8 -0
  27. package/dist/connectors/google-calendar-oauth.js +8 -0
  28. package/dist/connectors/google-calendar.js +8 -0
  29. package/dist/connectors/google-docs.js +6 -0
  30. package/dist/connectors/google-drive.js +6 -0
  31. package/dist/connectors/google-search-console-oauth.js +8 -0
  32. package/dist/connectors/google-sheets.js +8 -0
  33. package/dist/connectors/google-slides.js +6 -0
  34. package/dist/connectors/grafana.js +8 -0
  35. package/dist/connectors/hubspot-oauth.js +6 -0
  36. package/dist/connectors/hubspot.js +8 -0
  37. package/dist/connectors/influxdb.js +8 -0
  38. package/dist/connectors/intercom-oauth.js +6 -0
  39. package/dist/connectors/intercom.js +8 -0
  40. package/dist/connectors/jdbc.js +8 -0
  41. package/dist/connectors/jira-api-key.js +8 -0
  42. package/dist/connectors/kintone-api-token.js +8 -0
  43. package/dist/connectors/kintone.js +8 -0
  44. package/dist/connectors/linear.js +8 -0
  45. package/dist/connectors/linkedin-ads.js +8 -0
  46. package/dist/connectors/mailchimp-oauth.js +8 -0
  47. package/dist/connectors/mailchimp.js +8 -0
  48. package/dist/connectors/meta-ads-oauth.js +8 -0
  49. package/dist/connectors/meta-ads.js +8 -0
  50. package/dist/connectors/mixpanel.js +8 -0
  51. package/dist/connectors/monday.js +8 -0
  52. package/dist/connectors/mongodb.js +8 -0
  53. package/dist/connectors/notion-oauth.js +6 -0
  54. package/dist/connectors/notion.js +8 -0
  55. package/dist/connectors/openai.js +2 -0
  56. package/dist/connectors/oracle.js +8 -0
  57. package/dist/connectors/outlook-oauth.js +6 -0
  58. package/dist/connectors/powerbi-oauth.js +6 -0
  59. package/dist/connectors/salesforce.js +8 -0
  60. package/dist/connectors/semrush.js +8 -0
  61. package/dist/connectors/sentry.js +8 -0
  62. package/dist/connectors/shopify-oauth.js +6 -0
  63. package/dist/connectors/shopify.js +8 -0
  64. package/dist/connectors/sqlserver.js +8 -0
  65. package/dist/connectors/stripe-api-key.js +8 -0
  66. package/dist/connectors/stripe-oauth.js +6 -0
  67. package/dist/connectors/supabase.js +8 -0
  68. package/dist/connectors/tableau.js +8 -0
  69. package/dist/connectors/tiktok-ads.js +8 -0
  70. package/dist/connectors/wix-store.js +8 -0
  71. package/dist/connectors/zendesk-oauth.js +6 -0
  72. package/dist/connectors/zendesk.js +8 -0
  73. package/dist/index.d.ts +1 -0
  74. package/dist/index.js +54 -42
  75. package/dist/main.js +43 -36
  76. package/dist/vite-plugin.js +43 -36
  77. package/package.json +1 -1
@@ -16,6 +16,7 @@ var init_parameter_definition = __esm({
16
16
  type;
17
17
  secret;
18
18
  required;
19
+ isDeprecated;
19
20
  constructor(config) {
20
21
  this.slug = config.slug;
21
22
  this.name = config.name;
@@ -24,6 +25,7 @@ var init_parameter_definition = __esm({
24
25
  this.type = config.type;
25
26
  this.secret = config.secret;
26
27
  this.required = config.required;
28
+ this.isDeprecated = config.isDeprecated ?? false;
27
29
  }
28
30
  /**
29
31
  * Get the parameter value from a ConnectorConnectionObject.
@@ -360,6 +362,12 @@ async function runSetupFlow(flow, params, ctx, config) {
360
362
  }
361
363
  const resolvedAllowFreeText = step.allowFreeText !== void 0 ? step.allowFreeText : true;
362
364
  if (step.type === "text") {
365
+ if (step.fetchOptions) {
366
+ const options2 = await step.fetchOptions(state, runtime);
367
+ if (options2.length === 0) {
368
+ continue;
369
+ }
370
+ }
363
371
  return {
364
372
  type: "nextQuestion",
365
373
  questionSlug: step.slug,
@@ -193,6 +193,12 @@ async function runSetupFlow(flow, params, ctx, config) {
193
193
  }
194
194
  const resolvedAllowFreeText = step.allowFreeText !== void 0 ? step.allowFreeText : true;
195
195
  if (step.type === "text") {
196
+ if (step.fetchOptions) {
197
+ const options2 = await step.fetchOptions(state, runtime);
198
+ if (options2.length === 0) {
199
+ continue;
200
+ }
201
+ }
196
202
  return {
197
203
  type: "nextQuestion",
198
204
  questionSlug: step.slug,
@@ -16,6 +16,7 @@ var init_parameter_definition = __esm({
16
16
  type;
17
17
  secret;
18
18
  required;
19
+ isDeprecated;
19
20
  constructor(config) {
20
21
  this.slug = config.slug;
21
22
  this.name = config.name;
@@ -24,6 +25,7 @@ var init_parameter_definition = __esm({
24
25
  this.type = config.type;
25
26
  this.secret = config.secret;
26
27
  this.required = config.required;
28
+ this.isDeprecated = config.isDeprecated ?? false;
27
29
  }
28
30
  /**
29
31
  * Get the parameter value from a ConnectorConnectionObject.
@@ -334,6 +336,12 @@ async function runSetupFlow(flow, params, ctx, config) {
334
336
  }
335
337
  const resolvedAllowFreeText = step.allowFreeText !== void 0 ? step.allowFreeText : true;
336
338
  if (step.type === "text") {
339
+ if (step.fetchOptions) {
340
+ const options2 = await step.fetchOptions(state, runtime);
341
+ if (options2.length === 0) {
342
+ continue;
343
+ }
344
+ }
337
345
  return {
338
346
  type: "nextQuestion",
339
347
  questionSlug: step.slug,
@@ -16,6 +16,7 @@ var init_parameter_definition = __esm({
16
16
  type;
17
17
  secret;
18
18
  required;
19
+ isDeprecated;
19
20
  constructor(config) {
20
21
  this.slug = config.slug;
21
22
  this.name = config.name;
@@ -24,6 +25,7 @@ var init_parameter_definition = __esm({
24
25
  this.type = config.type;
25
26
  this.secret = config.secret;
26
27
  this.required = config.required;
28
+ this.isDeprecated = config.isDeprecated ?? false;
27
29
  }
28
30
  /**
29
31
  * Get the parameter value from a ConnectorConnectionObject.
@@ -393,6 +395,12 @@ async function runSetupFlow(flow, params, ctx, config) {
393
395
  }
394
396
  const resolvedAllowFreeText = step.allowFreeText !== void 0 ? step.allowFreeText : true;
395
397
  if (step.type === "text") {
398
+ if (step.fetchOptions) {
399
+ const options2 = await step.fetchOptions(state, runtime);
400
+ if (options2.length === 0) {
401
+ continue;
402
+ }
403
+ }
396
404
  return {
397
405
  type: "nextQuestion",
398
406
  questionSlug: step.slug,
@@ -193,6 +193,12 @@ async function runSetupFlow(flow, params, ctx, config) {
193
193
  }
194
194
  const resolvedAllowFreeText = step.allowFreeText !== void 0 ? step.allowFreeText : true;
195
195
  if (step.type === "text") {
196
+ if (step.fetchOptions) {
197
+ const options2 = await step.fetchOptions(state, runtime);
198
+ if (options2.length === 0) {
199
+ continue;
200
+ }
201
+ }
196
202
  return {
197
203
  type: "nextQuestion",
198
204
  questionSlug: step.slug,
@@ -16,6 +16,7 @@ var init_parameter_definition = __esm({
16
16
  type;
17
17
  secret;
18
18
  required;
19
+ isDeprecated;
19
20
  constructor(config) {
20
21
  this.slug = config.slug;
21
22
  this.name = config.name;
@@ -24,6 +25,7 @@ var init_parameter_definition = __esm({
24
25
  this.type = config.type;
25
26
  this.secret = config.secret;
26
27
  this.required = config.required;
28
+ this.isDeprecated = config.isDeprecated ?? false;
27
29
  }
28
30
  /**
29
31
  * Get the parameter value from a ConnectorConnectionObject.
@@ -352,6 +354,12 @@ async function runSetupFlow(flow, params, ctx, config) {
352
354
  }
353
355
  const resolvedAllowFreeText = step.allowFreeText !== void 0 ? step.allowFreeText : true;
354
356
  if (step.type === "text") {
357
+ if (step.fetchOptions) {
358
+ const options2 = await step.fetchOptions(state, runtime);
359
+ if (options2.length === 0) {
360
+ continue;
361
+ }
362
+ }
355
363
  return {
356
364
  type: "nextQuestion",
357
365
  questionSlug: step.slug,
@@ -21,6 +21,7 @@ var init_parameter_definition = __esm({
21
21
  type;
22
22
  secret;
23
23
  required;
24
+ isDeprecated;
24
25
  constructor(config) {
25
26
  this.slug = config.slug;
26
27
  this.name = config.name;
@@ -29,6 +30,7 @@ var init_parameter_definition = __esm({
29
30
  this.type = config.type;
30
31
  this.secret = config.secret;
31
32
  this.required = config.required;
33
+ this.isDeprecated = config.isDeprecated ?? false;
32
34
  }
33
35
  /**
34
36
  * Get the parameter value from a ConnectorConnectionObject.
@@ -1100,6 +1102,12 @@ async function runSetupFlow(flow, params, ctx, config) {
1100
1102
  }
1101
1103
  const resolvedAllowFreeText = step.allowFreeText !== void 0 ? step.allowFreeText : true;
1102
1104
  if (step.type === "text") {
1105
+ if (step.fetchOptions) {
1106
+ const options2 = await step.fetchOptions(state, runtime);
1107
+ if (options2.length === 0) {
1108
+ continue;
1109
+ }
1110
+ }
1103
1111
  return {
1104
1112
  type: "nextQuestion",
1105
1113
  questionSlug: step.slug,
@@ -16,6 +16,7 @@ var init_parameter_definition = __esm({
16
16
  type;
17
17
  secret;
18
18
  required;
19
+ isDeprecated;
19
20
  constructor(config) {
20
21
  this.slug = config.slug;
21
22
  this.name = config.name;
@@ -24,6 +25,7 @@ var init_parameter_definition = __esm({
24
25
  this.type = config.type;
25
26
  this.secret = config.secret;
26
27
  this.required = config.required;
28
+ this.isDeprecated = config.isDeprecated ?? false;
27
29
  }
28
30
  /**
29
31
  * Get the parameter value from a ConnectorConnectionObject.
@@ -301,6 +303,12 @@ async function runSetupFlow(flow, params, ctx, config) {
301
303
  }
302
304
  const resolvedAllowFreeText = step.allowFreeText !== void 0 ? step.allowFreeText : true;
303
305
  if (step.type === "text") {
306
+ if (step.fetchOptions) {
307
+ const options2 = await step.fetchOptions(state, runtime);
308
+ if (options2.length === 0) {
309
+ continue;
310
+ }
311
+ }
304
312
  return {
305
313
  type: "nextQuestion",
306
314
  questionSlug: step.slug,
@@ -16,6 +16,7 @@ var init_parameter_definition = __esm({
16
16
  type;
17
17
  secret;
18
18
  required;
19
+ isDeprecated;
19
20
  constructor(config) {
20
21
  this.slug = config.slug;
21
22
  this.name = config.name;
@@ -24,6 +25,7 @@ var init_parameter_definition = __esm({
24
25
  this.type = config.type;
25
26
  this.secret = config.secret;
26
27
  this.required = config.required;
28
+ this.isDeprecated = config.isDeprecated ?? false;
27
29
  }
28
30
  /**
29
31
  * Get the parameter value from a ConnectorConnectionObject.
@@ -330,6 +332,12 @@ async function runSetupFlow(flow, params, ctx, config) {
330
332
  }
331
333
  const resolvedAllowFreeText = step.allowFreeText !== void 0 ? step.allowFreeText : true;
332
334
  if (step.type === "text") {
335
+ if (step.fetchOptions) {
336
+ const options2 = await step.fetchOptions(state, runtime);
337
+ if (options2.length === 0) {
338
+ continue;
339
+ }
340
+ }
333
341
  return {
334
342
  type: "nextQuestion",
335
343
  questionSlug: step.slug,
@@ -16,6 +16,7 @@ var init_parameter_definition = __esm({
16
16
  type;
17
17
  secret;
18
18
  required;
19
+ isDeprecated;
19
20
  constructor(config) {
20
21
  this.slug = config.slug;
21
22
  this.name = config.name;
@@ -24,6 +25,7 @@ var init_parameter_definition = __esm({
24
25
  this.type = config.type;
25
26
  this.secret = config.secret;
26
27
  this.required = config.required;
28
+ this.isDeprecated = config.isDeprecated ?? false;
27
29
  }
28
30
  /**
29
31
  * Get the parameter value from a ConnectorConnectionObject.
@@ -339,6 +341,12 @@ async function runSetupFlow(flow, params, ctx, config) {
339
341
  }
340
342
  const resolvedAllowFreeText = step.allowFreeText !== void 0 ? step.allowFreeText : true;
341
343
  if (step.type === "text") {
344
+ if (step.fetchOptions) {
345
+ const options2 = await step.fetchOptions(state, runtime);
346
+ if (options2.length === 0) {
347
+ continue;
348
+ }
349
+ }
342
350
  return {
343
351
  type: "nextQuestion",
344
352
  questionSlug: step.slug,
@@ -16,6 +16,7 @@ var init_parameter_definition = __esm({
16
16
  type;
17
17
  secret;
18
18
  required;
19
+ isDeprecated;
19
20
  constructor(config) {
20
21
  this.slug = config.slug;
21
22
  this.name = config.name;
@@ -24,6 +25,7 @@ var init_parameter_definition = __esm({
24
25
  this.type = config.type;
25
26
  this.secret = config.secret;
26
27
  this.required = config.required;
28
+ this.isDeprecated = config.isDeprecated ?? false;
27
29
  }
28
30
  /**
29
31
  * Get the parameter value from a ConnectorConnectionObject.
@@ -345,6 +347,12 @@ async function runSetupFlow(flow, params, ctx, config) {
345
347
  }
346
348
  const resolvedAllowFreeText = step.allowFreeText !== void 0 ? step.allowFreeText : true;
347
349
  if (step.type === "text") {
350
+ if (step.fetchOptions) {
351
+ const options2 = await step.fetchOptions(state, runtime);
352
+ if (options2.length === 0) {
353
+ continue;
354
+ }
355
+ }
348
356
  return {
349
357
  type: "nextQuestion",
350
358
  questionSlug: step.slug,
@@ -16,6 +16,7 @@ var init_parameter_definition = __esm({
16
16
  type;
17
17
  secret;
18
18
  required;
19
+ isDeprecated;
19
20
  constructor(config) {
20
21
  this.slug = config.slug;
21
22
  this.name = config.name;
@@ -24,6 +25,7 @@ var init_parameter_definition = __esm({
24
25
  this.type = config.type;
25
26
  this.secret = config.secret;
26
27
  this.required = config.required;
28
+ this.isDeprecated = config.isDeprecated ?? false;
27
29
  }
28
30
  /**
29
31
  * Get the parameter value from a ConnectorConnectionObject.
@@ -248,6 +250,12 @@ async function runSetupFlow(flow, params, ctx, config) {
248
250
  }
249
251
  const resolvedAllowFreeText = step.allowFreeText !== void 0 ? step.allowFreeText : true;
250
252
  if (step.type === "text") {
253
+ if (step.fetchOptions) {
254
+ const options2 = await step.fetchOptions(state, runtime);
255
+ if (options2.length === 0) {
256
+ continue;
257
+ }
258
+ }
251
259
  return {
252
260
  type: "nextQuestion",
253
261
  questionSlug: step.slug,
@@ -16,6 +16,7 @@ var init_parameter_definition = __esm({
16
16
  type;
17
17
  secret;
18
18
  required;
19
+ isDeprecated;
19
20
  constructor(config) {
20
21
  this.slug = config.slug;
21
22
  this.name = config.name;
@@ -24,6 +25,7 @@ var init_parameter_definition = __esm({
24
25
  this.type = config.type;
25
26
  this.secret = config.secret;
26
27
  this.required = config.required;
28
+ this.isDeprecated = config.isDeprecated ?? false;
27
29
  }
28
30
  /**
29
31
  * Get the parameter value from a ConnectorConnectionObject.
@@ -254,6 +256,12 @@ async function runSetupFlow(flow, params, ctx, config) {
254
256
  }
255
257
  const resolvedAllowFreeText = step.allowFreeText !== void 0 ? step.allowFreeText : true;
256
258
  if (step.type === "text") {
259
+ if (step.fetchOptions) {
260
+ const options2 = await step.fetchOptions(state, runtime);
261
+ if (options2.length === 0) {
262
+ continue;
263
+ }
264
+ }
257
265
  return {
258
266
  type: "nextQuestion",
259
267
  questionSlug: step.slug,
@@ -16,6 +16,7 @@ var init_parameter_definition = __esm({
16
16
  type;
17
17
  secret;
18
18
  required;
19
+ isDeprecated;
19
20
  constructor(config) {
20
21
  this.slug = config.slug;
21
22
  this.name = config.name;
@@ -24,6 +25,7 @@ var init_parameter_definition = __esm({
24
25
  this.type = config.type;
25
26
  this.secret = config.secret;
26
27
  this.required = config.required;
28
+ this.isDeprecated = config.isDeprecated ?? false;
27
29
  }
28
30
  /**
29
31
  * Get the parameter value from a ConnectorConnectionObject.
@@ -359,6 +361,12 @@ async function runSetupFlow(flow, params, ctx, config) {
359
361
  }
360
362
  const resolvedAllowFreeText = step.allowFreeText !== void 0 ? step.allowFreeText : true;
361
363
  if (step.type === "text") {
364
+ if (step.fetchOptions) {
365
+ const options2 = await step.fetchOptions(state, runtime);
366
+ if (options2.length === 0) {
367
+ continue;
368
+ }
369
+ }
362
370
  return {
363
371
  type: "nextQuestion",
364
372
  questionSlug: step.slug,
@@ -16,6 +16,7 @@ var init_parameter_definition = __esm({
16
16
  type;
17
17
  secret;
18
18
  required;
19
+ isDeprecated;
19
20
  constructor(config) {
20
21
  this.slug = config.slug;
21
22
  this.name = config.name;
@@ -24,6 +25,7 @@ var init_parameter_definition = __esm({
24
25
  this.type = config.type;
25
26
  this.secret = config.secret;
26
27
  this.required = config.required;
28
+ this.isDeprecated = config.isDeprecated ?? false;
27
29
  }
28
30
  /**
29
31
  * Get the parameter value from a ConnectorConnectionObject.
@@ -248,6 +250,12 @@ async function runSetupFlow(flow, params, ctx, config) {
248
250
  }
249
251
  const resolvedAllowFreeText = step.allowFreeText !== void 0 ? step.allowFreeText : true;
250
252
  if (step.type === "text") {
253
+ if (step.fetchOptions) {
254
+ const options2 = await step.fetchOptions(state, runtime);
255
+ if (options2.length === 0) {
256
+ continue;
257
+ }
258
+ }
251
259
  return {
252
260
  type: "nextQuestion",
253
261
  questionSlug: step.slug,
@@ -16,6 +16,7 @@ var init_parameter_definition = __esm({
16
16
  type;
17
17
  secret;
18
18
  required;
19
+ isDeprecated;
19
20
  constructor(config) {
20
21
  this.slug = config.slug;
21
22
  this.name = config.name;
@@ -24,6 +25,7 @@ var init_parameter_definition = __esm({
24
25
  this.type = config.type;
25
26
  this.secret = config.secret;
26
27
  this.required = config.required;
28
+ this.isDeprecated = config.isDeprecated ?? false;
27
29
  }
28
30
  /**
29
31
  * Get the parameter value from a ConnectorConnectionObject.
@@ -319,6 +321,12 @@ async function runSetupFlow(flow, params, ctx, config) {
319
321
  }
320
322
  const resolvedAllowFreeText = step.allowFreeText !== void 0 ? step.allowFreeText : true;
321
323
  if (step.type === "text") {
324
+ if (step.fetchOptions) {
325
+ const options2 = await step.fetchOptions(state, runtime);
326
+ if (options2.length === 0) {
327
+ continue;
328
+ }
329
+ }
322
330
  return {
323
331
  type: "nextQuestion",
324
332
  questionSlug: step.slug,
@@ -16,6 +16,7 @@ var init_parameter_definition = __esm({
16
16
  type;
17
17
  secret;
18
18
  required;
19
+ isDeprecated;
19
20
  constructor(config) {
20
21
  this.slug = config.slug;
21
22
  this.name = config.name;
@@ -24,6 +25,7 @@ var init_parameter_definition = __esm({
24
25
  this.type = config.type;
25
26
  this.secret = config.secret;
26
27
  this.required = config.required;
28
+ this.isDeprecated = config.isDeprecated ?? false;
27
29
  }
28
30
  /**
29
31
  * Get the parameter value from a ConnectorConnectionObject.
@@ -411,6 +413,12 @@ async function runSetupFlow(flow, params, ctx, config) {
411
413
  }
412
414
  const resolvedAllowFreeText = step.allowFreeText !== void 0 ? step.allowFreeText : true;
413
415
  if (step.type === "text") {
416
+ if (step.fetchOptions) {
417
+ const options2 = await step.fetchOptions(state, runtime);
418
+ if (options2.length === 0) {
419
+ continue;
420
+ }
421
+ }
414
422
  return {
415
423
  type: "nextQuestion",
416
424
  questionSlug: step.slug,
@@ -16,6 +16,7 @@ var init_parameter_definition = __esm({
16
16
  type;
17
17
  secret;
18
18
  required;
19
+ isDeprecated;
19
20
  constructor(config) {
20
21
  this.slug = config.slug;
21
22
  this.name = config.name;
@@ -24,6 +25,7 @@ var init_parameter_definition = __esm({
24
25
  this.type = config.type;
25
26
  this.secret = config.secret;
26
27
  this.required = config.required;
28
+ this.isDeprecated = config.isDeprecated ?? false;
27
29
  }
28
30
  /**
29
31
  * Get the parameter value from a ConnectorConnectionObject.
@@ -441,6 +443,12 @@ async function runSetupFlow(flow, params, ctx, config) {
441
443
  }
442
444
  const resolvedAllowFreeText = step.allowFreeText !== void 0 ? step.allowFreeText : true;
443
445
  if (step.type === "text") {
446
+ if (step.fetchOptions) {
447
+ const options2 = await step.fetchOptions(state, runtime);
448
+ if (options2.length === 0) {
449
+ continue;
450
+ }
451
+ }
444
452
  return {
445
453
  type: "nextQuestion",
446
454
  questionSlug: step.slug,
@@ -16,6 +16,7 @@ var init_parameter_definition = __esm({
16
16
  type;
17
17
  secret;
18
18
  required;
19
+ isDeprecated;
19
20
  constructor(config) {
20
21
  this.slug = config.slug;
21
22
  this.name = config.name;
@@ -24,6 +25,7 @@ var init_parameter_definition = __esm({
24
25
  this.type = config.type;
25
26
  this.secret = config.secret;
26
27
  this.required = config.required;
28
+ this.isDeprecated = config.isDeprecated ?? false;
27
29
  }
28
30
  /**
29
31
  * Get the parameter value from a ConnectorConnectionObject.
@@ -346,6 +348,12 @@ async function runSetupFlow(flow, params, ctx, config) {
346
348
  }
347
349
  const resolvedAllowFreeText = step.allowFreeText !== void 0 ? step.allowFreeText : true;
348
350
  if (step.type === "text") {
351
+ if (step.fetchOptions) {
352
+ const options2 = await step.fetchOptions(state, runtime);
353
+ if (options2.length === 0) {
354
+ continue;
355
+ }
356
+ }
349
357
  return {
350
358
  type: "nextQuestion",
351
359
  questionSlug: step.slug,
@@ -197,6 +197,12 @@ async function runSetupFlow(flow, params, ctx, config) {
197
197
  }
198
198
  const resolvedAllowFreeText = step.allowFreeText !== void 0 ? step.allowFreeText : true;
199
199
  if (step.type === "text") {
200
+ if (step.fetchOptions) {
201
+ const options2 = await step.fetchOptions(state, runtime);
202
+ if (options2.length === 0) {
203
+ continue;
204
+ }
205
+ }
200
206
  return {
201
207
  type: "nextQuestion",
202
208
  questionSlug: step.slug,
@@ -16,6 +16,7 @@ var init_parameter_definition = __esm({
16
16
  type;
17
17
  secret;
18
18
  required;
19
+ isDeprecated;
19
20
  constructor(config) {
20
21
  this.slug = config.slug;
21
22
  this.name = config.name;
@@ -24,6 +25,7 @@ var init_parameter_definition = __esm({
24
25
  this.type = config.type;
25
26
  this.secret = config.secret;
26
27
  this.required = config.required;
28
+ this.isDeprecated = config.isDeprecated ?? false;
27
29
  }
28
30
  /**
29
31
  * Get the parameter value from a ConnectorConnectionObject.
@@ -361,6 +363,12 @@ async function runSetupFlow(flow, params, ctx, config) {
361
363
  }
362
364
  const resolvedAllowFreeText = step.allowFreeText !== void 0 ? step.allowFreeText : true;
363
365
  if (step.type === "text") {
366
+ if (step.fetchOptions) {
367
+ const options2 = await step.fetchOptions(state, runtime);
368
+ if (options2.length === 0) {
369
+ continue;
370
+ }
371
+ }
364
372
  return {
365
373
  type: "nextQuestion",
366
374
  questionSlug: step.slug,
@@ -16,6 +16,7 @@ var init_parameter_definition = __esm({
16
16
  type;
17
17
  secret;
18
18
  required;
19
+ isDeprecated;
19
20
  constructor(config) {
20
21
  this.slug = config.slug;
21
22
  this.name = config.name;
@@ -24,6 +25,7 @@ var init_parameter_definition = __esm({
24
25
  this.type = config.type;
25
26
  this.secret = config.secret;
26
27
  this.required = config.required;
28
+ this.isDeprecated = config.isDeprecated ?? false;
27
29
  }
28
30
  /**
29
31
  * Get the parameter value from a ConnectorConnectionObject.
@@ -21,6 +21,7 @@ var init_parameter_definition = __esm({
21
21
  type;
22
22
  secret;
23
23
  required;
24
+ isDeprecated;
24
25
  constructor(config) {
25
26
  this.slug = config.slug;
26
27
  this.name = config.name;
@@ -29,6 +30,7 @@ var init_parameter_definition = __esm({
29
30
  this.type = config.type;
30
31
  this.secret = config.secret;
31
32
  this.required = config.required;
33
+ this.isDeprecated = config.isDeprecated ?? false;
32
34
  }
33
35
  /**
34
36
  * Get the parameter value from a ConnectorConnectionObject.
@@ -624,6 +626,12 @@ async function runSetupFlow(flow, params, ctx, config) {
624
626
  }
625
627
  const resolvedAllowFreeText = step.allowFreeText !== void 0 ? step.allowFreeText : true;
626
628
  if (step.type === "text") {
629
+ if (step.fetchOptions) {
630
+ const options2 = await step.fetchOptions(state, runtime);
631
+ if (options2.length === 0) {
632
+ continue;
633
+ }
634
+ }
627
635
  return {
628
636
  type: "nextQuestion",
629
637
  questionSlug: step.slug,
@@ -311,6 +311,12 @@ async function runSetupFlow(flow, params, ctx, config) {
311
311
  }
312
312
  const resolvedAllowFreeText = step.allowFreeText !== void 0 ? step.allowFreeText : true;
313
313
  if (step.type === "text") {
314
+ if (step.fetchOptions) {
315
+ const options2 = await step.fetchOptions(state, runtime);
316
+ if (options2.length === 0) {
317
+ continue;
318
+ }
319
+ }
314
320
  return {
315
321
  type: "nextQuestion",
316
322
  questionSlug: step.slug,
@@ -269,6 +269,12 @@ async function runSetupFlow(flow, params, ctx, config) {
269
269
  }
270
270
  const resolvedAllowFreeText = step.allowFreeText !== void 0 ? step.allowFreeText : true;
271
271
  if (step.type === "text") {
272
+ if (step.fetchOptions) {
273
+ const options2 = await step.fetchOptions(state, runtime);
274
+ if (options2.length === 0) {
275
+ continue;
276
+ }
277
+ }
272
278
  return {
273
279
  type: "nextQuestion",
274
280
  questionSlug: step.slug,
@@ -16,6 +16,7 @@ var init_parameter_definition = __esm({
16
16
  type;
17
17
  secret;
18
18
  required;
19
+ isDeprecated;
19
20
  constructor(config) {
20
21
  this.slug = config.slug;
21
22
  this.name = config.name;
@@ -24,6 +25,7 @@ var init_parameter_definition = __esm({
24
25
  this.type = config.type;
25
26
  this.secret = config.secret;
26
27
  this.required = config.required;
28
+ this.isDeprecated = config.isDeprecated ?? false;
27
29
  }
28
30
  /**
29
31
  * Get the parameter value from a ConnectorConnectionObject.
@@ -410,6 +412,12 @@ async function runSetupFlow(flow, params, ctx, config) {
410
412
  }
411
413
  const resolvedAllowFreeText = step.allowFreeText !== void 0 ? step.allowFreeText : true;
412
414
  if (step.type === "text") {
415
+ if (step.fetchOptions) {
416
+ const options2 = await step.fetchOptions(state, runtime);
417
+ if (options2.length === 0) {
418
+ continue;
419
+ }
420
+ }
413
421
  return {
414
422
  type: "nextQuestion",
415
423
  questionSlug: step.slug,