@budibase/server 1.3.21-alpha.1 → 1.3.21-alpha.2

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 (169) hide show
  1. package/builder/assets/{index.c9d3f9e8.js → index.da0d40d9.js} +1 -1
  2. package/builder/index.html +1 -1
  3. package/coverage/clover.xml +92 -183
  4. package/coverage/coverage-final.json +1 -3
  5. package/coverage/lcov-report/api/controllers/apikeys.js.html +1 -1
  6. package/coverage/lcov-report/api/controllers/auth.js.html +1 -1
  7. package/coverage/lcov-report/api/controllers/automation.js.html +1 -1
  8. package/coverage/lcov-report/api/controllers/backup.js.html +1 -1
  9. package/coverage/lcov-report/api/controllers/cloud.js.html +1 -1
  10. package/coverage/lcov-report/api/controllers/datasource.js.html +1 -1
  11. package/coverage/lcov-report/api/controllers/dev.js.html +1 -1
  12. package/coverage/lcov-report/api/controllers/index.html +9 -39
  13. package/coverage/lcov-report/api/controllers/integration.js.html +1 -1
  14. package/coverage/lcov-report/api/controllers/layout.js.html +1 -1
  15. package/coverage/lcov-report/api/controllers/metadata.js.html +1 -1
  16. package/coverage/lcov-report/api/controllers/migrations.js.html +1 -1
  17. package/coverage/lcov-report/api/controllers/permission.js.html +1 -1
  18. package/coverage/lcov-report/api/controllers/query/index.html +1 -1
  19. package/coverage/lcov-report/api/controllers/query/validation.js.html +1 -1
  20. package/coverage/lcov-report/api/controllers/role.js.html +1 -1
  21. package/coverage/lcov-report/api/controllers/routing.js.html +1 -1
  22. package/coverage/lcov-report/api/controllers/row/external.js.html +1 -1
  23. package/coverage/lcov-report/api/controllers/row/index.html +1 -1
  24. package/coverage/lcov-report/api/controllers/row/internal.js.html +1 -1
  25. package/coverage/lcov-report/api/controllers/row/internalSearch.js.html +1 -1
  26. package/coverage/lcov-report/api/controllers/row/staticFormula.js.html +1 -1
  27. package/coverage/lcov-report/api/controllers/row/utils.js.html +1 -1
  28. package/coverage/lcov-report/api/controllers/script.js.html +1 -1
  29. package/coverage/lcov-report/api/controllers/table/bulkFormula.js.html +1 -1
  30. package/coverage/lcov-report/api/controllers/table/external.js.html +1 -1
  31. package/coverage/lcov-report/api/controllers/table/index.html +1 -1
  32. package/coverage/lcov-report/api/controllers/table/index.js.html +1 -1
  33. package/coverage/lcov-report/api/controllers/templates.js.html +1 -1
  34. package/coverage/lcov-report/api/controllers/user.js.html +1 -1
  35. package/coverage/lcov-report/api/controllers/view/exporters.js.html +1 -1
  36. package/coverage/lcov-report/api/controllers/view/index.html +1 -1
  37. package/coverage/lcov-report/api/controllers/view/index.js.html +1 -1
  38. package/coverage/lcov-report/api/controllers/view/utils.js.html +1 -1
  39. package/coverage/lcov-report/api/controllers/view/viewBuilder.js.html +1 -1
  40. package/coverage/lcov-report/api/controllers/webhook.js.html +1 -1
  41. package/coverage/lcov-report/api/index.html +1 -1
  42. package/coverage/lcov-report/api/index.js.html +1 -1
  43. package/coverage/lcov-report/api/routes/analytics.js.html +1 -1
  44. package/coverage/lcov-report/api/routes/apikeys.js.html +1 -1
  45. package/coverage/lcov-report/api/routes/auth.js.html +1 -1
  46. package/coverage/lcov-report/api/routes/automation.js.html +1 -1
  47. package/coverage/lcov-report/api/routes/backup.js.html +1 -1
  48. package/coverage/lcov-report/api/routes/cloud.js.html +1 -1
  49. package/coverage/lcov-report/api/routes/component.js.html +1 -1
  50. package/coverage/lcov-report/api/routes/datasource.js.html +1 -1
  51. package/coverage/lcov-report/api/routes/deploy.js.html +1 -1
  52. package/coverage/lcov-report/api/routes/dev.js.html +1 -1
  53. package/coverage/lcov-report/api/routes/index.html +1 -1
  54. package/coverage/lcov-report/api/routes/integration.js.html +1 -1
  55. package/coverage/lcov-report/api/routes/layout.js.html +1 -1
  56. package/coverage/lcov-report/api/routes/metadata.js.html +1 -1
  57. package/coverage/lcov-report/api/routes/migrations.js.html +1 -1
  58. package/coverage/lcov-report/api/routes/permission.js.html +1 -1
  59. package/coverage/lcov-report/api/routes/query.js.html +1 -1
  60. package/coverage/lcov-report/api/routes/role.js.html +1 -1
  61. package/coverage/lcov-report/api/routes/routing.js.html +1 -1
  62. package/coverage/lcov-report/api/routes/screen.js.html +1 -1
  63. package/coverage/lcov-report/api/routes/script.js.html +1 -1
  64. package/coverage/lcov-report/api/routes/table.js.html +1 -1
  65. package/coverage/lcov-report/api/routes/templates.js.html +1 -1
  66. package/coverage/lcov-report/api/routes/user.js.html +1 -1
  67. package/coverage/lcov-report/api/routes/utils/index.html +1 -1
  68. package/coverage/lcov-report/api/routes/utils/validators.js.html +1 -1
  69. package/coverage/lcov-report/api/routes/view.js.html +1 -1
  70. package/coverage/lcov-report/api/routes/webhook.js.html +1 -1
  71. package/coverage/lcov-report/automations/actions.js.html +1 -1
  72. package/coverage/lcov-report/automations/automationUtils.js.html +1 -1
  73. package/coverage/lcov-report/automations/bullboard.js.html +1 -1
  74. package/coverage/lcov-report/automations/index.html +1 -1
  75. package/coverage/lcov-report/automations/index.js.html +1 -1
  76. package/coverage/lcov-report/automations/steps/bash.js.html +1 -1
  77. package/coverage/lcov-report/automations/steps/delay.js.html +1 -1
  78. package/coverage/lcov-report/automations/steps/discord.js.html +1 -1
  79. package/coverage/lcov-report/automations/steps/executeQuery.js.html +1 -1
  80. package/coverage/lcov-report/automations/steps/executeScript.js.html +1 -1
  81. package/coverage/lcov-report/automations/steps/filter.js.html +1 -1
  82. package/coverage/lcov-report/automations/steps/index.html +1 -1
  83. package/coverage/lcov-report/automations/steps/integromat.js.html +1 -1
  84. package/coverage/lcov-report/automations/steps/loop.js.html +1 -1
  85. package/coverage/lcov-report/automations/steps/outgoingWebhook.js.html +1 -1
  86. package/coverage/lcov-report/automations/steps/queryRows.js.html +1 -1
  87. package/coverage/lcov-report/automations/steps/sendSmtpEmail.js.html +1 -1
  88. package/coverage/lcov-report/automations/steps/serverLog.js.html +1 -1
  89. package/coverage/lcov-report/automations/steps/slack.js.html +1 -1
  90. package/coverage/lcov-report/automations/steps/updateRow.js.html +1 -1
  91. package/coverage/lcov-report/automations/steps/utils.js.html +1 -1
  92. package/coverage/lcov-report/automations/steps/zapier.js.html +1 -1
  93. package/coverage/lcov-report/automations/triggerInfo/app.js.html +1 -1
  94. package/coverage/lcov-report/automations/triggerInfo/cron.js.html +1 -1
  95. package/coverage/lcov-report/automations/triggerInfo/index.html +1 -1
  96. package/coverage/lcov-report/automations/triggerInfo/index.js.html +1 -1
  97. package/coverage/lcov-report/automations/triggerInfo/rowDeleted.js.html +1 -1
  98. package/coverage/lcov-report/automations/triggerInfo/rowSaved.js.html +1 -1
  99. package/coverage/lcov-report/automations/triggerInfo/rowUpdated.js.html +1 -1
  100. package/coverage/lcov-report/automations/triggerInfo/webhook.js.html +1 -1
  101. package/coverage/lcov-report/automations/triggers.js.html +1 -1
  102. package/coverage/lcov-report/constants/index.html +1 -1
  103. package/coverage/lcov-report/constants/index.js.html +1 -1
  104. package/coverage/lcov-report/constants/layouts.js.html +1 -1
  105. package/coverage/lcov-report/constants/screens.js.html +1 -1
  106. package/coverage/lcov-report/db/inMemoryView.js.html +1 -1
  107. package/coverage/lcov-report/db/index.html +18 -18
  108. package/coverage/lcov-report/db/index.js.html +1 -1
  109. package/coverage/lcov-report/db/linkedRows/LinkController.js.html +1 -1
  110. package/coverage/lcov-report/db/linkedRows/index.html +1 -1
  111. package/coverage/lcov-report/db/linkedRows/index.js.html +1 -1
  112. package/coverage/lcov-report/db/linkedRows/linkUtils.js.html +1 -1
  113. package/coverage/lcov-report/db/newid.js.html +1 -1
  114. package/coverage/lcov-report/db/utils.js.html +13 -37
  115. package/coverage/lcov-report/events/AutomationEmitter.js.html +1 -1
  116. package/coverage/lcov-report/events/index.html +1 -1
  117. package/coverage/lcov-report/events/index.js.html +1 -1
  118. package/coverage/lcov-report/events/utils.js.html +1 -1
  119. package/coverage/lcov-report/index.html +27 -27
  120. package/coverage/lcov-report/integrations/tests/TestConfiguration.js.html +1 -1
  121. package/coverage/lcov-report/integrations/tests/index.html +1 -1
  122. package/coverage/lcov-report/middleware/appInfo.js.html +1 -1
  123. package/coverage/lcov-report/middleware/builder.js.html +1 -1
  124. package/coverage/lcov-report/middleware/currentapp.js.html +1 -1
  125. package/coverage/lcov-report/middleware/index.html +1 -1
  126. package/coverage/lcov-report/middleware/joi-validator.js.html +1 -1
  127. package/coverage/lcov-report/middleware/publicApi.js.html +1 -1
  128. package/coverage/lcov-report/middleware/resourceId.js.html +1 -1
  129. package/coverage/lcov-report/middleware/selfhost.js.html +1 -1
  130. package/coverage/lcov-report/middleware/utils.js.html +1 -1
  131. package/coverage/lcov-report/utilities/budibaseDir.js.html +1 -1
  132. package/coverage/lcov-report/utilities/centralPath.js.html +1 -1
  133. package/coverage/lcov-report/utilities/csvParser.js.html +1 -1
  134. package/coverage/lcov-report/utilities/global.js.html +1 -1
  135. package/coverage/lcov-report/utilities/index.html +1 -1
  136. package/coverage/lcov-report/utilities/index.js.html +1 -1
  137. package/coverage/lcov-report/utilities/queue/inMemoryQueue.js.html +1 -1
  138. package/coverage/lcov-report/utilities/queue/index.html +1 -1
  139. package/coverage/lcov-report/utilities/routing/index.html +1 -1
  140. package/coverage/lcov-report/utilities/routing/index.js.html +1 -1
  141. package/coverage/lcov-report/utilities/rowProcessor/index.html +1 -1
  142. package/coverage/lcov-report/utilities/rowProcessor/index.js.html +1 -1
  143. package/coverage/lcov-report/utilities/rowProcessor/utils.js.html +1 -1
  144. package/coverage/lcov-report/utilities/scriptRunner.js.html +1 -1
  145. package/coverage/lcov-report/utilities/security.js.html +1 -1
  146. package/coverage/lcov-report/utilities/statusCodes.js.html +1 -1
  147. package/coverage/lcov-report/utilities/usageQuota/index.html +1 -1
  148. package/coverage/lcov-report/utilities/usageQuota/rows.js.html +1 -1
  149. package/coverage/lcov-report/utilities/usageQuota/usageQuoteReset.js.html +1 -1
  150. package/coverage/lcov-report/utilities/users.js.html +1 -1
  151. package/coverage/lcov-report/utilities/workerRequests.js.html +1 -1
  152. package/coverage/lcov.info +169 -332
  153. package/dist/api/controllers/component.js +12 -12
  154. package/dist/api/controllers/plugin/index.js +15 -71
  155. package/dist/api/controllers/screen.js +21 -23
  156. package/dist/db/utils.js +1 -7
  157. package/dist/package.json +6 -6
  158. package/dist/tsconfig.build.tsbuildinfo +1 -1
  159. package/dist/utilities/fileSystem/index.js +0 -6
  160. package/dist/watch.js +1 -1
  161. package/package.json +7 -7
  162. package/src/api/controllers/{component.js → component.ts} +13 -13
  163. package/src/api/controllers/plugin/index.ts +16 -97
  164. package/src/api/controllers/{screen.js → screen.ts} +26 -27
  165. package/src/db/utils.js +0 -8
  166. package/src/utilities/fileSystem/index.js +0 -7
  167. package/src/watch.ts +2 -2
  168. package/coverage/lcov-report/api/controllers/component.js.html +0 -256
  169. package/coverage/lcov-report/api/controllers/screen.js.html +0 -454
@@ -514,54 +514,6 @@ BRF:23
514
514
  BRH:0
515
515
  end_of_record
516
516
  TN:
517
- SF:src/api/controllers/component.js
518
- FN:6,(anonymous_0)
519
- FN:12,(anonymous_1)
520
- FN:43,(anonymous_2)
521
- FN:44,(anonymous_3)
522
- FN:45,(anonymous_4)
523
- FNF:5
524
- FNH:2
525
- FNDA:1,(anonymous_0)
526
- FNDA:1,(anonymous_1)
527
- FNDA:0,(anonymous_2)
528
- FNDA:0,(anonymous_3)
529
- FNDA:0,(anonymous_4)
530
- DA:1,28
531
- DA:2,28
532
- DA:3,28
533
- DA:4,28
534
- DA:6,28
535
- DA:7,1
536
- DA:8,1
537
- DA:9,1
538
- DA:11,1
539
- DA:13,1
540
- DA:14,1
541
- DA:20,1
542
- DA:21,1
543
- DA:22,1
544
- DA:23,52
545
- DA:24,1
546
- DA:26,51
547
- DA:27,51
548
- DA:36,1
549
- DA:37,1
550
- DA:42,1
551
- DA:43,0
552
- DA:44,0
553
- DA:46,0
554
- DA:47,0
555
- DA:53,1
556
- DA:55,0
557
- LF:27
558
- LH:22
559
- BRDA:23,0,0,1
560
- BRDA:23,0,1,51
561
- BRF:2
562
- BRH:2
563
- end_of_record
564
- TN:
565
517
  SF:src/api/controllers/datasource.js
566
518
  FN:16,(anonymous_0)
567
519
  FN:24,(anonymous_1)
@@ -1412,115 +1364,6 @@ BRF:14
1412
1364
  BRH:9
1413
1365
  end_of_record
1414
1366
  TN:
1415
- SF:src/api/controllers/screen.js
1416
- FN:13,(anonymous_0)
1417
- FN:22,(anonymous_1)
1418
- FN:30,(anonymous_2)
1419
- FN:54,(anonymous_3)
1420
- FN:55,(anonymous_4)
1421
- FN:66,(anonymous_5)
1422
- FN:67,(anonymous_6)
1423
- FN:96,(anonymous_7)
1424
- FN:110,(anonymous_8)
1425
- FN:122,(anonymous_9)
1426
- FNF:10
1427
- FNH:6
1428
- FNDA:1,(anonymous_0)
1429
- FNDA:1,(anonymous_1)
1430
- FNDA:24,(anonymous_2)
1431
- FNDA:0,(anonymous_3)
1432
- FNDA:0,(anonymous_4)
1433
- FNDA:0,(anonymous_5)
1434
- FNDA:0,(anonymous_6)
1435
- FNDA:1,(anonymous_7)
1436
- FNDA:48,(anonymous_8)
1437
- FNDA:24,(anonymous_9)
1438
- DA:6,44
1439
- DA:7,44
1440
- DA:8,44
1441
- DA:9,44
1442
- DA:10,44
1443
- DA:11,44
1444
- DA:13,44
1445
- DA:14,1
1446
- DA:16,1
1447
- DA:22,1
1448
- DA:24,1
1449
- DA:30,44
1450
- DA:31,24
1451
- DA:32,24
1452
- DA:35,24
1453
- DA:36,23
1454
- DA:37,23
1455
- DA:40,24
1456
- DA:43,24
1457
- DA:44,24
1458
- DA:45,24
1459
- DA:46,24
1460
- DA:47,0
1461
- DA:48,0
1462
- DA:53,0
1463
- DA:54,0
1464
- DA:56,0
1465
- DA:63,0
1466
- DA:64,0
1467
- DA:66,0
1468
- DA:67,0
1469
- DA:68,0
1470
- DA:69,0
1471
- DA:79,0
1472
- DA:80,0
1473
- DA:84,24
1474
- DA:85,23
1475
- DA:87,24
1476
- DA:88,24
1477
- DA:96,44
1478
- DA:97,1
1479
- DA:98,1
1480
- DA:99,1
1481
- DA:101,1
1482
- DA:103,1
1483
- DA:104,1
1484
- DA:107,1
1485
- DA:110,44
1486
- DA:111,48
1487
- DA:112,0
1488
- DA:114,48
1489
- DA:115,0
1490
- DA:116,0
1491
- DA:119,48
1492
- DA:120,24
1493
- DA:122,24
1494
- LF:56
1495
- LH:40
1496
- BRDA:35,0,0,23
1497
- BRDA:35,0,1,1
1498
- BRDA:46,1,0,0
1499
- BRDA:46,1,1,24
1500
- BRDA:57,2,0,0
1501
- BRDA:57,2,1,0
1502
- BRDA:64,3,0,0
1503
- BRDA:64,3,1,0
1504
- BRDA:67,4,0,0
1505
- BRDA:67,4,1,0
1506
- BRDA:79,5,0,0
1507
- BRDA:79,5,1,0
1508
- BRDA:84,6,0,23
1509
- BRDA:84,6,1,1
1510
- BRDA:111,7,0,0
1511
- BRDA:111,7,1,48
1512
- BRDA:114,8,0,0
1513
- BRDA:114,8,1,48
1514
- BRDA:115,9,0,0
1515
- BRDA:115,9,1,0
1516
- BRDA:119,10,0,24
1517
- BRDA:119,10,1,24
1518
- BRDA:119,11,0,48
1519
- BRDA:119,11,1,48
1520
- BRF:24
1521
- BRH:11
1522
- end_of_record
1523
- TN:
1524
1367
  SF:src/api/controllers/script.js
1525
1368
  FN:3,(anonymous_0)
1526
1369
  FN:9,(anonymous_1)
@@ -5750,42 +5593,41 @@ BRH:0
5750
5593
  end_of_record
5751
5594
  TN:
5752
5595
  SF:src/db/utils.js
5753
- FN:101,getDocParams
5754
- FN:117,(anonymous_1)
5755
- FN:125,(anonymous_2)
5756
- FN:137,(anonymous_3)
5757
- FN:152,(anonymous_4)
5758
- FN:165,(anonymous_5)
5759
- FN:173,(anonymous_6)
5760
- FN:182,(anonymous_7)
5761
- FN:189,(anonymous_8)
5762
- FN:200,(anonymous_9)
5763
- FN:208,(anonymous_10)
5764
- FN:223,(anonymous_11)
5765
- FN:240,(anonymous_12)
5766
- FN:248,(anonymous_13)
5767
- FN:255,(anonymous_14)
5768
- FN:263,(anonymous_15)
5769
- FN:270,(anonymous_16)
5770
- FN:278,(anonymous_17)
5771
- FN:285,(anonymous_18)
5772
- FN:293,(anonymous_19)
5773
- FN:302,(anonymous_20)
5774
- FN:310,(anonymous_21)
5775
- FN:320,(anonymous_22)
5776
- FN:327,(anonymous_23)
5777
- FN:334,(anonymous_24)
5778
- FN:350,(anonymous_25)
5779
- FN:354,(anonymous_26)
5780
- FN:358,(anonymous_27)
5781
- FN:366,(anonymous_28)
5782
- FN:370,(anonymous_29)
5783
- FN:374,(anonymous_30)
5784
- FN:381,(anonymous_31)
5785
- FN:391,(anonymous_32)
5786
- FNF:33
5787
- FNH:26
5788
- FNDA:882,getDocParams
5596
+ FN:100,getDocParams
5597
+ FN:116,(anonymous_1)
5598
+ FN:124,(anonymous_2)
5599
+ FN:136,(anonymous_3)
5600
+ FN:151,(anonymous_4)
5601
+ FN:164,(anonymous_5)
5602
+ FN:172,(anonymous_6)
5603
+ FN:181,(anonymous_7)
5604
+ FN:188,(anonymous_8)
5605
+ FN:199,(anonymous_9)
5606
+ FN:207,(anonymous_10)
5607
+ FN:222,(anonymous_11)
5608
+ FN:239,(anonymous_12)
5609
+ FN:247,(anonymous_13)
5610
+ FN:254,(anonymous_14)
5611
+ FN:262,(anonymous_15)
5612
+ FN:269,(anonymous_16)
5613
+ FN:277,(anonymous_17)
5614
+ FN:284,(anonymous_18)
5615
+ FN:292,(anonymous_19)
5616
+ FN:301,(anonymous_20)
5617
+ FN:309,(anonymous_21)
5618
+ FN:319,(anonymous_22)
5619
+ FN:326,(anonymous_23)
5620
+ FN:333,(anonymous_24)
5621
+ FN:349,(anonymous_25)
5622
+ FN:353,(anonymous_26)
5623
+ FN:357,(anonymous_27)
5624
+ FN:365,(anonymous_28)
5625
+ FN:369,(anonymous_29)
5626
+ FN:373,(anonymous_30)
5627
+ FN:380,(anonymous_31)
5628
+ FNF:32
5629
+ FNH:25
5630
+ FNDA:879,getDocParams
5789
5631
  FNDA:271,(anonymous_1)
5790
5632
  FNDA:130,(anonymous_2)
5791
5633
  FNDA:44,(anonymous_3)
@@ -5817,16 +5659,16 @@ FNDA:1,(anonymous_28)
5817
5659
  FNDA:0,(anonymous_29)
5818
5660
  FNDA:0,(anonymous_30)
5819
5661
  FNDA:60,(anonymous_31)
5820
- FNDA:3,(anonymous_32)
5821
5662
  DA:1,59
5822
5663
  DA:16,59
5823
5664
  DA:18,59
5824
5665
  DA:20,59
5825
5666
  DA:26,59
5826
- DA:48,59
5827
- DA:52,59
5828
- DA:56,59
5829
- DA:58,59
5667
+ DA:47,59
5668
+ DA:51,59
5669
+ DA:55,59
5670
+ DA:57,59
5671
+ DA:65,59
5830
5672
  DA:66,59
5831
5673
  DA:67,59
5832
5674
  DA:68,59
@@ -5843,148 +5685,143 @@ DA:78,59
5843
5685
  DA:79,59
5844
5686
  DA:80,59
5845
5687
  DA:81,59
5846
- DA:82,59
5688
+ DA:83,59
5847
5689
  DA:84,59
5848
- DA:85,59
5849
- DA:87,59
5850
- DA:102,882
5851
- DA:103,865
5852
- DA:105,882
5853
- DA:112,59
5854
- DA:117,59
5855
- DA:118,271
5856
- DA:125,59
5857
- DA:126,130
5858
- DA:137,59
5859
- DA:138,44
5860
- DA:139,30
5861
- DA:142,14
5862
- DA:144,14
5863
- DA:152,59
5864
- DA:153,0
5865
- DA:156,0
5866
- DA:165,59
5690
+ DA:86,59
5691
+ DA:101,879
5692
+ DA:102,862
5693
+ DA:104,879
5694
+ DA:111,59
5695
+ DA:116,59
5696
+ DA:117,271
5697
+ DA:124,59
5698
+ DA:125,130
5699
+ DA:136,59
5700
+ DA:137,44
5701
+ DA:138,30
5702
+ DA:141,14
5703
+ DA:143,14
5704
+ DA:151,59
5705
+ DA:152,0
5706
+ DA:155,0
5707
+ DA:164,59
5708
+ DA:165,321
5867
5709
  DA:166,321
5868
- DA:167,321
5869
- DA:173,59
5870
- DA:174,3
5871
- DA:182,59
5872
- DA:183,242
5873
- DA:189,59
5710
+ DA:172,59
5711
+ DA:173,3
5712
+ DA:181,59
5713
+ DA:182,242
5714
+ DA:188,59
5715
+ DA:189,3
5874
5716
  DA:190,3
5875
- DA:191,3
5876
- DA:192,1
5877
- DA:194,2
5878
- DA:200,59
5879
- DA:201,279
5880
- DA:208,59
5881
- DA:209,27
5882
- DA:223,59
5717
+ DA:191,1
5718
+ DA:193,2
5719
+ DA:199,59
5720
+ DA:200,279
5721
+ DA:207,59
5722
+ DA:208,27
5723
+ DA:222,59
5724
+ DA:230,9
5883
5725
  DA:231,9
5884
5726
  DA:232,9
5885
5727
  DA:233,9
5886
- DA:234,9
5887
- DA:240,59
5888
- DA:241,0
5889
- DA:248,59
5890
- DA:249,6
5891
- DA:255,59
5892
- DA:256,9
5893
- DA:263,59
5894
- DA:264,23
5895
- DA:270,59
5896
- DA:271,11
5897
- DA:278,59
5898
- DA:279,10
5899
- DA:285,59
5900
- DA:286,2
5901
- DA:293,59
5902
- DA:294,64
5903
- DA:302,59
5904
- DA:303,5
5905
- DA:310,59
5906
- DA:311,139
5907
- DA:320,59
5908
- DA:321,0
5909
- DA:327,59
5910
- DA:328,253
5911
- DA:334,59
5912
- DA:335,5
5913
- DA:336,4
5914
- DA:339,1
5915
- DA:350,59
5916
- DA:351,0
5917
- DA:354,59
5918
- DA:355,10
5919
- DA:358,59
5728
+ DA:239,59
5729
+ DA:240,0
5730
+ DA:247,59
5731
+ DA:248,6
5732
+ DA:254,59
5733
+ DA:255,9
5734
+ DA:262,59
5735
+ DA:263,23
5736
+ DA:269,59
5737
+ DA:270,11
5738
+ DA:277,59
5739
+ DA:278,10
5740
+ DA:284,59
5741
+ DA:285,2
5742
+ DA:292,59
5743
+ DA:293,64
5744
+ DA:301,59
5745
+ DA:302,5
5746
+ DA:309,59
5747
+ DA:310,139
5748
+ DA:319,59
5749
+ DA:320,0
5750
+ DA:326,59
5751
+ DA:327,253
5752
+ DA:333,59
5753
+ DA:334,5
5754
+ DA:335,4
5755
+ DA:338,1
5756
+ DA:349,59
5757
+ DA:350,0
5758
+ DA:353,59
5759
+ DA:354,10
5760
+ DA:357,59
5761
+ DA:358,0
5920
5762
  DA:359,0
5921
5763
  DA:360,0
5922
- DA:361,0
5923
- DA:363,0
5924
- DA:366,59
5925
- DA:367,1
5926
- DA:370,59
5927
- DA:371,0
5928
- DA:374,59
5929
- DA:375,0
5930
- DA:381,59
5931
- DA:382,60
5932
- DA:391,59
5933
- DA:392,3
5934
- LF:113
5935
- LH:102
5936
- BRDA:101,0,0,0
5937
- BRDA:101,1,0,0
5938
- BRDA:102,2,0,865
5939
- BRDA:102,2,1,17
5940
- BRDA:117,3,0,0
5941
- BRDA:117,4,0,0
5942
- BRDA:137,5,0,0
5943
- BRDA:137,6,0,0
5944
- BRDA:137,7,0,0
5945
- BRDA:138,8,0,30
5946
- BRDA:138,8,1,14
5947
- BRDA:142,9,0,14
5948
- BRDA:142,9,1,0
5949
- BRDA:165,10,0,79
5950
- BRDA:166,11,0,321
5951
- BRDA:166,11,1,79
5952
- BRDA:173,12,0,0
5953
- BRDA:173,13,0,0
5954
- BRDA:191,14,0,1
5955
- BRDA:191,14,1,2
5956
- BRDA:191,15,0,3
5957
- BRDA:191,15,1,3
5958
- BRDA:200,16,0,0
5959
- BRDA:200,17,0,0
5960
- BRDA:240,18,0,0
5961
- BRDA:249,19,0,6
5962
- BRDA:249,19,1,6
5963
- BRDA:255,20,0,0
5964
- BRDA:255,21,0,0
5965
- BRDA:270,22,0,0
5966
- BRDA:270,23,0,0
5967
- BRDA:285,24,0,0
5968
- BRDA:285,25,0,0
5969
- BRDA:293,26,0,0
5970
- BRDA:293,27,0,64
5971
- BRDA:295,28,0,0
5972
- BRDA:295,28,1,64
5973
- BRDA:302,29,0,0
5974
- BRDA:302,30,0,0
5975
- BRDA:327,31,0,0
5976
- BRDA:334,32,0,0
5977
- BRDA:334,33,0,0
5978
- BRDA:335,34,0,4
5979
- BRDA:335,34,1,1
5980
- BRDA:358,35,0,0
5981
- BRDA:358,36,0,0
5982
- BRDA:360,37,0,0
5983
- BRDA:360,37,1,0
5984
- BRDA:370,38,0,0
5985
- BRDA:391,39,0,0
5986
- BRDA:391,40,0,0
5987
- BRF:51
5764
+ DA:362,0
5765
+ DA:365,59
5766
+ DA:366,1
5767
+ DA:369,59
5768
+ DA:370,0
5769
+ DA:373,59
5770
+ DA:374,0
5771
+ DA:380,59
5772
+ DA:381,60
5773
+ LF:111
5774
+ LH:100
5775
+ BRDA:100,0,0,0
5776
+ BRDA:100,1,0,0
5777
+ BRDA:101,2,0,862
5778
+ BRDA:101,2,1,17
5779
+ BRDA:116,3,0,0
5780
+ BRDA:116,4,0,0
5781
+ BRDA:136,5,0,0
5782
+ BRDA:136,6,0,0
5783
+ BRDA:136,7,0,0
5784
+ BRDA:137,8,0,30
5785
+ BRDA:137,8,1,14
5786
+ BRDA:141,9,0,14
5787
+ BRDA:141,9,1,0
5788
+ BRDA:164,10,0,79
5789
+ BRDA:165,11,0,321
5790
+ BRDA:165,11,1,79
5791
+ BRDA:172,12,0,0
5792
+ BRDA:172,13,0,0
5793
+ BRDA:190,14,0,1
5794
+ BRDA:190,14,1,2
5795
+ BRDA:190,15,0,3
5796
+ BRDA:190,15,1,3
5797
+ BRDA:199,16,0,0
5798
+ BRDA:199,17,0,0
5799
+ BRDA:239,18,0,0
5800
+ BRDA:248,19,0,6
5801
+ BRDA:248,19,1,6
5802
+ BRDA:254,20,0,0
5803
+ BRDA:254,21,0,0
5804
+ BRDA:269,22,0,0
5805
+ BRDA:269,23,0,0
5806
+ BRDA:284,24,0,0
5807
+ BRDA:284,25,0,0
5808
+ BRDA:292,26,0,0
5809
+ BRDA:292,27,0,64
5810
+ BRDA:294,28,0,0
5811
+ BRDA:294,28,1,64
5812
+ BRDA:301,29,0,0
5813
+ BRDA:301,30,0,0
5814
+ BRDA:326,31,0,0
5815
+ BRDA:333,32,0,0
5816
+ BRDA:333,33,0,0
5817
+ BRDA:334,34,0,4
5818
+ BRDA:334,34,1,1
5819
+ BRDA:357,35,0,0
5820
+ BRDA:357,36,0,0
5821
+ BRDA:359,37,0,0
5822
+ BRDA:359,37,1,0
5823
+ BRDA:369,38,0,0
5824
+ BRF:49
5988
5825
  BRH:18
5989
5826
  end_of_record
5990
5827
  TN:
@@ -8,17 +8,17 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  step((generator = generator.apply(thisArg, _arguments || [])).next());
9
9
  });
10
10
  };
11
- const { DocumentType, getPluginParams } = require("../../db/utils");
12
- const { getComponentLibraryManifest } = require("../../utilities/fileSystem");
13
- const { getAppDB } = require("@budibase/backend-core/context");
14
- const { getGlobalDB } = require("@budibase/backend-core/tenancy");
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ const utils_1 = require("../../db/utils");
13
+ const backend_core_1 = require("@budibase/backend-core");
14
+ const fileSystem_1 = require("../../utilities/fileSystem");
15
15
  exports.fetchAppComponentDefinitions = function (ctx) {
16
16
  return __awaiter(this, void 0, void 0, function* () {
17
17
  try {
18
- const db = getAppDB();
19
- const app = yield db.get(DocumentType.APP_METADATA);
18
+ const db = backend_core_1.context.getAppDB();
19
+ const app = yield db.get(utils_1.DocumentType.APP_METADATA);
20
20
  let componentManifests = yield Promise.all(app.componentLibraries.map((library) => __awaiter(this, void 0, void 0, function* () {
21
- let manifest = yield getComponentLibraryManifest(library);
21
+ let manifest = yield (0, fileSystem_1.getComponentLibraryManifest)(library);
22
22
  return {
23
23
  manifest,
24
24
  library,
@@ -37,14 +37,14 @@ exports.fetchAppComponentDefinitions = function (ctx) {
37
37
  }
38
38
  }
39
39
  // Add custom components
40
- const globalDB = getGlobalDB();
41
- const response = yield globalDB.allDocs(getPluginParams(null, {
40
+ const globalDB = backend_core_1.tenancy.getGlobalDB();
41
+ const response = yield globalDB.allDocs(backend_core_1.db.getPluginParams(null, {
42
42
  include_docs: true,
43
43
  }));
44
44
  response.rows
45
- .map(row => row.doc)
46
- .filter(plugin => plugin.schema.type === "component")
47
- .forEach(plugin => {
45
+ .map((row) => row.doc)
46
+ .filter((plugin) => plugin.schema.type === "component")
47
+ .forEach((plugin) => {
48
48
  const fullComponentName = `plugin/${plugin.name}`;
49
49
  definitions[fullComponentName] = Object.assign({ component: fullComponentName }, plugin.schema.schema);
50
50
  });