Skip to content

Commit 85ecf40

Browse files
JSDoc improvements for Agile Cloud Client, AppMigration added (#146)
* JSDoc improvements for Agile Cloud client * deprecation notes added for some agile models * appMigration added * lint fixes * CHANGELOG for new version added * version2 api updated. appMigration added * CHANGELOG for new version added * 2.5.0
1 parent 9f3c97a commit 85ecf40

File tree

157 files changed

+2286
-1151
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

157 files changed

+2286
-1151
lines changed

CHANGELOG.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,48 @@
11
# Jira.js changelog
22

3+
### 2.5.0
4+
5+
- Agile:
6+
- JSDoc descriptions improved.
7+
- `BoardFeatureBean` are deprecated. Use `Feature` instead.
8+
- `BoardFeatureResponseBean` are deprecated. Use `FeatureResponse` instead.
9+
- `BoardFeatureToggleRequestBean` are deprecated. Use `FeatureToggleRequest` instead.
10+
- Other minor improvements
11+
12+
13+
- Version 3:
14+
- JSDoc descriptions improved.
15+
- `AppMigration` API support added.
16+
- `generateChangelog` property added to `IssueCustomFieldValuesApps.updateCustomFieldValue` request parameters.
17+
- `hierarchyLevel` property added to `IssueTypes.createIssueType`.
18+
- `getChangeLogsByIds` method added to `Issues`.
19+
- New models added:
20+
- `ConnectCustomFieldValue`
21+
- `ConnectCustomFieldValues`
22+
- `EntityPropertyDetails`
23+
- `IssueChangelogIds`
24+
- `GetChangeLogsByIds`
25+
- Mistake in `CrateWorkflowStatusDetails` fixed. Current name is correct: `CreateWorkflowStatusDetails`.
26+
- `fieldIdsFilter`, `issuePropertyKeysFilter` properties added to `Webhook` and `WebhookDetails` models.
27+
- Other minor improvements
28+
29+
- Version 2:
30+
- JSDoc descriptions improved.
31+
- `AppMigration` API support added.
32+
- `generateChangelog` property added to `IssueCustomFieldValuesApps.updateCustomFieldValue` request parameters.
33+
- `hierarchyLevel` property added to `IssueTypes.createIssueType`.
34+
- `getChangeLogsByIds` method added to `Issues`.
35+
- New models added:
36+
- `ConnectCustomFieldValue`
37+
- `ConnectCustomFieldValues`
38+
- `EntityPropertyDetails`
39+
- `IssueChangelogIds`
40+
- `PageBeanContextualConfiguration`
41+
- `GetChangeLogsByIds`
42+
- Mistake in `CrateWorkflowStatusDetails` fixed. Current name is correct: `CreateWorkflowStatusDetails`.
43+
- `fieldIdsFilter`, `issuePropertyKeysFilter` properties added to `Webhook` and `WebhookDetails` models.
44+
- Other minor improvements
45+
346
### 2.4.2
447

548
- [#144](https://github.com/MrRefactoring/jira.js/issues/144) Fixed error when tried vote issue. Thanks [João Lopes](https://github.com/lopis)!

package-lock.json

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

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jira.js",
3-
"version": "2.4.2",
3+
"version": "2.5.0",
44
"description": "jira.js is a powerful Node.JS/Browser module that allows you to interact with the Jira API very easily",
55
"main": "out/index.js",
66
"types": "out/index.d.ts",
@@ -44,11 +44,11 @@
4444
"devDependencies": {
4545
"@types/express": "^4.17.13",
4646
"@types/jest": "^26.0.24",
47-
"@types/node": "^16.0.1",
47+
"@types/node": "^16.3.3",
4848
"@types/oauth": "^0.9.1",
4949
"@types/sinon": "^10.0.2",
50-
"@typescript-eslint/eslint-plugin": "^4.28.2",
51-
"@typescript-eslint/parser": "^4.28.2",
50+
"@typescript-eslint/eslint-plugin": "^4.28.3",
51+
"@typescript-eslint/parser": "^4.28.3",
5252
"dotenv": "^10.0.0",
5353
"eslint": "^7.30.0",
5454
"eslint-config-airbnb-typescript": "^12.3.1",
@@ -59,7 +59,7 @@
5959
"prettier-plugin-jsdoc": "^0.3.23",
6060
"sinon": "^11.1.1",
6161
"ts-jest": "^26.5.6",
62-
"typedoc": "^0.21.2",
62+
"typedoc": "^0.21.4",
6363
"typescript": "^4.3.5"
6464
},
6565
"dependencies": {

src/agile/models/avatarUrls.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
/**
2-
* Details about the avatars for an item. */
1+
/** Details about the avatars for an item. */
32
export interface AvatarUrls {
43
/** The URL of the item's 16x16 pixel avatar. */
54
'16x16'?: string;

src/agile/models/basicUser.ts

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,38 @@
11
/**
2-
* Details of a user's active status, identifiers, name, and avatars as permitted by the user's Atlassian Account privacy settings. However, be aware of these exceptions:<ul><li>User record deleted from Atlassian: This occurs as the result of a right to be forgotten request. In this case, <code>displayName</code> provides an indication and other parameters have default values or are blank (for example, email is blank).</li><li>User record corrupted: This occurs as a results of events such as a server import and can only happen to deleted users. In this case, <code>accountId</code> returns <em>unknown</em> and all other parameters have fallback values.</li><li>User record unavailable: This usually occurs due to an internal service outage. In this case, all parameters have fallback values.</li></ul> */
2+
* Details of a user's active status, identifiers, name, and avatars as permitted by the user's Atlassian Account
3+
* privacy settings. However, be aware of these exceptions:<ul><li>User record deleted from Atlassian: This occurs as
4+
* the result of a right to be forgotten request. In this case, <code>displayName</code> provides an indication and
5+
* other parameters have default values or are blank (for example, email is blank).</li><li>User record corrupted: This
6+
* occurs as a results of events such as a server import and can only happen to deleted users. In this case,
7+
* <code>accountId</code> returns <em>unknown</em> and all other parameters have fallback values.</li><li>User record
8+
* unavailable: This usually occurs due to an internal service outage. In this case, all parameters have fallback
9+
* values.</li></ul>
10+
*/
311
export interface BasicUser {
4-
/** This property is deprecated in favor of <code>accountId</code> because of privacy changes. See the <a href="https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/">migration guide</a> for details. <br>The key of the user. */
12+
/**
13+
* @deprecated
14+
* This property is deprecated in favor of <code>accountId</code> because of privacy changes. See the <a
15+
* href="https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/">migration
16+
* guide</a> for details. <br>The key of the user.
17+
*/
518
key?: string;
619
/** The URL of the user. */
720
self?: string;
8-
/** This property is deprecated in favor of <code>accountId</code> because of privacy changes. See the <a href="https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/">migration guide</a> for details. <br>The username of the user. */
21+
/**
22+
* @deprecated
23+
* This property is deprecated in favor of <code>accountId</code> because of privacy changes. See the <a
24+
* href="https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/">migration
25+
* guide</a> for details. <br>The username of the user.
26+
*/
927
name?: string;
1028
/** The display name of the user. Depending on the user’s privacy setting, this may return an alternative value. */
1129
displayName?: string;
1230
/** Whether the user is active. */
1331
active?: boolean;
14-
/** The account ID of the user, which uniquely identifies the user across all Atlassian products. For example, <em>5b10ac8d82e05b22cc7d4ef5</em>. */
32+
/**
33+
* The account ID of the user, which uniquely identifies the user across all Atlassian products. For example,
34+
* <em>5b10ac8d82e05b22cc7d4ef5</em>.
35+
*/
1536
accountId?: string;
1637
/** Details of a user's avatars. */
1738
avatarUrls?: {

src/agile/models/boardAdminsBean.ts

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,29 @@
11
export interface BoardAdminsBean {
22
users?: {
3-
/** This property is deprecated in favor of <code>accountId</code> because of privacy changes. See the <a href="https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/">migration guide</a> for details. <br>The key of the user. */
3+
/**
4+
* @deprecated
5+
* This property is deprecated in favor of <code>accountId</code> because of privacy changes. See the <a
6+
* href="https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/">migration
7+
* guide</a> for details. <br>The key of the user.
8+
*/
49
key?: string;
510
/** The URL of the user. */
611
self?: string;
7-
/** This property is deprecated in favor of <code>accountId</code> because of privacy changes. See the <a href="https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/">migration guide</a> for details. <br>The username of the user. */
12+
/**
13+
* @deprecated
14+
* This property is deprecated in favor of <code>accountId</code> because of privacy changes. See the <a
15+
* href="https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/">migration
16+
* guide</a> for details. <br>The username of the user.
17+
*/
818
name?: string;
919
/** The display name of the user. Depending on the user’s privacy setting, this may return an alternative value. */
1020
displayName?: string;
1121
/** Whether the user is active. */
1222
active?: boolean;
13-
/** The account ID of the user, which uniquely identifies the user across all Atlassian products. For example, <em>5b10ac8d82e05b22cc7d4ef5</em>. */
23+
/**
24+
* The account ID of the user, which uniquely identifies the user across all Atlassian products. For example,
25+
* <em>5b10ac8d82e05b22cc7d4ef5</em>.
26+
*/
1427
accountId?: string;
1528
/** Details of a user's avatars. */
1629
avatarUrls?: {

src/agile/models/boardBean.ts

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,30 @@ export interface BoardBean {
55
type?: string;
66
admins?: {
77
users?: {
8-
/** This property is deprecated in favor of <code>accountId</code> because of privacy changes. See the <a href="https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/">migration guide</a> for details. <br>The key of the user. */
8+
/**
9+
* @deprecated
10+
* This property is deprecated in favor of <code>accountId</code> because of privacy changes. See the <a
11+
* href="https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/">migration
12+
* guide</a> for details. <br>The key of the user.
13+
*/
914
key?: string;
1015
/** The URL of the user. */
1116
self?: string;
12-
/** This property is deprecated in favor of <code>accountId</code> because of privacy changes. See the <a href="https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/">migration guide</a> for details. <br>The username of the user. */
17+
/**
18+
* @deprecated
19+
* This property is deprecated in favor of <code>accountId</code> because of privacy changes. See the <a
20+
* href="https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/">migration
21+
* guide</a> for details. <br>The username of the user.
22+
*/
1323
name?: string;
1424
/** The display name of the user. Depending on the user’s privacy setting, this may return an alternative value. */
1525
displayName?: string;
1626
/** Whether the user is active. */
1727
active?: boolean;
18-
/** The account ID of the user, which uniquely identifies the user across all Atlassian products. For example, <em>5b10ac8d82e05b22cc7d4ef5</em>. */
28+
/**
29+
* The account ID of the user, which uniquely identifies the user across all Atlassian products. For example,
30+
* <em>5b10ac8d82e05b22cc7d4ef5</em>.
31+
*/
1932
accountId?: string;
2033
/** Details of a user's avatars. */
2134
avatarUrls?: {

src/agile/models/boardFeatureBean.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/** @deprecated Use *Feature* model instead. */
12
export interface BoardFeatureBean {
23
boardFeature?: string;
34
boardId?: number;

src/agile/models/boardFeatureResponseBean.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/** @deprecated Use *FeatureResponse* model instead. */
12
export interface BoardFeatureResponseBean {
23
features?: {
34
boardFeature?: string;

src/agile/models/boardFeatureToggleRequestBean.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/** @deprecated Use *FeatureToggleRequest* model instead. */
12
export interface BoardFeatureToggleRequestBean {
23
boardId?: number;
34
feature?: string;

0 commit comments

Comments
 (0)