@azure/data-tables 13.1.2 → 13.2.0

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.
@@ -306,6 +306,7 @@ export { NamedKeyCredential }
306
306
 
307
307
  /**
308
308
  * Escapes an odata filter expression to avoid errors with quoting string literals.
309
+ * Encodes Date objects.
309
310
  */
310
311
  export declare function odata(strings: TemplateStringsArray, ...values: unknown[]): string;
311
312
 
@@ -1305,12 +1306,19 @@ export declare class TableTransaction {
1305
1306
  * @param rowKey - rowKey of the entity to delete
1306
1307
  */
1307
1308
  deleteEntity(partitionKey: string, rowKey: string): void;
1309
+ /**
1310
+ * Adds an update action to the transaction
1311
+ * @param entity - entity to update
1312
+ * @param updateOptions - options for the update operation
1313
+ */
1314
+ updateEntity<T extends object = Record<string, unknown>>(entity: TableEntity<T>, updateOptions?: UpdateTableEntityOptions): void;
1308
1315
  /**
1309
1316
  * Adds an update action to the transaction
1310
1317
  * @param entity - entity to update
1311
1318
  * @param updateMode - update mode
1319
+ * @param updateOptions - options for the update operation
1312
1320
  */
1313
- updateEntity<T extends object = Record<string, unknown>>(entity: TableEntity<T>, updateMode?: UpdateMode): void;
1321
+ updateEntity<T extends object = Record<string, unknown>>(entity: TableEntity<T>, updateMode: UpdateMode, updateOptions?: UpdateTableEntityOptions): void;
1314
1322
  /**
1315
1323
  * Adds an upsert action to the transaction, which inserts if the entity doesn't exist or updates the existing one
1316
1324
  * @param entity - entity to upsert
@@ -1377,7 +1385,7 @@ export declare type TransactionAction = CreateDeleteEntityAction | UpdateEntityA
1377
1385
  /**
1378
1386
  * Represents the Update or Upsert Entity operation to be included in a Transaction request
1379
1387
  */
1380
- export declare type UpdateEntityAction = ["update" | "upsert", TableEntity] | ["update" | "upsert", TableEntity, "Merge" | "Replace"];
1388
+ export declare type UpdateEntityAction = ["update" | "upsert", TableEntity] | ["update" | "upsert", TableEntity, "Merge" | "Replace"] | ["update" | "upsert", TableEntity, "Merge" | "Replace", UpdateTableEntityOptions | undefined];
1381
1389
 
1382
1390
  /** Contains response data for the updateEntity operation. */
1383
1391
  export declare type UpdateEntityResponse = TableUpdateEntityHeaders;