Skip to content

Commit 09841e7

Browse files
authored
Command: add auditBehavior, auditUserComment, skipReselectRows (#189)
1 parent 9cca392 commit 09841e7

5 files changed

Lines changed: 17 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
### 1.37.0 - 2024-12-19
2+
- Command: add auditBehavior, auditUserComment, skipReselectRows
3+
14
### 1.36.0 - 2024-11-05
25
- Package updates
36

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@labkey/api",
3-
"version": "1.36.0",
3+
"version": "1.37.0",
44
"description": "JavaScript client API for LabKey Server",
55
"scripts": {
66
"build": "npm run build:dist && npm run build:docs",

src/labkey/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export enum ExperimentalFeatures {
8080
javascriptMothership = 'javascriptMothership',
8181
}
8282

83-
/** THe different types of audit behaviors for query requests. May be used to override behavior for a specific requests. */
83+
/** The different types of audit behaviors for query requests. May be used to override behavior for a specific requests. */
8484
export enum AuditBehaviorTypes {
8585
DETAILED = 'DETAILED',
8686
NONE = 'NONE',

src/labkey/query/Rows.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,10 @@ export interface ModifyRowsResults {
211211
}
212212

213213
export interface Command {
214+
/** Can be used to override the audit behavior for the table the Command is acting on. See{@link AuditBehaviorTypes}. */
215+
auditBehavior?: AuditBehaviorTypes;
216+
/** Can be used to provide a comment from the user that will be attached to certain detailed audit log records. */
217+
auditUserComment?: string;
214218
/** Name of the command to be performed. Must be one of "insert", "update", or "delete". */
215219
command: CommandType;
216220
/** **Experimental:** Optional extra context object passed into the transformation/validation script environment. */
@@ -230,6 +234,11 @@ export interface Command {
230234
* See also: [How To Find schemaName, queryName & viewName](https://www.labkey.org/Documentation/wiki-page.view?name=findNames).
231235
*/
232236
schemaName: string;
237+
/**
238+
* Whether the full detailed response for the update/insert rows can be skipped.
239+
* Defaults to false.
240+
*/
241+
skipReselectRows?: boolean;
233242
}
234243

235244
export interface MoveRowsResponse extends ModifyRowsResults {
@@ -260,7 +269,7 @@ export interface SaveRowsOptions extends RequestCallbackOptions<SaveRowsResponse
260269
* will be invoked instead in the event of a validation failure.
261270
*/
262271
apiVersion?: string | number;
263-
/** An array of all of the update/insert/delete operations to be performed. */
272+
/** An array of the update/insert/delete operations to be performed. */
264273
commands: Command[];
265274
/**
266275
* The container path in which the changes are to be performed.

0 commit comments

Comments
 (0)