@budibase/server 2.3.18-alpha.3 → 2.3.18-alpha.30

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 (93) hide show
  1. package/__mocks__/node-fetch.ts +3 -0
  2. package/builder/assets/blankScreenPreview.72634dd1.png +0 -0
  3. package/builder/assets/{index.9f78787d.js → index.11e16372.js} +429 -414
  4. package/builder/assets/index.b24b9dea.css +6 -0
  5. package/builder/assets/listScreenPreview.599c0aae.png +0 -0
  6. package/builder/index.html +2 -2
  7. package/dist/api/controllers/automation.js +11 -2
  8. package/dist/api/controllers/cloud.js +2 -2
  9. package/dist/api/controllers/row/ExternalRequest.js +49 -24
  10. package/dist/api/controllers/row/external.js +1 -1
  11. package/dist/api/controllers/row/internalSearch.js +6 -450
  12. package/dist/api/controllers/row/utils.js +1 -3
  13. package/dist/api/routes/automation.js +1 -1
  14. package/dist/api/routes/public/applications.js +7 -7
  15. package/dist/api/routes/public/queries.js +2 -2
  16. package/dist/api/routes/public/rows.js +5 -5
  17. package/dist/api/routes/public/tables.js +5 -5
  18. package/dist/api/routes/public/users.js +5 -5
  19. package/dist/app.js +2 -0
  20. package/dist/db/index.js +25 -2
  21. package/dist/db/utils.js +2 -5
  22. package/dist/db/views/staticViews.js +2 -1
  23. package/dist/integrations/base/sql.js +4 -8
  24. package/dist/integrations/googlesheets.js +17 -20
  25. package/dist/middleware/authorized.js +5 -3
  26. package/dist/middleware/builder.js +6 -3
  27. package/dist/migrations/functions/backfill/global/configs.js +10 -4
  28. package/dist/migrations/tests/helpers.js +1 -1
  29. package/dist/migrations/tests/structures.js +1 -1
  30. package/dist/package.json +9 -8
  31. package/dist/sdk/app/backups/constants.js +2 -1
  32. package/dist/sdk/app/backups/exports.js +12 -5
  33. package/dist/sdk/app/rows/attachments.js +1 -1
  34. package/dist/startup.js +3 -0
  35. package/dist/tsconfig.build.tsbuildinfo +1 -1
  36. package/jest.config.ts +1 -0
  37. package/package.json +10 -9
  38. package/scripts/test.sh +12 -0
  39. package/specs/{generate.js → generate.ts} +7 -9
  40. package/specs/openapi.json +24 -24
  41. package/specs/openapi.yaml +24 -24
  42. package/specs/{parameters.js → parameters.ts} +6 -6
  43. package/specs/resources/{application.js → application.ts} +4 -4
  44. package/specs/resources/{index.js → index.ts} +8 -8
  45. package/specs/resources/{misc.js → misc.ts} +3 -3
  46. package/specs/resources/{query.js → query.ts} +4 -4
  47. package/specs/resources/{row.js → row.ts} +3 -4
  48. package/specs/resources/{table.js → table.ts} +5 -5
  49. package/specs/resources/{user.js → user.ts} +3 -3
  50. package/specs/resources/utils/Resource.ts +39 -0
  51. package/specs/resources/utils/{index.js → index.ts} +1 -1
  52. package/specs/{security.js → security.ts} +1 -1
  53. package/src/api/controllers/automation.ts +13 -2
  54. package/src/api/controllers/cloud.ts +2 -2
  55. package/src/api/controllers/row/ExternalRequest.ts +95 -28
  56. package/src/api/controllers/row/external.ts +1 -1
  57. package/src/api/controllers/row/internalSearch.ts +11 -524
  58. package/src/api/controllers/row/utils.ts +1 -2
  59. package/src/api/routes/automation.ts +1 -1
  60. package/src/api/routes/public/applications.ts +7 -7
  61. package/src/api/routes/public/queries.ts +2 -2
  62. package/src/api/routes/public/rows.ts +5 -5
  63. package/src/api/routes/public/tables.ts +5 -5
  64. package/src/api/routes/public/tests/{compare.spec.js → compare.spec.ts} +44 -25
  65. package/src/api/routes/public/users.ts +5 -5
  66. package/src/api/routes/tests/{cloud.seq.spec.ts → cloud.spec.ts} +13 -20
  67. package/src/api/routes/tests/utilities/TestFunctions.ts +1 -2
  68. package/src/app.ts +2 -0
  69. package/src/db/index.ts +2 -2
  70. package/src/db/utils.ts +0 -4
  71. package/src/db/views/staticViews.ts +3 -3
  72. package/src/definitions/openapi.ts +449 -63
  73. package/src/integration-test/postgres.spec.ts +351 -81
  74. package/src/integrations/base/sql.ts +4 -8
  75. package/src/integrations/googlesheets.ts +21 -22
  76. package/src/integrations/tests/googlesheets.spec.ts +122 -0
  77. package/src/middleware/authorized.ts +6 -4
  78. package/src/middleware/builder.ts +8 -3
  79. package/src/migrations/functions/backfill/global/configs.ts +15 -9
  80. package/src/migrations/functions/tests/userEmailViewCasing.spec.js +3 -4
  81. package/src/migrations/tests/helpers.ts +2 -2
  82. package/src/migrations/tests/structures.ts +1 -0
  83. package/src/sdk/app/backups/constants.ts +1 -0
  84. package/src/sdk/app/backups/exports.ts +24 -8
  85. package/src/sdk/app/rows/attachments.ts +1 -1
  86. package/src/startup.ts +4 -1
  87. package/src/tests/jestEnv.ts +1 -0
  88. package/src/tests/utilities/TestConfiguration.ts +42 -30
  89. package/src/tests/utilities/structures.ts +0 -2
  90. package/builder/assets/index.7e76c039.css +0 -6
  91. package/dist/integrations/base/utils.js +0 -16
  92. package/specs/resources/utils/Resource.js +0 -26
  93. package/src/integrations/base/utils.ts +0 -12
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.removeKeyNumbering = void 0;
4
- const QUERY_START_REGEX = /\d[0-9]*:/g;
5
- function removeKeyNumbering(key) {
6
- if (typeof key === "string" && key.match(QUERY_START_REGEX) != null) {
7
- const parts = key.split(":");
8
- // remove the number
9
- parts.shift();
10
- return parts.join(":");
11
- }
12
- else {
13
- return key;
14
- }
15
- }
16
- exports.removeKeyNumbering = removeKeyNumbering;
@@ -1,26 +0,0 @@
1
- class Resource {
2
- constructor() {
3
- this.examples = {}
4
- this.schemas = {}
5
- }
6
-
7
- setExamples(examples) {
8
- this.examples = examples
9
- return this
10
- }
11
-
12
- setSchemas(schemas) {
13
- this.schemas = schemas
14
- return this
15
- }
16
-
17
- getExamples() {
18
- return this.examples
19
- }
20
-
21
- getSchemas() {
22
- return this.schemas
23
- }
24
- }
25
-
26
- module.exports = Resource
@@ -1,12 +0,0 @@
1
- const QUERY_START_REGEX = /\d[0-9]*:/g
2
-
3
- export function removeKeyNumbering(key: any): string {
4
- if (typeof key === "string" && key.match(QUERY_START_REGEX) != null) {
5
- const parts = key.split(":")
6
- // remove the number
7
- parts.shift()
8
- return parts.join(":")
9
- } else {
10
- return key
11
- }
12
- }