@budibase/backend-core 2.11.26 → 2.11.27-alpha.1

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/index.js CHANGED
@@ -480,7 +480,7 @@ var init_migrations = __esm({
480
480
  });
481
481
 
482
482
  // ../types/src/sdk/datasources.ts
483
- var QueryType, DatasourceFieldType, SourceName;
483
+ var QueryType, DatasourceFieldType, SourceName, DatasourceFeature;
484
484
  var init_datasources = __esm({
485
485
  "../types/src/sdk/datasources.ts"() {
486
486
  "use strict";
@@ -524,6 +524,12 @@ var init_datasources = __esm({
524
524
  SourceName2["SNOWFLAKE"] = "SNOWFLAKE";
525
525
  return SourceName2;
526
526
  })(SourceName || {});
527
+ DatasourceFeature = /* @__PURE__ */ ((DatasourceFeature2) => {
528
+ DatasourceFeature2["CONNECTION_CHECKING"] = "connection";
529
+ DatasourceFeature2["FETCH_TABLE_NAMES"] = "fetch_table_names";
530
+ DatasourceFeature2["EXPORT_SCHEMA"] = "export_schema";
531
+ return DatasourceFeature2;
532
+ })(DatasourceFeature || {});
527
533
  }
528
534
  });
529
535
 
@@ -12349,9 +12355,23 @@ function validateDatasource(schema) {
12349
12355
  version: import_joi2.default.string().optional(),
12350
12356
  schema: import_joi2.default.object({
12351
12357
  docs: import_joi2.default.string(),
12358
+ plus: import_joi2.default.boolean().optional(),
12359
+ isSQL: import_joi2.default.boolean().optional(),
12360
+ auth: import_joi2.default.object({
12361
+ type: import_joi2.default.string().required()
12362
+ }).optional(),
12363
+ features: import_joi2.default.object(
12364
+ Object.fromEntries(
12365
+ Object.values(DatasourceFeature).map((key) => [
12366
+ key,
12367
+ import_joi2.default.boolean().optional()
12368
+ ])
12369
+ )
12370
+ ).optional(),
12371
+ relationships: import_joi2.default.boolean().optional(),
12372
+ description: import_joi2.default.string().required(),
12352
12373
  friendlyName: import_joi2.default.string().required(),
12353
12374
  type: import_joi2.default.string().allow(...DATASOURCE_TYPES),
12354
- description: import_joi2.default.string().required(),
12355
12375
  datasource: import_joi2.default.object().pattern(import_joi2.default.string(), fieldValidator).required(),
12356
12376
  query: import_joi2.default.object().pattern(import_joi2.default.string(), queryValidator).unknown(true).required(),
12357
12377
  extra: import_joi2.default.object().pattern(