@budibase/server 2.6.16-alpha.1 → 2.6.16

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.
@@ -8,8 +8,8 @@
8
8
  <link rel="preconnect" href="https://fonts.gstatic.com" />
9
9
  <link href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap"
10
10
  rel="stylesheet" />
11
- <script type="module" crossorigin src="/builder/assets/index.6871cd96.js"></script>
12
- <link rel="stylesheet" href="/builder/assets/index.99a64f16.css">
11
+ <script type="module" crossorigin src="/builder/assets/index.a40dcadd.js"></script>
12
+ <link rel="stylesheet" href="/builder/assets/index.86c992bf.css">
13
13
  </head>
14
14
 
15
15
  <body id="app">
@@ -33,10 +33,6 @@ exports.definition = {
33
33
  type: types_1.AutomationIOType.STRING,
34
34
  title: "Webhook URL",
35
35
  },
36
- body: {
37
- type: types_1.AutomationIOType.JSON,
38
- title: "Payload",
39
- },
40
36
  value1: {
41
37
  type: types_1.AutomationIOType.STRING,
42
38
  title: "Input Value 1",
@@ -82,19 +78,7 @@ exports.definition = {
82
78
  function run({ inputs }) {
83
79
  var _a;
84
80
  return __awaiter(this, void 0, void 0, function* () {
85
- //TODO - Remove deprecated values 1,2,3,4,5 after November 2023
86
- const { url, value1, value2, value3, value4, value5, body } = inputs;
87
- let payload = {};
88
- try {
89
- payload = (body === null || body === void 0 ? void 0 : body.value) ? JSON.parse(body === null || body === void 0 ? void 0 : body.value) : {};
90
- }
91
- catch (err) {
92
- return {
93
- httpStatus: 400,
94
- response: "Invalid payload JSON",
95
- success: false,
96
- };
97
- }
81
+ const { url, value1, value2, value3, value4, value5 } = inputs;
98
82
  if (!((_a = url === null || url === void 0 ? void 0 : url.trim()) === null || _a === void 0 ? void 0 : _a.length)) {
99
83
  return {
100
84
  httpStatus: 400,
@@ -106,11 +90,13 @@ function run({ inputs }) {
106
90
  try {
107
91
  response = yield (0, node_fetch_1.default)(url, {
108
92
  method: "post",
109
- body: JSON.stringify(Object.assign({ value1,
93
+ body: JSON.stringify({
94
+ value1,
110
95
  value2,
111
96
  value3,
112
97
  value4,
113
- value5 }, payload)),
98
+ value5,
99
+ }),
114
100
  headers: {
115
101
  "Content-Type": "application/json",
116
102
  },
@@ -32,10 +32,6 @@ exports.definition = {
32
32
  type: types_1.AutomationIOType.STRING,
33
33
  title: "Webhook URL",
34
34
  },
35
- body: {
36
- type: types_1.AutomationIOType.JSON,
37
- title: "Payload",
38
- },
39
35
  value1: {
40
36
  type: types_1.AutomationIOType.STRING,
41
37
  title: "Payload Value 1",
@@ -76,19 +72,7 @@ exports.definition = {
76
72
  function run({ inputs }) {
77
73
  var _a;
78
74
  return __awaiter(this, void 0, void 0, function* () {
79
- //TODO - Remove deprecated values 1,2,3,4,5 after November 2023
80
- const { url, value1, value2, value3, value4, value5, body } = inputs;
81
- let payload = {};
82
- try {
83
- payload = (body === null || body === void 0 ? void 0 : body.value) ? JSON.parse(body === null || body === void 0 ? void 0 : body.value) : {};
84
- }
85
- catch (err) {
86
- return {
87
- httpStatus: 400,
88
- response: "Invalid payload JSON",
89
- success: false,
90
- };
91
- }
75
+ const { url, value1, value2, value3, value4, value5 } = inputs;
92
76
  if (!((_a = url === null || url === void 0 ? void 0 : url.trim()) === null || _a === void 0 ? void 0 : _a.length)) {
93
77
  return {
94
78
  httpStatus: 400,
@@ -102,11 +86,14 @@ function run({ inputs }) {
102
86
  try {
103
87
  response = yield (0, node_fetch_1.default)(url, {
104
88
  method: "post",
105
- body: JSON.stringify(Object.assign({ platform: "budibase", value1,
89
+ body: JSON.stringify({
90
+ platform: "budibase",
91
+ value1,
106
92
  value2,
107
93
  value3,
108
94
  value4,
109
- value5 }, payload)),
95
+ value5,
96
+ }),
110
97
  headers: {
111
98
  "Content-Type": "application/json",
112
99
  },
@@ -382,20 +382,7 @@ class GoogleSheetsIntegration {
382
382
  try {
383
383
  yield this.connect();
384
384
  const sheet = this.client.sheetsByTitle[query.sheet];
385
- let rows = [];
386
- if (query.paginate) {
387
- const limit = query.paginate.limit || 100;
388
- let page = typeof query.paginate.page === "number"
389
- ? query.paginate.page
390
- : parseInt(query.paginate.page || "1");
391
- rows = yield sheet.getRows({
392
- limit,
393
- offset: (page - 1) * limit,
394
- });
395
- }
396
- else {
397
- rows = yield sheet.getRows();
398
- }
385
+ const rows = yield sheet.getRows();
399
386
  const filtered = shared_core_1.dataFilters.runLuceneQuery(rows, query.filters);
400
387
  const headerValues = sheet.headerValues;
401
388
  let response = [];