@azure/data-tables 13.1.3-alpha.20220616.1 → 13.1.3-alpha.20220725.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
@@ -3885,9 +3885,10 @@ class TableTransaction {
3885
3885
  * Adds an update action to the transaction
3886
3886
  * @param entity - entity to update
3887
3887
  * @param updateMode - update mode
3888
+ * @param options - options for the update operation
3888
3889
  */
3889
- updateEntity(entity, updateMode = "Merge") {
3890
- this.actions.push(["update", entity, updateMode]);
3890
+ updateEntity(entity, updateMode = "Merge", updateOptions) {
3891
+ this.actions.push(["update", entity, updateMode, updateOptions]);
3891
3892
  }
3892
3893
  /**
3893
3894
  * Adds an upsert action to the transaction, which inserts if the entity doesn't exist or updates the existing one
@@ -4926,7 +4927,7 @@ class TableClient {
4926
4927
  this.transactionClient.reset(transactionId, changesetId, partitionKey);
4927
4928
  }
4928
4929
  for (const item of actions) {
4929
- const [action, entity, updateMode = "Merge"] = item;
4930
+ const [action, entity, updateMode = "Merge", updateOptions] = item;
4930
4931
  switch (action) {
4931
4932
  case "create":
4932
4933
  this.transactionClient.createEntity(entity);
@@ -4935,7 +4936,7 @@ class TableClient {
4935
4936
  this.transactionClient.deleteEntity(entity.partitionKey, entity.rowKey);
4936
4937
  break;
4937
4938
  case "update":
4938
- this.transactionClient.updateEntity(entity, updateMode);
4939
+ this.transactionClient.updateEntity(entity, updateMode, updateOptions);
4939
4940
  break;
4940
4941
  case "upsert":
4941
4942
  this.transactionClient.upsertEntity(entity, updateMode);