@budibase/backend-core 2.11.19 → 2.11.20-alpha.0

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
 
@@ -12304,9 +12310,23 @@ function validateDatasource(schema) {
12304
12310
  version: import_joi2.default.string().optional(),
12305
12311
  schema: import_joi2.default.object({
12306
12312
  docs: import_joi2.default.string(),
12313
+ plus: import_joi2.default.boolean().optional(),
12314
+ isSQL: import_joi2.default.boolean().optional(),
12315
+ auth: import_joi2.default.object({
12316
+ type: import_joi2.default.string().required()
12317
+ }).optional(),
12318
+ features: import_joi2.default.object(
12319
+ Object.fromEntries(
12320
+ Object.values(DatasourceFeature).map((key) => [
12321
+ key,
12322
+ import_joi2.default.boolean().optional()
12323
+ ])
12324
+ )
12325
+ ).optional(),
12326
+ relationships: import_joi2.default.boolean().optional(),
12327
+ description: import_joi2.default.string().required(),
12307
12328
  friendlyName: import_joi2.default.string().required(),
12308
12329
  type: import_joi2.default.string().allow(...DATASOURCE_TYPES),
12309
- description: import_joi2.default.string().required(),
12310
12330
  datasource: import_joi2.default.object().pattern(import_joi2.default.string(), fieldValidator).required(),
12311
12331
  query: import_joi2.default.object().pattern(import_joi2.default.string(), queryValidator).unknown(true).required(),
12312
12332
  extra: import_joi2.default.object().pattern(