Skip to content

Commit

Permalink
#243 propertyValue added to setUserProperty method of UserProperties …
Browse files Browse the repository at this point in the history
…API (#244)
  • Loading branch information
MrRefactoring authored Dec 25, 2022
1 parent 379e876 commit a6d96db
Show file tree
Hide file tree
Showing 7 changed files with 190 additions and 197 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Jira.js changelog

### 2.15.16

- Version 2, 3:
- `propertyValue` added to `setUserProperty` method of `UserProperties` API. Thanks to [lihongyin](https://github.com/hongyin163) for issue report.

### 2.15.15

- Version 2, 3:
Expand Down
336 changes: 158 additions & 178 deletions package-lock.json

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jira.js",
"version": "2.15.15",
"version": "2.15.16",
"description": "jira.js is a powerful Node.JS/Browser module that allows you to interact with the Jira API very easily",
"main": "out/index.js",
"types": "out/index.d.ts",
Expand Down Expand Up @@ -53,23 +53,23 @@
"devDependencies": {
"@swc-node/register": "^1.5.4",
"@types/express": "^4.17.15",
"@types/node": "^18.11.15",
"@types/node": "^18.11.17",
"@types/oauth": "^0.9.1",
"@types/sinon": "^10.0.13",
"@typescript-eslint/eslint-plugin": "^5.46.1",
"@typescript-eslint/parser": "^5.46.1",
"@typescript-eslint/eslint-plugin": "^5.47.0",
"@typescript-eslint/parser": "^5.47.0",
"ava": "^5.1.0",
"dotenv": "^16.0.3",
"eslint": "^8.29.0",
"eslint": "^8.30.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-airbnb-typescript": "^17.0.0",
"eslint-import-resolver-typescript": "^3.5.2",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-sort-exports": "^0.8.0",
"prettier": "^2.8.1",
"prettier-plugin-jsdoc": "^0.4.2",
"sinon": "^15.0.0",
"typedoc": "^0.23.22",
"sinon": "^15.0.1",
"typedoc": "^0.23.23",
"typedoc-plugin-extras": "^2.3.1",
"typescript": "^4.9.4"
},
Expand Down
15 changes: 9 additions & 6 deletions src/version2/parameters/setUserProperty.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,20 @@ export interface SetUserProperty {
*/
accountId?: string;
/**
* This parameter is no longer available and will be removed from the documentation soon. See the [deprecation
* notice](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/)
* for details.
* @deprecated This parameter is no longer available and will be removed from the documentation soon. See the
* [deprecation
* notice](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/)
* for details.
*/
userKey?: string;
/**
* This parameter is no longer available and will be removed from the documentation soon. See the [deprecation
* notice](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/)
* for details.
* @deprecated This parameter is no longer available and will be removed from the documentation soon. See the
* [deprecation
* notice](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/)
* for details.
*/
username?: string;
/** The key of the user's property. The maximum length is 255 characters. */
propertyKey: string;
propertyValue: any;
}
1 change: 1 addition & 0 deletions src/version2/userProperties.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ export class UserProperties {
userKey: parameters.userKey,
username: parameters.username,
},
data: parameters.propertyValue,
};

return this.client.sendRequest(config, callback);
Expand Down
15 changes: 9 additions & 6 deletions src/version3/parameters/setUserProperty.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,20 @@ export interface SetUserProperty {
*/
accountId?: string;
/**
* This parameter is no longer available and will be removed from the documentation soon. See the [deprecation
* notice](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/)
* for details.
* @deprecated This parameter is no longer available and will be removed from the documentation soon. See the
* [deprecation
* notice](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/)
* for details.
*/
userKey?: string;
/**
* This parameter is no longer available and will be removed from the documentation soon. See the [deprecation
* notice](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/)
* for details.
* @deprecated This parameter is no longer available and will be removed from the documentation soon. See the
* [deprecation
* notice](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/)
* for details.
*/
username?: string;
/** The key of the user's property. The maximum length is 255 characters. */
propertyKey: string;
propertyValue: any;
}
1 change: 1 addition & 0 deletions src/version3/userProperties.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ export class UserProperties {
userKey: parameters.userKey,
username: parameters.username,
},
data: parameters.propertyValue,
};

return this.client.sendRequest(config, callback);
Expand Down

0 comments on commit a6d96db

Please sign in to comment.