@azure/data-tables 13.1.3-alpha.20220616.1 → 13.2.1-alpha.20220908.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 +19 -8
- package/dist/index.js.map +1 -1
- package/dist-esm/src/TableClient.js +2 -2
- package/dist-esm/src/TableClient.js.map +1 -1
- package/dist-esm/src/TableTransaction.js +7 -3
- package/dist-esm/src/TableTransaction.js.map +1 -1
- package/dist-esm/src/generated/generatedClientContext.js +1 -1
- package/dist-esm/src/generated/generatedClientContext.js.map +1 -1
- package/dist-esm/src/models.js.map +1 -1
- package/dist-esm/src/odata.js +9 -2
- package/dist-esm/src/odata.js.map +1 -1
- package/dist-esm/src/utils/tracing.js +1 -1
- package/dist-esm/src/utils/tracing.js.map +1 -1
- package/package.json +2 -2
- package/types/3.1/data-tables.d.ts +14 -1
- package/types/latest/data-tables.d.ts +10 -2
|
@@ -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?:
|
|
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;
|