Skip to content

Commit c76c93f

Browse files
committed
prettier fixes
1 parent fb8b505 commit c76c93f

File tree

184 files changed

+1755
-1729
lines changed

Some content is hidden

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

184 files changed

+1755
-1729
lines changed

package-lock.json

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

package.json

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@
3636
"doc": "typedoc --name \"Jira.js - Jira Cloud API library\" --out docs ./src/index.ts --plugin typedoc-plugin-extras --footerDate --footerTime --footerTypedocVersion --favicon https://svgshare.com/i/bHF.svg",
3737
"test": "npm run test:unit && npm run test:integration",
3838
"test:unit": "ava tests/unit --timeout=2m -с 8",
39-
"test:integration": "ava --timeout=2m --fail-fast --no-worker-threads -c 1 -s tests/integration/**/*.test.ts"
39+
"test:integration": "ava --timeout=2m --fail-fast --no-worker-threads -c 1 -s tests/integration/**/*.test.ts",
40+
"replacePermissions:version2": "grep -rl \"(#permissions)\" ./src/version2 | xargs sed -i '' 's/(#permissions)/(https:\\/\\/developer.atlassian.com\\/cloud\\/jira\\/platform\\/rest\\/v2\\/intro\\/#permissions)/g'",
41+
"replacePermissions:version3": "grep -rl \"(#permissions)\" ./src/version3 | xargs sed -i '' 's/(#permissions)/(https:\\/\\/developer.atlassian.com\\/cloud\\/jira\\/platform\\/rest\\/v3\\/intro\\/#permissions)/g'"
4042
},
4143
"ava": {
4244
"extensions": [
@@ -51,32 +53,32 @@
5153
}
5254
},
5355
"devDependencies": {
54-
"@swc-node/register": "^1.6.4",
55-
"@swc/helpers": "^0.5.0",
56+
"@swc-node/register": "^1.6.5",
57+
"@swc/helpers": "^0.5.1",
5658
"@types/express": "^4.17.17",
57-
"@types/node": "^18.15.11",
59+
"@types/node": "^18.16.3",
5860
"@types/oauth": "^0.9.1",
5961
"@types/sinon": "^10.0.14",
60-
"@typescript-eslint/eslint-plugin": "^5.59.0",
61-
"@typescript-eslint/parser": "^5.59.0",
62+
"@typescript-eslint/eslint-plugin": "^5.59.1",
63+
"@typescript-eslint/parser": "^5.59.1",
6264
"ava": "^5.2.0",
6365
"dotenv": "^16.0.3",
64-
"eslint": "^8.38.0",
66+
"eslint": "^8.39.0",
6567
"eslint-config-airbnb": "^19.0.4",
6668
"eslint-config-airbnb-typescript": "^17.0.0",
6769
"eslint-import-resolver-typescript": "^3.5.5",
6870
"eslint-plugin-import": "^2.27.5",
69-
"prettier": "^2.8.7",
71+
"prettier": "^2.8.8",
7072
"prettier-plugin-jsdoc": "^0.4.2",
71-
"sinon": "^15.0.3",
73+
"sinon": "^15.0.4",
7274
"ts-node": "^10.9.1",
73-
"typedoc": "^0.24.4",
75+
"typedoc": "^0.24.6",
7476
"typedoc-plugin-extras": "^2.3.3",
7577
"typescript": "^5.0.4"
7678
},
7779
"dependencies": {
7880
"atlassian-jwt": "^2.0.2",
79-
"axios": "^1.3.5",
81+
"axios": "^1.4.0",
8082
"form-data": "^4.0.0",
8183
"oauth": "^0.10.0",
8284
"tslib": "^2.5.0"

src/agile/backlog.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export class Backlog {
4242
*/
4343
async moveIssuesToBacklogForBoard<T = void>(
4444
parameters: Parameters.MoveIssuesToBacklogForBoard,
45-
callback: Callback<T>
45+
callback: Callback<T>,
4646
): Promise<void>;
4747
/**
4848
* Move issues to the backlog of a particular board (if they are already on that board). This operation is equivalent
@@ -51,7 +51,7 @@ export class Backlog {
5151
*/
5252
async moveIssuesToBacklogForBoard<T = void>(
5353
parameters: Parameters.MoveIssuesToBacklogForBoard,
54-
callback?: never
54+
callback?: never,
5555
): Promise<T>;
5656
async moveIssuesToBacklogForBoard<T = void>(
5757
parameters: Parameters.MoveIssuesToBacklogForBoard,

src/agile/board.ts

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export class Board {
1111
/** Returns all boards. This only includes boards that the user has permission to view. */
1212
async getAllBoards<T = Models.GetAllBoards>(
1313
parameters: Parameters.GetAllBoards | undefined,
14-
callback: Callback<T>
14+
callback: Callback<T>,
1515
): Promise<void>;
1616
/** Returns all boards. This only includes boards that the user has permission to view. */
1717
async getAllBoards<T = Models.GetAllBoards>(parameters?: Parameters.GetAllBoards, callback?: never): Promise<T>;
@@ -117,15 +117,15 @@ export class Board {
117117
*/
118118
async getBoardByFilterId<T = Models.GetBoardByFilterId>(
119119
parameters: Parameters.GetBoardByFilterId,
120-
callback: Callback<T>
120+
callback: Callback<T>,
121121
): Promise<void>;
122122
/**
123123
* Returns any boards which use the provided filter id. This method can be executed by users without a valid software
124124
* license in order to find which boards are using a particular filter.
125125
*/
126126
async getBoardByFilterId<T = Models.GetBoardByFilterId>(
127127
parameters: Parameters.GetBoardByFilterId,
128-
callback?: never
128+
callback?: never,
129129
): Promise<T>;
130130
async getBoardByFilterId<T = Models.GetBoardByFilterId>(
131131
parameters: Parameters.GetBoardByFilterId,
@@ -186,7 +186,7 @@ export class Board {
186186
*/
187187
async getIssuesForBacklog<T = Models.SearchResults>(
188188
parameters: Parameters.GetIssuesForBacklog,
189-
callback: Callback<T>
189+
callback: Callback<T>,
190190
): Promise<void>;
191191
/**
192192
* Returns all issues from the board's backlog, for the given board ID. This only includes issues that the user has
@@ -197,7 +197,7 @@ export class Board {
197197
*/
198198
async getIssuesForBacklog<T = Models.SearchResults>(
199199
parameters: Parameters.GetIssuesForBacklog,
200-
callback?: never
200+
callback?: never,
201201
): Promise<T>;
202202
async getIssuesForBacklog<T = Models.SearchResults>(
203203
parameters: Parameters.GetIssuesForBacklog,
@@ -242,7 +242,7 @@ export class Board {
242242
*/
243243
async getConfiguration<T = Models.GetConfiguration>(
244244
parameters: Parameters.GetConfiguration,
245-
callback: Callback<T>
245+
callback: Callback<T>,
246246
): Promise<void>;
247247
/**
248248
* Get the board configuration. The response contains the following fields:
@@ -267,7 +267,7 @@ export class Board {
267267
*/
268268
async getConfiguration<T = Models.GetConfiguration>(
269269
parameters: Parameters.GetConfiguration,
270-
callback?: never
270+
callback?: never,
271271
): Promise<T>;
272272
async getConfiguration<T = Models.GetConfiguration>(
273273
parameters: Parameters.GetConfiguration,
@@ -315,7 +315,7 @@ export class Board {
315315
*/
316316
async getIssuesWithoutEpicForBoard<T = Models.SearchResults>(
317317
parameters: Parameters.GetIssuesWithoutEpicForBoard,
318-
callback: Callback<T>
318+
callback: Callback<T>,
319319
): Promise<void>;
320320
/**
321321
* Returns all issues that do not belong to any epic on a board, for a given board ID. This only includes issues that
@@ -324,7 +324,7 @@ export class Board {
324324
*/
325325
async getIssuesWithoutEpicForBoard<T = Models.SearchResults>(
326326
parameters: Parameters.GetIssuesWithoutEpicForBoard,
327-
callback?: never
327+
callback?: never,
328328
): Promise<T>;
329329
async getIssuesWithoutEpicForBoard<T = Models.SearchResults>(
330330
parameters: Parameters.GetIssuesWithoutEpicForBoard,
@@ -353,7 +353,7 @@ export class Board {
353353
*/
354354
async getBoardIssuesForEpic<T = Models.SearchResults>(
355355
parameters: Parameters.GetBoardIssuesForEpic,
356-
callback: Callback<T>
356+
callback: Callback<T>,
357357
): Promise<void>;
358358
/**
359359
* Returns all issues that belong to an epic on the board, for the given epic ID and the board ID. This only includes
@@ -362,7 +362,7 @@ export class Board {
362362
*/
363363
async getBoardIssuesForEpic<T = Models.SearchResults>(
364364
parameters: Parameters.GetBoardIssuesForEpic,
365-
callback?: never
365+
callback?: never,
366366
): Promise<T>;
367367
async getBoardIssuesForEpic<T = Models.SearchResults>(
368368
parameters: Parameters.GetBoardIssuesForEpic,
@@ -386,11 +386,11 @@ export class Board {
386386

387387
async getFeaturesForBoard<T = Models.GetFeaturesForBoard>(
388388
parameters: Parameters.GetFeaturesForBoard,
389-
callback: Callback<T>
389+
callback: Callback<T>,
390390
): Promise<void>;
391391
async getFeaturesForBoard<T = Models.GetFeaturesForBoard>(
392392
parameters: Parameters.GetFeaturesForBoard,
393-
callback?: never
393+
callback?: never,
394394
): Promise<T>;
395395
async getFeaturesForBoard<T = Models.GetFeaturesForBoard>(
396396
parameters: Parameters.GetFeaturesForBoard,
@@ -406,7 +406,7 @@ export class Board {
406406

407407
async toggleFeatures<T = Models.ToggleFeatures>(
408408
parameters: Parameters.ToggleFeatures,
409-
callback: Callback<T>
409+
callback: Callback<T>,
410410
): Promise<void>;
411411
async toggleFeatures<T = Models.ToggleFeatures>(parameters: Parameters.ToggleFeatures, callback?: never): Promise<T>;
412412
async toggleFeatures<T = Models.ToggleFeatures>(
@@ -431,7 +431,7 @@ export class Board {
431431
*/
432432
async getIssuesForBoard<T = Models.SearchResults>(
433433
parameters: Parameters.GetIssuesForBoard,
434-
callback: Callback<T>
434+
callback: Callback<T>,
435435
): Promise<void>;
436436
/**
437437
* Returns all issues from a board, for a given board ID. This only includes issues that the user has permission to
@@ -442,7 +442,7 @@ export class Board {
442442
*/
443443
async getIssuesForBoard<T = Models.SearchResults>(
444444
parameters: Parameters.GetIssuesForBoard,
445-
callback?: never
445+
callback?: never,
446446
): Promise<T>;
447447
async getIssuesForBoard<T = Models.SearchResults>(
448448
parameters: Parameters.GetIssuesForBoard,
@@ -511,7 +511,7 @@ export class Board {
511511
*/
512512
async getProjects<T = Paginated<Models.Projects>>(
513513
parameters: Parameters.GetProjects,
514-
callback: Callback<T>
514+
callback: Callback<T>,
515515
): Promise<void>;
516516
/**
517517
* Returns all projects that are associated with the board, for the given board ID. If the user does not have
@@ -558,7 +558,7 @@ export class Board {
558558
*/
559559
async getProjectsFull<T = Models.Projects[]>(
560560
parameters: Parameters.GetProjectsFull,
561-
callback: Callback<T>
561+
callback: Callback<T>,
562562
): Promise<void>;
563563
/**
564564
* Returns all projects that are statically associated with the board, for the given board ID. Returned projects are
@@ -590,7 +590,7 @@ export class Board {
590590
*/
591591
async getBoardPropertyKeys<T = unknown>(
592592
parameters: Parameters.GetBoardPropertyKeys,
593-
callback: Callback<T>
593+
callback: Callback<T>,
594594
): Promise<void>;
595595
/**
596596
* Returns the keys of all properties for the board identified by the id. The user who retrieves the property keys is
@@ -682,12 +682,12 @@ export class Board {
682682
/** Returns all quick filters from a board, for a given board ID. */
683683
async getAllQuickFilters<T = Models.GetAllQuickFilters>(
684684
parameters: Parameters.GetAllQuickFilters,
685-
callback: Callback<T>
685+
callback: Callback<T>,
686686
): Promise<void>;
687687
/** Returns all quick filters from a board, for a given board ID. */
688688
async getAllQuickFilters<T = Models.GetAllQuickFilters>(
689689
parameters: Parameters.GetAllQuickFilters,
690-
callback?: never
690+
callback?: never,
691691
): Promise<T>;
692692
async getAllQuickFilters<T = Models.GetAllQuickFilters>(
693693
parameters: Parameters.GetAllQuickFilters,
@@ -711,7 +711,7 @@ export class Board {
711711
*/
712712
async getQuickFilter<T = Models.GetQuickFilter>(
713713
parameters: Parameters.GetQuickFilter,
714-
callback: Callback<T>
714+
callback: Callback<T>,
715715
): Promise<void>;
716716
/**
717717
* Returns the quick filter for a given quick filter ID. The quick filter will only be returned if the user can view
@@ -732,11 +732,11 @@ export class Board {
732732

733733
async getReportsForBoard<T = Models.GetReportsForBoard>(
734734
parameters: Parameters.GetReportsForBoard,
735-
callback: Callback<T>
735+
callback: Callback<T>,
736736
): Promise<void>;
737737
async getReportsForBoard<T = Models.GetReportsForBoard>(
738738
parameters: Parameters.GetReportsForBoard,
739-
callback?: never
739+
callback?: never,
740740
): Promise<T>;
741741
async getReportsForBoard<T = Models.GetReportsForBoard>(
742742
parameters: Parameters.GetReportsForBoard,
@@ -756,7 +756,7 @@ export class Board {
756756
*/
757757
async getAllSprints<T = Paginated<Models.Sprint>>(
758758
parameters: Parameters.GetAllSprints,
759-
callback: Callback<T>
759+
callback: Callback<T>,
760760
): Promise<void>;
761761
/**
762762
* Returns all sprints from a board, for a given board ID. This only includes sprints that the user has permission to
@@ -787,7 +787,7 @@ export class Board {
787787
*/
788788
async getBoardIssuesForSprint<T = unknown>(
789789
parameters: Parameters.GetBoardIssuesForSprint,
790-
callback: Callback<T>
790+
callback: Callback<T>,
791791
): Promise<void>;
792792
/**
793793
* Get all issues you have access to that belong to the sprint from the board. Issue returned from this resource
@@ -796,7 +796,7 @@ export class Board {
796796
*/
797797
async getBoardIssuesForSprint<T = unknown>(
798798
parameters: Parameters.GetBoardIssuesForSprint,
799-
callback?: never
799+
callback?: never,
800800
): Promise<T>;
801801
async getBoardIssuesForSprint<T = unknown>(
802802
parameters: Parameters.GetBoardIssuesForSprint,
@@ -826,7 +826,7 @@ export class Board {
826826
*/
827827
async getAllVersions<T = Paginated<Models.Version>>(
828828
parameters: Parameters.GetAllVersions,
829-
callback: Callback<T>
829+
callback: Callback<T>,
830830
): Promise<void>;
831831
/**
832832
* Returns all versions from a board, for a given board ID. This only includes versions that the user has permission
@@ -836,7 +836,7 @@ export class Board {
836836
*/
837837
async getAllVersions<T = Paginated<Models.Version>>(
838838
parameters: Parameters.GetAllVersions,
839-
callback?: never
839+
callback?: never,
840840
): Promise<T>;
841841
async getAllVersions<T = Paginated<Models.Version>>(
842842
parameters: Parameters.GetAllVersions,

src/agile/builds.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export class Builds {
2626
*/
2727
async submitBuilds<T = Models.SubmitBuilds>(
2828
parameters: Parameters.SubmitBuilds,
29-
callback: Callback<T>
29+
callback: Callback<T>,
3030
): Promise<void>;
3131
/**
3232
* Update / insert builds data.
@@ -82,7 +82,7 @@ export class Builds {
8282
*/
8383
async deleteBuildsByProperty<T = unknown>(
8484
parameters: Parameters.DeleteBuildsByProperty,
85-
callback: Callback<T>
85+
callback: Callback<T>,
8686
): Promise<void>;
8787
/**
8888
* Bulk delete all builds data that match the given request.
@@ -103,7 +103,7 @@ export class Builds {
103103
*/
104104
async deleteBuildsByProperty<T = unknown>(
105105
parameters: Parameters.DeleteBuildsByProperty,
106-
callback?: never
106+
callback?: never,
107107
): Promise<T>;
108108
async deleteBuildsByProperty<T = unknown>(
109109
parameters: Parameters.DeleteBuildsByProperty,
@@ -130,7 +130,7 @@ export class Builds {
130130
*/
131131
async getBuildByKey<T = Models.GetBuildByKey>(
132132
parameters: Parameters.GetBuildByKey,
133-
callback: Callback<T>
133+
callback: Callback<T>,
134134
): Promise<void>;
135135
/**
136136
* Retrieve the currently stored build data for the given `pipelineId` and `buildNumber` combination.

0 commit comments

Comments
 (0)