diff --git a/CHANGELOG.md b/CHANGELOG.md index 1c101948..4730cd8d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +### 1.41.1 - 2025-05-22 +- Add `auditUserComment` to `Domain.drop` and `Domain.save` + ### 1.41.0 - 2025-05-22 - ActionURL.queryString: Add support for numbers, booleans, and mixed arrays diff --git a/package-lock.json b/package-lock.json index d07c7e88..73abe759 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@labkey/api", - "version": "1.41.0", + "version": "1.41.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@labkey/api", - "version": "1.41.0", + "version": "1.41.1", "license": "Apache-2.0", "devDependencies": { "@babel/core": "7.26.10", diff --git a/package.json b/package.json index f7050136..8c847653 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@labkey/api", - "version": "1.41.0", + "version": "1.41.1", "description": "JavaScript client API for LabKey Server", "scripts": { "build": "npm run build:dist && npm run build:docs", diff --git a/src/labkey/Domain.ts b/src/labkey/Domain.ts index fb49bfb0..7efd09fa 100644 --- a/src/labkey/Domain.ts +++ b/src/labkey/Domain.ts @@ -205,12 +205,15 @@ function mapCreateArguments(args: IArguments): CreateDomainOptions { } export interface DropDomainOptions extends RequestCallbackOptions { + /** Can be used to provide a comment from the user that will be attached to domain audit event. */ + auditUserComment?: string; /** * The container path in which the requested Domain is defined. * If not supplied, the current container path will be used. */ containerPath?: string; - domainDesign?: any; // consider removing, this doesn't appear to be needed + // consider removing, this doesn't appear to be needed + domainDesign?: any; /** The domain query name. */ queryName: string; /** The domain schema name. */ @@ -230,6 +233,7 @@ export function drop(config: DropDomainOptions): XMLHttpRequest { domainDesign: config.domainDesign, schemaName: config.schemaName, queryName: config.queryName, + auditUserComment: config.auditUserComment, }, }); } @@ -346,6 +350,8 @@ export function get(config: GetDomainOptions): XMLHttpRequest { } export interface SaveDomainOptions extends RequestCallbackOptions { + /** Can be used to provide a comment from the user that will be attached to domain audit event. */ + auditUserComment?: string; /** * The container path in which the requested Domain is defined. * If not supplied, the current container path will be used. @@ -387,6 +393,7 @@ export function save(config: SaveDomainOptions): XMLHttpRequest { containerPath: arguments[5], includeWarnings: arguments[6], options: arguments[7], + auditUserComment: arguments[8], } : config; @@ -401,6 +408,7 @@ export function save(config: SaveDomainOptions): XMLHttpRequest { queryName: options.queryName, domainId: options.domainId, includeWarnings: options.includeWarnings, + auditUserComment: options.auditUserComment, options: options.options, }, }); diff --git a/src/labkey/Exp.ts b/src/labkey/Exp.ts index 63ca47d7..f9e9f28c 100644 --- a/src/labkey/Exp.ts +++ b/src/labkey/Exp.ts @@ -437,7 +437,7 @@ export class Data extends ExpObject { * ["StringColumn", "DateColumn"], * ["Hello", "16 May 2009 17:00:00"], * ["world", "12/21/2008 08:45AM"] - * ] + * ] * },{ * "name": "Sheet2", * "data": [ diff --git a/src/labkey/security/Container.ts b/src/labkey/security/Container.ts index d6938ba4..b2677124 100644 --- a/src/labkey/security/Container.ts +++ b/src/labkey/security/Container.ts @@ -168,6 +168,10 @@ export interface GetContainersOptions extends RequestCallbackOptions /*