seatable-html-page-sdk 0.0.10 → 0.0.11-beta.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
@@ -4074,8 +4074,18 @@
4074
4074
  };
4075
4075
  return this.req.post(url, data);
4076
4076
  }
4077
- updateRows(page_id, table_name, rows_data) {
4077
+ updateRow(page_id, table_name, row_id, row_data) {
4078
4078
  const url = `${this.server}api/v2.1/universal-apps/${this.appUuid}/html-page-rows/`;
4079
+ const data = {
4080
+ page_id,
4081
+ table_name,
4082
+ row_id,
4083
+ row_data
4084
+ };
4085
+ return this._sendPut(url, data);
4086
+ }
4087
+ updateRows(page_id, table_name, rows_data) {
4088
+ const url = `${this.server}api/v2.1/universal-apps/${this.appUuid}/html-page-rows/batch/`;
4079
4089
  const data = {
4080
4090
  page_id,
4081
4091
  table_name,
@@ -4513,14 +4523,7 @@
4513
4523
  rowId,
4514
4524
  rowData
4515
4525
  } = _ref3;
4516
- const rowsData = [{
4517
- row_id: rowId,
4518
- row: rowData
4519
- }];
4520
- this.batchUpdateRows({
4521
- tableName,
4522
- rowsData
4523
- });
4526
+ this.htmlPageAPI.updateRow(this.options.pageId, tableName, rowId, rowData);
4524
4527
  }
4525
4528
  deleteRow(_ref4) {
4526
4529
  let {