From a0e60044dd578b4c8589da387dc48a510e7a960c Mon Sep 17 00:00:00 2001 From: Vladislav Tupikin Date: Thu, 9 Mar 2023 21:07:20 +0400 Subject: [PATCH 01/44] v2 api --- package-lock.json | 5078 +++-------------- package.json | 26 +- src/version2/attachment.ts | 167 + src/version2/blogPost.ts | 236 + src/version2/children.ts | 86 + src/version2/comment.ts | 539 ++ src/version2/contentProperties.ts | 339 ++ src/version2/customContent.ts | 296 + src/version2/index.ts | 12 + src/version2/label.ts | 168 + src/version2/models/attachment.ts | 23 + src/version2/models/attachmentSortOrder.ts | 5 + src/version2/models/blogPost.ts | 19 + src/version2/models/blogPostCommentModel.ts | 16 + .../models/blogPostInlineCommentModel.ts | 0 src/version2/models/blogPostSortOrder.ts | 5 + src/version2/models/body.ts | 7 + src/version2/models/bodyRepresentation.ts | 2 + src/version2/models/bodyType.ts | 6 + src/version2/models/childCustomContent.ts | 13 + .../models/childCustomContentSortOrder.ts | 5 + src/version2/models/childPage.ts | 13 + src/version2/models/childPageSortOrder.ts | 5 + src/version2/models/childrenCommentModel.ts | 16 + src/version2/models/commentSortOrder.ts | 5 + src/version2/models/contentProperty.ts | 11 + .../models/contentPropertySortOrder.ts | 5 + src/version2/models/contentStatus.ts | 2 + .../models/createFooterCommentModel.ts | 17 + .../models/createInlineCommentModel.ts | 34 + src/version2/models/customContent.ts | 43 + src/version2/models/customContentBody.ts | 8 + .../models/customContentBodyRepresentation.ts | 2 + src/version2/models/detailedVersion.ts | 23 + src/version2/models/footerCommentModel.ts | 19 + .../models/getAttachmentContentProperties.ts | 5 + src/version2/models/getAttachmentLabels.ts | 5 + src/version2/models/getAttachmentVersions.ts | 5 + .../models/getBlogPostFooterComments.ts | 5 + .../models/getBlogPostInlineComments.ts | 5 + src/version2/models/getBlogPostLabels.ts | 5 + src/version2/models/getBlogPostVersions.ts | 5 + src/version2/models/getBlogPosts.ts | 5 + src/version2/models/getBlogPostsInSpace.ts | 5 + src/version2/models/getBlogpostAttachments.ts | 5 + .../models/getBlogpostContentProperties.ts | 5 + src/version2/models/getChildCustomContent.ts | 5 + src/version2/models/getChildPages.ts | 5 + .../models/getCommentContentProperties.ts | 5 + .../models/getCustomContentAttachments.ts | 5 + src/version2/models/getCustomContentByType.ts | 5 + .../getCustomContentByTypeInBlogPost.ts | 5 + .../models/getCustomContentByTypeInPage.ts | 5 + .../models/getCustomContentByTypeInSpace.ts | 5 + .../getCustomContentContentProperties.ts | 5 + src/version2/models/getCustomContentLabels.ts | 5 + .../models/getCustomContentVersions.ts | 5 + .../models/getFooterCommentChildren.ts | 5 + .../models/getInlineCommentChildren.ts | 5 + src/version2/models/getLabelBlogPosts.ts | 5 + src/version2/models/getLabelPages.ts | 5 + src/version2/models/getPageAttachments.ts | 5 + .../models/getPageContentProperties.ts | 5 + src/version2/models/getPageFooterComments.ts | 5 + src/version2/models/getPageInlineComments.ts | 5 + src/version2/models/getPageLabels.ts | 5 + src/version2/models/getPageVersions.ts | 5 + src/version2/models/getPages.ts | 5 + src/version2/models/getPagesInSpace.ts | 5 + src/version2/models/getSpaceProperties.ts | 5 + src/version2/models/getSpaces.ts | 5 + src/version2/models/getTasks.ts | 5 + src/version2/models/index.ts | 88 + .../models/inlineCommentChildrenModel.ts | 0 src/version2/models/inlineCommentModel.ts | 30 + .../models/inlineCommentProperties.ts | 1 + .../models/inlineCommentResolutionStatus.ts | 2 + src/version2/models/label.ts | 8 + src/version2/models/labelSortOrder.ts | 5 + .../onlyArchivedAndCurrentContentStatus.ts | 2 + src/version2/models/page.ts | 21 + src/version2/models/pageCommentModel.ts | 16 + src/version2/models/pageInlineCommentModel.ts | 0 src/version2/models/pageSortOrder.ts | 5 + .../models/primaryBodyRepresentation.ts | 5 + src/version2/models/space.ts | 17 + src/version2/models/spaceDescription.ts | 7 + .../spaceDescriptionBodyRepresentation.ts | 2 + src/version2/models/spaceProperty.ts | 22 + .../models/spacePropertyCreateRequest.ts | 6 + .../models/spacePropertyUpdateRequest.ts | 13 + src/version2/models/spaceSortOrder.ts | 5 + src/version2/models/spaceStatus.ts | 2 + src/version2/models/spaceType.ts | 2 + src/version2/models/task.ts | 31 + .../models/updateFooterCommentModel.ts | 15 + .../models/updateInlineCommentModel.ts | 21 + src/version2/models/version.ts | 15 + src/version2/models/versionSortOrder.ts | 5 + src/version2/page.ts | 220 + .../parameters/createFooterComment.ts | 3 + .../parameters/createInlineComment.ts | 3 + .../parameters/createSpaceProperty.ts | 6 + src/version2/parameters/deleteBlogPost.ts | 4 + .../parameters/deleteCustomContent.ts | 4 + .../parameters/deleteFooterComment.ts | 4 + .../parameters/deleteInlineComment.ts | 4 + src/version2/parameters/deletePage.ts | 4 + .../parameters/deleteSpacePropertyById.ts | 6 + src/version2/parameters/getAttachmentById.ts | 12 + .../getAttachmentContentProperties.ts | 18 + .../getAttachmentContentPropertiesById.ts | 6 + .../parameters/getAttachmentLabels.ts | 18 + .../parameters/getAttachmentVersionDetails.ts | 6 + .../parameters/getAttachmentVersions.ts | 19 + src/version2/parameters/getBlogPostById.ts | 19 + .../parameters/getBlogPostFooterComments.ts | 21 + .../parameters/getBlogPostInlineComments.ts | 21 + src/version2/parameters/getBlogPostLabels.ts | 18 + .../parameters/getBlogPostVersionDetails.ts | 6 + .../parameters/getBlogPostVersions.ts | 19 + src/version2/parameters/getBlogPosts.ts | 12 + .../parameters/getBlogPostsInSpace.ts | 14 + .../parameters/getBlogpostAttachments.ts | 20 + .../getBlogpostContentProperties.ts | 18 + .../getBlogpostContentPropertiesById.ts | 6 + .../parameters/getChildCustomContent.ts | 19 + src/version2/parameters/getChildPages.ts | 16 + .../parameters/getCommentContentProperties.ts | 18 + .../getCommentContentPropertiesById.ts | 6 + .../parameters/getCustomContentAttachments.ts | 20 + .../parameters/getCustomContentById.ts | 20 + .../parameters/getCustomContentByType.ts | 25 + .../getCustomContentByTypeInBlogPost.ts | 27 + .../getCustomContentByTypeInPage.ts | 27 + .../getCustomContentByTypeInSpace.ts | 27 + .../getCustomContentContentProperties.ts | 18 + .../getCustomContentContentPropertiesById.ts | 6 + .../parameters/getCustomContentLabels.ts | 18 + .../getCustomContentVersionDetails.ts | 6 + .../parameters/getCustomContentVersions.ts | 19 + .../parameters/getFooterCommentById.ts | 14 + .../parameters/getFooterCommentChildren.ts | 21 + .../getFooterCommentVersionDetails.ts | 6 + .../parameters/getInlineCommentById.ts | 14 + .../parameters/getInlineCommentChildren.ts | 21 + src/version2/parameters/getLabelBlogPosts.ts | 16 + src/version2/parameters/getLabelPages.ts | 16 + src/version2/parameters/getPageAttachments.ts | 20 + src/version2/parameters/getPageById.ts | 16 + .../parameters/getPageContentProperties.ts | 18 + .../getPageContentPropertiesById.ts | 6 + .../parameters/getPageFooterComments.ts | 21 + .../parameters/getPageInlineComments.ts | 21 + src/version2/parameters/getPageLabels.ts | 18 + .../parameters/getPageVersionDetails.ts | 6 + src/version2/parameters/getPageVersions.ts | 19 + src/version2/parameters/getPages.ts | 12 + src/version2/parameters/getPagesInSpace.ts | 14 + src/version2/parameters/getSpaceById.ts | 9 + src/version2/parameters/getSpaceProperties.ts | 19 + .../parameters/getSpacePropertyById.ts | 6 + src/version2/parameters/getSpaces.ts | 29 + src/version2/parameters/getTaskById.ts | 9 + src/version2/parameters/getTasks.ts | 60 + src/version2/parameters/index.ts | 71 + src/version2/parameters/updateBlogPost.ts | 7 + .../parameters/updateCustomContent.ts | 7 + .../parameters/updateFooterComment.ts | 6 + .../parameters/updateInlineComment.ts | 6 + src/version2/parameters/updatePage.ts | 4 + .../parameters/updateSpacePropertyById.ts | 8 + src/version2/space.ts | 74 + src/version2/spaceProperties.ts | 184 + src/version2/task.ts | 82 + src/version2/version.ts | 309 + 176 files changed, 5282 insertions(+), 4452 deletions(-) create mode 100644 src/version2/attachment.ts create mode 100644 src/version2/blogPost.ts create mode 100644 src/version2/children.ts create mode 100644 src/version2/comment.ts create mode 100644 src/version2/contentProperties.ts create mode 100644 src/version2/customContent.ts create mode 100644 src/version2/index.ts create mode 100644 src/version2/label.ts create mode 100644 src/version2/models/attachment.ts create mode 100644 src/version2/models/attachmentSortOrder.ts create mode 100644 src/version2/models/blogPost.ts create mode 100644 src/version2/models/blogPostCommentModel.ts create mode 100644 src/version2/models/blogPostInlineCommentModel.ts create mode 100644 src/version2/models/blogPostSortOrder.ts create mode 100644 src/version2/models/body.ts create mode 100644 src/version2/models/bodyRepresentation.ts create mode 100644 src/version2/models/bodyType.ts create mode 100644 src/version2/models/childCustomContent.ts create mode 100644 src/version2/models/childCustomContentSortOrder.ts create mode 100644 src/version2/models/childPage.ts create mode 100644 src/version2/models/childPageSortOrder.ts create mode 100644 src/version2/models/childrenCommentModel.ts create mode 100644 src/version2/models/commentSortOrder.ts create mode 100644 src/version2/models/contentProperty.ts create mode 100644 src/version2/models/contentPropertySortOrder.ts create mode 100644 src/version2/models/contentStatus.ts create mode 100644 src/version2/models/createFooterCommentModel.ts create mode 100644 src/version2/models/createInlineCommentModel.ts create mode 100644 src/version2/models/customContent.ts create mode 100644 src/version2/models/customContentBody.ts create mode 100644 src/version2/models/customContentBodyRepresentation.ts create mode 100644 src/version2/models/detailedVersion.ts create mode 100644 src/version2/models/footerCommentModel.ts create mode 100644 src/version2/models/getAttachmentContentProperties.ts create mode 100644 src/version2/models/getAttachmentLabels.ts create mode 100644 src/version2/models/getAttachmentVersions.ts create mode 100644 src/version2/models/getBlogPostFooterComments.ts create mode 100644 src/version2/models/getBlogPostInlineComments.ts create mode 100644 src/version2/models/getBlogPostLabels.ts create mode 100644 src/version2/models/getBlogPostVersions.ts create mode 100644 src/version2/models/getBlogPosts.ts create mode 100644 src/version2/models/getBlogPostsInSpace.ts create mode 100644 src/version2/models/getBlogpostAttachments.ts create mode 100644 src/version2/models/getBlogpostContentProperties.ts create mode 100644 src/version2/models/getChildCustomContent.ts create mode 100644 src/version2/models/getChildPages.ts create mode 100644 src/version2/models/getCommentContentProperties.ts create mode 100644 src/version2/models/getCustomContentAttachments.ts create mode 100644 src/version2/models/getCustomContentByType.ts create mode 100644 src/version2/models/getCustomContentByTypeInBlogPost.ts create mode 100644 src/version2/models/getCustomContentByTypeInPage.ts create mode 100644 src/version2/models/getCustomContentByTypeInSpace.ts create mode 100644 src/version2/models/getCustomContentContentProperties.ts create mode 100644 src/version2/models/getCustomContentLabels.ts create mode 100644 src/version2/models/getCustomContentVersions.ts create mode 100644 src/version2/models/getFooterCommentChildren.ts create mode 100644 src/version2/models/getInlineCommentChildren.ts create mode 100644 src/version2/models/getLabelBlogPosts.ts create mode 100644 src/version2/models/getLabelPages.ts create mode 100644 src/version2/models/getPageAttachments.ts create mode 100644 src/version2/models/getPageContentProperties.ts create mode 100644 src/version2/models/getPageFooterComments.ts create mode 100644 src/version2/models/getPageInlineComments.ts create mode 100644 src/version2/models/getPageLabels.ts create mode 100644 src/version2/models/getPageVersions.ts create mode 100644 src/version2/models/getPages.ts create mode 100644 src/version2/models/getPagesInSpace.ts create mode 100644 src/version2/models/getSpaceProperties.ts create mode 100644 src/version2/models/getSpaces.ts create mode 100644 src/version2/models/getTasks.ts create mode 100644 src/version2/models/index.ts create mode 100644 src/version2/models/inlineCommentChildrenModel.ts create mode 100644 src/version2/models/inlineCommentModel.ts create mode 100644 src/version2/models/inlineCommentProperties.ts create mode 100644 src/version2/models/inlineCommentResolutionStatus.ts create mode 100644 src/version2/models/label.ts create mode 100644 src/version2/models/labelSortOrder.ts create mode 100644 src/version2/models/onlyArchivedAndCurrentContentStatus.ts create mode 100644 src/version2/models/page.ts create mode 100644 src/version2/models/pageCommentModel.ts create mode 100644 src/version2/models/pageInlineCommentModel.ts create mode 100644 src/version2/models/pageSortOrder.ts create mode 100644 src/version2/models/primaryBodyRepresentation.ts create mode 100644 src/version2/models/space.ts create mode 100644 src/version2/models/spaceDescription.ts create mode 100644 src/version2/models/spaceDescriptionBodyRepresentation.ts create mode 100644 src/version2/models/spaceProperty.ts create mode 100644 src/version2/models/spacePropertyCreateRequest.ts create mode 100644 src/version2/models/spacePropertyUpdateRequest.ts create mode 100644 src/version2/models/spaceSortOrder.ts create mode 100644 src/version2/models/spaceStatus.ts create mode 100644 src/version2/models/spaceType.ts create mode 100644 src/version2/models/task.ts create mode 100644 src/version2/models/updateFooterCommentModel.ts create mode 100644 src/version2/models/updateInlineCommentModel.ts create mode 100644 src/version2/models/version.ts create mode 100644 src/version2/models/versionSortOrder.ts create mode 100644 src/version2/page.ts create mode 100644 src/version2/parameters/createFooterComment.ts create mode 100644 src/version2/parameters/createInlineComment.ts create mode 100644 src/version2/parameters/createSpaceProperty.ts create mode 100644 src/version2/parameters/deleteBlogPost.ts create mode 100644 src/version2/parameters/deleteCustomContent.ts create mode 100644 src/version2/parameters/deleteFooterComment.ts create mode 100644 src/version2/parameters/deleteInlineComment.ts create mode 100644 src/version2/parameters/deletePage.ts create mode 100644 src/version2/parameters/deleteSpacePropertyById.ts create mode 100644 src/version2/parameters/getAttachmentById.ts create mode 100644 src/version2/parameters/getAttachmentContentProperties.ts create mode 100644 src/version2/parameters/getAttachmentContentPropertiesById.ts create mode 100644 src/version2/parameters/getAttachmentLabels.ts create mode 100644 src/version2/parameters/getAttachmentVersionDetails.ts create mode 100644 src/version2/parameters/getAttachmentVersions.ts create mode 100644 src/version2/parameters/getBlogPostById.ts create mode 100644 src/version2/parameters/getBlogPostFooterComments.ts create mode 100644 src/version2/parameters/getBlogPostInlineComments.ts create mode 100644 src/version2/parameters/getBlogPostLabels.ts create mode 100644 src/version2/parameters/getBlogPostVersionDetails.ts create mode 100644 src/version2/parameters/getBlogPostVersions.ts create mode 100644 src/version2/parameters/getBlogPosts.ts create mode 100644 src/version2/parameters/getBlogPostsInSpace.ts create mode 100644 src/version2/parameters/getBlogpostAttachments.ts create mode 100644 src/version2/parameters/getBlogpostContentProperties.ts create mode 100644 src/version2/parameters/getBlogpostContentPropertiesById.ts create mode 100644 src/version2/parameters/getChildCustomContent.ts create mode 100644 src/version2/parameters/getChildPages.ts create mode 100644 src/version2/parameters/getCommentContentProperties.ts create mode 100644 src/version2/parameters/getCommentContentPropertiesById.ts create mode 100644 src/version2/parameters/getCustomContentAttachments.ts create mode 100644 src/version2/parameters/getCustomContentById.ts create mode 100644 src/version2/parameters/getCustomContentByType.ts create mode 100644 src/version2/parameters/getCustomContentByTypeInBlogPost.ts create mode 100644 src/version2/parameters/getCustomContentByTypeInPage.ts create mode 100644 src/version2/parameters/getCustomContentByTypeInSpace.ts create mode 100644 src/version2/parameters/getCustomContentContentProperties.ts create mode 100644 src/version2/parameters/getCustomContentContentPropertiesById.ts create mode 100644 src/version2/parameters/getCustomContentLabels.ts create mode 100644 src/version2/parameters/getCustomContentVersionDetails.ts create mode 100644 src/version2/parameters/getCustomContentVersions.ts create mode 100644 src/version2/parameters/getFooterCommentById.ts create mode 100644 src/version2/parameters/getFooterCommentChildren.ts create mode 100644 src/version2/parameters/getFooterCommentVersionDetails.ts create mode 100644 src/version2/parameters/getInlineCommentById.ts create mode 100644 src/version2/parameters/getInlineCommentChildren.ts create mode 100644 src/version2/parameters/getLabelBlogPosts.ts create mode 100644 src/version2/parameters/getLabelPages.ts create mode 100644 src/version2/parameters/getPageAttachments.ts create mode 100644 src/version2/parameters/getPageById.ts create mode 100644 src/version2/parameters/getPageContentProperties.ts create mode 100644 src/version2/parameters/getPageContentPropertiesById.ts create mode 100644 src/version2/parameters/getPageFooterComments.ts create mode 100644 src/version2/parameters/getPageInlineComments.ts create mode 100644 src/version2/parameters/getPageLabels.ts create mode 100644 src/version2/parameters/getPageVersionDetails.ts create mode 100644 src/version2/parameters/getPageVersions.ts create mode 100644 src/version2/parameters/getPages.ts create mode 100644 src/version2/parameters/getPagesInSpace.ts create mode 100644 src/version2/parameters/getSpaceById.ts create mode 100644 src/version2/parameters/getSpaceProperties.ts create mode 100644 src/version2/parameters/getSpacePropertyById.ts create mode 100644 src/version2/parameters/getSpaces.ts create mode 100644 src/version2/parameters/getTaskById.ts create mode 100644 src/version2/parameters/getTasks.ts create mode 100644 src/version2/parameters/index.ts create mode 100644 src/version2/parameters/updateBlogPost.ts create mode 100644 src/version2/parameters/updateCustomContent.ts create mode 100644 src/version2/parameters/updateFooterComment.ts create mode 100644 src/version2/parameters/updateInlineComment.ts create mode 100644 src/version2/parameters/updatePage.ts create mode 100644 src/version2/parameters/updateSpacePropertyById.ts create mode 100644 src/version2/space.ts create mode 100644 src/version2/spaceProperties.ts create mode 100644 src/version2/task.ts create mode 100644 src/version2/version.ts diff --git a/package-lock.json b/package-lock.json index 1b9fd647..7beea599 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,7 +1,7 @@ { "name": "confluence.js", "version": "1.6.2", - "lockfileVersion": 2, + "lockfileVersion": 3, "requires": true, "packages": { "": { @@ -13,34 +13,34 @@ "axios": "^0.27.2", "form-data": "^4.0.0", "oauth": "^0.10.0", - "tslib": "^2.4.1" + "tslib": "^2.5.0" }, "devDependencies": { - "@swc-node/register": "^1.5.4", - "@types/express": "^4.17.15", + "@swc-node/register": "1.5.4", + "@types/express": "^4.17.17", "@types/oauth": "^0.9.1", "@types/sinon": "^10.0.13", - "@typescript-eslint/eslint-plugin": "^5.48.0", - "@typescript-eslint/parser": "^5.48.0", - "ava": "^5.1.0", + "@typescript-eslint/eslint-plugin": "^5.54.1", + "@typescript-eslint/parser": "^5.54.1", + "ava": "^5.2.0", "dotenv": "^16.0.3", - "eslint": "^8.31.0", + "eslint": "^8.35.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", - "prettier": "^2.8.1", + "eslint-import-resolver-typescript": "^3.5.3", + "eslint-plugin-import": "^2.27.5", + "prettier": "^2.8.4", "prettier-plugin-jsdoc": "^0.4.2", "sinon": "^15.0.1", - "typedoc": "^0.23.23", - "typedoc-plugin-extras": "^2.3.1", - "typescript": "^4.9.4" + "typedoc": "^0.23.26", + "typedoc-plugin-extras": "^2.3.2", + "typescript": "^4.9.5" } }, "node_modules/@babel/runtime": { - "version": "7.20.7", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.20.7.tgz", - "integrity": "sha512-UF0tvkUtxwAgZ5W/KrkHf0Rn0fdnLDU9ScxBrEVNUprE/MzirjK4MJUX1/BVDv00Sv8cljtukVK1aky++X1SjQ==", + "version": "7.21.0", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.21.0.tgz", + "integrity": "sha512-xwII0//EObnq89Ji5AKYQaRYiW/nZ3llSv29d49IuxPhKbtJoLP+9QUUZ4nVragQVtaVGeZrpB+ZtG/Pdy/POw==", "dev": true, "peer": true, "dependencies": { @@ -50,24 +50,10 @@ "node": ">=6.9.0" } }, - "node_modules/@babel/runtime-corejs3": { - "version": "7.20.7", - "resolved": "https://registry.npmjs.org/@babel/runtime-corejs3/-/runtime-corejs3-7.20.7.tgz", - "integrity": "sha512-jr9lCZ4RbRQmCR28Q8U8Fu49zvFqLxTY9AMOUz+iyMohMoAgpEcVxY+wJNay99oXOpOcCTODkk70NDN2aaJEeg==", - "dev": true, - "peer": true, - "dependencies": { - "core-js-pure": "^3.25.1", - "regenerator-runtime": "^0.13.11" - }, - "engines": { - "node": ">=6.9.0" - } - }, "node_modules/@eslint/eslintrc": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-1.4.1.tgz", - "integrity": "sha512-XXrH9Uarn0stsyldqDYq8r++mROmWRI1xKMXa640Bb//SY1+ECYX6VzT6Lcx5frD0V30XieqJ0oX9I2Xj5aoMA==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.0.0.tgz", + "integrity": "sha512-fluIaaV+GyV24CCu/ggiHdV+j4RNh85yQnAYS/G2mZODZgGmmlrgCydjUcV3YvxCm9x8nMAfThsqTni4KiXT4A==", "dev": true, "dependencies": { "ajv": "^6.12.4", @@ -87,6 +73,15 @@ "url": "https://opencollective.com/eslint" } }, + "node_modules/@eslint/js": { + "version": "8.35.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.35.0.tgz", + "integrity": "sha512-JXdzbRiWclLVoD8sNUjR443VVlYqiYmDVT6rGUEIEHU5YJW0gaVZwV2xgM7D4arkvASqD0IlLUVjHiFuxaftRw==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, "node_modules/@humanwhocodes/config-array": { "version": "0.11.8", "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.8.tgz", @@ -211,9 +206,9 @@ "dev": true }, "node_modules/@swc-node/core": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/@swc-node/core/-/core-1.9.1.tgz", - "integrity": "sha512-Mh4T/PmQOpPtqw1BNvU38uWzsXbd5RJji17YBXnj7JDDE5KlTR9sSo2RKxWKDVtHbdcD1S+CtyZXA93aEWlfGQ==", + "version": "1.10.1", + "resolved": "https://registry.npmjs.org/@swc-node/core/-/core-1.10.1.tgz", + "integrity": "sha512-4aiqLb5Uz+zDt7oIMAtH69+l1BvKV3k7fMYNNLjgdSM7qmFwrpHwu+Ss9nOYPTCFlbKCUMP/70aD5Gt2skmJaw==", "dev": true, "engines": { "node": ">= 10" @@ -249,25 +244,22 @@ } }, "node_modules/@swc-node/sourcemap-support": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/@swc-node/sourcemap-support/-/sourcemap-support-0.2.2.tgz", - "integrity": "sha512-PA4p7nC5LwPdEVcQXFxMTpfvizYPeMoB55nIIx+yC3FiLnyPgC2hcpUitPy5h8RRGdCZ/Mvb2ryEcVYS8nI6YA==", + "version": "0.2.4", + "resolved": "https://registry.npmjs.org/@swc-node/sourcemap-support/-/sourcemap-support-0.2.4.tgz", + "integrity": "sha512-lAi8xXFpUPMaABCI0sFdKQL4owsjw6BPGjtrVJ90sRCUS4yNPMT0KbTeTWCxB8oQwYbbaQGOusd/+kavNMqJcg==", "dev": true, "dependencies": { "source-map-support": "^0.5.21", - "tslib": "^2.4.0" + "tslib": "^2.5.0" } }, "node_modules/@swc/core": { - "version": "1.3.24", - "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.3.24.tgz", - "integrity": "sha512-QMOTd0AgiUT3K1crxLRqd3gw0f3FC8hhH1vvlIlryvYqU4c+FJ/T2G4ZhMKLxQlZ/jX6Rhk0gKINZRBxy2GFyQ==", + "version": "1.3.38", + "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.3.38.tgz", + "integrity": "sha512-AiEVehRFws//AiiLx9DPDp1WDXt+yAoGD1kMYewhoF6QLdTz8AtYu6i8j/yAxk26L8xnegy0CDwcNnub9qenyQ==", "dev": true, "hasInstallScript": true, "peer": true, - "bin": { - "swcx": "run_swcx.js" - }, "engines": { "node": ">=10" }, @@ -276,22 +268,22 @@ "url": "https://opencollective.com/swc" }, "optionalDependencies": { - "@swc/core-darwin-arm64": "1.3.24", - "@swc/core-darwin-x64": "1.3.24", - "@swc/core-linux-arm-gnueabihf": "1.3.24", - "@swc/core-linux-arm64-gnu": "1.3.24", - "@swc/core-linux-arm64-musl": "1.3.24", - "@swc/core-linux-x64-gnu": "1.3.24", - "@swc/core-linux-x64-musl": "1.3.24", - "@swc/core-win32-arm64-msvc": "1.3.24", - "@swc/core-win32-ia32-msvc": "1.3.24", - "@swc/core-win32-x64-msvc": "1.3.24" + "@swc/core-darwin-arm64": "1.3.38", + "@swc/core-darwin-x64": "1.3.38", + "@swc/core-linux-arm-gnueabihf": "1.3.38", + "@swc/core-linux-arm64-gnu": "1.3.38", + "@swc/core-linux-arm64-musl": "1.3.38", + "@swc/core-linux-x64-gnu": "1.3.38", + "@swc/core-linux-x64-musl": "1.3.38", + "@swc/core-win32-arm64-msvc": "1.3.38", + "@swc/core-win32-ia32-msvc": "1.3.38", + "@swc/core-win32-x64-msvc": "1.3.38" } }, "node_modules/@swc/core-darwin-arm64": { - "version": "1.3.24", - "resolved": "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.3.24.tgz", - "integrity": "sha512-rR+9UpWm+fGXcipsjCst2hIL1GYIbo0YTLhJZWdIpQD6KRHHJMFXiydMgQQkDj2Ml7HpqUVgxj6m4ZWYL8b0OA==", + "version": "1.3.38", + "resolved": "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.3.38.tgz", + "integrity": "sha512-4ZTJJ/cR0EsXW5UxFCifZoGfzQ07a8s4ayt1nLvLQ5QoB1GTAf9zsACpvWG8e7cmCR0L76R5xt8uJuyr+noIXA==", "cpu": [ "arm64" ], @@ -306,9 +298,9 @@ } }, "node_modules/@swc/core-darwin-x64": { - "version": "1.3.24", - "resolved": "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.3.24.tgz", - "integrity": "sha512-px+5vkGtgPH0m3FkkTBHynlRdS5rRz+lK+wiXIuBZFJSySWFl6RkKbvwkD+sf0MpazQlqwlv/rTOGJBw6oDffg==", + "version": "1.3.38", + "resolved": "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.3.38.tgz", + "integrity": "sha512-Kim727rNo4Dl8kk0CR8aJQe4zFFtsT1TZGlNrNMUgN1WC3CRX7dLZ6ZJi/VVcTG1cbHp5Fp3mUzwHsMxEh87Mg==", "cpu": [ "x64" ], @@ -323,9 +315,9 @@ } }, "node_modules/@swc/core-linux-arm-gnueabihf": { - "version": "1.3.24", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.3.24.tgz", - "integrity": "sha512-jLs8ZOdTV4UW4J12E143QJ4mOMONQtqgAnuhBbRuWFzQ3ny1dfoC3P1jNWAJ2Xi59XdxAIXn0PggPNH4Kh34kw==", + "version": "1.3.38", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.3.38.tgz", + "integrity": "sha512-yaRdnPNU2enlJDRcIMvYVSyodY+Amhf5QuXdUbAj6rkDD6wUs/s9C6yPYrFDmoTltrG+nBv72mUZj+R46wVfSw==", "cpu": [ "arm" ], @@ -340,9 +332,9 @@ } }, "node_modules/@swc/core-linux-arm64-gnu": { - "version": "1.3.24", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.3.24.tgz", - "integrity": "sha512-A/v0h70BekrwGpp1DlzIFGcHQ3QQ2PexXcnnuIBZeMc9gNmHlcZmg3EcwAnaUDiokhNuSUFA/wV94yk1OqmSkw==", + "version": "1.3.38", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.3.38.tgz", + "integrity": "sha512-iNY1HqKo/wBSu3QOGBUlZaLdBP/EHcwNjBAqIzpb8J64q2jEN02RizqVW0mDxyXktJ3lxr3g7VW9uqklMeXbjQ==", "cpu": [ "arm64" ], @@ -357,9 +349,9 @@ } }, "node_modules/@swc/core-linux-arm64-musl": { - "version": "1.3.24", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.3.24.tgz", - "integrity": "sha512-pbc9eArWPTiMrbpS/pJo0IiQNAKAQBcBIDjWBGP1tcw2iDXYLw4bruwz9kI/VjakbshWb8MoE4T5ClkeuULvSw==", + "version": "1.3.38", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.3.38.tgz", + "integrity": "sha512-LJCFgLZoPRkPCPmux+Q5ctgXRp6AsWhvWuY61bh5bIPBDlaG9pZk94DeHyvtiwT0syhTtXb2LieBOx6NqN3zeA==", "cpu": [ "arm64" ], @@ -374,9 +366,9 @@ } }, "node_modules/@swc/core-linux-x64-gnu": { - "version": "1.3.24", - "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.3.24.tgz", - "integrity": "sha512-pP5pOLlY1xd352qo7rTlpVPUI9/9VhOd4b3Lk+LzfZDq9bTL2NDlGfyrPiwa5DGHMSzrugH56K2J68eutkxYVA==", + "version": "1.3.38", + "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.3.38.tgz", + "integrity": "sha512-hRQGRIWHmv2PvKQM/mMV45mVXckM2+xLB8TYLLgUG66mmtyGTUJPyxjnJkbI86WNGqo18k+lAuMG2mn6QmzYwQ==", "cpu": [ "x64" ], @@ -391,9 +383,9 @@ } }, "node_modules/@swc/core-linux-x64-musl": { - "version": "1.3.24", - "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.3.24.tgz", - "integrity": "sha512-phNbP7zGp+Wcyxq1Qxlpe5KkxO7WLT2kVQUC7aDFGlVdCr+xdXsfH1MzheHtnr0kqTVQX1aiM8XXXHfFxR0oNA==", + "version": "1.3.38", + "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.3.38.tgz", + "integrity": "sha512-PTYSqtsIfPHLKDDNbueI5e0sc130vyHRiFOeeC6qqzA2FAiVvIxuvXHLr0soPvKAR1WyhtYmFB9QarcctemL2w==", "cpu": [ "x64" ], @@ -408,9 +400,9 @@ } }, "node_modules/@swc/core-win32-arm64-msvc": { - "version": "1.3.24", - "resolved": "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.3.24.tgz", - "integrity": "sha512-qhbiJTWAOqyR+K9xnGmCkOWSz2EmWpDBstEJCEOTc6FZiEdbiTscDmqTcMbCKaTHGu8t+6erVA4t65/Eg6uWPA==", + "version": "1.3.38", + "resolved": "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.3.38.tgz", + "integrity": "sha512-9lHfs5TPNs+QdkyZFhZledSmzBEbqml/J1rqPSb9Fy8zB6QlspixE6OLZ3nTlUOdoGWkcTTdrOn77Sd7YGf1AA==", "cpu": [ "arm64" ], @@ -425,9 +417,9 @@ } }, "node_modules/@swc/core-win32-ia32-msvc": { - "version": "1.3.24", - "resolved": "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.3.24.tgz", - "integrity": "sha512-JfghIlscE4Rz+Lc08lSoDh+R0cWxrISed5biogFfE6vZqhaDnw3E5Qshqw7O3pIaiq8L2u1nmzuyP581ZmpbRA==", + "version": "1.3.38", + "resolved": "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.3.38.tgz", + "integrity": "sha512-SbL6pfA2lqvDKnwTHwOfKWvfHAdcbAwJS4dBkFidr7BiPTgI5Uk8wAPcRb8mBECpmIa9yFo+N0cAFRvMnf+cNw==", "cpu": [ "ia32" ], @@ -442,9 +434,9 @@ } }, "node_modules/@swc/core-win32-x64-msvc": { - "version": "1.3.24", - "resolved": "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.3.24.tgz", - "integrity": "sha512-3AmJRr0hwciwDBbzUNqaftvppzS8v9X/iv/Wl7YaVLBVpPfQvaZzfqLycvNMGLZb5vIKXR/u58txg3dRBGsJtw==", + "version": "1.3.38", + "resolved": "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.3.38.tgz", + "integrity": "sha512-UFveLrL6eGvViOD8OVqUQa6QoQwdqwRvLtL5elF304OT8eCPZa8BhuXnWk25X8UcOyns8gFcb8Fhp3oaLi/Rlw==", "cpu": [ "x64" ], @@ -487,21 +479,21 @@ } }, "node_modules/@types/express": { - "version": "4.17.15", - "resolved": "https://registry.npmjs.org/@types/express/-/express-4.17.15.tgz", - "integrity": "sha512-Yv0k4bXGOH+8a+7bELd2PqHQsuiANB+A8a4gnQrkRWzrkKlb6KHaVvyXhqs04sVW/OWlbPyYxRgYlIXLfrufMQ==", + "version": "4.17.17", + "resolved": "https://registry.npmjs.org/@types/express/-/express-4.17.17.tgz", + "integrity": "sha512-Q4FmmuLGBG58btUnfS1c1r/NQdlp3DMfGDGig8WhfpA2YRUtEkxAjkZb0yvplJGYdF1fsQ81iMDcH24sSCNC/Q==", "dev": true, "dependencies": { "@types/body-parser": "*", - "@types/express-serve-static-core": "^4.17.31", + "@types/express-serve-static-core": "^4.17.33", "@types/qs": "*", "@types/serve-static": "*" } }, "node_modules/@types/express-serve-static-core": { - "version": "4.17.32", - "resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-4.17.32.tgz", - "integrity": "sha512-aI5h/VOkxOF2Z1saPy0Zsxs5avets/iaiAJYznQFm5By/pamU31xWKL//epiF4OfUA2qTOc9PV6tCUjhO8wlZA==", + "version": "4.17.33", + "resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-4.17.33.tgz", + "integrity": "sha512-TPBqmR/HRYI3eC2E5hmiivIzv+bidAfXofM+sbonAGvyDhySGw9/PQZFt2BLOrjUUR++4eJVpx6KnLQK1Fk9tA==", "dev": true, "dependencies": { "@types/node": "*", @@ -543,9 +535,9 @@ "dev": true }, "node_modules/@types/node": { - "version": "18.11.18", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.11.18.tgz", - "integrity": "sha512-DHQpWGjyQKSHj3ebjFI/wRKcqQcdR+MoFBygntYOZytCqNfkd2ZC4ARDJ2DQqhjH5p85Nnd3jhUJIXrszFX/JA==", + "version": "18.14.6", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.14.6.tgz", + "integrity": "sha512-93+VvleD3mXwlLI/xASjw0FzKcwzl3OdTCzm1LaRfqgS21gfFtK3zDXM5Op9TeeMsJVOaJ2VRDpT9q4Y3d0AvA==", "dev": true }, "node_modules/@types/oauth": { @@ -576,9 +568,9 @@ "dev": true }, "node_modules/@types/serve-static": { - "version": "1.15.0", - "resolved": "https://registry.npmjs.org/@types/serve-static/-/serve-static-1.15.0.tgz", - "integrity": "sha512-z5xyF6uh8CbjAu9760KDKsH2FcDxZ2tFCsA4HIMWE6IkiYMXfVoa+4f9KX+FN0ZLsaMw1WNG2ETLA6N+/YA+cg==", + "version": "1.15.1", + "resolved": "https://registry.npmjs.org/@types/serve-static/-/serve-static-1.15.1.tgz", + "integrity": "sha512-NUo5XNiAdULrJENtJXZZ3fHtfMolzZwczzBbnAeBbqBwG+LaG6YaJtuwzwGSQZ2wsCrxjEhNNjAkKigy3n8teQ==", "dev": true, "dependencies": { "@types/mime": "*", @@ -607,15 +599,16 @@ "dev": true }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "5.48.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.48.0.tgz", - "integrity": "sha512-SVLafp0NXpoJY7ut6VFVUU9I+YeFsDzeQwtK0WZ+xbRN3mtxJ08je+6Oi2N89qDn087COdO0u3blKZNv9VetRQ==", + "version": "5.54.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.54.1.tgz", + "integrity": "sha512-a2RQAkosH3d3ZIV08s3DcL/mcGc2M/UC528VkPULFxR9VnVPT8pBu0IyBAJJmVsCmhVfwQX1v6q+QGnmSe1bew==", "dev": true, "dependencies": { - "@typescript-eslint/scope-manager": "5.48.0", - "@typescript-eslint/type-utils": "5.48.0", - "@typescript-eslint/utils": "5.48.0", + "@typescript-eslint/scope-manager": "5.54.1", + "@typescript-eslint/type-utils": "5.54.1", + "@typescript-eslint/utils": "5.54.1", "debug": "^4.3.4", + "grapheme-splitter": "^1.0.4", "ignore": "^5.2.0", "natural-compare-lite": "^1.4.0", "regexpp": "^3.2.0", @@ -640,14 +633,14 @@ } }, "node_modules/@typescript-eslint/parser": { - "version": "5.48.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.48.0.tgz", - "integrity": "sha512-1mxNA8qfgxX8kBvRDIHEzrRGrKHQfQlbW6iHyfHYS0Q4X1af+S6mkLNtgCOsGVl8+/LUPrqdHMssAemkrQ01qg==", + "version": "5.54.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.54.1.tgz", + "integrity": "sha512-8zaIXJp/nG9Ff9vQNh7TI+C3nA6q6iIsGJ4B4L6MhZ7mHnTMR4YP5vp2xydmFXIy8rpyIVbNAG44871LMt6ujg==", "dev": true, "dependencies": { - "@typescript-eslint/scope-manager": "5.48.0", - "@typescript-eslint/types": "5.48.0", - "@typescript-eslint/typescript-estree": "5.48.0", + "@typescript-eslint/scope-manager": "5.54.1", + "@typescript-eslint/types": "5.54.1", + "@typescript-eslint/typescript-estree": "5.54.1", "debug": "^4.3.4" }, "engines": { @@ -667,13 +660,13 @@ } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "5.48.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.48.0.tgz", - "integrity": "sha512-0AA4LviDtVtZqlyUQnZMVHydDATpD9SAX/RC5qh6cBd3xmyWvmXYF+WT1oOmxkeMnWDlUVTwdODeucUnjz3gow==", + "version": "5.54.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.54.1.tgz", + "integrity": "sha512-zWKuGliXxvuxyM71UA/EcPxaviw39dB2504LqAmFDjmkpO8qNLHcmzlh6pbHs1h/7YQ9bnsO8CCcYCSA8sykUg==", "dev": true, "dependencies": { - "@typescript-eslint/types": "5.48.0", - "@typescript-eslint/visitor-keys": "5.48.0" + "@typescript-eslint/types": "5.54.1", + "@typescript-eslint/visitor-keys": "5.54.1" }, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" @@ -684,13 +677,13 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "5.48.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.48.0.tgz", - "integrity": "sha512-vbtPO5sJyFjtHkGlGK4Sthmta0Bbls4Onv0bEqOGm7hP9h8UpRsHJwsrCiWtCUndTRNQO/qe6Ijz9rnT/DB+7g==", + "version": "5.54.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.54.1.tgz", + "integrity": "sha512-WREHsTz0GqVYLIbzIZYbmUUr95DKEKIXZNH57W3s+4bVnuF1TKe2jH8ZNH8rO1CeMY3U4j4UQeqPNkHMiGem3g==", "dev": true, "dependencies": { - "@typescript-eslint/typescript-estree": "5.48.0", - "@typescript-eslint/utils": "5.48.0", + "@typescript-eslint/typescript-estree": "5.54.1", + "@typescript-eslint/utils": "5.54.1", "debug": "^4.3.4", "tsutils": "^3.21.0" }, @@ -711,9 +704,9 @@ } }, "node_modules/@typescript-eslint/types": { - "version": "5.48.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.48.0.tgz", - "integrity": "sha512-UTe67B0Ypius0fnEE518NB2N8gGutIlTojeTg4nt0GQvikReVkurqxd2LvYa9q9M5MQ6rtpNyWTBxdscw40Xhw==", + "version": "5.54.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.54.1.tgz", + "integrity": "sha512-G9+1vVazrfAfbtmCapJX8jRo2E4MDXxgm/IMOF4oGh3kq7XuK3JRkOg6y2Qu1VsTRmWETyTkWt1wxy7X7/yLkw==", "dev": true, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" @@ -724,13 +717,13 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "5.48.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.48.0.tgz", - "integrity": "sha512-7pjd94vvIjI1zTz6aq/5wwE/YrfIyEPLtGJmRfyNR9NYIW+rOvzzUv3Cmq2hRKpvt6e9vpvPUQ7puzX7VSmsEw==", + "version": "5.54.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.54.1.tgz", + "integrity": "sha512-bjK5t+S6ffHnVwA0qRPTZrxKSaFYocwFIkZx5k7pvWfsB1I57pO/0M0Skatzzw1sCkjJ83AfGTL0oFIFiDX3bg==", "dev": true, "dependencies": { - "@typescript-eslint/types": "5.48.0", - "@typescript-eslint/visitor-keys": "5.48.0", + "@typescript-eslint/types": "5.54.1", + "@typescript-eslint/visitor-keys": "5.54.1", "debug": "^4.3.4", "globby": "^11.1.0", "is-glob": "^4.0.3", @@ -751,16 +744,16 @@ } }, "node_modules/@typescript-eslint/utils": { - "version": "5.48.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.48.0.tgz", - "integrity": "sha512-x2jrMcPaMfsHRRIkL+x96++xdzvrdBCnYRd5QiW5Wgo1OB4kDYPbC1XjWP/TNqlfK93K/lUL92erq5zPLgFScQ==", + "version": "5.54.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.54.1.tgz", + "integrity": "sha512-IY5dyQM8XD1zfDe5X8jegX6r2EVU5o/WJnLu/znLPWCBF7KNGC+adacXnt5jEYS9JixDcoccI6CvE4RCjHMzCQ==", "dev": true, "dependencies": { "@types/json-schema": "^7.0.9", "@types/semver": "^7.3.12", - "@typescript-eslint/scope-manager": "5.48.0", - "@typescript-eslint/types": "5.48.0", - "@typescript-eslint/typescript-estree": "5.48.0", + "@typescript-eslint/scope-manager": "5.54.1", + "@typescript-eslint/types": "5.54.1", + "@typescript-eslint/typescript-estree": "5.54.1", "eslint-scope": "^5.1.1", "eslint-utils": "^3.0.0", "semver": "^7.3.7" @@ -777,12 +770,12 @@ } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "5.48.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.48.0.tgz", - "integrity": "sha512-5motVPz5EgxQ0bHjut3chzBkJ3Z3sheYVcSwS5BpHZpLqSptSmELNtGixmgj65+rIfhvtQTz5i9OP2vtzdDH7Q==", + "version": "5.54.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.54.1.tgz", + "integrity": "sha512-q8iSoHTgwCfgcRJ2l2x+xCbu8nBlRAlsQ33k24Adj8eoVBE0f8dUeI+bAa8F84Mv05UGbAx57g2zrRsYIooqQg==", "dev": true, "dependencies": { - "@typescript-eslint/types": "5.48.0", + "@typescript-eslint/types": "5.54.1", "eslint-visitor-keys": "^3.3.0" }, "engines": { @@ -794,9 +787,9 @@ } }, "node_modules/acorn": { - "version": "8.8.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.1.tgz", - "integrity": "sha512-7zFpHzhnqYKrkYdUjF1HI1bzd0VygEGX8lFk4k5zVMqHEoES+P+7TKI+EvLO9WVMJ8eekdO0aDEK044xTXwPPA==", + "version": "8.8.2", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz", + "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==", "dev": true, "bin": { "acorn": "bin/acorn" @@ -867,6 +860,12 @@ "url": "https://github.com/chalk/ansi-regex?sponsor=1" } }, + "node_modules/ansi-sequence-parser": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/ansi-sequence-parser/-/ansi-sequence-parser-1.1.0.tgz", + "integrity": "sha512-lEm8mt52to2fT8GhciPCGeCXACSz2UwIN4X2e2LJSnZ5uAbn2/dsYdOmUXq0AtWS5cpAupysIneExOgH0Vd2TQ==", + "dev": true + }, "node_modules/ansi-styles": { "version": "6.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", @@ -899,17 +898,13 @@ "dev": true }, "node_modules/aria-query": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-4.2.2.tgz", - "integrity": "sha512-o/HelwhuKpTj/frsOsbNLNgnNGVIFsVP/SW2BSF14gVl7kAfMOJ6/8wUAUvG1R1NHKrfG+2sHZTu0yauT1qBrA==", + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.1.3.tgz", + "integrity": "sha512-R5iJ5lkuHybztUfuOAznmboyjWq8O6sqNqtK7CLOqdydi54VNbORp49mb14KbWgG1QD3JFO9hJdZ+y4KutfdOQ==", "dev": true, "peer": true, "dependencies": { - "@babel/runtime": "^7.10.2", - "@babel/runtime-corejs3": "^7.10.2" - }, - "engines": { - "node": ">=6.0" + "deep-equal": "^2.0.5" } }, "node_modules/array-find-index": { @@ -972,7 +967,6 @@ "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.1.tgz", "integrity": "sha512-8UGn9O1FDVvMNB0UlLv4voxRMze7+FpHyF5mSMRjWHUMlpoDViniy05870VlxhfgTnLbpuwTzvD76MTtWxB/mQ==", "dev": true, - "peer": true, "dependencies": { "call-bind": "^1.0.2", "define-properties": "^1.1.4", @@ -1046,9 +1040,9 @@ } }, "node_modules/ava": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/ava/-/ava-5.1.0.tgz", - "integrity": "sha512-e5VFrSQ0WBPyZJWRXVrO7RFOizFeNM0t2PORwrPvWtApgkORI6cvGnY3GX1G+lzpd0HjqNx5Jus22AhxVnUMNA==", + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ava/-/ava-5.2.0.tgz", + "integrity": "sha512-W8yxFXJr/P68JP55eMpQIa6AiXhCX3VeuajM8nolyWNExcMDD6rnIWKTjw0B/+GkFHBIaN6Jd0LtcMThcoqVfg==", "dev": true, "dependencies": { "acorn": "^8.8.1", @@ -1058,10 +1052,10 @@ "arrify": "^3.0.0", "callsites": "^4.0.0", "cbor": "^8.1.0", - "chalk": "^5.1.2", + "chalk": "^5.2.0", "chokidar": "^3.5.3", "chunkd": "^2.0.1", - "ci-info": "^3.6.1", + "ci-info": "^3.7.1", "ci-parallel-vars": "^1.0.1", "clean-yaml-object": "^0.1.0", "cli-truncate": "^3.1.0", @@ -1073,7 +1067,7 @@ "del": "^7.0.0", "emittery": "^1.0.1", "figures": "^5.0.0", - "globby": "^13.1.2", + "globby": "^13.1.3", "ignore-by-default": "^2.1.0", "indent-string": "^5.0.0", "is-error": "^2.2.2", @@ -1143,10 +1137,22 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/available-typed-arrays": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz", + "integrity": "sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/axe-core": { - "version": "4.6.1", - "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.6.1.tgz", - "integrity": "sha512-lCZN5XRuOnpG4bpMq8v0khrWtUOn+i8lZSb6wHZH56ZfbIEv6XwJV84AAueh9/zi7qPVJ/E4yz6fmsiyOmXR4w==", + "version": "4.6.3", + "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.6.3.tgz", + "integrity": "sha512-/BQzOX780JhsxDnPpH4ZiyrJAzcd8AfzFPkv+89veFSr1rcMjuq2JDCwypKaPeB6ljHp9KjXhPpjgCvQlWYuqg==", "dev": true, "peer": true, "engines": { @@ -1163,11 +1169,14 @@ } }, "node_modules/axobject-query": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-2.2.0.tgz", - "integrity": "sha512-Td525n+iPOOyUQIeBfcASuG6uJsDOITl7Mds5gFyerkWiX7qhUTdYUBlSgNMyVqtSJqwpt1kXGLdUt6SykLMRA==", + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-3.1.1.tgz", + "integrity": "sha512-goKlv8DZrK9hUh975fnHzhNIO4jUnFCfv/dszV5VwUGDFjI6vQ2VwoyjYjYNEbBE8AH87TduWP5uyDR1D+Iteg==", "dev": true, - "peer": true + "peer": true, + "dependencies": { + "deep-equal": "^2.0.5" + } }, "node_modules/balanced-match": { "version": "1.0.2", @@ -1317,9 +1326,9 @@ "dev": true }, "node_modules/ci-info": { - "version": "3.7.1", - "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.7.1.tgz", - "integrity": "sha512-4jYS4MOAaCIStSRwiuxc4B8MYhIe676yO1sYGzARnjXkWpmzZMMYxY6zu8WYWDhSuth5zhrQ1rhNSibyyvv4/w==", + "version": "3.8.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.8.0.tgz", + "integrity": "sha512-eXTggHWSooYhq49F2opQhuHWgzucfF2YgODK4e1566GQs5BIfP30B0oenwBJHfWxAs2fyPB1s7Mg949zLf61Yw==", "dev": true, "funding": [ { @@ -1555,18 +1564,6 @@ "node": "^12.20.0 || ^14.13.1 || >=16.0.0" } }, - "node_modules/core-js-pure": { - "version": "3.27.1", - "resolved": "https://registry.npmjs.org/core-js-pure/-/core-js-pure-3.27.1.tgz", - "integrity": "sha512-BS2NHgwwUppfeoqOXqi08mUqS5FiZpuRuJJpKsaME7kJz0xxuk0xkhDdfMIlP/zLa80krBqss1LtD7f889heAw==", - "dev": true, - "hasInstallScript": true, - "peer": true, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/core-js" - } - }, "node_modules/cross-spawn": { "version": "7.0.3", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", @@ -1648,6 +1645,35 @@ "url": "https://github.com/sponsors/wooorm" } }, + "node_modules/deep-equal": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/deep-equal/-/deep-equal-2.2.0.tgz", + "integrity": "sha512-RdpzE0Hv4lhowpIUKKMJfeH6C1pXdtT1/it80ubgWqwI3qpuxUBpC1S4hnHg+zjnuOoDkzUtUCEEkG+XG5l3Mw==", + "dev": true, + "peer": true, + "dependencies": { + "call-bind": "^1.0.2", + "es-get-iterator": "^1.1.2", + "get-intrinsic": "^1.1.3", + "is-arguments": "^1.1.1", + "is-array-buffer": "^3.0.1", + "is-date-object": "^1.0.5", + "is-regex": "^1.1.4", + "is-shared-array-buffer": "^1.0.2", + "isarray": "^2.0.5", + "object-is": "^1.1.5", + "object-keys": "^1.1.1", + "object.assign": "^4.1.4", + "regexp.prototype.flags": "^1.4.3", + "side-channel": "^1.0.4", + "which-boxed-primitive": "^1.0.2", + "which-collection": "^1.0.1", + "which-typed-array": "^1.1.9" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/deep-is": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", @@ -1664,9 +1690,9 @@ } }, "node_modules/define-properties": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.4.tgz", - "integrity": "sha512-uckOqKcfaVvtBdsVkdPv3XjveQJsNQqmhXgRi8uhvWWuPYZCNlzT8qAyblUgNoXdHdjMTzAqeGjAoli8f+bzPA==", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.0.tgz", + "integrity": "sha512-xvqAVKGfT1+UAvPwKTVw/njhdQ8ZhXK4lI0bCIuCMrp2up9nPnaDftrLtmpTazqd1o+UY4zgzU+avtMbDP+ldA==", "dev": true, "dependencies": { "has-property-descriptors": "^1.0.0", @@ -1829,27 +1855,33 @@ } }, "node_modules/es-abstract": { - "version": "1.20.5", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.20.5.tgz", - "integrity": "sha512-7h8MM2EQhsCA7pU/Nv78qOXFpD8Rhqd12gYiSJVkrH9+e8VuA8JlPJK/hQjjlLv6pJvx/z1iRFKzYb0XT/RuAQ==", + "version": "1.21.1", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.21.1.tgz", + "integrity": "sha512-QudMsPOz86xYz/1dG1OuGBKOELjCh99IIWHLzy5znUB6j8xG2yMA7bfTV86VSqKF+Y/H08vQPR+9jyXpuC6hfg==", "dev": true, "dependencies": { + "available-typed-arrays": "^1.0.5", "call-bind": "^1.0.2", + "es-set-tostringtag": "^2.0.1", "es-to-primitive": "^1.2.1", "function-bind": "^1.1.1", "function.prototype.name": "^1.1.5", "get-intrinsic": "^1.1.3", "get-symbol-description": "^1.0.0", + "globalthis": "^1.0.3", "gopd": "^1.0.1", "has": "^1.0.3", "has-property-descriptors": "^1.0.0", + "has-proto": "^1.0.1", "has-symbols": "^1.0.3", - "internal-slot": "^1.0.3", + "internal-slot": "^1.0.4", + "is-array-buffer": "^3.0.1", "is-callable": "^1.2.7", "is-negative-zero": "^2.0.2", "is-regex": "^1.1.4", "is-shared-array-buffer": "^1.0.2", "is-string": "^1.0.7", + "is-typed-array": "^1.1.10", "is-weakref": "^1.0.2", "object-inspect": "^1.12.2", "object-keys": "^1.1.1", @@ -1858,7 +1890,9 @@ "safe-regex-test": "^1.0.0", "string.prototype.trimend": "^1.0.6", "string.prototype.trimstart": "^1.0.6", - "unbox-primitive": "^1.0.2" + "typed-array-length": "^1.0.4", + "unbox-primitive": "^1.0.2", + "which-typed-array": "^1.1.9" }, "engines": { "node": ">= 0.4" @@ -1867,6 +1901,41 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/es-get-iterator": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/es-get-iterator/-/es-get-iterator-1.1.3.tgz", + "integrity": "sha512-sPZmqHBe6JIiTfN5q2pEi//TwxmAFHwj/XEuYjTuse78i8KxaqMTTzxPoFKuzRpDpTJ+0NAbpfenkmH2rePtuw==", + "dev": true, + "peer": true, + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.3", + "has-symbols": "^1.0.3", + "is-arguments": "^1.1.1", + "is-map": "^2.0.2", + "is-set": "^2.0.2", + "is-string": "^1.0.7", + "isarray": "^2.0.5", + "stop-iteration-iterator": "^1.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/es-set-tostringtag": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.1.tgz", + "integrity": "sha512-g3OMbtlwY3QewlqAiMLI47KywjWZoEytKr8pf6iTC8uJq5bIAH52Z9pnQ8pVL6whrCto53JZDuUIsifGeLorTg==", + "dev": true, + "dependencies": { + "get-intrinsic": "^1.1.3", + "has": "^1.0.3", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/es-shim-unscopables": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.0.0.tgz", @@ -1915,12 +1984,13 @@ } }, "node_modules/eslint": { - "version": "8.31.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.31.0.tgz", - "integrity": "sha512-0tQQEVdmPZ1UtUKXjX7EMm9BlgJ08G90IhWh0PKDCb3ZLsgAOHI8fYSIzYVZej92zsgq+ft0FGsxhJ3xo2tbuA==", + "version": "8.35.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.35.0.tgz", + "integrity": "sha512-BxAf1fVL7w+JLRQhWl2pzGeSiGqbWumV4WNvc9Rhp6tiCtm4oHnyPBSEtMGZwrQgudFQ+otqzWoPB7x+hxoWsw==", "dev": true, "dependencies": { - "@eslint/eslintrc": "^1.4.1", + "@eslint/eslintrc": "^2.0.0", + "@eslint/js": "8.35.0", "@humanwhocodes/config-array": "^0.11.8", "@humanwhocodes/module-importer": "^1.0.1", "@nodelib/fs.walk": "^1.2.8", @@ -1934,7 +2004,7 @@ "eslint-utils": "^3.0.0", "eslint-visitor-keys": "^3.3.0", "espree": "^9.4.0", - "esquery": "^1.4.0", + "esquery": "^1.4.2", "esutils": "^2.0.2", "fast-deep-equal": "^3.1.3", "file-entry-cache": "^6.0.1", @@ -2035,13 +2105,14 @@ } }, "node_modules/eslint-import-resolver-node": { - "version": "0.3.6", - "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.6.tgz", - "integrity": "sha512-0En0w03NRVMn9Uiyn8YRPDKvWjxCWkslUEhGNTdGx15RvPJYQ+lbOlqrlNI2vEAs4pDYK4f/HN2TbDmk5TP0iw==", + "version": "0.3.7", + "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.7.tgz", + "integrity": "sha512-gozW2blMLJCeFpBwugLTGyvVjNoeo1knonXAcatC6bjPBZitotxdWf7Gimr25N4c0AAOo4eOUfaG82IJPDpqCA==", "dev": true, "dependencies": { "debug": "^3.2.7", - "resolve": "^1.20.0" + "is-core-module": "^2.11.0", + "resolve": "^1.22.1" } }, "node_modules/eslint-import-resolver-node/node_modules/debug": { @@ -2054,9 +2125,9 @@ } }, "node_modules/eslint-import-resolver-typescript": { - "version": "3.5.2", - "resolved": "https://registry.npmjs.org/eslint-import-resolver-typescript/-/eslint-import-resolver-typescript-3.5.2.tgz", - "integrity": "sha512-zX4ebnnyXiykjhcBvKIf5TNvt8K7yX6bllTRZ14MiurKPjDpCAZujlszTdB8pcNXhZcOf+god4s9SjQa5GnytQ==", + "version": "3.5.3", + "resolved": "https://registry.npmjs.org/eslint-import-resolver-typescript/-/eslint-import-resolver-typescript-3.5.3.tgz", + "integrity": "sha512-njRcKYBc3isE42LaTcJNVANR3R99H9bAxBDMNDr2W7yq5gYPxbU3MkdhsQukxZ/Xg9C2vcyLlDsbKfRDg0QvCQ==", "dev": true, "dependencies": { "debug": "^4.3.4", @@ -2136,23 +2207,25 @@ } }, "node_modules/eslint-plugin-import": { - "version": "2.26.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.26.0.tgz", - "integrity": "sha512-hYfi3FXaM8WPLf4S1cikh/r4IxnO6zrhZbEGz2b660EJRbuxgpDS5gkCuYgGWg2xxh2rBuIr4Pvhve/7c31koA==", + "version": "2.27.5", + "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.27.5.tgz", + "integrity": "sha512-LmEt3GVofgiGuiE+ORpnvP+kAm3h6MLZJ4Q5HCyHADofsb4VzXFsRiWj3c0OFiV+3DWFh0qg3v9gcPlfc3zRow==", "dev": true, "dependencies": { - "array-includes": "^3.1.4", - "array.prototype.flat": "^1.2.5", - "debug": "^2.6.9", + "array-includes": "^3.1.6", + "array.prototype.flat": "^1.3.1", + "array.prototype.flatmap": "^1.3.1", + "debug": "^3.2.7", "doctrine": "^2.1.0", - "eslint-import-resolver-node": "^0.3.6", - "eslint-module-utils": "^2.7.3", + "eslint-import-resolver-node": "^0.3.7", + "eslint-module-utils": "^2.7.4", "has": "^1.0.3", - "is-core-module": "^2.8.1", + "is-core-module": "^2.11.0", "is-glob": "^4.0.3", "minimatch": "^3.1.2", - "object.values": "^1.1.5", - "resolve": "^1.22.0", + "object.values": "^1.1.6", + "resolve": "^1.22.1", + "semver": "^6.3.0", "tsconfig-paths": "^3.14.1" }, "engines": { @@ -2163,12 +2236,12 @@ } }, "node_modules/eslint-plugin-import/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", "dev": true, "dependencies": { - "ms": "2.0.0" + "ms": "^2.1.1" } }, "node_modules/eslint-plugin-import/node_modules/doctrine": { @@ -2183,31 +2256,37 @@ "node": ">=0.10.0" } }, - "node_modules/eslint-plugin-import/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "dev": true + "node_modules/eslint-plugin-import/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } }, "node_modules/eslint-plugin-jsx-a11y": { - "version": "6.6.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.6.1.tgz", - "integrity": "sha512-sXgFVNHiWffBq23uiS/JaP6eVR622DqwB4yTzKvGZGcPq6/yZ3WmOZfuBks/vHWo9GaFOqC2ZK4i6+C35knx7Q==", + "version": "6.7.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.7.1.tgz", + "integrity": "sha512-63Bog4iIethyo8smBklORknVjB0T2dwB8Mr/hIC+fBS0uyHdYYpzM/Ed+YC8VxTjlXHEWFOdmgwcDn1U2L9VCA==", "dev": true, "peer": true, "dependencies": { - "@babel/runtime": "^7.18.9", - "aria-query": "^4.2.2", - "array-includes": "^3.1.5", + "@babel/runtime": "^7.20.7", + "aria-query": "^5.1.3", + "array-includes": "^3.1.6", + "array.prototype.flatmap": "^1.3.1", "ast-types-flow": "^0.0.7", - "axe-core": "^4.4.3", - "axobject-query": "^2.2.0", + "axe-core": "^4.6.2", + "axobject-query": "^3.1.1", "damerau-levenshtein": "^1.0.8", "emoji-regex": "^9.2.2", "has": "^1.0.3", - "jsx-ast-utils": "^3.3.2", - "language-tags": "^1.0.5", + "jsx-ast-utils": "^3.3.3", + "language-tags": "=1.0.5", "minimatch": "^3.1.2", + "object.entries": "^1.1.6", + "object.fromentries": "^2.0.6", "semver": "^6.3.0" }, "engines": { @@ -2228,9 +2307,9 @@ } }, "node_modules/eslint-plugin-react": { - "version": "7.31.11", - "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.31.11.tgz", - "integrity": "sha512-TTvq5JsT5v56wPa9OYHzsrOlHzKZKjV+aLgS+55NJP/cuzdiQPC7PfYoUjMoxlffKtvijpk7vA/jmuqRb9nohw==", + "version": "7.32.2", + "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.32.2.tgz", + "integrity": "sha512-t2fBMa+XzonrrNkyVirzKlvn5RXzzPwRHtMvLAtVZrt8oxgnTQaYbU6SXTOO1mwQgp1y5+toMSKInnzGr0Knqg==", "dev": true, "peer": true, "dependencies": { @@ -2246,7 +2325,7 @@ "object.hasown": "^1.1.2", "object.values": "^1.1.6", "prop-types": "^15.8.1", - "resolve": "^2.0.0-next.3", + "resolve": "^2.0.0-next.4", "semver": "^6.3.0", "string.prototype.matchall": "^4.0.8" }, @@ -2486,9 +2565,9 @@ } }, "node_modules/esquery": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.4.0.tgz", - "integrity": "sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w==", + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz", + "integrity": "sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==", "dev": true, "dependencies": { "estraverse": "^5.1.0" @@ -2682,6 +2761,15 @@ } } }, + "node_modules/for-each": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", + "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", + "dev": true, + "dependencies": { + "is-callable": "^1.1.3" + } + }, "node_modules/form-data": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", @@ -2758,9 +2846,9 @@ } }, "node_modules/get-intrinsic": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.3.tgz", - "integrity": "sha512-QJVz1Tj7MS099PevUG5jvnt9tSkXN8K14dxQlikJuPt4uD9hHAHjLyLBiLR5zELelBdD9QNRAXZzsJx0WaDL9A==", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.0.tgz", + "integrity": "sha512-L049y6nFOuom5wGyRc3/gdTLO94dySVKRACj1RmJZBQXlbTMhtNIgkWkUHq+jYmZvKf14EW1EoJnnjbmoHij0Q==", "dev": true, "dependencies": { "function-bind": "^1.1.1", @@ -2788,9 +2876,9 @@ } }, "node_modules/get-tsconfig": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.3.0.tgz", - "integrity": "sha512-YCcF28IqSay3fqpIu5y3Krg/utCBHBeoflkZyHj/QcqI2nrLPC3ZegS9CmIo+hJb8K7aiGsuUl7PwWVjNG2HQQ==", + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.4.0.tgz", + "integrity": "sha512-0Gdjo/9+FzsYhXCEFueo2aY1z1tpXrxWZzP7k8ul9qt1U5o8rYJwTJYmaeHdrVosYIVYkOy2iwCJ9FdpocJhPQ==", "dev": true, "funding": { "url": "https://github.com/privatenumber/get-tsconfig?sponsor=1" @@ -2829,9 +2917,9 @@ } }, "node_modules/globals": { - "version": "13.19.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.19.0.tgz", - "integrity": "sha512-dkQ957uSRWHw7CFXLUtUHQI3g3aWApYhfNR2O6jn/907riyTYKVBmxYVROkBcY614FSSeSJh7Xm7SrUWCxvJMQ==", + "version": "13.20.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.20.0.tgz", + "integrity": "sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ==", "dev": true, "dependencies": { "type-fest": "^0.20.2" @@ -2843,6 +2931,21 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/globalthis": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.3.tgz", + "integrity": "sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==", + "dev": true, + "dependencies": { + "define-properties": "^1.1.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/globalyzer": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/globalyzer/-/globalyzer-0.1.0.tgz", @@ -2941,6 +3044,18 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/has-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz", + "integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/has-symbols": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", @@ -3040,12 +3155,12 @@ "dev": true }, "node_modules/internal-slot": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.4.tgz", - "integrity": "sha512-tA8URYccNzMo94s5MQZgH8NB/XTa6HsOo0MLfXTKKEnHVVdegzaQoFZ7Jp44bdvLvY2waT5dc+j5ICEswhi7UQ==", + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.5.tgz", + "integrity": "sha512-Y+R5hJrzs52QCG2laLn4udYVnxsfny9CpOhNhUvk/SSSVyF6T27FzRbF0sroPidSu3X8oEAkOn2K804mjpt6UQ==", "dev": true, "dependencies": { - "get-intrinsic": "^1.1.3", + "get-intrinsic": "^1.2.0", "has": "^1.0.3", "side-channel": "^1.0.4" }, @@ -3054,14 +3169,45 @@ } }, "node_modules/irregular-plurals": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/irregular-plurals/-/irregular-plurals-3.3.0.tgz", - "integrity": "sha512-MVBLKUTangM3EfRPFROhmWQQKRDsrgI83J8GS3jXy+OwYqiR2/aoWndYQ5416jLE3uaGgLH7ncme3X9y09gZ3g==", + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/irregular-plurals/-/irregular-plurals-3.4.1.tgz", + "integrity": "sha512-JR7VL+1Kd9z79bE+2uSgifpzrTwLWmTvyeUewhxZCHVtpPImAsLk4adfRxg86uvdsJ8etYYrpzN7vRT30gGnOA==", "dev": true, "engines": { "node": ">=8" } }, + "node_modules/is-arguments": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.1.1.tgz", + "integrity": "sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==", + "dev": true, + "peer": true, + "dependencies": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-array-buffer": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.2.tgz", + "integrity": "sha512-y+FyyR/w8vfIRq4eQcM1EYgSTnmHXPqaF+IgzgraytCFq5Xh8lllDVmAZolPJiZttZLeFSINPYMaEJ7/vWUa1w==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.2.0", + "is-typed-array": "^1.1.10" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/is-bigint": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", @@ -3195,6 +3341,16 @@ "node": ">=0.10.0" } }, + "node_modules/is-map": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/is-map/-/is-map-2.0.2.tgz", + "integrity": "sha512-cOZFQQozTha1f4MxLFzlgKYPTyj26picdZTx82hbc/Xf4K/tZOOXSCkMvU4pKioRXGDLJRn0GM7Upe7kR721yg==", + "dev": true, + "peer": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/is-negative-zero": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.2.tgz", @@ -3286,6 +3442,16 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/is-set": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/is-set/-/is-set-2.0.2.tgz", + "integrity": "sha512-+2cnTEZeY5z/iXGbLhPrOAaK/Mau5k5eXq9j14CpRTftq0pAJu2MwVRSZhyZWBzx3o6X795Lz6Bpb6R0GKf37g==", + "dev": true, + "peer": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/is-shared-array-buffer": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz", @@ -3328,6 +3494,25 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/is-typed-array": { + "version": "1.1.10", + "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.10.tgz", + "integrity": "sha512-PJqgEHiWZvMpaFZ3uTc8kHPM4+4ADTlDniuQL7cU/UDA0Ql7F70yGfHph3cLNe+c9toaigv+DFzTJKhc2CtO6A==", + "dev": true, + "dependencies": { + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "gopd": "^1.0.1", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/is-unicode-supported": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-1.3.0.tgz", @@ -3340,6 +3525,16 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/is-weakmap": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-weakmap/-/is-weakmap-2.0.1.tgz", + "integrity": "sha512-NSBR4kH5oVj1Uwvv970ruUkCV7O1mzgVFO4/rev2cLRda9Tm9HrL70ZPut4rOHgY0FNrUu9BCbXA2sdQ+x0chA==", + "dev": true, + "peer": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/is-weakref": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", @@ -3352,6 +3547,20 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/is-weakset": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/is-weakset/-/is-weakset-2.0.2.tgz", + "integrity": "sha512-t2yVvttHkQktwnNNmBQ98AhENLdPUTDTE21uPqAQ0ARwQfGeQKRVS0NNurH7bTf7RrvcVn1OOge45CnBeHCSmg==", + "dev": true, + "peer": true, + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/is-wsl": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", @@ -3365,10 +3574,11 @@ } }, "node_modules/isarray": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", - "integrity": "sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ==", - "dev": true + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", + "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", + "dev": true, + "peer": true }, "node_modules/isexe": { "version": "2.0.0", @@ -3377,9 +3587,9 @@ "dev": true }, "node_modules/js-sdsl": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/js-sdsl/-/js-sdsl-4.2.0.tgz", - "integrity": "sha512-dyBIzQBDkCqCu+0upx25Y2jGdbTGxE9fshMsCdK0ViOongpV+n5tXRcZY9v7CaVQ79AGS9KA1KHtojxiM7aXSQ==", + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/js-sdsl/-/js-sdsl-4.3.0.tgz", + "integrity": "sha512-mifzlm2+5nZ+lEcLJMoBK0/IH/bDg8XnJfd/Wq6IP+xoCjLZsTOnV2QpxlVbX9bMnkl5PdEjNtBJ9Cj1NjifhQ==", "dev": true, "funding": { "type": "opencollective", @@ -3489,13 +3699,13 @@ "peer": true }, "node_modules/language-tags": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/language-tags/-/language-tags-1.0.7.tgz", - "integrity": "sha512-bSytju1/657hFjgUzPAPqszxH62ouE8nQFoFaVlIQfne4wO/wXC9A4+m8jYve7YBBvi59eq0SUpcshvG8h5Usw==", + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/language-tags/-/language-tags-1.0.5.tgz", + "integrity": "sha512-qJhlO9cGXi6hBGKoxEG/sKZDAHD5Hnu9Hs4WbOY3pCWXDhw0N8x1NenNzm2EnNLkLkk7J2SdxAkDSbb6ftT+UQ==", "dev": true, "peer": true, "dependencies": { - "language-subtag-registry": "^0.3.20" + "language-subtag-registry": "~0.3.2" } }, "node_modules/levn": { @@ -3599,9 +3809,9 @@ } }, "node_modules/marked": { - "version": "4.2.5", - "resolved": "https://registry.npmjs.org/marked/-/marked-4.2.5.tgz", - "integrity": "sha512-jPueVhumq7idETHkb203WDD4fMA3yV9emQ5vLwop58lu8bTclMghBWcYAavlDqIEMaisADinV1TooIFCfqOsYQ==", + "version": "4.2.12", + "resolved": "https://registry.npmjs.org/marked/-/marked-4.2.12.tgz", + "integrity": "sha512-yr8hSKa3Fv4D3jdZmtMMPghgVt6TWbk86WQaWhDloQjRSQhMMYCAro7jP7VDJrjjdV8pxVxMssXS8B8Y5DZ5aw==", "dev": true, "bin": { "marked": "bin/marked.js" @@ -3650,9 +3860,9 @@ } }, "node_modules/mdast-util-from-markdown": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/mdast-util-from-markdown/-/mdast-util-from-markdown-1.2.0.tgz", - "integrity": "sha512-iZJyyvKD1+K7QX1b5jXdE7Sc5dtoTry1vzV28UZZe8Z1xVnB/czKntJ7ZAkG0tANqRnBF6p3p7GpU1y19DTf2Q==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/mdast-util-from-markdown/-/mdast-util-from-markdown-1.3.0.tgz", + "integrity": "sha512-HN3W1gRIuN/ZW295c7zi7g9lVBllMgZE40RxCX37wrTPWXCWtpvOZdfnuK+1WNpvZje6XuJeI3Wnb4TJEUem+g==", "dev": true, "dependencies": { "@types/mdast": "^3.0.0", @@ -3674,10 +3884,13 @@ } }, "node_modules/mdast-util-to-string": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/mdast-util-to-string/-/mdast-util-to-string-3.1.0.tgz", - "integrity": "sha512-n4Vypz/DZgwo0iMHLQL49dJzlp7YtAJP+N07MZHpjPf/5XJuHUWstviF4Mn2jEiR/GNmtnRRqnwsXExk3igfFA==", + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/mdast-util-to-string/-/mdast-util-to-string-3.1.1.tgz", + "integrity": "sha512-tGvhT94e+cVnQt8JWE9/b3cUQZWS732TJxXHktvP+BYo62PpYD53Ls/6cC60rW21dW+txxiM4zMdc6abASvZKA==", "dev": true, + "dependencies": { + "@types/mdast": "^3.0.0" + }, "funding": { "type": "opencollective", "url": "https://opencollective.com/unified" @@ -4208,9 +4421,9 @@ } }, "node_modules/minimist": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.7.tgz", - "integrity": "sha512-bzfL1YUZsP41gmu/qjrEk0Q6i2ix/cVeAhbCbqH9u3zYutS1cLg00qhrD0M2MVdCcx4Sc0UpP2eBWo9rotpq6g==", + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", "dev": true, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -4290,10 +4503,27 @@ } }, "node_modules/object-inspect": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.2.tgz", - "integrity": "sha512-z+cPxW0QGUp0mcqcsgQyLVRDoXFQbXOwBaqyF7VIgI4TWNQsDHrBpUQslRmIfAoYWdYzs6UlKJtB2XJpTaNSpQ==", + "version": "1.12.3", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.3.tgz", + "integrity": "sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object-is": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/object-is/-/object-is-1.1.5.tgz", + "integrity": "sha512-3cyDsyHgtmi7I7DfSSI2LDp6SK2lwvtbg0p0R1e0RvTqF5ceGx+K2dfSjm1bKDMVCFEDAQvy+o8c6a7VujOddw==", "dev": true, + "peer": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3" + }, + "engines": { + "node": ">= 0.4" + }, "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -4398,9 +4628,9 @@ } }, "node_modules/open": { - "version": "8.4.0", - "resolved": "https://registry.npmjs.org/open/-/open-8.4.0.tgz", - "integrity": "sha512-XgFPPM+B28FtCCgSb9I+s9szOC1vZRSwgWsRUA5ylIxRTgKozqjOCrVOqGsYABPYK5qnfqClxZTFBa8PKt2v6Q==", + "version": "8.4.2", + "resolved": "https://registry.npmjs.org/open/-/open-8.4.2.tgz", + "integrity": "sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ==", "dev": true, "dependencies": { "define-lazy-prop": "^2.0.0", @@ -4587,10 +4817,16 @@ "isarray": "0.0.1" } }, - "node_modules/path-type": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", - "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", + "node_modules/path-to-regexp/node_modules/isarray": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", + "integrity": "sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ==", + "dev": true + }, + "node_modules/path-type": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", + "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", "dev": true, "engines": { "node": ">=8" @@ -4656,9 +4892,9 @@ } }, "node_modules/pkg-conf/node_modules/locate-path": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-7.1.1.tgz", - "integrity": "sha512-vJXaRMJgRVD3+cUZs3Mncj2mxpt5mP0EmNOsxRSZRMlbqjvxzDEOIUWXGmavo0ZC9+tNZCBLQ66reA11nbpHZg==", + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-7.2.0.tgz", + "integrity": "sha512-gvVijfZvn7R+2qyPX8mAuKcFGDf6Nc61GdvGafQsHL0sBIxfKzA+usWn4GFC/bk+QdwPUD4kWFJLhElipq+0VA==", "dev": true, "dependencies": { "p-locate": "^6.0.0" @@ -4746,9 +4982,9 @@ } }, "node_modules/prettier": { - "version": "2.8.1", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.1.tgz", - "integrity": "sha512-lqGoSJBQNJidqCHE80vqZJHWHRFoNYsSpP9AjFhlhi9ODCJA541svILes/+/1GM3VaL/abZi7cpFzOpdR9UPKg==", + "version": "2.8.4", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.4.tgz", + "integrity": "sha512-vIS4Rlc2FNh0BySk3Wkd6xmwxB0FpOndW5fisM5H8hsZSxU2VWVB5CWIkIjWvrHjIhxk2g3bfMKM87zNTrZddw==", "dev": true, "bin": { "prettier": "bin-prettier.js" @@ -4805,9 +5041,9 @@ } }, "node_modules/punycode": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", - "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", + "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==", "dev": true, "engines": { "node": ">=6" @@ -5082,14 +5318,15 @@ } }, "node_modules/shiki": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/shiki/-/shiki-0.11.1.tgz", - "integrity": "sha512-EugY9VASFuDqOexOgXR18ZV+TbFrQHeCpEYaXamO+SZlsnT/2LxuLBX25GGtIrwaEVFXUAbUQ601SWE2rMwWHA==", + "version": "0.14.1", + "resolved": "https://registry.npmjs.org/shiki/-/shiki-0.14.1.tgz", + "integrity": "sha512-+Jz4nBkCBe0mEDqo1eKRcCdjRtrCjozmcbTUjbPTX7OOJfEbTZzlUWlZtGe3Gb5oV1/jnojhG//YZc3rs9zSEw==", "dev": true, "dependencies": { - "jsonc-parser": "^3.0.0", - "vscode-oniguruma": "^1.6.1", - "vscode-textmate": "^6.0.0" + "ansi-sequence-parser": "^1.1.0", + "jsonc-parser": "^3.2.0", + "vscode-oniguruma": "^1.7.0", + "vscode-textmate": "^8.0.0" } }, "node_modules/side-channel": { @@ -5201,6 +5438,19 @@ "node": ">=8" } }, + "node_modules/stop-iteration-iterator": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/stop-iteration-iterator/-/stop-iteration-iterator-1.0.0.tgz", + "integrity": "sha512-iCGQj+0l0HOdZ2AEeBADlsRC+vsnDsZsbdSiH1yNSjcfKM7fdpCMfqAL/dwF5BLiw/XhRft/Wax6zQbhq2BcjQ==", + "dev": true, + "peer": true, + "dependencies": { + "internal-slot": "^1.0.4" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/string-width": { "version": "5.1.2", "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", @@ -5364,13 +5614,13 @@ } }, "node_modules/synckit": { - "version": "0.8.4", - "resolved": "https://registry.npmjs.org/synckit/-/synckit-0.8.4.tgz", - "integrity": "sha512-Dn2ZkzMdSX827QbowGbU/4yjWuvNaCoScLLoMo/yKbu+P4GBR6cRGKZH27k6a9bRzdqcyd1DE96pQtQ6uNkmyw==", + "version": "0.8.5", + "resolved": "https://registry.npmjs.org/synckit/-/synckit-0.8.5.tgz", + "integrity": "sha512-L1dapNV6vu2s/4Sputv8xGsCdAVlb5nRDMFU/E27D44l5U6cw1g0dGd45uLc+OXjNMmF4ntiMdCimzcjFKQI8Q==", "dev": true, "dependencies": { "@pkgr/utils": "^2.3.1", - "tslib": "^2.4.0" + "tslib": "^2.5.0" }, "engines": { "node": "^14.18.0 || >=16.0.0" @@ -5435,21 +5685,21 @@ } }, "node_modules/tsconfig-paths": { - "version": "3.14.1", - "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.14.1.tgz", - "integrity": "sha512-fxDhWnFSLt3VuTwtvJt5fpwxBHg5AdKWMsgcPOOIilyjymcYVZoCQF8fvFRezCNfblEXmi+PcM1eYHeOAgXCOQ==", + "version": "3.14.2", + "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.14.2.tgz", + "integrity": "sha512-o/9iXgCYc5L/JxCHPe3Hvh8Q/2xm5Z+p18PESBU6Ff33695QnCHBEjcytY2q19ua7Mbl/DavtBOLq+oG0RCL+g==", "dev": true, "dependencies": { "@types/json5": "^0.0.29", - "json5": "^1.0.1", + "json5": "^1.0.2", "minimist": "^1.2.6", "strip-bom": "^3.0.0" } }, "node_modules/tslib": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.1.tgz", - "integrity": "sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA==" + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", + "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==" }, "node_modules/tsutils": { "version": "3.21.0", @@ -5505,16 +5755,30 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/typed-array-length": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.4.tgz", + "integrity": "sha512-KjZypGq+I/H7HI5HlOoGHkWUUGq+Q0TPhQurLbyrVrvnKTBgzLhIJ7j6J/XTQOi0d1RjyZ0wdas8bKs2p0x3Ng==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "is-typed-array": "^1.1.9" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/typedoc": { - "version": "0.23.23", - "resolved": "https://registry.npmjs.org/typedoc/-/typedoc-0.23.23.tgz", - "integrity": "sha512-cg1YQWj+/BU6wq74iott513U16fbrPCbyYs04PHZgvoKJIc6EY4xNobyDZh4KMfRGW8Yjv6wwIzQyoqopKOUGw==", + "version": "0.23.26", + "resolved": "https://registry.npmjs.org/typedoc/-/typedoc-0.23.26.tgz", + "integrity": "sha512-5m4KwR5tOLnk0OtMaRn9IdbeRM32uPemN9kur7YK9wFqx8U0CYrvO9aVq6ysdZSV1c824BTm+BuQl2Ze/k1HtA==", "dev": true, "dependencies": { "lunr": "^2.3.9", - "marked": "^4.2.4", - "minimatch": "^5.1.1", - "shiki": "^0.11.1" + "marked": "^4.2.12", + "minimatch": "^7.1.3", + "shiki": "^0.14.1" }, "bin": { "typedoc": "bin/typedoc" @@ -5527,9 +5791,9 @@ } }, "node_modules/typedoc-plugin-extras": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/typedoc-plugin-extras/-/typedoc-plugin-extras-2.3.1.tgz", - "integrity": "sha512-EqrIX9oOxJ3yZa/TNAmMqvg87v3RTs63yFm/ROJtjiu1yVNQl74v2hDHsgheWb+1Puy+Vu5jFMwx//Cme0hzqg==", + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/typedoc-plugin-extras/-/typedoc-plugin-extras-2.3.2.tgz", + "integrity": "sha512-g2m8UuGgaD5lNKO6f1p3atEugtTEb/le8IYkAiksmGYZyyF44SvRe8NcaJLq61mC+XRHHszQ664v3Vw9avIrMw==", "dev": true, "peerDependencies": { "typedoc": "0.23.x" @@ -5545,21 +5809,24 @@ } }, "node_modules/typedoc/node_modules/minimatch": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.2.tgz", - "integrity": "sha512-bNH9mmM9qsJ2X4r2Nat1B//1dJVcn3+iBLa3IgqJ7EbGaDNepL9QSHOxN4ng33s52VMMhhIfgCYDk3C4ZmlDAg==", + "version": "7.4.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-7.4.2.tgz", + "integrity": "sha512-xy4q7wou3vUoC9k1xGTXc+awNdGaGVHtFUaey8tiX4H1QRc04DZ/rmDFwNm2EBsuYEhAZ6SgMmYf3InGY6OauA==", "dev": true, "dependencies": { "brace-expansion": "^2.0.1" }, "engines": { "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, "node_modules/typescript": { - "version": "4.9.4", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.4.tgz", - "integrity": "sha512-Uz+dTXYzxXXbsFpM86Wh3dKCxrQqUcVMxwU54orwlJjOpO3ao8L7j5lH+dWfTwgCwIuM9GQ2kvVotzYJMXTBZg==", + "version": "4.9.5", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz", + "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==", "dev": true, "bin": { "tsc": "bin/tsc", @@ -5585,9 +5852,9 @@ } }, "node_modules/unist-util-stringify-position": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-3.0.2.tgz", - "integrity": "sha512-7A6eiDCs9UtjcwZOcCpM4aPII3bAAGv13E96IkawkOAW0OhH+yRxtY0lzo8KiHpzEMfH7Q+FizUmwp8Iqy5EWg==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-3.0.3.tgz", + "integrity": "sha512-k5GzIBZ/QatR8N5X2y+drfpWG8IDBzdnVj6OInRNWm1oXrzydiaAT2OQiA8DPRRZyAKb9b6I2a6PxYklZD0gKg==", "dev": true, "dependencies": { "@types/unist": "^2.0.0" @@ -5631,9 +5898,9 @@ "dev": true }, "node_modules/vscode-textmate": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/vscode-textmate/-/vscode-textmate-6.0.0.tgz", - "integrity": "sha512-gu73tuZfJgu+mvCSy4UZwd2JXykjK9zAZsfmDeut5dx/1a7FeTk0XwJsSuqQn+cuMCGVbIBfl+s53X4T19DnzQ==", + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/vscode-textmate/-/vscode-textmate-8.0.0.tgz", + "integrity": "sha512-AFbieoL7a5LMqcnOF04ji+rpXadgOXnZsxQr//r83kLPr7biP7am3g9zbaZIaBGwBRWeSvoMD4mgPdX3e4NWBg==", "dev": true }, "node_modules/well-known-symbols": { @@ -5676,6 +5943,42 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/which-collection": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/which-collection/-/which-collection-1.0.1.tgz", + "integrity": "sha512-W8xeTUwaln8i3K/cY1nGXzdnVZlidBcagyNFtBdD5kxnb4TvGKR7FfSIS3mYpwWS1QUCutfKz8IY8RjftB0+1A==", + "dev": true, + "peer": true, + "dependencies": { + "is-map": "^2.0.1", + "is-set": "^2.0.1", + "is-weakmap": "^2.0.1", + "is-weakset": "^2.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/which-typed-array": { + "version": "1.1.9", + "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.9.tgz", + "integrity": "sha512-w9c4xkx6mPidwp7180ckYWfMmvxpjlZuIudNtDf4N/tTAUB8VJbX25qZoAsrtGuYNnGw3pa0AXgbGKRB8/EceA==", + "dev": true, + "dependencies": { + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "gopd": "^1.0.1", + "has-tostringtag": "^1.0.0", + "is-typed-array": "^1.1.10" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/word-wrap": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", @@ -5802,9 +6105,9 @@ "dev": true }, "node_modules/yargs": { - "version": "17.6.2", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.6.2.tgz", - "integrity": "sha512-1/9UrdHjDZc0eOU0HxOHoS78C69UD3JRMvzlJ7S79S2nTaWRA/whGCTV8o9e/N/1Va9YIV7Q4sOxD8VV4pCWOw==", + "version": "17.7.1", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.1.tgz", + "integrity": "sha512-cwiTb08Xuv5fqF4AovYacTFNxk62th7LKJ6BL9IGUpTJrWoU7/7WdQGTP2SjKf1dUNBGzDd28p/Yfs/GI6JrLw==", "dev": true, "dependencies": { "cliui": "^8.0.1", @@ -5890,4108 +6193,5 @@ "url": "https://github.com/sponsors/sindresorhus" } } - }, - "dependencies": { - "@babel/runtime": { - "version": "7.20.7", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.20.7.tgz", - "integrity": "sha512-UF0tvkUtxwAgZ5W/KrkHf0Rn0fdnLDU9ScxBrEVNUprE/MzirjK4MJUX1/BVDv00Sv8cljtukVK1aky++X1SjQ==", - "dev": true, - "peer": true, - "requires": { - "regenerator-runtime": "^0.13.11" - } - }, - "@babel/runtime-corejs3": { - "version": "7.20.7", - "resolved": "https://registry.npmjs.org/@babel/runtime-corejs3/-/runtime-corejs3-7.20.7.tgz", - "integrity": "sha512-jr9lCZ4RbRQmCR28Q8U8Fu49zvFqLxTY9AMOUz+iyMohMoAgpEcVxY+wJNay99oXOpOcCTODkk70NDN2aaJEeg==", - "dev": true, - "peer": true, - "requires": { - "core-js-pure": "^3.25.1", - "regenerator-runtime": "^0.13.11" - } - }, - "@eslint/eslintrc": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-1.4.1.tgz", - "integrity": "sha512-XXrH9Uarn0stsyldqDYq8r++mROmWRI1xKMXa640Bb//SY1+ECYX6VzT6Lcx5frD0V30XieqJ0oX9I2Xj5aoMA==", - "dev": true, - "requires": { - "ajv": "^6.12.4", - "debug": "^4.3.2", - "espree": "^9.4.0", - "globals": "^13.19.0", - "ignore": "^5.2.0", - "import-fresh": "^3.2.1", - "js-yaml": "^4.1.0", - "minimatch": "^3.1.2", - "strip-json-comments": "^3.1.1" - } - }, - "@humanwhocodes/config-array": { - "version": "0.11.8", - "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.8.tgz", - "integrity": "sha512-UybHIJzJnR5Qc/MsD9Kr+RpO2h+/P1GhOwdiLPXK5TWk5sgTdu88bTD9UP+CKbPPh5Rni1u0GjAdYQLemG8g+g==", - "dev": true, - "requires": { - "@humanwhocodes/object-schema": "^1.2.1", - "debug": "^4.1.1", - "minimatch": "^3.0.5" - } - }, - "@humanwhocodes/module-importer": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", - "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", - "dev": true - }, - "@humanwhocodes/object-schema": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", - "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==", - "dev": true - }, - "@nodelib/fs.scandir": { - "version": "2.1.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", - "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", - "dev": true, - "requires": { - "@nodelib/fs.stat": "2.0.5", - "run-parallel": "^1.1.9" - } - }, - "@nodelib/fs.stat": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", - "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", - "dev": true - }, - "@nodelib/fs.walk": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", - "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", - "dev": true, - "requires": { - "@nodelib/fs.scandir": "2.1.5", - "fastq": "^1.6.0" - } - }, - "@pkgr/utils": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/@pkgr/utils/-/utils-2.3.1.tgz", - "integrity": "sha512-wfzX8kc1PMyUILA+1Z/EqoE4UCXGy0iRGMhPwdfae1+f0OXlLqCk+By+aMzgJBzR9AzS4CDizioG6Ss1gvAFJw==", - "dev": true, - "requires": { - "cross-spawn": "^7.0.3", - "is-glob": "^4.0.3", - "open": "^8.4.0", - "picocolors": "^1.0.0", - "tiny-glob": "^0.2.9", - "tslib": "^2.4.0" - } - }, - "@sinonjs/commons": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-2.0.0.tgz", - "integrity": "sha512-uLa0j859mMrg2slwQYdO/AkrOfmH+X6LTVmNTS9CqexuE2IvVORIkSpJLqePAbEnKJ77aMmCwr1NUZ57120Xcg==", - "dev": true, - "requires": { - "type-detect": "4.0.8" - } - }, - "@sinonjs/fake-timers": { - "version": "10.0.2", - "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-10.0.2.tgz", - "integrity": "sha512-SwUDyjWnah1AaNl7kxsa7cfLhlTYoiyhDAIgyh+El30YvXs/o7OLXpYH88Zdhyx9JExKrmHDJ+10bwIcY80Jmw==", - "dev": true, - "requires": { - "@sinonjs/commons": "^2.0.0" - } - }, - "@sinonjs/samsam": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/@sinonjs/samsam/-/samsam-7.0.1.tgz", - "integrity": "sha512-zsAk2Jkiq89mhZovB2LLOdTCxJF4hqqTToGP0ASWlhp4I1hqOjcfmZGafXntCN7MDC6yySH0mFHrYtHceOeLmw==", - "dev": true, - "requires": { - "@sinonjs/commons": "^2.0.0", - "lodash.get": "^4.4.2", - "type-detect": "^4.0.8" - } - }, - "@sinonjs/text-encoding": { - "version": "0.7.2", - "resolved": "https://registry.npmjs.org/@sinonjs/text-encoding/-/text-encoding-0.7.2.tgz", - "integrity": "sha512-sXXKG+uL9IrKqViTtao2Ws6dy0znu9sOaP1di/jKGW1M6VssO8vlpXCQcpZ+jisQ1tTFAC5Jo/EOzFbggBagFQ==", - "dev": true - }, - "@swc-node/core": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/@swc-node/core/-/core-1.9.1.tgz", - "integrity": "sha512-Mh4T/PmQOpPtqw1BNvU38uWzsXbd5RJji17YBXnj7JDDE5KlTR9sSo2RKxWKDVtHbdcD1S+CtyZXA93aEWlfGQ==", - "dev": true, - "requires": {} - }, - "@swc-node/register": { - "version": "1.5.4", - "resolved": "https://registry.npmjs.org/@swc-node/register/-/register-1.5.4.tgz", - "integrity": "sha512-cM5/A63bO6qLUFC4gcBnOlQO5yd8ObSdFUIp7sXf11Oq5mPVAnJy2DqjbWMUsqUaHuNk+lOIt76ie4DEseUIyA==", - "dev": true, - "requires": { - "@swc-node/core": "^1.9.1", - "@swc-node/sourcemap-support": "^0.2.2", - "colorette": "^2.0.19", - "debug": "^4.3.4", - "pirates": "^4.0.5", - "tslib": "^2.4.0" - } - }, - "@swc-node/sourcemap-support": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/@swc-node/sourcemap-support/-/sourcemap-support-0.2.2.tgz", - "integrity": "sha512-PA4p7nC5LwPdEVcQXFxMTpfvizYPeMoB55nIIx+yC3FiLnyPgC2hcpUitPy5h8RRGdCZ/Mvb2ryEcVYS8nI6YA==", - "dev": true, - "requires": { - "source-map-support": "^0.5.21", - "tslib": "^2.4.0" - } - }, - "@swc/core": { - "version": "1.3.24", - "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.3.24.tgz", - "integrity": "sha512-QMOTd0AgiUT3K1crxLRqd3gw0f3FC8hhH1vvlIlryvYqU4c+FJ/T2G4ZhMKLxQlZ/jX6Rhk0gKINZRBxy2GFyQ==", - "dev": true, - "peer": true, - "requires": { - "@swc/core-darwin-arm64": "1.3.24", - "@swc/core-darwin-x64": "1.3.24", - "@swc/core-linux-arm-gnueabihf": "1.3.24", - "@swc/core-linux-arm64-gnu": "1.3.24", - "@swc/core-linux-arm64-musl": "1.3.24", - "@swc/core-linux-x64-gnu": "1.3.24", - "@swc/core-linux-x64-musl": "1.3.24", - "@swc/core-win32-arm64-msvc": "1.3.24", - "@swc/core-win32-ia32-msvc": "1.3.24", - "@swc/core-win32-x64-msvc": "1.3.24" - } - }, - "@swc/core-darwin-arm64": { - "version": "1.3.24", - "resolved": "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.3.24.tgz", - "integrity": "sha512-rR+9UpWm+fGXcipsjCst2hIL1GYIbo0YTLhJZWdIpQD6KRHHJMFXiydMgQQkDj2Ml7HpqUVgxj6m4ZWYL8b0OA==", - "dev": true, - "optional": true, - "peer": true - }, - "@swc/core-darwin-x64": { - "version": "1.3.24", - "resolved": "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.3.24.tgz", - "integrity": "sha512-px+5vkGtgPH0m3FkkTBHynlRdS5rRz+lK+wiXIuBZFJSySWFl6RkKbvwkD+sf0MpazQlqwlv/rTOGJBw6oDffg==", - "dev": true, - "optional": true, - "peer": true - }, - "@swc/core-linux-arm-gnueabihf": { - "version": "1.3.24", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.3.24.tgz", - "integrity": "sha512-jLs8ZOdTV4UW4J12E143QJ4mOMONQtqgAnuhBbRuWFzQ3ny1dfoC3P1jNWAJ2Xi59XdxAIXn0PggPNH4Kh34kw==", - "dev": true, - "optional": true, - "peer": true - }, - "@swc/core-linux-arm64-gnu": { - "version": "1.3.24", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.3.24.tgz", - "integrity": "sha512-A/v0h70BekrwGpp1DlzIFGcHQ3QQ2PexXcnnuIBZeMc9gNmHlcZmg3EcwAnaUDiokhNuSUFA/wV94yk1OqmSkw==", - "dev": true, - "optional": true, - "peer": true - }, - "@swc/core-linux-arm64-musl": { - "version": "1.3.24", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.3.24.tgz", - "integrity": "sha512-pbc9eArWPTiMrbpS/pJo0IiQNAKAQBcBIDjWBGP1tcw2iDXYLw4bruwz9kI/VjakbshWb8MoE4T5ClkeuULvSw==", - "dev": true, - "optional": true, - "peer": true - }, - "@swc/core-linux-x64-gnu": { - "version": "1.3.24", - "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.3.24.tgz", - "integrity": "sha512-pP5pOLlY1xd352qo7rTlpVPUI9/9VhOd4b3Lk+LzfZDq9bTL2NDlGfyrPiwa5DGHMSzrugH56K2J68eutkxYVA==", - "dev": true, - "optional": true, - "peer": true - }, - "@swc/core-linux-x64-musl": { - "version": "1.3.24", - "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.3.24.tgz", - "integrity": "sha512-phNbP7zGp+Wcyxq1Qxlpe5KkxO7WLT2kVQUC7aDFGlVdCr+xdXsfH1MzheHtnr0kqTVQX1aiM8XXXHfFxR0oNA==", - "dev": true, - "optional": true, - "peer": true - }, - "@swc/core-win32-arm64-msvc": { - "version": "1.3.24", - "resolved": "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.3.24.tgz", - "integrity": "sha512-qhbiJTWAOqyR+K9xnGmCkOWSz2EmWpDBstEJCEOTc6FZiEdbiTscDmqTcMbCKaTHGu8t+6erVA4t65/Eg6uWPA==", - "dev": true, - "optional": true, - "peer": true - }, - "@swc/core-win32-ia32-msvc": { - "version": "1.3.24", - "resolved": "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.3.24.tgz", - "integrity": "sha512-JfghIlscE4Rz+Lc08lSoDh+R0cWxrISed5biogFfE6vZqhaDnw3E5Qshqw7O3pIaiq8L2u1nmzuyP581ZmpbRA==", - "dev": true, - "optional": true, - "peer": true - }, - "@swc/core-win32-x64-msvc": { - "version": "1.3.24", - "resolved": "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.3.24.tgz", - "integrity": "sha512-3AmJRr0hwciwDBbzUNqaftvppzS8v9X/iv/Wl7YaVLBVpPfQvaZzfqLycvNMGLZb5vIKXR/u58txg3dRBGsJtw==", - "dev": true, - "optional": true, - "peer": true - }, - "@types/body-parser": { - "version": "1.19.2", - "resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.2.tgz", - "integrity": "sha512-ALYone6pm6QmwZoAgeyNksccT9Q4AWZQ6PvfwR37GT6r6FWUPguq6sUmNGSMV2Wr761oQoBxwGGa6DR5o1DC9g==", - "dev": true, - "requires": { - "@types/connect": "*", - "@types/node": "*" - } - }, - "@types/connect": { - "version": "3.4.35", - "resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.35.tgz", - "integrity": "sha512-cdeYyv4KWoEgpBISTxWvqYsVy444DOqehiF3fM3ne10AmJ62RSyNkUnxMJXHQWRQQX2eR94m5y1IZyDwBjV9FQ==", - "dev": true, - "requires": { - "@types/node": "*" - } - }, - "@types/debug": { - "version": "4.1.7", - "resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.7.tgz", - "integrity": "sha512-9AonUzyTjXXhEOa0DnqpzZi6VHlqKMswga9EXjpXnnqxwLtdvPPtlO8evrI5D9S6asFRCQ6v+wpiUKbw+vKqyg==", - "dev": true, - "requires": { - "@types/ms": "*" - } - }, - "@types/express": { - "version": "4.17.15", - "resolved": "https://registry.npmjs.org/@types/express/-/express-4.17.15.tgz", - "integrity": "sha512-Yv0k4bXGOH+8a+7bELd2PqHQsuiANB+A8a4gnQrkRWzrkKlb6KHaVvyXhqs04sVW/OWlbPyYxRgYlIXLfrufMQ==", - "dev": true, - "requires": { - "@types/body-parser": "*", - "@types/express-serve-static-core": "^4.17.31", - "@types/qs": "*", - "@types/serve-static": "*" - } - }, - "@types/express-serve-static-core": { - "version": "4.17.32", - "resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-4.17.32.tgz", - "integrity": "sha512-aI5h/VOkxOF2Z1saPy0Zsxs5avets/iaiAJYznQFm5By/pamU31xWKL//epiF4OfUA2qTOc9PV6tCUjhO8wlZA==", - "dev": true, - "requires": { - "@types/node": "*", - "@types/qs": "*", - "@types/range-parser": "*" - } - }, - "@types/json-schema": { - "version": "7.0.11", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.11.tgz", - "integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==", - "dev": true - }, - "@types/json5": { - "version": "0.0.29", - "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", - "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==", - "dev": true - }, - "@types/mdast": { - "version": "3.0.10", - "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.10.tgz", - "integrity": "sha512-W864tg/Osz1+9f4lrGTZpCSO5/z4608eUp19tbozkq2HJK6i3z1kT0H9tlADXuYIb1YYOBByU4Jsqkk75q48qA==", - "dev": true, - "requires": { - "@types/unist": "*" - } - }, - "@types/mime": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/mime/-/mime-3.0.1.tgz", - "integrity": "sha512-Y4XFY5VJAuw0FgAqPNd6NNoV44jbq9Bz2L7Rh/J6jLTiHBSBJa9fxqQIvkIld4GsoDOcCbvzOUAbLPsSKKg+uA==", - "dev": true - }, - "@types/ms": { - "version": "0.7.31", - "resolved": "https://registry.npmjs.org/@types/ms/-/ms-0.7.31.tgz", - "integrity": "sha512-iiUgKzV9AuaEkZqkOLDIvlQiL6ltuZd9tGcW3gwpnX8JbuiuhFlEGmmFXEXkN50Cvq7Os88IY2v0dkDqXYWVgA==", - "dev": true - }, - "@types/node": { - "version": "18.11.18", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.11.18.tgz", - "integrity": "sha512-DHQpWGjyQKSHj3ebjFI/wRKcqQcdR+MoFBygntYOZytCqNfkd2ZC4ARDJ2DQqhjH5p85Nnd3jhUJIXrszFX/JA==", - "dev": true - }, - "@types/oauth": { - "version": "0.9.1", - "resolved": "https://registry.npmjs.org/@types/oauth/-/oauth-0.9.1.tgz", - "integrity": "sha512-a1iY62/a3yhZ7qH7cNUsxoI3U/0Fe9+RnuFrpTKr+0WVOzbKlSLojShCKe20aOD1Sppv+i8Zlq0pLDuTJnwS4A==", - "dev": true, - "requires": { - "@types/node": "*" - } - }, - "@types/qs": { - "version": "6.9.7", - "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.9.7.tgz", - "integrity": "sha512-FGa1F62FT09qcrueBA6qYTrJPVDzah9a+493+o2PCXsesWHIn27G98TsSMs3WPNbZIEj4+VJf6saSFpvD+3Zsw==", - "dev": true - }, - "@types/range-parser": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.4.tgz", - "integrity": "sha512-EEhsLsD6UsDM1yFhAvy0Cjr6VwmpMWqFBCb9w07wVugF7w9nfajxLuVmngTIpgS6svCnm6Vaw+MZhoDCKnOfsw==", - "dev": true - }, - "@types/semver": { - "version": "7.3.13", - "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.3.13.tgz", - "integrity": "sha512-21cFJr9z3g5dW8B0CVI9g2O9beqaThGQ6ZFBqHfwhzLDKUxaqTIy3vnfah/UPkfOiF2pLq+tGz+W8RyCskuslw==", - "dev": true - }, - "@types/serve-static": { - "version": "1.15.0", - "resolved": "https://registry.npmjs.org/@types/serve-static/-/serve-static-1.15.0.tgz", - "integrity": "sha512-z5xyF6uh8CbjAu9760KDKsH2FcDxZ2tFCsA4HIMWE6IkiYMXfVoa+4f9KX+FN0ZLsaMw1WNG2ETLA6N+/YA+cg==", - "dev": true, - "requires": { - "@types/mime": "*", - "@types/node": "*" - } - }, - "@types/sinon": { - "version": "10.0.13", - "resolved": "https://registry.npmjs.org/@types/sinon/-/sinon-10.0.13.tgz", - "integrity": "sha512-UVjDqJblVNQYvVNUsj0PuYYw0ELRmgt1Nt5Vk0pT5f16ROGfcKJY8o1HVuMOJOpD727RrGB9EGvoaTQE5tgxZQ==", - "dev": true, - "requires": { - "@types/sinonjs__fake-timers": "*" - } - }, - "@types/sinonjs__fake-timers": { - "version": "8.1.2", - "resolved": "https://registry.npmjs.org/@types/sinonjs__fake-timers/-/sinonjs__fake-timers-8.1.2.tgz", - "integrity": "sha512-9GcLXF0/v3t80caGs5p2rRfkB+a8VBGLJZVih6CNFkx8IZ994wiKKLSRs9nuFwk1HevWs/1mnUmkApGrSGsShA==", - "dev": true - }, - "@types/unist": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.6.tgz", - "integrity": "sha512-PBjIUxZHOuj0R15/xuwJYjFi+KZdNFrehocChv4g5hu6aFroHue8m0lBP0POdK2nKzbw0cgV1mws8+V/JAcEkQ==", - "dev": true - }, - "@typescript-eslint/eslint-plugin": { - "version": "5.48.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.48.0.tgz", - "integrity": "sha512-SVLafp0NXpoJY7ut6VFVUU9I+YeFsDzeQwtK0WZ+xbRN3mtxJ08je+6Oi2N89qDn087COdO0u3blKZNv9VetRQ==", - "dev": true, - "requires": { - "@typescript-eslint/scope-manager": "5.48.0", - "@typescript-eslint/type-utils": "5.48.0", - "@typescript-eslint/utils": "5.48.0", - "debug": "^4.3.4", - "ignore": "^5.2.0", - "natural-compare-lite": "^1.4.0", - "regexpp": "^3.2.0", - "semver": "^7.3.7", - "tsutils": "^3.21.0" - } - }, - "@typescript-eslint/parser": { - "version": "5.48.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.48.0.tgz", - "integrity": "sha512-1mxNA8qfgxX8kBvRDIHEzrRGrKHQfQlbW6iHyfHYS0Q4X1af+S6mkLNtgCOsGVl8+/LUPrqdHMssAemkrQ01qg==", - "dev": true, - "requires": { - "@typescript-eslint/scope-manager": "5.48.0", - "@typescript-eslint/types": "5.48.0", - "@typescript-eslint/typescript-estree": "5.48.0", - "debug": "^4.3.4" - } - }, - "@typescript-eslint/scope-manager": { - "version": "5.48.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.48.0.tgz", - "integrity": "sha512-0AA4LviDtVtZqlyUQnZMVHydDATpD9SAX/RC5qh6cBd3xmyWvmXYF+WT1oOmxkeMnWDlUVTwdODeucUnjz3gow==", - "dev": true, - "requires": { - "@typescript-eslint/types": "5.48.0", - "@typescript-eslint/visitor-keys": "5.48.0" - } - }, - "@typescript-eslint/type-utils": { - "version": "5.48.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.48.0.tgz", - "integrity": "sha512-vbtPO5sJyFjtHkGlGK4Sthmta0Bbls4Onv0bEqOGm7hP9h8UpRsHJwsrCiWtCUndTRNQO/qe6Ijz9rnT/DB+7g==", - "dev": true, - "requires": { - "@typescript-eslint/typescript-estree": "5.48.0", - "@typescript-eslint/utils": "5.48.0", - "debug": "^4.3.4", - "tsutils": "^3.21.0" - } - }, - "@typescript-eslint/types": { - "version": "5.48.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.48.0.tgz", - "integrity": "sha512-UTe67B0Ypius0fnEE518NB2N8gGutIlTojeTg4nt0GQvikReVkurqxd2LvYa9q9M5MQ6rtpNyWTBxdscw40Xhw==", - "dev": true - }, - "@typescript-eslint/typescript-estree": { - "version": "5.48.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.48.0.tgz", - "integrity": "sha512-7pjd94vvIjI1zTz6aq/5wwE/YrfIyEPLtGJmRfyNR9NYIW+rOvzzUv3Cmq2hRKpvt6e9vpvPUQ7puzX7VSmsEw==", - "dev": true, - "requires": { - "@typescript-eslint/types": "5.48.0", - "@typescript-eslint/visitor-keys": "5.48.0", - "debug": "^4.3.4", - "globby": "^11.1.0", - "is-glob": "^4.0.3", - "semver": "^7.3.7", - "tsutils": "^3.21.0" - } - }, - "@typescript-eslint/utils": { - "version": "5.48.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.48.0.tgz", - "integrity": "sha512-x2jrMcPaMfsHRRIkL+x96++xdzvrdBCnYRd5QiW5Wgo1OB4kDYPbC1XjWP/TNqlfK93K/lUL92erq5zPLgFScQ==", - "dev": true, - "requires": { - "@types/json-schema": "^7.0.9", - "@types/semver": "^7.3.12", - "@typescript-eslint/scope-manager": "5.48.0", - "@typescript-eslint/types": "5.48.0", - "@typescript-eslint/typescript-estree": "5.48.0", - "eslint-scope": "^5.1.1", - "eslint-utils": "^3.0.0", - "semver": "^7.3.7" - } - }, - "@typescript-eslint/visitor-keys": { - "version": "5.48.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.48.0.tgz", - "integrity": "sha512-5motVPz5EgxQ0bHjut3chzBkJ3Z3sheYVcSwS5BpHZpLqSptSmELNtGixmgj65+rIfhvtQTz5i9OP2vtzdDH7Q==", - "dev": true, - "requires": { - "@typescript-eslint/types": "5.48.0", - "eslint-visitor-keys": "^3.3.0" - } - }, - "acorn": { - "version": "8.8.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.1.tgz", - "integrity": "sha512-7zFpHzhnqYKrkYdUjF1HI1bzd0VygEGX8lFk4k5zVMqHEoES+P+7TKI+EvLO9WVMJ8eekdO0aDEK044xTXwPPA==", - "dev": true - }, - "acorn-jsx": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", - "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", - "dev": true, - "requires": {} - }, - "acorn-walk": { - "version": "8.2.0", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", - "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==", - "dev": true - }, - "aggregate-error": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-4.0.1.tgz", - "integrity": "sha512-0poP0T7el6Vq3rstR8Mn4V/IQrpBLO6POkUSrN7RhyY+GF/InCFShQzsQ39T25gkHhLgSLByyAz+Kjb+c2L98w==", - "dev": true, - "requires": { - "clean-stack": "^4.0.0", - "indent-string": "^5.0.0" - } - }, - "ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "dev": true, - "requires": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - } - }, - "ansi-regex": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz", - "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==", - "dev": true - }, - "ansi-styles": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", - "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", - "dev": true - }, - "anymatch": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", - "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", - "dev": true, - "requires": { - "normalize-path": "^3.0.0", - "picomatch": "^2.0.4" - } - }, - "argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true - }, - "aria-query": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-4.2.2.tgz", - "integrity": "sha512-o/HelwhuKpTj/frsOsbNLNgnNGVIFsVP/SW2BSF14gVl7kAfMOJ6/8wUAUvG1R1NHKrfG+2sHZTu0yauT1qBrA==", - "dev": true, - "peer": true, - "requires": { - "@babel/runtime": "^7.10.2", - "@babel/runtime-corejs3": "^7.10.2" - } - }, - "array-find-index": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/array-find-index/-/array-find-index-1.0.2.tgz", - "integrity": "sha512-M1HQyIXcBGtVywBt8WVdim+lrNaK7VHp99Qt5pSNziXznKHViIBbXWtfRTpEFpF/c4FdfxNAsCCwPp5phBYJtw==", - "dev": true - }, - "array-includes": { - "version": "3.1.6", - "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.6.tgz", - "integrity": "sha512-sgTbLvL6cNnw24FnbaDyjmvddQ2ML8arZsgaJhoABMoplz/4QRhtrYS+alr1BUM1Bwp6dhx8vVCBSLG+StwOFw==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4", - "get-intrinsic": "^1.1.3", - "is-string": "^1.0.7" - } - }, - "array-union": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", - "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", - "dev": true - }, - "array.prototype.flat": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.1.tgz", - "integrity": "sha512-roTU0KWIOmJ4DRLmwKd19Otg0/mT3qPNt0Qb3GWW8iObuZXxrjB/pzn0R3hqpRSWg4HCwqx+0vwOnWnvlOyeIA==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4", - "es-shim-unscopables": "^1.0.0" - } - }, - "array.prototype.flatmap": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.1.tgz", - "integrity": "sha512-8UGn9O1FDVvMNB0UlLv4voxRMze7+FpHyF5mSMRjWHUMlpoDViniy05870VlxhfgTnLbpuwTzvD76MTtWxB/mQ==", - "dev": true, - "peer": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4", - "es-shim-unscopables": "^1.0.0" - } - }, - "array.prototype.tosorted": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/array.prototype.tosorted/-/array.prototype.tosorted-1.1.1.tgz", - "integrity": "sha512-pZYPXPRl2PqWcsUs6LOMn+1f1532nEoPTYowBtqLwAW+W8vSVhkIGnmOX1t/UQjD6YGI0vcD2B1U7ZFGQH9jnQ==", - "dev": true, - "peer": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4", - "es-shim-unscopables": "^1.0.0", - "get-intrinsic": "^1.1.3" - } - }, - "arrgv": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/arrgv/-/arrgv-1.0.2.tgz", - "integrity": "sha512-a4eg4yhp7mmruZDQFqVMlxNRFGi/i1r87pt8SDHy0/I8PqSXoUTlWZRdAZo0VXgvEARcujbtTk8kiZRi1uDGRw==", - "dev": true - }, - "arrify": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/arrify/-/arrify-3.0.0.tgz", - "integrity": "sha512-tLkvA81vQG/XqE2mjDkGQHoOINtMHtysSnemrmoGe6PydDPMRbVugqyk4A6V/WDWEfm3l+0d8anA9r8cv/5Jaw==", - "dev": true - }, - "ast-types-flow": { - "version": "0.0.7", - "resolved": "https://registry.npmjs.org/ast-types-flow/-/ast-types-flow-0.0.7.tgz", - "integrity": "sha512-eBvWn1lvIApYMhzQMsu9ciLfkBY499mFZlNqG+/9WR7PVlroQw0vG30cOQQbaKz3sCEc44TAOu2ykzqXSNnwag==", - "dev": true, - "peer": true - }, - "asynckit": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" - }, - "atlassian-jwt": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/atlassian-jwt/-/atlassian-jwt-2.0.2.tgz", - "integrity": "sha512-HgG2p+gJeEqKREnPynEDy76UoShF01jTYMSe0NlRL2rEqXBNDzJiiCyUP7P2cbxcRmI4OC8g40zJjqftFNJ/4A==", - "requires": { - "jsuri": "^1.3.1", - "lodash": "^4.17.21" - } - }, - "ava": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/ava/-/ava-5.1.0.tgz", - "integrity": "sha512-e5VFrSQ0WBPyZJWRXVrO7RFOizFeNM0t2PORwrPvWtApgkORI6cvGnY3GX1G+lzpd0HjqNx5Jus22AhxVnUMNA==", - "dev": true, - "requires": { - "acorn": "^8.8.1", - "acorn-walk": "^8.2.0", - "ansi-styles": "^6.2.1", - "arrgv": "^1.0.2", - "arrify": "^3.0.0", - "callsites": "^4.0.0", - "cbor": "^8.1.0", - "chalk": "^5.1.2", - "chokidar": "^3.5.3", - "chunkd": "^2.0.1", - "ci-info": "^3.6.1", - "ci-parallel-vars": "^1.0.1", - "clean-yaml-object": "^0.1.0", - "cli-truncate": "^3.1.0", - "code-excerpt": "^4.0.0", - "common-path-prefix": "^3.0.0", - "concordance": "^5.0.4", - "currently-unhandled": "^0.4.1", - "debug": "^4.3.4", - "del": "^7.0.0", - "emittery": "^1.0.1", - "figures": "^5.0.0", - "globby": "^13.1.2", - "ignore-by-default": "^2.1.0", - "indent-string": "^5.0.0", - "is-error": "^2.2.2", - "is-plain-object": "^5.0.0", - "is-promise": "^4.0.0", - "matcher": "^5.0.0", - "mem": "^9.0.2", - "ms": "^2.1.3", - "p-event": "^5.0.1", - "p-map": "^5.5.0", - "picomatch": "^2.3.1", - "pkg-conf": "^4.0.0", - "plur": "^5.1.0", - "pretty-ms": "^8.0.0", - "resolve-cwd": "^3.0.0", - "slash": "^3.0.0", - "stack-utils": "^2.0.6", - "strip-ansi": "^7.0.1", - "supertap": "^3.0.1", - "temp-dir": "^3.0.0", - "write-file-atomic": "^5.0.0", - "yargs": "^17.6.2" - }, - "dependencies": { - "globby": { - "version": "13.1.3", - "resolved": "https://registry.npmjs.org/globby/-/globby-13.1.3.tgz", - "integrity": "sha512-8krCNHXvlCgHDpegPzleMq07yMYTO2sXKASmZmquEYWEmCx6J5UTRbp5RwMJkTJGtcQ44YpiUYUiN0b9mzy8Bw==", - "dev": true, - "requires": { - "dir-glob": "^3.0.1", - "fast-glob": "^3.2.11", - "ignore": "^5.2.0", - "merge2": "^1.4.1", - "slash": "^4.0.0" - }, - "dependencies": { - "slash": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-4.0.0.tgz", - "integrity": "sha512-3dOsAHXXUkQTpOYcoAxLIorMTp4gIQr5IW3iVb7A7lFIp0VHhnynm9izx6TssdrIcVIESAlVjtnO2K8bg+Coew==", - "dev": true - } - } - } - } - }, - "axe-core": { - "version": "4.6.1", - "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.6.1.tgz", - "integrity": "sha512-lCZN5XRuOnpG4bpMq8v0khrWtUOn+i8lZSb6wHZH56ZfbIEv6XwJV84AAueh9/zi7qPVJ/E4yz6fmsiyOmXR4w==", - "dev": true, - "peer": true - }, - "axios": { - "version": "0.27.2", - "resolved": "https://registry.npmjs.org/axios/-/axios-0.27.2.tgz", - "integrity": "sha512-t+yRIyySRTp/wua5xEr+z1q60QmLq8ABsS5O9Me1AsE5dfKqgnCFzwiCZZ/cGNd1lq4/7akDWMxdhVlucjmnOQ==", - "requires": { - "follow-redirects": "^1.14.9", - "form-data": "^4.0.0" - } - }, - "axobject-query": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-2.2.0.tgz", - "integrity": "sha512-Td525n+iPOOyUQIeBfcASuG6uJsDOITl7Mds5gFyerkWiX7qhUTdYUBlSgNMyVqtSJqwpt1kXGLdUt6SykLMRA==", - "dev": true, - "peer": true - }, - "balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "dev": true - }, - "binary-extensions": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", - "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", - "dev": true - }, - "binary-searching": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/binary-searching/-/binary-searching-2.0.5.tgz", - "integrity": "sha512-v4N2l3RxL+m4zDxyxz3Ne2aTmiPn8ZUpKFpdPtO+ItW1NcTCXA7JeHG5GMBSvoKSkQZ9ycS+EouDVxYB9ufKWA==", - "dev": true - }, - "blueimp-md5": { - "version": "2.19.0", - "resolved": "https://registry.npmjs.org/blueimp-md5/-/blueimp-md5-2.19.0.tgz", - "integrity": "sha512-DRQrD6gJyy8FbiE4s+bDoXS9hiW3Vbx5uCdwvcCf3zLHL+Iv7LtGHLpr+GZV8rHG8tK766FGYBwRbu8pELTt+w==", - "dev": true - }, - "brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, - "requires": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", - "dev": true, - "requires": { - "fill-range": "^7.0.1" - } - }, - "buffer-from": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", - "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", - "dev": true - }, - "call-bind": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", - "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", - "dev": true, - "requires": { - "function-bind": "^1.1.1", - "get-intrinsic": "^1.0.2" - } - }, - "callsites": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-4.0.0.tgz", - "integrity": "sha512-y3jRROutgpKdz5vzEhWM34TidDU8vkJppF8dszITeb1PQmSqV3DTxyV8G/lyO/DNvtE1YTedehmw9MPZsCBHxQ==", - "dev": true - }, - "cbor": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/cbor/-/cbor-8.1.0.tgz", - "integrity": "sha512-DwGjNW9omn6EwP70aXsn7FQJx5kO12tX0bZkaTjzdVFM6/7nhA4t0EENocKGx6D2Bch9PE2KzCUf5SceBdeijg==", - "dev": true, - "requires": { - "nofilter": "^3.1.0" - } - }, - "chalk": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.2.0.tgz", - "integrity": "sha512-ree3Gqw/nazQAPuJJEy+avdl7QfZMcUvmHIKgEZkGL+xOBzRvup5Hxo6LHuMceSxOabuJLJm5Yp/92R9eMmMvA==", - "dev": true - }, - "character-entities": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/character-entities/-/character-entities-2.0.2.tgz", - "integrity": "sha512-shx7oQ0Awen/BRIdkjkvz54PnEEI/EjwXDSIZp86/KKdbafHh1Df/RYGBhn4hbe2+uKC9FnT5UCEdyPz3ai9hQ==", - "dev": true - }, - "chokidar": { - "version": "3.5.3", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", - "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", - "dev": true, - "requires": { - "anymatch": "~3.1.2", - "braces": "~3.0.2", - "fsevents": "~2.3.2", - "glob-parent": "~5.1.2", - "is-binary-path": "~2.1.0", - "is-glob": "~4.0.1", - "normalize-path": "~3.0.0", - "readdirp": "~3.6.0" - } - }, - "chunkd": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/chunkd/-/chunkd-2.0.1.tgz", - "integrity": "sha512-7d58XsFmOq0j6el67Ug9mHf9ELUXsQXYJBkyxhH/k+6Ke0qXRnv0kbemx+Twc6fRJ07C49lcbdgm9FL1Ei/6SQ==", - "dev": true - }, - "ci-info": { - "version": "3.7.1", - "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.7.1.tgz", - "integrity": "sha512-4jYS4MOAaCIStSRwiuxc4B8MYhIe676yO1sYGzARnjXkWpmzZMMYxY6zu8WYWDhSuth5zhrQ1rhNSibyyvv4/w==", - "dev": true - }, - "ci-parallel-vars": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/ci-parallel-vars/-/ci-parallel-vars-1.0.1.tgz", - "integrity": "sha512-uvzpYrpmidaoxvIQHM+rKSrigjOe9feHYbw4uOI2gdfe1C3xIlxO+kVXq83WQWNniTf8bAxVpy+cQeFQsMERKg==", - "dev": true - }, - "clean-stack": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-4.2.0.tgz", - "integrity": "sha512-LYv6XPxoyODi36Dp976riBtSY27VmFo+MKqEU9QCCWyTrdEPDog+RWA7xQWHi6Vbp61j5c4cdzzX1NidnwtUWg==", - "dev": true, - "requires": { - "escape-string-regexp": "5.0.0" - }, - "dependencies": { - "escape-string-regexp": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-5.0.0.tgz", - "integrity": "sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw==", - "dev": true - } - } - }, - "clean-yaml-object": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/clean-yaml-object/-/clean-yaml-object-0.1.0.tgz", - "integrity": "sha512-3yONmlN9CSAkzNwnRCiJQ7Q2xK5mWuEfL3PuTZcAUzhObbXsfsnMptJzXwz93nc5zn9V9TwCVMmV7w4xsm43dw==", - "dev": true - }, - "cli-truncate": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/cli-truncate/-/cli-truncate-3.1.0.tgz", - "integrity": "sha512-wfOBkjXteqSnI59oPcJkcPl/ZmwvMMOj340qUIY1SKZCv0B9Cf4D4fAucRkIKQmsIuYK3x1rrgU7MeGRruiuiA==", - "dev": true, - "requires": { - "slice-ansi": "^5.0.0", - "string-width": "^5.0.0" - } - }, - "cliui": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", - "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", - "dev": true, - "requires": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.1", - "wrap-ansi": "^7.0.0" - }, - "dependencies": { - "ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true - }, - "emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true - }, - "is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true - }, - "string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "requires": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - } - }, - "strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "requires": { - "ansi-regex": "^5.0.1" - } - } - } - }, - "code-excerpt": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/code-excerpt/-/code-excerpt-4.0.0.tgz", - "integrity": "sha512-xxodCmBen3iy2i0WtAK8FlFNrRzjUqjRsMfho58xT/wvZU1YTM3fCnRjcy1gJPMepaRlgm/0e6w8SpWHpn3/cA==", - "dev": true, - "requires": { - "convert-to-spaces": "^2.0.1" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "colorette": { - "version": "2.0.19", - "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.19.tgz", - "integrity": "sha512-3tlv/dIP7FWvj3BsbHrGLJ6l/oKh1O3TcgBqMn+yyCagOxc23fyzDS6HypQbgxWbkpDnf52p1LuR4eWDQ/K9WQ==", - "dev": true - }, - "combined-stream": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", - "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", - "requires": { - "delayed-stream": "~1.0.0" - } - }, - "comment-parser": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/comment-parser/-/comment-parser-1.3.1.tgz", - "integrity": "sha512-B52sN2VNghyq5ofvUsqZjmk6YkihBX5vMSChmSK9v4ShjKf3Vk5Xcmgpw4o+iIgtrnM/u5FiMpz9VKb8lpBveA==", - "dev": true - }, - "common-path-prefix": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/common-path-prefix/-/common-path-prefix-3.0.0.tgz", - "integrity": "sha512-QE33hToZseCH3jS0qN96O/bSh3kaw/h+Tq7ngyY9eWDUnTlTNUyqfqvCXioLe5Na5jFsL78ra/wuBU4iuEgd4w==", - "dev": true - }, - "concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", - "dev": true - }, - "concordance": { - "version": "5.0.4", - "resolved": "https://registry.npmjs.org/concordance/-/concordance-5.0.4.tgz", - "integrity": "sha512-OAcsnTEYu1ARJqWVGwf4zh4JDfHZEaSNlNccFmt8YjB2l/n19/PF2viLINHc57vO4FKIAFl2FWASIGZZWZ2Kxw==", - "dev": true, - "requires": { - "date-time": "^3.1.0", - "esutils": "^2.0.3", - "fast-diff": "^1.2.0", - "js-string-escape": "^1.0.1", - "lodash": "^4.17.15", - "md5-hex": "^3.0.1", - "semver": "^7.3.2", - "well-known-symbols": "^2.0.0" - } - }, - "confusing-browser-globals": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/confusing-browser-globals/-/confusing-browser-globals-1.0.11.tgz", - "integrity": "sha512-JsPKdmh8ZkmnHxDk55FZ1TqVLvEQTvoByJZRN9jzI0UjxK/QgAmsphz7PGtqgPieQZ/CQcHWXCR7ATDNhGe+YA==", - "dev": true - }, - "convert-to-spaces": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/convert-to-spaces/-/convert-to-spaces-2.0.1.tgz", - "integrity": "sha512-rcQ1bsQO9799wq24uE5AM2tAILy4gXGIK/njFWcVQkGNZ96edlpY+A7bjwvzjYvLDyzmG1MmMLZhpcsb+klNMQ==", - "dev": true - }, - "core-js-pure": { - "version": "3.27.1", - "resolved": "https://registry.npmjs.org/core-js-pure/-/core-js-pure-3.27.1.tgz", - "integrity": "sha512-BS2NHgwwUppfeoqOXqi08mUqS5FiZpuRuJJpKsaME7kJz0xxuk0xkhDdfMIlP/zLa80krBqss1LtD7f889heAw==", - "dev": true, - "peer": true - }, - "cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", - "dev": true, - "requires": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - } - }, - "currently-unhandled": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/currently-unhandled/-/currently-unhandled-0.4.1.tgz", - "integrity": "sha512-/fITjgjGU50vjQ4FH6eUoYu+iUoUKIXws2hL15JJpIR+BbTxaXQsMuuyjtNh2WqsSBS5nsaZHFsFecyw5CCAng==", - "dev": true, - "requires": { - "array-find-index": "^1.0.1" - } - }, - "damerau-levenshtein": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/damerau-levenshtein/-/damerau-levenshtein-1.0.8.tgz", - "integrity": "sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA==", - "dev": true, - "peer": true - }, - "date-time": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/date-time/-/date-time-3.1.0.tgz", - "integrity": "sha512-uqCUKXE5q1PNBXjPqvwhwJf9SwMoAHBgWJ6DcrnS5o+W2JOiIILl0JEdVD8SGujrNS02GGxgwAg2PN2zONgtjg==", - "dev": true, - "requires": { - "time-zone": "^1.0.0" - } - }, - "debug": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", - "dev": true, - "requires": { - "ms": "2.1.2" - }, - "dependencies": { - "ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", - "dev": true - } - } - }, - "decode-named-character-reference": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/decode-named-character-reference/-/decode-named-character-reference-1.0.2.tgz", - "integrity": "sha512-O8x12RzrUF8xyVcY0KJowWsmaJxQbmy0/EtnNtHRpsOcT7dFk5W598coHqBVpmWo1oQQfsCqfCmkZN5DJrZVdg==", - "dev": true, - "requires": { - "character-entities": "^2.0.0" - } - }, - "deep-is": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", - "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", - "dev": true - }, - "define-lazy-prop": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz", - "integrity": "sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==", - "dev": true - }, - "define-properties": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.4.tgz", - "integrity": "sha512-uckOqKcfaVvtBdsVkdPv3XjveQJsNQqmhXgRi8uhvWWuPYZCNlzT8qAyblUgNoXdHdjMTzAqeGjAoli8f+bzPA==", - "dev": true, - "requires": { - "has-property-descriptors": "^1.0.0", - "object-keys": "^1.1.1" - } - }, - "del": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/del/-/del-7.0.0.tgz", - "integrity": "sha512-tQbV/4u5WVB8HMJr08pgw0b6nG4RGt/tj+7Numvq+zqcvUFeMaIWWOUFltiU+6go8BSO2/ogsB4EasDaj0y68Q==", - "dev": true, - "requires": { - "globby": "^13.1.2", - "graceful-fs": "^4.2.10", - "is-glob": "^4.0.3", - "is-path-cwd": "^3.0.0", - "is-path-inside": "^4.0.0", - "p-map": "^5.5.0", - "rimraf": "^3.0.2", - "slash": "^4.0.0" - }, - "dependencies": { - "globby": { - "version": "13.1.3", - "resolved": "https://registry.npmjs.org/globby/-/globby-13.1.3.tgz", - "integrity": "sha512-8krCNHXvlCgHDpegPzleMq07yMYTO2sXKASmZmquEYWEmCx6J5UTRbp5RwMJkTJGtcQ44YpiUYUiN0b9mzy8Bw==", - "dev": true, - "requires": { - "dir-glob": "^3.0.1", - "fast-glob": "^3.2.11", - "ignore": "^5.2.0", - "merge2": "^1.4.1", - "slash": "^4.0.0" - } - }, - "slash": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-4.0.0.tgz", - "integrity": "sha512-3dOsAHXXUkQTpOYcoAxLIorMTp4gIQr5IW3iVb7A7lFIp0VHhnynm9izx6TssdrIcVIESAlVjtnO2K8bg+Coew==", - "dev": true - } - } - }, - "delayed-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==" - }, - "dequal": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz", - "integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==", - "dev": true - }, - "diff": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/diff/-/diff-5.1.0.tgz", - "integrity": "sha512-D+mk+qE8VC/PAUrlAU34N+VfXev0ghe5ywmpqrawphmVZc1bEfn56uo9qpyGp1p4xpzOHkSW4ztBd6L7Xx4ACw==", - "dev": true - }, - "dir-glob": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", - "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", - "dev": true, - "requires": { - "path-type": "^4.0.0" - } - }, - "doctrine": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", - "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", - "dev": true, - "requires": { - "esutils": "^2.0.2" - } - }, - "dotenv": { - "version": "16.0.3", - "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.0.3.tgz", - "integrity": "sha512-7GO6HghkA5fYG9TYnNxi14/7K9f5occMlp3zXAuSxn7CKCxt9xbNWG7yF8hTCSUchlfWSe3uLmlPfigevRItzQ==", - "dev": true - }, - "eastasianwidth": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", - "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", - "dev": true - }, - "emittery": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/emittery/-/emittery-1.0.1.tgz", - "integrity": "sha512-2ID6FdrMD9KDLldGesP6317G78K7km/kMcwItRtVFva7I/cSEOIaLpewaUb+YLXVwdAp3Ctfxh/V5zIl1sj7dQ==", - "dev": true - }, - "emoji-regex": { - "version": "9.2.2", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", - "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", - "dev": true - }, - "enhanced-resolve": { - "version": "5.12.0", - "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.12.0.tgz", - "integrity": "sha512-QHTXI/sZQmko1cbDoNAa3mJ5qhWUUNAq3vR0/YiD379fWQrcfuoX1+HW2S0MTt7XmoPLapdaDKUtelUSPic7hQ==", - "dev": true, - "requires": { - "graceful-fs": "^4.2.4", - "tapable": "^2.2.0" - } - }, - "es-abstract": { - "version": "1.20.5", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.20.5.tgz", - "integrity": "sha512-7h8MM2EQhsCA7pU/Nv78qOXFpD8Rhqd12gYiSJVkrH9+e8VuA8JlPJK/hQjjlLv6pJvx/z1iRFKzYb0XT/RuAQ==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "es-to-primitive": "^1.2.1", - "function-bind": "^1.1.1", - "function.prototype.name": "^1.1.5", - "get-intrinsic": "^1.1.3", - "get-symbol-description": "^1.0.0", - "gopd": "^1.0.1", - "has": "^1.0.3", - "has-property-descriptors": "^1.0.0", - "has-symbols": "^1.0.3", - "internal-slot": "^1.0.3", - "is-callable": "^1.2.7", - "is-negative-zero": "^2.0.2", - "is-regex": "^1.1.4", - "is-shared-array-buffer": "^1.0.2", - "is-string": "^1.0.7", - "is-weakref": "^1.0.2", - "object-inspect": "^1.12.2", - "object-keys": "^1.1.1", - "object.assign": "^4.1.4", - "regexp.prototype.flags": "^1.4.3", - "safe-regex-test": "^1.0.0", - "string.prototype.trimend": "^1.0.6", - "string.prototype.trimstart": "^1.0.6", - "unbox-primitive": "^1.0.2" - } - }, - "es-shim-unscopables": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.0.0.tgz", - "integrity": "sha512-Jm6GPcCdC30eMLbZ2x8z2WuRwAws3zTBBKuusffYVUrNj/GVSUAZ+xKMaUpfNDR5IbyNA5LJbaecoUVbmUcB1w==", - "dev": true, - "requires": { - "has": "^1.0.3" - } - }, - "es-to-primitive": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", - "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", - "dev": true, - "requires": { - "is-callable": "^1.1.4", - "is-date-object": "^1.0.1", - "is-symbol": "^1.0.2" - } - }, - "escalade": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", - "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", - "dev": true - }, - "escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "dev": true - }, - "eslint": { - "version": "8.31.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.31.0.tgz", - "integrity": "sha512-0tQQEVdmPZ1UtUKXjX7EMm9BlgJ08G90IhWh0PKDCb3ZLsgAOHI8fYSIzYVZej92zsgq+ft0FGsxhJ3xo2tbuA==", - "dev": true, - "requires": { - "@eslint/eslintrc": "^1.4.1", - "@humanwhocodes/config-array": "^0.11.8", - "@humanwhocodes/module-importer": "^1.0.1", - "@nodelib/fs.walk": "^1.2.8", - "ajv": "^6.10.0", - "chalk": "^4.0.0", - "cross-spawn": "^7.0.2", - "debug": "^4.3.2", - "doctrine": "^3.0.0", - "escape-string-regexp": "^4.0.0", - "eslint-scope": "^7.1.1", - "eslint-utils": "^3.0.0", - "eslint-visitor-keys": "^3.3.0", - "espree": "^9.4.0", - "esquery": "^1.4.0", - "esutils": "^2.0.2", - "fast-deep-equal": "^3.1.3", - "file-entry-cache": "^6.0.1", - "find-up": "^5.0.0", - "glob-parent": "^6.0.2", - "globals": "^13.19.0", - "grapheme-splitter": "^1.0.4", - "ignore": "^5.2.0", - "import-fresh": "^3.0.0", - "imurmurhash": "^0.1.4", - "is-glob": "^4.0.0", - "is-path-inside": "^3.0.3", - "js-sdsl": "^4.1.4", - "js-yaml": "^4.1.0", - "json-stable-stringify-without-jsonify": "^1.0.1", - "levn": "^0.4.1", - "lodash.merge": "^4.6.2", - "minimatch": "^3.1.2", - "natural-compare": "^1.4.0", - "optionator": "^0.9.1", - "regexpp": "^3.2.0", - "strip-ansi": "^6.0.1", - "strip-json-comments": "^3.1.0", - "text-table": "^0.2.0" - }, - "dependencies": { - "ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true - }, - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "eslint-scope": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.1.1.tgz", - "integrity": "sha512-QKQM/UXpIiHcLqJ5AOyIW7XZmzjkzQXYE54n1++wb0u9V/abW3l9uQnxX8Z5Xd18xyKIMTUAyQ0k1e8pz6LUrw==", - "dev": true, - "requires": { - "esrecurse": "^4.3.0", - "estraverse": "^5.2.0" - } - }, - "glob-parent": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", - "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", - "dev": true, - "requires": { - "is-glob": "^4.0.3" - } - }, - "is-path-inside": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", - "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", - "dev": true - }, - "strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "requires": { - "ansi-regex": "^5.0.1" - } - } - } - }, - "eslint-config-airbnb": { - "version": "19.0.4", - "resolved": "https://registry.npmjs.org/eslint-config-airbnb/-/eslint-config-airbnb-19.0.4.tgz", - "integrity": "sha512-T75QYQVQX57jiNgpF9r1KegMICE94VYwoFQyMGhrvc+lB8YF2E/M/PYDaQe1AJcWaEgqLE+ErXV1Og/+6Vyzew==", - "dev": true, - "requires": { - "eslint-config-airbnb-base": "^15.0.0", - "object.assign": "^4.1.2", - "object.entries": "^1.1.5" - } - }, - "eslint-config-airbnb-base": { - "version": "15.0.0", - "resolved": "https://registry.npmjs.org/eslint-config-airbnb-base/-/eslint-config-airbnb-base-15.0.0.tgz", - "integrity": "sha512-xaX3z4ZZIcFLvh2oUNvcX5oEofXda7giYmuplVxoOg5A7EXJMrUyqRgR+mhDhPK8LZ4PttFOBvCYDbX3sUoUig==", - "dev": true, - "requires": { - "confusing-browser-globals": "^1.0.10", - "object.assign": "^4.1.2", - "object.entries": "^1.1.5", - "semver": "^6.3.0" - }, - "dependencies": { - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - } - } - }, - "eslint-config-airbnb-typescript": { - "version": "17.0.0", - "resolved": "https://registry.npmjs.org/eslint-config-airbnb-typescript/-/eslint-config-airbnb-typescript-17.0.0.tgz", - "integrity": "sha512-elNiuzD0kPAPTXjFWg+lE24nMdHMtuxgYoD30OyMD6yrW1AhFZPAg27VX7d3tzOErw+dgJTNWfRSDqEcXb4V0g==", - "dev": true, - "requires": { - "eslint-config-airbnb-base": "^15.0.0" - } - }, - "eslint-import-resolver-node": { - "version": "0.3.6", - "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.6.tgz", - "integrity": "sha512-0En0w03NRVMn9Uiyn8YRPDKvWjxCWkslUEhGNTdGx15RvPJYQ+lbOlqrlNI2vEAs4pDYK4f/HN2TbDmk5TP0iw==", - "dev": true, - "requires": { - "debug": "^3.2.7", - "resolve": "^1.20.0" - }, - "dependencies": { - "debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dev": true, - "requires": { - "ms": "^2.1.1" - } - } - } - }, - "eslint-import-resolver-typescript": { - "version": "3.5.2", - "resolved": "https://registry.npmjs.org/eslint-import-resolver-typescript/-/eslint-import-resolver-typescript-3.5.2.tgz", - "integrity": "sha512-zX4ebnnyXiykjhcBvKIf5TNvt8K7yX6bllTRZ14MiurKPjDpCAZujlszTdB8pcNXhZcOf+god4s9SjQa5GnytQ==", - "dev": true, - "requires": { - "debug": "^4.3.4", - "enhanced-resolve": "^5.10.0", - "get-tsconfig": "^4.2.0", - "globby": "^13.1.2", - "is-core-module": "^2.10.0", - "is-glob": "^4.0.3", - "synckit": "^0.8.4" - }, - "dependencies": { - "globby": { - "version": "13.1.3", - "resolved": "https://registry.npmjs.org/globby/-/globby-13.1.3.tgz", - "integrity": "sha512-8krCNHXvlCgHDpegPzleMq07yMYTO2sXKASmZmquEYWEmCx6J5UTRbp5RwMJkTJGtcQ44YpiUYUiN0b9mzy8Bw==", - "dev": true, - "requires": { - "dir-glob": "^3.0.1", - "fast-glob": "^3.2.11", - "ignore": "^5.2.0", - "merge2": "^1.4.1", - "slash": "^4.0.0" - } - }, - "slash": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-4.0.0.tgz", - "integrity": "sha512-3dOsAHXXUkQTpOYcoAxLIorMTp4gIQr5IW3iVb7A7lFIp0VHhnynm9izx6TssdrIcVIESAlVjtnO2K8bg+Coew==", - "dev": true - } - } - }, - "eslint-module-utils": { - "version": "2.7.4", - "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.7.4.tgz", - "integrity": "sha512-j4GT+rqzCoRKHwURX7pddtIPGySnX9Si/cgMI5ztrcqOPtk5dDEeZ34CQVPphnqkJytlc97Vuk05Um2mJ3gEQA==", - "dev": true, - "requires": { - "debug": "^3.2.7" - }, - "dependencies": { - "debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dev": true, - "requires": { - "ms": "^2.1.1" - } - } - } - }, - "eslint-plugin-import": { - "version": "2.26.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.26.0.tgz", - "integrity": "sha512-hYfi3FXaM8WPLf4S1cikh/r4IxnO6zrhZbEGz2b660EJRbuxgpDS5gkCuYgGWg2xxh2rBuIr4Pvhve/7c31koA==", - "dev": true, - "requires": { - "array-includes": "^3.1.4", - "array.prototype.flat": "^1.2.5", - "debug": "^2.6.9", - "doctrine": "^2.1.0", - "eslint-import-resolver-node": "^0.3.6", - "eslint-module-utils": "^2.7.3", - "has": "^1.0.3", - "is-core-module": "^2.8.1", - "is-glob": "^4.0.3", - "minimatch": "^3.1.2", - "object.values": "^1.1.5", - "resolve": "^1.22.0", - "tsconfig-paths": "^3.14.1" - }, - "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "doctrine": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", - "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", - "dev": true, - "requires": { - "esutils": "^2.0.2" - } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "dev": true - } - } - }, - "eslint-plugin-jsx-a11y": { - "version": "6.6.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.6.1.tgz", - "integrity": "sha512-sXgFVNHiWffBq23uiS/JaP6eVR622DqwB4yTzKvGZGcPq6/yZ3WmOZfuBks/vHWo9GaFOqC2ZK4i6+C35knx7Q==", - "dev": true, - "peer": true, - "requires": { - "@babel/runtime": "^7.18.9", - "aria-query": "^4.2.2", - "array-includes": "^3.1.5", - "ast-types-flow": "^0.0.7", - "axe-core": "^4.4.3", - "axobject-query": "^2.2.0", - "damerau-levenshtein": "^1.0.8", - "emoji-regex": "^9.2.2", - "has": "^1.0.3", - "jsx-ast-utils": "^3.3.2", - "language-tags": "^1.0.5", - "minimatch": "^3.1.2", - "semver": "^6.3.0" - }, - "dependencies": { - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true, - "peer": true - } - } - }, - "eslint-plugin-react": { - "version": "7.31.11", - "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.31.11.tgz", - "integrity": "sha512-TTvq5JsT5v56wPa9OYHzsrOlHzKZKjV+aLgS+55NJP/cuzdiQPC7PfYoUjMoxlffKtvijpk7vA/jmuqRb9nohw==", - "dev": true, - "peer": true, - "requires": { - "array-includes": "^3.1.6", - "array.prototype.flatmap": "^1.3.1", - "array.prototype.tosorted": "^1.1.1", - "doctrine": "^2.1.0", - "estraverse": "^5.3.0", - "jsx-ast-utils": "^2.4.1 || ^3.0.0", - "minimatch": "^3.1.2", - "object.entries": "^1.1.6", - "object.fromentries": "^2.0.6", - "object.hasown": "^1.1.2", - "object.values": "^1.1.6", - "prop-types": "^15.8.1", - "resolve": "^2.0.0-next.3", - "semver": "^6.3.0", - "string.prototype.matchall": "^4.0.8" - }, - "dependencies": { - "doctrine": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", - "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", - "dev": true, - "peer": true, - "requires": { - "esutils": "^2.0.2" - } - }, - "resolve": { - "version": "2.0.0-next.4", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-2.0.0-next.4.tgz", - "integrity": "sha512-iMDbmAWtfU+MHpxt/I5iWI7cY6YVEZUQ3MBgPQ++XD1PELuJHIl82xBmObyP2KyQmkNB2dsqF7seoQQiAn5yDQ==", - "dev": true, - "peer": true, - "requires": { - "is-core-module": "^2.9.0", - "path-parse": "^1.0.7", - "supports-preserve-symlinks-flag": "^1.0.0" - } - }, - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true, - "peer": true - } - } - }, - "eslint-plugin-react-hooks": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.6.0.tgz", - "integrity": "sha512-oFc7Itz9Qxh2x4gNHStv3BqJq54ExXmfC+a1NjAta66IAN87Wu0R/QArgIS9qKzX3dXKPI9H5crl9QchNMY9+g==", - "dev": true, - "peer": true, - "requires": {} - }, - "eslint-scope": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", - "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", - "dev": true, - "requires": { - "esrecurse": "^4.3.0", - "estraverse": "^4.1.1" - }, - "dependencies": { - "estraverse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", - "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", - "dev": true - } - } - }, - "eslint-utils": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-3.0.0.tgz", - "integrity": "sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==", - "dev": true, - "requires": { - "eslint-visitor-keys": "^2.0.0" - }, - "dependencies": { - "eslint-visitor-keys": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", - "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", - "dev": true - } - } - }, - "eslint-visitor-keys": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz", - "integrity": "sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA==", - "dev": true - }, - "espree": { - "version": "9.4.1", - "resolved": "https://registry.npmjs.org/espree/-/espree-9.4.1.tgz", - "integrity": "sha512-XwctdmTO6SIvCzd9810yyNzIrOrqNYV9Koizx4C/mRhf9uq0o4yHoCEU/670pOxOL/MSraektvSAji79kX90Vg==", - "dev": true, - "requires": { - "acorn": "^8.8.0", - "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^3.3.0" - } - }, - "esprima": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "dev": true - }, - "esquery": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.4.0.tgz", - "integrity": "sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w==", - "dev": true, - "requires": { - "estraverse": "^5.1.0" - } - }, - "esrecurse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", - "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", - "dev": true, - "requires": { - "estraverse": "^5.2.0" - } - }, - "estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "dev": true - }, - "esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true - }, - "fast-deep-equal": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", - "dev": true - }, - "fast-diff": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.2.0.tgz", - "integrity": "sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w==", - "dev": true - }, - "fast-glob": { - "version": "3.2.12", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.12.tgz", - "integrity": "sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w==", - "dev": true, - "requires": { - "@nodelib/fs.stat": "^2.0.2", - "@nodelib/fs.walk": "^1.2.3", - "glob-parent": "^5.1.2", - "merge2": "^1.3.0", - "micromatch": "^4.0.4" - } - }, - "fast-json-stable-stringify": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", - "dev": true - }, - "fast-levenshtein": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", - "dev": true - }, - "fastq": { - "version": "1.15.0", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz", - "integrity": "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==", - "dev": true, - "requires": { - "reusify": "^1.0.4" - } - }, - "figures": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/figures/-/figures-5.0.0.tgz", - "integrity": "sha512-ej8ksPF4x6e5wvK9yevct0UCXh8TTFlWGVLlgjZuoBH1HwjIfKE/IdL5mq89sFA7zELi1VhKpmtDnrs7zWyeyg==", - "dev": true, - "requires": { - "escape-string-regexp": "^5.0.0", - "is-unicode-supported": "^1.2.0" - }, - "dependencies": { - "escape-string-regexp": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-5.0.0.tgz", - "integrity": "sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw==", - "dev": true - } - } - }, - "file-entry-cache": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", - "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", - "dev": true, - "requires": { - "flat-cache": "^3.0.4" - } - }, - "fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", - "dev": true, - "requires": { - "to-regex-range": "^5.0.1" - } - }, - "find-up": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", - "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", - "dev": true, - "requires": { - "locate-path": "^6.0.0", - "path-exists": "^4.0.0" - } - }, - "flat-cache": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz", - "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==", - "dev": true, - "requires": { - "flatted": "^3.1.0", - "rimraf": "^3.0.2" - } - }, - "flatted": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz", - "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==", - "dev": true - }, - "follow-redirects": { - "version": "1.15.2", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz", - "integrity": "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==" - }, - "form-data": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", - "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", - "requires": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "mime-types": "^2.1.12" - } - }, - "fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", - "dev": true - }, - "fsevents": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", - "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", - "dev": true, - "optional": true - }, - "function-bind": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", - "dev": true - }, - "function.prototype.name": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.5.tgz", - "integrity": "sha512-uN7m/BzVKQnCUF/iW8jYea67v++2u7m5UgENbHRtdDVclOUP+FMPlCNdmk0h/ysGyo2tavMJEDqJAkJdRa1vMA==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.3", - "es-abstract": "^1.19.0", - "functions-have-names": "^1.2.2" - } - }, - "functions-have-names": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", - "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", - "dev": true - }, - "get-caller-file": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", - "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", - "dev": true - }, - "get-intrinsic": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.3.tgz", - "integrity": "sha512-QJVz1Tj7MS099PevUG5jvnt9tSkXN8K14dxQlikJuPt4uD9hHAHjLyLBiLR5zELelBdD9QNRAXZzsJx0WaDL9A==", - "dev": true, - "requires": { - "function-bind": "^1.1.1", - "has": "^1.0.3", - "has-symbols": "^1.0.3" - } - }, - "get-symbol-description": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.0.tgz", - "integrity": "sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.1" - } - }, - "get-tsconfig": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.3.0.tgz", - "integrity": "sha512-YCcF28IqSay3fqpIu5y3Krg/utCBHBeoflkZyHj/QcqI2nrLPC3ZegS9CmIo+hJb8K7aiGsuUl7PwWVjNG2HQQ==", - "dev": true - }, - "glob": { - "version": "7.2.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", - "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", - "dev": true, - "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.1.1", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - } - }, - "glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dev": true, - "requires": { - "is-glob": "^4.0.1" - } - }, - "globals": { - "version": "13.19.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.19.0.tgz", - "integrity": "sha512-dkQ957uSRWHw7CFXLUtUHQI3g3aWApYhfNR2O6jn/907riyTYKVBmxYVROkBcY614FSSeSJh7Xm7SrUWCxvJMQ==", - "dev": true, - "requires": { - "type-fest": "^0.20.2" - } - }, - "globalyzer": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/globalyzer/-/globalyzer-0.1.0.tgz", - "integrity": "sha512-40oNTM9UfG6aBmuKxk/giHn5nQ8RVz/SS4Ir6zgzOv9/qC3kKZ9v4etGTcJbEl/NyVQH7FGU7d+X1egr57Md2Q==", - "dev": true - }, - "globby": { - "version": "11.1.0", - "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", - "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", - "dev": true, - "requires": { - "array-union": "^2.1.0", - "dir-glob": "^3.0.1", - "fast-glob": "^3.2.9", - "ignore": "^5.2.0", - "merge2": "^1.4.1", - "slash": "^3.0.0" - } - }, - "globrex": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/globrex/-/globrex-0.1.2.tgz", - "integrity": "sha512-uHJgbwAMwNFf5mLst7IWLNg14x1CkeqglJb/K3doi4dw6q2IvAAmM/Y81kevy83wP+Sst+nutFTYOGg3d1lsxg==", - "dev": true - }, - "gopd": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", - "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", - "dev": true, - "requires": { - "get-intrinsic": "^1.1.3" - } - }, - "graceful-fs": { - "version": "4.2.10", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz", - "integrity": "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==", - "dev": true - }, - "grapheme-splitter": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz", - "integrity": "sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==", - "dev": true - }, - "has": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", - "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", - "dev": true, - "requires": { - "function-bind": "^1.1.1" - } - }, - "has-bigints": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz", - "integrity": "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "has-property-descriptors": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.0.tgz", - "integrity": "sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ==", - "dev": true, - "requires": { - "get-intrinsic": "^1.1.1" - } - }, - "has-symbols": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", - "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", - "dev": true - }, - "has-tostringtag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz", - "integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==", - "dev": true, - "requires": { - "has-symbols": "^1.0.2" - } - }, - "ignore": { - "version": "5.2.4", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz", - "integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==", - "dev": true - }, - "ignore-by-default": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/ignore-by-default/-/ignore-by-default-2.1.0.tgz", - "integrity": "sha512-yiWd4GVmJp0Q6ghmM2B/V3oZGRmjrKLXvHR3TE1nfoXsmoggllfZUQe74EN0fJdPFZu2NIvNdrMMLm3OsV7Ohw==", - "dev": true - }, - "import-fresh": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", - "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", - "dev": true, - "requires": { - "parent-module": "^1.0.0", - "resolve-from": "^4.0.0" - } - }, - "imurmurhash": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", - "dev": true - }, - "indent-string": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-5.0.0.tgz", - "integrity": "sha512-m6FAo/spmsW2Ab2fU35JTYwtOKa2yAwXSwgjSv1TJzh4Mh7mC3lzAOVLBprb72XsTrgkEIsl7YrFNAiDiRhIGg==", - "dev": true - }, - "inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", - "dev": true, - "requires": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true - }, - "internal-slot": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.4.tgz", - "integrity": "sha512-tA8URYccNzMo94s5MQZgH8NB/XTa6HsOo0MLfXTKKEnHVVdegzaQoFZ7Jp44bdvLvY2waT5dc+j5ICEswhi7UQ==", - "dev": true, - "requires": { - "get-intrinsic": "^1.1.3", - "has": "^1.0.3", - "side-channel": "^1.0.4" - } - }, - "irregular-plurals": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/irregular-plurals/-/irregular-plurals-3.3.0.tgz", - "integrity": "sha512-MVBLKUTangM3EfRPFROhmWQQKRDsrgI83J8GS3jXy+OwYqiR2/aoWndYQ5416jLE3uaGgLH7ncme3X9y09gZ3g==", - "dev": true - }, - "is-bigint": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", - "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==", - "dev": true, - "requires": { - "has-bigints": "^1.0.1" - } - }, - "is-binary-path": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", - "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", - "dev": true, - "requires": { - "binary-extensions": "^2.0.0" - } - }, - "is-boolean-object": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz", - "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - } - }, - "is-callable": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", - "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", - "dev": true - }, - "is-core-module": { - "version": "2.11.0", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.11.0.tgz", - "integrity": "sha512-RRjxlvLDkD1YJwDbroBHMb+cukurkDWNyHx7D3oNB5x9rb5ogcksMC5wHCadcXoo67gVr/+3GFySh3134zi6rw==", - "dev": true, - "requires": { - "has": "^1.0.3" - } - }, - "is-date-object": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz", - "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==", - "dev": true, - "requires": { - "has-tostringtag": "^1.0.0" - } - }, - "is-docker": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", - "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==", - "dev": true - }, - "is-error": { - "version": "2.2.2", - "resolved": "https://registry.npmjs.org/is-error/-/is-error-2.2.2.tgz", - "integrity": "sha512-IOQqts/aHWbiisY5DuPJQ0gcbvaLFCa7fBa9xoLfxBZvQ+ZI/Zh9xoI7Gk+G64N0FdK4AbibytHht2tWgpJWLg==", - "dev": true - }, - "is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", - "dev": true - }, - "is-fullwidth-code-point": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-4.0.0.tgz", - "integrity": "sha512-O4L094N2/dZ7xqVdrXhh9r1KODPJpFms8B5sGdJLPy664AgvXsreZUyCQQNItZRDlYug4xStLjNp/sz3HvBowQ==", - "dev": true - }, - "is-glob": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", - "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", - "dev": true, - "requires": { - "is-extglob": "^2.1.1" - } - }, - "is-negative-zero": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.2.tgz", - "integrity": "sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA==", - "dev": true - }, - "is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "dev": true - }, - "is-number-object": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz", - "integrity": "sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==", - "dev": true, - "requires": { - "has-tostringtag": "^1.0.0" - } - }, - "is-path-cwd": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-path-cwd/-/is-path-cwd-3.0.0.tgz", - "integrity": "sha512-kyiNFFLU0Ampr6SDZitD/DwUo4Zs1nSdnygUBqsu3LooL00Qvb5j+UnvApUn/TTj1J3OuE6BTdQ5rudKmU2ZaA==", - "dev": true - }, - "is-path-inside": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-4.0.0.tgz", - "integrity": "sha512-lJJV/5dYS+RcL8uQdBDW9c9uWFLLBNRyFhnAKXw5tVqLlKZ4RMGZKv+YQ/IA3OhD+RpbJa1LLFM1FQPGyIXvOA==", - "dev": true - }, - "is-plain-object": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-5.0.0.tgz", - "integrity": "sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q==", - "dev": true - }, - "is-promise": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-4.0.0.tgz", - "integrity": "sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==", - "dev": true - }, - "is-regex": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", - "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - } - }, - "is-shared-array-buffer": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz", - "integrity": "sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==", - "dev": true, - "requires": { - "call-bind": "^1.0.2" - } - }, - "is-string": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", - "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==", - "dev": true, - "requires": { - "has-tostringtag": "^1.0.0" - } - }, - "is-symbol": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz", - "integrity": "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==", - "dev": true, - "requires": { - "has-symbols": "^1.0.2" - } - }, - "is-unicode-supported": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-1.3.0.tgz", - "integrity": "sha512-43r2mRvz+8JRIKnWJ+3j8JtjRKZ6GmjzfaE/qiBJnikNnYv/6bagRJ1kUhNk8R5EX/GkobD+r+sfxCPJsiKBLQ==", - "dev": true - }, - "is-weakref": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", - "integrity": "sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==", - "dev": true, - "requires": { - "call-bind": "^1.0.2" - } - }, - "is-wsl": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", - "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", - "dev": true, - "requires": { - "is-docker": "^2.0.0" - } - }, - "isarray": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", - "integrity": "sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ==", - "dev": true - }, - "isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "dev": true - }, - "js-sdsl": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/js-sdsl/-/js-sdsl-4.2.0.tgz", - "integrity": "sha512-dyBIzQBDkCqCu+0upx25Y2jGdbTGxE9fshMsCdK0ViOongpV+n5tXRcZY9v7CaVQ79AGS9KA1KHtojxiM7aXSQ==", - "dev": true - }, - "js-string-escape": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/js-string-escape/-/js-string-escape-1.0.1.tgz", - "integrity": "sha512-Smw4xcfIQ5LVjAOuJCvN/zIodzA/BBSsluuoSykP+lUvScIi4U6RJLfwHet5cxFnCswUjISV8oAXaqaJDY3chg==", - "dev": true - }, - "js-tokens": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "dev": true, - "peer": true - }, - "js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", - "dev": true, - "requires": { - "argparse": "^2.0.1" - } - }, - "json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true - }, - "json-stable-stringify-without-jsonify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", - "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", - "dev": true - }, - "json5": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", - "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", - "dev": true, - "requires": { - "minimist": "^1.2.0" - } - }, - "jsonc-parser": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.2.0.tgz", - "integrity": "sha512-gfFQZrcTc8CnKXp6Y4/CBT3fTc0OVuDofpre4aEeEpSBPV5X5v4+Vmx+8snU7RLPrNHPKSgLxGo9YuQzz20o+w==", - "dev": true - }, - "jsuri": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/jsuri/-/jsuri-1.3.1.tgz", - "integrity": "sha512-LLdAeqOf88/X0hylAI7oSir6QUsz/8kOW0FcJzzu/SJRfORA/oPHycAOthkNp7eLPlTAbqVDFbqNRHkRVzEA3g==" - }, - "jsx-ast-utils": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-3.3.3.tgz", - "integrity": "sha512-fYQHZTZ8jSfmWZ0iyzfwiU4WDX4HpHbMCZ3gPlWYiCl3BoeOTsqKBqnTVfH2rYT7eP5c3sVbeSPHnnJOaTrWiw==", - "dev": true, - "peer": true, - "requires": { - "array-includes": "^3.1.5", - "object.assign": "^4.1.3" - } - }, - "just-extend": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/just-extend/-/just-extend-4.2.1.tgz", - "integrity": "sha512-g3UB796vUFIY90VIv/WX3L2c8CS2MdWUww3CNrYmqza1Fg0DURc2K/O4YrnklBdQarSJ/y8JnJYDGc+1iumQjg==", - "dev": true - }, - "kleur": { - "version": "4.1.5", - "resolved": "https://registry.npmjs.org/kleur/-/kleur-4.1.5.tgz", - "integrity": "sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==", - "dev": true - }, - "language-subtag-registry": { - "version": "0.3.22", - "resolved": "https://registry.npmjs.org/language-subtag-registry/-/language-subtag-registry-0.3.22.tgz", - "integrity": "sha512-tN0MCzyWnoz/4nHS6uxdlFWoUZT7ABptwKPQ52Ea7URk6vll88bWBVhodtnlfEuCcKWNGoc+uGbw1cwa9IKh/w==", - "dev": true, - "peer": true - }, - "language-tags": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/language-tags/-/language-tags-1.0.7.tgz", - "integrity": "sha512-bSytju1/657hFjgUzPAPqszxH62ouE8nQFoFaVlIQfne4wO/wXC9A4+m8jYve7YBBvi59eq0SUpcshvG8h5Usw==", - "dev": true, - "peer": true, - "requires": { - "language-subtag-registry": "^0.3.20" - } - }, - "levn": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", - "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", - "dev": true, - "requires": { - "prelude-ls": "^1.2.1", - "type-check": "~0.4.0" - } - }, - "load-json-file": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-7.0.1.tgz", - "integrity": "sha512-Gnxj3ev3mB5TkVBGad0JM6dmLiQL+o0t23JPBZ9sd+yvSLk05mFoqKBw5N8gbbkU4TNXyqCgIrl/VM17OgUIgQ==", - "dev": true - }, - "locate-path": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", - "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", - "dev": true, - "requires": { - "p-locate": "^5.0.0" - } - }, - "lodash": { - "version": "4.17.21", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" - }, - "lodash.get": { - "version": "4.4.2", - "resolved": "https://registry.npmjs.org/lodash.get/-/lodash.get-4.4.2.tgz", - "integrity": "sha512-z+Uw/vLuy6gQe8cfaFWD7p0wVv8fJl3mbzXh33RS+0oW2wvUqiRXiQ69gLWSLpgB5/6sU+r6BlQR0MBILadqTQ==", - "dev": true - }, - "lodash.merge": { - "version": "4.6.2", - "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", - "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", - "dev": true - }, - "loose-envify": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", - "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", - "dev": true, - "peer": true, - "requires": { - "js-tokens": "^3.0.0 || ^4.0.0" - } - }, - "lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "requires": { - "yallist": "^4.0.0" - } - }, - "lunr": { - "version": "2.3.9", - "resolved": "https://registry.npmjs.org/lunr/-/lunr-2.3.9.tgz", - "integrity": "sha512-zTU3DaZaF3Rt9rhN3uBMGQD3dD2/vFQqnvZCDv4dl5iOzq2IZQqTxu90r4E5J+nP70J3ilqVCrbho2eWaeW8Ow==", - "dev": true - }, - "map-age-cleaner": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/map-age-cleaner/-/map-age-cleaner-0.1.3.tgz", - "integrity": "sha512-bJzx6nMoP6PDLPBFmg7+xRKeFZvFboMrGlxmNj9ClvX53KrmvM5bXFXEWjbz4cz1AFn+jWJ9z/DJSz7hrs0w3w==", - "dev": true, - "requires": { - "p-defer": "^1.0.0" - } - }, - "marked": { - "version": "4.2.5", - "resolved": "https://registry.npmjs.org/marked/-/marked-4.2.5.tgz", - "integrity": "sha512-jPueVhumq7idETHkb203WDD4fMA3yV9emQ5vLwop58lu8bTclMghBWcYAavlDqIEMaisADinV1TooIFCfqOsYQ==", - "dev": true - }, - "matcher": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/matcher/-/matcher-5.0.0.tgz", - "integrity": "sha512-s2EMBOWtXFc8dgqvoAzKJXxNHibcdJMV0gwqKUaw9E2JBJuGUK7DrNKrA6g/i+v72TT16+6sVm5mS3thaMLQUw==", - "dev": true, - "requires": { - "escape-string-regexp": "^5.0.0" - }, - "dependencies": { - "escape-string-regexp": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-5.0.0.tgz", - "integrity": "sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw==", - "dev": true - } - } - }, - "md5-hex": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/md5-hex/-/md5-hex-3.0.1.tgz", - "integrity": "sha512-BUiRtTtV39LIJwinWBjqVsU9xhdnz7/i889V859IBFpuqGAj6LuOvHv5XLbgZ2R7ptJoJaEcxkv88/h25T7Ciw==", - "dev": true, - "requires": { - "blueimp-md5": "^2.10.0" - } - }, - "mdast-util-from-markdown": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/mdast-util-from-markdown/-/mdast-util-from-markdown-1.2.0.tgz", - "integrity": "sha512-iZJyyvKD1+K7QX1b5jXdE7Sc5dtoTry1vzV28UZZe8Z1xVnB/czKntJ7ZAkG0tANqRnBF6p3p7GpU1y19DTf2Q==", - "dev": true, - "requires": { - "@types/mdast": "^3.0.0", - "@types/unist": "^2.0.0", - "decode-named-character-reference": "^1.0.0", - "mdast-util-to-string": "^3.1.0", - "micromark": "^3.0.0", - "micromark-util-decode-numeric-character-reference": "^1.0.0", - "micromark-util-decode-string": "^1.0.0", - "micromark-util-normalize-identifier": "^1.0.0", - "micromark-util-symbol": "^1.0.0", - "micromark-util-types": "^1.0.0", - "unist-util-stringify-position": "^3.0.0", - "uvu": "^0.5.0" - } - }, - "mdast-util-to-string": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/mdast-util-to-string/-/mdast-util-to-string-3.1.0.tgz", - "integrity": "sha512-n4Vypz/DZgwo0iMHLQL49dJzlp7YtAJP+N07MZHpjPf/5XJuHUWstviF4Mn2jEiR/GNmtnRRqnwsXExk3igfFA==", - "dev": true - }, - "mem": { - "version": "9.0.2", - "resolved": "https://registry.npmjs.org/mem/-/mem-9.0.2.tgz", - "integrity": "sha512-F2t4YIv9XQUBHt6AOJ0y7lSmP1+cY7Fm1DRh9GClTGzKST7UWLMx6ly9WZdLH/G/ppM5RL4MlQfRT71ri9t19A==", - "dev": true, - "requires": { - "map-age-cleaner": "^0.1.3", - "mimic-fn": "^4.0.0" - } - }, - "merge2": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", - "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", - "dev": true - }, - "micromark": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/micromark/-/micromark-3.1.0.tgz", - "integrity": "sha512-6Mj0yHLdUZjHnOPgr5xfWIMqMWS12zDN6iws9SLuSz76W8jTtAv24MN4/CL7gJrl5vtxGInkkqDv/JIoRsQOvA==", - "dev": true, - "requires": { - "@types/debug": "^4.0.0", - "debug": "^4.0.0", - "decode-named-character-reference": "^1.0.0", - "micromark-core-commonmark": "^1.0.1", - "micromark-factory-space": "^1.0.0", - "micromark-util-character": "^1.0.0", - "micromark-util-chunked": "^1.0.0", - "micromark-util-combine-extensions": "^1.0.0", - "micromark-util-decode-numeric-character-reference": "^1.0.0", - "micromark-util-encode": "^1.0.0", - "micromark-util-normalize-identifier": "^1.0.0", - "micromark-util-resolve-all": "^1.0.0", - "micromark-util-sanitize-uri": "^1.0.0", - "micromark-util-subtokenize": "^1.0.0", - "micromark-util-symbol": "^1.0.0", - "micromark-util-types": "^1.0.1", - "uvu": "^0.5.0" - } - }, - "micromark-core-commonmark": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/micromark-core-commonmark/-/micromark-core-commonmark-1.0.6.tgz", - "integrity": "sha512-K+PkJTxqjFfSNkfAhp4GB+cZPfQd6dxtTXnf+RjZOV7T4EEXnvgzOcnp+eSTmpGk9d1S9sL6/lqrgSNn/s0HZA==", - "dev": true, - "requires": { - "decode-named-character-reference": "^1.0.0", - "micromark-factory-destination": "^1.0.0", - "micromark-factory-label": "^1.0.0", - "micromark-factory-space": "^1.0.0", - "micromark-factory-title": "^1.0.0", - "micromark-factory-whitespace": "^1.0.0", - "micromark-util-character": "^1.0.0", - "micromark-util-chunked": "^1.0.0", - "micromark-util-classify-character": "^1.0.0", - "micromark-util-html-tag-name": "^1.0.0", - "micromark-util-normalize-identifier": "^1.0.0", - "micromark-util-resolve-all": "^1.0.0", - "micromark-util-subtokenize": "^1.0.0", - "micromark-util-symbol": "^1.0.0", - "micromark-util-types": "^1.0.1", - "uvu": "^0.5.0" - } - }, - "micromark-factory-destination": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/micromark-factory-destination/-/micromark-factory-destination-1.0.0.tgz", - "integrity": "sha512-eUBA7Rs1/xtTVun9TmV3gjfPz2wEwgK5R5xcbIM5ZYAtvGF6JkyaDsj0agx8urXnO31tEO6Ug83iVH3tdedLnw==", - "dev": true, - "requires": { - "micromark-util-character": "^1.0.0", - "micromark-util-symbol": "^1.0.0", - "micromark-util-types": "^1.0.0" - } - }, - "micromark-factory-label": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/micromark-factory-label/-/micromark-factory-label-1.0.2.tgz", - "integrity": "sha512-CTIwxlOnU7dEshXDQ+dsr2n+yxpP0+fn271pu0bwDIS8uqfFcumXpj5mLn3hSC8iw2MUr6Gx8EcKng1dD7i6hg==", - "dev": true, - "requires": { - "micromark-util-character": "^1.0.0", - "micromark-util-symbol": "^1.0.0", - "micromark-util-types": "^1.0.0", - "uvu": "^0.5.0" - } - }, - "micromark-factory-space": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/micromark-factory-space/-/micromark-factory-space-1.0.0.tgz", - "integrity": "sha512-qUmqs4kj9a5yBnk3JMLyjtWYN6Mzfcx8uJfi5XAveBniDevmZasdGBba5b4QsvRcAkmvGo5ACmSUmyGiKTLZew==", - "dev": true, - "requires": { - "micromark-util-character": "^1.0.0", - "micromark-util-types": "^1.0.0" - } - }, - "micromark-factory-title": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/micromark-factory-title/-/micromark-factory-title-1.0.2.tgz", - "integrity": "sha512-zily+Nr4yFqgMGRKLpTVsNl5L4PMu485fGFDOQJQBl2NFpjGte1e86zC0da93wf97jrc4+2G2GQudFMHn3IX+A==", - "dev": true, - "requires": { - "micromark-factory-space": "^1.0.0", - "micromark-util-character": "^1.0.0", - "micromark-util-symbol": "^1.0.0", - "micromark-util-types": "^1.0.0", - "uvu": "^0.5.0" - } - }, - "micromark-factory-whitespace": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/micromark-factory-whitespace/-/micromark-factory-whitespace-1.0.0.tgz", - "integrity": "sha512-Qx7uEyahU1lt1RnsECBiuEbfr9INjQTGa6Err+gF3g0Tx4YEviPbqqGKNv/NrBaE7dVHdn1bVZKM/n5I/Bak7A==", - "dev": true, - "requires": { - "micromark-factory-space": "^1.0.0", - "micromark-util-character": "^1.0.0", - "micromark-util-symbol": "^1.0.0", - "micromark-util-types": "^1.0.0" - } - }, - "micromark-util-character": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-1.1.0.tgz", - "integrity": "sha512-agJ5B3unGNJ9rJvADMJ5ZiYjBRyDpzKAOk01Kpi1TKhlT1APx3XZk6eN7RtSz1erbWHC2L8T3xLZ81wdtGRZzg==", - "dev": true, - "requires": { - "micromark-util-symbol": "^1.0.0", - "micromark-util-types": "^1.0.0" - } - }, - "micromark-util-chunked": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/micromark-util-chunked/-/micromark-util-chunked-1.0.0.tgz", - "integrity": "sha512-5e8xTis5tEZKgesfbQMKRCyzvffRRUX+lK/y+DvsMFdabAicPkkZV6gO+FEWi9RfuKKoxxPwNL+dFF0SMImc1g==", - "dev": true, - "requires": { - "micromark-util-symbol": "^1.0.0" - } - }, - "micromark-util-classify-character": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/micromark-util-classify-character/-/micromark-util-classify-character-1.0.0.tgz", - "integrity": "sha512-F8oW2KKrQRb3vS5ud5HIqBVkCqQi224Nm55o5wYLzY/9PwHGXC01tr3d7+TqHHz6zrKQ72Okwtvm/xQm6OVNZA==", - "dev": true, - "requires": { - "micromark-util-character": "^1.0.0", - "micromark-util-symbol": "^1.0.0", - "micromark-util-types": "^1.0.0" - } - }, - "micromark-util-combine-extensions": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/micromark-util-combine-extensions/-/micromark-util-combine-extensions-1.0.0.tgz", - "integrity": "sha512-J8H058vFBdo/6+AsjHp2NF7AJ02SZtWaVUjsayNFeAiydTxUwViQPxN0Hf8dp4FmCQi0UUFovFsEyRSUmFH3MA==", - "dev": true, - "requires": { - "micromark-util-chunked": "^1.0.0", - "micromark-util-types": "^1.0.0" - } - }, - "micromark-util-decode-numeric-character-reference": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/micromark-util-decode-numeric-character-reference/-/micromark-util-decode-numeric-character-reference-1.0.0.tgz", - "integrity": "sha512-OzO9AI5VUtrTD7KSdagf4MWgHMtET17Ua1fIpXTpuhclCqD8egFWo85GxSGvxgkGS74bEahvtM0WP0HjvV0e4w==", - "dev": true, - "requires": { - "micromark-util-symbol": "^1.0.0" - } - }, - "micromark-util-decode-string": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/micromark-util-decode-string/-/micromark-util-decode-string-1.0.2.tgz", - "integrity": "sha512-DLT5Ho02qr6QWVNYbRZ3RYOSSWWFuH3tJexd3dgN1odEuPNxCngTCXJum7+ViRAd9BbdxCvMToPOD/IvVhzG6Q==", - "dev": true, - "requires": { - "decode-named-character-reference": "^1.0.0", - "micromark-util-character": "^1.0.0", - "micromark-util-decode-numeric-character-reference": "^1.0.0", - "micromark-util-symbol": "^1.0.0" - } - }, - "micromark-util-encode": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/micromark-util-encode/-/micromark-util-encode-1.0.1.tgz", - "integrity": "sha512-U2s5YdnAYexjKDel31SVMPbfi+eF8y1U4pfiRW/Y8EFVCy/vgxk/2wWTxzcqE71LHtCuCzlBDRU2a5CQ5j+mQA==", - "dev": true - }, - "micromark-util-html-tag-name": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/micromark-util-html-tag-name/-/micromark-util-html-tag-name-1.1.0.tgz", - "integrity": "sha512-BKlClMmYROy9UiV03SwNmckkjn8QHVaWkqoAqzivabvdGcwNGMMMH/5szAnywmsTBUzDsU57/mFi0sp4BQO6dA==", - "dev": true - }, - "micromark-util-normalize-identifier": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/micromark-util-normalize-identifier/-/micromark-util-normalize-identifier-1.0.0.tgz", - "integrity": "sha512-yg+zrL14bBTFrQ7n35CmByWUTFsgst5JhA4gJYoty4Dqzj4Z4Fr/DHekSS5aLfH9bdlfnSvKAWsAgJhIbogyBg==", - "dev": true, - "requires": { - "micromark-util-symbol": "^1.0.0" - } - }, - "micromark-util-resolve-all": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/micromark-util-resolve-all/-/micromark-util-resolve-all-1.0.0.tgz", - "integrity": "sha512-CB/AGk98u50k42kvgaMM94wzBqozSzDDaonKU7P7jwQIuH2RU0TeBqGYJz2WY1UdihhjweivStrJ2JdkdEmcfw==", - "dev": true, - "requires": { - "micromark-util-types": "^1.0.0" - } - }, - "micromark-util-sanitize-uri": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/micromark-util-sanitize-uri/-/micromark-util-sanitize-uri-1.1.0.tgz", - "integrity": "sha512-RoxtuSCX6sUNtxhbmsEFQfWzs8VN7cTctmBPvYivo98xb/kDEoTCtJQX5wyzIYEmk/lvNFTat4hL8oW0KndFpg==", - "dev": true, - "requires": { - "micromark-util-character": "^1.0.0", - "micromark-util-encode": "^1.0.0", - "micromark-util-symbol": "^1.0.0" - } - }, - "micromark-util-subtokenize": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/micromark-util-subtokenize/-/micromark-util-subtokenize-1.0.2.tgz", - "integrity": "sha512-d90uqCnXp/cy4G881Ub4psE57Sf8YD0pim9QdjCRNjfas2M1u6Lbt+XZK9gnHL2XFhnozZiEdCa9CNfXSfQ6xA==", - "dev": true, - "requires": { - "micromark-util-chunked": "^1.0.0", - "micromark-util-symbol": "^1.0.0", - "micromark-util-types": "^1.0.0", - "uvu": "^0.5.0" - } - }, - "micromark-util-symbol": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-1.0.1.tgz", - "integrity": "sha512-oKDEMK2u5qqAptasDAwWDXq0tG9AssVwAx3E9bBF3t/shRIGsWIRG+cGafs2p/SnDSOecnt6hZPCE2o6lHfFmQ==", - "dev": true - }, - "micromark-util-types": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/micromark-util-types/-/micromark-util-types-1.0.2.tgz", - "integrity": "sha512-DCfg/T8fcrhrRKTPjRrw/5LLvdGV7BHySf/1LOZx7TzWZdYRjogNtyNq885z3nNallwr3QUKARjqvHqX1/7t+w==", - "dev": true - }, - "micromatch": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", - "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", - "dev": true, - "requires": { - "braces": "^3.0.2", - "picomatch": "^2.3.1" - } - }, - "mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==" - }, - "mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "requires": { - "mime-db": "1.52.0" - } - }, - "mimic-fn": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-4.0.0.tgz", - "integrity": "sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==", - "dev": true - }, - "minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, - "requires": { - "brace-expansion": "^1.1.7" - } - }, - "minimist": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.7.tgz", - "integrity": "sha512-bzfL1YUZsP41gmu/qjrEk0Q6i2ix/cVeAhbCbqH9u3zYutS1cLg00qhrD0M2MVdCcx4Sc0UpP2eBWo9rotpq6g==", - "dev": true - }, - "mri": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/mri/-/mri-1.2.0.tgz", - "integrity": "sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==", - "dev": true - }, - "ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "dev": true - }, - "natural-compare": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", - "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", - "dev": true - }, - "natural-compare-lite": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/natural-compare-lite/-/natural-compare-lite-1.4.0.tgz", - "integrity": "sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g==", - "dev": true - }, - "nise": { - "version": "5.1.4", - "resolved": "https://registry.npmjs.org/nise/-/nise-5.1.4.tgz", - "integrity": "sha512-8+Ib8rRJ4L0o3kfmyVCL7gzrohyDe0cMFTBa2d364yIrEGMEoetznKJx899YxjybU6bL9SQkYPSBBs1gyYs8Xg==", - "dev": true, - "requires": { - "@sinonjs/commons": "^2.0.0", - "@sinonjs/fake-timers": "^10.0.2", - "@sinonjs/text-encoding": "^0.7.1", - "just-extend": "^4.0.2", - "path-to-regexp": "^1.7.0" - } - }, - "nofilter": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/nofilter/-/nofilter-3.1.0.tgz", - "integrity": "sha512-l2NNj07e9afPnhAhvgVrCD/oy2Ai1yfLpuo3EpiO1jFTsB4sFz6oIfAfSZyQzVpkZQ9xS8ZS5g1jCBgq4Hwo0g==", - "dev": true - }, - "normalize-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", - "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", - "dev": true - }, - "oauth": { - "version": "0.10.0", - "resolved": "https://registry.npmjs.org/oauth/-/oauth-0.10.0.tgz", - "integrity": "sha512-1orQ9MT1vHFGQxhuy7E/0gECD3fd2fCC+PIX+/jgmU/gI3EpRocXtmtvxCO5x3WZ443FLTLFWNDjl5MPJf9u+Q==" - }, - "object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", - "dev": true, - "peer": true - }, - "object-inspect": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.2.tgz", - "integrity": "sha512-z+cPxW0QGUp0mcqcsgQyLVRDoXFQbXOwBaqyF7VIgI4TWNQsDHrBpUQslRmIfAoYWdYzs6UlKJtB2XJpTaNSpQ==", - "dev": true - }, - "object-keys": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", - "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", - "dev": true - }, - "object.assign": { - "version": "4.1.4", - "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.4.tgz", - "integrity": "sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "has-symbols": "^1.0.3", - "object-keys": "^1.1.1" - } - }, - "object.entries": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/object.entries/-/object.entries-1.1.6.tgz", - "integrity": "sha512-leTPzo4Zvg3pmbQ3rDK69Rl8GQvIqMWubrkxONG9/ojtFE2rD9fjMKfSI5BxW3osRH1m6VdzmqK8oAY9aT4x5w==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - } - }, - "object.fromentries": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.6.tgz", - "integrity": "sha512-VciD13dswC4j1Xt5394WR4MzmAQmlgN72phd/riNp9vtD7tp4QQWJ0R4wvclXcafgcYK8veHRed2W6XeGBvcfg==", - "dev": true, - "peer": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - } - }, - "object.hasown": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/object.hasown/-/object.hasown-1.1.2.tgz", - "integrity": "sha512-B5UIT3J1W+WuWIU55h0mjlwaqxiE5vYENJXIXZ4VFe05pNYrkKuK0U/6aFcb0pKywYJh7IhfoqUfKVmrJJHZHw==", - "dev": true, - "peer": true, - "requires": { - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - } - }, - "object.values": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.1.6.tgz", - "integrity": "sha512-FVVTkD1vENCsAcwNs9k6jea2uHC/X0+JcjG8YA60FN5CMaJmG95wT9jek/xX9nornqGRrBkKtzuAu2wuHpKqvw==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - } - }, - "once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", - "dev": true, - "requires": { - "wrappy": "1" - } - }, - "open": { - "version": "8.4.0", - "resolved": "https://registry.npmjs.org/open/-/open-8.4.0.tgz", - "integrity": "sha512-XgFPPM+B28FtCCgSb9I+s9szOC1vZRSwgWsRUA5ylIxRTgKozqjOCrVOqGsYABPYK5qnfqClxZTFBa8PKt2v6Q==", - "dev": true, - "requires": { - "define-lazy-prop": "^2.0.0", - "is-docker": "^2.1.1", - "is-wsl": "^2.2.0" - } - }, - "optionator": { - "version": "0.9.1", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", - "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==", - "dev": true, - "requires": { - "deep-is": "^0.1.3", - "fast-levenshtein": "^2.0.6", - "levn": "^0.4.1", - "prelude-ls": "^1.2.1", - "type-check": "^0.4.0", - "word-wrap": "^1.2.3" - } - }, - "p-defer": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/p-defer/-/p-defer-1.0.0.tgz", - "integrity": "sha512-wB3wfAxZpk2AzOfUMJNL+d36xothRSyj8EXOa4f6GMqYDN9BJaaSISbsk+wS9abmnebVw95C2Kb5t85UmpCxuw==", - "dev": true - }, - "p-event": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/p-event/-/p-event-5.0.1.tgz", - "integrity": "sha512-dd589iCQ7m1L0bmC5NLlVYfy3TbBEsMUfWx9PyAgPeIcFZ/E2yaTZ4Rz4MiBmmJShviiftHVXOqfnfzJ6kyMrQ==", - "dev": true, - "requires": { - "p-timeout": "^5.0.2" - } - }, - "p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "dev": true, - "requires": { - "yocto-queue": "^0.1.0" - } - }, - "p-locate": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", - "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", - "dev": true, - "requires": { - "p-limit": "^3.0.2" - } - }, - "p-map": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/p-map/-/p-map-5.5.0.tgz", - "integrity": "sha512-VFqfGDHlx87K66yZrNdI4YGtD70IRyd+zSvgks6mzHPRNkoKy+9EKP4SFC77/vTTQYmRmti7dvqC+m5jBrBAcg==", - "dev": true, - "requires": { - "aggregate-error": "^4.0.0" - } - }, - "p-timeout": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/p-timeout/-/p-timeout-5.1.0.tgz", - "integrity": "sha512-auFDyzzzGZZZdHz3BtET9VEz0SE/uMEAx7uWfGPucfzEwwe/xH0iVeZibQmANYE/hp9T2+UUZT5m+BKyrDp3Ew==", - "dev": true - }, - "parent-module": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", - "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", - "dev": true, - "requires": { - "callsites": "^3.0.0" - }, - "dependencies": { - "callsites": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", - "dev": true - } - } - }, - "parse-ms": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/parse-ms/-/parse-ms-3.0.0.tgz", - "integrity": "sha512-Tpb8Z7r7XbbtBTrM9UhpkzzaMrqA2VXMT3YChzYltwV3P3pM6t8wl7TvpMnSTosz1aQAdVib7kdoys7vYOPerw==", - "dev": true - }, - "path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true - }, - "path-is-absolute": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", - "dev": true - }, - "path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "dev": true - }, - "path-parse": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", - "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", - "dev": true - }, - "path-to-regexp": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-1.8.0.tgz", - "integrity": "sha512-n43JRhlUKUAlibEJhPeir1ncUID16QnEjNpwzNdO3Lm4ywrBpBZ5oLD0I6br9evr1Y9JTqwRtAh7JLoOzAQdVA==", - "dev": true, - "requires": { - "isarray": "0.0.1" - } - }, - "path-type": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", - "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", - "dev": true - }, - "picocolors": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", - "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", - "dev": true - }, - "picomatch": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", - "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", - "dev": true - }, - "pirates": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.5.tgz", - "integrity": "sha512-8V9+HQPupnaXMA23c5hvl69zXvTwTzyAYasnkb0Tts4XvO4CliqONMOnvlq26rkhLC3nWDFBJf73LU1e1VZLaQ==", - "dev": true - }, - "pkg-conf": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/pkg-conf/-/pkg-conf-4.0.0.tgz", - "integrity": "sha512-7dmgi4UY4qk+4mj5Cd8v/GExPo0K+SlY+hulOSdfZ/T6jVH6//y7NtzZo5WrfhDBxuQ0jCa7fLZmNaNh7EWL/w==", - "dev": true, - "requires": { - "find-up": "^6.0.0", - "load-json-file": "^7.0.0" - }, - "dependencies": { - "find-up": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-6.3.0.tgz", - "integrity": "sha512-v2ZsoEuVHYy8ZIlYqwPe/39Cy+cFDzp4dXPaxNvkEuouymu+2Jbz0PxpKarJHYJTmv2HWT3O382qY8l4jMWthw==", - "dev": true, - "requires": { - "locate-path": "^7.1.0", - "path-exists": "^5.0.0" - } - }, - "locate-path": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-7.1.1.tgz", - "integrity": "sha512-vJXaRMJgRVD3+cUZs3Mncj2mxpt5mP0EmNOsxRSZRMlbqjvxzDEOIUWXGmavo0ZC9+tNZCBLQ66reA11nbpHZg==", - "dev": true, - "requires": { - "p-locate": "^6.0.0" - } - }, - "p-limit": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-4.0.0.tgz", - "integrity": "sha512-5b0R4txpzjPWVw/cXXUResoD4hb6U/x9BH08L7nw+GN1sezDzPdxeRvpc9c433fZhBan/wusjbCsqwqm4EIBIQ==", - "dev": true, - "requires": { - "yocto-queue": "^1.0.0" - } - }, - "p-locate": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-6.0.0.tgz", - "integrity": "sha512-wPrq66Llhl7/4AGC6I+cqxT07LhXvWL08LNXz1fENOw0Ap4sRZZ/gZpTTJ5jpurzzzfS2W/Ge9BY3LgLjCShcw==", - "dev": true, - "requires": { - "p-limit": "^4.0.0" - } - }, - "path-exists": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-5.0.0.tgz", - "integrity": "sha512-RjhtfwJOxzcFmNOi6ltcbcu4Iu+FL3zEj83dk4kAS+fVpTxXLO1b38RvJgT/0QwvV/L3aY9TAnyv0EOqW4GoMQ==", - "dev": true - }, - "yocto-queue": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-1.0.0.tgz", - "integrity": "sha512-9bnSc/HEW2uRy67wc+T8UwauLuPJVn28jb+GtJY16iiKWyvmYJRXVT4UamsAEGQfPohgr2q4Tq0sQbQlxTfi1g==", - "dev": true - } - } - }, - "plur": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/plur/-/plur-5.1.0.tgz", - "integrity": "sha512-VP/72JeXqak2KiOzjgKtQen5y3IZHn+9GOuLDafPv0eXa47xq0At93XahYBs26MsifCQ4enGKwbjBTKgb9QJXg==", - "dev": true, - "requires": { - "irregular-plurals": "^3.3.0" - } - }, - "prelude-ls": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", - "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", - "dev": true - }, - "prettier": { - "version": "2.8.1", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.1.tgz", - "integrity": "sha512-lqGoSJBQNJidqCHE80vqZJHWHRFoNYsSpP9AjFhlhi9ODCJA541svILes/+/1GM3VaL/abZi7cpFzOpdR9UPKg==", - "dev": true - }, - "prettier-plugin-jsdoc": { - "version": "0.4.2", - "resolved": "https://registry.npmjs.org/prettier-plugin-jsdoc/-/prettier-plugin-jsdoc-0.4.2.tgz", - "integrity": "sha512-w2jnAQm3z0GAG0bhzVJeehzDtrhGMSxJjit5ApCc2oxWfc7+jmLAkbtdOXaSpfwZz3IWkk+PiQPeRrLNpbM+Mw==", - "dev": true, - "requires": { - "binary-searching": "^2.0.5", - "comment-parser": "^1.3.1", - "mdast-util-from-markdown": "^1.2.0" - } - }, - "pretty-ms": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/pretty-ms/-/pretty-ms-8.0.0.tgz", - "integrity": "sha512-ASJqOugUF1bbzI35STMBUpZqdfYKlJugy6JBziGi2EE+AL5JPJGSzvpeVXojxrr0ViUYoToUjb5kjSEGf7Y83Q==", - "dev": true, - "requires": { - "parse-ms": "^3.0.0" - } - }, - "prop-types": { - "version": "15.8.1", - "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz", - "integrity": "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==", - "dev": true, - "peer": true, - "requires": { - "loose-envify": "^1.4.0", - "object-assign": "^4.1.1", - "react-is": "^16.13.1" - } - }, - "punycode": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", - "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", - "dev": true - }, - "queue-microtask": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", - "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", - "dev": true - }, - "react-is": { - "version": "16.13.1", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", - "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==", - "dev": true, - "peer": true - }, - "readdirp": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", - "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", - "dev": true, - "requires": { - "picomatch": "^2.2.1" - } - }, - "regenerator-runtime": { - "version": "0.13.11", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz", - "integrity": "sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==", - "dev": true, - "peer": true - }, - "regexp.prototype.flags": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.4.3.tgz", - "integrity": "sha512-fjggEOO3slI6Wvgjwflkc4NFRCTZAu5CnNfBd5qOMYhWdn67nJBBu34/TkD++eeFmd8C9r9jfXJ27+nSiRkSUA==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.3", - "functions-have-names": "^1.2.2" - } - }, - "regexpp": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.2.0.tgz", - "integrity": "sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==", - "dev": true - }, - "require-directory": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", - "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", - "dev": true - }, - "resolve": { - "version": "1.22.1", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.1.tgz", - "integrity": "sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==", - "dev": true, - "requires": { - "is-core-module": "^2.9.0", - "path-parse": "^1.0.7", - "supports-preserve-symlinks-flag": "^1.0.0" - } - }, - "resolve-cwd": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", - "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", - "dev": true, - "requires": { - "resolve-from": "^5.0.0" - }, - "dependencies": { - "resolve-from": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", - "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", - "dev": true - } - } - }, - "resolve-from": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", - "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", - "dev": true - }, - "reusify": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", - "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", - "dev": true - }, - "rimraf": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", - "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", - "dev": true, - "requires": { - "glob": "^7.1.3" - } - }, - "run-parallel": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", - "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", - "dev": true, - "requires": { - "queue-microtask": "^1.2.2" - } - }, - "sade": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/sade/-/sade-1.8.1.tgz", - "integrity": "sha512-xal3CZX1Xlo/k4ApwCFrHVACi9fBqJ7V+mwhBsuf/1IOKbBy098Fex+Wa/5QMubw09pSZ/u8EY8PWgevJsXp1A==", - "dev": true, - "requires": { - "mri": "^1.1.0" - } - }, - "safe-regex-test": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.0.tgz", - "integrity": "sha512-JBUUzyOgEwXQY1NuPtvcj/qcBDbDmEvWufhlnXZIm75DEHp+afM1r1ujJpJsV/gSM4t59tpDyPi1sd6ZaPFfsA==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.3", - "is-regex": "^1.1.4" - } - }, - "semver": { - "version": "7.3.8", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", - "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", - "dev": true, - "requires": { - "lru-cache": "^6.0.0" - } - }, - "serialize-error": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/serialize-error/-/serialize-error-7.0.1.tgz", - "integrity": "sha512-8I8TjW5KMOKsZQTvoxjuSIa7foAwPWGOts+6o7sgjz41/qMD9VQHEDxi6PBvK2l0MXUmqZyNpUK+T2tQaaElvw==", - "dev": true, - "requires": { - "type-fest": "^0.13.1" - }, - "dependencies": { - "type-fest": { - "version": "0.13.1", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.13.1.tgz", - "integrity": "sha512-34R7HTnG0XIJcBSn5XhDd7nNFPRcXYRZrBB2O2jdKqYODldSzBAqzsWoZYYvduky73toYS/ESqxPvkDf/F0XMg==", - "dev": true - } - } - }, - "shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dev": true, - "requires": { - "shebang-regex": "^3.0.0" - } - }, - "shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true - }, - "shiki": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/shiki/-/shiki-0.11.1.tgz", - "integrity": "sha512-EugY9VASFuDqOexOgXR18ZV+TbFrQHeCpEYaXamO+SZlsnT/2LxuLBX25GGtIrwaEVFXUAbUQ601SWE2rMwWHA==", - "dev": true, - "requires": { - "jsonc-parser": "^3.0.0", - "vscode-oniguruma": "^1.6.1", - "vscode-textmate": "^6.0.0" - } - }, - "side-channel": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", - "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", - "dev": true, - "requires": { - "call-bind": "^1.0.0", - "get-intrinsic": "^1.0.2", - "object-inspect": "^1.9.0" - } - }, - "signal-exit": { - "version": "3.0.7", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", - "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", - "dev": true - }, - "sinon": { - "version": "15.0.1", - "resolved": "https://registry.npmjs.org/sinon/-/sinon-15.0.1.tgz", - "integrity": "sha512-PZXKc08f/wcA/BMRGBze2Wmw50CWPiAH3E21EOi4B49vJ616vW4DQh4fQrqsYox2aNR/N3kCqLuB0PwwOucQrg==", - "dev": true, - "requires": { - "@sinonjs/commons": "^2.0.0", - "@sinonjs/fake-timers": "10.0.2", - "@sinonjs/samsam": "^7.0.1", - "diff": "^5.0.0", - "nise": "^5.1.2", - "supports-color": "^7.2.0" - } - }, - "slash": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", - "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", - "dev": true - }, - "slice-ansi": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-5.0.0.tgz", - "integrity": "sha512-FC+lgizVPfie0kkhqUScwRu1O/lF6NOgJmlCgK+/LYxDCTk8sGelYaHDhFcDN+Sn3Cv+3VSa4Byeo+IMCzpMgQ==", - "dev": true, - "requires": { - "ansi-styles": "^6.0.0", - "is-fullwidth-code-point": "^4.0.0" - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - }, - "source-map-support": { - "version": "0.5.21", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", - "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", - "dev": true, - "requires": { - "buffer-from": "^1.0.0", - "source-map": "^0.6.0" - } - }, - "sprintf-js": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", - "dev": true - }, - "stack-utils": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz", - "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==", - "dev": true, - "requires": { - "escape-string-regexp": "^2.0.0" - }, - "dependencies": { - "escape-string-regexp": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", - "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", - "dev": true - } - } - }, - "string-width": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", - "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", - "dev": true, - "requires": { - "eastasianwidth": "^0.2.0", - "emoji-regex": "^9.2.2", - "strip-ansi": "^7.0.1" - } - }, - "string.prototype.matchall": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/string.prototype.matchall/-/string.prototype.matchall-4.0.8.tgz", - "integrity": "sha512-6zOCOcJ+RJAQshcTvXPHoxoQGONa3e/Lqx90wUA+wEzX78sg5Bo+1tQo4N0pohS0erG9qtCqJDjNCQBjeWVxyg==", - "dev": true, - "peer": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4", - "get-intrinsic": "^1.1.3", - "has-symbols": "^1.0.3", - "internal-slot": "^1.0.3", - "regexp.prototype.flags": "^1.4.3", - "side-channel": "^1.0.4" - } - }, - "string.prototype.trimend": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.6.tgz", - "integrity": "sha512-JySq+4mrPf9EsDBEDYMOb/lM7XQLulwg5R/m1r0PXEFqrV0qHvl58sdTilSXtKOflCsK2E8jxf+GKC0T07RWwQ==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - } - }, - "string.prototype.trimstart": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.6.tgz", - "integrity": "sha512-omqjMDaY92pbn5HOX7f9IccLA+U1tA9GvtU4JrodiXFfYB7jPzzHpRzpglLAjtUV6bB557zwClJezTqnAiYnQA==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - } - }, - "strip-ansi": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.0.1.tgz", - "integrity": "sha512-cXNxvT8dFNRVfhVME3JAe98mkXDYN2O1l7jmcwMnOslDeESg1rF/OZMtK0nRAhiari1unG5cD4jG3rapUAkLbw==", - "dev": true, - "requires": { - "ansi-regex": "^6.0.1" - } - }, - "strip-bom": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", - "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", - "dev": true - }, - "strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "dev": true - }, - "supertap": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/supertap/-/supertap-3.0.1.tgz", - "integrity": "sha512-u1ZpIBCawJnO+0QePsEiOknOfCRq0yERxiAchT0i4li0WHNUJbf0evXXSXOcCAR4M8iMDoajXYmstm/qO81Isw==", - "dev": true, - "requires": { - "indent-string": "^5.0.0", - "js-yaml": "^3.14.1", - "serialize-error": "^7.0.1", - "strip-ansi": "^7.0.1" - }, - "dependencies": { - "argparse": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "dev": true, - "requires": { - "sprintf-js": "~1.0.2" - } - }, - "js-yaml": { - "version": "3.14.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", - "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", - "dev": true, - "requires": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" - } - } - } - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - }, - "supports-preserve-symlinks-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", - "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", - "dev": true - }, - "synckit": { - "version": "0.8.4", - "resolved": "https://registry.npmjs.org/synckit/-/synckit-0.8.4.tgz", - "integrity": "sha512-Dn2ZkzMdSX827QbowGbU/4yjWuvNaCoScLLoMo/yKbu+P4GBR6cRGKZH27k6a9bRzdqcyd1DE96pQtQ6uNkmyw==", - "dev": true, - "requires": { - "@pkgr/utils": "^2.3.1", - "tslib": "^2.4.0" - } - }, - "tapable": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", - "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==", - "dev": true - }, - "temp-dir": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/temp-dir/-/temp-dir-3.0.0.tgz", - "integrity": "sha512-nHc6S/bwIilKHNRgK/3jlhDoIHcp45YgyiwcAk46Tr0LfEqGBVpmiAyuiuxeVE44m3mXnEeVhaipLOEWmH+Njw==", - "dev": true - }, - "text-table": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", - "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", - "dev": true - }, - "time-zone": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/time-zone/-/time-zone-1.0.0.tgz", - "integrity": "sha512-TIsDdtKo6+XrPtiTm1ssmMngN1sAhyKnTO2kunQWqNPWIVvCm15Wmw4SWInwTVgJ5u/Tr04+8Ei9TNcw4x4ONA==", - "dev": true - }, - "tiny-glob": { - "version": "0.2.9", - "resolved": "https://registry.npmjs.org/tiny-glob/-/tiny-glob-0.2.9.tgz", - "integrity": "sha512-g/55ssRPUjShh+xkfx9UPDXqhckHEsHr4Vd9zX55oSdGZc/MD0m3sferOkwWtp98bv+kcVfEHtRJgBVJzelrzg==", - "dev": true, - "requires": { - "globalyzer": "0.1.0", - "globrex": "^0.1.2" - } - }, - "to-regex-range": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "dev": true, - "requires": { - "is-number": "^7.0.0" - } - }, - "tsconfig-paths": { - "version": "3.14.1", - "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.14.1.tgz", - "integrity": "sha512-fxDhWnFSLt3VuTwtvJt5fpwxBHg5AdKWMsgcPOOIilyjymcYVZoCQF8fvFRezCNfblEXmi+PcM1eYHeOAgXCOQ==", - "dev": true, - "requires": { - "@types/json5": "^0.0.29", - "json5": "^1.0.1", - "minimist": "^1.2.6", - "strip-bom": "^3.0.0" - } - }, - "tslib": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.1.tgz", - "integrity": "sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA==" - }, - "tsutils": { - "version": "3.21.0", - "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", - "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", - "dev": true, - "requires": { - "tslib": "^1.8.1" - }, - "dependencies": { - "tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "dev": true - } - } - }, - "type-check": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", - "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", - "dev": true, - "requires": { - "prelude-ls": "^1.2.1" - } - }, - "type-detect": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", - "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", - "dev": true - }, - "type-fest": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", - "dev": true - }, - "typedoc": { - "version": "0.23.23", - "resolved": "https://registry.npmjs.org/typedoc/-/typedoc-0.23.23.tgz", - "integrity": "sha512-cg1YQWj+/BU6wq74iott513U16fbrPCbyYs04PHZgvoKJIc6EY4xNobyDZh4KMfRGW8Yjv6wwIzQyoqopKOUGw==", - "dev": true, - "requires": { - "lunr": "^2.3.9", - "marked": "^4.2.4", - "minimatch": "^5.1.1", - "shiki": "^0.11.1" - }, - "dependencies": { - "brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dev": true, - "requires": { - "balanced-match": "^1.0.0" - } - }, - "minimatch": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.2.tgz", - "integrity": "sha512-bNH9mmM9qsJ2X4r2Nat1B//1dJVcn3+iBLa3IgqJ7EbGaDNepL9QSHOxN4ng33s52VMMhhIfgCYDk3C4ZmlDAg==", - "dev": true, - "requires": { - "brace-expansion": "^2.0.1" - } - } - } - }, - "typedoc-plugin-extras": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/typedoc-plugin-extras/-/typedoc-plugin-extras-2.3.1.tgz", - "integrity": "sha512-EqrIX9oOxJ3yZa/TNAmMqvg87v3RTs63yFm/ROJtjiu1yVNQl74v2hDHsgheWb+1Puy+Vu5jFMwx//Cme0hzqg==", - "dev": true, - "requires": {} - }, - "typescript": { - "version": "4.9.4", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.4.tgz", - "integrity": "sha512-Uz+dTXYzxXXbsFpM86Wh3dKCxrQqUcVMxwU54orwlJjOpO3ao8L7j5lH+dWfTwgCwIuM9GQ2kvVotzYJMXTBZg==", - "dev": true - }, - "unbox-primitive": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", - "integrity": "sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "has-bigints": "^1.0.2", - "has-symbols": "^1.0.3", - "which-boxed-primitive": "^1.0.2" - } - }, - "unist-util-stringify-position": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-3.0.2.tgz", - "integrity": "sha512-7A6eiDCs9UtjcwZOcCpM4aPII3bAAGv13E96IkawkOAW0OhH+yRxtY0lzo8KiHpzEMfH7Q+FizUmwp8Iqy5EWg==", - "dev": true, - "requires": { - "@types/unist": "^2.0.0" - } - }, - "uri-js": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", - "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", - "dev": true, - "requires": { - "punycode": "^2.1.0" - } - }, - "uvu": { - "version": "0.5.6", - "resolved": "https://registry.npmjs.org/uvu/-/uvu-0.5.6.tgz", - "integrity": "sha512-+g8ENReyr8YsOc6fv/NVJs2vFdHBnBNdfE49rshrTzDWOlUx4Gq7KOS2GD8eqhy2j+Ejq29+SbKH8yjkAqXqoA==", - "dev": true, - "requires": { - "dequal": "^2.0.0", - "diff": "^5.0.0", - "kleur": "^4.0.3", - "sade": "^1.7.3" - } - }, - "vscode-oniguruma": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/vscode-oniguruma/-/vscode-oniguruma-1.7.0.tgz", - "integrity": "sha512-L9WMGRfrjOhgHSdOYgCt/yRMsXzLDJSL7BPrOZt73gU0iWO4mpqzqQzOz5srxqTvMBaR0XZTSrVWo4j55Rc6cA==", - "dev": true - }, - "vscode-textmate": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/vscode-textmate/-/vscode-textmate-6.0.0.tgz", - "integrity": "sha512-gu73tuZfJgu+mvCSy4UZwd2JXykjK9zAZsfmDeut5dx/1a7FeTk0XwJsSuqQn+cuMCGVbIBfl+s53X4T19DnzQ==", - "dev": true - }, - "well-known-symbols": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/well-known-symbols/-/well-known-symbols-2.0.0.tgz", - "integrity": "sha512-ZMjC3ho+KXo0BfJb7JgtQ5IBuvnShdlACNkKkdsqBmYw3bPAaJfPeYUo6tLUaT5tG/Gkh7xkpBhKRQ9e7pyg9Q==", - "dev": true - }, - "which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dev": true, - "requires": { - "isexe": "^2.0.0" - } - }, - "which-boxed-primitive": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz", - "integrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==", - "dev": true, - "requires": { - "is-bigint": "^1.0.1", - "is-boolean-object": "^1.1.0", - "is-number-object": "^1.0.4", - "is-string": "^1.0.5", - "is-symbol": "^1.0.3" - } - }, - "word-wrap": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", - "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", - "dev": true - }, - "wrap-ansi": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "dev": true, - "requires": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "dependencies": { - "ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true - }, - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true - }, - "is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true - }, - "string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "requires": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - } - }, - "strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "requires": { - "ansi-regex": "^5.0.1" - } - } - } - }, - "wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", - "dev": true - }, - "write-file-atomic": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-5.0.0.tgz", - "integrity": "sha512-R7NYMnHSlV42K54lwY9lvW6MnSm1HSJqZL3xiSgi9E7//FYaI74r2G0rd+/X6VAMkHEdzxQaU5HUOXWUz5kA/w==", - "dev": true, - "requires": { - "imurmurhash": "^0.1.4", - "signal-exit": "^3.0.7" - } - }, - "y18n": { - "version": "5.0.8", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", - "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", - "dev": true - }, - "yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, - "yargs": { - "version": "17.6.2", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.6.2.tgz", - "integrity": "sha512-1/9UrdHjDZc0eOU0HxOHoS78C69UD3JRMvzlJ7S79S2nTaWRA/whGCTV8o9e/N/1Va9YIV7Q4sOxD8VV4pCWOw==", - "dev": true, - "requires": { - "cliui": "^8.0.1", - "escalade": "^3.1.1", - "get-caller-file": "^2.0.5", - "require-directory": "^2.1.1", - "string-width": "^4.2.3", - "y18n": "^5.0.5", - "yargs-parser": "^21.1.1" - }, - "dependencies": { - "ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true - }, - "emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true - }, - "is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true - }, - "string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "requires": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - } - }, - "strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "requires": { - "ansi-regex": "^5.0.1" - } - } - } - }, - "yargs-parser": { - "version": "21.1.1", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", - "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", - "dev": true - }, - "yocto-queue": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", - "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", - "dev": true - } } } diff --git a/package.json b/package.json index 20d467d0..005f9a87 100644 --- a/package.json +++ b/package.json @@ -42,31 +42,31 @@ "atlassian" ], "devDependencies": { - "@swc-node/register": "^1.5.4", - "@types/express": "^4.17.15", + "@swc-node/register": "1.5.4", + "@types/express": "^4.17.17", "@types/oauth": "^0.9.1", "@types/sinon": "^10.0.13", - "@typescript-eslint/eslint-plugin": "^5.48.0", - "@typescript-eslint/parser": "^5.48.0", - "ava": "^5.1.0", + "@typescript-eslint/eslint-plugin": "^5.54.1", + "@typescript-eslint/parser": "^5.54.1", + "ava": "^5.2.0", "dotenv": "^16.0.3", - "eslint": "^8.31.0", + "eslint": "^8.35.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", - "prettier": "^2.8.1", + "eslint-import-resolver-typescript": "^3.5.3", + "eslint-plugin-import": "^2.27.5", + "prettier": "^2.8.4", "prettier-plugin-jsdoc": "^0.4.2", "sinon": "^15.0.1", - "typedoc": "^0.23.23", - "typedoc-plugin-extras": "^2.3.1", - "typescript": "^4.9.4" + "typedoc": "^0.23.26", + "typedoc-plugin-extras": "^2.3.2", + "typescript": "^4.9.5" }, "dependencies": { "atlassian-jwt": "^2.0.2", "axios": "^0.27.2", "form-data": "^4.0.0", "oauth": "^0.10.0", - "tslib": "^2.4.1" + "tslib": "^2.5.0" } } diff --git a/src/version2/attachment.ts b/src/version2/attachment.ts new file mode 100644 index 00000000..7f4ce9f0 --- /dev/null +++ b/src/version2/attachment.ts @@ -0,0 +1,167 @@ +import * as Models from './models'; +import * as Parameters from './parameters'; +import { Callback } from '../callback'; +import { Client } from '../clients'; +import { RequestConfig } from '../requestConfig'; + +export class Attachment { + constructor(private client: Client) {} + + /** + * Returns a specific attachment. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the attachment's + * container. + */ + async getAttachmentById( + parameters: Parameters.GetAttachmentById, + callback: Callback + ): Promise; + /** + * Returns a specific attachment. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the attachment's + * container. + */ + async getAttachmentById( + parameters: Parameters.GetAttachmentById, + callback?: never + ): Promise; + async getAttachmentById( + parameters: Parameters.GetAttachmentById, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: `/attachments/${parameters.id}`, + method: 'GET', + params: { + version: parameters.version, + }, + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Returns the attachments of specific blog post. The number of results is limited by the `limit` parameter and + * additional results (if available) will be available through the `next` URL present in the `Link` response header. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the blog + * post and its corresponding space. + */ + async getBlogpostAttachments( + parameters: Parameters.GetBlogpostAttachments, + callback: Callback + ): Promise; + /** + * Returns the attachments of specific blog post. The number of results is limited by the `limit` parameter and + * additional results (if available) will be available through the `next` URL present in the `Link` response header. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the blog + * post and its corresponding space. + */ + async getBlogpostAttachments( + parameters: Parameters.GetBlogpostAttachments, + callback?: never + ): Promise; + async getBlogpostAttachments( + parameters: Parameters.GetBlogpostAttachments, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: `/blogposts/${parameters.id}/attachments`, + method: 'GET', + params: { + sort: parameters.sort, + cursor: parameters.cursor, + mediaType: parameters.mediaType, + filename: parameters.filename, + limit: parameters.limit, + }, + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Returns the attachments of specific custom content. The number of results is limited by the `limit` parameter and + * additional results (if available) will be available through the `next` URL present in the `Link` response header. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the custom + * content and its corresponding space. + */ + async getCustomContentAttachments( + parameters: Parameters.GetCustomContentAttachments, + callback: Callback + ): Promise; + /** + * Returns the attachments of specific custom content. The number of results is limited by the `limit` parameter and + * additional results (if available) will be available through the `next` URL present in the `Link` response header. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the custom + * content and its corresponding space. + */ + async getCustomContentAttachments( + parameters: Parameters.GetCustomContentAttachments, + callback?: never + ): Promise; + async getCustomContentAttachments( + parameters: Parameters.GetCustomContentAttachments, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: `/custom-content/${parameters.id}/attachments`, + method: 'GET', + params: { + sort: parameters.sort, + cursor: parameters.cursor, + mediaType: parameters.mediaType, + filename: parameters.filename, + limit: parameters.limit, + }, + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Returns the attachments of specific page. The number of results is limited by the `limit` parameter and additional + * results (if available) will be available through the `next` URL present in the `Link` response header. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the page + * and its corresponding space. + */ + async getPageAttachments( + parameters: Parameters.GetPageAttachments, + callback: Callback + ): Promise; + /** + * Returns the attachments of specific page. The number of results is limited by the `limit` parameter and additional + * results (if available) will be available through the `next` URL present in the `Link` response header. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the page + * and its corresponding space. + */ + async getPageAttachments( + parameters: Parameters.GetPageAttachments, + callback?: never + ): Promise; + async getPageAttachments( + parameters: Parameters.GetPageAttachments, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: `/pages/${parameters.id}/attachments`, + method: 'GET', + params: { + sort: parameters.sort, + cursor: parameters.cursor, + mediaType: parameters.mediaType, + filename: parameters.filename, + limit: parameters.limit, + }, + }; + + return this.client.sendRequest(config, callback); + } +} diff --git a/src/version2/blogPost.ts b/src/version2/blogPost.ts new file mode 100644 index 00000000..aeae56e4 --- /dev/null +++ b/src/version2/blogPost.ts @@ -0,0 +1,236 @@ +import * as Models from './models'; +import * as Parameters from './parameters'; +import { Callback } from '../callback'; +import { Client } from '../clients'; +import { RequestConfig } from '../requestConfig'; + +export class BlogPost { + constructor(private client: Client) {} + + /** + * Returns all blog posts. The number of results is limited by the `limit` parameter and additional results (if + * available) will be available through the `next` URL present in the `Link` response header. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site + * ('Can use' global permission). Only blog posts that the user has permission to view will be returned. + */ + async getBlogPosts( + parameters: Parameters.GetBlogPosts | undefined, + callback: Callback + ): Promise; + /** + * Returns all blog posts. The number of results is limited by the `limit` parameter and additional results (if + * available) will be available through the `next` URL present in the `Link` response header. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site + * ('Can use' global permission). Only blog posts that the user has permission to view will be returned. + */ + async getBlogPosts(parameters?: Parameters.GetBlogPosts, callback?: never): Promise; + async getBlogPosts( + parameters?: Parameters.GetBlogPosts, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: '/blogposts', + method: 'GET', + params: { + cursor: parameters?.cursor, + limit: parameters?.limit, + }, + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Creates a new blog post in the space specified by the spaceId. + * + * By default this will create the blog post as a non-draft, unless the status is specified as draft. If creating a + * non-draft, the title must not be empty. + * + * Currently only supports the storage representation specified in the body.representation enums below + */ + async createBlogPost(callback: Callback): Promise; + /** + * Creates a new blog post in the space specified by the spaceId. + * + * By default this will create the blog post as a non-draft, unless the status is specified as draft. If creating a + * non-draft, the title must not be empty. + * + * Currently only supports the storage representation specified in the body.representation enums below + */ + async createBlogPost(callback?: never): Promise; + async createBlogPost(callback?: Callback): Promise { + const config: RequestConfig = { + url: '/blogposts', + method: 'POST', + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Returns a specific blog post. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the blog post and its + * corresponding space. + */ + async getBlogPostById( + parameters: Parameters.GetBlogPostById, + callback: Callback + ): Promise; + /** + * Returns a specific blog post. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the blog post and its + * corresponding space. + */ + async getBlogPostById(parameters: Parameters.GetBlogPostById, callback?: never): Promise; + async getBlogPostById( + parameters: Parameters.GetBlogPostById, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: `/blogposts/${parameters.id}`, + method: 'GET', + params: { + 'body-format': parameters['body-format'], + 'get-draft': parameters['get-draft'], + version: parameters.version, + }, + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Update a blog post by id. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the blog post and its + * corresponding space. Permission to update blog posts in the space. + */ + async updateBlogPost( + parameters: Parameters.UpdateBlogPost, + callback: Callback + ): Promise; + /** + * Update a blog post by id. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the blog post and its + * corresponding space. Permission to update blog posts in the space. + */ + async updateBlogPost(parameters: Parameters.UpdateBlogPost, callback?: never): Promise; + async updateBlogPost( + parameters: Parameters.UpdateBlogPost, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: `/blogposts/${parameters.id}`, + method: 'PUT', + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Delete a blog post by id. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the blog post and its + * corresponding space. Permission to delete blog posts in the space. + */ + async deleteBlogPost(parameters: Parameters.DeleteBlogPost, callback: Callback): Promise; + /** + * Delete a blog post by id. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the blog post and its + * corresponding space. Permission to delete blog posts in the space. + */ + async deleteBlogPost(parameters: Parameters.DeleteBlogPost, callback?: never): Promise; + async deleteBlogPost(parameters: Parameters.DeleteBlogPost, callback?: Callback): Promise { + const config: RequestConfig = { + url: `/blogposts/${parameters.id}`, + method: 'DELETE', + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Returns the blogposts of specified label. The number of results is limited by the `limit` parameter and additional + * results (if available) will be available through the `next` URL present in the `Link` response header. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the page + * and its corresponding space. + */ + async getLabelBlogPosts( + parameters: Parameters.GetLabelBlogPosts, + callback: Callback + ): Promise; + /** + * Returns the blogposts of specified label. The number of results is limited by the `limit` parameter and additional + * results (if available) will be available through the `next` URL present in the `Link` response header. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the page + * and its corresponding space. + */ + async getLabelBlogPosts( + parameters: Parameters.GetLabelBlogPosts, + callback?: never + ): Promise; + async getLabelBlogPosts( + parameters: Parameters.GetLabelBlogPosts, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: `/labels/${parameters.id}/blogposts`, + method: 'GET', + params: { + sort: parameters.sort, + cursor: parameters.cursor, + limit: parameters.limit, + }, + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Returns all blog posts in a space. The number of results is limited by the `limit` parameter and additional results + * (if available) will be available through the `next` URL present in the `Link` response header. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site + * ('Can use' global permission) and view the space. Only blog posts that the user has permission to view will be + * returned. + */ + async getBlogPostsInSpace( + parameters: Parameters.GetBlogPostsInSpace, + callback: Callback + ): Promise; + /** + * Returns all blog posts in a space. The number of results is limited by the `limit` parameter and additional results + * (if available) will be available through the `next` URL present in the `Link` response header. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site + * ('Can use' global permission) and view the space. Only blog posts that the user has permission to view will be + * returned. + */ + async getBlogPostsInSpace( + parameters: Parameters.GetBlogPostsInSpace, + callback?: never + ): Promise; + async getBlogPostsInSpace( + parameters: Parameters.GetBlogPostsInSpace, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: `/spaces/${parameters.id}/blogposts`, + method: 'GET', + params: { + cursor: parameters.cursor, + limit: parameters.limit, + }, + }; + + return this.client.sendRequest(config, callback); + } +} diff --git a/src/version2/children.ts b/src/version2/children.ts new file mode 100644 index 00000000..624ad38c --- /dev/null +++ b/src/version2/children.ts @@ -0,0 +1,86 @@ +import * as Models from './models'; +import * as Parameters from './parameters'; +import { Callback } from '../callback'; +import { Client } from '../clients'; +import { RequestConfig } from '../requestConfig'; + +export class Children { + constructor(private client: Client) {} + + /** + * Returns all child pages for given page id. The number of results is limited by the `limit` parameter and additional + * results (if available) will be available through the `next` URL present in the `Link` response header. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site + * ('Can use' global permission). Only pages that the user has permission to view will be returned. + */ + async getChildPages( + parameters: Parameters.GetChildPages, + callback: Callback + ): Promise; + /** + * Returns all child pages for given page id. The number of results is limited by the `limit` parameter and additional + * results (if available) will be available through the `next` URL present in the `Link` response header. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site + * ('Can use' global permission). Only pages that the user has permission to view will be returned. + */ + async getChildPages(parameters: Parameters.GetChildPages, callback?: never): Promise; + async getChildPages( + parameters: Parameters.GetChildPages, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: `/pages/${parameters.id}/children`, + method: 'GET', + params: { + cursor: parameters.cursor, + limit: parameters.limit, + sort: parameters.sort, + }, + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Returns all child custom content for given custom content id. The number of results is limited by the `limit` + * parameter and additional results (if available) will be available through the `next` URL present in the `Link` + * response header. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site + * ('Can use' global permission). Only custom content that the user has permission to view will be returned. + */ + async getChildCustomContent( + parameters: Parameters.GetChildCustomContent, + callback: Callback + ): Promise; + /** + * Returns all child custom content for given custom content id. The number of results is limited by the `limit` + * parameter and additional results (if available) will be available through the `next` URL present in the `Link` + * response header. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site + * ('Can use' global permission). Only custom content that the user has permission to view will be returned. + */ + async getChildCustomContent( + parameters: Parameters.GetChildCustomContent, + callback?: never + ): Promise; + async getChildCustomContent( + parameters: Parameters.GetChildCustomContent, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: `/custom-content/${parameters.id}/children`, + method: 'GET', + params: { + cursor: parameters.cursor, + limit: parameters.limit, + sort: parameters.sort, + }, + }; + + return this.client.sendRequest(config, callback); + } +} diff --git a/src/version2/comment.ts b/src/version2/comment.ts new file mode 100644 index 00000000..2711f764 --- /dev/null +++ b/src/version2/comment.ts @@ -0,0 +1,539 @@ +import * as Models from './models'; +import * as Parameters from './parameters'; +import { Callback } from '../callback'; +import { Client } from '../clients'; +import { RequestConfig } from '../requestConfig'; + +export class Comment { + constructor(private client: Client) {} + + /** + * Returns the root footer comments of specific page. The number of results is limited by the `limit` parameter and + * additional results (if available) will be available through the `next` URL present in the `Link` response header. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the page + * and its corresponding space. + */ + async getPageFooterComments( + parameters: Parameters.GetPageFooterComments, + callback: Callback + ): Promise; + /** + * Returns the root footer comments of specific page. The number of results is limited by the `limit` parameter and + * additional results (if available) will be available through the `next` URL present in the `Link` response header. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the page + * and its corresponding space. + */ + async getPageFooterComments( + parameters: Parameters.GetPageFooterComments, + callback?: never + ): Promise; + async getPageFooterComments( + parameters: Parameters.GetPageFooterComments, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: `/pages/${parameters.id}/footer-comments`, + method: 'GET', + params: { + 'body-format': parameters['body-format'], + sort: parameters.sort, + cursor: parameters.cursor, + limit: parameters.limit, + }, + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Returns the root inline comments of specific page. The number of results is limited by the `limit` parameter and + * additional results (if available) will be available through the `next` URL present in the `Link` response header. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the page + * and its corresponding space. + */ + async getPageInlineComments( + parameters: Parameters.GetPageInlineComments, + callback: Callback + ): Promise; + /** + * Returns the root inline comments of specific page. The number of results is limited by the `limit` parameter and + * additional results (if available) will be available through the `next` URL present in the `Link` response header. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the page + * and its corresponding space. + */ + async getPageInlineComments( + parameters: Parameters.GetPageInlineComments, + callback?: never + ): Promise; + async getPageInlineComments( + parameters: Parameters.GetPageInlineComments, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: `/pages/${parameters.id}/inline-comments`, + method: 'GET', + params: { + 'body-format': parameters['body-format'], + sort: parameters.sort, + cursor: parameters.cursor, + limit: parameters.limit, + }, + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Returns the root footer comments of specific blog post. The number of results is limited by the `limit` parameter + * and additional results (if available) will be available through the `next` URL present in the `Link` response + * header. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the blog + * post and its corresponding space. + */ + async getBlogPostFooterComments( + parameters: Parameters.GetBlogPostFooterComments, + callback: Callback + ): Promise; + /** + * Returns the root footer comments of specific blog post. The number of results is limited by the `limit` parameter + * and additional results (if available) will be available through the `next` URL present in the `Link` response + * header. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the blog + * post and its corresponding space. + */ + async getBlogPostFooterComments( + parameters: Parameters.GetBlogPostFooterComments, + callback?: never + ): Promise; + async getBlogPostFooterComments( + parameters: Parameters.GetBlogPostFooterComments, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: `/blogposts/${parameters.id}/footer-comments`, + method: 'GET', + params: { + 'body-format': parameters['body-format'], + sort: parameters.sort, + cursor: parameters.cursor, + limit: parameters.limit, + }, + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Returns the root inline comments of specific blog post. The number of results is limited by the `limit` parameter + * and additional results (if available) will be available through the `next` URL present in the `Link` response + * header. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the blog + * post and its corresponding space. + */ + async getBlogPostInlineComments( + parameters: Parameters.GetBlogPostInlineComments, + callback: Callback + ): Promise; + /** + * Returns the root inline comments of specific blog post. The number of results is limited by the `limit` parameter + * and additional results (if available) will be available through the `next` URL present in the `Link` response + * header. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the blog + * post and its corresponding space. + */ + async getBlogPostInlineComments( + parameters: Parameters.GetBlogPostInlineComments, + callback?: never + ): Promise; + async getBlogPostInlineComments( + parameters: Parameters.GetBlogPostInlineComments, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: `/blogposts/${parameters.id}/inline-comments`, + method: 'GET', + params: { + 'body-format': parameters['body-format'], + sort: parameters.sort, + cursor: parameters.cursor, + limit: parameters.limit, + }, + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Create a footer comment. This can be at the top level (specifying pageId or blogPostId in the request body) or as a + * reply (specifying parentCommentId in the request body). + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the page + * or blogpost and its corresponding space. Permission to create comments in the space. + */ + async createFooterComment( + parameters: Parameters.CreateFooterComment | undefined, + callback: Callback + ): Promise; + /** + * Create a footer comment. This can be at the top level (specifying pageId or blogPostId in the request body) or as a + * reply (specifying parentCommentId in the request body). + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the page + * or blogpost and its corresponding space. Permission to create comments in the space. + */ + async createFooterComment( + parameters?: Parameters.CreateFooterComment, + callback?: never + ): Promise; + async createFooterComment( + parameters?: Parameters.CreateFooterComment, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: '/footer-comments', + method: 'POST', + data: { + blogPostId: parameters?.blogPostId, + pageId: parameters?.pageId, + parentCommentId: parameters?.parentCommentId, + body: parameters?.body, + }, + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Retrieves a footer comment by id + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the page + * or blogpost and its corresponding space. + */ + async getFooterCommentById( + parameters: Parameters.GetFooterCommentById, + callback: Callback + ): Promise; + /** + * Retrieves a footer comment by id + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the page + * or blogpost and its corresponding space. + */ + async getFooterCommentById( + parameters: Parameters.GetFooterCommentById, + callback?: never + ): Promise; + async getFooterCommentById( + parameters: Parameters.GetFooterCommentById, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: `/footer-comments/${parameters.comment - id}`, + method: 'GET', + params: { + 'body-format': parameters['body-format'], + version: parameters.version, + }, + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Update a footer comment. This can be used to update the body text of a comment. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the page + * or blogpost and its corresponding space. Permission to create comments in the space. + */ + async updateFooterComment( + parameters: Parameters.UpdateFooterComment, + callback: Callback + ): Promise; + /** + * Update a footer comment. This can be used to update the body text of a comment. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the page + * or blogpost and its corresponding space. Permission to create comments in the space. + */ + async updateFooterComment( + parameters: Parameters.UpdateFooterComment, + callback?: never + ): Promise; + async updateFooterComment( + parameters: Parameters.UpdateFooterComment, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: `/footer-comments/${parameters.comment - id}`, + method: 'PUT', + data: { + version: parameters.version, + body: parameters.body, + }, + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Deletes a footer comment. This is a permanent deletion and cannot be reverted. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the page + * or blogpost and its corresponding space. Permission to delete comments in the space. + */ + async deleteFooterComment(parameters: Parameters.DeleteFooterComment, callback: Callback): Promise; + /** + * Deletes a footer comment. This is a permanent deletion and cannot be reverted. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the page + * or blogpost and its corresponding space. Permission to delete comments in the space. + */ + async deleteFooterComment(parameters: Parameters.DeleteFooterComment, callback?: never): Promise; + async deleteFooterComment( + parameters: Parameters.DeleteFooterComment, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: `/footer-comments/${parameters.comment - id}`, + method: 'DELETE', + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Returns the children footer comments of specific comment. The number of results is limited by the `limit` parameter + * and additional results (if available) will be available through the `next` URL present in the `Link` response + * header. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the page + * and its corresponding space. + */ + async getFooterCommentChildren( + parameters: Parameters.GetFooterCommentChildren, + callback: Callback + ): Promise; + /** + * Returns the children footer comments of specific comment. The number of results is limited by the `limit` parameter + * and additional results (if available) will be available through the `next` URL present in the `Link` response + * header. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the page + * and its corresponding space. + */ + async getFooterCommentChildren( + parameters: Parameters.GetFooterCommentChildren, + callback?: never + ): Promise; + async getFooterCommentChildren( + parameters: Parameters.GetFooterCommentChildren, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: `/footer-comments/${parameters.id}/children`, + method: 'GET', + params: { + 'body-format': parameters['body-format'], + sort: parameters.sort, + cursor: parameters.cursor, + limit: parameters.limit, + }, + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Create an inline comment. This can be at the top level (specifying pageId or blogPostId in the request body) or as + * a reply (specifying parentCommentId in the request body). Note the inlineCommentProperties object in the request + * body is used to select the text the inline comment should be tied to. This is what determines the text highlighting + * when viewing a page in Confluence. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the page + * or blogpost and its corresponding space. Permission to create comments in the space. + */ + async createInlineComment( + parameters: Parameters.CreateInlineComment | undefined, + callback: Callback + ): Promise; + /** + * Create an inline comment. This can be at the top level (specifying pageId or blogPostId in the request body) or as + * a reply (specifying parentCommentId in the request body). Note the inlineCommentProperties object in the request + * body is used to select the text the inline comment should be tied to. This is what determines the text highlighting + * when viewing a page in Confluence. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the page + * or blogpost and its corresponding space. Permission to create comments in the space. + */ + async createInlineComment( + parameters?: Parameters.CreateInlineComment, + callback?: never + ): Promise; + async createInlineComment( + parameters?: Parameters.CreateInlineComment, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: '/inline-comments', + method: 'POST', + data: { + blogPostId: parameters?.blogPostId, + pageId: parameters?.pageId, + parentCommentId: parameters?.parentCommentId, + body: parameters?.body, + inlineCommentProperties: parameters?.inlineCommentProperties, + }, + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Retrieves an inline comment by id + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the page + * or blogpost and its corresponding space. + */ + async getInlineCommentById( + parameters: Parameters.GetInlineCommentById, + callback: Callback + ): Promise; + /** + * Retrieves an inline comment by id + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the page + * or blogpost and its corresponding space. + */ + async getInlineCommentById( + parameters: Parameters.GetInlineCommentById, + callback?: never + ): Promise; + async getInlineCommentById( + parameters: Parameters.GetInlineCommentById, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: `/inline-comments/${parameters.comment - id}`, + method: 'GET', + params: { + 'body-format': parameters['body-format'], + version: parameters.version, + }, + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Update an inline comment. This can be used to update the body text of a comment and/or to resolve the comment + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the page + * or blogpost and its corresponding space. Permission to create comments in the space. + */ + async updateInlineComment( + parameters: Parameters.UpdateInlineComment, + callback: Callback + ): Promise; + /** + * Update an inline comment. This can be used to update the body text of a comment and/or to resolve the comment + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the page + * or blogpost and its corresponding space. Permission to create comments in the space. + */ + async updateInlineComment( + parameters: Parameters.UpdateInlineComment, + callback?: never + ): Promise; + async updateInlineComment( + parameters: Parameters.UpdateInlineComment, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: `/inline-comments/${parameters.comment - id}`, + method: 'PUT', + data: { + version: parameters.version, + body: parameters.body, + resolved: parameters.resolved, + }, + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Deletes an inline comment. This is a permanent deletion and cannot be reverted. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the page + * or blogpost and its corresponding space. Permission to delete comments in the space. + */ + async deleteInlineComment(parameters: Parameters.DeleteInlineComment, callback: Callback): Promise; + /** + * Deletes an inline comment. This is a permanent deletion and cannot be reverted. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the page + * or blogpost and its corresponding space. Permission to delete comments in the space. + */ + async deleteInlineComment(parameters: Parameters.DeleteInlineComment, callback?: never): Promise; + async deleteInlineComment( + parameters: Parameters.DeleteInlineComment, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: `/inline-comments/${parameters.comment - id}`, + method: 'DELETE', + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Returns the children inline comments of specific comment. The number of results is limited by the `limit` parameter + * and additional results (if available) will be available through the `next` URL present in the `Link` response + * header. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the page + * and its corresponding space. + */ + async getInlineCommentChildren( + parameters: Parameters.GetInlineCommentChildren, + callback: Callback + ): Promise; + /** + * Returns the children inline comments of specific comment. The number of results is limited by the `limit` parameter + * and additional results (if available) will be available through the `next` URL present in the `Link` response + * header. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the page + * and its corresponding space. + */ + async getInlineCommentChildren( + parameters: Parameters.GetInlineCommentChildren, + callback?: never + ): Promise; + async getInlineCommentChildren( + parameters: Parameters.GetInlineCommentChildren, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: `/inline-comments/${parameters.id}/children`, + method: 'GET', + params: { + 'body-format': parameters['body-format'], + sort: parameters.sort, + cursor: parameters.cursor, + limit: parameters.limit, + }, + }; + + return this.client.sendRequest(config, callback); + } +} diff --git a/src/version2/contentProperties.ts b/src/version2/contentProperties.ts new file mode 100644 index 00000000..94b2e150 --- /dev/null +++ b/src/version2/contentProperties.ts @@ -0,0 +1,339 @@ +import * as Models from './models'; +import * as Parameters from './parameters'; +import { Callback } from '../callback'; +import { Client } from '../clients'; +import { RequestConfig } from '../requestConfig'; + +export class ContentProperties { + constructor(private client: Client) {} + + /** + * Retrieves all Content Properties tied to a specified attachment. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the attachment. + */ + async getAttachmentContentProperties( + parameters: Parameters.GetAttachmentContentProperties, + callback: Callback + ): Promise; + /** + * Retrieves all Content Properties tied to a specified attachment. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the attachment. + */ + async getAttachmentContentProperties( + parameters: Parameters.GetAttachmentContentProperties, + callback?: never + ): Promise; + async getAttachmentContentProperties( + parameters: Parameters.GetAttachmentContentProperties, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: `/attachments/${parameters.attachment - id}/properties`, + method: 'GET', + params: { + key: parameters.key, + sort: parameters.sort, + cursor: parameters.cursor, + limit: parameters.limit, + }, + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Retrieves a specific Content Property by ID that is attached to a specified attachment. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the attachment. + */ + async getAttachmentContentPropertiesById( + parameters: Parameters.GetAttachmentContentPropertiesById, + callback: Callback + ): Promise; + /** + * Retrieves a specific Content Property by ID that is attached to a specified attachment. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the attachment. + */ + async getAttachmentContentPropertiesById( + parameters: Parameters.GetAttachmentContentPropertiesById, + callback?: never + ): Promise; + async getAttachmentContentPropertiesById( + parameters: Parameters.GetAttachmentContentPropertiesById, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: `/attachments/${parameters.attachment - id}/properties/${parameters.property - id}`, + method: 'GET', + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Retrieves all Content Properties tied to a specified blog post. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the blog post. + */ + async getBlogpostContentProperties( + parameters: Parameters.GetBlogpostContentProperties, + callback: Callback + ): Promise; + /** + * Retrieves all Content Properties tied to a specified blog post. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the blog post. + */ + async getBlogpostContentProperties( + parameters: Parameters.GetBlogpostContentProperties, + callback?: never + ): Promise; + async getBlogpostContentProperties( + parameters: Parameters.GetBlogpostContentProperties, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: `/blogposts/${parameters.blogpost - id}/properties`, + method: 'GET', + params: { + key: parameters.key, + sort: parameters.sort, + cursor: parameters.cursor, + limit: parameters.limit, + }, + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Retrieves a specific Content Property by ID that is attached to a specified blog post. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the blog post. + */ + async getBlogpostContentPropertiesById( + parameters: Parameters.GetBlogpostContentPropertiesById, + callback: Callback + ): Promise; + /** + * Retrieves a specific Content Property by ID that is attached to a specified blog post. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the blog post. + */ + async getBlogpostContentPropertiesById( + parameters: Parameters.GetBlogpostContentPropertiesById, + callback?: never + ): Promise; + async getBlogpostContentPropertiesById( + parameters: Parameters.GetBlogpostContentPropertiesById, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: `/blogposts/${parameters.blogpost - id}/properties/${parameters.property - id}`, + method: 'GET', + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Retrieves Content Properties tied to a specified custom content. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the custom content. + */ + async getCustomContentContentProperties( + parameters: Parameters.GetCustomContentContentProperties, + callback: Callback + ): Promise; + /** + * Retrieves Content Properties tied to a specified custom content. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the custom content. + */ + async getCustomContentContentProperties( + parameters: Parameters.GetCustomContentContentProperties, + callback?: never + ): Promise; + async getCustomContentContentProperties( + parameters: Parameters.GetCustomContentContentProperties, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: `/custom-content/${parameters.custom - content - id}/properties`, + method: 'GET', + params: { + key: parameters.key, + sort: parameters.sort, + cursor: parameters.cursor, + limit: parameters.limit, + }, + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Retrieves a specific Content Property by ID that is attached to a specified custom content. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the page. + */ + async getCustomContentContentPropertiesById( + parameters: Parameters.GetCustomContentContentPropertiesById, + callback: Callback + ): Promise; + /** + * Retrieves a specific Content Property by ID that is attached to a specified custom content. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the page. + */ + async getCustomContentContentPropertiesById( + parameters: Parameters.GetCustomContentContentPropertiesById, + callback?: never + ): Promise; + async getCustomContentContentPropertiesById( + parameters: Parameters.GetCustomContentContentPropertiesById, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: `/custom-content/${parameters.custom - content - id}/properties/${parameters.property - id}`, + method: 'GET', + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Retrieves Content Properties tied to a specified page. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the page. + */ + async getPageContentProperties( + parameters: Parameters.GetPageContentProperties, + callback: Callback + ): Promise; + /** + * Retrieves Content Properties tied to a specified page. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the page. + */ + async getPageContentProperties( + parameters: Parameters.GetPageContentProperties, + callback?: never + ): Promise; + async getPageContentProperties( + parameters: Parameters.GetPageContentProperties, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: `/pages/${parameters.page - id}/properties`, + method: 'GET', + params: { + key: parameters.key, + sort: parameters.sort, + cursor: parameters.cursor, + limit: parameters.limit, + }, + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Retrieves a specific Content Property by ID that is attached to a specified page. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the page. + */ + async getPageContentPropertiesById( + parameters: Parameters.GetPageContentPropertiesById, + callback: Callback + ): Promise; + /** + * Retrieves a specific Content Property by ID that is attached to a specified page. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the page. + */ + async getPageContentPropertiesById( + parameters: Parameters.GetPageContentPropertiesById, + callback?: never + ): Promise; + async getPageContentPropertiesById( + parameters: Parameters.GetPageContentPropertiesById, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: `/pages/${parameters.page - id}/properties/${parameters.property - id}`, + method: 'GET', + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Retrieves Content Properties attached to a specified comment. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the comment. + */ + async getCommentContentProperties( + parameters: Parameters.GetCommentContentProperties, + callback: Callback + ): Promise; + /** + * Retrieves Content Properties attached to a specified comment. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the comment. + */ + async getCommentContentProperties( + parameters: Parameters.GetCommentContentProperties, + callback?: never + ): Promise; + async getCommentContentProperties( + parameters: Parameters.GetCommentContentProperties, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: `/comments/${parameters.comment - id}/properties`, + method: 'GET', + params: { + key: parameters.key, + sort: parameters.sort, + cursor: parameters.cursor, + limit: parameters.limit, + }, + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Retrieves a specific Content Property by ID that is attached to a specified comment. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the comment. + */ + async getCommentContentPropertiesById( + parameters: Parameters.GetCommentContentPropertiesById, + callback: Callback + ): Promise; + /** + * Retrieves a specific Content Property by ID that is attached to a specified comment. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the comment. + */ + async getCommentContentPropertiesById( + parameters: Parameters.GetCommentContentPropertiesById, + callback?: never + ): Promise; + async getCommentContentPropertiesById( + parameters: Parameters.GetCommentContentPropertiesById, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: `/comments/${parameters.comment - id}/properties/${parameters.property - id}`, + method: 'GET', + }; + + return this.client.sendRequest(config, callback); + } +} diff --git a/src/version2/customContent.ts b/src/version2/customContent.ts new file mode 100644 index 00000000..d2a836df --- /dev/null +++ b/src/version2/customContent.ts @@ -0,0 +1,296 @@ +import * as Models from './models'; +import * as Parameters from './parameters'; +import { Callback } from '../callback'; +import { Client } from '../clients'; +import { RequestConfig } from '../requestConfig'; + +export class CustomContent { + constructor(private client: Client) {} + + /** + * Returns all custom content for a given type within a given blogpost. The number of results is limited by the + * `limit` parameter and additional results (if available) will be available through the `next` URL present in the + * `Link` response header. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the custom content, the + * container of the custom content (blog post), and the corresponding space. + */ + async getCustomContentByTypeInBlogPost( + parameters: Parameters.GetCustomContentByTypeInBlogPost, + callback: Callback + ): Promise; + /** + * Returns all custom content for a given type within a given blogpost. The number of results is limited by the + * `limit` parameter and additional results (if available) will be available through the `next` URL present in the + * `Link` response header. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the custom content, the + * container of the custom content (blog post), and the corresponding space. + */ + async getCustomContentByTypeInBlogPost( + parameters: Parameters.GetCustomContentByTypeInBlogPost, + callback?: never + ): Promise; + async getCustomContentByTypeInBlogPost( + parameters: Parameters.GetCustomContentByTypeInBlogPost, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: `/blogposts/${parameters.id}/custom-content`, + method: 'GET', + params: { + type: parameters.type, + cursor: parameters.cursor, + limit: parameters.limit, + 'body-format': parameters['body-format'], + }, + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Returns all custom content for a given type. The number of results is limited by the `limit` parameter and + * additional results (if available) will be available through the `next` URL present in the `Link` response header. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the custom content, the + * container of the custom content, and the corresponding space (if different from the container). + */ + async getCustomContentByType( + parameters: Parameters.GetCustomContentByType, + callback: Callback + ): Promise; + /** + * Returns all custom content for a given type. The number of results is limited by the `limit` parameter and + * additional results (if available) will be available through the `next` URL present in the `Link` response header. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the custom content, the + * container of the custom content, and the corresponding space (if different from the container). + */ + async getCustomContentByType( + parameters: Parameters.GetCustomContentByType, + callback?: never + ): Promise; + async getCustomContentByType( + parameters: Parameters.GetCustomContentByType, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: '/custom-content', + method: 'GET', + params: { + type: parameters.type, + cursor: parameters.cursor, + limit: parameters.limit, + 'body-format': parameters['body-format'], + }, + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Creates a new custom content in the given space, page, blogpost or other custom conent. + * + * Only one of `spaceId`, `pageId`, `blogPostId`, or `customContentId` is required in the request body. + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the page + * or blogpost and its corresponding space. Permission to create custom content in the space. + */ + async createCustomContent(callback: Callback): Promise; + /** + * Creates a new custom content in the given space, page, blogpost or other custom conent. + * + * Only one of `spaceId`, `pageId`, `blogPostId`, or `customContentId` is required in the request body. + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the page + * or blogpost and its corresponding space. Permission to create custom content in the space. + */ + async createCustomContent(callback?: never): Promise; + async createCustomContent(callback?: Callback): Promise { + const config: RequestConfig = { + url: '/custom-content', + method: 'POST', + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Returns a specific piece of custom content. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the custom content, the + * container of the custom content, and the corresponding space (if different from the container). + */ + async getCustomContentById( + parameters: Parameters.GetCustomContentById, + callback: Callback + ): Promise; + /** + * Returns a specific piece of custom content. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the custom content, the + * container of the custom content, and the corresponding space (if different from the container). + */ + async getCustomContentById( + parameters: Parameters.GetCustomContentById, + callback?: never + ): Promise; + async getCustomContentById( + parameters: Parameters.GetCustomContentById, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: `/custom-content/${parameters.id}`, + method: 'GET', + params: { + 'body-format': parameters['body-format'], + version: parameters.version, + }, + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Update a custom content by id. + * + * `spaceId` is always required and maximum one of `pageId`, `blogPostId`, or `customContentId` is allowed in the + * request body. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content + * of the page or blogpost and its corresponding space. Permission to update custom content in the space. + */ + async updateCustomContent( + parameters: Parameters.UpdateCustomContent, + callback: Callback + ): Promise; + /** + * Update a custom content by id. + * + * `spaceId` is always required and maximum one of `pageId`, `blogPostId`, or `customContentId` is allowed in the + * request body. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content + * of the page or blogpost and its corresponding space. Permission to update custom content in the space. + */ + async updateCustomContent( + parameters: Parameters.UpdateCustomContent, + callback?: never + ): Promise; + async updateCustomContent( + parameters: Parameters.UpdateCustomContent, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: `/custom-content/${parameters.id}`, + method: 'PUT', + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Delete a custom content by id. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the page + * or blogpost and its corresponding space. Permission to delete custom content in the space. + */ + async deleteCustomContent(parameters: Parameters.DeleteCustomContent, callback: Callback): Promise; + /** + * Delete a custom content by id. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the page + * or blogpost and its corresponding space. Permission to delete custom content in the space. + */ + async deleteCustomContent(parameters: Parameters.DeleteCustomContent, callback?: never): Promise; + async deleteCustomContent( + parameters: Parameters.DeleteCustomContent, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: `/custom-content/${parameters.id}`, + method: 'DELETE', + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Returns all custom content for a given type within a given page. The number of results is limited by the `limit` + * parameter and additional results (if available) will be available through the `next` URL present in the `Link` + * response header. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the custom content, the + * container of the custom content (page), and the corresponding space. + */ + async getCustomContentByTypeInPage( + parameters: Parameters.GetCustomContentByTypeInPage, + callback: Callback + ): Promise; + /** + * Returns all custom content for a given type within a given page. The number of results is limited by the `limit` + * parameter and additional results (if available) will be available through the `next` URL present in the `Link` + * response header. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the custom content, the + * container of the custom content (page), and the corresponding space. + */ + async getCustomContentByTypeInPage( + parameters: Parameters.GetCustomContentByTypeInPage, + callback?: never + ): Promise; + async getCustomContentByTypeInPage( + parameters: Parameters.GetCustomContentByTypeInPage, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: `/pages/${parameters.id}/custom-content`, + method: 'GET', + params: { + type: parameters.type, + cursor: parameters.cursor, + limit: parameters.limit, + 'body-format': parameters['body-format'], + }, + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Returns all custom content for a given type within a given space. The number of results is limited by the `limit` + * parameter and additional results (if available) will be available through the `next` URL present in the `Link` + * response header. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the custom content and + * the corresponding space. + */ + async getCustomContentByTypeInSpace( + parameters: Parameters.GetCustomContentByTypeInSpace, + callback: Callback + ): Promise; + /** + * Returns all custom content for a given type within a given space. The number of results is limited by the `limit` + * parameter and additional results (if available) will be available through the `next` URL present in the `Link` + * response header. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the custom content and + * the corresponding space. + */ + async getCustomContentByTypeInSpace( + parameters: Parameters.GetCustomContentByTypeInSpace, + callback?: never + ): Promise; + async getCustomContentByTypeInSpace( + parameters: Parameters.GetCustomContentByTypeInSpace, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: `/spaces/${parameters.id}/custom-content`, + method: 'GET', + params: { + type: parameters.type, + cursor: parameters.cursor, + limit: parameters.limit, + 'body-format': parameters['body-format'], + }, + }; + + return this.client.sendRequest(config, callback); + } +} diff --git a/src/version2/index.ts b/src/version2/index.ts new file mode 100644 index 00000000..25017b02 --- /dev/null +++ b/src/version2/index.ts @@ -0,0 +1,12 @@ +export * from './attachment'; +export * from './blogPost'; +export * from './children'; +export * from './comment'; +export * from './contentProperties'; +export * from './customContent'; +export * from './label'; +export * from './page'; +export * from './space'; +export * from './spaceProperties'; +export * from './task'; +export * from './version'; diff --git a/src/version2/label.ts b/src/version2/label.ts new file mode 100644 index 00000000..de7e906a --- /dev/null +++ b/src/version2/label.ts @@ -0,0 +1,168 @@ +import * as Models from './models'; +import * as Parameters from './parameters'; +import { Callback } from '../callback'; +import { Client } from '../clients'; +import { RequestConfig } from '../requestConfig'; + +export class Label { + constructor(private client: Client) {} + + /** + * Returns the labels of specific attachment. The number of results is limited by the `limit` parameter and additional + * results (if available) will be available through the `next` URL present in the `Link` response header. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the parent content of the + * attachment and its corresponding space. + */ + async getAttachmentLabels( + parameters: Parameters.GetAttachmentLabels, + callback: Callback + ): Promise; + /** + * Returns the labels of specific attachment. The number of results is limited by the `limit` parameter and additional + * results (if available) will be available through the `next` URL present in the `Link` response header. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the parent content of the + * attachment and its corresponding space. + */ + async getAttachmentLabels( + parameters: Parameters.GetAttachmentLabels, + callback?: never + ): Promise; + async getAttachmentLabels( + parameters: Parameters.GetAttachmentLabels, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: `/attachments/${parameters.id}/labels`, + method: 'GET', + params: { + prefix: parameters.prefix, + sort: parameters.sort, + cursor: parameters.cursor, + limit: parameters.limit, + }, + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Returns the labels of specific blog post. The number of results is limited by the `limit` parameter and additional + * results (if available) will be available through the `next` URL present in the `Link` response header. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the blog + * post and its corresponding space. + */ + async getBlogPostLabels( + parameters: Parameters.GetBlogPostLabels, + callback: Callback + ): Promise; + /** + * Returns the labels of specific blog post. The number of results is limited by the `limit` parameter and additional + * results (if available) will be available through the `next` URL present in the `Link` response header. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the blog + * post and its corresponding space. + */ + async getBlogPostLabels( + parameters: Parameters.GetBlogPostLabels, + callback?: never + ): Promise; + async getBlogPostLabels( + parameters: Parameters.GetBlogPostLabels, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: `/blogposts/${parameters.id}/labels`, + method: 'GET', + params: { + prefix: parameters.prefix, + sort: parameters.sort, + cursor: parameters.cursor, + limit: parameters.limit, + }, + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Returns the labels for a specific piece of custom content. The number of results is limited by the `limit` + * parameter and additional results (if available) will be available through the `next` URL present in the `Link` + * response header. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the custom content and + * its corresponding space. + */ + async getCustomContentLabels( + parameters: Parameters.GetCustomContentLabels, + callback: Callback + ): Promise; + /** + * Returns the labels for a specific piece of custom content. The number of results is limited by the `limit` + * parameter and additional results (if available) will be available through the `next` URL present in the `Link` + * response header. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the custom content and + * its corresponding space. + */ + async getCustomContentLabels( + parameters: Parameters.GetCustomContentLabels, + callback?: never + ): Promise; + async getCustomContentLabels( + parameters: Parameters.GetCustomContentLabels, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: `/custom-content/${parameters.id}/labels`, + method: 'GET', + params: { + prefix: parameters.prefix, + sort: parameters.sort, + cursor: parameters.cursor, + limit: parameters.limit, + }, + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Returns the labels of specific page. The number of results is limited by the `limit` parameter and additional + * results (if available) will be available through the `next` URL present in the `Link` response header. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the page + * and its corresponding space. + */ + async getPageLabels( + parameters: Parameters.GetPageLabels, + callback: Callback + ): Promise; + /** + * Returns the labels of specific page. The number of results is limited by the `limit` parameter and additional + * results (if available) will be available through the `next` URL present in the `Link` response header. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the page + * and its corresponding space. + */ + async getPageLabels(parameters: Parameters.GetPageLabels, callback?: never): Promise; + async getPageLabels( + parameters: Parameters.GetPageLabels, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: `/pages/${parameters.id}/labels`, + method: 'GET', + params: { + prefix: parameters.prefix, + sort: parameters.sort, + cursor: parameters.cursor, + limit: parameters.limit, + }, + }; + + return this.client.sendRequest(config, callback); + } +} diff --git a/src/version2/models/attachment.ts b/src/version2/models/attachment.ts new file mode 100644 index 00000000..22b8a652 --- /dev/null +++ b/src/version2/models/attachment.ts @@ -0,0 +1,23 @@ +import { ContentStatus } from './contentStatus'; +import { Version } from './version'; + +export interface Attachment { + /** ID of the attachment. */ + id?: string; + status?: ContentStatus; + /** Title of the comment. */ + title?: string; + /** Media Type for the attachment. */ + mediaType?: string; + /** Media Type description for the attachment. */ + mediaTypeDescription?: string; + /** Comment for the attachment. */ + comment?: string; + /** File size of the attachment. */ + fileSize?: number; + /** WebUI link of the attachment. */ + webuiLink?: string; + /** Download link of the attachment. */ + downloadLink?: string; + version?: Version; +} diff --git a/src/version2/models/attachmentSortOrder.ts b/src/version2/models/attachmentSortOrder.ts new file mode 100644 index 00000000..a04079e1 --- /dev/null +++ b/src/version2/models/attachmentSortOrder.ts @@ -0,0 +1,5 @@ +/** + * The sort fields for attachments. The default sort direction is ascending. To sort in descending order, append a `-` + * character before the sort field. For example, `fieldName` or `-fieldName`. + */ +export interface AttachmentSortOrder {} diff --git a/src/version2/models/blogPost.ts b/src/version2/models/blogPost.ts new file mode 100644 index 00000000..a5cd0704 --- /dev/null +++ b/src/version2/models/blogPost.ts @@ -0,0 +1,19 @@ +import { Body } from './body'; +import { ContentStatus } from './contentStatus'; +import { Version } from './version'; + +export interface BlogPost { + /** ID of the blog post. */ + id?: number; + status?: ContentStatus; + /** Title of the blog post. */ + title?: string; + /** ID of the space the blog post is in. */ + spaceId?: number; + /** The account ID of the user who created this blog post originally. */ + authorId?: string; + /** Date and time when the blog post was created. In format "YYYY-MM-DDTHH:mm:ss.sssZ". */ + createdAt?: string; + version?: Version; + body?: Body; +} diff --git a/src/version2/models/blogPostCommentModel.ts b/src/version2/models/blogPostCommentModel.ts new file mode 100644 index 00000000..dbfea269 --- /dev/null +++ b/src/version2/models/blogPostCommentModel.ts @@ -0,0 +1,16 @@ +import { Body } from './body'; +import { ContentStatus } from './contentStatus'; +import { Version } from './version'; + +export interface BlogPostCommentModel { + /** ID of the comment. */ + id?: number; + status?: ContentStatus; + /** Title of the comment. */ + title?: string; + /** ID of the blog post the comment is in. */ + blogPostId?: number; + version?: Version; + /** Contains representations of the comment's body in different formats. */ + body?: Body; +} diff --git a/src/version2/models/blogPostInlineCommentModel.ts b/src/version2/models/blogPostInlineCommentModel.ts new file mode 100644 index 00000000..e69de29b diff --git a/src/version2/models/blogPostSortOrder.ts b/src/version2/models/blogPostSortOrder.ts new file mode 100644 index 00000000..e21eba68 --- /dev/null +++ b/src/version2/models/blogPostSortOrder.ts @@ -0,0 +1,5 @@ +/** + * The sort fields for blog posts. The default sort direction is ascending. To sort in descending order, append a `-` + * character before the sort field. For example, `fieldName` or `-fieldName`. + */ +export interface BlogPostSortOrder {} diff --git a/src/version2/models/body.ts b/src/version2/models/body.ts new file mode 100644 index 00000000..4f098b51 --- /dev/null +++ b/src/version2/models/body.ts @@ -0,0 +1,7 @@ +import { BodyType } from './bodyType'; + +/** Contains fields for each representation type requested. */ +export interface Body { + storage?: BodyType; + atlasDocFormat?: BodyType; +} diff --git a/src/version2/models/bodyRepresentation.ts b/src/version2/models/bodyRepresentation.ts new file mode 100644 index 00000000..f00f4316 --- /dev/null +++ b/src/version2/models/bodyRepresentation.ts @@ -0,0 +1,2 @@ +/** The formats a body can be represented as. */ +export interface BodyRepresentation {} diff --git a/src/version2/models/bodyType.ts b/src/version2/models/bodyType.ts new file mode 100644 index 00000000..fe1f6b80 --- /dev/null +++ b/src/version2/models/bodyType.ts @@ -0,0 +1,6 @@ +export interface BodyType { + /** Type of content representation used for the value field. */ + representation?: string; + /** Body of the content, in the format found in the representation field. */ + value?: string; +} diff --git a/src/version2/models/childCustomContent.ts b/src/version2/models/childCustomContent.ts new file mode 100644 index 00000000..851d33e4 --- /dev/null +++ b/src/version2/models/childCustomContent.ts @@ -0,0 +1,13 @@ +import { OnlyArchivedAndCurrentContentStatus } from './onlyArchivedAndCurrentContentStatus'; + +export interface ChildCustomContent { + /** ID of the child custom content. */ + id?: number; + status?: OnlyArchivedAndCurrentContentStatus; + /** Title of the custom content. */ + title?: string; + /** Custom content type. */ + type?: string; + /** ID of the space the custom content is in. */ + spaceId?: number; +} diff --git a/src/version2/models/childCustomContentSortOrder.ts b/src/version2/models/childCustomContentSortOrder.ts new file mode 100644 index 00000000..19b88ed6 --- /dev/null +++ b/src/version2/models/childCustomContentSortOrder.ts @@ -0,0 +1,5 @@ +/** + * The sort fields for child custom content. The default sort direction is ascending by id. To sort in descending order, + * append a `-` character before the sort field. For example, `fieldName` or `-fieldName`. + */ +export interface ChildCustomContentSortOrder {} diff --git a/src/version2/models/childPage.ts b/src/version2/models/childPage.ts new file mode 100644 index 00000000..c535bf7b --- /dev/null +++ b/src/version2/models/childPage.ts @@ -0,0 +1,13 @@ +import { OnlyArchivedAndCurrentContentStatus } from './onlyArchivedAndCurrentContentStatus'; + +export interface ChildPage { + /** ID of the page. */ + id?: number; + status?: OnlyArchivedAndCurrentContentStatus; + /** Title of the page. */ + title?: string; + /** ID of the space the page is in. */ + spaceId?: number; + /** Position of child page within the given parent page tree. */ + childPosition?: number; +} diff --git a/src/version2/models/childPageSortOrder.ts b/src/version2/models/childPageSortOrder.ts new file mode 100644 index 00000000..cc723024 --- /dev/null +++ b/src/version2/models/childPageSortOrder.ts @@ -0,0 +1,5 @@ +/** + * The sort fields for child pages. The default sort direction is ascending by child-position. To sort in descending + * order, append a `-` character before the sort field. For example, `fieldName` or `-fieldName`. + */ +export interface ChildPageSortOrder {} diff --git a/src/version2/models/childrenCommentModel.ts b/src/version2/models/childrenCommentModel.ts new file mode 100644 index 00000000..e0017729 --- /dev/null +++ b/src/version2/models/childrenCommentModel.ts @@ -0,0 +1,16 @@ +import { Body } from './body'; +import { ContentStatus } from './contentStatus'; +import { Version } from './version'; + +export interface ChildrenCommentModel { + /** ID of the comment. */ + id?: number; + status?: ContentStatus; + /** Title of the comment. */ + title?: string; + /** ID of the parent comment the child comment is in. */ + parentCommentId?: number; + version?: Version; + /** Contains representations of the comment's body in different formats. */ + body?: Body; +} diff --git a/src/version2/models/commentSortOrder.ts b/src/version2/models/commentSortOrder.ts new file mode 100644 index 00000000..98ac595d --- /dev/null +++ b/src/version2/models/commentSortOrder.ts @@ -0,0 +1,5 @@ +/** + * The sort fields for comments. The default sort direction is ascending. To sort in descending order, append a `-` + * character before the sort field. For example, `fieldName` or `-fieldName`. + */ +export interface CommentSortOrder {} diff --git a/src/version2/models/contentProperty.ts b/src/version2/models/contentProperty.ts new file mode 100644 index 00000000..01e43924 --- /dev/null +++ b/src/version2/models/contentProperty.ts @@ -0,0 +1,11 @@ +import { Version } from './version'; + +export interface ContentProperty { + /** ID of the property */ + id?: number; + /** Key of the property */ + key?: string; + /** Value of the property. Must be a valid JSON value. */ + value?: {}; + version?: Version; +} diff --git a/src/version2/models/contentPropertySortOrder.ts b/src/version2/models/contentPropertySortOrder.ts new file mode 100644 index 00000000..9696d842 --- /dev/null +++ b/src/version2/models/contentPropertySortOrder.ts @@ -0,0 +1,5 @@ +/** + * The sort fields for content properties. The default sort direction is ascending. To sort in descending order, append + * a `-` character before the sort field. For example, `fieldName` or `-fieldName`. + */ +export interface ContentPropertySortOrder {} diff --git a/src/version2/models/contentStatus.ts b/src/version2/models/contentStatus.ts new file mode 100644 index 00000000..ba15d07b --- /dev/null +++ b/src/version2/models/contentStatus.ts @@ -0,0 +1,2 @@ +/** The status of the content. */ +export interface ContentStatus {} diff --git a/src/version2/models/createFooterCommentModel.ts b/src/version2/models/createFooterCommentModel.ts new file mode 100644 index 00000000..e4108554 --- /dev/null +++ b/src/version2/models/createFooterCommentModel.ts @@ -0,0 +1,17 @@ +export interface CreateFooterCommentModel { + /** + * ID of the containing blog post, if intending to create a top level footer comment. Do not provide if creating a + * reply. + */ + blogPostId?: number; + /** ID of the containing page, if intending to create a top level footer comment. Do not provide if creating a reply. */ + pageId?: number; + /** ID of the parent comment, if intending to create a reply. Do not provide if creating a top level comment. */ + parentCommentId?: number; + body?: { + /** Body of the comment */ + value?: string; + /** Format of the body's value. */ + representation?: string; + }; +} diff --git a/src/version2/models/createInlineCommentModel.ts b/src/version2/models/createInlineCommentModel.ts new file mode 100644 index 00000000..c00ff969 --- /dev/null +++ b/src/version2/models/createInlineCommentModel.ts @@ -0,0 +1,34 @@ +export interface CreateInlineCommentModel { + /** + * ID of the containing blog post, if intending to create a top level footer comment. Do not provide if creating a + * reply. + */ + blogPostId?: number; + /** ID of the containing page, if intending to create a top level footer comment. Do not provide if creating a reply. */ + pageId?: number; + /** ID of the parent comment, if intending to create a reply. Do not provide if creating a top level comment. */ + parentCommentId?: number; + /** Body of the comment */ + body?: { + /** Body of the comment */ + value?: string; + /** Format of the body's value. */ + representation?: string; + }; + /** + * Object describing the text to highlight on the page/blog post. Only applicable for top level inline comments (not + * replies) and required in that case. + */ + inlineCommentProperties?: { + /** The text to highlight */ + textSelection?: string; + /** The number of matches for the selected text on the page (should be strictly greater than textSelectionMatchIndex) */ + textSelectionMatchCount?: number; + /** + * The match index to highlight. This is zero-based. E.g. if you have 3 occurrences of "hello world" on a page and + * you want to highlight the second occurrence, you should pass 1 for textSelectionMatchIndex and 3 for + * textSelectionMatchCount. + */ + textSelectionMatchIndex?: number; + }; +} diff --git a/src/version2/models/customContent.ts b/src/version2/models/customContent.ts new file mode 100644 index 00000000..b8b42a40 --- /dev/null +++ b/src/version2/models/customContent.ts @@ -0,0 +1,43 @@ +import { ContentStatus } from './contentStatus'; +import { CustomContentBody } from './customContentBody'; +import { Version } from './version'; + +export interface CustomContent { + /** ID of the custom content. */ + id?: number; + /** The type of custom content. */ + type?: string; + status?: ContentStatus; + /** Title of the custom content. */ + title?: string; + /** + * ID of the space the custom content is in. + * + * Note: This is always returned, regardless of if the custom content has a container that is a space. + */ + spaceId?: number; + /** + * ID of the containing page. + * + * Note: This is only returned if the custom content has a container that is a page. + */ + pageId?: number; + /** + * ID of the containing blog post. + * + * Note: This is only returned if the custom content has a container that is a blog post. + */ + blogPostId?: number; + /** + * ID of the containing custom content. + * + * Note: This is only returned if the custom content has a container that is custom content. + */ + customContentId?: number; + /** The account ID of the user who created this custom content originally. */ + authorId?: string; + /** Date and time when the custom content was created. In format "YYYY-MM-DDTHH:mm:ss.sssZ". */ + createdAt?: string; + body?: CustomContentBody; + version?: Version; +} diff --git a/src/version2/models/customContentBody.ts b/src/version2/models/customContentBody.ts new file mode 100644 index 00000000..0b9fd065 --- /dev/null +++ b/src/version2/models/customContentBody.ts @@ -0,0 +1,8 @@ +import { BodyType } from './bodyType'; + +/** Contains fields for each representation type requested. */ +export interface CustomContentBody { + raw?: BodyType; + storage?: BodyType; + atlasDocFormat?: BodyType; +} diff --git a/src/version2/models/customContentBodyRepresentation.ts b/src/version2/models/customContentBodyRepresentation.ts new file mode 100644 index 00000000..aa9c93fd --- /dev/null +++ b/src/version2/models/customContentBodyRepresentation.ts @@ -0,0 +1,2 @@ +/** The formats a custom content body can be represented as. A subset of BodyRepresentation. */ +export interface CustomContentBodyRepresentation {} diff --git a/src/version2/models/detailedVersion.ts b/src/version2/models/detailedVersion.ts new file mode 100644 index 00000000..41969372 --- /dev/null +++ b/src/version2/models/detailedVersion.ts @@ -0,0 +1,23 @@ +export interface DetailedVersion { + /** The current version number. */ + number?: number; + /** The account ID of the user who created this version. */ + authorId?: string; + /** Message associated with the current version. */ + message?: string; + /** Date and time when the version was created. In format "YYYY-MM-DDTHH:mm:ss.sssZ". */ + createdAt?: string; + /** + * Describes if this version is a minor version. Email notifications and activity stream updates are not created for + * minor versions. + */ + minorEdit?: boolean; + /** Describes if the content type is modified in this version (e.g. page to blog) */ + contentTypeModified?: boolean; + /** The account IDs of users that collaborated on this version. */ + collaborators?: string[]; + /** The version number of the version prior to this current content update. */ + prevVersion?: number; + /** The version number of the version after this current content update. */ + nextVersion?: number; +} diff --git a/src/version2/models/footerCommentModel.ts b/src/version2/models/footerCommentModel.ts new file mode 100644 index 00000000..2493b208 --- /dev/null +++ b/src/version2/models/footerCommentModel.ts @@ -0,0 +1,19 @@ +import { Body } from './body'; +import { ContentStatus } from './contentStatus'; +import { Version } from './version'; + +export interface FooterCommentModel { + /** ID of the comment. */ + id?: number; + status?: ContentStatus; + /** Title of the comment. */ + title?: string; + /** ID of the blog post containing the comment if the comment is on a blog post. */ + blogPostId?: number; + /** ID of the page containing the comment if the comment is on a page. */ + pageId?: number; + /** ID of the parent comment if the comment is a reply. */ + parentCommentId?: number; + version?: Version; + body?: Body; +} diff --git a/src/version2/models/getAttachmentContentProperties.ts b/src/version2/models/getAttachmentContentProperties.ts new file mode 100644 index 00000000..f9237ab4 --- /dev/null +++ b/src/version2/models/getAttachmentContentProperties.ts @@ -0,0 +1,5 @@ +import { ContentProperty } from './contentProperty'; + +export interface GetAttachmentContentProperties { + results?: ContentProperty[]; +} diff --git a/src/version2/models/getAttachmentLabels.ts b/src/version2/models/getAttachmentLabels.ts new file mode 100644 index 00000000..c8be641d --- /dev/null +++ b/src/version2/models/getAttachmentLabels.ts @@ -0,0 +1,5 @@ +import { Label } from './label'; + +export interface GetAttachmentLabels { + results?: Label[]; +} diff --git a/src/version2/models/getAttachmentVersions.ts b/src/version2/models/getAttachmentVersions.ts new file mode 100644 index 00000000..5a6d844a --- /dev/null +++ b/src/version2/models/getAttachmentVersions.ts @@ -0,0 +1,5 @@ +import { Version } from './version'; + +export interface GetAttachmentVersions { + results?: Version[]; +} diff --git a/src/version2/models/getBlogPostFooterComments.ts b/src/version2/models/getBlogPostFooterComments.ts new file mode 100644 index 00000000..2a003959 --- /dev/null +++ b/src/version2/models/getBlogPostFooterComments.ts @@ -0,0 +1,5 @@ +import { BlogPostCommentModel } from './blogPostCommentModel'; + +export interface GetBlogPostFooterComments { + results?: BlogPostCommentModel[]; +} diff --git a/src/version2/models/getBlogPostInlineComments.ts b/src/version2/models/getBlogPostInlineComments.ts new file mode 100644 index 00000000..6f16108b --- /dev/null +++ b/src/version2/models/getBlogPostInlineComments.ts @@ -0,0 +1,5 @@ +import { BlogPostInlineCommentModel } from './blogPostInlineCommentModel'; + +export interface GetBlogPostInlineComments { + results?: BlogPostInlineCommentModel[]; +} diff --git a/src/version2/models/getBlogPostLabels.ts b/src/version2/models/getBlogPostLabels.ts new file mode 100644 index 00000000..598f278d --- /dev/null +++ b/src/version2/models/getBlogPostLabels.ts @@ -0,0 +1,5 @@ +import { Label } from './label'; + +export interface GetBlogPostLabels { + results?: Label[]; +} diff --git a/src/version2/models/getBlogPostVersions.ts b/src/version2/models/getBlogPostVersions.ts new file mode 100644 index 00000000..0366c974 --- /dev/null +++ b/src/version2/models/getBlogPostVersions.ts @@ -0,0 +1,5 @@ +import { Version } from './version'; + +export interface GetBlogPostVersions { + results?: Version[]; +} diff --git a/src/version2/models/getBlogPosts.ts b/src/version2/models/getBlogPosts.ts new file mode 100644 index 00000000..4624c4e7 --- /dev/null +++ b/src/version2/models/getBlogPosts.ts @@ -0,0 +1,5 @@ +import { BlogPost } from './blogPost'; + +export interface GetBlogPosts { + results?: BlogPost[]; +} diff --git a/src/version2/models/getBlogPostsInSpace.ts b/src/version2/models/getBlogPostsInSpace.ts new file mode 100644 index 00000000..a046332b --- /dev/null +++ b/src/version2/models/getBlogPostsInSpace.ts @@ -0,0 +1,5 @@ +import { BlogPost } from './blogPost'; + +export interface GetBlogPostsInSpace { + results?: BlogPost[]; +} diff --git a/src/version2/models/getBlogpostAttachments.ts b/src/version2/models/getBlogpostAttachments.ts new file mode 100644 index 00000000..05f7eec5 --- /dev/null +++ b/src/version2/models/getBlogpostAttachments.ts @@ -0,0 +1,5 @@ +import { Attachment } from './attachment'; + +export interface GetBlogpostAttachments { + results?: Attachment[]; +} diff --git a/src/version2/models/getBlogpostContentProperties.ts b/src/version2/models/getBlogpostContentProperties.ts new file mode 100644 index 00000000..6eccf99c --- /dev/null +++ b/src/version2/models/getBlogpostContentProperties.ts @@ -0,0 +1,5 @@ +import { ContentProperty } from './contentProperty'; + +export interface GetBlogpostContentProperties { + results?: ContentProperty[]; +} diff --git a/src/version2/models/getChildCustomContent.ts b/src/version2/models/getChildCustomContent.ts new file mode 100644 index 00000000..304a83e5 --- /dev/null +++ b/src/version2/models/getChildCustomContent.ts @@ -0,0 +1,5 @@ +import { ChildCustomContent } from './childCustomContent'; + +export interface GetChildCustomContent { + results?: ChildCustomContent[]; +} diff --git a/src/version2/models/getChildPages.ts b/src/version2/models/getChildPages.ts new file mode 100644 index 00000000..2222a855 --- /dev/null +++ b/src/version2/models/getChildPages.ts @@ -0,0 +1,5 @@ +import { ChildPage } from './childPage'; + +export interface GetChildPages { + results?: ChildPage[]; +} diff --git a/src/version2/models/getCommentContentProperties.ts b/src/version2/models/getCommentContentProperties.ts new file mode 100644 index 00000000..ad617c38 --- /dev/null +++ b/src/version2/models/getCommentContentProperties.ts @@ -0,0 +1,5 @@ +import { ContentProperty } from './contentProperty'; + +export interface GetCommentContentProperties { + results?: ContentProperty[]; +} diff --git a/src/version2/models/getCustomContentAttachments.ts b/src/version2/models/getCustomContentAttachments.ts new file mode 100644 index 00000000..b96cdb06 --- /dev/null +++ b/src/version2/models/getCustomContentAttachments.ts @@ -0,0 +1,5 @@ +import { Attachment } from './attachment'; + +export interface GetCustomContentAttachments { + results?: Attachment[]; +} diff --git a/src/version2/models/getCustomContentByType.ts b/src/version2/models/getCustomContentByType.ts new file mode 100644 index 00000000..6d3efed5 --- /dev/null +++ b/src/version2/models/getCustomContentByType.ts @@ -0,0 +1,5 @@ +import { CustomContent } from './customContent'; + +export interface GetCustomContentByType { + results?: CustomContent[]; +} diff --git a/src/version2/models/getCustomContentByTypeInBlogPost.ts b/src/version2/models/getCustomContentByTypeInBlogPost.ts new file mode 100644 index 00000000..d7762b33 --- /dev/null +++ b/src/version2/models/getCustomContentByTypeInBlogPost.ts @@ -0,0 +1,5 @@ +import { CustomContent } from './customContent'; + +export interface GetCustomContentByTypeInBlogPost { + results?: CustomContent[]; +} diff --git a/src/version2/models/getCustomContentByTypeInPage.ts b/src/version2/models/getCustomContentByTypeInPage.ts new file mode 100644 index 00000000..c0f810c8 --- /dev/null +++ b/src/version2/models/getCustomContentByTypeInPage.ts @@ -0,0 +1,5 @@ +import { CustomContent } from './customContent'; + +export interface GetCustomContentByTypeInPage { + results?: CustomContent[]; +} diff --git a/src/version2/models/getCustomContentByTypeInSpace.ts b/src/version2/models/getCustomContentByTypeInSpace.ts new file mode 100644 index 00000000..4d624277 --- /dev/null +++ b/src/version2/models/getCustomContentByTypeInSpace.ts @@ -0,0 +1,5 @@ +import { CustomContent } from './customContent'; + +export interface GetCustomContentByTypeInSpace { + results?: CustomContent[]; +} diff --git a/src/version2/models/getCustomContentContentProperties.ts b/src/version2/models/getCustomContentContentProperties.ts new file mode 100644 index 00000000..a3591ee2 --- /dev/null +++ b/src/version2/models/getCustomContentContentProperties.ts @@ -0,0 +1,5 @@ +import { ContentProperty } from './contentProperty'; + +export interface GetCustomContentContentProperties { + results?: ContentProperty[]; +} diff --git a/src/version2/models/getCustomContentLabels.ts b/src/version2/models/getCustomContentLabels.ts new file mode 100644 index 00000000..93624c8b --- /dev/null +++ b/src/version2/models/getCustomContentLabels.ts @@ -0,0 +1,5 @@ +import { Label } from './label'; + +export interface GetCustomContentLabels { + results?: Label[]; +} diff --git a/src/version2/models/getCustomContentVersions.ts b/src/version2/models/getCustomContentVersions.ts new file mode 100644 index 00000000..5a66c321 --- /dev/null +++ b/src/version2/models/getCustomContentVersions.ts @@ -0,0 +1,5 @@ +import { Version } from './version'; + +export interface GetCustomContentVersions { + results?: Version[]; +} diff --git a/src/version2/models/getFooterCommentChildren.ts b/src/version2/models/getFooterCommentChildren.ts new file mode 100644 index 00000000..11d0358a --- /dev/null +++ b/src/version2/models/getFooterCommentChildren.ts @@ -0,0 +1,5 @@ +import { ChildrenCommentModel } from './childrenCommentModel'; + +export interface GetFooterCommentChildren { + results?: ChildrenCommentModel[]; +} diff --git a/src/version2/models/getInlineCommentChildren.ts b/src/version2/models/getInlineCommentChildren.ts new file mode 100644 index 00000000..c9b6cf00 --- /dev/null +++ b/src/version2/models/getInlineCommentChildren.ts @@ -0,0 +1,5 @@ +import { InlineCommentChildrenModel } from './inlineCommentChildrenModel'; + +export interface GetInlineCommentChildren { + results?: InlineCommentChildrenModel[]; +} diff --git a/src/version2/models/getLabelBlogPosts.ts b/src/version2/models/getLabelBlogPosts.ts new file mode 100644 index 00000000..19bd35bc --- /dev/null +++ b/src/version2/models/getLabelBlogPosts.ts @@ -0,0 +1,5 @@ +import { BlogPost } from './blogPost'; + +export interface GetLabelBlogPosts { + results?: BlogPost[]; +} diff --git a/src/version2/models/getLabelPages.ts b/src/version2/models/getLabelPages.ts new file mode 100644 index 00000000..230ed6be --- /dev/null +++ b/src/version2/models/getLabelPages.ts @@ -0,0 +1,5 @@ +import { Page } from './page'; + +export interface GetLabelPages { + results?: Page[]; +} diff --git a/src/version2/models/getPageAttachments.ts b/src/version2/models/getPageAttachments.ts new file mode 100644 index 00000000..70fda8e9 --- /dev/null +++ b/src/version2/models/getPageAttachments.ts @@ -0,0 +1,5 @@ +import { Attachment } from './attachment'; + +export interface GetPageAttachments { + results?: Attachment[]; +} diff --git a/src/version2/models/getPageContentProperties.ts b/src/version2/models/getPageContentProperties.ts new file mode 100644 index 00000000..eafe188e --- /dev/null +++ b/src/version2/models/getPageContentProperties.ts @@ -0,0 +1,5 @@ +import { ContentProperty } from './contentProperty'; + +export interface GetPageContentProperties { + results?: ContentProperty[]; +} diff --git a/src/version2/models/getPageFooterComments.ts b/src/version2/models/getPageFooterComments.ts new file mode 100644 index 00000000..0a17de7d --- /dev/null +++ b/src/version2/models/getPageFooterComments.ts @@ -0,0 +1,5 @@ +import { PageCommentModel } from './pageCommentModel'; + +export interface GetPageFooterComments { + results?: PageCommentModel[]; +} diff --git a/src/version2/models/getPageInlineComments.ts b/src/version2/models/getPageInlineComments.ts new file mode 100644 index 00000000..c747d209 --- /dev/null +++ b/src/version2/models/getPageInlineComments.ts @@ -0,0 +1,5 @@ +import { PageInlineCommentModel } from './pageInlineCommentModel'; + +export interface GetPageInlineComments { + results?: PageInlineCommentModel[]; +} diff --git a/src/version2/models/getPageLabels.ts b/src/version2/models/getPageLabels.ts new file mode 100644 index 00000000..6de3ece2 --- /dev/null +++ b/src/version2/models/getPageLabels.ts @@ -0,0 +1,5 @@ +import { Label } from './label'; + +export interface GetPageLabels { + results?: Label[]; +} diff --git a/src/version2/models/getPageVersions.ts b/src/version2/models/getPageVersions.ts new file mode 100644 index 00000000..c3db4d7a --- /dev/null +++ b/src/version2/models/getPageVersions.ts @@ -0,0 +1,5 @@ +import { Version } from './version'; + +export interface GetPageVersions { + results?: Version[]; +} diff --git a/src/version2/models/getPages.ts b/src/version2/models/getPages.ts new file mode 100644 index 00000000..978a4eb5 --- /dev/null +++ b/src/version2/models/getPages.ts @@ -0,0 +1,5 @@ +import { Page } from './page'; + +export interface GetPages { + results?: Page[]; +} diff --git a/src/version2/models/getPagesInSpace.ts b/src/version2/models/getPagesInSpace.ts new file mode 100644 index 00000000..b9936cde --- /dev/null +++ b/src/version2/models/getPagesInSpace.ts @@ -0,0 +1,5 @@ +import { Page } from './page'; + +export interface GetPagesInSpace { + results?: Page[]; +} diff --git a/src/version2/models/getSpaceProperties.ts b/src/version2/models/getSpaceProperties.ts new file mode 100644 index 00000000..388549a1 --- /dev/null +++ b/src/version2/models/getSpaceProperties.ts @@ -0,0 +1,5 @@ +import { SpaceProperty } from './spaceProperty'; + +export interface GetSpaceProperties { + results?: SpaceProperty[]; +} diff --git a/src/version2/models/getSpaces.ts b/src/version2/models/getSpaces.ts new file mode 100644 index 00000000..21d7153a --- /dev/null +++ b/src/version2/models/getSpaces.ts @@ -0,0 +1,5 @@ +import { Space } from './space'; + +export interface GetSpaces { + results?: Space[]; +} diff --git a/src/version2/models/getTasks.ts b/src/version2/models/getTasks.ts new file mode 100644 index 00000000..0728f4e2 --- /dev/null +++ b/src/version2/models/getTasks.ts @@ -0,0 +1,5 @@ +import { Task } from './task'; + +export interface GetTasks { + results?: Task[]; +} diff --git a/src/version2/models/index.ts b/src/version2/models/index.ts new file mode 100644 index 00000000..1a45ef06 --- /dev/null +++ b/src/version2/models/index.ts @@ -0,0 +1,88 @@ +export * from './attachment'; +export * from './attachmentSortOrder'; +export * from './blogPost'; +export * from './blogPostCommentModel'; +export * from './blogPostInlineCommentModel'; +export * from './blogPostSortOrder'; +export * from './body'; +export * from './bodyRepresentation'; +export * from './bodyType'; +export * from './childCustomContent'; +export * from './childCustomContentSortOrder'; +export * from './childPage'; +export * from './childPageSortOrder'; +export * from './childrenCommentModel'; +export * from './commentSortOrder'; +export * from './contentProperty'; +export * from './contentPropertySortOrder'; +export * from './contentStatus'; +export * from './createFooterCommentModel'; +export * from './createInlineCommentModel'; +export * from './customContent'; +export * from './customContentBody'; +export * from './customContentBodyRepresentation'; +export * from './detailedVersion'; +export * from './footerCommentModel'; +export * from './getAttachmentContentProperties'; +export * from './getAttachmentLabels'; +export * from './getAttachmentVersions'; +export * from './getBlogPostFooterComments'; +export * from './getBlogPostInlineComments'; +export * from './getBlogPostLabels'; +export * from './getBlogPostVersions'; +export * from './getBlogPosts'; +export * from './getBlogPostsInSpace'; +export * from './getBlogpostAttachments'; +export * from './getBlogpostContentProperties'; +export * from './getChildCustomContent'; +export * from './getChildPages'; +export * from './getCommentContentProperties'; +export * from './getCustomContentAttachments'; +export * from './getCustomContentByType'; +export * from './getCustomContentByTypeInBlogPost'; +export * from './getCustomContentByTypeInPage'; +export * from './getCustomContentByTypeInSpace'; +export * from './getCustomContentContentProperties'; +export * from './getCustomContentLabels'; +export * from './getCustomContentVersions'; +export * from './getFooterCommentChildren'; +export * from './getInlineCommentChildren'; +export * from './getLabelBlogPosts'; +export * from './getLabelPages'; +export * from './getPageAttachments'; +export * from './getPageContentProperties'; +export * from './getPageFooterComments'; +export * from './getPageInlineComments'; +export * from './getPageLabels'; +export * from './getPageVersions'; +export * from './getPages'; +export * from './getPagesInSpace'; +export * from './getSpaceProperties'; +export * from './getSpaces'; +export * from './getTasks'; +export * from './inlineCommentChildrenModel'; +export * from './inlineCommentModel'; +export * from './inlineCommentProperties'; +export * from './inlineCommentResolutionStatus'; +export * from './label'; +export * from './labelSortOrder'; +export * from './onlyArchivedAndCurrentContentStatus'; +export * from './page'; +export * from './pageCommentModel'; +export * from './pageInlineCommentModel'; +export * from './pageSortOrder'; +export * from './primaryBodyRepresentation'; +export * from './space'; +export * from './spaceDescription'; +export * from './spaceDescriptionBodyRepresentation'; +export * from './spaceProperty'; +export * from './spacePropertyCreateRequest'; +export * from './spacePropertyUpdateRequest'; +export * from './spaceSortOrder'; +export * from './spaceStatus'; +export * from './spaceType'; +export * from './task'; +export * from './updateFooterCommentModel'; +export * from './updateInlineCommentModel'; +export * from './version'; +export * from './versionSortOrder'; diff --git a/src/version2/models/inlineCommentChildrenModel.ts b/src/version2/models/inlineCommentChildrenModel.ts new file mode 100644 index 00000000..e69de29b diff --git a/src/version2/models/inlineCommentModel.ts b/src/version2/models/inlineCommentModel.ts new file mode 100644 index 00000000..911174df --- /dev/null +++ b/src/version2/models/inlineCommentModel.ts @@ -0,0 +1,30 @@ +import { Body } from './body'; +import { ContentStatus } from './contentStatus'; +import { InlineCommentProperties } from './inlineCommentProperties'; +import { InlineCommentResolutionStatus } from './inlineCommentResolutionStatus'; +import { Version } from './version'; + +export interface InlineCommentModel { + /** ID of the comment. */ + id?: number; + status?: ContentStatus; + /** Title of the comment. */ + title?: string; + /** ID of the blog post containing the comment if the comment is on a blog post. */ + blogPostId?: number; + /** ID of the page containing the comment if the comment is on a page. */ + pageId?: number; + /** ID of the parent comment if the comment is a reply. */ + parentCommentId?: number; + version?: Version; + body?: Body; + /** + * Atlassian Account ID of last person who modified the resolve state of the comment. Null until comment is resolved + * or reopened. + */ + resolutionLastModifierId?: string; + /** Timestamp of the last modification to the comment's resolution status. Null until comment is resolved or reopened. */ + resolutionLastModifiedAt?: string; + resolutionStatus?: InlineCommentResolutionStatus; + properties?: InlineCommentProperties; +} diff --git a/src/version2/models/inlineCommentProperties.ts b/src/version2/models/inlineCommentProperties.ts new file mode 100644 index 00000000..631915ef --- /dev/null +++ b/src/version2/models/inlineCommentProperties.ts @@ -0,0 +1 @@ +export interface InlineCommentProperties {} diff --git a/src/version2/models/inlineCommentResolutionStatus.ts b/src/version2/models/inlineCommentResolutionStatus.ts new file mode 100644 index 00000000..799fa855 --- /dev/null +++ b/src/version2/models/inlineCommentResolutionStatus.ts @@ -0,0 +1,2 @@ +/** Inline comment resolution status */ +export interface InlineCommentResolutionStatus {} diff --git a/src/version2/models/label.ts b/src/version2/models/label.ts new file mode 100644 index 00000000..b5b36e0c --- /dev/null +++ b/src/version2/models/label.ts @@ -0,0 +1,8 @@ +export interface Label { + /** ID of the label. */ + id?: number; + /** Name of the label. */ + name?: string; + /** Prefix of the label. */ + prefix?: string; +} diff --git a/src/version2/models/labelSortOrder.ts b/src/version2/models/labelSortOrder.ts new file mode 100644 index 00000000..64376ca4 --- /dev/null +++ b/src/version2/models/labelSortOrder.ts @@ -0,0 +1,5 @@ +/** + * The sort fields for labels. The default sort direction is ascending. To sort in descending order, append a `-` + * character before the sort field. For example, `fieldName` or `-fieldName`. + */ +export interface LabelSortOrder {} diff --git a/src/version2/models/onlyArchivedAndCurrentContentStatus.ts b/src/version2/models/onlyArchivedAndCurrentContentStatus.ts new file mode 100644 index 00000000..25bf4d8f --- /dev/null +++ b/src/version2/models/onlyArchivedAndCurrentContentStatus.ts @@ -0,0 +1,2 @@ +/** The status of the content. */ +export interface OnlyArchivedAndCurrentContentStatus {} diff --git a/src/version2/models/page.ts b/src/version2/models/page.ts new file mode 100644 index 00000000..9d3cdf5c --- /dev/null +++ b/src/version2/models/page.ts @@ -0,0 +1,21 @@ +import { Body } from './body'; +import { ContentStatus } from './contentStatus'; +import { Version } from './version'; + +export interface Page { + /** ID of the page. */ + id?: number; + status?: ContentStatus; + /** Title of the page. */ + title?: string; + /** ID of the space the page is in. */ + spaceId?: number; + /** ID of the parent page, or null if there is no parent page. */ + parentId?: number; + /** The account ID of the user who created this page originally. */ + authorId?: string; + /** Date and time when the page was created. In format "YYYY-MM-DDTHH:mm:ss.sssZ". */ + createdAt?: string; + version?: Version; + body?: Body; +} diff --git a/src/version2/models/pageCommentModel.ts b/src/version2/models/pageCommentModel.ts new file mode 100644 index 00000000..b0c31e9d --- /dev/null +++ b/src/version2/models/pageCommentModel.ts @@ -0,0 +1,16 @@ +import { Body } from './body'; +import { ContentStatus } from './contentStatus'; +import { Version } from './version'; + +export interface PageCommentModel { + /** ID of the comment. */ + id?: number; + status?: ContentStatus; + /** Title of the comment. */ + title?: string; + /** ID of the page the comment is in. */ + pageId?: number; + version?: Version; + /** Contains representations of the comment's body in different formats. */ + body?: Body; +} diff --git a/src/version2/models/pageInlineCommentModel.ts b/src/version2/models/pageInlineCommentModel.ts new file mode 100644 index 00000000..e69de29b diff --git a/src/version2/models/pageSortOrder.ts b/src/version2/models/pageSortOrder.ts new file mode 100644 index 00000000..db9a0ec0 --- /dev/null +++ b/src/version2/models/pageSortOrder.ts @@ -0,0 +1,5 @@ +/** + * The sort fields for pages. The default sort direction is ascending. To sort in descending order, append a `-` + * character before the sort field. For example, `fieldName` or `-fieldName`. + */ +export interface PageSortOrder {} diff --git a/src/version2/models/primaryBodyRepresentation.ts b/src/version2/models/primaryBodyRepresentation.ts new file mode 100644 index 00000000..eb812e3b --- /dev/null +++ b/src/version2/models/primaryBodyRepresentation.ts @@ -0,0 +1,5 @@ +/** + * The primary formats a body can be represented as. A subset of BodyRepresentation. These formats are the only allowed + * formats in certain use cases. + */ +export interface PrimaryBodyRepresentation {} diff --git a/src/version2/models/space.ts b/src/version2/models/space.ts new file mode 100644 index 00000000..cb4134c8 --- /dev/null +++ b/src/version2/models/space.ts @@ -0,0 +1,17 @@ +import { SpaceDescription } from './spaceDescription'; +import { SpaceStatus } from './spaceStatus'; +import { SpaceType } from './spaceType'; + +export interface Space { + /** ID of the space. */ + id?: number; + /** Key of the space. */ + key?: string; + /** Name of the space. */ + name?: string; + type?: SpaceType; + status?: SpaceStatus; + /** ID of the space's homepage. */ + homepageId?: number; + description?: SpaceDescription; +} diff --git a/src/version2/models/spaceDescription.ts b/src/version2/models/spaceDescription.ts new file mode 100644 index 00000000..012d03ce --- /dev/null +++ b/src/version2/models/spaceDescription.ts @@ -0,0 +1,7 @@ +import { BodyType } from './bodyType'; + +/** Contains fields for each representation type requested. */ +export interface SpaceDescription { + plain?: BodyType; + view?: BodyType; +} diff --git a/src/version2/models/spaceDescriptionBodyRepresentation.ts b/src/version2/models/spaceDescriptionBodyRepresentation.ts new file mode 100644 index 00000000..cb3d9b98 --- /dev/null +++ b/src/version2/models/spaceDescriptionBodyRepresentation.ts @@ -0,0 +1,2 @@ +/** The formats a space description can be represented as. A subset of BodyRepresentation. */ +export interface SpaceDescriptionBodyRepresentation {} diff --git a/src/version2/models/spaceProperty.ts b/src/version2/models/spaceProperty.ts new file mode 100644 index 00000000..7424c7e9 --- /dev/null +++ b/src/version2/models/spaceProperty.ts @@ -0,0 +1,22 @@ +export interface SpaceProperty { + /** ID of the space property. */ + id?: number; + /** Key of the space property. */ + key?: string; + /** Value of the space property. */ + value?: {}; + /** RFC3339 compliant date time at which the property was created. */ + createdAt?: string; + /** Atlassian account ID of the user that created the space property. */ + createdBy?: string; + version?: { + /** RFC3339 compliant date time at which the property's current version was created. */ + createdAt?: string; + /** Atlassian account ID of the user that created the space property's current version. */ + createdBy?: string; + /** Message associated with the current version. */ + message?: string; + /** The space property's current version number. */ + number?: number; + }; +} diff --git a/src/version2/models/spacePropertyCreateRequest.ts b/src/version2/models/spacePropertyCreateRequest.ts new file mode 100644 index 00000000..b46aaf25 --- /dev/null +++ b/src/version2/models/spacePropertyCreateRequest.ts @@ -0,0 +1,6 @@ +export interface SpacePropertyCreateRequest { + /** Key of the space property */ + key?: string; + /** Value of the space property. */ + value?: {}; +} diff --git a/src/version2/models/spacePropertyUpdateRequest.ts b/src/version2/models/spacePropertyUpdateRequest.ts new file mode 100644 index 00000000..c78800c0 --- /dev/null +++ b/src/version2/models/spacePropertyUpdateRequest.ts @@ -0,0 +1,13 @@ +export interface SpacePropertyUpdateRequest { + /** Key of the space property */ + key?: string; + /** Value of the space property. */ + value?: {}; + /** New version number and associated message */ + version?: { + /** Version number of the new version. Should be 1 more than the current version number. */ + number?: number; + /** Message to be associated with the new version. */ + message?: string; + }; +} diff --git a/src/version2/models/spaceSortOrder.ts b/src/version2/models/spaceSortOrder.ts new file mode 100644 index 00000000..4ae0d318 --- /dev/null +++ b/src/version2/models/spaceSortOrder.ts @@ -0,0 +1,5 @@ +/** + * The sort fields for spaces. The default sort direction is ascending. To sort in descending order, append a `-` + * character before the sort field. For example, `fieldName` or `-fieldName`. + */ +export interface SpaceSortOrder {} diff --git a/src/version2/models/spaceStatus.ts b/src/version2/models/spaceStatus.ts new file mode 100644 index 00000000..9722c86b --- /dev/null +++ b/src/version2/models/spaceStatus.ts @@ -0,0 +1,2 @@ +/** The status of the space. */ +export interface SpaceStatus {} diff --git a/src/version2/models/spaceType.ts b/src/version2/models/spaceType.ts new file mode 100644 index 00000000..6d63eff7 --- /dev/null +++ b/src/version2/models/spaceType.ts @@ -0,0 +1,2 @@ +/** The type of space. */ +export interface SpaceType {} diff --git a/src/version2/models/task.ts b/src/version2/models/task.ts new file mode 100644 index 00000000..a4e90e3e --- /dev/null +++ b/src/version2/models/task.ts @@ -0,0 +1,31 @@ +import { Body } from './body'; + +export interface Task { + /** ID of the task. */ + id?: number; + /** Local ID of the task. This ID is local to the corresponding page or blog post. */ + localId?: number; + /** ID of the space the task is in. */ + spaceId?: number; + /** ID of the page the task is in. */ + pageId?: number; + /** ID of the blog post the task is in. */ + blogPostId?: number; + /** Status of the task. */ + status?: string; + body?: Body; + /** Account ID of the user who created this task. */ + createdBy?: string; + /** Account ID of the user to whom this task is assigned. */ + assignedTo?: string; + /** Account ID of the user who completed this task. */ + completedBy?: string; + /** Date and time when the task was created. In format "YYYY-MM-DDTHH:mm:ss.sssZ". */ + createdAt?: string; + /** Date and time when the task was updated. In format "YYYY-MM-DDTHH:mm:ss.sssZ". */ + updatedAt?: string; + /** Date and time when the task is due. In format "YYYY-MM-DDTHH:mm:ss.sssZ". */ + dueAt?: string; + /** Date and time when the task was completed. In format "YYYY-MM-DDTHH:mm:ss.sssZ". */ + completedAt?: string; +} diff --git a/src/version2/models/updateFooterCommentModel.ts b/src/version2/models/updateFooterCommentModel.ts new file mode 100644 index 00000000..5561acf4 --- /dev/null +++ b/src/version2/models/updateFooterCommentModel.ts @@ -0,0 +1,15 @@ +export interface UpdateFooterCommentModel { + version?: { + /** Number of new version. Should be 1 higher than current version of the comment. */ + number?: number; + /** Optional message store for the new version. */ + message?: string; + }; + /** Body of the comment */ + body?: { + /** Body of the comment */ + value?: string; + /** Format of the body's value. */ + representation?: string; + }; +} diff --git a/src/version2/models/updateInlineCommentModel.ts b/src/version2/models/updateInlineCommentModel.ts new file mode 100644 index 00000000..e8352fad --- /dev/null +++ b/src/version2/models/updateInlineCommentModel.ts @@ -0,0 +1,21 @@ +export interface UpdateInlineCommentModel { + version?: { + /** Number of new version. Should be 1 higher than current version of the comment. */ + number?: number; + /** Optional message store for the new version. */ + message?: string; + }; + /** Body of the comment */ + body?: { + /** Body of the comment */ + value?: string; + /** Format of the body's value. */ + representation?: string; + }; + /** + * -| Resolved state of the comment. Set to true to resolve the comment, set to false to reopen it. If matching the + * existing state (i.e. true -> resolved or false -> open/reopened) , no change will occur. A dangling comment cannot + * be updated. + */ + resolved?: boolean; +} diff --git a/src/version2/models/version.ts b/src/version2/models/version.ts new file mode 100644 index 00000000..293a6043 --- /dev/null +++ b/src/version2/models/version.ts @@ -0,0 +1,15 @@ +export interface Version { + /** Date and time when the version was created. In format "YYYY-MM-DDTHH:mm:ss.sssZ". */ + createdAt?: string; + /** Message associated with the current version. */ + message?: string; + /** The version number. */ + number?: number; + /** + * Describes if this version is a minor version. Email notifications and activity stream updates are not created for + * minor versions. + */ + minorEdit?: boolean; + /** The account ID of the user who created this version. */ + authorId?: string; +} diff --git a/src/version2/models/versionSortOrder.ts b/src/version2/models/versionSortOrder.ts new file mode 100644 index 00000000..ea1695bd --- /dev/null +++ b/src/version2/models/versionSortOrder.ts @@ -0,0 +1,5 @@ +/** + * The sort fields for versions. The default sort direction is ascending. To sort in descending order, append a `-` + * character before the sort field. For example, `fieldName` or `-fieldName`. + */ +export interface VersionSortOrder {} diff --git a/src/version2/page.ts b/src/version2/page.ts new file mode 100644 index 00000000..7cbc2bae --- /dev/null +++ b/src/version2/page.ts @@ -0,0 +1,220 @@ +import * as Models from './models'; +import * as Parameters from './parameters'; +import { Callback } from '../callback'; +import { Client } from '../clients'; +import { RequestConfig } from '../requestConfig'; + +export class Page { + constructor(private client: Client) {} + + /** + * Returns the pages of specified label. The number of results is limited by the `limit` parameter and additional + * results (if available) will be available through the `next` URL present in the `Link` response header. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the page + * and its corresponding space. + */ + async getLabelPages( + parameters: Parameters.GetLabelPages, + callback: Callback + ): Promise; + /** + * Returns the pages of specified label. The number of results is limited by the `limit` parameter and additional + * results (if available) will be available through the `next` URL present in the `Link` response header. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the page + * and its corresponding space. + */ + async getLabelPages(parameters: Parameters.GetLabelPages, callback?: never): Promise; + async getLabelPages( + parameters: Parameters.GetLabelPages, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: `/labels/${parameters.id}/pages`, + method: 'GET', + params: { + sort: parameters.sort, + cursor: parameters.cursor, + limit: parameters.limit, + }, + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Returns all pages. The number of results is limited by the `limit` parameter and additional results (if available) + * will be available through the `next` URL present in the `Link` response header. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site + * ('Can use' global permission). Only pages that the user has permission to view will be returned. + */ + async getPages( + parameters: Parameters.GetPages | undefined, + callback: Callback + ): Promise; + /** + * Returns all pages. The number of results is limited by the `limit` parameter and additional results (if available) + * will be available through the `next` URL present in the `Link` response header. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site + * ('Can use' global permission). Only pages that the user has permission to view will be returned. + */ + async getPages(parameters?: Parameters.GetPages, callback?: never): Promise; + async getPages(parameters?: Parameters.GetPages, callback?: Callback): Promise { + const config: RequestConfig = { + url: '/pages', + method: 'GET', + params: { + cursor: parameters?.cursor, + limit: parameters?.limit, + }, + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Creates a page in the space. + * + * Pages are created as published by default unless specified as a draft in the status field. If creating a published + * page, the title must be specified. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the corresponding space. + * Permission to create a page in the space. + */ + async createPage(callback: Callback): Promise; + /** + * Creates a page in the space. + * + * Pages are created as published by default unless specified as a draft in the status field. If creating a published + * page, the title must be specified. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the corresponding space. + * Permission to create a page in the space. + */ + async createPage(callback?: never): Promise; + async createPage(callback?: Callback): Promise { + const config: RequestConfig = { + url: '/pages', + method: 'POST', + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Returns a specific page. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the page and its + * corresponding space. + */ + async getPageById(parameters: Parameters.GetPageById, callback: Callback): Promise; + /** + * Returns a specific page. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the page and its + * corresponding space. + */ + async getPageById(parameters: Parameters.GetPageById, callback?: never): Promise; + async getPageById(parameters: Parameters.GetPageById, callback?: Callback): Promise { + const config: RequestConfig = { + url: `/pages/${parameters.id}`, + method: 'GET', + params: { + 'body-format': parameters['body-format'], + 'get-draft': parameters['get-draft'], + version: parameters.version, + }, + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Update a page by id. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the page and its + * corresponding space. Permission to update pages in the space. + */ + async updatePage(parameters: Parameters.UpdatePage, callback: Callback): Promise; + /** + * Update a page by id. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the page and its + * corresponding space. Permission to update pages in the space. + */ + async updatePage(parameters: Parameters.UpdatePage, callback?: never): Promise; + async updatePage(parameters: Parameters.UpdatePage, callback?: Callback): Promise { + const config: RequestConfig = { + url: `/pages/${parameters.id}`, + method: 'PUT', + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Delete a page by id. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the page and its + * corresponding space. Permission to delete pages in the space. + */ + async deletePage(parameters: Parameters.DeletePage, callback: Callback): Promise; + /** + * Delete a page by id. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the page and its + * corresponding space. Permission to delete pages in the space. + */ + async deletePage(parameters: Parameters.DeletePage, callback?: never): Promise; + async deletePage(parameters: Parameters.DeletePage, callback?: Callback): Promise { + const config: RequestConfig = { + url: `/pages/${parameters.id}`, + method: 'DELETE', + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Returns all pages in a space. The number of results is limited by the `limit` parameter and additional results (if + * available) will be available through the `next` URL present in the `Link` response header. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site + * ('Can use' global permission) and 'View' permission for the space. Only pages that the user has permission to view + * will be returned. + */ + async getPagesInSpace( + parameters: Parameters.GetPagesInSpace, + callback: Callback + ): Promise; + /** + * Returns all pages in a space. The number of results is limited by the `limit` parameter and additional results (if + * available) will be available through the `next` URL present in the `Link` response header. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site + * ('Can use' global permission) and 'View' permission for the space. Only pages that the user has permission to view + * will be returned. + */ + async getPagesInSpace( + parameters: Parameters.GetPagesInSpace, + callback?: never + ): Promise; + async getPagesInSpace( + parameters: Parameters.GetPagesInSpace, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: `/spaces/${parameters.id}/pages`, + method: 'GET', + params: { + cursor: parameters.cursor, + limit: parameters.limit, + }, + }; + + return this.client.sendRequest(config, callback); + } +} diff --git a/src/version2/parameters/createFooterComment.ts b/src/version2/parameters/createFooterComment.ts new file mode 100644 index 00000000..d1f86550 --- /dev/null +++ b/src/version2/parameters/createFooterComment.ts @@ -0,0 +1,3 @@ +import { CreateFooterCommentModel } from '../models'; + +export interface CreateFooterComment extends CreateFooterCommentModel {} diff --git a/src/version2/parameters/createInlineComment.ts b/src/version2/parameters/createInlineComment.ts new file mode 100644 index 00000000..cca9cc9d --- /dev/null +++ b/src/version2/parameters/createInlineComment.ts @@ -0,0 +1,3 @@ +import { CreateInlineCommentModel } from '../models'; + +export interface CreateInlineComment extends CreateInlineCommentModel {} diff --git a/src/version2/parameters/createSpaceProperty.ts b/src/version2/parameters/createSpaceProperty.ts new file mode 100644 index 00000000..5291ce81 --- /dev/null +++ b/src/version2/parameters/createSpaceProperty.ts @@ -0,0 +1,6 @@ +import { SpacePropertyCreateRequest } from '../models'; + +export interface CreateSpaceProperty extends SpacePropertyCreateRequest { + /** The ID of the space for which space properties should be returned. */ + 'space-id': number; +} diff --git a/src/version2/parameters/deleteBlogPost.ts b/src/version2/parameters/deleteBlogPost.ts new file mode 100644 index 00000000..7dd2cf69 --- /dev/null +++ b/src/version2/parameters/deleteBlogPost.ts @@ -0,0 +1,4 @@ +export interface DeleteBlogPost { + /** The ID of the blog post to be deleted. */ + id: number; +} diff --git a/src/version2/parameters/deleteCustomContent.ts b/src/version2/parameters/deleteCustomContent.ts new file mode 100644 index 00000000..4ffaf3d6 --- /dev/null +++ b/src/version2/parameters/deleteCustomContent.ts @@ -0,0 +1,4 @@ +export interface DeleteCustomContent { + /** The ID of the custom content to be deleted. */ + id: number; +} diff --git a/src/version2/parameters/deleteFooterComment.ts b/src/version2/parameters/deleteFooterComment.ts new file mode 100644 index 00000000..32517ed2 --- /dev/null +++ b/src/version2/parameters/deleteFooterComment.ts @@ -0,0 +1,4 @@ +export interface DeleteFooterComment { + /** The ID of the comment to be retrieved. */ + 'comment-id': number; +} diff --git a/src/version2/parameters/deleteInlineComment.ts b/src/version2/parameters/deleteInlineComment.ts new file mode 100644 index 00000000..4fc7a21c --- /dev/null +++ b/src/version2/parameters/deleteInlineComment.ts @@ -0,0 +1,4 @@ +export interface DeleteInlineComment { + /** The ID of the comment to be deleted. */ + 'comment-id': number; +} diff --git a/src/version2/parameters/deletePage.ts b/src/version2/parameters/deletePage.ts new file mode 100644 index 00000000..ba31e7ea --- /dev/null +++ b/src/version2/parameters/deletePage.ts @@ -0,0 +1,4 @@ +export interface DeletePage { + /** The ID of the page to be deleted. */ + id: number; +} diff --git a/src/version2/parameters/deleteSpacePropertyById.ts b/src/version2/parameters/deleteSpacePropertyById.ts new file mode 100644 index 00000000..cf87aa33 --- /dev/null +++ b/src/version2/parameters/deleteSpacePropertyById.ts @@ -0,0 +1,6 @@ +export interface DeleteSpacePropertyById { + /** The ID of the space the property belongs to. */ + 'space-id': number; + /** The ID of the property to be deleted. */ + 'property-id': number; +} diff --git a/src/version2/parameters/getAttachmentById.ts b/src/version2/parameters/getAttachmentById.ts new file mode 100644 index 00000000..bf15cecd --- /dev/null +++ b/src/version2/parameters/getAttachmentById.ts @@ -0,0 +1,12 @@ +export interface GetAttachmentById { + /** + * The ID of the attachment to be returned. If you don't know the attachment's ID, use Get attachments for + * page/blogpost/custom content. + */ + id: number; + /** + * Allows you to retrieve a previously published version. Specify the previous version's number to retrieve its + * details. + */ + version?: number; +} diff --git a/src/version2/parameters/getAttachmentContentProperties.ts b/src/version2/parameters/getAttachmentContentProperties.ts new file mode 100644 index 00000000..1d1e223d --- /dev/null +++ b/src/version2/parameters/getAttachmentContentProperties.ts @@ -0,0 +1,18 @@ +export interface GetAttachmentContentProperties { + /** The ID of the attachment for which content properties should be returned. */ + 'attachment-id': string; + /** Filters the response to return a specific content property with matching key (case sensitive). */ + key?: string; + /** Used to sort the result by a particular field. */ + sort?: {}; + /** + * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the + * relative URL in the `Link` header to retrieve the `next` set of results. + */ + cursor?: string; + /** + * Maximum number of attachments per result to return. If more results exist, use the `Link` header to retrieve a + * relative URL that will return the next set of results. + */ + limit?: number; +} diff --git a/src/version2/parameters/getAttachmentContentPropertiesById.ts b/src/version2/parameters/getAttachmentContentPropertiesById.ts new file mode 100644 index 00000000..783030a2 --- /dev/null +++ b/src/version2/parameters/getAttachmentContentPropertiesById.ts @@ -0,0 +1,6 @@ +export interface GetAttachmentContentPropertiesById { + /** The ID of the attachment for which content properties should be returned. */ + 'attachment-id': string; + /** The ID of the content property to be returned */ + 'property-id': number; +} diff --git a/src/version2/parameters/getAttachmentLabels.ts b/src/version2/parameters/getAttachmentLabels.ts new file mode 100644 index 00000000..49f5ace8 --- /dev/null +++ b/src/version2/parameters/getAttachmentLabels.ts @@ -0,0 +1,18 @@ +export interface GetAttachmentLabels { + /** The ID of the attachment for which labels should be returned. */ + id: number; + /** Filter the results to labels based on their prefix. */ + prefix?: string; + /** Used to sort the result by a particular field. */ + sort?: string; + /** + * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the + * relative URL in the `Link` header to retrieve the `next` set of results. + */ + cursor?: string; + /** + * Maximum number of labels per result to return. If more results exist, use the `Link` header to retrieve a relative + * URL that will return the next set of results. + */ + limit?: number; +} diff --git a/src/version2/parameters/getAttachmentVersionDetails.ts b/src/version2/parameters/getAttachmentVersionDetails.ts new file mode 100644 index 00000000..2d88c0f4 --- /dev/null +++ b/src/version2/parameters/getAttachmentVersionDetails.ts @@ -0,0 +1,6 @@ +export interface GetAttachmentVersionDetails { + /** The ID of the attachment for which version details should be returned. */ + 'attachment-id': string; + /** The version number of the attachment to be returned. */ + 'version-number': number; +} diff --git a/src/version2/parameters/getAttachmentVersions.ts b/src/version2/parameters/getAttachmentVersions.ts new file mode 100644 index 00000000..92dc35cf --- /dev/null +++ b/src/version2/parameters/getAttachmentVersions.ts @@ -0,0 +1,19 @@ +export interface GetAttachmentVersions { + /** + * The ID of the attachment to be queried for its versions. If you don't know the attachment ID, use Get attachments + * and filter the results. + */ + id: number; + /** + * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the + * relative URL in the `Link` header to retrieve the `next` set of results. + */ + cursor?: string; + /** + * Maximum number of versions per result to return. If more results exist, use the `Link` header to retrieve a + * relative URL that will return the next set of results. + */ + limit?: number; + /** Used to sort the result by a particular field. */ + sort?: {}; +} diff --git a/src/version2/parameters/getBlogPostById.ts b/src/version2/parameters/getBlogPostById.ts new file mode 100644 index 00000000..d8881974 --- /dev/null +++ b/src/version2/parameters/getBlogPostById.ts @@ -0,0 +1,19 @@ +export interface GetBlogPostById { + /** + * The ID of the blog post to be returned. If you don't know the blog post ID, use Get blog posts and filter the + * results. + */ + id: number; + /** + * The content format types to be returned in the `body` field of the response. If available, the representation will + * be available under a response field of the same name under the `body` field. + */ + 'body-format'?: {}; + /** Retrieve the draft version of this blog post. */ + 'get-draft'?: boolean; + /** + * Allows you to retrieve a previously published version. Specify the previous version's number to retrieve its + * details. + */ + version?: number; +} diff --git a/src/version2/parameters/getBlogPostFooterComments.ts b/src/version2/parameters/getBlogPostFooterComments.ts new file mode 100644 index 00000000..07103f65 --- /dev/null +++ b/src/version2/parameters/getBlogPostFooterComments.ts @@ -0,0 +1,21 @@ +export interface GetBlogPostFooterComments { + /** The ID of the blog post for which footer comments should be returned. */ + id: number; + /** + * The content format type to be returned in the `body` field of the response. If available, the representation will + * be available under a response field of the same name under the `body` field. + */ + 'body-format'?: {}; + /** Used to sort the result by a particular field. */ + sort?: {}; + /** + * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the + * relative URL in the `Link` header to retrieve the `next` set of results. + */ + cursor?: string; + /** + * Maximum number of footer comments per result to return. If more results exist, use the `Link` header to retrieve a + * relative URL that will return the next set of results. + */ + limit?: number; +} diff --git a/src/version2/parameters/getBlogPostInlineComments.ts b/src/version2/parameters/getBlogPostInlineComments.ts new file mode 100644 index 00000000..71d26dfd --- /dev/null +++ b/src/version2/parameters/getBlogPostInlineComments.ts @@ -0,0 +1,21 @@ +export interface GetBlogPostInlineComments { + /** The ID of the blog post for which inline comments should be returned. */ + id: number; + /** + * The content format type to be returned in the `body` field of the response. If available, the representation will + * be available under a response field of the same name under the `body` field. + */ + 'body-format'?: {}; + /** Used to sort the result by a particular field. */ + sort?: {}; + /** + * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the + * relative URL in the `Link` header to retrieve the `next` set of results. + */ + cursor?: string; + /** + * Maximum number of inline comments per result to return. If more results exist, use the `Link` header to retrieve a + * relative URL that will return the next set of results. + */ + limit?: number; +} diff --git a/src/version2/parameters/getBlogPostLabels.ts b/src/version2/parameters/getBlogPostLabels.ts new file mode 100644 index 00000000..e8eab7b8 --- /dev/null +++ b/src/version2/parameters/getBlogPostLabels.ts @@ -0,0 +1,18 @@ +export interface GetBlogPostLabels { + /** The ID of the blog post for which labels should be returned. */ + id: number; + /** Filter the results to labels based on their prefix. */ + prefix?: string; + /** Used to sort the result by a particular field. */ + sort?: string; + /** + * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the + * relative URL in the `Link` header to retrieve the `next` set of results. + */ + cursor?: string; + /** + * Maximum number of labels per result to return. If more results exist, use the `Link` header to retrieve a relative + * URL that will return the next set of results. + */ + limit?: number; +} diff --git a/src/version2/parameters/getBlogPostVersionDetails.ts b/src/version2/parameters/getBlogPostVersionDetails.ts new file mode 100644 index 00000000..6821e8ba --- /dev/null +++ b/src/version2/parameters/getBlogPostVersionDetails.ts @@ -0,0 +1,6 @@ +export interface GetBlogPostVersionDetails { + /** The ID of the blog post for which version details should be returned. */ + 'blogpost-id': number; + /** The version number of the blog post to be returned. */ + 'version-number': number; +} diff --git a/src/version2/parameters/getBlogPostVersions.ts b/src/version2/parameters/getBlogPostVersions.ts new file mode 100644 index 00000000..50252cd3 --- /dev/null +++ b/src/version2/parameters/getBlogPostVersions.ts @@ -0,0 +1,19 @@ +export interface GetBlogPostVersions { + /** + * The ID of the blog post to be queried for its versions. If you don't know the blog post ID, use Get blog posts and + * filter the results. + */ + id: number; + /** + * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the + * relative URL in the `Link` header to retrieve the `next` set of results. + */ + cursor?: string; + /** + * Maximum number of versions per result to return. If more results exist, use the `Link` header to retrieve a + * relative URL that will return the next set of results. + */ + limit?: number; + /** Used to sort the result by a particular field. */ + sort?: {}; +} diff --git a/src/version2/parameters/getBlogPosts.ts b/src/version2/parameters/getBlogPosts.ts new file mode 100644 index 00000000..853d8b8b --- /dev/null +++ b/src/version2/parameters/getBlogPosts.ts @@ -0,0 +1,12 @@ +export interface GetBlogPosts { + /** + * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the + * relative URL in the `Link` header to retrieve the `next` set of results. + */ + cursor?: string; + /** + * Maximum number of blog posts per result to return. If more results exist, use the `Link` response header to + * retrieve a relative URL that will return the next set of results. + */ + limit?: number; +} diff --git a/src/version2/parameters/getBlogPostsInSpace.ts b/src/version2/parameters/getBlogPostsInSpace.ts new file mode 100644 index 00000000..901c37ef --- /dev/null +++ b/src/version2/parameters/getBlogPostsInSpace.ts @@ -0,0 +1,14 @@ +export interface GetBlogPostsInSpace { + /** The ID of the space for which blog posts should be returned. */ + id: number; + /** + * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the + * relative URL in the `Link` header to retrieve the `next` set of results. + */ + cursor?: string; + /** + * Maximum number of blog posts per result to return. If more results exist, use the `Link` header to retrieve a + * relative URL that will return the next set of results. + */ + limit?: number; +} diff --git a/src/version2/parameters/getBlogpostAttachments.ts b/src/version2/parameters/getBlogpostAttachments.ts new file mode 100644 index 00000000..29636d7a --- /dev/null +++ b/src/version2/parameters/getBlogpostAttachments.ts @@ -0,0 +1,20 @@ +export interface GetBlogpostAttachments { + /** The ID of the blog post for which attachments should be returned. */ + id: number; + /** Used to sort the result by a particular field. */ + sort?: {}; + /** + * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the + * relative URL in the `Link` header to retrieve the `next` set of results. + */ + cursor?: string; + /** Filters on the mediaType of attachments. Only one may be specified. */ + mediaType?: string; + /** Filters on the file-name of attachments. Only one may be specified. */ + filename?: string; + /** + * Maximum number of attachments per result to return. If more results exist, use the `Link` header to retrieve a + * relative URL that will return the next set of results. + */ + limit?: number; +} diff --git a/src/version2/parameters/getBlogpostContentProperties.ts b/src/version2/parameters/getBlogpostContentProperties.ts new file mode 100644 index 00000000..1d417ca1 --- /dev/null +++ b/src/version2/parameters/getBlogpostContentProperties.ts @@ -0,0 +1,18 @@ +export interface GetBlogpostContentProperties { + /** The ID of the blog post for which content properties should be returned. */ + 'blogpost-id': number; + /** Filters the response to return a specific content property with matching key (case sensitive). */ + key?: string; + /** Used to sort the result by a particular field. */ + sort?: {}; + /** + * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the + * relative URL in the `Link` header to retrieve the `next` set of results. + */ + cursor?: string; + /** + * Maximum number of attachments per result to return. If more results exist, use the `Link` header to retrieve a + * relative URL that will return the next set of results. + */ + limit?: number; +} diff --git a/src/version2/parameters/getBlogpostContentPropertiesById.ts b/src/version2/parameters/getBlogpostContentPropertiesById.ts new file mode 100644 index 00000000..8d52ebef --- /dev/null +++ b/src/version2/parameters/getBlogpostContentPropertiesById.ts @@ -0,0 +1,6 @@ +export interface GetBlogpostContentPropertiesById { + /** The ID of the blog post for which content properties should be returned. */ + 'blogpost-id': number; + /** The ID of the property being requested */ + 'property-id': number; +} diff --git a/src/version2/parameters/getChildCustomContent.ts b/src/version2/parameters/getChildCustomContent.ts new file mode 100644 index 00000000..32652afa --- /dev/null +++ b/src/version2/parameters/getChildCustomContent.ts @@ -0,0 +1,19 @@ +export interface GetChildCustomContent { + /** + * The ID of the parent custom content. If you don't know the custom content ID, use Get custom-content and filter the + * results. + */ + id: number; + /** + * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the + * relative URL in the `Link` header to retrieve the `next` set of results. + */ + cursor?: string; + /** + * Maximum number of pages per result to return. If more results exist, use the `Link` header to retrieve a relative + * URL that will return the next set of results. + */ + limit?: number; + /** Used to sort the result by a particular field. */ + sort?: string; +} diff --git a/src/version2/parameters/getChildPages.ts b/src/version2/parameters/getChildPages.ts new file mode 100644 index 00000000..d33c0f52 --- /dev/null +++ b/src/version2/parameters/getChildPages.ts @@ -0,0 +1,16 @@ +export interface GetChildPages { + /** The ID of the parent page. If you don't know the page ID, use Get pages and filter the results. */ + id: number; + /** + * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the + * relative URL in the `Link` header to retrieve the `next` set of results. + */ + cursor?: string; + /** + * Maximum number of pages per result to return. If more results exist, use the `Link` header to retrieve a relative + * URL that will return the next set of results. + */ + limit?: number; + /** Used to sort the result by a particular field. */ + sort?: string; +} diff --git a/src/version2/parameters/getCommentContentProperties.ts b/src/version2/parameters/getCommentContentProperties.ts new file mode 100644 index 00000000..25e4c334 --- /dev/null +++ b/src/version2/parameters/getCommentContentProperties.ts @@ -0,0 +1,18 @@ +export interface GetCommentContentProperties { + /** The ID of the comment for which content properties should be returned. */ + 'comment-id': number; + /** Filters the response to return a specific content property with matching key (case sensitive). */ + key?: string; + /** Used to sort the result by a particular field. */ + sort?: {}; + /** + * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the + * relative URL in the `Link` header to retrieve the `next` set of results. + */ + cursor?: string; + /** + * Maximum number of attachments per result to return. If more results exist, use the `Link` header to retrieve a + * relative URL that will return the next set of results. + */ + limit?: number; +} diff --git a/src/version2/parameters/getCommentContentPropertiesById.ts b/src/version2/parameters/getCommentContentPropertiesById.ts new file mode 100644 index 00000000..0dadd19d --- /dev/null +++ b/src/version2/parameters/getCommentContentPropertiesById.ts @@ -0,0 +1,6 @@ +export interface GetCommentContentPropertiesById { + /** The ID of the comment for which content properties should be returned. */ + 'comment-id': number; + /** The ID of the content property being requested. */ + 'property-id': number; +} diff --git a/src/version2/parameters/getCustomContentAttachments.ts b/src/version2/parameters/getCustomContentAttachments.ts new file mode 100644 index 00000000..2102c9fd --- /dev/null +++ b/src/version2/parameters/getCustomContentAttachments.ts @@ -0,0 +1,20 @@ +export interface GetCustomContentAttachments { + /** The ID of the custom content for which attachments should be returned. */ + id: number; + /** Used to sort the result by a particular field. */ + sort?: {}; + /** + * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the + * relative URL in the `Link` header to retrieve the `next` set of results. + */ + cursor?: string; + /** Filters on the mediaType of attachments. Only one may be specified. */ + mediaType?: string; + /** Filters on the file-name of attachments. Only one may be specified. */ + filename?: string; + /** + * Maximum number of attachments per result to return. If more results exist, use the `Link` header to retrieve a + * relative URL that will return the next set of results. + */ + limit?: number; +} diff --git a/src/version2/parameters/getCustomContentById.ts b/src/version2/parameters/getCustomContentById.ts new file mode 100644 index 00000000..15a6eff3 --- /dev/null +++ b/src/version2/parameters/getCustomContentById.ts @@ -0,0 +1,20 @@ +export interface GetCustomContentById { + /** + * The ID of the custom content to be returned. If you don't know the custom content ID, use Get Custom Content by + * Type and filter the results. + */ + id: number; + /** + * The content format types to be returned in the `body` field of the response. If available, the representation will + * be available under a response field of the same name under the `body` field. + * + * Note: If the custom content body type is `storage`, the `storage` and `atlas_doc_format` body formats are able to + * be returned. If the custom content body type is `raw`, only the `raw` body format is able to be returned. + */ + 'body-format'?: {}; + /** + * Allows you to retrieve a previously published version. Specify the previous version's number to retrieve its + * details. + */ + version?: number; +} diff --git a/src/version2/parameters/getCustomContentByType.ts b/src/version2/parameters/getCustomContentByType.ts new file mode 100644 index 00000000..935e9f83 --- /dev/null +++ b/src/version2/parameters/getCustomContentByType.ts @@ -0,0 +1,25 @@ +export interface GetCustomContentByType { + /** + * The type of custom content being requested. See: https://developer.atlassian.com/cloud/confluence/custom-content/ + * for additional details on custom content. + */ + type: string; + /** + * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the + * relative URL in the `Link` header to retrieve the `next` set of results. + */ + cursor?: string; + /** + * Maximum number of pages per result to return. If more results exist, use the `Link` header to retrieve a relative + * URL that will return the next set of results. + */ + limit?: number; + /** + * The content format types to be returned in the `body` field of the response. If available, the representation will + * be available under a response field of the same name under the `body` field. + * + * Note: If the custom content body type is `storage`, the `storage` and `atlas_doc_format` body formats are able to + * be returned. If the custom content body type is `raw`, only the `raw` body format is able to be returned. + */ + 'body-format'?: {}; +} diff --git a/src/version2/parameters/getCustomContentByTypeInBlogPost.ts b/src/version2/parameters/getCustomContentByTypeInBlogPost.ts new file mode 100644 index 00000000..13bfbfe1 --- /dev/null +++ b/src/version2/parameters/getCustomContentByTypeInBlogPost.ts @@ -0,0 +1,27 @@ +export interface GetCustomContentByTypeInBlogPost { + /** The ID of the blog post for which custom content should be returned. */ + id: number; + /** + * The type of custom content being requested. See: https://developer.atlassian.com/cloud/confluence/custom-content/ + * for additional details on custom content. + */ + type: string; + /** + * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the + * relative URL in the `Link` header to retrieve the `next` set of results. + */ + cursor?: string; + /** + * Maximum number of pages per result to return. If more results exist, use the `Link` header to retrieve a relative + * URL that will return the next set of results. + */ + limit?: number; + /** + * The content format types to be returned in the `body` field of the response. If available, the representation will + * be available under a response field of the same name under the `body` field. + * + * Note: If the custom content body type is `storage`, the `storage` and `atlas_doc_format` body formats are able to + * be returned. If the custom content body type is `raw`, only the `raw` body format is able to be returned. + */ + 'body-format'?: {}; +} diff --git a/src/version2/parameters/getCustomContentByTypeInPage.ts b/src/version2/parameters/getCustomContentByTypeInPage.ts new file mode 100644 index 00000000..8cad28de --- /dev/null +++ b/src/version2/parameters/getCustomContentByTypeInPage.ts @@ -0,0 +1,27 @@ +export interface GetCustomContentByTypeInPage { + /** The ID of the page for which custom content should be returned. */ + id: number; + /** + * The type of custom content being requested. See: https://developer.atlassian.com/cloud/confluence/custom-content/ + * for additional details on custom content. + */ + type: string; + /** + * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the + * relative URL in the `Link` header to retrieve the `next` set of results. + */ + cursor?: string; + /** + * Maximum number of pages per result to return. If more results exist, use the `Link` header to retrieve a relative + * URL that will return the next set of results. + */ + limit?: number; + /** + * The content format types to be returned in the `body` field of the response. If available, the representation will + * be available under a response field of the same name under the `body` field. + * + * Note: If the custom content body type is `storage`, the `storage` and `atlas_doc_format` body formats are able to + * be returned. If the custom content body type is `raw`, only the `raw` body format is able to be returned. + */ + 'body-format'?: {}; +} diff --git a/src/version2/parameters/getCustomContentByTypeInSpace.ts b/src/version2/parameters/getCustomContentByTypeInSpace.ts new file mode 100644 index 00000000..13cb1642 --- /dev/null +++ b/src/version2/parameters/getCustomContentByTypeInSpace.ts @@ -0,0 +1,27 @@ +export interface GetCustomContentByTypeInSpace { + /** The ID of the space for which custom content should be returned. */ + id: number; + /** + * The type of custom content being requested. See: https://developer.atlassian.com/cloud/confluence/custom-content/ + * for additional details on custom content. + */ + type: string; + /** + * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the + * relative URL in the `Link` header to retrieve the `next` set of results. + */ + cursor?: string; + /** + * Maximum number of pages per result to return. If more results exist, use the `Link` header to retrieve a relative + * URL that will return the next set of results. + */ + limit?: number; + /** + * The content format types to be returned in the `body` field of the response. If available, the representation will + * be available under a response field of the same name under the `body` field. + * + * Note: If the custom content body type is `storage`, the `storage` and `atlas_doc_format` body formats are able to + * be returned. If the custom content body type is `raw`, only the `raw` body format is able to be returned. + */ + 'body-format'?: {}; +} diff --git a/src/version2/parameters/getCustomContentContentProperties.ts b/src/version2/parameters/getCustomContentContentProperties.ts new file mode 100644 index 00000000..15bcf584 --- /dev/null +++ b/src/version2/parameters/getCustomContentContentProperties.ts @@ -0,0 +1,18 @@ +export interface GetCustomContentContentProperties { + /** The ID of the custom content for which content properties should be returned. */ + 'custom-content-id': number; + /** Filters the response to return a specific content property with matching key (case sensitive). */ + key?: string; + /** Used to sort the result by a particular field. */ + sort?: {}; + /** + * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the + * relative URL in the `Link` header to retrieve the `next` set of results. + */ + cursor?: string; + /** + * Maximum number of attachments per result to return. If more results exist, use the `Link` header to retrieve a + * relative URL that will return the next set of results. + */ + limit?: number; +} diff --git a/src/version2/parameters/getCustomContentContentPropertiesById.ts b/src/version2/parameters/getCustomContentContentPropertiesById.ts new file mode 100644 index 00000000..684eaece --- /dev/null +++ b/src/version2/parameters/getCustomContentContentPropertiesById.ts @@ -0,0 +1,6 @@ +export interface GetCustomContentContentPropertiesById { + /** The ID of the custom content for which content properties should be returned. */ + 'custom-content-id': number; + /** The ID of the content property being requested. */ + 'property-id': number; +} diff --git a/src/version2/parameters/getCustomContentLabels.ts b/src/version2/parameters/getCustomContentLabels.ts new file mode 100644 index 00000000..02afd2cf --- /dev/null +++ b/src/version2/parameters/getCustomContentLabels.ts @@ -0,0 +1,18 @@ +export interface GetCustomContentLabels { + /** The ID of the custom content for which labels should be returned. */ + id: number; + /** Filter the results to labels based on their prefix. */ + prefix?: string; + /** Used to sort the result by a particular field. */ + sort?: string; + /** + * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the + * relative URL in the `Link` header to retrieve the `next` set of results. + */ + cursor?: string; + /** + * Maximum number of labels per result to return. If more results exist, use the `Link` header to retrieve a relative + * URL that will return the next set of results. + */ + limit?: number; +} diff --git a/src/version2/parameters/getCustomContentVersionDetails.ts b/src/version2/parameters/getCustomContentVersionDetails.ts new file mode 100644 index 00000000..873ddb68 --- /dev/null +++ b/src/version2/parameters/getCustomContentVersionDetails.ts @@ -0,0 +1,6 @@ +export interface GetCustomContentVersionDetails { + /** The ID of the custom content for which version details should be returned. */ + 'custom-content-id': number; + /** The version number of the custom content to be returned. */ + 'version-number': number; +} diff --git a/src/version2/parameters/getCustomContentVersions.ts b/src/version2/parameters/getCustomContentVersions.ts new file mode 100644 index 00000000..b6aa35b1 --- /dev/null +++ b/src/version2/parameters/getCustomContentVersions.ts @@ -0,0 +1,19 @@ +export interface GetCustomContentVersions { + /** + * The ID of the custom content to be queried for its versions. If you don't know the custom content ID, use Get + * custom-content by type and filter the results. + */ + 'custom-content-id': number; + /** + * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the + * relative URL in the `Link` header to retrieve the `next` set of results. + */ + cursor?: string; + /** + * Maximum number of versions per result to return. If more results exist, use the `Link` header to retrieve a + * relative URL that will return the next set of results. + */ + limit?: number; + /** Used to sort the result by a particular field. */ + sort?: {}; +} diff --git a/src/version2/parameters/getFooterCommentById.ts b/src/version2/parameters/getFooterCommentById.ts new file mode 100644 index 00000000..707da4d3 --- /dev/null +++ b/src/version2/parameters/getFooterCommentById.ts @@ -0,0 +1,14 @@ +export interface GetFooterCommentById { + /** The ID of the comment to be retrieved. */ + 'comment-id': number; + /** + * The content format type to be returned in the `body` field of the response. If available, the representation will + * be available under a response field of the same name under the `body` field. + */ + 'body-format'?: {}; + /** + * Allows you to retrieve a previously published version. Specify the previous version's number to retrieve its + * details. + */ + version?: number; +} diff --git a/src/version2/parameters/getFooterCommentChildren.ts b/src/version2/parameters/getFooterCommentChildren.ts new file mode 100644 index 00000000..2279f902 --- /dev/null +++ b/src/version2/parameters/getFooterCommentChildren.ts @@ -0,0 +1,21 @@ +export interface GetFooterCommentChildren { + /** The ID of the parent comment for which footer comment children should be returned. */ + id: number; + /** + * The content format type to be returned in the `body` field of the response. If available, the representation will + * be available under a response field of the same name under the `body` field. + */ + 'body-format'?: {}; + /** Used to sort the result by a particular field. */ + sort?: {}; + /** + * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the + * relative URL in the `Link` header to retrieve the `next` set of results. + */ + cursor?: string; + /** + * Maximum number of footer comments per result to return. If more results exist, use the `Link` header to retrieve a + * relative URL that will return the next set of results. + */ + limit?: number; +} diff --git a/src/version2/parameters/getFooterCommentVersionDetails.ts b/src/version2/parameters/getFooterCommentVersionDetails.ts new file mode 100644 index 00000000..0b06ce26 --- /dev/null +++ b/src/version2/parameters/getFooterCommentVersionDetails.ts @@ -0,0 +1,6 @@ +export interface GetFooterCommentVersionDetails { + /** The ID of the footer comment for which version details should be returned. */ + id: number; + /** The version number of the footer comment to be returned. */ + 'version-number': number; +} diff --git a/src/version2/parameters/getInlineCommentById.ts b/src/version2/parameters/getInlineCommentById.ts new file mode 100644 index 00000000..5322d492 --- /dev/null +++ b/src/version2/parameters/getInlineCommentById.ts @@ -0,0 +1,14 @@ +export interface GetInlineCommentById { + /** The ID of the comment to be retrieved. */ + 'comment-id': number; + /** + * The content format type to be returned in the `body` field of the response. If available, the representation will + * be available under a response field of the same name under the `body` field. + */ + 'body-format'?: {}; + /** + * Allows you to retrieve a previously published version. Specify the previous version's number to retrieve its + * details. + */ + version?: number; +} diff --git a/src/version2/parameters/getInlineCommentChildren.ts b/src/version2/parameters/getInlineCommentChildren.ts new file mode 100644 index 00000000..54f9b0a8 --- /dev/null +++ b/src/version2/parameters/getInlineCommentChildren.ts @@ -0,0 +1,21 @@ +export interface GetInlineCommentChildren { + /** The ID of the parent comment for which inline comment children should be returned. */ + id: number; + /** + * The content format type to be returned in the `body` field of the response. If available, the representation will + * be available under a response field of the same name under the `body` field. + */ + 'body-format'?: {}; + /** Used to sort the result by a particular field. */ + sort?: {}; + /** + * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the + * relative URL in the `Link` header to retrieve the `next` set of results. + */ + cursor?: string; + /** + * Maximum number of footer comments per result to return. If more results exist, use the `Link` header to retrieve a + * relative URL that will return the next set of results. + */ + limit?: number; +} diff --git a/src/version2/parameters/getLabelBlogPosts.ts b/src/version2/parameters/getLabelBlogPosts.ts new file mode 100644 index 00000000..213ea95f --- /dev/null +++ b/src/version2/parameters/getLabelBlogPosts.ts @@ -0,0 +1,16 @@ +export interface GetLabelBlogPosts { + /** The ID of the label for which blog posts should be returned. */ + id: number; + /** Used to sort the result by a particular field. */ + sort?: string; + /** + * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the + * relative URL in the `Link` header to retrieve the `next` set of results. + */ + cursor?: string; + /** + * Maximum number of blog posts per result to return. If more results exist, use the `Link` header to retrieve a + * relative URL that will return the next set of results. + */ + limit?: number; +} diff --git a/src/version2/parameters/getLabelPages.ts b/src/version2/parameters/getLabelPages.ts new file mode 100644 index 00000000..aa322b4d --- /dev/null +++ b/src/version2/parameters/getLabelPages.ts @@ -0,0 +1,16 @@ +export interface GetLabelPages { + /** The ID of the label for which pages should be returned. */ + id: number; + /** Used to sort the result by a particular field. */ + sort?: string; + /** + * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the + * relative URL in the `Link` header to retrieve the `next` set of results. + */ + cursor?: string; + /** + * Maximum number of pages per result to return. If more results exist, use the `Link` header to retrieve a relative + * URL that will return the next set of results. + */ + limit?: number; +} diff --git a/src/version2/parameters/getPageAttachments.ts b/src/version2/parameters/getPageAttachments.ts new file mode 100644 index 00000000..a3d16158 --- /dev/null +++ b/src/version2/parameters/getPageAttachments.ts @@ -0,0 +1,20 @@ +export interface GetPageAttachments { + /** The ID of the page for which attachments should be returned. */ + id: number; + /** Used to sort the result by a particular field. */ + sort?: {}; + /** + * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the + * relative URL in the `Link` header to retrieve the `next` set of results. + */ + cursor?: string; + /** Filters on the mediaType of attachments. Only one may be specified. */ + mediaType?: string; + /** Filters on the file-name of attachments. Only one may be specified. */ + filename?: string; + /** + * Maximum number of attachments per result to return. If more results exist, use the `Link` header to retrieve a + * relative URL that will return the next set of results. + */ + limit?: number; +} diff --git a/src/version2/parameters/getPageById.ts b/src/version2/parameters/getPageById.ts new file mode 100644 index 00000000..554f31ad --- /dev/null +++ b/src/version2/parameters/getPageById.ts @@ -0,0 +1,16 @@ +export interface GetPageById { + /** The ID of the page to be returned. If you don't know the page ID, use Get pages and filter the results. */ + id: number; + /** + * The content format types to be returned in the `body` field of the response. If available, the representation will + * be available under a response field of the same name under the `body` field. + */ + 'body-format'?: {}; + /** Retrieve the draft version of this page. */ + 'get-draft'?: boolean; + /** + * Allows you to retrieve a previously published version. Specify the previous version's number to retrieve its + * details. + */ + version?: number; +} diff --git a/src/version2/parameters/getPageContentProperties.ts b/src/version2/parameters/getPageContentProperties.ts new file mode 100644 index 00000000..d279a6ef --- /dev/null +++ b/src/version2/parameters/getPageContentProperties.ts @@ -0,0 +1,18 @@ +export interface GetPageContentProperties { + /** The ID of the page for which content properties should be returned. */ + 'page-id': number; + /** Filters the response to return a specific content property with matching key (case sensitive). */ + key?: string; + /** Used to sort the result by a particular field. */ + sort?: {}; + /** + * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the + * relative URL in the `Link` header to retrieve the `next` set of results. + */ + cursor?: string; + /** + * Maximum number of attachments per result to return. If more results exist, use the `Link` header to retrieve a + * relative URL that will return the next set of results. + */ + limit?: number; +} diff --git a/src/version2/parameters/getPageContentPropertiesById.ts b/src/version2/parameters/getPageContentPropertiesById.ts new file mode 100644 index 00000000..14171eb8 --- /dev/null +++ b/src/version2/parameters/getPageContentPropertiesById.ts @@ -0,0 +1,6 @@ +export interface GetPageContentPropertiesById { + /** The ID of the page for which content properties should be returned. */ + 'page-id': number; + /** The ID of the content property being requested. */ + 'property-id': number; +} diff --git a/src/version2/parameters/getPageFooterComments.ts b/src/version2/parameters/getPageFooterComments.ts new file mode 100644 index 00000000..c8976979 --- /dev/null +++ b/src/version2/parameters/getPageFooterComments.ts @@ -0,0 +1,21 @@ +export interface GetPageFooterComments { + /** The ID of the page for which footer comments should be returned. */ + id: number; + /** + * The content format type to be returned in the `body` field of the response. If available, the representation will + * be available under a response field of the same name under the `body` field. + */ + 'body-format'?: {}; + /** Used to sort the result by a particular field. */ + sort?: {}; + /** + * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the + * relative URL in the `Link` header to retrieve the `next` set of results. + */ + cursor?: string; + /** + * Maximum number of footer comments per result to return. If more results exist, use the `Link` header to retrieve a + * relative URL that will return the next set of results. + */ + limit?: number; +} diff --git a/src/version2/parameters/getPageInlineComments.ts b/src/version2/parameters/getPageInlineComments.ts new file mode 100644 index 00000000..32900097 --- /dev/null +++ b/src/version2/parameters/getPageInlineComments.ts @@ -0,0 +1,21 @@ +export interface GetPageInlineComments { + /** The ID of the page for which inline comments should be returned. */ + id: number; + /** + * The content format type to be returned in the `body` field of the response. If available, the representation will + * be available under a response field of the same name under the `body` field. + */ + 'body-format'?: {}; + /** Used to sort the result by a particular field. */ + sort?: {}; + /** + * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the + * relative URL in the `Link` header to retrieve the `next` set of results. + */ + cursor?: string; + /** + * Maximum number of inline comments per result to return. If more results exist, use the `Link` header to retrieve a + * relative URL that will return the next set of results. + */ + limit?: number; +} diff --git a/src/version2/parameters/getPageLabels.ts b/src/version2/parameters/getPageLabels.ts new file mode 100644 index 00000000..b883e437 --- /dev/null +++ b/src/version2/parameters/getPageLabels.ts @@ -0,0 +1,18 @@ +export interface GetPageLabels { + /** The ID of the page for which labels should be returned. */ + id: number; + /** Filter the results to labels based on their prefix. */ + prefix?: string; + /** Used to sort the result by a particular field. */ + sort?: string; + /** + * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the + * relative URL in the `Link` header to retrieve the `next` set of results. + */ + cursor?: string; + /** + * Maximum number of labels per result to return. If more results exist, use the `Link` header to retrieve a relative + * URL that will return the next set of results. + */ + limit?: number; +} diff --git a/src/version2/parameters/getPageVersionDetails.ts b/src/version2/parameters/getPageVersionDetails.ts new file mode 100644 index 00000000..2d4624b4 --- /dev/null +++ b/src/version2/parameters/getPageVersionDetails.ts @@ -0,0 +1,6 @@ +export interface GetPageVersionDetails { + /** The ID of the page for which version details should be returned. */ + 'page-id': number; + /** The version number of the page to be returned. */ + 'version-number': number; +} diff --git a/src/version2/parameters/getPageVersions.ts b/src/version2/parameters/getPageVersions.ts new file mode 100644 index 00000000..1f7ab3ad --- /dev/null +++ b/src/version2/parameters/getPageVersions.ts @@ -0,0 +1,19 @@ +export interface GetPageVersions { + /** + * The ID of the page to be queried for its versions. If you don't know the page ID, use Get pages and filter the + * results. + */ + id: number; + /** + * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the + * relative URL in the `Link` header to retrieve the `next` set of results. + */ + cursor?: string; + /** + * Maximum number of versions per result to return. If more results exist, use the `Link` header to retrieve a + * relative URL that will return the next set of results. + */ + limit?: number; + /** Used to sort the result by a particular field. */ + sort?: {}; +} diff --git a/src/version2/parameters/getPages.ts b/src/version2/parameters/getPages.ts new file mode 100644 index 00000000..93f285bb --- /dev/null +++ b/src/version2/parameters/getPages.ts @@ -0,0 +1,12 @@ +export interface GetPages { + /** + * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the + * relative URL in the `Link` header to retrieve the `next` set of results. + */ + cursor?: string; + /** + * Maximum number of pages per result to return. If more results exist, use the `Link` header to retrieve a relative + * URL that will return the next set of results. + */ + limit?: number; +} diff --git a/src/version2/parameters/getPagesInSpace.ts b/src/version2/parameters/getPagesInSpace.ts new file mode 100644 index 00000000..f4748b85 --- /dev/null +++ b/src/version2/parameters/getPagesInSpace.ts @@ -0,0 +1,14 @@ +export interface GetPagesInSpace { + /** The ID of the space for which pages should be returned. */ + id: number; + /** + * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the + * relative URL in the `Link` header to retrieve the `next` set of results. + */ + cursor?: string; + /** + * Maximum number of pages per result to return. If more results exist, use the `Link` header to retrieve a relative + * URL that will return the next set of results. + */ + limit?: number; +} diff --git a/src/version2/parameters/getSpaceById.ts b/src/version2/parameters/getSpaceById.ts new file mode 100644 index 00000000..74278efd --- /dev/null +++ b/src/version2/parameters/getSpaceById.ts @@ -0,0 +1,9 @@ +export interface GetSpaceById { + /** The ID of the space to be returned. */ + id: number; + /** + * The content format type to be returned in the `description` field of the response. If available, the representation + * will be available under a response field of the same name under the `description` field. + */ + 'description-format'?: {}; +} diff --git a/src/version2/parameters/getSpaceProperties.ts b/src/version2/parameters/getSpaceProperties.ts new file mode 100644 index 00000000..dd7ef3ef --- /dev/null +++ b/src/version2/parameters/getSpaceProperties.ts @@ -0,0 +1,19 @@ +export interface GetSpaceProperties { + /** The ID of the space for which space properties should be returned. */ + 'space-id': number; + /** + * The key of the space property to retrieve. This should be used when a user knows the key of their property, but + * needs to retrieve the id for use in other methods. + */ + key?: string; + /** + * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the + * relative URL in the `Link` header to retrieve the `next` set of results. + */ + cursor?: string; + /** + * Maximum number of pages per result to return. If more results exist, use the `Link` header to retrieve a relative + * URL that will return the next set of results. + */ + limit?: number; +} diff --git a/src/version2/parameters/getSpacePropertyById.ts b/src/version2/parameters/getSpacePropertyById.ts new file mode 100644 index 00000000..90870ec9 --- /dev/null +++ b/src/version2/parameters/getSpacePropertyById.ts @@ -0,0 +1,6 @@ +export interface GetSpacePropertyById { + /** The ID of the space the property belongs to. */ + 'space-id': number; + /** The ID of the property to be retrieved. */ + 'property-id': number; +} diff --git a/src/version2/parameters/getSpaces.ts b/src/version2/parameters/getSpaces.ts new file mode 100644 index 00000000..12fe1a12 --- /dev/null +++ b/src/version2/parameters/getSpaces.ts @@ -0,0 +1,29 @@ +export interface GetSpaces { + /** Filter the results to spaces based on their IDs. Multiple IDs can be specified as a comma-separated list. */ + ids?: number[]; + /** Filter the results to spaces based on their keys. Multiple keys can be specified as a comma-separated list. */ + keys?: string[]; + /** Filter the results to spaces based on their type. */ + type?: string; + /** Filter the results to spaces based on their status. */ + status?: string; + /** Filter the results to spaces based on their labels. Multiple labels can be specified as a comma-separated list. */ + labels?: string[]; + /** Used to sort the result by a particular field. */ + sort?: {}; + /** + * The content format type to be returned in the `description` field of the response. If available, the representation + * will be available under a response field of the same name under the `description` field. + */ + 'description-format'?: {}; + /** + * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the + * relative URL in the `Link` header to retrieve the `next` set of results. + */ + cursor?: string; + /** + * Maximum number of spaces per result to return. If more results exist, use the `Link` response header to retrieve a + * relative URL that will return the next set of results. + */ + limit?: number; +} diff --git a/src/version2/parameters/getTaskById.ts b/src/version2/parameters/getTaskById.ts new file mode 100644 index 00000000..67b0df77 --- /dev/null +++ b/src/version2/parameters/getTaskById.ts @@ -0,0 +1,9 @@ +export interface GetTaskById { + /** The ID of the task to be returned. If you don't know the task ID, use Get tasks and filter the results. */ + id: number; + /** + * The content format types to be returned in the `body` field of the response. If available, the representation will + * be available under a response field of the same name under the `body` field. + */ + 'body-format'?: {}; +} diff --git a/src/version2/parameters/getTasks.ts b/src/version2/parameters/getTasks.ts new file mode 100644 index 00000000..30d2ed4f --- /dev/null +++ b/src/version2/parameters/getTasks.ts @@ -0,0 +1,60 @@ +export interface GetTasks { + /** + * The content format types to be returned in the `body` field of the response. If available, the representation will + * be available under a response field of the same name under the `body` field. + */ + 'body-format'?: {}; + /** Specifies whether to include blank tasks in the response. Defaults to `true`. */ + 'include-blank-tasks'?: boolean; + /** Filters on the status of the task. */ + status?: string; + /** Filters on the space ID of the task. Multiple IDs can be specified. */ + 'space-id'?: number[]; + /** + * Filters on the page ID of the task. Multiple IDs can be specified. Note - passing both page and blog post filters + * will result in an empty response. + */ + 'page-id'?: number[]; + /** + * Filters on the blog post ID of the task. Multiple IDs can be specified. Note - passing both page and blog post + * filters will result in an empty response. + */ + 'blogpost-id'?: number[]; + /** Filters on the Account ID of the user who created this task. Multiple IDs can be specified. */ + 'created-by'?: string[]; + /** Filters on the Account ID of the user to whom this task is assigned. Multiple IDs can be specified. */ + 'assigned-to'?: string[]; + /** Filters on the Account ID of the user who completed this task. Multiple IDs can be specified. */ + 'completed-by'?: string[]; + /** + * Filters on start of date-time range of task based on creation date (inclusive). Input is epoch time in + * milliseconds. + */ + 'created-at-from'?: number; + /** Filters on end of date-time range of task based on creation date (inclusive). Input is epoch time in milliseconds. */ + 'created-at-to'?: number; + /** Filters on start of date-time range of task based on due date (inclusive). Input is epoch time in milliseconds. */ + 'due-at-from'?: number; + /** Filters on end of date-time range of task based on due date (inclusive). Input is epoch time in milliseconds. */ + 'due-at-to'?: number; + /** + * Filters on start of date-time range of task based on completion date (inclusive). Input is epoch time in + * milliseconds. + */ + 'completed-at-from'?: number; + /** + * Filters on end of date-time range of task based on completion date (inclusive). Input is epoch time in + * milliseconds. + */ + 'completed-at-to'?: number; + /** + * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the + * relative URL in the `Link` header to retrieve the `next` set of results. + */ + cursor?: string; + /** + * Maximum number of tasks per result to return. If more results exist, use the `Link` header to retrieve a relative + * URL that will return the next set of results. + */ + limit?: number; +} diff --git a/src/version2/parameters/index.ts b/src/version2/parameters/index.ts new file mode 100644 index 00000000..3795562b --- /dev/null +++ b/src/version2/parameters/index.ts @@ -0,0 +1,71 @@ +export * from './getAttachmentById'; +export * from './getBlogpostAttachments'; +export * from './getCustomContentAttachments'; +export * from './getPageAttachments'; +export * from './getAttachmentLabels'; +export * from './getBlogPostLabels'; +export * from './getCustomContentLabels'; +export * from './getPageLabels'; +export * from './getAttachmentContentProperties'; +export * from './getAttachmentContentPropertiesById'; +export * from './getBlogpostContentProperties'; +export * from './getBlogpostContentPropertiesById'; +export * from './getCustomContentContentProperties'; +export * from './getCustomContentContentPropertiesById'; +export * from './getPageContentProperties'; +export * from './getPageContentPropertiesById'; +export * from './getCommentContentProperties'; +export * from './getCommentContentPropertiesById'; +export * from './getAttachmentVersions'; +export * from './getAttachmentVersionDetails'; +export * from './getBlogPostVersions'; +export * from './getBlogPostVersionDetails'; +export * from './getPageVersions'; +export * from './getPageVersionDetails'; +export * from './getCustomContentVersions'; +export * from './getCustomContentVersionDetails'; +export * from './getFooterCommentVersionDetails'; +export * from './getBlogPosts'; +export * from './getBlogPostById'; +export * from './updateBlogPost'; +export * from './deleteBlogPost'; +export * from './getLabelBlogPosts'; +export * from './getBlogPostsInSpace'; +export * from './getCustomContentByTypeInBlogPost'; +export * from './getCustomContentByType'; +export * from './getCustomContentById'; +export * from './updateCustomContent'; +export * from './deleteCustomContent'; +export * from './getCustomContentByTypeInPage'; +export * from './getCustomContentByTypeInSpace'; +export * from './getLabelPages'; +export * from './getPages'; +export * from './getPageById'; +export * from './updatePage'; +export * from './deletePage'; +export * from './getPagesInSpace'; +export * from './getSpaces'; +export * from './getSpaceById'; +export * from './getSpaceProperties'; +export * from './createSpaceProperty'; +export * from './getSpacePropertyById'; +export * from './updateSpacePropertyById'; +export * from './deleteSpacePropertyById'; +export * from './getPageFooterComments'; +export * from './getPageInlineComments'; +export * from './getBlogPostFooterComments'; +export * from './getBlogPostInlineComments'; +export * from './createFooterComment'; +export * from './getFooterCommentById'; +export * from './updateFooterComment'; +export * from './deleteFooterComment'; +export * from './getFooterCommentChildren'; +export * from './createInlineComment'; +export * from './getInlineCommentById'; +export * from './updateInlineComment'; +export * from './deleteInlineComment'; +export * from './getInlineCommentChildren'; +export * from './getTasks'; +export * from './getTaskById'; +export * from './getChildPages'; +export * from './getChildCustomContent'; diff --git a/src/version2/parameters/updateBlogPost.ts b/src/version2/parameters/updateBlogPost.ts new file mode 100644 index 00000000..0164264d --- /dev/null +++ b/src/version2/parameters/updateBlogPost.ts @@ -0,0 +1,7 @@ +export interface UpdateBlogPost { + /** + * The ID of the blog post to be updated. If you don't know the blog post ID, use Get Blog Posts and filter the + * results. + */ + id: number; +} diff --git a/src/version2/parameters/updateCustomContent.ts b/src/version2/parameters/updateCustomContent.ts new file mode 100644 index 00000000..31dd61b2 --- /dev/null +++ b/src/version2/parameters/updateCustomContent.ts @@ -0,0 +1,7 @@ +export interface UpdateCustomContent { + /** + * The ID of the custom content to be updated. If you don't know the custom content ID, use Get Custom Content by Type + * and filter the results. + */ + id: number; +} diff --git a/src/version2/parameters/updateFooterComment.ts b/src/version2/parameters/updateFooterComment.ts new file mode 100644 index 00000000..2e6b52db --- /dev/null +++ b/src/version2/parameters/updateFooterComment.ts @@ -0,0 +1,6 @@ +import { UpdateFooterCommentModel } from '../models'; + +export interface UpdateFooterComment extends UpdateFooterCommentModel { + /** The ID of the comment to be retrieved. */ + 'comment-id': number; +} diff --git a/src/version2/parameters/updateInlineComment.ts b/src/version2/parameters/updateInlineComment.ts new file mode 100644 index 00000000..1fa6c7ce --- /dev/null +++ b/src/version2/parameters/updateInlineComment.ts @@ -0,0 +1,6 @@ +import { UpdateInlineCommentModel } from '../models'; + +export interface UpdateInlineComment extends UpdateInlineCommentModel { + /** The ID of the comment to be retrieved. */ + 'comment-id': number; +} diff --git a/src/version2/parameters/updatePage.ts b/src/version2/parameters/updatePage.ts new file mode 100644 index 00000000..c389f18a --- /dev/null +++ b/src/version2/parameters/updatePage.ts @@ -0,0 +1,4 @@ +export interface UpdatePage { + /** The ID of the page to be updated. If you don't know the page ID, use Get Pages and filter the results. */ + id: number; +} diff --git a/src/version2/parameters/updateSpacePropertyById.ts b/src/version2/parameters/updateSpacePropertyById.ts new file mode 100644 index 00000000..34683736 --- /dev/null +++ b/src/version2/parameters/updateSpacePropertyById.ts @@ -0,0 +1,8 @@ +import { SpacePropertyUpdateRequest } from '../models'; + +export interface UpdateSpacePropertyById extends SpacePropertyUpdateRequest { + /** The ID of the space the property belongs to. */ + 'space-id': number; + /** The ID of the property to be updated. */ + 'property-id': number; +} diff --git a/src/version2/space.ts b/src/version2/space.ts new file mode 100644 index 00000000..1134f271 --- /dev/null +++ b/src/version2/space.ts @@ -0,0 +1,74 @@ +import * as Models from './models'; +import * as Parameters from './parameters'; +import { Callback } from '../callback'; +import { Client } from '../clients'; +import { RequestConfig } from '../requestConfig'; + +export class Space { + constructor(private client: Client) {} + + /** + * Returns all spaces. The results will be sorted by id ascending. The number of results is limited by the `limit` + * parameter and additional results (if available) will be available through the `next` URL present in the `Link` + * response header. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site + * ('Can use' global permission). Only spaces that the user has permission to view will be returned. + */ + async getSpaces( + parameters: Parameters.GetSpaces | undefined, + callback: Callback + ): Promise; + /** + * Returns all spaces. The results will be sorted by id ascending. The number of results is limited by the `limit` + * parameter and additional results (if available) will be available through the `next` URL present in the `Link` + * response header. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site + * ('Can use' global permission). Only spaces that the user has permission to view will be returned. + */ + async getSpaces(parameters?: Parameters.GetSpaces, callback?: never): Promise; + async getSpaces(parameters?: Parameters.GetSpaces, callback?: Callback): Promise { + const config: RequestConfig = { + url: '/spaces', + method: 'GET', + params: { + ids: parameters?.ids, + keys: parameters?.keys, + type: parameters?.type, + status: parameters?.status, + labels: parameters?.labels, + sort: parameters?.sort, + 'description-format': parameters?.['description-format'], + cursor: parameters?.cursor, + limit: parameters?.limit, + }, + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Returns a specific space. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the space. + */ + async getSpaceById(parameters: Parameters.GetSpaceById, callback: Callback): Promise; + /** + * Returns a specific space. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the space. + */ + async getSpaceById(parameters: Parameters.GetSpaceById, callback?: never): Promise; + async getSpaceById(parameters: Parameters.GetSpaceById, callback?: Callback): Promise { + const config: RequestConfig = { + url: `/spaces/${parameters.id}`, + method: 'GET', + params: { + 'description-format': parameters['description-format'], + }, + }; + + return this.client.sendRequest(config, callback); + } +} diff --git a/src/version2/spaceProperties.ts b/src/version2/spaceProperties.ts new file mode 100644 index 00000000..057f2ce6 --- /dev/null +++ b/src/version2/spaceProperties.ts @@ -0,0 +1,184 @@ +import * as Models from './models'; +import * as Parameters from './parameters'; +import { Callback } from '../callback'; +import { Client } from '../clients'; +import { RequestConfig } from '../requestConfig'; + +export class SpaceProperties { + constructor(private client: Client) {} + + /** + * Returns all properties for the given space. Space properties are a key-value storage associated with a space. The + * limit parameter specifies the maximum number of results returned in a single response. Use the `link` response + * header to paginate through additional results. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site + * ('Can use' global permission) and 'View' permission for the space. + */ + async getSpaceProperties( + parameters: Parameters.GetSpaceProperties, + callback: Callback + ): Promise; + /** + * Returns all properties for the given space. Space properties are a key-value storage associated with a space. The + * limit parameter specifies the maximum number of results returned in a single response. Use the `link` response + * header to paginate through additional results. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site + * ('Can use' global permission) and 'View' permission for the space. + */ + async getSpaceProperties( + parameters: Parameters.GetSpaceProperties, + callback?: never + ): Promise; + async getSpaceProperties( + parameters: Parameters.GetSpaceProperties, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: `/spaces/${parameters.space - id}/properties`, + method: 'GET', + params: { + key: parameters.key, + cursor: parameters.cursor, + limit: parameters.limit, + }, + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Creates a new space property. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site + * ('Can use' global permission) and 'Admin' permission for the space. + */ + async createSpaceProperty( + parameters: Parameters.CreateSpaceProperty, + callback: Callback + ): Promise; + /** + * Creates a new space property. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site + * ('Can use' global permission) and 'Admin' permission for the space. + */ + async createSpaceProperty( + parameters: Parameters.CreateSpaceProperty, + callback?: never + ): Promise; + async createSpaceProperty( + parameters: Parameters.CreateSpaceProperty, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: `/spaces/${parameters.space - id}/properties`, + method: 'POST', + data: { + key: parameters.key, + value: parameters.value, + }, + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Retrieve a space property by its id. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site + * ('Can use' global permission) and 'View' permission for the space. + */ + async getSpacePropertyById( + parameters: Parameters.GetSpacePropertyById, + callback: Callback + ): Promise; + /** + * Retrieve a space property by its id. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site + * ('Can use' global permission) and 'View' permission for the space. + */ + async getSpacePropertyById( + parameters: Parameters.GetSpacePropertyById, + callback?: never + ): Promise; + async getSpacePropertyById( + parameters: Parameters.GetSpacePropertyById, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: `/spaces/${parameters.space - id}/properties/${parameters.property - id}`, + method: 'GET', + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Update a space property by its id. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site + * ('Can use' global permission) and 'Admin' permission for the space. + */ + async updateSpacePropertyById( + parameters: Parameters.UpdateSpacePropertyById, + callback: Callback + ): Promise; + /** + * Update a space property by its id. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site + * ('Can use' global permission) and 'Admin' permission for the space. + */ + async updateSpacePropertyById( + parameters: Parameters.UpdateSpacePropertyById, + callback?: never + ): Promise; + async updateSpacePropertyById( + parameters: Parameters.UpdateSpacePropertyById, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: `/spaces/${parameters.space - id}/properties/${parameters.property - id}`, + method: 'PUT', + data: { + key: parameters.key, + value: parameters.value, + version: parameters.version, + }, + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Deletes a space property by its id. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site + * ('Can use' global permission) and 'Admin' permission for the space. + */ + async deleteSpacePropertyById( + parameters: Parameters.DeleteSpacePropertyById, + callback: Callback + ): Promise; + /** + * Deletes a space property by its id. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site + * ('Can use' global permission) and 'Admin' permission for the space. + */ + async deleteSpacePropertyById(parameters: Parameters.DeleteSpacePropertyById, callback?: never): Promise; + async deleteSpacePropertyById( + parameters: Parameters.DeleteSpacePropertyById, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: `/spaces/${parameters.space - id}/properties/${parameters.property - id}`, + method: 'DELETE', + }; + + return this.client.sendRequest(config, callback); + } +} diff --git a/src/version2/task.ts b/src/version2/task.ts new file mode 100644 index 00000000..04caf643 --- /dev/null +++ b/src/version2/task.ts @@ -0,0 +1,82 @@ +import * as Models from './models'; +import * as Parameters from './parameters'; +import { Callback } from '../callback'; +import { Client } from '../clients'; +import { RequestConfig } from '../requestConfig'; + +export class Task { + constructor(private client: Client) {} + + /** + * Returns all tasks. The number of results is limited by the `limit` parameter and additional results (if available) + * will be available through the `next` URL present in the `Link` response header. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site + * ('Can use' global permission). Only tasks that the user has permission to view will be returned. + */ + async getTasks( + parameters: Parameters.GetTasks | undefined, + callback: Callback + ): Promise; + /** + * Returns all tasks. The number of results is limited by the `limit` parameter and additional results (if available) + * will be available through the `next` URL present in the `Link` response header. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site + * ('Can use' global permission). Only tasks that the user has permission to view will be returned. + */ + async getTasks(parameters?: Parameters.GetTasks, callback?: never): Promise; + async getTasks(parameters?: Parameters.GetTasks, callback?: Callback): Promise { + const config: RequestConfig = { + url: '/tasks', + method: 'GET', + params: { + 'body-format': parameters?.['body-format'], + 'include-blank-tasks': parameters?.['include-blank-tasks'], + status: parameters?.status, + 'space-id': parameters?.['space-id'], + 'page-id': parameters?.['page-id'], + 'blogpost-id': parameters?.['blogpost-id'], + 'created-by': parameters?.['created-by'], + 'assigned-to': parameters?.['assigned-to'], + 'completed-by': parameters?.['completed-by'], + 'created-at-from': parameters?.['created-at-from'], + 'created-at-to': parameters?.['created-at-to'], + 'due-at-from': parameters?.['due-at-from'], + 'due-at-to': parameters?.['due-at-to'], + 'completed-at-from': parameters?.['completed-at-from'], + 'completed-at-to': parameters?.['completed-at-to'], + cursor: parameters?.cursor, + limit: parameters?.limit, + }, + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Returns a specific task. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the containing page or + * blog post and its corresponding space. + */ + async getTaskById(parameters: Parameters.GetTaskById, callback: Callback): Promise; + /** + * Returns a specific task. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the containing page or + * blog post and its corresponding space. + */ + async getTaskById(parameters: Parameters.GetTaskById, callback?: never): Promise; + async getTaskById(parameters: Parameters.GetTaskById, callback?: Callback): Promise { + const config: RequestConfig = { + url: `/tasks/${parameters.id}`, + method: 'GET', + params: { + 'body-format': parameters['body-format'], + }, + }; + + return this.client.sendRequest(config, callback); + } +} diff --git a/src/version2/version.ts b/src/version2/version.ts new file mode 100644 index 00000000..ca95754f --- /dev/null +++ b/src/version2/version.ts @@ -0,0 +1,309 @@ +import * as Models from './models'; +import * as Parameters from './parameters'; +import { Callback } from '../callback'; +import { Client } from '../clients'; +import { RequestConfig } from '../requestConfig'; + +export class Version { + constructor(private client: Client) {} + + /** + * Returns the versions of specific attachment. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the attachment and its + * corresponding space. + */ + async getAttachmentVersions( + parameters: Parameters.GetAttachmentVersions, + callback: Callback + ): Promise; + /** + * Returns the versions of specific attachment. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the attachment and its + * corresponding space. + */ + async getAttachmentVersions( + parameters: Parameters.GetAttachmentVersions, + callback?: never + ): Promise; + async getAttachmentVersions( + parameters: Parameters.GetAttachmentVersions, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: `/attachments/${parameters.id}/versions`, + method: 'GET', + params: { + cursor: parameters.cursor, + limit: parameters.limit, + sort: parameters.sort, + }, + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Retrieves version details for the specified attachment and version number. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the attachment. + */ + async getAttachmentVersionDetails( + parameters: Parameters.GetAttachmentVersionDetails, + callback: Callback + ): Promise; + /** + * Retrieves version details for the specified attachment and version number. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the attachment. + */ + async getAttachmentVersionDetails( + parameters: Parameters.GetAttachmentVersionDetails, + callback?: never + ): Promise; + async getAttachmentVersionDetails( + parameters: Parameters.GetAttachmentVersionDetails, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: `/attachments/${parameters.attachment - id}/versions/${parameters.version - number}`, + method: 'GET', + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Returns the versions of specific blog post. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the blog post and its + * corresponding space. + */ + async getBlogPostVersions( + parameters: Parameters.GetBlogPostVersions, + callback: Callback + ): Promise; + /** + * Returns the versions of specific blog post. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the blog post and its + * corresponding space. + */ + async getBlogPostVersions( + parameters: Parameters.GetBlogPostVersions, + callback?: never + ): Promise; + async getBlogPostVersions( + parameters: Parameters.GetBlogPostVersions, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: `/blogposts/${parameters.id}/versions`, + method: 'GET', + params: { + cursor: parameters.cursor, + limit: parameters.limit, + sort: parameters.sort, + }, + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Retrieves version details for the specified blog post and version number. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the blog post. + */ + async getBlogPostVersionDetails( + parameters: Parameters.GetBlogPostVersionDetails, + callback: Callback + ): Promise; + /** + * Retrieves version details for the specified blog post and version number. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the blog post. + */ + async getBlogPostVersionDetails( + parameters: Parameters.GetBlogPostVersionDetails, + callback?: never + ): Promise; + async getBlogPostVersionDetails( + parameters: Parameters.GetBlogPostVersionDetails, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: `/blogposts/${parameters.blogpost - id}/versions/${parameters.version - number}`, + method: 'GET', + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Returns the versions of specific page. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the page and its + * corresponding space. + */ + async getPageVersions( + parameters: Parameters.GetPageVersions, + callback: Callback + ): Promise; + /** + * Returns the versions of specific page. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the page and its + * corresponding space. + */ + async getPageVersions( + parameters: Parameters.GetPageVersions, + callback?: never + ): Promise; + async getPageVersions( + parameters: Parameters.GetPageVersions, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: `/pages/${parameters.id}/versions`, + method: 'GET', + params: { + cursor: parameters.cursor, + limit: parameters.limit, + sort: parameters.sort, + }, + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Retrieves version details for the specified page and version number. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the page. + */ + async getPageVersionDetails( + parameters: Parameters.GetPageVersionDetails, + callback: Callback + ): Promise; + /** + * Retrieves version details for the specified page and version number. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the page. + */ + async getPageVersionDetails( + parameters: Parameters.GetPageVersionDetails, + callback?: never + ): Promise; + async getPageVersionDetails( + parameters: Parameters.GetPageVersionDetails, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: `/pages/${parameters.page - id}/versions/${parameters.version - number}`, + method: 'GET', + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Returns the versions of specific custom content. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the custom content and + * its corresponding page and space. + */ + async getCustomContentVersions( + parameters: Parameters.GetCustomContentVersions, + callback: Callback + ): Promise; + /** + * Returns the versions of specific custom content. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the custom content and + * its corresponding page and space. + */ + async getCustomContentVersions( + parameters: Parameters.GetCustomContentVersions, + callback?: never + ): Promise; + async getCustomContentVersions( + parameters: Parameters.GetCustomContentVersions, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: `/custom-content/${parameters.custom - content - id}/versions`, + method: 'GET', + params: { + cursor: parameters.cursor, + limit: parameters.limit, + sort: parameters.sort, + }, + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Retrieves version details for the specified custom content and version number. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the page. + */ + async getCustomContentVersionDetails( + parameters: Parameters.GetCustomContentVersionDetails, + callback: Callback + ): Promise; + /** + * Retrieves version details for the specified custom content and version number. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the page. + */ + async getCustomContentVersionDetails( + parameters: Parameters.GetCustomContentVersionDetails, + callback?: never + ): Promise; + async getCustomContentVersionDetails( + parameters: Parameters.GetCustomContentVersionDetails, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: `/custom-content/${parameters.custom - content - id}/versions/${parameters.version - number}`, + method: 'GET', + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Retrieves version details for the specified footer comment version. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the page + * or blog post and its corresponding space. + */ + async getFooterCommentVersionDetails( + parameters: Parameters.GetFooterCommentVersionDetails, + callback: Callback + ): Promise; + /** + * Retrieves version details for the specified footer comment version. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the page + * or blog post and its corresponding space. + */ + async getFooterCommentVersionDetails( + parameters: Parameters.GetFooterCommentVersionDetails, + callback?: never + ): Promise; + async getFooterCommentVersionDetails( + parameters: Parameters.GetFooterCommentVersionDetails, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: `/footer-comments/${parameters.id}/versions/${parameters.version - number}`, + method: 'GET', + }; + + return this.client.sendRequest(config, callback); + } +} From f79e11b5c92ae578dcc0cadaede32e799c4f2451 Mon Sep 17 00:00:00 2001 From: Vladislav Tupikin Date: Fri, 10 Mar 2023 00:21:04 +0400 Subject: [PATCH 02/44] v2 api build fixes --- src/clients/index.ts | 1 + src/clients/version2Client.ts | 30 +++++++++++++++++++ src/index.ts | 4 +++ src/version2/blogPost.ts | 2 ++ src/version2/comment.ts | 14 ++++----- src/version2/contentProperties.ts | 20 ++++++------- .../models/blogPostInlineCommentModel.ts | 16 ++++++++++ .../models/inlineCommentChildrenModel.ts | 16 ++++++++++ src/version2/models/pageInlineCommentModel.ts | 16 ++++++++++ .../parameters/createSpaceProperty.ts | 2 +- .../parameters/deleteFooterComment.ts | 2 +- .../parameters/deleteInlineComment.ts | 2 +- .../parameters/deleteSpacePropertyById.ts | 4 +-- .../getAttachmentContentProperties.ts | 2 +- .../getAttachmentContentPropertiesById.ts | 4 +-- .../parameters/getAttachmentVersionDetails.ts | 4 +-- .../parameters/getBlogPostVersionDetails.ts | 4 +-- .../getBlogpostContentProperties.ts | 2 +- .../getBlogpostContentPropertiesById.ts | 4 +-- .../parameters/getCommentContentProperties.ts | 2 +- .../getCommentContentPropertiesById.ts | 4 +-- .../getCustomContentContentProperties.ts | 2 +- .../getCustomContentContentPropertiesById.ts | 4 +-- .../getCustomContentVersionDetails.ts | 4 +-- .../parameters/getCustomContentVersions.ts | 2 +- .../parameters/getFooterCommentById.ts | 2 +- .../getFooterCommentVersionDetails.ts | 2 +- .../parameters/getInlineCommentById.ts | 2 +- .../parameters/getPageContentProperties.ts | 2 +- .../getPageContentPropertiesById.ts | 4 +-- .../parameters/getPageVersionDetails.ts | 4 +-- src/version2/parameters/getSpaceProperties.ts | 2 +- .../parameters/getSpacePropertyById.ts | 4 +-- .../parameters/updateFooterComment.ts | 2 +- .../parameters/updateInlineComment.ts | 2 +- .../parameters/updateSpacePropertyById.ts | 4 +-- src/version2/spaceProperties.ts | 10 +++---- src/version2/version.ts | 12 ++++---- 38 files changed, 152 insertions(+), 67 deletions(-) create mode 100644 src/clients/version2Client.ts diff --git a/src/clients/index.ts b/src/clients/index.ts index 631fe11e..f7919c5f 100644 --- a/src/clients/index.ts +++ b/src/clients/index.ts @@ -2,3 +2,4 @@ export * from './baseClient'; export * from './client'; export * from './confluenceClient'; export * from './serverClient'; +export * from './version2Client'; diff --git a/src/clients/version2Client.ts b/src/clients/version2Client.ts new file mode 100644 index 00000000..f6ad9728 --- /dev/null +++ b/src/clients/version2Client.ts @@ -0,0 +1,30 @@ +import { BaseClient } from './baseClient'; +import { + Attachment, + BlogPost, + Children, + Comment, + ContentProperties, + CustomContent, + Label, + Page, + Space, + SpaceProperties, + Task, + Version, +} from '../version2'; + +export class Version2Client extends BaseClient { + attachment = new Attachment(this); + blogPost = new BlogPost(this); + children = new Children(this); + comment = new Comment(this); + contentProperties = new ContentProperties(this); + customContent = new CustomContent(this); + label = new Label(this); + page = new Page(this); + space = new Space(this); + spaceProperties = new SpaceProperties(this); + task = new Task(this); + version = new Version(this); +} diff --git a/src/index.ts b/src/index.ts index 52e72e14..f2582dff 100644 --- a/src/index.ts +++ b/src/index.ts @@ -12,3 +12,7 @@ export * as Models from './api/models'; export * as Parameters from './api/parameters'; export * as ServerModels from './server/models'; export * as ServerParameters from './server/parameters'; + +export * as Version2 from './version2'; +export * as Version2Models from './version2/models'; +export * as Version2Parameters from './version2/parameters'; diff --git a/src/version2/blogPost.ts b/src/version2/blogPost.ts index aeae56e4..eacb1a3c 100644 --- a/src/version2/blogPost.ts +++ b/src/version2/blogPost.ts @@ -42,6 +42,7 @@ export class BlogPost { return this.client.sendRequest(config, callback); } + // todo /** * Creates a new blog post in the space specified by the spaceId. * @@ -127,6 +128,7 @@ export class BlogPost { const config: RequestConfig = { url: `/blogposts/${parameters.id}`, method: 'PUT', + // todo }; return this.client.sendRequest(config, callback); diff --git a/src/version2/comment.ts b/src/version2/comment.ts index 2711f764..a0a4b9f6 100644 --- a/src/version2/comment.ts +++ b/src/version2/comment.ts @@ -158,7 +158,7 @@ export class Comment { callback?: Callback, ): Promise { const config: RequestConfig = { - url: `/blogposts/${parameters.id}/inline-comments`, + url: `/blogposts/${parameters.id}/inline -comments`, method: 'GET', params: { 'body-format': parameters['body-format'], @@ -236,7 +236,7 @@ export class Comment { callback?: Callback, ): Promise { const config: RequestConfig = { - url: `/footer-comments/${parameters.comment - id}`, + url: `/footer-comments/${parameters.id}`, method: 'GET', params: { 'body-format': parameters['body-format'], @@ -272,7 +272,7 @@ export class Comment { callback?: Callback, ): Promise { const config: RequestConfig = { - url: `/footer-comments/${parameters.comment - id}`, + url: `/footer-comments/${parameters.id}`, method: 'PUT', data: { version: parameters.version, @@ -302,7 +302,7 @@ export class Comment { callback?: Callback, ): Promise { const config: RequestConfig = { - url: `/footer-comments/${parameters.comment - id}`, + url: `/footer-comments/${parameters.id}`, method: 'DELETE', }; @@ -421,7 +421,7 @@ export class Comment { callback?: Callback, ): Promise { const config: RequestConfig = { - url: `/inline-comments/${parameters.comment - id}`, + url: `/inline-comments/${parameters.id}`, method: 'GET', params: { 'body-format': parameters['body-format'], @@ -457,7 +457,7 @@ export class Comment { callback?: Callback, ): Promise { const config: RequestConfig = { - url: `/inline-comments/${parameters.comment - id}`, + url: `/inline-comments/${parameters.id}`, method: 'PUT', data: { version: parameters.version, @@ -488,7 +488,7 @@ export class Comment { callback?: Callback, ): Promise { const config: RequestConfig = { - url: `/inline-comments/${parameters.comment - id}`, + url: `/inline-comments/${parameters.id}`, method: 'DELETE', }; diff --git a/src/version2/contentProperties.ts b/src/version2/contentProperties.ts index 94b2e150..9d3ce147 100644 --- a/src/version2/contentProperties.ts +++ b/src/version2/contentProperties.ts @@ -30,7 +30,7 @@ export class ContentProperties { callback?: Callback, ): Promise { const config: RequestConfig = { - url: `/attachments/${parameters.attachment - id}/properties`, + url: `/attachments/${parameters.id}/properties`, method: 'GET', params: { key: parameters.key, @@ -66,7 +66,7 @@ export class ContentProperties { callback?: Callback, ): Promise { const config: RequestConfig = { - url: `/attachments/${parameters.attachment - id}/properties/${parameters.property - id}`, + url: `/attachments/${parameters.id}/properties/${parameters.propertyId}`, method: 'GET', }; @@ -96,7 +96,7 @@ export class ContentProperties { callback?: Callback, ): Promise { const config: RequestConfig = { - url: `/blogposts/${parameters.blogpost - id}/properties`, + url: `/blogposts/${parameters.id}/properties`, method: 'GET', params: { key: parameters.key, @@ -132,7 +132,7 @@ export class ContentProperties { callback?: Callback, ): Promise { const config: RequestConfig = { - url: `/blogposts/${parameters.blogpost - id}/properties/${parameters.property - id}`, + url: `/blogposts/${parameters.id}/properties/${parameters.propertyId}`, method: 'GET', }; @@ -162,7 +162,7 @@ export class ContentProperties { callback?: Callback, ): Promise { const config: RequestConfig = { - url: `/custom-content/${parameters.custom - content - id}/properties`, + url: `/custom-content/${parameters.id}/properties`, method: 'GET', params: { key: parameters.key, @@ -198,7 +198,7 @@ export class ContentProperties { callback?: Callback, ): Promise { const config: RequestConfig = { - url: `/custom-content/${parameters.custom - content - id}/properties/${parameters.property - id}`, + url: `/custom-content/${parameters.id}/properties/${parameters.propertyId}`, method: 'GET', }; @@ -228,7 +228,7 @@ export class ContentProperties { callback?: Callback, ): Promise { const config: RequestConfig = { - url: `/pages/${parameters.page - id}/properties`, + url: `/pages/${parameters.id}/properties`, method: 'GET', params: { key: parameters.key, @@ -264,7 +264,7 @@ export class ContentProperties { callback?: Callback, ): Promise { const config: RequestConfig = { - url: `/pages/${parameters.page - id}/properties/${parameters.property - id}`, + url: `/pages/${parameters.id}/properties/${parameters.propertyId}`, method: 'GET', }; @@ -294,7 +294,7 @@ export class ContentProperties { callback?: Callback, ): Promise { const config: RequestConfig = { - url: `/comments/${parameters.comment - id}/properties`, + url: `/comments/${parameters.id}/properties`, method: 'GET', params: { key: parameters.key, @@ -330,7 +330,7 @@ export class ContentProperties { callback?: Callback, ): Promise { const config: RequestConfig = { - url: `/comments/${parameters.comment - id}/properties/${parameters.property - id}`, + url: `/comments/${parameters.id}/properties/${parameters.propertyId}`, method: 'GET', }; diff --git a/src/version2/models/blogPostInlineCommentModel.ts b/src/version2/models/blogPostInlineCommentModel.ts index e69de29b..f93260c5 100644 --- a/src/version2/models/blogPostInlineCommentModel.ts +++ b/src/version2/models/blogPostInlineCommentModel.ts @@ -0,0 +1,16 @@ +import { Body } from './body'; +import { Version } from './version'; + +export interface BlogPostInlineCommentModel { + /** ID of the comment. */ + id: number; + /** The status of the content. */ + status: 'current' | 'trashed' | 'historical' | 'deleted' | 'any' | 'draft' | 'archived' | string; + /** Title of the comment. */ + title: string; + /** ID of the blog post the comment is in. */ + blogPostId: number; + version: Version; + /** Contains fields for each representation type requested. */ + body: Body; +} diff --git a/src/version2/models/inlineCommentChildrenModel.ts b/src/version2/models/inlineCommentChildrenModel.ts index e69de29b..e9c00b29 100644 --- a/src/version2/models/inlineCommentChildrenModel.ts +++ b/src/version2/models/inlineCommentChildrenModel.ts @@ -0,0 +1,16 @@ +import { Body } from './body'; +import { Version } from './version'; + +export interface InlineCommentChildrenModel { + /** ID of the comment. */ + id: number; + /** The status of the content. */ + status: 'current' | 'trashed' | 'historical' | 'deleted' | 'any' | 'draft' | 'archived' | string; + /** Title of the comment. */ + title: string; + /** ID of the parent comment the child comment is in. */ + parentCommentId: number; + version: Version; + /** Contains fields for each representation type requested. */ + body: Body; +} diff --git a/src/version2/models/pageInlineCommentModel.ts b/src/version2/models/pageInlineCommentModel.ts index e69de29b..9912f62a 100644 --- a/src/version2/models/pageInlineCommentModel.ts +++ b/src/version2/models/pageInlineCommentModel.ts @@ -0,0 +1,16 @@ +import { Body } from './body'; +import { Version } from './version'; + +export interface PageInlineCommentModel { + /** ID of the comment. */ + id: number; + /** The status of the content. */ + status: 'current' | 'trashed' | 'historical' | 'deleted' | 'any' | 'draft' | 'archived' | string; + /** Title of the comment. */ + title: string; + /** ID of the page the comment is in. */ + pageId: number; + version: Version; + /** Contains fields for each representation type requested. */ + body: Body; +} diff --git a/src/version2/parameters/createSpaceProperty.ts b/src/version2/parameters/createSpaceProperty.ts index 5291ce81..e9de20a1 100644 --- a/src/version2/parameters/createSpaceProperty.ts +++ b/src/version2/parameters/createSpaceProperty.ts @@ -2,5 +2,5 @@ import { SpacePropertyCreateRequest } from '../models'; export interface CreateSpaceProperty extends SpacePropertyCreateRequest { /** The ID of the space for which space properties should be returned. */ - 'space-id': number; + id: number; } diff --git a/src/version2/parameters/deleteFooterComment.ts b/src/version2/parameters/deleteFooterComment.ts index 32517ed2..873a8fa1 100644 --- a/src/version2/parameters/deleteFooterComment.ts +++ b/src/version2/parameters/deleteFooterComment.ts @@ -1,4 +1,4 @@ export interface DeleteFooterComment { /** The ID of the comment to be retrieved. */ - 'comment-id': number; + id: number; } diff --git a/src/version2/parameters/deleteInlineComment.ts b/src/version2/parameters/deleteInlineComment.ts index 4fc7a21c..247bc1c2 100644 --- a/src/version2/parameters/deleteInlineComment.ts +++ b/src/version2/parameters/deleteInlineComment.ts @@ -1,4 +1,4 @@ export interface DeleteInlineComment { /** The ID of the comment to be deleted. */ - 'comment-id': number; + id: number; } diff --git a/src/version2/parameters/deleteSpacePropertyById.ts b/src/version2/parameters/deleteSpacePropertyById.ts index cf87aa33..68ca8918 100644 --- a/src/version2/parameters/deleteSpacePropertyById.ts +++ b/src/version2/parameters/deleteSpacePropertyById.ts @@ -1,6 +1,6 @@ export interface DeleteSpacePropertyById { /** The ID of the space the property belongs to. */ - 'space-id': number; + id: number; /** The ID of the property to be deleted. */ - 'property-id': number; + propertyId: number; } diff --git a/src/version2/parameters/getAttachmentContentProperties.ts b/src/version2/parameters/getAttachmentContentProperties.ts index 1d1e223d..90d65eaa 100644 --- a/src/version2/parameters/getAttachmentContentProperties.ts +++ b/src/version2/parameters/getAttachmentContentProperties.ts @@ -1,6 +1,6 @@ export interface GetAttachmentContentProperties { /** The ID of the attachment for which content properties should be returned. */ - 'attachment-id': string; + id: string; /** Filters the response to return a specific content property with matching key (case sensitive). */ key?: string; /** Used to sort the result by a particular field. */ diff --git a/src/version2/parameters/getAttachmentContentPropertiesById.ts b/src/version2/parameters/getAttachmentContentPropertiesById.ts index 783030a2..e6d4003d 100644 --- a/src/version2/parameters/getAttachmentContentPropertiesById.ts +++ b/src/version2/parameters/getAttachmentContentPropertiesById.ts @@ -1,6 +1,6 @@ export interface GetAttachmentContentPropertiesById { /** The ID of the attachment for which content properties should be returned. */ - 'attachment-id': string; + id: string; /** The ID of the content property to be returned */ - 'property-id': number; + propertyId: number; } diff --git a/src/version2/parameters/getAttachmentVersionDetails.ts b/src/version2/parameters/getAttachmentVersionDetails.ts index 2d88c0f4..9afbbbe4 100644 --- a/src/version2/parameters/getAttachmentVersionDetails.ts +++ b/src/version2/parameters/getAttachmentVersionDetails.ts @@ -1,6 +1,6 @@ export interface GetAttachmentVersionDetails { /** The ID of the attachment for which version details should be returned. */ - 'attachment-id': string; + id: string; /** The version number of the attachment to be returned. */ - 'version-number': number; + versionNumber: number; } diff --git a/src/version2/parameters/getBlogPostVersionDetails.ts b/src/version2/parameters/getBlogPostVersionDetails.ts index 6821e8ba..7771ab1e 100644 --- a/src/version2/parameters/getBlogPostVersionDetails.ts +++ b/src/version2/parameters/getBlogPostVersionDetails.ts @@ -1,6 +1,6 @@ export interface GetBlogPostVersionDetails { /** The ID of the blog post for which version details should be returned. */ - 'blogpost-id': number; + id: number; /** The version number of the blog post to be returned. */ - 'version-number': number; + versionNumber: number; } diff --git a/src/version2/parameters/getBlogpostContentProperties.ts b/src/version2/parameters/getBlogpostContentProperties.ts index 1d417ca1..ab6d7b09 100644 --- a/src/version2/parameters/getBlogpostContentProperties.ts +++ b/src/version2/parameters/getBlogpostContentProperties.ts @@ -1,6 +1,6 @@ export interface GetBlogpostContentProperties { /** The ID of the blog post for which content properties should be returned. */ - 'blogpost-id': number; + id: number; /** Filters the response to return a specific content property with matching key (case sensitive). */ key?: string; /** Used to sort the result by a particular field. */ diff --git a/src/version2/parameters/getBlogpostContentPropertiesById.ts b/src/version2/parameters/getBlogpostContentPropertiesById.ts index 8d52ebef..8929aa4a 100644 --- a/src/version2/parameters/getBlogpostContentPropertiesById.ts +++ b/src/version2/parameters/getBlogpostContentPropertiesById.ts @@ -1,6 +1,6 @@ export interface GetBlogpostContentPropertiesById { /** The ID of the blog post for which content properties should be returned. */ - 'blogpost-id': number; + id: number; /** The ID of the property being requested */ - 'property-id': number; + propertyId: number; } diff --git a/src/version2/parameters/getCommentContentProperties.ts b/src/version2/parameters/getCommentContentProperties.ts index 25e4c334..2a2a6bb7 100644 --- a/src/version2/parameters/getCommentContentProperties.ts +++ b/src/version2/parameters/getCommentContentProperties.ts @@ -1,6 +1,6 @@ export interface GetCommentContentProperties { /** The ID of the comment for which content properties should be returned. */ - 'comment-id': number; + id: number; /** Filters the response to return a specific content property with matching key (case sensitive). */ key?: string; /** Used to sort the result by a particular field. */ diff --git a/src/version2/parameters/getCommentContentPropertiesById.ts b/src/version2/parameters/getCommentContentPropertiesById.ts index 0dadd19d..fc95aad7 100644 --- a/src/version2/parameters/getCommentContentPropertiesById.ts +++ b/src/version2/parameters/getCommentContentPropertiesById.ts @@ -1,6 +1,6 @@ export interface GetCommentContentPropertiesById { /** The ID of the comment for which content properties should be returned. */ - 'comment-id': number; + id: number; /** The ID of the content property being requested. */ - 'property-id': number; + propertyId: number; } diff --git a/src/version2/parameters/getCustomContentContentProperties.ts b/src/version2/parameters/getCustomContentContentProperties.ts index 15bcf584..7e249762 100644 --- a/src/version2/parameters/getCustomContentContentProperties.ts +++ b/src/version2/parameters/getCustomContentContentProperties.ts @@ -1,6 +1,6 @@ export interface GetCustomContentContentProperties { /** The ID of the custom content for which content properties should be returned. */ - 'custom-content-id': number; + id: number; /** Filters the response to return a specific content property with matching key (case sensitive). */ key?: string; /** Used to sort the result by a particular field. */ diff --git a/src/version2/parameters/getCustomContentContentPropertiesById.ts b/src/version2/parameters/getCustomContentContentPropertiesById.ts index 684eaece..d60322eb 100644 --- a/src/version2/parameters/getCustomContentContentPropertiesById.ts +++ b/src/version2/parameters/getCustomContentContentPropertiesById.ts @@ -1,6 +1,6 @@ export interface GetCustomContentContentPropertiesById { /** The ID of the custom content for which content properties should be returned. */ - 'custom-content-id': number; + id: number; /** The ID of the content property being requested. */ - 'property-id': number; + propertyId: number; } diff --git a/src/version2/parameters/getCustomContentVersionDetails.ts b/src/version2/parameters/getCustomContentVersionDetails.ts index 873ddb68..a5624bd4 100644 --- a/src/version2/parameters/getCustomContentVersionDetails.ts +++ b/src/version2/parameters/getCustomContentVersionDetails.ts @@ -1,6 +1,6 @@ export interface GetCustomContentVersionDetails { /** The ID of the custom content for which version details should be returned. */ - 'custom-content-id': number; + id: number; /** The version number of the custom content to be returned. */ - 'version-number': number; + versionNumber: number; } diff --git a/src/version2/parameters/getCustomContentVersions.ts b/src/version2/parameters/getCustomContentVersions.ts index b6aa35b1..21a4fd00 100644 --- a/src/version2/parameters/getCustomContentVersions.ts +++ b/src/version2/parameters/getCustomContentVersions.ts @@ -3,7 +3,7 @@ export interface GetCustomContentVersions { * The ID of the custom content to be queried for its versions. If you don't know the custom content ID, use Get * custom-content by type and filter the results. */ - 'custom-content-id': number; + id: number; /** * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the * relative URL in the `Link` header to retrieve the `next` set of results. diff --git a/src/version2/parameters/getFooterCommentById.ts b/src/version2/parameters/getFooterCommentById.ts index 707da4d3..279fd549 100644 --- a/src/version2/parameters/getFooterCommentById.ts +++ b/src/version2/parameters/getFooterCommentById.ts @@ -1,6 +1,6 @@ export interface GetFooterCommentById { /** The ID of the comment to be retrieved. */ - 'comment-id': number; + id: number; /** * The content format type to be returned in the `body` field of the response. If available, the representation will * be available under a response field of the same name under the `body` field. diff --git a/src/version2/parameters/getFooterCommentVersionDetails.ts b/src/version2/parameters/getFooterCommentVersionDetails.ts index 0b06ce26..20c953f1 100644 --- a/src/version2/parameters/getFooterCommentVersionDetails.ts +++ b/src/version2/parameters/getFooterCommentVersionDetails.ts @@ -2,5 +2,5 @@ export interface GetFooterCommentVersionDetails { /** The ID of the footer comment for which version details should be returned. */ id: number; /** The version number of the footer comment to be returned. */ - 'version-number': number; + versionNumber: number; } diff --git a/src/version2/parameters/getInlineCommentById.ts b/src/version2/parameters/getInlineCommentById.ts index 5322d492..1639a9cc 100644 --- a/src/version2/parameters/getInlineCommentById.ts +++ b/src/version2/parameters/getInlineCommentById.ts @@ -1,6 +1,6 @@ export interface GetInlineCommentById { /** The ID of the comment to be retrieved. */ - 'comment-id': number; + id: number; /** * The content format type to be returned in the `body` field of the response. If available, the representation will * be available under a response field of the same name under the `body` field. diff --git a/src/version2/parameters/getPageContentProperties.ts b/src/version2/parameters/getPageContentProperties.ts index d279a6ef..09fa73bf 100644 --- a/src/version2/parameters/getPageContentProperties.ts +++ b/src/version2/parameters/getPageContentProperties.ts @@ -1,6 +1,6 @@ export interface GetPageContentProperties { /** The ID of the page for which content properties should be returned. */ - 'page-id': number; + id: number; /** Filters the response to return a specific content property with matching key (case sensitive). */ key?: string; /** Used to sort the result by a particular field. */ diff --git a/src/version2/parameters/getPageContentPropertiesById.ts b/src/version2/parameters/getPageContentPropertiesById.ts index 14171eb8..62202837 100644 --- a/src/version2/parameters/getPageContentPropertiesById.ts +++ b/src/version2/parameters/getPageContentPropertiesById.ts @@ -1,6 +1,6 @@ export interface GetPageContentPropertiesById { /** The ID of the page for which content properties should be returned. */ - 'page-id': number; + id: number; /** The ID of the content property being requested. */ - 'property-id': number; + propertyId: number; } diff --git a/src/version2/parameters/getPageVersionDetails.ts b/src/version2/parameters/getPageVersionDetails.ts index 2d4624b4..f951d86f 100644 --- a/src/version2/parameters/getPageVersionDetails.ts +++ b/src/version2/parameters/getPageVersionDetails.ts @@ -1,6 +1,6 @@ export interface GetPageVersionDetails { /** The ID of the page for which version details should be returned. */ - 'page-id': number; + id: number; /** The version number of the page to be returned. */ - 'version-number': number; + versionNumber: number; } diff --git a/src/version2/parameters/getSpaceProperties.ts b/src/version2/parameters/getSpaceProperties.ts index dd7ef3ef..39331c77 100644 --- a/src/version2/parameters/getSpaceProperties.ts +++ b/src/version2/parameters/getSpaceProperties.ts @@ -1,6 +1,6 @@ export interface GetSpaceProperties { /** The ID of the space for which space properties should be returned. */ - 'space-id': number; + id: number; /** * The key of the space property to retrieve. This should be used when a user knows the key of their property, but * needs to retrieve the id for use in other methods. diff --git a/src/version2/parameters/getSpacePropertyById.ts b/src/version2/parameters/getSpacePropertyById.ts index 90870ec9..d0029d49 100644 --- a/src/version2/parameters/getSpacePropertyById.ts +++ b/src/version2/parameters/getSpacePropertyById.ts @@ -1,6 +1,6 @@ export interface GetSpacePropertyById { /** The ID of the space the property belongs to. */ - 'space-id': number; + id: number; /** The ID of the property to be retrieved. */ - 'property-id': number; + propertyId: number; } diff --git a/src/version2/parameters/updateFooterComment.ts b/src/version2/parameters/updateFooterComment.ts index 2e6b52db..b1bc0a9b 100644 --- a/src/version2/parameters/updateFooterComment.ts +++ b/src/version2/parameters/updateFooterComment.ts @@ -2,5 +2,5 @@ import { UpdateFooterCommentModel } from '../models'; export interface UpdateFooterComment extends UpdateFooterCommentModel { /** The ID of the comment to be retrieved. */ - 'comment-id': number; + id: number; } diff --git a/src/version2/parameters/updateInlineComment.ts b/src/version2/parameters/updateInlineComment.ts index 1fa6c7ce..c5fa86d6 100644 --- a/src/version2/parameters/updateInlineComment.ts +++ b/src/version2/parameters/updateInlineComment.ts @@ -2,5 +2,5 @@ import { UpdateInlineCommentModel } from '../models'; export interface UpdateInlineComment extends UpdateInlineCommentModel { /** The ID of the comment to be retrieved. */ - 'comment-id': number; + id: number; } diff --git a/src/version2/parameters/updateSpacePropertyById.ts b/src/version2/parameters/updateSpacePropertyById.ts index 34683736..9212f250 100644 --- a/src/version2/parameters/updateSpacePropertyById.ts +++ b/src/version2/parameters/updateSpacePropertyById.ts @@ -2,7 +2,7 @@ import { SpacePropertyUpdateRequest } from '../models'; export interface UpdateSpacePropertyById extends SpacePropertyUpdateRequest { /** The ID of the space the property belongs to. */ - 'space-id': number; + id: number; /** The ID of the property to be updated. */ - 'property-id': number; + propertyId: number; } diff --git a/src/version2/spaceProperties.ts b/src/version2/spaceProperties.ts index 057f2ce6..e4a2cbdc 100644 --- a/src/version2/spaceProperties.ts +++ b/src/version2/spaceProperties.ts @@ -36,7 +36,7 @@ export class SpaceProperties { callback?: Callback, ): Promise { const config: RequestConfig = { - url: `/spaces/${parameters.space - id}/properties`, + url: `/spaces/${parameters.id}/properties`, method: 'GET', params: { key: parameters.key, @@ -73,7 +73,7 @@ export class SpaceProperties { callback?: Callback, ): Promise { const config: RequestConfig = { - url: `/spaces/${parameters.space - id}/properties`, + url: `/spaces/${parameters.id}/properties`, method: 'POST', data: { key: parameters.key, @@ -109,7 +109,7 @@ export class SpaceProperties { callback?: Callback, ): Promise { const config: RequestConfig = { - url: `/spaces/${parameters.space - id}/properties/${parameters.property - id}`, + url: `/spaces/${parameters.id}/properties/${parameters.propertyId}`, method: 'GET', }; @@ -141,7 +141,7 @@ export class SpaceProperties { callback?: Callback, ): Promise { const config: RequestConfig = { - url: `/spaces/${parameters.space - id}/properties/${parameters.property - id}`, + url: `/spaces/${parameters.id}/properties/${parameters.propertyId}`, method: 'PUT', data: { key: parameters.key, @@ -175,7 +175,7 @@ export class SpaceProperties { callback?: Callback, ): Promise { const config: RequestConfig = { - url: `/spaces/${parameters.space - id}/properties/${parameters.property - id}`, + url: `/spaces/${parameters.id}/properties/${parameters.propertyId}`, method: 'DELETE', }; diff --git a/src/version2/version.ts b/src/version2/version.ts index ca95754f..1db61b1d 100644 --- a/src/version2/version.ts +++ b/src/version2/version.ts @@ -67,7 +67,7 @@ export class Version { callback?: Callback, ): Promise { const config: RequestConfig = { - url: `/attachments/${parameters.attachment - id}/versions/${parameters.version - number}`, + url: `/attachments/${parameters.id}/versions/${parameters.versionNumber}`, method: 'GET', }; @@ -134,7 +134,7 @@ export class Version { callback?: Callback, ): Promise { const config: RequestConfig = { - url: `/blogposts/${parameters.blogpost - id}/versions/${parameters.version - number}`, + url: `/blogposts/${parameters.id}/versions/${parameters.versionNumber}`, method: 'GET', }; @@ -201,7 +201,7 @@ export class Version { callback?: Callback, ): Promise { const config: RequestConfig = { - url: `/pages/${parameters.page - id}/versions/${parameters.version - number}`, + url: `/pages/${parameters.id}/versions/${parameters.versionNumber}`, method: 'GET', }; @@ -233,7 +233,7 @@ export class Version { callback?: Callback, ): Promise { const config: RequestConfig = { - url: `/custom-content/${parameters.custom - content - id}/versions`, + url: `/custom-content/${parameters.id}/versions`, method: 'GET', params: { cursor: parameters.cursor, @@ -268,7 +268,7 @@ export class Version { callback?: Callback, ): Promise { const config: RequestConfig = { - url: `/custom-content/${parameters.custom - content - id}/versions/${parameters.version - number}`, + url: `/custom-content/${parameters.id}/versions/${parameters.versionNumber}`, method: 'GET', }; @@ -300,7 +300,7 @@ export class Version { callback?: Callback, ): Promise { const config: RequestConfig = { - url: `/footer-comments/${parameters.id}/versions/${parameters.version - number}`, + url: `/footer-comments/${parameters.id}/versions/${parameters.versionNumber}`, method: 'GET', }; From ffc1685e605fdf863f5ea45d986d82c9440cb208 Mon Sep 17 00:00:00 2001 From: Vladislav Tupikin Date: Sat, 20 May 2023 22:34:54 +0400 Subject: [PATCH 03/44] Version2 API updated --- package-lock.json | 1173 +++++++++++++++++-------- package.json | 26 +- src/version2/page.ts | 12 +- src/version2/parameters/createPage.ts | 19 + tests/e2e/version2Client.test.ts | 184 ++++ 5 files changed, 1012 insertions(+), 402 deletions(-) create mode 100644 src/version2/parameters/createPage.ts create mode 100644 tests/e2e/version2Client.test.ts diff --git a/package-lock.json b/package-lock.json index 7beea599..ce4410f0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,37 +10,37 @@ "license": "MIT", "dependencies": { "atlassian-jwt": "^2.0.2", - "axios": "^0.27.2", + "axios": "^1.4.0", "form-data": "^4.0.0", "oauth": "^0.10.0", - "tslib": "^2.5.0" + "tslib": "^2.5.2" }, "devDependencies": { - "@swc-node/register": "1.5.4", + "@swc-node/register": "1.6.5", "@types/express": "^4.17.17", "@types/oauth": "^0.9.1", - "@types/sinon": "^10.0.13", - "@typescript-eslint/eslint-plugin": "^5.54.1", - "@typescript-eslint/parser": "^5.54.1", + "@types/sinon": "^10.0.15", + "@typescript-eslint/eslint-plugin": "^5.59.6", + "@typescript-eslint/parser": "^5.59.6", "ava": "^5.2.0", "dotenv": "^16.0.3", - "eslint": "^8.35.0", + "eslint": "^8.41.0", "eslint-config-airbnb": "^19.0.4", "eslint-config-airbnb-typescript": "^17.0.0", - "eslint-import-resolver-typescript": "^3.5.3", + "eslint-import-resolver-typescript": "^3.5.5", "eslint-plugin-import": "^2.27.5", - "prettier": "^2.8.4", + "prettier": "^2.8.8", "prettier-plugin-jsdoc": "^0.4.2", - "sinon": "^15.0.1", - "typedoc": "^0.23.26", - "typedoc-plugin-extras": "^2.3.2", - "typescript": "^4.9.5" + "sinon": "^15.1.0", + "typedoc": "^0.24.7", + "typedoc-plugin-extras": "^2.3.3", + "typescript": "^5.0.4" } }, "node_modules/@babel/runtime": { - "version": "7.21.0", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.21.0.tgz", - "integrity": "sha512-xwII0//EObnq89Ji5AKYQaRYiW/nZ3llSv29d49IuxPhKbtJoLP+9QUUZ4nVragQVtaVGeZrpB+ZtG/Pdy/POw==", + "version": "7.21.5", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.21.5.tgz", + "integrity": "sha512-8jI69toZqqcsnqGGqwGS4Qb1VwLOEp4hz+CXPywcvjs60u3B4Pom/U/7rm4W8tMOYEB+E9wgD0mW1l3r8qlI9Q==", "dev": true, "peer": true, "dependencies": { @@ -50,15 +50,39 @@ "node": ">=6.9.0" } }, + "node_modules/@eslint-community/eslint-utils": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", + "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==", + "dev": true, + "dependencies": { + "eslint-visitor-keys": "^3.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" + } + }, + "node_modules/@eslint-community/regexpp": { + "version": "4.5.1", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.5.1.tgz", + "integrity": "sha512-Z5ba73P98O1KUYCCJTUeVpja9RcGoMdncZ6T49FCUl2lN38JtCJ+3WgIDBv0AuY4WChU5PmtJmOCTlN6FZTFKQ==", + "dev": true, + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + } + }, "node_modules/@eslint/eslintrc": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.0.0.tgz", - "integrity": "sha512-fluIaaV+GyV24CCu/ggiHdV+j4RNh85yQnAYS/G2mZODZgGmmlrgCydjUcV3YvxCm9x8nMAfThsqTni4KiXT4A==", + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.0.3.tgz", + "integrity": "sha512-+5gy6OQfk+xx3q0d6jGZZC3f3KzAkXc/IanVxd1is/VIIziRqqt3ongQz0FiTUXqTk0c7aDB3OaFuKnuSoJicQ==", "dev": true, "dependencies": { "ajv": "^6.12.4", "debug": "^4.3.2", - "espree": "^9.4.0", + "espree": "^9.5.2", "globals": "^13.19.0", "ignore": "^5.2.0", "import-fresh": "^3.2.1", @@ -74,9 +98,9 @@ } }, "node_modules/@eslint/js": { - "version": "8.35.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.35.0.tgz", - "integrity": "sha512-JXdzbRiWclLVoD8sNUjR443VVlYqiYmDVT6rGUEIEHU5YJW0gaVZwV2xgM7D4arkvASqD0IlLUVjHiFuxaftRw==", + "version": "8.41.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.41.0.tgz", + "integrity": "sha512-LxcyMGxwmTh2lY9FwHPGWOHmYFCZvbrFCBZL4FzSSsxsRPuhrYUg/49/0KDfW8tnIEaEHtfmn6+NPN+1DqaNmA==", "dev": true, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" @@ -151,17 +175,17 @@ } }, "node_modules/@pkgr/utils": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/@pkgr/utils/-/utils-2.3.1.tgz", - "integrity": "sha512-wfzX8kc1PMyUILA+1Z/EqoE4UCXGy0iRGMhPwdfae1+f0OXlLqCk+By+aMzgJBzR9AzS4CDizioG6Ss1gvAFJw==", + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/@pkgr/utils/-/utils-2.4.0.tgz", + "integrity": "sha512-2OCURAmRtdlL8iUDTypMrrxfwe8frXTeXaxGsVOaYtc/wrUyk8Z/0OBetM7cdlsy7ZFWlMX72VogKeh+A4Xcjw==", "dev": true, "dependencies": { "cross-spawn": "^7.0.3", + "fast-glob": "^3.2.12", "is-glob": "^4.0.3", - "open": "^8.4.0", + "open": "^9.1.0", "picocolors": "^1.0.0", - "tiny-glob": "^0.2.9", - "tslib": "^2.4.0" + "tslib": "^2.5.0" }, "engines": { "node": "^12.20.0 || ^14.18.0 || >=16.0.0" @@ -171,27 +195,27 @@ } }, "node_modules/@sinonjs/commons": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-2.0.0.tgz", - "integrity": "sha512-uLa0j859mMrg2slwQYdO/AkrOfmH+X6LTVmNTS9CqexuE2IvVORIkSpJLqePAbEnKJ77aMmCwr1NUZ57120Xcg==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-3.0.0.tgz", + "integrity": "sha512-jXBtWAF4vmdNmZgD5FoKsVLv3rPgDnLgPbU84LIJ3otV44vJlDRokVng5v8NFJdCf/da9legHcKaRuZs4L7faA==", "dev": true, "dependencies": { "type-detect": "4.0.8" } }, "node_modules/@sinonjs/fake-timers": { - "version": "10.0.2", - "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-10.0.2.tgz", - "integrity": "sha512-SwUDyjWnah1AaNl7kxsa7cfLhlTYoiyhDAIgyh+El30YvXs/o7OLXpYH88Zdhyx9JExKrmHDJ+10bwIcY80Jmw==", + "version": "10.2.0", + "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-10.2.0.tgz", + "integrity": "sha512-OPwQlEdg40HAj5KNF8WW6q2KG4Z+cBCZb3m4ninfTZKaBmbIJodviQsDBoYMPHkOyJJMHnOJo5j2+LKDOhOACg==", "dev": true, "dependencies": { - "@sinonjs/commons": "^2.0.0" + "@sinonjs/commons": "^3.0.0" } }, "node_modules/@sinonjs/samsam": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/@sinonjs/samsam/-/samsam-7.0.1.tgz", - "integrity": "sha512-zsAk2Jkiq89mhZovB2LLOdTCxJF4hqqTToGP0ASWlhp4I1hqOjcfmZGafXntCN7MDC6yySH0mFHrYtHceOeLmw==", + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/@sinonjs/samsam/-/samsam-8.0.0.tgz", + "integrity": "sha512-Bp8KUVlLp8ibJZrnvq2foVhP0IVX2CIprMJPK0vqGqgrDa0OHVKeZyBykqskkrdxV6yKBPmGasO8LVjAKR3Gew==", "dev": true, "dependencies": { "@sinonjs/commons": "^2.0.0", @@ -199,6 +223,15 @@ "type-detect": "^4.0.8" } }, + "node_modules/@sinonjs/samsam/node_modules/@sinonjs/commons": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-2.0.0.tgz", + "integrity": "sha512-uLa0j859mMrg2slwQYdO/AkrOfmH+X6LTVmNTS9CqexuE2IvVORIkSpJLqePAbEnKJ77aMmCwr1NUZ57120Xcg==", + "dev": true, + "dependencies": { + "type-detect": "4.0.8" + } + }, "node_modules/@sinonjs/text-encoding": { "version": "0.7.2", "resolved": "https://registry.npmjs.org/@sinonjs/text-encoding/-/text-encoding-0.7.2.tgz", @@ -206,9 +239,9 @@ "dev": true }, "node_modules/@swc-node/core": { - "version": "1.10.1", - "resolved": "https://registry.npmjs.org/@swc-node/core/-/core-1.10.1.tgz", - "integrity": "sha512-4aiqLb5Uz+zDt7oIMAtH69+l1BvKV3k7fMYNNLjgdSM7qmFwrpHwu+Ss9nOYPTCFlbKCUMP/70aD5Gt2skmJaw==", + "version": "1.10.3", + "resolved": "https://registry.npmjs.org/@swc-node/core/-/core-1.10.3.tgz", + "integrity": "sha512-8rpv1DXzsQjN/C8ZXuaTSmJ4M/lRr6geUlbOQ861DLC+sKWcEEvxRjK9cXQ28GserHuEcFDA3wlF9rD1YD0x+Q==", "dev": true, "engines": { "node": ">= 10" @@ -222,17 +255,17 @@ } }, "node_modules/@swc-node/register": { - "version": "1.5.4", - "resolved": "https://registry.npmjs.org/@swc-node/register/-/register-1.5.4.tgz", - "integrity": "sha512-cM5/A63bO6qLUFC4gcBnOlQO5yd8ObSdFUIp7sXf11Oq5mPVAnJy2DqjbWMUsqUaHuNk+lOIt76ie4DEseUIyA==", + "version": "1.6.5", + "resolved": "https://registry.npmjs.org/@swc-node/register/-/register-1.6.5.tgz", + "integrity": "sha512-yMxXlzthI0aMadYYKDhx7xvtjljB1qoD8Tv0djqSJ1ttTkoDxg6MhG5A5pIahiUT2neVrkWb9lCavoUwXAe/zQ==", "dev": true, "dependencies": { - "@swc-node/core": "^1.9.1", - "@swc-node/sourcemap-support": "^0.2.2", + "@swc-node/core": "^1.10.3", + "@swc-node/sourcemap-support": "^0.3.0", "colorette": "^2.0.19", "debug": "^4.3.4", "pirates": "^4.0.5", - "tslib": "^2.4.0" + "tslib": "^2.5.0" }, "funding": { "type": "github", @@ -244,9 +277,9 @@ } }, "node_modules/@swc-node/sourcemap-support": { - "version": "0.2.4", - "resolved": "https://registry.npmjs.org/@swc-node/sourcemap-support/-/sourcemap-support-0.2.4.tgz", - "integrity": "sha512-lAi8xXFpUPMaABCI0sFdKQL4owsjw6BPGjtrVJ90sRCUS4yNPMT0KbTeTWCxB8oQwYbbaQGOusd/+kavNMqJcg==", + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/@swc-node/sourcemap-support/-/sourcemap-support-0.3.0.tgz", + "integrity": "sha512-gqBJSmJMWomZFxlppaKea7NeAqFrDrrS0RMt24No92M3nJWcyI9YKGEQKl+EyJqZ5gh6w1s0cTklMHMzRwA1NA==", "dev": true, "dependencies": { "source-map-support": "^0.5.21", @@ -254,9 +287,9 @@ } }, "node_modules/@swc/core": { - "version": "1.3.38", - "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.3.38.tgz", - "integrity": "sha512-AiEVehRFws//AiiLx9DPDp1WDXt+yAoGD1kMYewhoF6QLdTz8AtYu6i8j/yAxk26L8xnegy0CDwcNnub9qenyQ==", + "version": "1.3.59", + "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.3.59.tgz", + "integrity": "sha512-ZBw31zd2E5SXiodwGvjQdx5ZC90b2uyX/i2LeMMs8LKfXD86pfOfQac+JVrnyEKDhASXj9icgsF9NXBhaMr3Kw==", "dev": true, "hasInstallScript": true, "peer": true, @@ -268,22 +301,30 @@ "url": "https://opencollective.com/swc" }, "optionalDependencies": { - "@swc/core-darwin-arm64": "1.3.38", - "@swc/core-darwin-x64": "1.3.38", - "@swc/core-linux-arm-gnueabihf": "1.3.38", - "@swc/core-linux-arm64-gnu": "1.3.38", - "@swc/core-linux-arm64-musl": "1.3.38", - "@swc/core-linux-x64-gnu": "1.3.38", - "@swc/core-linux-x64-musl": "1.3.38", - "@swc/core-win32-arm64-msvc": "1.3.38", - "@swc/core-win32-ia32-msvc": "1.3.38", - "@swc/core-win32-x64-msvc": "1.3.38" + "@swc/core-darwin-arm64": "1.3.59", + "@swc/core-darwin-x64": "1.3.59", + "@swc/core-linux-arm-gnueabihf": "1.3.59", + "@swc/core-linux-arm64-gnu": "1.3.59", + "@swc/core-linux-arm64-musl": "1.3.59", + "@swc/core-linux-x64-gnu": "1.3.59", + "@swc/core-linux-x64-musl": "1.3.59", + "@swc/core-win32-arm64-msvc": "1.3.59", + "@swc/core-win32-ia32-msvc": "1.3.59", + "@swc/core-win32-x64-msvc": "1.3.59" + }, + "peerDependencies": { + "@swc/helpers": "^0.5.0" + }, + "peerDependenciesMeta": { + "@swc/helpers": { + "optional": true + } } }, "node_modules/@swc/core-darwin-arm64": { - "version": "1.3.38", - "resolved": "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.3.38.tgz", - "integrity": "sha512-4ZTJJ/cR0EsXW5UxFCifZoGfzQ07a8s4ayt1nLvLQ5QoB1GTAf9zsACpvWG8e7cmCR0L76R5xt8uJuyr+noIXA==", + "version": "1.3.59", + "resolved": "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.3.59.tgz", + "integrity": "sha512-AnqWFBgEKHP0jb4iZqx7eVQT9/rX45+DE4Ox7GpwCahUKxxrsDLyXzKhwLwQuAjUvtu5JcSB77szKpPGDM49fQ==", "cpu": [ "arm64" ], @@ -298,9 +339,9 @@ } }, "node_modules/@swc/core-darwin-x64": { - "version": "1.3.38", - "resolved": "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.3.38.tgz", - "integrity": "sha512-Kim727rNo4Dl8kk0CR8aJQe4zFFtsT1TZGlNrNMUgN1WC3CRX7dLZ6ZJi/VVcTG1cbHp5Fp3mUzwHsMxEh87Mg==", + "version": "1.3.59", + "resolved": "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.3.59.tgz", + "integrity": "sha512-iqDs+yii9mOsmpJez82SEi4d4prWDRlapHxKnDVJ0x1AqRo41vIq8t3fujrvCHYU5VQgOYGh4ooXQpaP2H3B2A==", "cpu": [ "x64" ], @@ -315,9 +356,9 @@ } }, "node_modules/@swc/core-linux-arm-gnueabihf": { - "version": "1.3.38", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.3.38.tgz", - "integrity": "sha512-yaRdnPNU2enlJDRcIMvYVSyodY+Amhf5QuXdUbAj6rkDD6wUs/s9C6yPYrFDmoTltrG+nBv72mUZj+R46wVfSw==", + "version": "1.3.59", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.3.59.tgz", + "integrity": "sha512-PB0PP+SgkCSd/kYmltnPiGv42cOSaih1OjXCEjxvNwUFEmWqluW6uGdWaNiR1LoYMxhcHZTc336jL2+O3l6p0Q==", "cpu": [ "arm" ], @@ -332,9 +373,9 @@ } }, "node_modules/@swc/core-linux-arm64-gnu": { - "version": "1.3.38", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.3.38.tgz", - "integrity": "sha512-iNY1HqKo/wBSu3QOGBUlZaLdBP/EHcwNjBAqIzpb8J64q2jEN02RizqVW0mDxyXktJ3lxr3g7VW9uqklMeXbjQ==", + "version": "1.3.59", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.3.59.tgz", + "integrity": "sha512-Ol/JPszWZ+OZ44FOdJe35TfJ1ckG4pYaisZJ4E7PzfwfVe2ygX85C5WWR4e5L0Y1zFvzpcI7gdyC2wzcXk4Cig==", "cpu": [ "arm64" ], @@ -349,9 +390,9 @@ } }, "node_modules/@swc/core-linux-arm64-musl": { - "version": "1.3.38", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.3.38.tgz", - "integrity": "sha512-LJCFgLZoPRkPCPmux+Q5ctgXRp6AsWhvWuY61bh5bIPBDlaG9pZk94DeHyvtiwT0syhTtXb2LieBOx6NqN3zeA==", + "version": "1.3.59", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.3.59.tgz", + "integrity": "sha512-PtTTtGbj9GiY5gJdoSFL2A0vL6BRaS1haAhp6g3hZvLDkTTg+rJURmzwBMMjaQlnGC62x/lLf6MoszHG/05//Q==", "cpu": [ "arm64" ], @@ -366,9 +407,9 @@ } }, "node_modules/@swc/core-linux-x64-gnu": { - "version": "1.3.38", - "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.3.38.tgz", - "integrity": "sha512-hRQGRIWHmv2PvKQM/mMV45mVXckM2+xLB8TYLLgUG66mmtyGTUJPyxjnJkbI86WNGqo18k+lAuMG2mn6QmzYwQ==", + "version": "1.3.59", + "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.3.59.tgz", + "integrity": "sha512-XBW9AGi0YsIN76IfesnDSBn/5sjR69J75KUNte8sH6seYlHJ0/kblqUMbUcfr0CiGoJadbzAZeKZZmfN7EsHpg==", "cpu": [ "x64" ], @@ -383,9 +424,9 @@ } }, "node_modules/@swc/core-linux-x64-musl": { - "version": "1.3.38", - "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.3.38.tgz", - "integrity": "sha512-PTYSqtsIfPHLKDDNbueI5e0sc130vyHRiFOeeC6qqzA2FAiVvIxuvXHLr0soPvKAR1WyhtYmFB9QarcctemL2w==", + "version": "1.3.59", + "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.3.59.tgz", + "integrity": "sha512-Cy5E939SdWPQ34cg6UABNO0RyEe0FuWqzZ/GLKtK11Ir4fjttVlucZiY59uQNyUVUc8T2qE0VBFCyD/zYGuHtg==", "cpu": [ "x64" ], @@ -400,9 +441,9 @@ } }, "node_modules/@swc/core-win32-arm64-msvc": { - "version": "1.3.38", - "resolved": "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.3.38.tgz", - "integrity": "sha512-9lHfs5TPNs+QdkyZFhZledSmzBEbqml/J1rqPSb9Fy8zB6QlspixE6OLZ3nTlUOdoGWkcTTdrOn77Sd7YGf1AA==", + "version": "1.3.59", + "resolved": "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.3.59.tgz", + "integrity": "sha512-z5ZJxizRvRoSAaevRIi3YjQh74OFWEIhonSDWNdqDL7RbjEivcatYcG7OikH6s+rtPhOcwNm3PbGV2Prcgh/gg==", "cpu": [ "arm64" ], @@ -417,9 +458,9 @@ } }, "node_modules/@swc/core-win32-ia32-msvc": { - "version": "1.3.38", - "resolved": "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.3.38.tgz", - "integrity": "sha512-SbL6pfA2lqvDKnwTHwOfKWvfHAdcbAwJS4dBkFidr7BiPTgI5Uk8wAPcRb8mBECpmIa9yFo+N0cAFRvMnf+cNw==", + "version": "1.3.59", + "resolved": "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.3.59.tgz", + "integrity": "sha512-vxpsn+hrKAhi5YusQfB/JXUJJVX40rIRE/L49ilBEqdbH8Khkoego6AD+2vWqTdJcUHo1WiAIAEZ0rTsjyorLQ==", "cpu": [ "ia32" ], @@ -434,9 +475,9 @@ } }, "node_modules/@swc/core-win32-x64-msvc": { - "version": "1.3.38", - "resolved": "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.3.38.tgz", - "integrity": "sha512-UFveLrL6eGvViOD8OVqUQa6QoQwdqwRvLtL5elF304OT8eCPZa8BhuXnWk25X8UcOyns8gFcb8Fhp3oaLi/Rlw==", + "version": "1.3.59", + "resolved": "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.3.59.tgz", + "integrity": "sha512-Ris/cJbURylcLwqz4RZUUBCEGsuaIHOJsvf69W5pGKHKBryVoOTNhBKpo3Km2hoAi5qFQ/ou0trAT4hBsVPZvQ==", "cpu": [ "x64" ], @@ -491,14 +532,15 @@ } }, "node_modules/@types/express-serve-static-core": { - "version": "4.17.33", - "resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-4.17.33.tgz", - "integrity": "sha512-TPBqmR/HRYI3eC2E5hmiivIzv+bidAfXofM+sbonAGvyDhySGw9/PQZFt2BLOrjUUR++4eJVpx6KnLQK1Fk9tA==", + "version": "4.17.35", + "resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-4.17.35.tgz", + "integrity": "sha512-wALWQwrgiB2AWTT91CB62b6Yt0sNHpznUXeZEcnPU3DRdlDIz74x8Qg1UUYKSVFi+va5vKOLYRBI1bRKiLLKIg==", "dev": true, "dependencies": { "@types/node": "*", "@types/qs": "*", - "@types/range-parser": "*" + "@types/range-parser": "*", + "@types/send": "*" } }, "node_modules/@types/json-schema": { @@ -514,18 +556,18 @@ "dev": true }, "node_modules/@types/mdast": { - "version": "3.0.10", - "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.10.tgz", - "integrity": "sha512-W864tg/Osz1+9f4lrGTZpCSO5/z4608eUp19tbozkq2HJK6i3z1kT0H9tlADXuYIb1YYOBByU4Jsqkk75q48qA==", + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.11.tgz", + "integrity": "sha512-Y/uImid8aAwrEA24/1tcRZwpxX3pIFTSilcNDKSPn+Y2iDywSEachzRuvgAYYLR3wpGXAsMbv5lvKLDZLeYPAw==", "dev": true, "dependencies": { "@types/unist": "*" } }, "node_modules/@types/mime": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/mime/-/mime-3.0.1.tgz", - "integrity": "sha512-Y4XFY5VJAuw0FgAqPNd6NNoV44jbq9Bz2L7Rh/J6jLTiHBSBJa9fxqQIvkIld4GsoDOcCbvzOUAbLPsSKKg+uA==", + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/@types/mime/-/mime-1.3.2.tgz", + "integrity": "sha512-YATxVxgRqNH6nHEIsvg6k2Boc1JHI9ZbH5iWFFv/MTkchz3b1ieGDa5T0a9RznNdI0KhVbdbWSN+KWWrQZRxTw==", "dev": true }, "node_modules/@types/ms": { @@ -535,9 +577,9 @@ "dev": true }, "node_modules/@types/node": { - "version": "18.14.6", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.14.6.tgz", - "integrity": "sha512-93+VvleD3mXwlLI/xASjw0FzKcwzl3OdTCzm1LaRfqgS21gfFtK3zDXM5Op9TeeMsJVOaJ2VRDpT9q4Y3d0AvA==", + "version": "20.2.1", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.2.1.tgz", + "integrity": "sha512-DqJociPbZP1lbZ5SQPk4oag6W7AyaGMO6gSfRwq3PWl4PXTwJpRQJhDq4W0kzrg3w6tJ1SwlvGZ5uKFHY13LIg==", "dev": true }, "node_modules/@types/oauth": { @@ -562,11 +604,21 @@ "dev": true }, "node_modules/@types/semver": { - "version": "7.3.13", - "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.3.13.tgz", - "integrity": "sha512-21cFJr9z3g5dW8B0CVI9g2O9beqaThGQ6ZFBqHfwhzLDKUxaqTIy3vnfah/UPkfOiF2pLq+tGz+W8RyCskuslw==", + "version": "7.5.0", + "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.0.tgz", + "integrity": "sha512-G8hZ6XJiHnuhQKR7ZmysCeJWE08o8T0AXtk5darsCaTVsYZhhgUrq53jizaR2FvsoeCwJhlmwTjkXBY5Pn/ZHw==", "dev": true }, + "node_modules/@types/send": { + "version": "0.17.1", + "resolved": "https://registry.npmjs.org/@types/send/-/send-0.17.1.tgz", + "integrity": "sha512-Cwo8LE/0rnvX7kIIa3QHCkcuF21c05Ayb0ZfxPiv0W8VRiZiNW/WuRupHKpqqGVGf7SUA44QSOUKaEd9lIrd/Q==", + "dev": true, + "dependencies": { + "@types/mime": "^1", + "@types/node": "*" + } + }, "node_modules/@types/serve-static": { "version": "1.15.1", "resolved": "https://registry.npmjs.org/@types/serve-static/-/serve-static-1.15.1.tgz", @@ -578,9 +630,9 @@ } }, "node_modules/@types/sinon": { - "version": "10.0.13", - "resolved": "https://registry.npmjs.org/@types/sinon/-/sinon-10.0.13.tgz", - "integrity": "sha512-UVjDqJblVNQYvVNUsj0PuYYw0ELRmgt1Nt5Vk0pT5f16ROGfcKJY8o1HVuMOJOpD727RrGB9EGvoaTQE5tgxZQ==", + "version": "10.0.15", + "resolved": "https://registry.npmjs.org/@types/sinon/-/sinon-10.0.15.tgz", + "integrity": "sha512-3lrFNQG0Kr2LDzvjyjB6AMJk4ge+8iYhQfdnSwIwlG88FUOV43kPcQqDZkDa/h3WSZy6i8Fr0BSjfQtB1B3xuQ==", "dev": true, "dependencies": { "@types/sinonjs__fake-timers": "*" @@ -599,19 +651,19 @@ "dev": true }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "5.54.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.54.1.tgz", - "integrity": "sha512-a2RQAkosH3d3ZIV08s3DcL/mcGc2M/UC528VkPULFxR9VnVPT8pBu0IyBAJJmVsCmhVfwQX1v6q+QGnmSe1bew==", + "version": "5.59.6", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.59.6.tgz", + "integrity": "sha512-sXtOgJNEuRU5RLwPUb1jxtToZbgvq3M6FPpY4QENxoOggK+UpTxUBpj6tD8+Qh2g46Pi9We87E+eHnUw8YcGsw==", "dev": true, "dependencies": { - "@typescript-eslint/scope-manager": "5.54.1", - "@typescript-eslint/type-utils": "5.54.1", - "@typescript-eslint/utils": "5.54.1", + "@eslint-community/regexpp": "^4.4.0", + "@typescript-eslint/scope-manager": "5.59.6", + "@typescript-eslint/type-utils": "5.59.6", + "@typescript-eslint/utils": "5.59.6", "debug": "^4.3.4", "grapheme-splitter": "^1.0.4", "ignore": "^5.2.0", "natural-compare-lite": "^1.4.0", - "regexpp": "^3.2.0", "semver": "^7.3.7", "tsutils": "^3.21.0" }, @@ -633,14 +685,14 @@ } }, "node_modules/@typescript-eslint/parser": { - "version": "5.54.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.54.1.tgz", - "integrity": "sha512-8zaIXJp/nG9Ff9vQNh7TI+C3nA6q6iIsGJ4B4L6MhZ7mHnTMR4YP5vp2xydmFXIy8rpyIVbNAG44871LMt6ujg==", + "version": "5.59.6", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.59.6.tgz", + "integrity": "sha512-7pCa6al03Pv1yf/dUg/s1pXz/yGMUBAw5EeWqNTFiSueKvRNonze3hma3lhdsOrQcaOXhbk5gKu2Fludiho9VA==", "dev": true, "dependencies": { - "@typescript-eslint/scope-manager": "5.54.1", - "@typescript-eslint/types": "5.54.1", - "@typescript-eslint/typescript-estree": "5.54.1", + "@typescript-eslint/scope-manager": "5.59.6", + "@typescript-eslint/types": "5.59.6", + "@typescript-eslint/typescript-estree": "5.59.6", "debug": "^4.3.4" }, "engines": { @@ -660,13 +712,13 @@ } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "5.54.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.54.1.tgz", - "integrity": "sha512-zWKuGliXxvuxyM71UA/EcPxaviw39dB2504LqAmFDjmkpO8qNLHcmzlh6pbHs1h/7YQ9bnsO8CCcYCSA8sykUg==", + "version": "5.59.6", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.59.6.tgz", + "integrity": "sha512-gLbY3Le9Dxcb8KdpF0+SJr6EQ+hFGYFl6tVY8VxLPFDfUZC7BHFw+Vq7bM5lE9DwWPfx4vMWWTLGXgpc0mAYyQ==", "dev": true, "dependencies": { - "@typescript-eslint/types": "5.54.1", - "@typescript-eslint/visitor-keys": "5.54.1" + "@typescript-eslint/types": "5.59.6", + "@typescript-eslint/visitor-keys": "5.59.6" }, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" @@ -677,13 +729,13 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "5.54.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.54.1.tgz", - "integrity": "sha512-WREHsTz0GqVYLIbzIZYbmUUr95DKEKIXZNH57W3s+4bVnuF1TKe2jH8ZNH8rO1CeMY3U4j4UQeqPNkHMiGem3g==", + "version": "5.59.6", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.59.6.tgz", + "integrity": "sha512-A4tms2Mp5yNvLDlySF+kAThV9VTBPCvGf0Rp8nl/eoDX9Okun8byTKoj3fJ52IJitjWOk0fKPNQhXEB++eNozQ==", "dev": true, "dependencies": { - "@typescript-eslint/typescript-estree": "5.54.1", - "@typescript-eslint/utils": "5.54.1", + "@typescript-eslint/typescript-estree": "5.59.6", + "@typescript-eslint/utils": "5.59.6", "debug": "^4.3.4", "tsutils": "^3.21.0" }, @@ -704,9 +756,9 @@ } }, "node_modules/@typescript-eslint/types": { - "version": "5.54.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.54.1.tgz", - "integrity": "sha512-G9+1vVazrfAfbtmCapJX8jRo2E4MDXxgm/IMOF4oGh3kq7XuK3JRkOg6y2Qu1VsTRmWETyTkWt1wxy7X7/yLkw==", + "version": "5.59.6", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.59.6.tgz", + "integrity": "sha512-tH5lBXZI7T2MOUgOWFdVNUILsI02shyQvfzG9EJkoONWugCG77NDDa1EeDGw7oJ5IvsTAAGVV8I3Tk2PNu9QfA==", "dev": true, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" @@ -717,13 +769,13 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "5.54.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.54.1.tgz", - "integrity": "sha512-bjK5t+S6ffHnVwA0qRPTZrxKSaFYocwFIkZx5k7pvWfsB1I57pO/0M0Skatzzw1sCkjJ83AfGTL0oFIFiDX3bg==", + "version": "5.59.6", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.59.6.tgz", + "integrity": "sha512-vW6JP3lMAs/Tq4KjdI/RiHaaJSO7IUsbkz17it/Rl9Q+WkQ77EOuOnlbaU8kKfVIOJxMhnRiBG+olE7f3M16DA==", "dev": true, "dependencies": { - "@typescript-eslint/types": "5.54.1", - "@typescript-eslint/visitor-keys": "5.54.1", + "@typescript-eslint/types": "5.59.6", + "@typescript-eslint/visitor-keys": "5.59.6", "debug": "^4.3.4", "globby": "^11.1.0", "is-glob": "^4.0.3", @@ -744,18 +796,18 @@ } }, "node_modules/@typescript-eslint/utils": { - "version": "5.54.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.54.1.tgz", - "integrity": "sha512-IY5dyQM8XD1zfDe5X8jegX6r2EVU5o/WJnLu/znLPWCBF7KNGC+adacXnt5jEYS9JixDcoccI6CvE4RCjHMzCQ==", + "version": "5.59.6", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.59.6.tgz", + "integrity": "sha512-vzaaD6EXbTS29cVH0JjXBdzMt6VBlv+hE31XktDRMX1j3462wZCJa7VzO2AxXEXcIl8GQqZPcOPuW/Z1tZVogg==", "dev": true, "dependencies": { + "@eslint-community/eslint-utils": "^4.2.0", "@types/json-schema": "^7.0.9", "@types/semver": "^7.3.12", - "@typescript-eslint/scope-manager": "5.54.1", - "@typescript-eslint/types": "5.54.1", - "@typescript-eslint/typescript-estree": "5.54.1", + "@typescript-eslint/scope-manager": "5.59.6", + "@typescript-eslint/types": "5.59.6", + "@typescript-eslint/typescript-estree": "5.59.6", "eslint-scope": "^5.1.1", - "eslint-utils": "^3.0.0", "semver": "^7.3.7" }, "engines": { @@ -770,12 +822,12 @@ } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "5.54.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.54.1.tgz", - "integrity": "sha512-q8iSoHTgwCfgcRJ2l2x+xCbu8nBlRAlsQ33k24Adj8eoVBE0f8dUeI+bAa8F84Mv05UGbAx57g2zrRsYIooqQg==", + "version": "5.59.6", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.59.6.tgz", + "integrity": "sha512-zEfbFLzB9ETcEJ4HZEEsCR9HHeNku5/Qw1jSS5McYJv5BR+ftYXwFFAH5Al+xkGaZEqowMwl7uoJjQb1YSPF8Q==", "dev": true, "dependencies": { - "@typescript-eslint/types": "5.54.1", + "@typescript-eslint/types": "5.59.6", "eslint-visitor-keys": "^3.3.0" }, "engines": { @@ -907,6 +959,19 @@ "deep-equal": "^2.0.5" } }, + "node_modules/array-buffer-byte-length": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.0.tgz", + "integrity": "sha512-LPuwb2P+NrQw3XhxGc36+XSvuBPopovXYTR9Ew++Du9Yb/bx5AzBfrIsBoj0EZUifjQU+sHL21sseZ3jerWO/A==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "is-array-buffer": "^3.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/array-find-index": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/array-find-index/-/array-find-index-1.0.2.tgz", @@ -1107,9 +1172,9 @@ } }, "node_modules/ava/node_modules/globby": { - "version": "13.1.3", - "resolved": "https://registry.npmjs.org/globby/-/globby-13.1.3.tgz", - "integrity": "sha512-8krCNHXvlCgHDpegPzleMq07yMYTO2sXKASmZmquEYWEmCx6J5UTRbp5RwMJkTJGtcQ44YpiUYUiN0b9mzy8Bw==", + "version": "13.1.4", + "resolved": "https://registry.npmjs.org/globby/-/globby-13.1.4.tgz", + "integrity": "sha512-iui/IiiW+QrJ1X1hKH5qwlMQyv34wJAYwH1vrf8b9kBA4sNiif3gKsMHa+BrdnOpEudWjpotfa7LrTzB1ERS/g==", "dev": true, "dependencies": { "dir-glob": "^3.0.1", @@ -1150,9 +1215,9 @@ } }, "node_modules/axe-core": { - "version": "4.6.3", - "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.6.3.tgz", - "integrity": "sha512-/BQzOX780JhsxDnPpH4ZiyrJAzcd8AfzFPkv+89veFSr1rcMjuq2JDCwypKaPeB6ljHp9KjXhPpjgCvQlWYuqg==", + "version": "4.7.1", + "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.7.1.tgz", + "integrity": "sha512-sCXXUhA+cljomZ3ZAwb8i1p3oOlkABzPy08ZDAoGcYuvtBPlQ1Ytde129ArXyHWDhfeewq7rlx9F+cUx2SSlkg==", "dev": true, "peer": true, "engines": { @@ -1160,12 +1225,13 @@ } }, "node_modules/axios": { - "version": "0.27.2", - "resolved": "https://registry.npmjs.org/axios/-/axios-0.27.2.tgz", - "integrity": "sha512-t+yRIyySRTp/wua5xEr+z1q60QmLq8ABsS5O9Me1AsE5dfKqgnCFzwiCZZ/cGNd1lq4/7akDWMxdhVlucjmnOQ==", + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.4.0.tgz", + "integrity": "sha512-S4XCWMEmzvo64T9GfvQDOXgYRDJ/wsSZc7Jvdgx5u1sd0JwsuPLqb3SYmusag+edF6ziyMensPVqLTSc1PiSEA==", "dependencies": { - "follow-redirects": "^1.14.9", - "form-data": "^4.0.0" + "follow-redirects": "^1.15.0", + "form-data": "^4.0.0", + "proxy-from-env": "^1.1.0" } }, "node_modules/axobject-query": { @@ -1184,6 +1250,15 @@ "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", "dev": true }, + "node_modules/big-integer": { + "version": "1.6.51", + "resolved": "https://registry.npmjs.org/big-integer/-/big-integer-1.6.51.tgz", + "integrity": "sha512-GPEid2Y9QU1Exl1rpO9B2IPJGHPSupF5GnVIP0blYvNOMer2bTvSWs1jGOUg04hTmu67nmLsQ9TBo1puaotBHg==", + "dev": true, + "engines": { + "node": ">=0.6" + } + }, "node_modules/binary-extensions": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", @@ -1205,6 +1280,18 @@ "integrity": "sha512-DRQrD6gJyy8FbiE4s+bDoXS9hiW3Vbx5uCdwvcCf3zLHL+Iv7LtGHLpr+GZV8rHG8tK766FGYBwRbu8pELTt+w==", "dev": true }, + "node_modules/bplist-parser": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/bplist-parser/-/bplist-parser-0.2.0.tgz", + "integrity": "sha512-z0M+byMThzQmD9NILRniCUXYsYpjwnlO8N5uCFaCqIOpqRsJCrQL9NK3JsD67CN5a08nF5oIL2bD6loTdHOuKw==", + "dev": true, + "dependencies": { + "big-integer": "^1.6.44" + }, + "engines": { + "node": ">= 5.10.0" + } + }, "node_modules/brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", @@ -1233,6 +1320,21 @@ "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", "dev": true }, + "node_modules/bundle-name": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/bundle-name/-/bundle-name-3.0.0.tgz", + "integrity": "sha512-PKA4BeSvBpQKQ8iPOGCSiell+N8P+Tf1DlwqmYhpe2gAhKPHn8EYOxVT+ShuGmhg8lN8XiSlS80yiExKXrURlw==", + "dev": true, + "dependencies": { + "run-applescript": "^5.0.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/call-bind": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", @@ -1493,9 +1595,9 @@ "dev": true }, "node_modules/colorette": { - "version": "2.0.19", - "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.19.tgz", - "integrity": "sha512-3tlv/dIP7FWvj3BsbHrGLJ6l/oKh1O3TcgBqMn+yyCagOxc23fyzDS6HypQbgxWbkpDnf52p1LuR4eWDQ/K9WQ==", + "version": "2.0.20", + "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.20.tgz", + "integrity": "sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==", "dev": true }, "node_modules/combined-stream": { @@ -1646,17 +1748,18 @@ } }, "node_modules/deep-equal": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/deep-equal/-/deep-equal-2.2.0.tgz", - "integrity": "sha512-RdpzE0Hv4lhowpIUKKMJfeH6C1pXdtT1/it80ubgWqwI3qpuxUBpC1S4hnHg+zjnuOoDkzUtUCEEkG+XG5l3Mw==", + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/deep-equal/-/deep-equal-2.2.1.tgz", + "integrity": "sha512-lKdkdV6EOGoVn65XaOsPdH4rMxTZOnmFyuIkMjM1i5HHCbfjC97dawgTAy0deYNfuqUqW+Q5VrVaQYtUpSd6yQ==", "dev": true, "peer": true, "dependencies": { + "array-buffer-byte-length": "^1.0.0", "call-bind": "^1.0.2", - "es-get-iterator": "^1.1.2", - "get-intrinsic": "^1.1.3", + "es-get-iterator": "^1.1.3", + "get-intrinsic": "^1.2.0", "is-arguments": "^1.1.1", - "is-array-buffer": "^3.0.1", + "is-array-buffer": "^3.0.2", "is-date-object": "^1.0.5", "is-regex": "^1.1.4", "is-shared-array-buffer": "^1.0.2", @@ -1664,7 +1767,7 @@ "object-is": "^1.1.5", "object-keys": "^1.1.1", "object.assign": "^4.1.4", - "regexp.prototype.flags": "^1.4.3", + "regexp.prototype.flags": "^1.5.0", "side-channel": "^1.0.4", "which-boxed-primitive": "^1.0.2", "which-collection": "^1.0.1", @@ -1680,13 +1783,50 @@ "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", "dev": true }, + "node_modules/default-browser": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/default-browser/-/default-browser-4.0.0.tgz", + "integrity": "sha512-wX5pXO1+BrhMkSbROFsyxUm0i/cJEScyNhA4PPxc41ICuv05ZZB/MX28s8aZx6xjmatvebIapF6hLEKEcpneUA==", + "dev": true, + "dependencies": { + "bundle-name": "^3.0.0", + "default-browser-id": "^3.0.0", + "execa": "^7.1.1", + "titleize": "^3.0.0" + }, + "engines": { + "node": ">=14.16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/default-browser-id": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/default-browser-id/-/default-browser-id-3.0.0.tgz", + "integrity": "sha512-OZ1y3y0SqSICtE8DE4S8YOE9UZOJ8wO16fKWVP5J1Qz42kV9jcnMVFrEE/noXb/ss3Q4pZIH79kxofzyNNtUNA==", + "dev": true, + "dependencies": { + "bplist-parser": "^0.2.0", + "untildify": "^4.0.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/define-lazy-prop": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz", - "integrity": "sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-3.0.0.tgz", + "integrity": "sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg==", "dev": true, "engines": { - "node": ">=8" + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/define-properties": { @@ -1728,9 +1868,9 @@ } }, "node_modules/del/node_modules/globby": { - "version": "13.1.3", - "resolved": "https://registry.npmjs.org/globby/-/globby-13.1.3.tgz", - "integrity": "sha512-8krCNHXvlCgHDpegPzleMq07yMYTO2sXKASmZmquEYWEmCx6J5UTRbp5RwMJkTJGtcQ44YpiUYUiN0b9mzy8Bw==", + "version": "13.1.4", + "resolved": "https://registry.npmjs.org/globby/-/globby-13.1.4.tgz", + "integrity": "sha512-iui/IiiW+QrJ1X1hKH5qwlMQyv34wJAYwH1vrf8b9kBA4sNiif3gKsMHa+BrdnOpEudWjpotfa7LrTzB1ERS/g==", "dev": true, "dependencies": { "dir-glob": "^3.0.1", @@ -1842,9 +1982,9 @@ "dev": true }, "node_modules/enhanced-resolve": { - "version": "5.12.0", - "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.12.0.tgz", - "integrity": "sha512-QHTXI/sZQmko1cbDoNAa3mJ5qhWUUNAq3vR0/YiD379fWQrcfuoX1+HW2S0MTt7XmoPLapdaDKUtelUSPic7hQ==", + "version": "5.14.0", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.14.0.tgz", + "integrity": "sha512-+DCows0XNwLDcUhbFJPdlQEVnT2zXlCv7hPxemTz86/O+B/hCQ+mb7ydkPKiflpVraqLPCAfu7lDy+hBXueojw==", "dev": true, "dependencies": { "graceful-fs": "^4.2.4", @@ -1855,18 +1995,18 @@ } }, "node_modules/es-abstract": { - "version": "1.21.1", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.21.1.tgz", - "integrity": "sha512-QudMsPOz86xYz/1dG1OuGBKOELjCh99IIWHLzy5znUB6j8xG2yMA7bfTV86VSqKF+Y/H08vQPR+9jyXpuC6hfg==", + "version": "1.21.2", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.21.2.tgz", + "integrity": "sha512-y/B5POM2iBnIxCiernH1G7rC9qQoM77lLIMQLuob0zhp8C56Po81+2Nj0WFKnd0pNReDTnkYryc+zhOzpEIROg==", "dev": true, "dependencies": { + "array-buffer-byte-length": "^1.0.0", "available-typed-arrays": "^1.0.5", "call-bind": "^1.0.2", "es-set-tostringtag": "^2.0.1", "es-to-primitive": "^1.2.1", - "function-bind": "^1.1.1", "function.prototype.name": "^1.1.5", - "get-intrinsic": "^1.1.3", + "get-intrinsic": "^1.2.0", "get-symbol-description": "^1.0.0", "globalthis": "^1.0.3", "gopd": "^1.0.1", @@ -1874,8 +2014,8 @@ "has-property-descriptors": "^1.0.0", "has-proto": "^1.0.1", "has-symbols": "^1.0.3", - "internal-slot": "^1.0.4", - "is-array-buffer": "^3.0.1", + "internal-slot": "^1.0.5", + "is-array-buffer": "^3.0.2", "is-callable": "^1.2.7", "is-negative-zero": "^2.0.2", "is-regex": "^1.1.4", @@ -1883,11 +2023,12 @@ "is-string": "^1.0.7", "is-typed-array": "^1.1.10", "is-weakref": "^1.0.2", - "object-inspect": "^1.12.2", + "object-inspect": "^1.12.3", "object-keys": "^1.1.1", "object.assign": "^4.1.4", "regexp.prototype.flags": "^1.4.3", "safe-regex-test": "^1.0.0", + "string.prototype.trim": "^1.2.7", "string.prototype.trimend": "^1.0.6", "string.prototype.trimstart": "^1.0.6", "typed-array-length": "^1.0.4", @@ -1984,13 +2125,15 @@ } }, "node_modules/eslint": { - "version": "8.35.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.35.0.tgz", - "integrity": "sha512-BxAf1fVL7w+JLRQhWl2pzGeSiGqbWumV4WNvc9Rhp6tiCtm4oHnyPBSEtMGZwrQgudFQ+otqzWoPB7x+hxoWsw==", + "version": "8.41.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.41.0.tgz", + "integrity": "sha512-WQDQpzGBOP5IrXPo4Hc0814r4/v2rrIsB0rhT7jtunIalgg6gYXWhRMOejVO8yH21T/FGaxjmFjBMNqcIlmH1Q==", "dev": true, "dependencies": { - "@eslint/eslintrc": "^2.0.0", - "@eslint/js": "8.35.0", + "@eslint-community/eslint-utils": "^4.2.0", + "@eslint-community/regexpp": "^4.4.0", + "@eslint/eslintrc": "^2.0.3", + "@eslint/js": "8.41.0", "@humanwhocodes/config-array": "^0.11.8", "@humanwhocodes/module-importer": "^1.0.1", "@nodelib/fs.walk": "^1.2.8", @@ -2000,10 +2143,9 @@ "debug": "^4.3.2", "doctrine": "^3.0.0", "escape-string-regexp": "^4.0.0", - "eslint-scope": "^7.1.1", - "eslint-utils": "^3.0.0", - "eslint-visitor-keys": "^3.3.0", - "espree": "^9.4.0", + "eslint-scope": "^7.2.0", + "eslint-visitor-keys": "^3.4.1", + "espree": "^9.5.2", "esquery": "^1.4.2", "esutils": "^2.0.2", "fast-deep-equal": "^3.1.3", @@ -2011,13 +2153,12 @@ "find-up": "^5.0.0", "glob-parent": "^6.0.2", "globals": "^13.19.0", - "grapheme-splitter": "^1.0.4", + "graphemer": "^1.4.0", "ignore": "^5.2.0", "import-fresh": "^3.0.0", "imurmurhash": "^0.1.4", "is-glob": "^4.0.0", "is-path-inside": "^3.0.3", - "js-sdsl": "^4.1.4", "js-yaml": "^4.1.0", "json-stable-stringify-without-jsonify": "^1.0.1", "levn": "^0.4.1", @@ -2025,7 +2166,6 @@ "minimatch": "^3.1.2", "natural-compare": "^1.4.0", "optionator": "^0.9.1", - "regexpp": "^3.2.0", "strip-ansi": "^6.0.1", "strip-json-comments": "^3.1.0", "text-table": "^0.2.0" @@ -2125,18 +2265,19 @@ } }, "node_modules/eslint-import-resolver-typescript": { - "version": "3.5.3", - "resolved": "https://registry.npmjs.org/eslint-import-resolver-typescript/-/eslint-import-resolver-typescript-3.5.3.tgz", - "integrity": "sha512-njRcKYBc3isE42LaTcJNVANR3R99H9bAxBDMNDr2W7yq5gYPxbU3MkdhsQukxZ/Xg9C2vcyLlDsbKfRDg0QvCQ==", + "version": "3.5.5", + "resolved": "https://registry.npmjs.org/eslint-import-resolver-typescript/-/eslint-import-resolver-typescript-3.5.5.tgz", + "integrity": "sha512-TdJqPHs2lW5J9Zpe17DZNQuDnox4xo2o+0tE7Pggain9Rbc19ik8kFtXdxZ250FVx2kF4vlt2RSf4qlUpG7bhw==", "dev": true, "dependencies": { "debug": "^4.3.4", - "enhanced-resolve": "^5.10.0", - "get-tsconfig": "^4.2.0", - "globby": "^13.1.2", - "is-core-module": "^2.10.0", + "enhanced-resolve": "^5.12.0", + "eslint-module-utils": "^2.7.4", + "get-tsconfig": "^4.5.0", + "globby": "^13.1.3", + "is-core-module": "^2.11.0", "is-glob": "^4.0.3", - "synckit": "^0.8.4" + "synckit": "^0.8.5" }, "engines": { "node": "^14.18.0 || >=16.0.0" @@ -2150,9 +2291,9 @@ } }, "node_modules/eslint-import-resolver-typescript/node_modules/globby": { - "version": "13.1.3", - "resolved": "https://registry.npmjs.org/globby/-/globby-13.1.3.tgz", - "integrity": "sha512-8krCNHXvlCgHDpegPzleMq07yMYTO2sXKASmZmquEYWEmCx6J5UTRbp5RwMJkTJGtcQ44YpiUYUiN0b9mzy8Bw==", + "version": "13.1.4", + "resolved": "https://registry.npmjs.org/globby/-/globby-13.1.4.tgz", + "integrity": "sha512-iui/IiiW+QrJ1X1hKH5qwlMQyv34wJAYwH1vrf8b9kBA4sNiif3gKsMHa+BrdnOpEudWjpotfa7LrTzB1ERS/g==", "dev": true, "dependencies": { "dir-glob": "^3.0.1", @@ -2181,9 +2322,9 @@ } }, "node_modules/eslint-module-utils": { - "version": "2.7.4", - "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.7.4.tgz", - "integrity": "sha512-j4GT+rqzCoRKHwURX7pddtIPGySnX9Si/cgMI5ztrcqOPtk5dDEeZ34CQVPphnqkJytlc97Vuk05Um2mJ3gEQA==", + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.8.0.tgz", + "integrity": "sha512-aWajIYfsqCKRDgUfjEXNN/JlrzauMuSEy5sbd7WXbtW3EH6A6MpwEh42c7qD+MqQo9QMJ6fWLAeIJynx0g6OAw==", "dev": true, "dependencies": { "debug": "^3.2.7" @@ -2412,40 +2553,16 @@ "node": ">=4.0" } }, - "node_modules/eslint-utils": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-3.0.0.tgz", - "integrity": "sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==", - "dev": true, - "dependencies": { - "eslint-visitor-keys": "^2.0.0" - }, - "engines": { - "node": "^10.0.0 || ^12.0.0 || >= 14.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/mysticatea" - }, - "peerDependencies": { - "eslint": ">=5" - } - }, - "node_modules/eslint-utils/node_modules/eslint-visitor-keys": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", - "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", - "dev": true, - "engines": { - "node": ">=10" - } - }, "node_modules/eslint-visitor-keys": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz", - "integrity": "sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA==", + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.1.tgz", + "integrity": "sha512-pZnmmLwYzf+kWaM/Qgrvpen51upAktaaiI01nsJD/Yr3lMOdNtq0cxkrrg16w64VtisN6okbs7Q8AfGqj4c9fA==", "dev": true, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" } }, "node_modules/eslint/node_modules/ansi-regex": { @@ -2489,9 +2606,9 @@ } }, "node_modules/eslint/node_modules/eslint-scope": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.1.1.tgz", - "integrity": "sha512-QKQM/UXpIiHcLqJ5AOyIW7XZmzjkzQXYE54n1++wb0u9V/abW3l9uQnxX8Z5Xd18xyKIMTUAyQ0k1e8pz6LUrw==", + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.0.tgz", + "integrity": "sha512-DYj5deGlHBfMt15J7rdtyKNq/Nqlv5KfU4iodrQ019XESsRnwXH9KAE0y3cwtUHDo2ob7CypAnCqefh6vioWRw==", "dev": true, "dependencies": { "esrecurse": "^4.3.0", @@ -2499,6 +2616,9 @@ }, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" } }, "node_modules/eslint/node_modules/glob-parent": { @@ -2535,14 +2655,14 @@ } }, "node_modules/espree": { - "version": "9.4.1", - "resolved": "https://registry.npmjs.org/espree/-/espree-9.4.1.tgz", - "integrity": "sha512-XwctdmTO6SIvCzd9810yyNzIrOrqNYV9Koizx4C/mRhf9uq0o4yHoCEU/670pOxOL/MSraektvSAji79kX90Vg==", + "version": "9.5.2", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.5.2.tgz", + "integrity": "sha512-7OASN1Wma5fum5SrNhFMAMJxOUAbhyfQ8dQ//PJaJbNw0URTPWqIghHWt1MmAANKhHZIYOHruW4Kw4ruUWOdGw==", "dev": true, "dependencies": { "acorn": "^8.8.0", "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^3.3.0" + "eslint-visitor-keys": "^3.4.1" }, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" @@ -2606,6 +2726,29 @@ "node": ">=0.10.0" } }, + "node_modules/execa": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/execa/-/execa-7.1.1.tgz", + "integrity": "sha512-wH0eMf/UXckdUYnO21+HDztteVv05rq2GXksxT4fCGeHkBhw1DROXh40wcjMcRqDOWE7iPJ4n3M7e2+YFP+76Q==", + "dev": true, + "dependencies": { + "cross-spawn": "^7.0.3", + "get-stream": "^6.0.1", + "human-signals": "^4.3.0", + "is-stream": "^3.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^5.1.0", + "onetime": "^6.0.0", + "signal-exit": "^3.0.7", + "strip-final-newline": "^3.0.0" + }, + "engines": { + "node": "^14.18.0 || ^16.14.0 || >=18.0.0" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" + } + }, "node_modules/fast-deep-equal": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", @@ -2613,9 +2756,9 @@ "dev": true }, "node_modules/fast-diff": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.2.0.tgz", - "integrity": "sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.3.0.tgz", + "integrity": "sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw==", "dev": true }, "node_modules/fast-glob": { @@ -2846,19 +2989,32 @@ } }, "node_modules/get-intrinsic": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.0.tgz", - "integrity": "sha512-L049y6nFOuom5wGyRc3/gdTLO94dySVKRACj1RmJZBQXlbTMhtNIgkWkUHq+jYmZvKf14EW1EoJnnjbmoHij0Q==", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.1.tgz", + "integrity": "sha512-2DcsyfABl+gVHEfCOaTrWgyt+tb6MSEGmKq+kI5HwLbIYgjgmMcV8KQ41uaKz1xxUcn9tJtgFbQUEVcEbd0FYw==", "dev": true, "dependencies": { "function-bind": "^1.1.1", "has": "^1.0.3", + "has-proto": "^1.0.1", "has-symbols": "^1.0.3" }, "funding": { "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/get-stream": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", + "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/get-symbol-description": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.0.tgz", @@ -2876,9 +3032,9 @@ } }, "node_modules/get-tsconfig": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.4.0.tgz", - "integrity": "sha512-0Gdjo/9+FzsYhXCEFueo2aY1z1tpXrxWZzP7k8ul9qt1U5o8rYJwTJYmaeHdrVosYIVYkOy2iwCJ9FdpocJhPQ==", + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.5.0.tgz", + "integrity": "sha512-MjhiaIWCJ1sAU4pIQ5i5OfOuHHxVo1oYeNsWTON7jxYkod8pHocXeh+SSbmu5OZZZK73B6cbJ2XADzXehLyovQ==", "dev": true, "funding": { "url": "https://github.com/privatenumber/get-tsconfig?sponsor=1" @@ -2946,12 +3102,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/globalyzer": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/globalyzer/-/globalyzer-0.1.0.tgz", - "integrity": "sha512-40oNTM9UfG6aBmuKxk/giHn5nQ8RVz/SS4Ir6zgzOv9/qC3kKZ9v4etGTcJbEl/NyVQH7FGU7d+X1egr57Md2Q==", - "dev": true - }, "node_modules/globby": { "version": "11.1.0", "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", @@ -2972,12 +3122,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/globrex": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/globrex/-/globrex-0.1.2.tgz", - "integrity": "sha512-uHJgbwAMwNFf5mLst7IWLNg14x1CkeqglJb/K3doi4dw6q2IvAAmM/Y81kevy83wP+Sst+nutFTYOGg3d1lsxg==", - "dev": true - }, "node_modules/gopd": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", @@ -2991,9 +3135,9 @@ } }, "node_modules/graceful-fs": { - "version": "4.2.10", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz", - "integrity": "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==", + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", "dev": true }, "node_modules/grapheme-splitter": { @@ -3002,6 +3146,12 @@ "integrity": "sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==", "dev": true }, + "node_modules/graphemer": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", + "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", + "dev": true + }, "node_modules/has": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", @@ -3083,6 +3233,15 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/human-signals": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-4.3.1.tgz", + "integrity": "sha512-nZXjEF2nbo7lIw3mgYjItAfgQXog3OjJogSbKa2CQIIvSGWcKgeJnQlNXip6NglNzYH45nSRiEVimMvYL8DDqQ==", + "dev": true, + "engines": { + "node": ">=14.18.0" + } + }, "node_modules/ignore": { "version": "5.2.4", "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz", @@ -3169,9 +3328,9 @@ } }, "node_modules/irregular-plurals": { - "version": "3.4.1", - "resolved": "https://registry.npmjs.org/irregular-plurals/-/irregular-plurals-3.4.1.tgz", - "integrity": "sha512-JR7VL+1Kd9z79bE+2uSgifpzrTwLWmTvyeUewhxZCHVtpPImAsLk4adfRxg86uvdsJ8etYYrpzN7vRT30gGnOA==", + "version": "3.5.0", + "resolved": "https://registry.npmjs.org/irregular-plurals/-/irregular-plurals-3.5.0.tgz", + "integrity": "sha512-1ANGLZ+Nkv1ptFb2pa8oG8Lem4krflKuX/gINiHJHjJUKaJHk/SXk5x6K3J+39/p0h1RQ2saROclJJ+QLvETCQ==", "dev": true, "engines": { "node": ">=8" @@ -3261,9 +3420,9 @@ } }, "node_modules/is-core-module": { - "version": "2.11.0", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.11.0.tgz", - "integrity": "sha512-RRjxlvLDkD1YJwDbroBHMb+cukurkDWNyHx7D3oNB5x9rb5ogcksMC5wHCadcXoo67gVr/+3GFySh3134zi6rw==", + "version": "2.12.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.12.1.tgz", + "integrity": "sha512-Q4ZuBAe2FUsKtyQJoQHlvP8OvBERxO3jEmy1I7hcRXcJBGGHFh/aJBswbXuS9sgrDH2QUO8ilkwNPHvHMd8clg==", "dev": true, "dependencies": { "has": "^1.0.3" @@ -3288,15 +3447,15 @@ } }, "node_modules/is-docker": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", - "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-3.0.0.tgz", + "integrity": "sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==", "dev": true, "bin": { "is-docker": "cli.js" }, "engines": { - "node": ">=8" + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" @@ -3341,6 +3500,24 @@ "node": ">=0.10.0" } }, + "node_modules/is-inside-container": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-inside-container/-/is-inside-container-1.0.0.tgz", + "integrity": "sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==", + "dev": true, + "dependencies": { + "is-docker": "^3.0.0" + }, + "bin": { + "is-inside-container": "cli.js" + }, + "engines": { + "node": ">=14.16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/is-map": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/is-map/-/is-map-2.0.2.tgz", @@ -3464,6 +3641,18 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/is-stream": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-3.0.0.tgz", + "integrity": "sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==", + "dev": true, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/is-string": { "version": "1.0.7", "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", @@ -3573,6 +3762,21 @@ "node": ">=8" } }, + "node_modules/is-wsl/node_modules/is-docker": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", + "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==", + "dev": true, + "bin": { + "is-docker": "cli.js" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/isarray": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", @@ -3586,16 +3790,6 @@ "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", "dev": true }, - "node_modules/js-sdsl": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/js-sdsl/-/js-sdsl-4.3.0.tgz", - "integrity": "sha512-mifzlm2+5nZ+lEcLJMoBK0/IH/bDg8XnJfd/Wq6IP+xoCjLZsTOnV2QpxlVbX9bMnkl5PdEjNtBJ9Cj1NjifhQ==", - "dev": true, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/js-sdsl" - } - }, "node_modules/js-string-escape": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/js-string-escape/-/js-string-escape-1.0.1.tgz", @@ -3809,9 +4003,9 @@ } }, "node_modules/marked": { - "version": "4.2.12", - "resolved": "https://registry.npmjs.org/marked/-/marked-4.2.12.tgz", - "integrity": "sha512-yr8hSKa3Fv4D3jdZmtMMPghgVt6TWbk86WQaWhDloQjRSQhMMYCAro7jP7VDJrjjdV8pxVxMssXS8B8Y5DZ5aw==", + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/marked/-/marked-4.3.0.tgz", + "integrity": "sha512-PRsaiG84bK+AMvxziE/lCFss8juXjNaWzVbN5tXAm4XjeaS9NAHhop+PjQxz2A9h8Q4M/xGmzP8vqNwy6JeK0A==", "dev": true, "bin": { "marked": "bin/marked.js" @@ -3884,9 +4078,9 @@ } }, "node_modules/mdast-util-to-string": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/mdast-util-to-string/-/mdast-util-to-string-3.1.1.tgz", - "integrity": "sha512-tGvhT94e+cVnQt8JWE9/b3cUQZWS732TJxXHktvP+BYo62PpYD53Ls/6cC60rW21dW+txxiM4zMdc6abASvZKA==", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/mdast-util-to-string/-/mdast-util-to-string-3.2.0.tgz", + "integrity": "sha512-V4Zn/ncyN1QNSqSBxTrMOLpjr+IKdHl2v3KVLoWmDPscP4r9GcCi71gjgvUV1SFSKh92AjAG4peFuBl2/YgCJg==", "dev": true, "dependencies": { "@types/mdast": "^3.0.0" @@ -3912,6 +4106,12 @@ "url": "https://github.com/sindresorhus/mem?sponsor=1" } }, + "node_modules/merge-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "dev": true + }, "node_modules/merge2": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", @@ -4469,6 +4669,15 @@ "path-to-regexp": "^1.7.0" } }, + "node_modules/nise/node_modules/@sinonjs/commons": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-2.0.0.tgz", + "integrity": "sha512-uLa0j859mMrg2slwQYdO/AkrOfmH+X6LTVmNTS9CqexuE2IvVORIkSpJLqePAbEnKJ77aMmCwr1NUZ57120Xcg==", + "dev": true, + "dependencies": { + "type-detect": "4.0.8" + } + }, "node_modules/nofilter": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/nofilter/-/nofilter-3.1.0.tgz", @@ -4487,6 +4696,33 @@ "node": ">=0.10.0" } }, + "node_modules/npm-run-path": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-5.1.0.tgz", + "integrity": "sha512-sJOdmRGrY2sjNTRMbSvluQqg+8X7ZK61yvzBEIDhz4f8z1TZFYABsqjjCBd/0PUNE9M6QDgHJXQkGUEm7Q+l9Q==", + "dev": true, + "dependencies": { + "path-key": "^4.0.0" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/npm-run-path/node_modules/path-key": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-4.0.0.tgz", + "integrity": "sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/oauth": { "version": "0.10.0", "resolved": "https://registry.npmjs.org/oauth/-/oauth-0.10.0.tgz", @@ -4627,18 +4863,34 @@ "wrappy": "1" } }, + "node_modules/onetime": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-6.0.0.tgz", + "integrity": "sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==", + "dev": true, + "dependencies": { + "mimic-fn": "^4.0.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/open": { - "version": "8.4.2", - "resolved": "https://registry.npmjs.org/open/-/open-8.4.2.tgz", - "integrity": "sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ==", + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/open/-/open-9.1.0.tgz", + "integrity": "sha512-OS+QTnw1/4vrf+9hh1jc1jnYjzSG4ttTBB8UxOwAnInG3Uo4ssetzC1ihqaIHjLJnA5GGlRl6QlZXOTQhRBUvg==", "dev": true, "dependencies": { - "define-lazy-prop": "^2.0.0", - "is-docker": "^2.1.1", + "default-browser": "^4.0.0", + "define-lazy-prop": "^3.0.0", + "is-inside-container": "^1.0.0", "is-wsl": "^2.2.0" }, "engines": { - "node": ">=12" + "node": ">=14.16" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" @@ -4982,9 +5234,9 @@ } }, "node_modules/prettier": { - "version": "2.8.4", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.4.tgz", - "integrity": "sha512-vIS4Rlc2FNh0BySk3Wkd6xmwxB0FpOndW5fisM5H8hsZSxU2VWVB5CWIkIjWvrHjIhxk2g3bfMKM87zNTrZddw==", + "version": "2.8.8", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz", + "integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==", "dev": true, "bin": { "prettier": "bin-prettier.js" @@ -5040,6 +5292,11 @@ "react-is": "^16.13.1" } }, + "node_modules/proxy-from-env": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", + "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==" + }, "node_modules/punycode": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", @@ -5096,14 +5353,14 @@ "peer": true }, "node_modules/regexp.prototype.flags": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.4.3.tgz", - "integrity": "sha512-fjggEOO3slI6Wvgjwflkc4NFRCTZAu5CnNfBd5qOMYhWdn67nJBBu34/TkD++eeFmd8C9r9jfXJ27+nSiRkSUA==", + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.0.tgz", + "integrity": "sha512-0SutC3pNudRKgquxGoRGIz946MZVHqbNfPjBdxeOhBrdgDKlRoXmYLQN9xRbrR09ZXWeGAdPuif7egofn6v5LA==", "dev": true, "dependencies": { "call-bind": "^1.0.2", - "define-properties": "^1.1.3", - "functions-have-names": "^1.2.2" + "define-properties": "^1.2.0", + "functions-have-names": "^1.2.3" }, "engines": { "node": ">= 0.4" @@ -5112,18 +5369,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/regexpp": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.2.0.tgz", - "integrity": "sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==", - "dev": true, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/mysticatea" - } - }, "node_modules/require-directory": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", @@ -5134,12 +5379,12 @@ } }, "node_modules/resolve": { - "version": "1.22.1", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.1.tgz", - "integrity": "sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==", + "version": "1.22.2", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.2.tgz", + "integrity": "sha512-Sb+mjNHOULsBv818T40qSPeRiuWLyaGMa5ewydRLFimneixmVy2zdivRl+AF6jaYPC8ERxGDmFSiqui6SfPd+g==", "dev": true, "dependencies": { - "is-core-module": "^2.9.0", + "is-core-module": "^2.11.0", "path-parse": "^1.0.7", "supports-preserve-symlinks-flag": "^1.0.0" }, @@ -5205,6 +5450,110 @@ "url": "https://github.com/sponsors/isaacs" } }, + "node_modules/run-applescript": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/run-applescript/-/run-applescript-5.0.0.tgz", + "integrity": "sha512-XcT5rBksx1QdIhlFOCtgZkB99ZEouFZ1E2Kc2LHqNW13U3/74YGdkQRmThTwxy4QIyookibDKYZOPqX//6BlAg==", + "dev": true, + "dependencies": { + "execa": "^5.0.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/run-applescript/node_modules/execa": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", + "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", + "dev": true, + "dependencies": { + "cross-spawn": "^7.0.3", + "get-stream": "^6.0.0", + "human-signals": "^2.1.0", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.1", + "onetime": "^5.1.2", + "signal-exit": "^3.0.3", + "strip-final-newline": "^2.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" + } + }, + "node_modules/run-applescript/node_modules/human-signals": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", + "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", + "dev": true, + "engines": { + "node": ">=10.17.0" + } + }, + "node_modules/run-applescript/node_modules/is-stream": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/run-applescript/node_modules/mimic-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/run-applescript/node_modules/npm-run-path": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", + "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", + "dev": true, + "dependencies": { + "path-key": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/run-applescript/node_modules/onetime": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", + "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "dev": true, + "dependencies": { + "mimic-fn": "^2.1.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/run-applescript/node_modules/strip-final-newline": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", + "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", + "dev": true, + "engines": { + "node": ">=6" + } + }, "node_modules/run-parallel": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", @@ -5255,9 +5604,9 @@ } }, "node_modules/semver": { - "version": "7.3.8", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", - "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", + "version": "7.5.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.1.tgz", + "integrity": "sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw==", "dev": true, "dependencies": { "lru-cache": "^6.0.0" @@ -5318,9 +5667,9 @@ } }, "node_modules/shiki": { - "version": "0.14.1", - "resolved": "https://registry.npmjs.org/shiki/-/shiki-0.14.1.tgz", - "integrity": "sha512-+Jz4nBkCBe0mEDqo1eKRcCdjRtrCjozmcbTUjbPTX7OOJfEbTZzlUWlZtGe3Gb5oV1/jnojhG//YZc3rs9zSEw==", + "version": "0.14.2", + "resolved": "https://registry.npmjs.org/shiki/-/shiki-0.14.2.tgz", + "integrity": "sha512-ltSZlSLOuSY0M0Y75KA+ieRaZ0Trf5Wl3gutE7jzLuIcWxLp5i/uEnLoQWNvgKXQ5OMpGkJnVMRLAuzjc0LJ2A==", "dev": true, "dependencies": { "ansi-sequence-parser": "^1.1.0", @@ -5350,16 +5699,16 @@ "dev": true }, "node_modules/sinon": { - "version": "15.0.1", - "resolved": "https://registry.npmjs.org/sinon/-/sinon-15.0.1.tgz", - "integrity": "sha512-PZXKc08f/wcA/BMRGBze2Wmw50CWPiAH3E21EOi4B49vJ616vW4DQh4fQrqsYox2aNR/N3kCqLuB0PwwOucQrg==", + "version": "15.1.0", + "resolved": "https://registry.npmjs.org/sinon/-/sinon-15.1.0.tgz", + "integrity": "sha512-cS5FgpDdE9/zx7no8bxROHymSlPLZzq0ChbbLk1DrxBfc+eTeBK3y8nIL+nu/0QeYydhhbLIr7ecHJpywjQaoQ==", "dev": true, "dependencies": { - "@sinonjs/commons": "^2.0.0", - "@sinonjs/fake-timers": "10.0.2", - "@sinonjs/samsam": "^7.0.1", - "diff": "^5.0.0", - "nise": "^5.1.2", + "@sinonjs/commons": "^3.0.0", + "@sinonjs/fake-timers": "^10.2.0", + "@sinonjs/samsam": "^8.0.0", + "diff": "^5.1.0", + "nise": "^5.1.4", "supports-color": "^7.2.0" }, "funding": { @@ -5488,6 +5837,23 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/string.prototype.trim": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.7.tgz", + "integrity": "sha512-p6TmeT1T3411M8Cgg9wBTMRtY2q9+PNy9EV1i2lIXUN/btt763oIfxwN3RR8VU6wHX8j/1CFy0L+YuThm6bgOg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/string.prototype.trimend": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.6.tgz", @@ -5540,6 +5906,18 @@ "node": ">=4" } }, + "node_modules/strip-final-newline": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-3.0.0.tgz", + "integrity": "sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/strip-json-comments": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", @@ -5662,14 +6040,16 @@ "node": ">=4" } }, - "node_modules/tiny-glob": { - "version": "0.2.9", - "resolved": "https://registry.npmjs.org/tiny-glob/-/tiny-glob-0.2.9.tgz", - "integrity": "sha512-g/55ssRPUjShh+xkfx9UPDXqhckHEsHr4Vd9zX55oSdGZc/MD0m3sferOkwWtp98bv+kcVfEHtRJgBVJzelrzg==", + "node_modules/titleize": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/titleize/-/titleize-3.0.0.tgz", + "integrity": "sha512-KxVu8EYHDPBdUYdKZdKtU2aj2XfEx9AfjXxE/Aj0vT06w2icA09Vus1rh6eSu1y01akYg6BjIK/hxyLJINoMLQ==", "dev": true, - "dependencies": { - "globalyzer": "0.1.0", - "globrex": "^0.1.2" + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/to-regex-range": { @@ -5697,9 +6077,9 @@ } }, "node_modules/tslib": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz", - "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==" + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.2.tgz", + "integrity": "sha512-5svOrSA2w3iGFDs1HibEVBGbDrAY82bFQ3HZ3ixB+88nsbsWQoKqDRb5UBYAUPEzbBn6dAp5gRNXglySbx1MlA==" }, "node_modules/tsutils": { "version": "3.21.0", @@ -5770,14 +6150,14 @@ } }, "node_modules/typedoc": { - "version": "0.23.26", - "resolved": "https://registry.npmjs.org/typedoc/-/typedoc-0.23.26.tgz", - "integrity": "sha512-5m4KwR5tOLnk0OtMaRn9IdbeRM32uPemN9kur7YK9wFqx8U0CYrvO9aVq6ysdZSV1c824BTm+BuQl2Ze/k1HtA==", + "version": "0.24.7", + "resolved": "https://registry.npmjs.org/typedoc/-/typedoc-0.24.7.tgz", + "integrity": "sha512-zzfKDFIZADA+XRIp2rMzLe9xZ6pt12yQOhCr7cD7/PBTjhPmMyMvGrkZ2lPNJitg3Hj1SeiYFNzCsSDrlpxpKw==", "dev": true, "dependencies": { "lunr": "^2.3.9", - "marked": "^4.2.12", - "minimatch": "^7.1.3", + "marked": "^4.3.0", + "minimatch": "^9.0.0", "shiki": "^0.14.1" }, "bin": { @@ -5787,16 +6167,16 @@ "node": ">= 14.14" }, "peerDependencies": { - "typescript": "4.6.x || 4.7.x || 4.8.x || 4.9.x" + "typescript": "4.6.x || 4.7.x || 4.8.x || 4.9.x || 5.0.x" } }, "node_modules/typedoc-plugin-extras": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/typedoc-plugin-extras/-/typedoc-plugin-extras-2.3.2.tgz", - "integrity": "sha512-g2m8UuGgaD5lNKO6f1p3atEugtTEb/le8IYkAiksmGYZyyF44SvRe8NcaJLq61mC+XRHHszQ664v3Vw9avIrMw==", + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/typedoc-plugin-extras/-/typedoc-plugin-extras-2.3.3.tgz", + "integrity": "sha512-n9zOdVSbGQ8rhsSxtmGCQPVEim345MwpeKl9PUC6ToLR8tu3YYA3BEuR9fP0z+FSx1ExU/kGzxY3sn4+FyHE2w==", "dev": true, "peerDependencies": { - "typedoc": "0.23.x" + "typedoc": "0.24.x" } }, "node_modules/typedoc/node_modules/brace-expansion": { @@ -5809,31 +6189,31 @@ } }, "node_modules/typedoc/node_modules/minimatch": { - "version": "7.4.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-7.4.2.tgz", - "integrity": "sha512-xy4q7wou3vUoC9k1xGTXc+awNdGaGVHtFUaey8tiX4H1QRc04DZ/rmDFwNm2EBsuYEhAZ6SgMmYf3InGY6OauA==", + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.0.tgz", + "integrity": "sha512-0jJj8AvgKqWN05mrwuqi8QYKx1WmYSUoKSxu5Qhs9prezTz10sxAHGNZe9J9cqIJzta8DWsleh2KaVaLl6Ru2w==", "dev": true, "dependencies": { "brace-expansion": "^2.0.1" }, "engines": { - "node": ">=10" + "node": ">=16 || 14 >=14.17" }, "funding": { "url": "https://github.com/sponsors/isaacs" } }, "node_modules/typescript": { - "version": "4.9.5", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz", - "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==", + "version": "5.0.4", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.0.4.tgz", + "integrity": "sha512-cW9T5W9xY37cc+jfEnaUvX91foxtHkza3Nw3wkoF4sSlKn0MONdkdEndig/qPBWXNkmplh3NzayQzCiHM4/hqw==", "dev": true, "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" }, "engines": { - "node": ">=4.2.0" + "node": ">=12.20" } }, "node_modules/unbox-primitive": { @@ -5864,6 +6244,15 @@ "url": "https://opencollective.com/unified" } }, + "node_modules/untildify": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/untildify/-/untildify-4.0.0.tgz", + "integrity": "sha512-KK8xQ1mkzZeg9inewmFVDNkg3l5LUhoq9kN6iWYB/CC9YMG8HA+c1Q8HwDe6dEX7kErrEVNVBO3fWsVq5iDgtw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, "node_modules/uri-js": { "version": "4.4.1", "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", @@ -6077,18 +6466,30 @@ "dev": true }, "node_modules/write-file-atomic": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-5.0.0.tgz", - "integrity": "sha512-R7NYMnHSlV42K54lwY9lvW6MnSm1HSJqZL3xiSgi9E7//FYaI74r2G0rd+/X6VAMkHEdzxQaU5HUOXWUz5kA/w==", + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-5.0.1.tgz", + "integrity": "sha512-+QU2zd6OTD8XWIJCbffaiQeH9U73qIqafo1x6V1snCWYGJf6cVE0cDR4D8xRzcEnfI21IFrUPzPGtcPf8AC+Rw==", "dev": true, "dependencies": { "imurmurhash": "^0.1.4", - "signal-exit": "^3.0.7" + "signal-exit": "^4.0.1" }, "engines": { "node": "^14.17.0 || ^16.13.0 || >=18.0.0" } }, + "node_modules/write-file-atomic/node_modules/signal-exit": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.0.2.tgz", + "integrity": "sha512-MY2/qGx4enyjprQnFaZsHib3Yadh3IXyV2C321GY0pjGfVBu4un0uDJkwgdxqO+Rdx8JMT8IfJIRwbYVz3Ob3Q==", + "dev": true, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, "node_modules/y18n": { "version": "5.0.8", "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", @@ -6105,9 +6506,9 @@ "dev": true }, "node_modules/yargs": { - "version": "17.7.1", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.1.tgz", - "integrity": "sha512-cwiTb08Xuv5fqF4AovYacTFNxk62th7LKJ6BL9IGUpTJrWoU7/7WdQGTP2SjKf1dUNBGzDd28p/Yfs/GI6JrLw==", + "version": "17.7.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", + "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", "dev": true, "dependencies": { "cliui": "^8.0.1", diff --git a/package.json b/package.json index 005f9a87..66ae912b 100644 --- a/package.json +++ b/package.json @@ -42,31 +42,31 @@ "atlassian" ], "devDependencies": { - "@swc-node/register": "1.5.4", + "@swc-node/register": "1.6.5", "@types/express": "^4.17.17", "@types/oauth": "^0.9.1", - "@types/sinon": "^10.0.13", - "@typescript-eslint/eslint-plugin": "^5.54.1", - "@typescript-eslint/parser": "^5.54.1", + "@types/sinon": "^10.0.15", + "@typescript-eslint/eslint-plugin": "^5.59.6", + "@typescript-eslint/parser": "^5.59.6", "ava": "^5.2.0", "dotenv": "^16.0.3", - "eslint": "^8.35.0", + "eslint": "^8.41.0", "eslint-config-airbnb": "^19.0.4", "eslint-config-airbnb-typescript": "^17.0.0", - "eslint-import-resolver-typescript": "^3.5.3", + "eslint-import-resolver-typescript": "^3.5.5", "eslint-plugin-import": "^2.27.5", - "prettier": "^2.8.4", + "prettier": "^2.8.8", "prettier-plugin-jsdoc": "^0.4.2", - "sinon": "^15.0.1", - "typedoc": "^0.23.26", - "typedoc-plugin-extras": "^2.3.2", - "typescript": "^4.9.5" + "sinon": "^15.1.0", + "typedoc": "^0.24.7", + "typedoc-plugin-extras": "^2.3.3", + "typescript": "^5.0.4" }, "dependencies": { "atlassian-jwt": "^2.0.2", - "axios": "^0.27.2", + "axios": "^1.4.0", "form-data": "^4.0.0", "oauth": "^0.10.0", - "tslib": "^2.5.0" + "tslib": "^2.5.2" } } diff --git a/src/version2/page.ts b/src/version2/page.ts index 7cbc2bae..04dfe4ea 100644 --- a/src/version2/page.ts +++ b/src/version2/page.ts @@ -84,7 +84,7 @@ export class Page { * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the corresponding space. * Permission to create a page in the space. */ - async createPage(callback: Callback): Promise; + async createPage(parameters: Parameters.CreatePage, callback: Callback): Promise; /** * Creates a page in the space. * @@ -94,11 +94,17 @@ export class Page { * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the corresponding space. * Permission to create a page in the space. */ - async createPage(callback?: never): Promise; - async createPage(callback?: Callback): Promise { + async createPage(parameters: Parameters.CreatePage, callback?: never): Promise; + async createPage(parameters: Parameters.CreatePage, callback?: Callback): Promise { const config: RequestConfig = { url: '/pages', method: 'POST', + params: { + 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + }, + data: { + + }, }; return this.client.sendRequest(config, callback); diff --git a/src/version2/parameters/createPage.ts b/src/version2/parameters/createPage.ts new file mode 100644 index 00000000..04bee05c --- /dev/null +++ b/src/version2/parameters/createPage.ts @@ -0,0 +1,19 @@ +export interface CreatePage { + /** + * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for + * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the + * meantime, this query param can be passed to this endpoint to opt-in to this change now. See [this + * changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. + */ + serializeIdsAsStrings?: boolean; + /** ID of the space */ + spaceId: string; + /** The status of the page, published or draft. */ + status?: 'current' | 'draft' | string; + /** Title of the page, required if page status is not draft. */ + title?: string; + /** The parent content ID of the page. */ + parentId?: string; + /** The type of the page. */ + // body?: PageBodyWrite; // todo +} diff --git a/tests/e2e/version2Client.test.ts b/tests/e2e/version2Client.test.ts new file mode 100644 index 00000000..bc4509c0 --- /dev/null +++ b/tests/e2e/version2Client.test.ts @@ -0,0 +1,184 @@ +import * as fs from 'fs'; +import test from 'ava'; +import { ConfluenceClient, Version2Client } from '../../src'; + +const HOST = process.env.HOST!; +const EMAIL = process.env.EMAIL!; +const API_TOKEN = process.env.API_TOKEN!; + +let createdContentId: string; +let createdAttachmentId: string; + +const config = { + host: HOST, + telemetry: false, + newErrorHandling: true, + authentication: { + basic: { + email: EMAIL, + apiToken: API_TOKEN, + }, + }, +}; + +const client = new ConfluenceClient(config); +const version2Client = new Version2Client(config); + +test.serial('should create space', async t => { + const space = await client.space.createSpace({ + name: 'Auto testing software', + key: 'AUTOMATED', + }); + + t.truthy(!!space); + t.is(space.key, 'AUTOMATED'); + t.is(space.name, 'Auto testing software'); +}); + +test.serial('should create content', async t => { + const content = await version2Client.page.createPage({ + title: 'Test page', + space: { + key: 'AUTOMATED', + }, + type: 'page', + body: { + view: { + value: '', + representation: 'view', + }, + }, + }); + + createdContentId = content.id; + + t.truthy(!!content); + t.is(content.type, 'page'); + t.is(content.space?.key, 'AUTOMATED'); +}); + +test.serial('should add attachment', async t => { + const file = await fs.readFileSync('./tests/unit/clients/serverClient.test.ts'); + + const attachment = await version2Client.contentAttachments.createAttachments({ + id: createdContentId, + attachments: { + file, + filename: 'serverApiClient.test.ts', + minorEdit: true, + comment: 'heh comment', + contentType: 'application/javascript', + }, + }); + + t.truthy(!!attachment); + t.truthy(attachment.results.length === 1); + t.is(attachment.results[0].title, 'serverApiClient.test.ts'); + t.is(attachment.results[0].metadata.mediaType, 'application/javascript'); + t.is(attachment.results[0].version.minorEdit, true); +}); + +test.serial('should get attachments', async t => { + const attachments = await version2Client.contentAttachments.getAttachments({ + id: createdContentId, + }); + + t.truthy(!!attachments); + t.truthy(attachments.results.length === 1); + t.is(attachments.results[0].title, 'serverApiClient.test.ts'); + t.is(attachments.results[0].metadata.mediaType, 'application/javascript'); +}); + +test.serial('should update attachment', async t => { + const attachments = await version2Client.contentAttachments.createOrUpdateAttachments({ + id: createdContentId, + attachments: { + file: 'testFileContent', + filename: 'serverApiClient.test.ts', + minorEdit: false, + comment: 'some changes', + contentType: 'application/javascript', + }, + }); + + createdAttachmentId = attachments.results[0].id; + + t.truthy(!!attachments); + t.truthy(attachments.results.length === 1); + t.is(attachments.results[0].title, 'serverApiClient.test.ts'); + t.is(attachments.results[0].metadata.mediaType, 'application/javascript'); + t.is(attachments.results[0].version.minorEdit, false); + t.is(attachments.results[0].version.number, 2); + t.is(attachments.results[0].version.message, 'some changes'); +}); + +test.serial('should update attachment properties', async t => { + const attachment = await version2Client.contentAttachments.updateAttachmentProperties({ + id: createdContentId, + attachmentId: createdAttachmentId, + update: { + id: createdAttachmentId, + version: { + number: 2, + }, + title: 'serverApiClient.test.ts', + type: 'attachment', + status: 'current', + metadata: { + mediaType: 'text/plain', + }, + }, + }); + + t.truthy(!!attachment); + t.is(attachment.title, 'serverApiClient.test.ts'); + t.is(attachment.metadata.mediaType, 'text/plain'); + t.is(attachment.version.minorEdit, false); + t.is(attachment.version.number, 2); + t.is(attachment.version.message, 'some changes'); +}); + +test.serial('should update content attachment data', async t => { + const attachment = await version2Client.contentAttachments.updateAttachmentData({ + id: createdContentId, + attachmentId: createdAttachmentId, + attachment: { + file: 'testFileContent', + filename: 'serverApiClient.test.ts', + minorEdit: true, + }, + }); + + t.truthy(!!attachment); + t.is(attachment.title, 'serverApiClient.test.ts'); + t.is(attachment.metadata.mediaType, 'video/mp2t'); + t.is(attachment.version.minorEdit, true); + t.is(attachment.version.number, 3); + t.is(attachment.version.message, undefined); +}); + +test.serial('should download content attachment', async t => { + const attachment = await version2Client.contentAttachments.downloadAttachment({ + id: createdContentId, + attachmentId: createdAttachmentId, + }); + + t.truthy(!!attachment); + t.is(attachment.toString(), 'testFileContent'); +}); + +test.serial('should remove content', async t => { + await version2Client.content.deleteContent({ + id: createdContentId, + }); + + t.pass(); +}); + +test.serial('should remove space', async t => { + const removedSpace = await version2Client.space.deleteSpace({ + spaceKey: 'AUTOMATED', + }); + + t.truthy(!!removedSpace); +}); From bdc7002ba0a9579141b9b007365fd881ce90ee02 Mon Sep 17 00:00:00 2001 From: Vladislav Tupikin Date: Sat, 20 May 2023 22:47:09 +0400 Subject: [PATCH 04/44] prettier update --- .prettierrc | 11 ++- package.json | 2 +- src/api/audit.ts | 18 ++-- src/api/content.ts | 16 +-- src/api/contentAttachments.ts | 20 ++-- src/api/contentBody.ts | 12 +-- src/api/contentChildrenAndDescendants.ts | 22 ++--- src/api/contentComments.ts | 4 +- src/api/contentContentState.ts | 20 ++-- src/api/contentLabels.ts | 14 +-- src/api/contentMacroBody.ts | 12 +-- src/api/contentPermissions.ts | 8 +- src/api/contentProperties.ts | 22 ++--- src/api/contentRestrictions.ts | 52 +++++----- src/api/contentStates.ts | 24 ++--- src/api/contentVersions.ts | 12 +-- src/api/contentWatches.ts | 22 ++--- src/api/dynamicModules.ts | 2 +- src/api/experimental.ts | 18 ++-- src/api/group.ts | 36 +++---- src/api/inlineTasks.ts | 2 +- src/api/labelInfo.ts | 4 +- src/api/longRunningTask.ts | 4 +- src/api/models/addContentRestriction.ts | 11 ++- src/api/models/appDescriptor.ts | 9 +- src/api/models/asyncContentBody.ts | 4 +- src/api/models/attachmentContainer.ts | 2 +- src/api/models/attachmentUpdate.ts | 2 +- src/api/models/auditRecordCreate.ts | 8 +- src/api/models/contentBlueprintDraft.ts | 3 +- src/api/models/contentRestrictionUpdate.ts | 11 ++- src/api/models/contentTemplateUpdate.ts | 5 +- src/api/models/lifecycle.ts | 8 +- src/api/parameters/addLabelsToContent.ts | 3 +- src/api/parameters/createContent.ts | 15 ++- src/api/parameters/createRelationship.ts | 5 +- src/api/parameters/createUserProperty.ts | 4 +- src/api/parameters/delete.ts | 5 +- src/api/parameters/deleteRelationship.ts | 13 ++- src/api/parameters/deleteUserProperty.ts | 4 +- src/api/parameters/findSourcesForTarget.ts | 3 +- src/api/parameters/findTargetFromSource.ts | 3 +- src/api/parameters/getAttachments.ts | 15 ++- .../parameters/getAvailableContentStates.ts | 2 +- src/api/parameters/getContent.ts | 20 +++- src/api/parameters/getContentById.ts | 15 ++- src/api/parameters/getContentProperties.ts | 6 +- src/api/parameters/getContentProperty.ts | 18 ++-- src/api/parameters/getContentTemplates.ts | 5 +- src/api/parameters/getContentVersion.ts | 3 +- src/api/parameters/getContentVersions.ts | 3 +- src/api/parameters/getDescendantsOfType.ts | 15 ++- src/api/parameters/getHistoryForContent.ts | 3 +- src/api/parameters/getLabelsForContent.ts | 3 +- src/api/parameters/getRelationship.ts | 8 +- src/api/parameters/getSpaces.ts | 13 ++- src/api/parameters/removeGroupById.ts | 4 +- src/api/parameters/removeGroupByName.ts | 4 +- src/api/parameters/removeModules.ts | 3 +- src/api/parameters/restoreContentVersion.ts | 3 +- src/api/parameters/search.ts | 4 +- .../parameters/updateAttachmentProperties.ts | 30 +++--- src/api/parameters/updateUserProperty.ts | 4 +- src/api/relation.ts | 16 +-- src/api/search.ts | 14 +-- src/api/settings.ts | 24 ++--- src/api/space.ts | 14 +-- src/api/spacePermissions.ts | 10 +- src/api/spaceProperties.ts | 20 ++-- src/api/spaceSettings.ts | 8 +- src/api/template.ts | 20 ++-- src/api/themes.ts | 2 +- src/api/users.ts | 26 ++--- src/config.ts | 28 +++--- src/server/audit.ts | 18 ++-- src/server/content.ts | 98 +++++++++---------- src/server/contentBody.ts | 4 +- src/server/group.ts | 4 +- src/server/longTask.ts | 2 +- src/server/parameters/createAuditRecord.ts | 8 +- src/server/parameters/getAttachments.ts | 15 ++- src/server/parameters/updateAttachmentData.ts | 2 +- src/server/search.ts | 4 +- src/server/space.ts | 32 +++--- src/server/user.ts | 14 +-- .../createJWTAuthentication.ts | 5 +- .../authenticationService/base64Encoder.ts | 10 +- src/utilityTypes.ts | 8 +- src/version2/attachment.ts | 16 +-- src/version2/blogPost.ts | 14 +-- src/version2/children.ts | 6 +- src/version2/comment.ts | 48 ++++----- src/version2/contentProperties.ts | 40 ++++---- src/version2/customContent.ts | 24 ++--- src/version2/label.ts | 14 +-- src/version2/page.ts | 12 +-- src/version2/space.ts | 2 +- src/version2/spaceProperties.ts | 18 ++-- src/version2/task.ts | 2 +- src/version2/version.ts | 36 +++---- 100 files changed, 714 insertions(+), 580 deletions(-) diff --git a/.prettierrc b/.prettierrc index 1a6b79cc..d0a89fb0 100644 --- a/.prettierrc +++ b/.prettierrc @@ -1,5 +1,10 @@ { - "plugins": [ - "prettier-plugin-jsdoc" - ] + "arrowParens": "avoid", + "endOfLine": "lf", + "plugins": ["prettier-plugin-jsdoc"], + "printWidth": 120, + "singleQuote": true, + "tabWidth": 2, + "trailingComma": "all", + "useTabs": false } diff --git a/package.json b/package.json index 66ae912b..11470216 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "build": "tsc", "prepublishOnly": "npm run build && npm run test && npm run lint", "test": "npm run test:unit && npm run test:e2e", - "prettier": "prettier --write src/**/*.ts", + "prettier": "prettier --write src", "doc": "typedoc --name \"Confluence.js - Cloud and Server API library\" --out docs ./src/index.ts --plugin typedoc-plugin-extras --footerDate --footerTime --footerTypedocVersion --favicon https://svgshare.com/i/bVi.svg", "lint": "eslint src tests --ext .ts", "lint:fix": "npm run lint -- --fix", diff --git a/src/api/audit.ts b/src/api/audit.ts index d4249439..a82634b3 100644 --- a/src/api/audit.ts +++ b/src/api/audit.ts @@ -17,7 +17,7 @@ export class Audit { */ async getAuditRecords( parameters: Parameters.GetAuditRecords | undefined, - callback: Callback + callback: Callback, ): Promise; /** * Returns all records in the audit log, optionally for a certain date range. This contains information about events @@ -29,7 +29,7 @@ export class Audit { */ async getAuditRecords( parameters?: Parameters.GetAuditRecords, - callback?: never + callback?: never, ): Promise; async getAuditRecords( parameters?: Parameters.GetAuditRecords, @@ -58,7 +58,7 @@ export class Audit { */ async createAuditRecord( parameters: Parameters.CreateAuditRecord | undefined, - callback: Callback + callback: Callback, ): Promise; /** * Creates a record in the audit log. @@ -68,7 +68,7 @@ export class Audit { */ async createAuditRecord( parameters?: Parameters.CreateAuditRecord, - callback?: never + callback?: never, ): Promise; async createAuditRecord( parameters?: Parameters.CreateAuditRecord, @@ -102,7 +102,7 @@ export class Audit { */ async exportAuditRecords( parameters: Parameters.ExportAuditRecords | undefined, - callback: Callback + callback: Callback, ): Promise; /** * Exports audit records as a CSV file or ZIP file. @@ -162,7 +162,7 @@ export class Audit { */ async setRetentionPeriod( parameters: Parameters.SetRetentionPeriod | undefined, - callback: Callback + callback: Callback, ): Promise; /** * Sets the retention period for records in the audit log. The retention period can be set to a maximum of 20 years. @@ -172,7 +172,7 @@ export class Audit { */ async setRetentionPeriod( parameters?: Parameters.SetRetentionPeriod, - callback?: never + callback?: never, ): Promise; async setRetentionPeriod( parameters?: Parameters.SetRetentionPeriod, @@ -203,7 +203,7 @@ export class Audit { */ async getAuditRecordsForTimePeriod( parameters: Parameters.GetAuditRecordsForTimePeriod | undefined, - callback: Callback + callback: Callback, ): Promise; /** * Returns records from the audit log, for a time period back from the current date. For example, you can use this @@ -218,7 +218,7 @@ export class Audit { */ async getAuditRecordsForTimePeriod( parameters?: Parameters.GetAuditRecordsForTimePeriod, - callback?: never + callback?: never, ): Promise; async getAuditRecordsForTimePeriod( parameters?: Parameters.GetAuditRecordsForTimePeriod, diff --git a/src/api/content.ts b/src/api/content.ts index 9b151a92..c2f1c508 100644 --- a/src/api/content.ts +++ b/src/api/content.ts @@ -17,7 +17,7 @@ export class Content { */ async getContent( parameters: Parameters.GetContent | undefined, - callback: Callback + callback: Callback, ): Promise; /** * Returns all content in a Confluence instance. @@ -66,7 +66,7 @@ export class Content { */ async createContent( parameters: Parameters.CreateContent | undefined, - callback: Callback + callback: Callback, ): Promise; /** * Creates a new piece of content or publishes an existing draft. @@ -153,7 +153,7 @@ export class Content { */ async publishLegacyDraft( parameters: Parameters.PublishLegacyDraft, - callback: Callback + callback: Callback, ): Promise; /** * Publishes a legacy draft of a page created from a blueprint. Legacy drafts will eventually be removed in favor of @@ -200,7 +200,7 @@ export class Content { */ async publishSharedDraft( parameters: Parameters.PublishSharedDraft, - callback: Callback + callback: Callback, ): Promise; /** * Publishes a shared draft of a page created from a blueprint. @@ -252,7 +252,7 @@ export class Content { */ async searchContentByCQL( parameters: Parameters.SearchContentByCQL, - callback: Callback + callback: Callback, ): Promise; /** * Returns the list of content that matches a Confluence Query Language (CQL) query. For information on CQL, see: @@ -271,7 +271,7 @@ export class Content { */ async searchContentByCQL( parameters: Parameters.SearchContentByCQL, - callback?: never + callback?: never, ): Promise; async searchContentByCQL( parameters: Parameters.SearchContentByCQL, @@ -417,7 +417,7 @@ export class Content { */ async getHistoryForContent( parameters: Parameters.GetHistoryForContent, - callback: Callback + callback: Callback, ): Promise; /** * Returns the most recent update for a piece of content. @@ -426,7 +426,7 @@ export class Content { */ async getHistoryForContent( parameters: Parameters.GetHistoryForContent, - callback?: never + callback?: never, ): Promise; async getHistoryForContent( parameters: Parameters.GetHistoryForContent, diff --git a/src/api/contentAttachments.ts b/src/api/contentAttachments.ts index 8f23fc26..9b139617 100644 --- a/src/api/contentAttachments.ts +++ b/src/api/contentAttachments.ts @@ -18,7 +18,7 @@ export class ContentAttachments { */ async getAttachments>( parameters: Parameters.GetAttachments, - callback: Callback + callback: Callback, ): Promise; /** * Returns the attachments for a piece of content. @@ -30,7 +30,7 @@ export class ContentAttachments { */ async getAttachments>( parameters: Parameters.GetAttachments, - callback?: never + callback?: never, ): Promise; async getAttachments>( parameters: Parameters.GetAttachments, @@ -60,7 +60,7 @@ export class ContentAttachments { */ async createAttachments>( parameters: Parameters.CreateAttachments, - callback: Callback + callback: Callback, ): Promise; /** * Adds an attachment to a piece of content. This method only adds a new attachment. If you want to update an existing @@ -71,7 +71,7 @@ export class ContentAttachments { */ async createAttachments>( parameters: Parameters.CreateAttachments, - callback?: never + callback?: never, ): Promise; async createAttachments>( parameters: Parameters.CreateAttachments, @@ -117,7 +117,7 @@ export class ContentAttachments { */ async createOrUpdateAttachments>( parameters: Parameters.CreateOrUpdateAttachments, - callback: Callback + callback: Callback, ): Promise; /** * Adds an attachment to a piece of content. If the attachment already exists for the content, then the attachment is @@ -127,7 +127,7 @@ export class ContentAttachments { */ async createOrUpdateAttachments>( parameters: Parameters.CreateOrUpdateAttachments, - callback?: never + callback?: never, ): Promise; async createOrUpdateAttachments>( parameters: Parameters.CreateOrUpdateAttachments, @@ -173,7 +173,7 @@ export class ContentAttachments { */ async updateAttachmentProperties( parameters: Parameters.UpdateAttachmentProperties, - callback: Callback + callback: Callback, ): Promise; /** * Updates the attachment properties, i.e. the non-binary data of an attachment like the filename, media-type, @@ -183,7 +183,7 @@ export class ContentAttachments { */ async updateAttachmentProperties( parameters: Parameters.UpdateAttachmentProperties, - callback?: never + callback?: never, ): Promise; async updateAttachmentProperties( parameters: Parameters.UpdateAttachmentProperties, @@ -210,7 +210,7 @@ export class ContentAttachments { */ async updateAttachmentData( parameters: Parameters.UpdateAttachmentData, - callback: Callback + callback: Callback, ): Promise; /** * Updates the binary data of an attachment, given the attachment ID, and optionally the comment and the minor edit @@ -224,7 +224,7 @@ export class ContentAttachments { */ async updateAttachmentData( parameters: Parameters.UpdateAttachmentData, - callback?: never + callback?: never, ): Promise; async updateAttachmentData( parameters: Parameters.UpdateAttachmentData, diff --git a/src/api/contentBody.ts b/src/api/contentBody.ts index 670b86e7..f2626a6e 100644 --- a/src/api/contentBody.ts +++ b/src/api/contentBody.ts @@ -23,7 +23,7 @@ export class ContentBody { */ async convertContentBody( parameters: Parameters.ConvertContentBody, - callback: Callback + callback: Callback, ): Promise; /** * Converts a content body from one format to another format. @@ -41,7 +41,7 @@ export class ContentBody { */ async convertContentBody( parameters: Parameters.ConvertContentBody, - callback?: never + callback?: never, ): Promise; async convertContentBody( parameters: Parameters.ConvertContentBody, @@ -82,7 +82,7 @@ export class ContentBody { */ async asyncConvertContentBodyRequest( parameters: Parameters.AsyncConvertContentBodyRequest, - callback: Callback + callback: Callback, ): Promise; /** * Converts a content body from one format to another format asynchronously. Returns the asyncId for the asynchronous @@ -100,7 +100,7 @@ export class ContentBody { */ async asyncConvertContentBodyRequest( parameters: Parameters.AsyncConvertContentBodyRequest, - callback?: never + callback?: never, ): Promise; async asyncConvertContentBodyRequest( parameters: Parameters.AsyncConvertContentBodyRequest, @@ -138,7 +138,7 @@ export class ContentBody { */ async asyncConvertContentBodyResponse( parameters: Parameters.AsyncConvertContentBodyResponse, - callback: Callback + callback: Callback, ): Promise; /** * Returns the Asynchronous Content Body for the corresponding asyncId if the task is complete or returns the status @@ -152,7 +152,7 @@ export class ContentBody { */ async asyncConvertContentBodyResponse( parameters: Parameters.AsyncConvertContentBodyResponse, - callback?: never + callback?: never, ): Promise; async asyncConvertContentBodyResponse( parameters: Parameters.AsyncConvertContentBodyResponse, diff --git a/src/api/contentChildrenAndDescendants.ts b/src/api/contentChildrenAndDescendants.ts index 4aed5c2f..d2290dad 100644 --- a/src/api/contentChildrenAndDescendants.ts +++ b/src/api/contentChildrenAndDescendants.ts @@ -27,7 +27,7 @@ export class ContentChildrenAndDescendants { */ async getContentChildren( parameters: Parameters.GetContentChildren, - callback: Callback + callback: Callback, ): Promise; /** * Returns a map of the direct children of a piece of content. A piece of content has different types of child @@ -49,7 +49,7 @@ export class ContentChildrenAndDescendants { */ async getContentChildren( parameters: Parameters.GetContentChildren, - callback?: never + callback?: never, ): Promise; async getContentChildren( parameters: Parameters.GetContentChildren, @@ -121,7 +121,7 @@ export class ContentChildrenAndDescendants { */ async getContentChildrenByType( parameters: Parameters.GetContentChildrenByType, - callback: Callback + callback: Callback, ): Promise; /** * Returns all children of a given type, for a piece of content. A piece of content has different types of child @@ -142,7 +142,7 @@ export class ContentChildrenAndDescendants { */ async getContentChildrenByType( parameters: Parameters.GetContentChildrenByType, - callback?: never + callback?: never, ): Promise; async getContentChildrenByType( parameters: Parameters.GetContentChildrenByType, @@ -181,7 +181,7 @@ export class ContentChildrenAndDescendants { */ async getContentDescendants( parameters: Parameters.GetContentDescendants, - callback: Callback + callback: Callback, ): Promise; /** * Returns a map of the descendants of a piece of content. This is similar to [Get content @@ -203,7 +203,7 @@ export class ContentChildrenAndDescendants { */ async getContentDescendants( parameters: Parameters.GetContentDescendants, - callback?: never + callback?: never, ): Promise; async getContentDescendants( parameters: Parameters.GetContentDescendants, @@ -223,12 +223,12 @@ export class ContentChildrenAndDescendants { /** @deprecated This API will be removed in the next major version. Use `getDescendantsOfType` method instead. */ async descendantsOfType( parameters: Parameters.DescendantsOfType, - callback: Callback + callback: Callback, ): Promise; /** @deprecated This API will be removed in the next major version. Use `getDescendantsOfType` method instead. */ async descendantsOfType( parameters: Parameters.DescendantsOfType, - callback?: never + callback?: never, ): Promise; async descendantsOfType( parameters: Parameters.DescendantsOfType, @@ -256,7 +256,7 @@ export class ContentChildrenAndDescendants { */ async getDescendantsOfType( parameters: Parameters.GetDescendantsOfType, - callback: Callback + callback: Callback, ): Promise; /** * Returns all descendants of a given type, for a piece of content. This is similar to [Get content children by @@ -277,7 +277,7 @@ export class ContentChildrenAndDescendants { */ async getDescendantsOfType( parameters: Parameters.GetDescendantsOfType, - callback?: never + callback?: never, ): Promise; async getDescendantsOfType( parameters: Parameters.GetDescendantsOfType, @@ -306,7 +306,7 @@ export class ContentChildrenAndDescendants { */ async copyPageHierarchy( parameters: Parameters.CopyPageHierarchy, - callback: Callback + callback: Callback, ): Promise; /** * Copy page hierarchy allows the copying of an entire hierarchy of pages and their associated properties, permissions diff --git a/src/api/contentComments.ts b/src/api/contentComments.ts index c1e8346a..76316c0c 100644 --- a/src/api/contentComments.ts +++ b/src/api/contentComments.ts @@ -15,7 +15,7 @@ export class ContentComments { */ async getContentComments( parameters: Parameters.GetContentComments, - callback: Callback + callback: Callback, ): Promise; /** * Returns the comments on a piece of content. @@ -25,7 +25,7 @@ export class ContentComments { */ async getContentComments( parameters: Parameters.GetContentComments, - callback?: never + callback?: never, ): Promise; async getContentComments( parameters: Parameters.GetContentComments, diff --git a/src/api/contentContentState.ts b/src/api/contentContentState.ts index 62079a41..09842def 100644 --- a/src/api/contentContentState.ts +++ b/src/api/contentContentState.ts @@ -15,7 +15,7 @@ export class ContentContentState { */ async getContentState( parameters: Parameters.GetContentState, - callback: Callback + callback: Callback, ): Promise; /** * @deprecated Gets the current page status of the draft or published version of content. To specify the draft @@ -23,7 +23,7 @@ export class ContentContentState { */ async getContentState( parameters: Parameters.GetContentState, - callback?: never + callback?: never, ): Promise; async getContentState( parameters: Parameters.GetContentState, @@ -52,7 +52,7 @@ export class ContentContentState { */ async setContentState( parameters: Parameters.SetContentState, - callback: Callback + callback: Callback, ): Promise; /** * @deprecated Sets the content state of the content specified and creates a new version (publishes the content @@ -66,7 +66,7 @@ export class ContentContentState { */ async setContentState( parameters: Parameters.SetContentState, - callback?: never + callback?: never, ): Promise; async setContentState( parameters: Parameters.SetContentState, @@ -91,7 +91,7 @@ export class ContentContentState { */ async removeContentState( parameters: Parameters.RemoveContentState, - callback: Callback + callback: Callback, ): Promise; /** * @deprecated Removes the content state of the content specified and creates a new version (publishes the content @@ -99,7 +99,7 @@ export class ContentContentState { */ async removeContentState( parameters: Parameters.RemoveContentState, - callback?: never + callback?: never, ): Promise; async removeContentState( parameters: Parameters.RemoveContentState, @@ -116,12 +116,12 @@ export class ContentContentState { /** @deprecated Gets a Global Timestamp of the last time the content state was updated */ async getContentStateLastUpdated( parameters: Parameters.GetContentStateLastUpdated, - callback: Callback + callback: Callback, ): Promise; /** @deprecated Gets a Global Timestamp of the last time the content state was updated */ async getContentStateLastUpdated( parameters: Parameters.GetContentStateLastUpdated, - callback?: never + callback?: never, ): Promise; async getContentStateLastUpdated( parameters: Parameters.GetContentStateLastUpdated, @@ -138,12 +138,12 @@ export class ContentContentState { /** @deprecated Gets content states that are available for the content to be set as. */ async getAvailableContentStates( parameters: Parameters.GetAvailableContentStates, - callback: Callback + callback: Callback, ): Promise; /** @deprecated Gets content states that are available for the content to be set as. */ async getAvailableContentStates( parameters: Parameters.GetAvailableContentStates, - callback?: never + callback?: never, ): Promise; async getAvailableContentStates( parameters: Parameters.GetAvailableContentStates, diff --git a/src/api/contentLabels.ts b/src/api/contentLabels.ts index 9b48d41d..03141eed 100644 --- a/src/api/contentLabels.ts +++ b/src/api/contentLabels.ts @@ -15,7 +15,7 @@ export class ContentLabels { */ async getLabelsForContent( parameters: Parameters.GetLabelsForContent, - callback: Callback + callback: Callback, ): Promise; /** * Returns the labels on a piece of content. @@ -25,7 +25,7 @@ export class ContentLabels { */ async getLabelsForContent( parameters: Parameters.GetLabelsForContent, - callback?: never + callback?: never, ): Promise; async getLabelsForContent( parameters: Parameters.GetLabelsForContent, @@ -57,7 +57,7 @@ export class ContentLabels { */ async addLabelsToContent( parameters: Parameters.AddLabelsToContent, - callback: Callback + callback: Callback, ): Promise; /** * Adds labels to a piece of content. Does not modify the existing labels. @@ -72,7 +72,7 @@ export class ContentLabels { */ async addLabelsToContent( parameters: Parameters.AddLabelsToContent, - callback?: never + callback?: never, ): Promise; async addLabelsToContent( parameters: Parameters.AddLabelsToContent, @@ -101,7 +101,7 @@ export class ContentLabels { */ async removeLabelFromContentUsingQueryParameter( parameters: Parameters.RemoveLabelFromContentUsingQueryParameter, - callback: Callback + callback: Callback, ): Promise; /** * Removes a label from a piece of content. This is similar to [Remove label from @@ -114,7 +114,7 @@ export class ContentLabels { */ async removeLabelFromContentUsingQueryParameter( parameters: Parameters.RemoveLabelFromContentUsingQueryParameter, - callback?: never + callback?: never, ): Promise; async removeLabelFromContentUsingQueryParameter( parameters: Parameters.RemoveLabelFromContentUsingQueryParameter, @@ -143,7 +143,7 @@ export class ContentLabels { */ async removeLabelFromContent( parameters: Parameters.RemoveLabelFromContent, - callback: Callback + callback: Callback, ): Promise; /** * Removes a label from a piece of content. This is similar to [Remove label from content using query diff --git a/src/api/contentMacroBody.ts b/src/api/contentMacroBody.ts index 4da3df32..d6905414 100644 --- a/src/api/contentMacroBody.ts +++ b/src/api/contentMacroBody.ts @@ -25,7 +25,7 @@ export class ContentMacroBody { */ async getMacroBodyByMacroId( parameters: Parameters.GetMacroBodyByMacroId, - callback: Callback + callback: Callback, ): Promise; /** * Returns the body of a macro in storage format, for the given macro ID. This includes information like the name of @@ -45,7 +45,7 @@ export class ContentMacroBody { */ async getMacroBodyByMacroId( parameters: Parameters.GetMacroBodyByMacroId, - callback?: never + callback?: never, ): Promise; async getMacroBodyByMacroId( parameters: Parameters.GetMacroBodyByMacroId, @@ -77,7 +77,7 @@ export class ContentMacroBody { */ async getAndConvertMacroBodyByMacroId( parameters: Parameters.GetAndConvertMacroBodyByMacroId, - callback: Callback + callback: Callback, ): Promise; /** * Returns the body of a macro in format specified in path, for the given macro ID. This includes information like the @@ -97,7 +97,7 @@ export class ContentMacroBody { */ async getAndConvertMacroBodyByMacroId( parameters: Parameters.GetAndConvertMacroBodyByMacroId, - callback?: never + callback?: never, ): Promise; async getAndConvertMacroBodyByMacroId( parameters: Parameters.GetAndConvertMacroBodyByMacroId, @@ -134,7 +134,7 @@ export class ContentMacroBody { */ async getAndAsyncConvertMacroBodyByMacroId( parameters: Parameters.GetAndAsyncConvertMacroBodyByMacroId, - callback: Callback + callback: Callback, ): Promise; /** * Returns Async Id of the conversion task which will convert the macro into a content body of the desired format. The @@ -154,7 +154,7 @@ export class ContentMacroBody { */ async getAndAsyncConvertMacroBodyByMacroId( parameters: Parameters.GetAndAsyncConvertMacroBodyByMacroId, - callback?: never + callback?: never, ): Promise; async getAndAsyncConvertMacroBodyByMacroId( parameters: Parameters.GetAndAsyncConvertMacroBodyByMacroId, diff --git a/src/api/contentPermissions.ts b/src/api/contentPermissions.ts index 858a9ca3..caa40126 100644 --- a/src/api/contentPermissions.ts +++ b/src/api/contentPermissions.ts @@ -10,12 +10,12 @@ export class ContentPermissions { /** @deprecated Will be removed in the next major version. Use `checkContentPermission` method instead. */ async permissionCheck( parameters: Parameters.PermissionCheck, - callback: Callback + callback: Callback, ): Promise; /** @deprecated Will be removed in the next major version. Use `checkContentPermission` method instead. */ async permissionCheck( parameters: Parameters.PermissionCheck, - callback?: never + callback?: never, ): Promise; async permissionCheck( parameters: Parameters.PermissionCheck, @@ -40,7 +40,7 @@ export class ContentPermissions { */ async checkContentPermission( parameters: Parameters.CheckContentPermission, - callback: Callback + callback: Callback, ): Promise; /** * Check if a user or a group can perform an operation to the specified content. The `operation` to check must be @@ -58,7 +58,7 @@ export class ContentPermissions { */ async checkContentPermission( parameters: Parameters.CheckContentPermission, - callback?: never + callback?: never, ): Promise; async checkContentPermission( parameters: Parameters.CheckContentPermission, diff --git a/src/api/contentProperties.ts b/src/api/contentProperties.ts index d56be0fc..45b0fa77 100644 --- a/src/api/contentProperties.ts +++ b/src/api/contentProperties.ts @@ -16,7 +16,7 @@ export class ContentProperties { */ async getContentProperties( parameters: Parameters.GetContentProperties, - callback: Callback + callback: Callback, ): Promise; /** * Returns the properties for a piece of content. For more information about content properties, see [Confluence @@ -27,7 +27,7 @@ export class ContentProperties { */ async getContentProperties( parameters: Parameters.GetContentProperties, - callback?: never + callback?: never, ): Promise; async getContentProperties( parameters: Parameters.GetContentProperties, @@ -61,7 +61,7 @@ export class ContentProperties { */ async createContentProperty( parameters: Parameters.CreateContentProperty, - callback: Callback + callback: Callback, ): Promise; /** * Creates a property for an existing piece of content. For more information about content properties, see [Confluence @@ -77,7 +77,7 @@ export class ContentProperties { */ async createContentProperty( parameters: Parameters.CreateContentProperty, - callback?: never + callback?: never, ): Promise; async createContentProperty( parameters: Parameters.CreateContentProperty, @@ -104,7 +104,7 @@ export class ContentProperties { */ async getContentProperty( parameters: Parameters.GetContentProperty, - callback: Callback + callback: Callback, ): Promise; /** * Returns a content property for a piece of content. For more information, see [Confluence entity @@ -115,7 +115,7 @@ export class ContentProperties { */ async getContentProperty( parameters: Parameters.GetContentProperty, - callback?: never + callback?: never, ): Promise; async getContentProperty( parameters: Parameters.GetContentProperty, @@ -147,7 +147,7 @@ export class ContentProperties { */ async createContentPropertyForKey( parameters: Parameters.CreateContentPropertyForKey, - callback: Callback + callback: Callback, ): Promise; /** * Creates a property for an existing piece of content. For more information about content properties, see [Confluence @@ -163,7 +163,7 @@ export class ContentProperties { */ async createContentPropertyForKey( parameters: Parameters.CreateContentPropertyForKey, - callback?: never + callback?: never, ): Promise; async createContentPropertyForKey( parameters: Parameters.CreateContentPropertyForKey, @@ -189,7 +189,7 @@ export class ContentProperties { */ async updateContentProperty( parameters: Parameters.UpdateContentProperty, - callback: Callback + callback: Callback, ): Promise; /** * Updates an existing content property. This method will also create a new property for a piece of content, if the @@ -200,7 +200,7 @@ export class ContentProperties { */ async updateContentProperty( parameters: Parameters.UpdateContentProperty, - callback?: never + callback?: never, ): Promise; async updateContentProperty( parameters: Parameters.UpdateContentProperty, @@ -226,7 +226,7 @@ export class ContentProperties { */ async deleteContentProperty( parameters: Parameters.DeleteContentProperty, - callback: Callback + callback: Callback, ): Promise; /** * Deletes a content property. For more information about content properties, see [Confluence entity diff --git a/src/api/contentRestrictions.ts b/src/api/contentRestrictions.ts index be6ae850..80b8b2df 100644 --- a/src/api/contentRestrictions.ts +++ b/src/api/contentRestrictions.ts @@ -14,7 +14,7 @@ export class ContentRestrictions { */ async getRestrictions( parameters: Parameters.GetRestrictions, - callback: Callback + callback: Callback, ): Promise; /** * Returns the restrictions on a piece of content. @@ -23,7 +23,7 @@ export class ContentRestrictions { */ async getRestrictions( parameters: Parameters.GetRestrictions, - callback?: never + callback?: never, ): Promise; async getRestrictions( parameters: Parameters.GetRestrictions, @@ -49,7 +49,7 @@ export class ContentRestrictions { */ async addRestrictions( parameters: Parameters.AddRestrictions, - callback: Callback + callback: Callback, ): Promise; /** * Adds restrictions to a piece of content. Note, this does not change any existing restrictions on the content. @@ -58,7 +58,7 @@ export class ContentRestrictions { */ async addRestrictions( parameters: Parameters.AddRestrictions, - callback?: never + callback?: never, ): Promise; async addRestrictions( parameters: Parameters.AddRestrictions, @@ -84,7 +84,7 @@ export class ContentRestrictions { */ async updateRestrictions( parameters: Parameters.UpdateRestrictions, - callback: Callback + callback: Callback, ): Promise; /** * Updates restrictions for a piece of content. This removes the existing restrictions and replaces them with the @@ -94,7 +94,7 @@ export class ContentRestrictions { */ async updateRestrictions( parameters: Parameters.UpdateRestrictions, - callback?: never + callback?: never, ): Promise; async updateRestrictions( parameters: Parameters.UpdateRestrictions, @@ -119,7 +119,7 @@ export class ContentRestrictions { */ async deleteRestrictions( parameters: Parameters.DeleteRestrictions, - callback: Callback + callback: Callback, ): Promise; /** * Removes all restrictions (read and update) on a piece of content. @@ -128,7 +128,7 @@ export class ContentRestrictions { */ async deleteRestrictions( parameters: Parameters.DeleteRestrictions, - callback?: never + callback?: never, ): Promise; async deleteRestrictions( parameters: Parameters.DeleteRestrictions, @@ -154,7 +154,7 @@ export class ContentRestrictions { */ async getRestrictionsByOperation( parameters: Parameters.GetRestrictionsByOperation, - callback: Callback + callback: Callback, ): Promise; /** * Returns restrictions on a piece of content by operation. This method is similar to [Get @@ -165,7 +165,7 @@ export class ContentRestrictions { */ async getRestrictionsByOperation( parameters: Parameters.GetRestrictionsByOperation, - callback?: never + callback?: never, ): Promise; async getRestrictionsByOperation( parameters: Parameters.GetRestrictionsByOperation, @@ -189,7 +189,7 @@ export class ContentRestrictions { */ async getRestrictionsForOperation( parameters: Parameters.GetRestrictionsForOperation, - callback: Callback + callback: Callback, ): Promise; /** * Returns the restictions on a piece of content for a given operation (read or update). @@ -198,7 +198,7 @@ export class ContentRestrictions { */ async getRestrictionsForOperation( parameters: Parameters.GetRestrictionsForOperation, - callback?: never + callback?: never, ): Promise; async getRestrictionsForOperation( parameters: Parameters.GetRestrictionsForOperation, @@ -231,7 +231,7 @@ export class ContentRestrictions { */ async getContentRestrictionStatusForGroup( parameters: Parameters.GetContentRestrictionStatusForGroup, - callback: Callback + callback: Callback, ): Promise; /** * Returns whether the specified content restriction applies to a group. For example, if a page with `id=123` has a @@ -247,7 +247,7 @@ export class ContentRestrictions { */ async getContentRestrictionStatusForGroup( parameters: Parameters.GetContentRestrictionStatusForGroup, - callback?: never + callback?: never, ): Promise; async getContentRestrictionStatusForGroup( parameters: Parameters.GetContentRestrictionStatusForGroup, @@ -269,7 +269,7 @@ export class ContentRestrictions { */ async addGroupToContentRestriction( parameters: Parameters.AddGroupToContentRestriction, - callback: Callback + callback: Callback, ): Promise; /** * Adds a group to a content restriction. That is, grant read or update permission to the group for a piece of @@ -279,7 +279,7 @@ export class ContentRestrictions { */ async addGroupToContentRestriction( parameters: Parameters.AddGroupToContentRestriction, - callback?: never + callback?: never, ): Promise; async addGroupToContentRestriction( parameters: Parameters.AddGroupToContentRestriction, @@ -333,7 +333,7 @@ export class ContentRestrictions { */ async getIndividualGroupRestrictionStatusByGroupId( parameters: Parameters.GetIndividualGroupRestrictionStatusByGroupId, - callback: Callback + callback: Callback, ): Promise; /** * Returns whether the specified content restriction applies to a group. For example, if a page with `id=123` has a @@ -349,7 +349,7 @@ export class ContentRestrictions { */ async getIndividualGroupRestrictionStatusByGroupId( parameters: Parameters.GetIndividualGroupRestrictionStatusByGroupId, - callback?: never + callback?: never, ): Promise; async getIndividualGroupRestrictionStatusByGroupId( parameters: Parameters.GetIndividualGroupRestrictionStatusByGroupId, @@ -371,7 +371,7 @@ export class ContentRestrictions { */ async addGroupToContentRestrictionByGroupId( parameters: Parameters.AddGroupToContentRestrictionByGroupId, - callback: Callback + callback: Callback, ): Promise; /** * Adds a group to a content restriction by Group Id. That is, grant read or update permission to the group for a @@ -381,7 +381,7 @@ export class ContentRestrictions { */ async addGroupToContentRestrictionByGroupId( parameters: Parameters.AddGroupToContentRestrictionByGroupId, - callback?: never + callback?: never, ): Promise; async addGroupToContentRestrictionByGroupId( parameters: Parameters.AddGroupToContentRestrictionByGroupId, @@ -436,7 +436,7 @@ export class ContentRestrictions { */ async getContentRestrictionStatusForUser( parameters: Parameters.GetContentRestrictionStatusForUser, - callback: Callback + callback: Callback, ): Promise; /** * Returns whether the specified content restriction applies to a user. For example, if a page with `id=123` has a @@ -453,7 +453,7 @@ export class ContentRestrictions { */ async getContentRestrictionStatusForUser( parameters: Parameters.GetContentRestrictionStatusForUser, - callback?: never + callback?: never, ): Promise; async getContentRestrictionStatusForUser( parameters: Parameters.GetContentRestrictionStatusForUser, @@ -479,7 +479,7 @@ export class ContentRestrictions { */ async addUserToContentRestriction( parameters: Parameters.AddUserToContentRestriction, - callback: Callback + callback: Callback, ): Promise; /** * Adds a user to a content restriction. That is, grant read or update permission to the user for a piece of content. @@ -488,7 +488,7 @@ export class ContentRestrictions { */ async addUserToContentRestriction( parameters: Parameters.AddUserToContentRestriction, - callback?: never + callback?: never, ): Promise; async addUserToContentRestriction( parameters: Parameters.AddUserToContentRestriction, @@ -515,7 +515,7 @@ export class ContentRestrictions { */ async removeUserFromContentRestriction( parameters: Parameters.RemoveUserFromContentRestriction, - callback: Callback + callback: Callback, ): Promise; /** * Removes a group from a content restriction. That is, remove read or update permission for the group for a piece of @@ -525,7 +525,7 @@ export class ContentRestrictions { */ async removeUserFromContentRestriction( parameters: Parameters.RemoveUserFromContentRestriction, - callback?: never + callback?: never, ): Promise; async removeUserFromContentRestriction( parameters: Parameters.RemoveUserFromContentRestriction, diff --git a/src/api/contentStates.ts b/src/api/contentStates.ts index 1c718758..49d72bc7 100644 --- a/src/api/contentStates.ts +++ b/src/api/contentStates.ts @@ -15,7 +15,7 @@ export class ContentStates { */ async getContentState( parameters: Parameters.GetContentState, - callback: Callback + callback: Callback, ): Promise; /** * Gets the current content state of the draft or current version of content. To specify the draft version, set the @@ -25,7 +25,7 @@ export class ContentStates { */ async getContentState( parameters: Parameters.GetContentState, - callback?: never + callback?: never, ): Promise; async getContentState( parameters: Parameters.GetContentState, @@ -58,7 +58,7 @@ export class ContentStates { */ async setContentState( parameters: Parameters.SetContentState, - callback: Callback + callback: Callback, ): Promise; /** * Sets the content state of the content specified and creates a new version (publishes the content without changing @@ -76,7 +76,7 @@ export class ContentStates { */ async setContentState( parameters: Parameters.SetContentState, - callback?: never + callback?: never, ): Promise; async setContentState( parameters: Parameters.SetContentState, @@ -106,7 +106,7 @@ export class ContentStates { */ async removeContentState( parameters: Parameters.RemoveContentState, - callback: Callback + callback: Callback, ): Promise; /** * Removes the content state of the content specified and creates a new version (publishes the content without @@ -116,7 +116,7 @@ export class ContentStates { */ async removeContentState( parameters: Parameters.RemoveContentState, - callback?: never + callback?: never, ): Promise; async removeContentState( parameters: Parameters.RemoveContentState, @@ -142,7 +142,7 @@ export class ContentStates { */ async getAvailableContentStates( parameters: Parameters.GetAvailableContentStates, - callback: Callback + callback: Callback, ): Promise; /** * Gets content states that are available for the content to be set as. Will return all enabled Space Content States. @@ -153,7 +153,7 @@ export class ContentStates { */ async getAvailableContentStates( parameters: Parameters.GetAvailableContentStates, - callback?: never + callback?: never, ): Promise; async getAvailableContentStates( parameters: Parameters.GetAvailableContentStates, @@ -195,7 +195,7 @@ export class ContentStates { */ async getSpaceContentStates( parameters: Parameters.GetSpaceContentStates, - callback: Callback + callback: Callback, ): Promise; /** * Get content states that are suggested in the space. @@ -204,7 +204,7 @@ export class ContentStates { */ async getSpaceContentStates( parameters: Parameters.GetSpaceContentStates, - callback?: never + callback?: never, ): Promise; async getSpaceContentStates( parameters: Parameters.GetSpaceContentStates, @@ -226,7 +226,7 @@ export class ContentStates { */ async getContentStateSettings( parameters: Parameters.GetContentStateSettings, - callback: Callback + callback: Callback, ): Promise; /** * Get object describing whether content states are allowed at all, if custom content states or space content states @@ -236,7 +236,7 @@ export class ContentStates { */ async getContentStateSettings( parameters: Parameters.GetContentStateSettings, - callback?: never + callback?: never, ): Promise; async getContentStateSettings( parameters: Parameters.GetContentStateSettings, diff --git a/src/api/contentVersions.ts b/src/api/contentVersions.ts index 88a019de..f4d87801 100644 --- a/src/api/contentVersions.ts +++ b/src/api/contentVersions.ts @@ -15,7 +15,7 @@ export class ContentVersions { */ async getContentVersions( parameters: Parameters.GetContentVersions, - callback: Callback + callback: Callback, ): Promise; /** * Returns the versions for a piece of content in descending order. @@ -25,7 +25,7 @@ export class ContentVersions { */ async getContentVersions( parameters: Parameters.GetContentVersions, - callback?: never + callback?: never, ): Promise; async getContentVersions( parameters: Parameters.GetContentVersions, @@ -52,7 +52,7 @@ export class ContentVersions { */ async restoreContentVersion( parameters: Parameters.RestoreContentVersion, - callback: Callback + callback: Callback, ): Promise; /** * Restores a historical version to be the latest version. That is, a new version is created with the content of the @@ -62,7 +62,7 @@ export class ContentVersions { */ async restoreContentVersion( parameters: Parameters.RestoreContentVersion, - callback?: never + callback?: never, ): Promise; async restoreContentVersion( parameters: Parameters.RestoreContentVersion, @@ -91,7 +91,7 @@ export class ContentVersions { */ async getContentVersion( parameters: Parameters.GetContentVersion, - callback: Callback + callback: Callback, ): Promise; /** * Returns a version for a piece of content. @@ -123,7 +123,7 @@ export class ContentVersions { */ async deleteContentVersion( parameters: Parameters.DeleteContentVersion, - callback: Callback + callback: Callback, ): Promise; /** * Delete a historical version. This does not delete the changes made to the content in that version, rather the diff --git a/src/api/contentWatches.ts b/src/api/contentWatches.ts index 0ba2f0c1..e2a14f3b 100644 --- a/src/api/contentWatches.ts +++ b/src/api/contentWatches.ts @@ -22,7 +22,7 @@ export class ContentWatches { */ async getWatchesForPage( parameters: Parameters.GetWatchesForPage, - callback: Callback + callback: Callback, ): Promise; /** * Returns the watches for a page. A user that watches a page will receive receive notifications when the page is @@ -39,7 +39,7 @@ export class ContentWatches { */ async getWatchesForPage( parameters: Parameters.GetWatchesForPage, - callback?: never + callback?: never, ): Promise; async getWatchesForPage( parameters: Parameters.GetWatchesForPage, @@ -72,7 +72,7 @@ export class ContentWatches { */ async getWatchesForSpace( parameters: Parameters.GetWatchesForSpace, - callback: Callback + callback: Callback, ): Promise; /** * Returns all space watches for the space that the content is in. A user that watches a space will receive receive @@ -89,7 +89,7 @@ export class ContentWatches { */ async getWatchesForSpace( parameters: Parameters.GetWatchesForSpace, - callback?: never + callback?: never, ): Promise; async getWatchesForSpace( parameters: Parameters.GetWatchesForSpace, @@ -110,12 +110,12 @@ export class ContentWatches { /** Returns a list of watchers of a space */ async getWatchersForSpace( parameters: Parameters.GetWatchersForSpace, - callback: Callback + callback: Callback, ): Promise; /** Returns a list of watchers of a space */ async getWatchersForSpace( parameters: Parameters.GetWatchersForSpace, - callback?: never + callback?: never, ): Promise; async getWatchersForSpace( parameters: Parameters.GetWatchersForSpace, @@ -144,7 +144,7 @@ export class ContentWatches { */ async getContentWatchStatus( parameters: Parameters.GetContentWatchStatus, - callback: Callback + callback: Callback, ): Promise; /** * Returns whether a user is watching a piece of content. Choose the user by doing one of the following: @@ -157,7 +157,7 @@ export class ContentWatches { */ async getContentWatchStatus( parameters: Parameters.GetContentWatchStatus, - callback?: never + callback?: never, ): Promise; async getContentWatchStatus( parameters: Parameters.GetContentWatchStatus, @@ -230,7 +230,7 @@ export class ContentWatches { */ async removeContentWatcher( parameters: Parameters.RemoveContentWatcher, - callback: Callback + callback: Callback, ): Promise; /** * Removes a user as a watcher from a piece of content. Choose the user by doing one of the following: @@ -273,7 +273,7 @@ export class ContentWatches { */ async isWatchingLabel( parameters: Parameters.IsWatchingLabel, - callback: Callback + callback: Callback, ): Promise; /** * Returns whether a user is watching a label. Choose the user by doing one of the following: @@ -393,7 +393,7 @@ export class ContentWatches { */ async isWatchingSpace( parameters: Parameters.IsWatchingSpace, - callback: Callback + callback: Callback, ): Promise; /** * Returns whether a user is watching a space. Choose the user by doing one of the following: diff --git a/src/api/dynamicModules.ts b/src/api/dynamicModules.ts index d8262fb8..18669213 100644 --- a/src/api/dynamicModules.ts +++ b/src/api/dynamicModules.ts @@ -35,7 +35,7 @@ export class DynamicModules { */ async registerModules( parameters: Parameters.RegisterModules | undefined, - callback: Callback + callback: Callback, ): Promise; /** * Registers a list of modules. For the list of modules that support dynamic registration, see [Dynamic diff --git a/src/api/experimental.ts b/src/api/experimental.ts index 7bdde218..e7122e76 100644 --- a/src/api/experimental.ts +++ b/src/api/experimental.ts @@ -22,7 +22,7 @@ export class Experimental { */ async deletePageTree( parameters: Parameters.DeletePageTree, - callback: Callback + callback: Callback, ): Promise; /** * Moves a pagetree rooted at a page to the space's trash: @@ -56,7 +56,7 @@ export class Experimental { */ async getLabelsForSpace( parameters: Parameters.GetLabelsForSpace, - callback: Callback + callback: Callback, ): Promise; /** * Returns a list of labels associated with a space. Can provide a prefix as well as other filters to select different @@ -64,7 +64,7 @@ export class Experimental { */ async getLabelsForSpace( parameters: Parameters.GetLabelsForSpace, - callback?: never + callback?: never, ): Promise; async getLabelsForSpace( parameters: Parameters.GetLabelsForSpace, @@ -96,7 +96,7 @@ export class Experimental { */ async addLabelsToSpace( parameters: Parameters.AddLabelsToSpace, - callback: Callback + callback: Callback, ): Promise; /** * Adds labels to a piece of content. Does not modify the existing labels. @@ -124,7 +124,7 @@ export class Experimental { async deleteLabelFromSpace( parameters: Parameters.DeleteLabelFromSpace, - callback: Callback + callback: Callback, ): Promise; async deleteLabelFromSpace(parameters: Parameters.DeleteLabelFromSpace, callback?: never): Promise; async deleteLabelFromSpace( @@ -153,7 +153,7 @@ export class Experimental { */ async getUserProperties( parameters: Parameters.GetUserProperties, - callback: Callback + callback: Callback, ): Promise; /** * Returns the properties for a user as list of property keys. For more information about user properties, see @@ -165,7 +165,7 @@ export class Experimental { */ async getUserProperties( parameters: Parameters.GetUserProperties, - callback?: never + callback?: never, ): Promise; async getUserProperties( parameters: Parameters.GetUserProperties, @@ -193,7 +193,7 @@ export class Experimental { */ async getUserProperty( parameters: Parameters.GetUserProperty, - callback: Callback + callback: Callback, ): Promise; /** * Returns the property corresponding to `key` for a user. For more information about user properties, see [Confluence @@ -227,7 +227,7 @@ export class Experimental { */ async createUserProperty( parameters: Parameters.CreateUserProperty, - callback: Callback + callback: Callback, ): Promise; /** * Creates a property for a user. For more information about user properties, see [Confluence entity properties] diff --git a/src/api/group.ts b/src/api/group.ts index 1f317dea..f5ec77df 100644 --- a/src/api/group.ts +++ b/src/api/group.ts @@ -15,7 +15,7 @@ export class Group { */ async getGroups( parameters: Parameters.GetGroups | undefined, - callback: Callback + callback: Callback, ): Promise; /** * Returns all user groups. The returned groups are ordered alphabetically in ascending order by group name. @@ -48,7 +48,7 @@ export class Group { */ async createGroup( parameters: Parameters.CreateGroup | undefined, - callback: Callback + callback: Callback, ): Promise; /** * Creates a new user group. @@ -100,7 +100,7 @@ export class Group { */ async getGroupByQueryParam( parameters: Parameters.GetGroupByQueryParam, - callback: Callback + callback: Callback, ): Promise; /** * Returns a user group for a given group name. @@ -110,7 +110,7 @@ export class Group { */ async getGroupByQueryParam( parameters: Parameters.GetGroupByQueryParam, - callback?: never + callback?: never, ): Promise; async getGroupByQueryParam( parameters: Parameters.GetGroupByQueryParam, @@ -135,7 +135,7 @@ export class Group { */ async getGroupByGroupId( parameters: Parameters.GetGroupByGroupId, - callback: Callback + callback: Callback, ): Promise; /** * Returns a user group for a given group id. @@ -229,7 +229,7 @@ export class Group { */ async getMembersByQueryParam( parameters: Parameters.GetMembersByQueryParam, - callback: Callback + callback: Callback, ): Promise; /** * Returns the users that are members of a group. @@ -239,7 +239,7 @@ export class Group { */ async getMembersByQueryParam( parameters: Parameters.GetMembersByQueryParam, - callback?: never + callback?: never, ): Promise; async getMembersByQueryParam( parameters: Parameters.GetMembersByQueryParam, @@ -269,7 +269,7 @@ export class Group { */ async getGroupMembers( parameters: Parameters.GetGroupMembers, - callback: Callback + callback: Callback, ): Promise; /** * Returns the users that are members of a group. @@ -299,12 +299,12 @@ export class Group { /** @deprecated Will be removed in the next major version. Use `searchGroups` instead. */ async getGroupsSearch( parameters: Parameters.GetGroupsSearch, - callback: Callback + callback: Callback, ): Promise; /** @deprecated Will be removed in the next major version. Use `searchGroups` instead. */ async getGroupsSearch( parameters: Parameters.GetGroupsSearch, - callback?: never + callback?: never, ): Promise; async getGroupsSearch( parameters: Parameters.GetGroupsSearch, @@ -316,7 +316,7 @@ export class Group { /** Get search results of groups by partial query provided. */ async searchGroups( parameters: Parameters.SearchGroups, - callback: Callback + callback: Callback, ): Promise; /** Get search results of groups by partial query provided. */ async searchGroups(parameters: Parameters.SearchGroups, callback?: never): Promise; @@ -345,7 +345,7 @@ export class Group { */ async addUserToGroupByGroupId( parameters: Parameters.AddUserToGroupByGroupId, - callback: Callback + callback: Callback, ): Promise; /** * Adds a user as a member in a group represented by its groupId @@ -354,7 +354,7 @@ export class Group { */ async addUserToGroupByGroupId( parameters: Parameters.AddUserToGroupByGroupId, - callback?: never + callback?: never, ): Promise; async addUserToGroupByGroupId( parameters: Parameters.AddUserToGroupByGroupId, @@ -381,7 +381,7 @@ export class Group { */ async removeMemberFromGroupByGroupId( parameters: Parameters.RemoveMemberFromGroupByGroupId, - callback: Callback + callback: Callback, ): Promise; /** * Remove user as a member from a group. @@ -390,7 +390,7 @@ export class Group { */ async removeMemberFromGroupByGroupId( parameters: Parameters.RemoveMemberFromGroupByGroupId, - callback?: never + callback?: never, ): Promise; async removeMemberFromGroupByGroupId( parameters: Parameters.RemoveMemberFromGroupByGroupId, @@ -418,7 +418,7 @@ export class Group { */ async getGroupMembersByGroupId( parameters: Parameters.GetGroupMembersByGroupId, - callback: Callback + callback: Callback, ): Promise; /** * Returns the users that are members of a group. @@ -430,7 +430,7 @@ export class Group { */ async getGroupMembersByGroupId( parameters: Parameters.GetGroupMembersByGroupId, - callback?: never + callback?: never, ): Promise; async getGroupMembersByGroupId( parameters: Parameters.GetGroupMembersByGroupId, @@ -483,7 +483,7 @@ export class Group { */ async removeMemberFromGroup( parameters: Parameters.RemoveMemberFromGroup, - callback: Callback + callback: Callback, ): Promise; /** * Remove user as a member from a group. diff --git a/src/api/inlineTasks.ts b/src/api/inlineTasks.ts index 4948d540..9512147e 100644 --- a/src/api/inlineTasks.ts +++ b/src/api/inlineTasks.ts @@ -15,7 +15,7 @@ export class InlineTasks { */ async searchTasks( parameters: Parameters.SearchTasks | undefined, - callback: Callback + callback: Callback, ): Promise; /** * Returns inline tasks based on the search query. diff --git a/src/api/labelInfo.ts b/src/api/labelInfo.ts index 9496b879..4c776963 100644 --- a/src/api/labelInfo.ts +++ b/src/api/labelInfo.ts @@ -15,7 +15,7 @@ export class LabelInfo { */ async getAllLabelContent( parameters: Parameters.GetAllLabelContent, - callback: Callback + callback: Callback, ): Promise; /** * Returns label information and a list of contents associated with the label. @@ -25,7 +25,7 @@ export class LabelInfo { */ async getAllLabelContent( parameters: Parameters.GetAllLabelContent, - callback?: never + callback?: never, ): Promise; async getAllLabelContent( parameters: Parameters.GetAllLabelContent, diff --git a/src/api/longRunningTask.ts b/src/api/longRunningTask.ts index b84f3de0..fc7f4aa1 100644 --- a/src/api/longRunningTask.ts +++ b/src/api/longRunningTask.ts @@ -16,7 +16,7 @@ export class LongRunningTask { */ async getTasks( parameters: Parameters.GetTasks | undefined, - callback: Callback + callback: Callback, ): Promise; /** * Returns information about all active long-running tasks (e.g. space export), such as how long each task has been @@ -51,7 +51,7 @@ export class LongRunningTask { */ async getTask( parameters: Parameters.GetTask, - callback: Callback + callback: Callback, ): Promise; /** * Returns information about an active long-running task (e.g. space export), such as how long it has been running and diff --git a/src/api/models/addContentRestriction.ts b/src/api/models/addContentRestriction.ts index 4d22b61d..297f78e7 100644 --- a/src/api/models/addContentRestriction.ts +++ b/src/api/models/addContentRestriction.ts @@ -6,18 +6,23 @@ export interface AddContentRestriction { * this object. */ restrictions: { - /** The users that the restrictions will be applied to. This array must have at least one item, otherwise it should be omitted. */ + /** + * The users that the restrictions will be applied to. This array must have at least one item, otherwise it should + * be omitted. + */ user?: { /** Set to 'known'. */ type: string; /** * This property is no longer available and will be removed from the documentation soon. Use `accountId` instead. - * See the [deprecation notice](/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/) for details. + * See the [deprecation notice](/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/) for + * details. */ username?: string; /** * This property is no longer available and will be removed from the documentation soon. Use `accountId` instead. - * See the [deprecation notice](/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/) for details. + * See the [deprecation notice](/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/) for + * details. */ userKey?: string; /** diff --git a/src/api/models/appDescriptor.ts b/src/api/models/appDescriptor.ts index 98336070..77d0203e 100644 --- a/src/api/models/appDescriptor.ts +++ b/src/api/models/appDescriptor.ts @@ -10,7 +10,8 @@ export interface AppDescriptor { /** * The base url of the remote app, which is used for all communications back to the app instance. * - * The baseUrl must start with `https://` to ensure that all data is sent securely between our cloud instances and your app. + * The baseUrl must start with `https://` to ensure that all data is sent securely between our cloud instances and + * your app. * * Note: each app must have a unique baseUrl. If you would like to serve multiple apps from the same host, consider * adding a path prefix into the baseUrl. @@ -27,7 +28,8 @@ export interface AppDescriptor { * app as a private version, and have a seamless transition for those beta customers (and existing customers) once the * major revision is launched. * - * Vendors can accomplish this by listing a new private version of their app, with a new descriptor hosted at a new URL. + * Vendors can accomplish this by listing a new private version of their app, with a new descriptor hosted at a new + * URL. * * They use the Atlassian Marketplace's access token facilities to share this version with customers (or for internal * use). When this version is ready to be taken live, it can be transitioned from private to public, and all customers @@ -35,7 +37,8 @@ export interface AppDescriptor { * * It's important to note that this approach allows vendors to create new versions manually, despite the fact that in * the common case, the versions are automatically created. This has a few benefits-- for example, it gives vendors - * the ability to change their descriptor URL if they need to (the descriptor URL will be immutable for existing versions). + * the ability to change their descriptor URL if they need to (the descriptor URL will be immutable for existing + * versions). */ apiVersion?: number; diff --git a/src/api/models/asyncContentBody.ts b/src/api/models/asyncContentBody.ts index 80b26cd5..55cffc0c 100644 --- a/src/api/models/asyncContentBody.ts +++ b/src/api/models/asyncContentBody.ts @@ -8,8 +8,8 @@ export interface AsyncContentBody { renderTaskId?: string; error?: string; /** - * Rerunning is reserved for when the job is working, but there is a previous run's value in the cache. You may - * choose to continue polling, or use the cached value. + * Rerunning is reserved for when the job is working, but there is a previous run's value in the cache. You may choose + * to continue polling, or use the cached value. */ status?: string; embeddedContent?: EmbeddedContent[]; diff --git a/src/api/models/attachmentContainer.ts b/src/api/models/attachmentContainer.ts index da234ba9..5e33522a 100644 --- a/src/api/models/attachmentContainer.ts +++ b/src/api/models/attachmentContainer.ts @@ -13,7 +13,7 @@ export interface AttachmentContainer { container: string; metadata: string; restrictions: string; - history:string; + history: string; body: string; version: string; descendants: string; diff --git a/src/api/models/attachmentUpdate.ts b/src/api/models/attachmentUpdate.ts index 118ca19d..1caf6f63 100644 --- a/src/api/models/attachmentUpdate.ts +++ b/src/api/models/attachmentUpdate.ts @@ -1,4 +1,4 @@ -/** @deprecated will be removed in second major version */ +/** @deprecated Will be removed in second major version */ export interface AttachmentUpdate { /** * The attachment version. Set this to the current version number of the attachment. Note, the version number only diff --git a/src/api/models/auditRecordCreate.ts b/src/api/models/auditRecordCreate.ts index 64f3f533..93f8db50 100644 --- a/src/api/models/auditRecordCreate.ts +++ b/src/api/models/auditRecordCreate.ts @@ -22,12 +22,16 @@ export interface AuditRecordCreate { remoteAddress: string; /** * The creation date-time of the audit record, as a timestamp. This is converted to a date-time display in the - * Confluence UI. If the `creationDate` is not specified, then it will be set to the timestamp for the current date-time. + * Confluence UI. If the `creationDate` is not specified, then it will be set to the timestamp for the current + * date-time. */ creationDate?: number; /** The summary of the event, which is displayed in the 'Change' column on the audit log in the Confluence UI. */ summary?: string; - /** A long description of the event, which is displayed in the 'Description' field on the audit log in the Confluence UI. */ + /** + * A long description of the event, which is displayed in the 'Description' field on the audit log in the Confluence + * UI. + */ description?: string; /** The category of the event, which is displayed in the 'Event type' column on the audit log in the Confluence UI. */ category?: string; diff --git a/src/api/models/contentBlueprintDraft.ts b/src/api/models/contentBlueprintDraft.ts index 25b4c5f7..fb0f0d01 100644 --- a/src/api/models/contentBlueprintDraft.ts +++ b/src/api/models/contentBlueprintDraft.ts @@ -19,7 +19,8 @@ export interface ContentBlueprintDraft { * The new ancestor (i.e. parent page) for the content. If you have specified an ancestor, you must also specify a * `space` property in the request body for the space that the ancestor is in. * - * Note, if you specify more than one ancestor, the last ID in the array will be selected as the parent page for the content. + * Note, if you specify more than one ancestor, the last ID in the array will be selected as the parent page for the + * content. */ ancestors?: { /** The content ID of the ancestor. */ diff --git a/src/api/models/contentRestrictionUpdate.ts b/src/api/models/contentRestrictionUpdate.ts index 87e592cd..68c36980 100644 --- a/src/api/models/contentRestrictionUpdate.ts +++ b/src/api/models/contentRestrictionUpdate.ts @@ -6,18 +6,23 @@ export interface ContentRestrictionUpdate { * this object. */ restrictions: { - /** The users that the restrictions will be applied to. This array must have at least one item, otherwise it should be omitted. */ + /** + * The users that the restrictions will be applied to. This array must have at least one item, otherwise it should + * be omitted. + */ user?: { /** Set to 'known'. */ type: string; /** * This property is no longer available and will be removed from the documentation soon. Use `accountId` instead. - * See the [deprecation notice](/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/) for details. + * See the [deprecation notice](/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/) for + * details. */ username?: string; /** * This property is no longer available and will be removed from the documentation soon. Use `accountId` instead. - * See the [deprecation notice](/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/) for details. + * See the [deprecation notice](/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/) for + * details. */ userKey?: string; /** diff --git a/src/api/models/contentTemplateUpdate.ts b/src/api/models/contentTemplateUpdate.ts index 4149f97b..230bc24f 100644 --- a/src/api/models/contentTemplateUpdate.ts +++ b/src/api/models/contentTemplateUpdate.ts @@ -14,7 +14,10 @@ export interface ContentTemplateUpdate { description?: string; /** Labels for the template. */ labels?: Label[]; - /** The key for the space of the template. Required if the template is a space template. Set this to the current `space.key`. */ + /** + * The key for the space of the template. Required if the template is a space template. Set this to the current + * `space.key`. + */ space?: { key: string; }; diff --git a/src/api/models/lifecycle.ts b/src/api/models/lifecycle.ts index a8a49f74..2225c0b7 100644 --- a/src/api/models/lifecycle.ts +++ b/src/api/models/lifecycle.ts @@ -20,7 +20,10 @@ export interface Lifecycle { */ clientKey?: string; - /** @deprecated This is the public key for this Atlassian product instance. This field is deprecated and should not be used. */ + /** + * @deprecated This is the public key for this Atlassian product instance. This field is deprecated and should not be + * used. + */ publicKey?: string; /** @@ -31,7 +34,8 @@ export interface Lifecycle { /** * Use this string to sign outgoing JWT tokens and validate incoming JWT tokens. Optional: and may not be present on - * non-JWT app installations, and is only sent on the `installed` event. All instances of your app use the same shared secret. + * non-JWT app installations, and is only sent on the `installed` event. All instances of your app use the same shared + * secret. */ sharedSecret?: string; diff --git a/src/api/parameters/addLabelsToContent.ts b/src/api/parameters/addLabelsToContent.ts index 77b363dd..c71ee34a 100644 --- a/src/api/parameters/addLabelsToContent.ts +++ b/src/api/parameters/addLabelsToContent.ts @@ -4,7 +4,8 @@ export interface AddLabelsToContent { /** The ID of the content that will have labels added to it. */ id: string; /** - * If true, return the new 400 error response on invalid requests. Otherwise return a server error response on invalid requests. + * If true, return the new 400 error response on invalid requests. Otherwise return a server error response on invalid + * requests. * * Why does this parameter exist? Previously, our API was returning a 500 status code with a difficult-to-consume * response body. We've fixed the response to have a 400 status code and a more useful body. This parameter enables a diff --git a/src/api/parameters/createContent.ts b/src/api/parameters/createContent.ts index b87c749c..0155ab06 100644 --- a/src/api/parameters/createContent.ts +++ b/src/api/parameters/createContent.ts @@ -60,7 +60,10 @@ export namespace CreateContent { UpdateGroupRestriction = 'restrictions.update.restrictions.group', /** Returns the history of the content, including the date it was created. */ History = 'history', - /** Returns information about the most recent update of the content, including who updated it and when it was updated. */ + /** + * Returns information about the most recent update of the content, including who updated it and when it was + * updated. + */ LastUpdated = 'history.lastUpdated', /** Returns information about the update prior to the current content update. */ PreviousVersion = 'history.previousVersion', @@ -70,9 +73,15 @@ export namespace CreateContent { NextVersion = 'history.nextVersion', /** Returns the parent page, if the content is a page. */ Ancestors = 'ancestors', - /** Returns the body of the content in different formats, including the editor format, view format, and export format. */ + /** + * Returns the body of the content in different formats, including the editor format, view format, and export + * format. + */ Body = 'body', - /** Returns information about the most recent update of the content, including who updated it and when it was updated. */ + /** + * Returns information about the most recent update of the content, including who updated it and when it was + * updated. + */ Version = 'version', /** Returns pages that are descendants at any level below the content. */ PageDescendant = 'descendants.page', diff --git a/src/api/parameters/createRelationship.ts b/src/api/parameters/createRelationship.ts index 6b02815b..ec6b4061 100644 --- a/src/api/parameters/createRelationship.ts +++ b/src/api/parameters/createRelationship.ts @@ -14,7 +14,10 @@ export interface CreateRelationship { * - If `sourceType` is 'space', then specify the space key. */ sourceKey: string; - /** The target entity type of the relationship. This must be 'space' or 'content', if the `relationName` is 'favourite'. */ + /** + * The target entity type of the relationship. This must be 'space' or 'content', if the `relationName` is + * 'favourite'. + */ targetType: string; /** * - The identifier for the target entity: diff --git a/src/api/parameters/createUserProperty.ts b/src/api/parameters/createUserProperty.ts index ad10f788..a3a71464 100644 --- a/src/api/parameters/createUserProperty.ts +++ b/src/api/parameters/createUserProperty.ts @@ -2,8 +2,8 @@ import { UserPropertyCreate } from '../models'; export interface CreateUserProperty extends UserPropertyCreate { /** - * The account ID of the user. The accountId uniquely identifies the user across all Atlassian products. For - * example, 384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192 + * The account ID of the user. The accountId uniquely identifies the user across all Atlassian products. For example, + * 384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192 */ userId: string; /** The key of the user property. */ diff --git a/src/api/parameters/delete.ts b/src/api/parameters/delete.ts index e71224a4..7ee71fa6 100644 --- a/src/api/parameters/delete.ts +++ b/src/api/parameters/delete.ts @@ -11,7 +11,10 @@ export interface Delete { * - If `sourceType` is 'space', then specify the space key. */ sourceKey: string; - /** The target entity type of the relationship. This must be 'space' or 'content', if the `relationName` is 'favourite'. */ + /** + * The target entity type of the relationship. This must be 'space' or 'content', if the `relationName` is + * 'favourite'. + */ targetType: string; /** * - The identifier for the target entity: diff --git a/src/api/parameters/deleteRelationship.ts b/src/api/parameters/deleteRelationship.ts index f639368d..0acec42b 100644 --- a/src/api/parameters/deleteRelationship.ts +++ b/src/api/parameters/deleteRelationship.ts @@ -11,7 +11,10 @@ export interface DeleteRelationship { * - If `sourceType` is 'space', then specify the space key. */ sourceKey: string; - /** The target entity type of the relationship. This must be 'space' or 'content', if the `relationName` is 'favourite'. */ + /** + * The target entity type of the relationship. This must be 'space' or 'content', if the `relationName` is + * 'favourite'. + */ targetType: string; /** * - The identifier for the target entity: @@ -26,13 +29,13 @@ export interface DeleteRelationship { /** The status of the target. This parameter is only used when the `targetType` is 'content'. */ targetStatus?: string; /** - * The version of the source. This parameter is only used when the `sourceType` is 'content' and the `sourceStatus` - * is 'historical'. + * The version of the source. This parameter is only used when the `sourceType` is 'content' and the `sourceStatus` is + * 'historical'. */ sourceVersion?: number; /** - * The version of the target. This parameter is only used when the `targetType` is 'content' and the `targetStatus` - * is 'historical'. + * The version of the target. This parameter is only used when the `targetType` is 'content' and the `targetStatus` is + * 'historical'. */ targetVersion?: number; } diff --git a/src/api/parameters/deleteUserProperty.ts b/src/api/parameters/deleteUserProperty.ts index 8aa45310..df7e5c22 100644 --- a/src/api/parameters/deleteUserProperty.ts +++ b/src/api/parameters/deleteUserProperty.ts @@ -1,7 +1,7 @@ export interface DeleteUserProperty { /** - * The account ID of the user. The accountId uniquely identifies the user across all Atlassian products. For - * example, 384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192 + * The account ID of the user. The accountId uniquely identifies the user across all Atlassian products. For example, + * 384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192 */ userId: string; /** The key of the user property. */ diff --git a/src/api/parameters/findSourcesForTarget.ts b/src/api/parameters/findSourcesForTarget.ts index a5447d0b..04d187f0 100644 --- a/src/api/parameters/findSourcesForTarget.ts +++ b/src/api/parameters/findSourcesForTarget.ts @@ -15,7 +15,8 @@ export interface FindSourcesForTarget { * - If `targetType` is `user`, then specify either `current` (logged-in user), the user key of the user, or the account * ID of the user. Note that the user key has been deprecated in favor of the account ID for this parameter. See the * [migration - * guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/) for details. + * guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/) for + * details. * - If `targetType` is 'content', then specify the content ID. * - If `targetType` is 'space', then specify the space key. */ diff --git a/src/api/parameters/findTargetFromSource.ts b/src/api/parameters/findTargetFromSource.ts index 35e6a729..daf1b7d0 100644 --- a/src/api/parameters/findTargetFromSource.ts +++ b/src/api/parameters/findTargetFromSource.ts @@ -13,7 +13,8 @@ export interface FindTargetFromSource { * - If `sourceType` is `user`, then specify either `current` (logged-in user), the user key of the user, or the account * ID of the user. Note that the user key has been deprecated in favor of the account ID for this parameter. See the * [migration - * guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/) for details. + * guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/) for + * details. * - If `sourceType` is 'content', then specify the content ID. * - If `sourceType` is 'space', then specify the space key. */ diff --git a/src/api/parameters/getAttachments.ts b/src/api/parameters/getAttachments.ts index 657279cf..2b22d6a2 100644 --- a/src/api/parameters/getAttachments.ts +++ b/src/api/parameters/getAttachments.ts @@ -136,7 +136,10 @@ export namespace GetAttachments { UpdateGroupRestriction = 'restrictions.update.restrictions.group', /** Returns the history of the content, including the date it was created. */ History = 'history', - /** Returns information about the most recent update of the content, including who updated it and when it was updated. */ + /** + * Returns information about the most recent update of the content, including who updated it and when it was + * updated. + */ LastUpdated = 'history.lastUpdated', /** Returns information about the update prior to the current content update. */ PreviousVersion = 'history.previousVersion', @@ -146,9 +149,15 @@ export namespace GetAttachments { NextVersion = 'history.nextVersion', /** Returns the parent page, if the content is a page. */ Ancestors = 'ancestors', - /** Returns the body of the content in different formats, including the editor format, view format, and export format. */ + /** + * Returns the body of the content in different formats, including the editor format, view format, and export + * format. + */ Body = 'body', - /** Returns information about the most recent update of the content, including who updated it and when it was updated. */ + /** + * Returns information about the most recent update of the content, including who updated it and when it was + * updated. + */ Version = 'version', /** Returns pages that are descendants at any level below the content. */ PageDescendant = 'descendants.page', diff --git a/src/api/parameters/getAvailableContentStates.ts b/src/api/parameters/getAvailableContentStates.ts index 97a24dfc..5880700e 100644 --- a/src/api/parameters/getAvailableContentStates.ts +++ b/src/api/parameters/getAvailableContentStates.ts @@ -1,5 +1,5 @@ export interface GetAvailableContentStates { - /**id of content to get available states for*/ + /** Id of content to get available states for */ id?: string; /** @deprecated Id of content to get available states for */ diff --git a/src/api/parameters/getContent.ts b/src/api/parameters/getContent.ts index 3b099e04..03561db9 100644 --- a/src/api/parameters/getContent.ts +++ b/src/api/parameters/getContent.ts @@ -10,7 +10,10 @@ export interface GetContent { * Note, the `historical` status is currently not supported. */ status?: string[]; - /** The posting date of the blog post to be returned. Required for blogpost type. Format: yyyy-mm-dd. */ + /** + * The posting date of the blog post to be returned. Required for blogpost type. Format: + * yyyy-mm-dd. + */ postingDay?: string; /** A multi-value parameter indicating which properties of the content to expand. */ expand?: string | string[] | GetContent.Expand | GetContent.Expand[]; @@ -83,7 +86,10 @@ export namespace GetContent { UpdateGroupRestriction = 'restrictions.update.restrictions.group', /** Returns the history of the content, including the date it was created. */ History = 'history', - /** Returns information about the most recent update of the content, including who updated it and when it was updated. */ + /** + * Returns information about the most recent update of the content, including who updated it and when it was + * updated. + */ LastUpdated = 'history.lastUpdated', /** Returns information about the update prior to the current content update. */ PreviousVersion = 'history.previousVersion', @@ -93,9 +99,15 @@ export namespace GetContent { NextVersion = 'history.nextVersion', /** Returns the parent page, if the content is a page. */ Ancestors = 'ancestors', - /** Returns the body of the content in different formats, including the editor format, view format, and export format. */ + /** + * Returns the body of the content in different formats, including the editor format, view format, and export + * format. + */ Body = 'body', - /** Returns information about the most recent update of the content, including who updated it and when it was updated. */ + /** + * Returns information about the most recent update of the content, including who updated it and when it was + * updated. + */ Version = 'version', /** Returns pages that are descendants at any level below the content. */ PageDescendant = 'descendants.page', diff --git a/src/api/parameters/getContentById.ts b/src/api/parameters/getContentById.ts index 5e17c731..dccbb293 100644 --- a/src/api/parameters/getContentById.ts +++ b/src/api/parameters/getContentById.ts @@ -80,7 +80,10 @@ export namespace GetContentById { UpdateGroupRestriction = 'restrictions.update.restrictions.group', /** Returns the history of the content, including the date it was created. */ History = 'history', - /** Returns information about the most recent update of the content, including who updated it and when it was updated. */ + /** + * Returns information about the most recent update of the content, including who updated it and when it was + * updated. + */ LastUpdated = 'history.lastUpdated', /** Returns information about the update prior to the current content update. */ PreviousVersion = 'history.previousVersion', @@ -90,9 +93,15 @@ export namespace GetContentById { NextVersion = 'history.nextVersion', /** Returns the parent page, if the content is a page. */ Ancestors = 'ancestors', - /** Returns the body of the content in different formats, including the editor format, view format, and export format. */ + /** + * Returns the body of the content in different formats, including the editor format, view format, and export + * format. + */ Body = 'body', - /** Returns information about the most recent update of the content, including who updated it and when it was updated. */ + /** + * Returns information about the most recent update of the content, including who updated it and when it was + * updated. + */ Version = 'version', /** Returns pages that are descendants at any level below the content. */ PageDescendant = 'descendants.page', diff --git a/src/api/parameters/getContentProperties.ts b/src/api/parameters/getContentProperties.ts index b35eac7d..977a4d33 100644 --- a/src/api/parameters/getContentProperties.ts +++ b/src/api/parameters/getContentProperties.ts @@ -4,10 +4,12 @@ export interface GetContentProperties { /** The key of the content property. */ key?: string[]; /** - * A multi-value parameter indicating which properties of the content to expand. By default, the `version` object is expanded. + * A multi-value parameter indicating which properties of the content to expand. By default, the `version` object is + * expanded. * * - `content` returns the content that the property is stored against. - * - `version` returns information about the version of the property, such as the version number, when it was created, etc. + * - `version` returns information about the version of the property, such as the version number, when it was created, + * etc. */ expand?: string[]; /** The starting index of the returned properties. */ diff --git a/src/api/parameters/getContentProperty.ts b/src/api/parameters/getContentProperty.ts index 590fa5d8..fae016d2 100644 --- a/src/api/parameters/getContentProperty.ts +++ b/src/api/parameters/getContentProperty.ts @@ -4,22 +4,24 @@ export interface GetContentProperty { /** The key of the content property. */ key: string; /** - * A multi-value parameter indicating which properties of the content to expand. By default, the `version` object is expanded. + * A multi-value parameter indicating which properties of the content to expand. By default, the `version` object is + * expanded. * * - `content` returns the content that the property is stored against. - * - `version` returns information about the version of the property, such as the version number, when it was created, etc. + * - `version` returns information about the version of the property, such as the version number, when it was created, + * etc. */ expand?: string[]; /** * Filter the results to a set of content based on their status. If set to `any`, content with any status is returned. * By default it will fetch current and archived statuses `?status=current&status=archived`. All supported statuses * - * - any - * - archived - * - current - * - deleted - * - draft - * - trashed + * - Any + * - Archived + * - Current + * - Deleted + * - Draft + * - Trashed */ status?: string[]; } diff --git a/src/api/parameters/getContentTemplates.ts b/src/api/parameters/getContentTemplates.ts index d2aab909..74cbb06e 100644 --- a/src/api/parameters/getContentTemplates.ts +++ b/src/api/parameters/getContentTemplates.ts @@ -1,5 +1,8 @@ export interface GetContentTemplates { - /** The key of the space to be queried for templates. If the `spaceKey` is not specified, global templates will be returned. */ + /** + * The key of the space to be queried for templates. If the `spaceKey` is not specified, global templates will be + * returned. + */ spaceKey?: string; /** The starting index of the returned templates. */ start?: number; diff --git a/src/api/parameters/getContentVersion.ts b/src/api/parameters/getContentVersion.ts index 47d8e531..1fe1e753 100644 --- a/src/api/parameters/getContentVersion.ts +++ b/src/api/parameters/getContentVersion.ts @@ -4,7 +4,8 @@ export interface GetContentVersion { /** The number of the version to be retrieved. */ versionNumber: number; /** - * A multi-value parameter indicating which properties of the content to expand. By default, the `content` object is expanded. + * A multi-value parameter indicating which properties of the content to expand. By default, the `content` object is + * expanded. * * - `collaborators` returns the users that collaborated on the version. * - `content` returns the content for the version. diff --git a/src/api/parameters/getContentVersions.ts b/src/api/parameters/getContentVersions.ts index de7ffaa9..f1ee4a41 100644 --- a/src/api/parameters/getContentVersions.ts +++ b/src/api/parameters/getContentVersions.ts @@ -6,7 +6,8 @@ export interface GetContentVersions { /** The maximum number of versions to return per page. Note, this may be restricted by fixed system limits. */ limit?: number; /** - * A multi-value parameter indicating which properties of the content to expand. By default, the `content` object is expanded. + * A multi-value parameter indicating which properties of the content to expand. By default, the `content` object is + * expanded. * * - `collaborators` returns the users that collaborated on the version. * - `content` returns the content for the version. diff --git a/src/api/parameters/getDescendantsOfType.ts b/src/api/parameters/getDescendantsOfType.ts index 5d06db81..3d3baadc 100644 --- a/src/api/parameters/getDescendantsOfType.ts +++ b/src/api/parameters/getDescendantsOfType.ts @@ -69,7 +69,10 @@ export namespace GetDescendantsOfType { UpdateGroupRestriction = 'restrictions.update.restrictions.group', /** Returns the history of the content, including the date it was created. */ History = 'history', - /** Returns information about the most recent update of the content, including who updated it and when it was updated. */ + /** + * Returns information about the most recent update of the content, including who updated it and when it was + * updated. + */ LastUpdated = 'history.lastUpdated', /** Returns information about the update prior to the current content update. */ PreviousVersion = 'history.previousVersion', @@ -79,9 +82,15 @@ export namespace GetDescendantsOfType { NextVersion = 'history.nextVersion', /** Returns the parent page, if the content is a page. */ Ancestors = 'ancestors', - /** Returns the body of the content in different formats, including the editor format, view format, and export format. */ + /** + * Returns the body of the content in different formats, including the editor format, view format, and export + * format. + */ Body = 'body', - /** Returns information about the most recent update of the content, including who updated it and when it was updated. */ + /** + * Returns information about the most recent update of the content, including who updated it and when it was + * updated. + */ Version = 'version', /** Returns pages that are descendants at any level below the content. */ PageDescendant = 'descendants.page', diff --git a/src/api/parameters/getHistoryForContent.ts b/src/api/parameters/getHistoryForContent.ts index 7c065736..c774f720 100644 --- a/src/api/parameters/getHistoryForContent.ts +++ b/src/api/parameters/getHistoryForContent.ts @@ -2,7 +2,8 @@ export interface GetHistoryForContent { /** The ID of the content to be queried for its history. */ id: string; /** - * A multi-value parameter indicating which properties of the content history to expand. Maximum sub-expansions allowed is `8`. + * A multi-value parameter indicating which properties of the content history to expand. Maximum sub-expansions + * allowed is `8`. * * - `lastUpdated` returns information about the most recent update of the content, including who updated it and when it * was updated. diff --git a/src/api/parameters/getLabelsForContent.ts b/src/api/parameters/getLabelsForContent.ts index 1860ab44..2a9a6aa6 100644 --- a/src/api/parameters/getLabelsForContent.ts +++ b/src/api/parameters/getLabelsForContent.ts @@ -8,7 +8,8 @@ export interface GetLabelsForContent { * - `global` prefix is used by default when a user adds a label via the UI. * - `my` prefix can be explicitly added by a user when adding a label via the UI, e.g. 'my:example-label'. Also, when a * page is selected as a favourite, the 'my:favourite' label is automatically added. - * - `team` can used when adding labels via [Add labels to content](#api-content-id-label-post) but is not used in the UI. + * - `team` can used when adding labels via [Add labels to content](#api-content-id-label-post) but is not used in the + * UI. */ prefix?: string; /** The starting index of the returned labels. */ diff --git a/src/api/parameters/getRelationship.ts b/src/api/parameters/getRelationship.ts index 921b8125..a246d8aa 100644 --- a/src/api/parameters/getRelationship.ts +++ b/src/api/parameters/getRelationship.ts @@ -19,7 +19,10 @@ export interface GetRelationship { * - If `sourceType` is 'space', then specify the space key. */ sourceKey: string; - /** The target entity type of the relationship. This must be 'space' or 'content', if the `relationName` is 'favourite'. */ + /** + * The target entity type of the relationship. This must be 'space' or 'content', if the `relationName` is + * 'favourite'. + */ targetType: string; /** * The identifier for the target entity: @@ -27,7 +30,8 @@ export interface GetRelationship { * - If `targetType` is `user`, then specify either `current` (logged-in user), the user key of the user, or the account * ID of the user. Note that the user key has been deprecated in favor of the account ID for this parameter. See the * [migration - * guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/) for details. + * guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/) for + * details. * - If `targetType` is 'content', then specify the content ID. * - If `targetType` is 'space', then specify the space key. */ diff --git a/src/api/parameters/getSpaces.ts b/src/api/parameters/getSpaces.ts index ee4c428e..8664b113 100644 --- a/src/api/parameters/getSpaces.ts +++ b/src/api/parameters/getSpaces.ts @@ -1,7 +1,13 @@ export interface GetSpaces { - /** The key of the space to be returned. To return multiple spaces, specify this parameter multiple times with different values. */ + /** + * The key of the space to be returned. To return multiple spaces, specify this parameter multiple times with + * different values. + */ spaceKey?: string[]; - /** The id of the space to be returned. To return multiple spaces, specify this parameter multiple times with different values. */ + /** + * The id of the space to be returned. To return multiple spaces, specify this parameter multiple times with different + * values. + */ spaceId?: number[]; /** Filter the results to spaces based on their type. */ type?: string; @@ -15,7 +21,8 @@ export interface GetSpaces { */ favourite?: boolean; /** - * The userKey of the user, whose favourite spaces are used to filter the results when using the `favourite` parameter. + * The userKey of the user, whose favourite spaces are used to filter the results when using the `favourite` + * parameter. * * Leave blank for the current user. Use [Get user](#api-user-get) to get the userKey for a user. */ diff --git a/src/api/parameters/removeGroupById.ts b/src/api/parameters/removeGroupById.ts index 2a7e6d39..ce40bf0c 100644 --- a/src/api/parameters/removeGroupById.ts +++ b/src/api/parameters/removeGroupById.ts @@ -5,8 +5,8 @@ export interface RemoveGroupById { * The operation that the restriction applies to. * * @example - * "read"; - * "update"; + * 'read'; + * 'update'; */ operationKey: string; /** The id of the group to remove from the content restriction. */ diff --git a/src/api/parameters/removeGroupByName.ts b/src/api/parameters/removeGroupByName.ts index f06a9e93..afded5ae 100644 --- a/src/api/parameters/removeGroupByName.ts +++ b/src/api/parameters/removeGroupByName.ts @@ -5,8 +5,8 @@ export interface RemoveGroupByName { * The operation that the restriction applies to. * * @example - * "read"; - * "update"; + * 'read'; + * 'update'; */ operationKey: string; /** The name of the group to remove from the content restriction. */ diff --git a/src/api/parameters/removeModules.ts b/src/api/parameters/removeModules.ts index 7a4eb0da..410214ec 100644 --- a/src/api/parameters/removeModules.ts +++ b/src/api/parameters/removeModules.ts @@ -1,7 +1,8 @@ export interface RemoveModules { /** * The key of the module to remove. To include multiple module keys, provide multiple copies of this parameter. For - * example, `moduleKey=dynamic-attachment-entity-property&moduleKey=dynamic-select-field`. Nonexistent keys are ignored. + * example, `moduleKey=dynamic-attachment-entity-property&moduleKey=dynamic-select-field`. Nonexistent keys are + * ignored. */ moduleKey: string[]; } diff --git a/src/api/parameters/restoreContentVersion.ts b/src/api/parameters/restoreContentVersion.ts index 036894c2..8e68c18b 100644 --- a/src/api/parameters/restoreContentVersion.ts +++ b/src/api/parameters/restoreContentVersion.ts @@ -4,7 +4,8 @@ export interface RestoreContentVersion extends VersionRestore { /** The ID of the content for which the history will be restored. */ id: string; /** - * A multi-value parameter indicating which properties of the content to expand. By default, the `content` object is expanded. + * A multi-value parameter indicating which properties of the content to expand. By default, the `content` object is + * expanded. * * - `collaborators` returns the users that collaborated on the version. * - `content` returns the content for the version. diff --git a/src/api/parameters/search.ts b/src/api/parameters/search.ts index 01768c28..02d77d8b 100644 --- a/src/api/parameters/search.ts +++ b/src/api/parameters/search.ts @@ -34,10 +34,10 @@ export interface Search { * - ContentStatuses Content statuses to search against. Optional. Specify these values in an object. * * @example - * "cqlcontext={%22spaceKey%22:%22TEST%22, %22contentId%22:%22123%22}"; + * 'cqlcontext={%22spaceKey%22:%22TEST%22, %22contentId%22:%22123%22}'; */ cqlcontext?: string; - /** Pointer to a set of search results, returned as part of the *next* or *prev* URL from the previous search call. */ + /** Pointer to a set of search results, returned as part of the _next_ or _prev_ URL from the previous search call. */ cursor?: string; /** * Include content from archived spaces in the results. diff --git a/src/api/parameters/updateAttachmentProperties.ts b/src/api/parameters/updateAttachmentProperties.ts index 6db3dc30..c31a66d5 100644 --- a/src/api/parameters/updateAttachmentProperties.ts +++ b/src/api/parameters/updateAttachmentProperties.ts @@ -46,21 +46,21 @@ export namespace UpdateAttachmentProperties { macroRenderedOutput?: any; extensions?: any; _expandable?: { - 'childTypes': string; - 'container': string; - 'metadata': string; - 'operations': string; - 'children': string; - 'restrictions': string; - 'history': string; - 'ancestors': string; - 'body': string; - 'version': string; - 'descendants': string; - 'space': string; - 'extensions': string; - 'schedulePublishDate': string; - 'macroRenderedOutput': string + childTypes: string; + container: string; + metadata: string; + operations: string; + children: string; + restrictions: string; + history: string; + ancestors: string; + body: string; + version: string; + descendants: string; + space: string; + extensions: string; + schedulePublishDate: string; + macroRenderedOutput: string; }; _links?: GenericLinks; } diff --git a/src/api/parameters/updateUserProperty.ts b/src/api/parameters/updateUserProperty.ts index 4cb8ec73..d2515369 100644 --- a/src/api/parameters/updateUserProperty.ts +++ b/src/api/parameters/updateUserProperty.ts @@ -2,8 +2,8 @@ import { UserPropertyUpdate } from '../models'; export interface UpdateUserProperty extends UserPropertyUpdate { /** - * The account ID of the user. The accountId uniquely identifies the user across all Atlassian products. For - * example, 384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192 + * The account ID of the user. The accountId uniquely identifies the user across all Atlassian products. For example, + * 384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192 */ userId: string; /** The key of the user property. */ diff --git a/src/api/relation.ts b/src/api/relation.ts index 3faee454..5f55637f 100644 --- a/src/api/relation.ts +++ b/src/api/relation.ts @@ -20,7 +20,7 @@ export class Relation { */ async findTargetFromSource( parameters: Parameters.FindTargetFromSource, - callback: Callback + callback: Callback, ): Promise; /** * Returns all target entities that have a particular relationship to the source entity. Note, relationships are one @@ -35,7 +35,7 @@ export class Relation { */ async findTargetFromSource( parameters: Parameters.FindTargetFromSource, - callback?: never + callback?: never, ): Promise; async findTargetFromSource( parameters: Parameters.FindTargetFromSource, @@ -61,7 +61,7 @@ export class Relation { /** @deprecated Will be removed in the next major version. Use `getRelationship` instead. */ async GetRelationship( parameters: Parameters.GetRelationship, - callback: Callback + callback: Callback, ): Promise; /** @deprecated Will be removed in the next major version. Use `getRelationship` instead. */ async GetRelationship(parameters: Parameters.GetRelationship, callback?: never): Promise; @@ -85,7 +85,7 @@ export class Relation { */ async getRelationship( parameters: Parameters.GetRelationship, - callback: Callback + callback: Callback, ): Promise; /** * Find whether a particular type of relationship exists from a source entity to a target entity. Note, relationships @@ -130,7 +130,7 @@ export class Relation { */ async createRelationship( parameters: Parameters.CreateRelationship, - callback: Callback + callback: Callback, ): Promise; /** * Creates a relationship between two entities (user, space, content). The 'favourite' relationship is supported by @@ -144,7 +144,7 @@ export class Relation { */ async createRelationship( parameters: Parameters.CreateRelationship, - callback?: never + callback?: never, ): Promise; async createRelationship( parameters: Parameters.CreateRelationship, @@ -220,7 +220,7 @@ export class Relation { */ async findSourcesForTarget( parameters: Parameters.FindSourcesForTarget, - callback: Callback + callback: Callback, ): Promise; /** * Returns all target entities that have a particular relationship to the source entity. Note, relationships are one @@ -236,7 +236,7 @@ export class Relation { */ async findSourcesForTarget( parameters: Parameters.FindSourcesForTarget, - callback?: never + callback?: never, ): Promise; async findSourcesForTarget( parameters: Parameters.FindSourcesForTarget, diff --git a/src/api/search.ts b/src/api/search.ts index a2955f87..1098f4d4 100644 --- a/src/api/search.ts +++ b/src/api/search.ts @@ -10,7 +10,7 @@ export class Search { /** @deprecated Will be removed in the next major version. Use `searchByCQL` instead. */ async search( parameters: Parameters.Search, - callback: Callback + callback: Callback, ): Promise; /** @deprecated Will be removed in the next major version. Use `searchByCQL` instead. */ async search(parameters: Parameters.Search, callback?: never): Promise; @@ -34,7 +34,7 @@ export class Search { */ async searchByCQL( parameters: Parameters.SearchByCQL, - callback: Callback + callback: Callback, ): Promise; /** * Searches for content using the [Confluence Query Language @@ -49,7 +49,7 @@ export class Search { */ async searchByCQL( parameters: Parameters.SearchByCQL, - callback?: never + callback?: never, ): Promise; async searchByCQL( parameters: Parameters.SearchByCQL, @@ -80,12 +80,12 @@ export class Search { /** @deprecated Will be removed in the next major version. Use `searchUser` instead. */ async userSearch( parameters: Parameters.UserSearch, - callback: Callback + callback: Callback, ): Promise; /** @deprecated Will be removed in the next major version. Use `searchUser` instead. */ async userSearch( parameters: Parameters.UserSearch, - callback?: never + callback?: never, ): Promise; async userSearch( parameters: Parameters.UserSearch, @@ -103,7 +103,7 @@ export class Search { */ async searchUser( parameters: Parameters.SearchUser, - callback: Callback + callback: Callback, ): Promise; /** * Searches for users using user-specific queries from the [Confluence Query Language @@ -114,7 +114,7 @@ export class Search { */ async searchUser( parameters: Parameters.SearchUser, - callback?: never + callback?: never, ): Promise; async searchUser( parameters: Parameters.SearchUser, diff --git a/src/api/settings.ts b/src/api/settings.ts index b16b6f78..0325a1a9 100644 --- a/src/api/settings.ts +++ b/src/api/settings.ts @@ -18,7 +18,7 @@ export class Settings { */ async getLookAndFeelSettings( parameters: Parameters.GetLookAndFeelSettings | undefined, - callback: Callback + callback: Callback, ): Promise; /** * Returns the look and feel settings for the site or a single space. This includes attributes such as the color @@ -31,7 +31,7 @@ export class Settings { */ async getLookAndFeelSettings( parameters?: Parameters.GetLookAndFeelSettings, - callback?: never + callback?: never, ): Promise; async getLookAndFeelSettings( parameters?: Parameters.GetLookAndFeelSettings, @@ -57,7 +57,7 @@ export class Settings { */ async updateLookAndFeel( parameters: Parameters.UpdateLookAndFeel | undefined, - callback: Callback + callback: Callback, ): Promise; /** * Sets the look and feel settings to the default (global) settings, the custom settings, or the current theme's @@ -68,7 +68,7 @@ export class Settings { */ async updateLookAndFeel( parameters?: Parameters.UpdateLookAndFeel, - callback?: never + callback?: never, ): Promise; async updateLookAndFeel( parameters?: Parameters.UpdateLookAndFeel, @@ -97,7 +97,7 @@ export class Settings { */ async updateLookAndFeelSettings( parameters: Parameters.UpdateLookAndFeelSettings | undefined, - callback: Callback + callback: Callback, ): Promise; /** * Updates the look and feel settings for the site or for a single space. If custom settings exist, they are updated. @@ -110,7 +110,7 @@ export class Settings { */ async updateLookAndFeelSettings( parameters?: Parameters.UpdateLookAndFeelSettings, - callback?: never + callback?: never, ): Promise; async updateLookAndFeelSettings( parameters?: Parameters.UpdateLookAndFeelSettings, @@ -147,7 +147,7 @@ export class Settings { */ async resetLookAndFeelSettings( parameters: Parameters.ResetLookAndFeelSettings | undefined, - callback: Callback + callback: Callback, ): Promise; /** * Resets the custom look and feel settings for the site or a single space. This changes the values of the custom @@ -158,7 +158,7 @@ export class Settings { */ async resetLookAndFeelSettings( parameters?: Parameters.ResetLookAndFeelSettings, - callback?: never + callback?: never, ): Promise; async resetLookAndFeelSettings( parameters?: Parameters.ResetLookAndFeelSettings, @@ -183,7 +183,7 @@ export class Settings { */ async setLookAndFeelSettings( parameters: Parameters.SetLookAndFeelSettings | undefined, - callback: Callback + callback: Callback, ): Promise; /** * Sets the look and feel settings to either the default settings or the custom settings, for the site or a single @@ -193,7 +193,7 @@ export class Settings { */ async setLookAndFeelSettings( parameters?: Parameters.SetLookAndFeelSettings, - callback?: never + callback?: never, ): Promise; async setLookAndFeelSettings( parameters?: Parameters.SetLookAndFeelSettings, @@ -236,12 +236,12 @@ export class Settings { /** @deprecated Gets Content State settings for a space */ async getContentStateSettings( parameters: Parameters.GetContentStateSettings, - callback: Callback + callback: Callback, ): Promise; /** @deprecated Gets Content State settings for a space */ async getContentStateSettings( parameters: Parameters.GetContentStateSettings, - callback?: never + callback?: never, ): Promise; async getContentStateSettings( parameters: Parameters.GetContentStateSettings, diff --git a/src/api/space.ts b/src/api/space.ts index 06069ad1..0a784fdb 100644 --- a/src/api/space.ts +++ b/src/api/space.ts @@ -17,7 +17,7 @@ export class Space { */ async getSpaces( parameters: Parameters.GetSpaces | undefined, - callback: Callback + callback: Callback, ): Promise; /** * Returns all spaces. The returned spaces are ordered alphabetically in ascending order by space key. @@ -55,7 +55,7 @@ export class Space { */ async createSpace( parameters: Parameters.CreateSpace | undefined, - callback: Callback + callback: Callback, ): Promise; /** * Creates a new space. Note, currently you cannot set space labels when creating a space. @@ -87,7 +87,7 @@ export class Space { */ async createPrivateSpace( parameters: Parameters.CreatePrivateSpace | undefined, - callback: Callback + callback: Callback, ): Promise; /** * Creates a new space that is only visible to the creator. This method is the same as the [Create @@ -212,7 +212,7 @@ export class Space { */ async getContentForSpace( parameters: Parameters.GetContentForSpace, - callback: Callback + callback: Callback, ): Promise; /** * Returns all content in a space. The returned content is grouped by type (pages then blogposts), then ordered by @@ -223,7 +223,7 @@ export class Space { */ async getContentForSpace( parameters: Parameters.GetContentForSpace, - callback?: never + callback?: never, ): Promise; async getContentForSpace( parameters: Parameters.GetContentForSpace, @@ -250,7 +250,7 @@ export class Space { */ async getContentByTypeForSpace( parameters: Parameters.GetContentByTypeForSpace, - callback: Callback + callback: Callback, ): Promise; /** * Returns all content of a given type, in a space. The returned content is ordered by content ID in ascending order. @@ -260,7 +260,7 @@ export class Space { */ async getContentByTypeForSpace( parameters: Parameters.GetContentByTypeForSpace, - callback?: never + callback?: never, ): Promise; async getContentByTypeForSpace( parameters: Parameters.GetContentByTypeForSpace, diff --git a/src/api/spacePermissions.ts b/src/api/spacePermissions.ts index c307ba08..3e05c155 100644 --- a/src/api/spacePermissions.ts +++ b/src/api/spacePermissions.ts @@ -10,7 +10,7 @@ export class SpacePermissions { /** @deprecated Will be removed in the next major version. Use `addPermissionToSpace` instead. */ async addPermission( parameters: Parameters.AddPermission, - callback: Callback + callback: Callback, ): Promise; /** @deprecated Will be removed in the next major version. Use `addPermissionToSpace` instead. */ async addPermission(parameters: Parameters.AddPermission, callback?: never): Promise; @@ -32,7 +32,7 @@ export class SpacePermissions { */ async addPermissionToSpace( parameters: Parameters.AddPermissionToSpace, - callback: Callback + callback: Callback, ): Promise; /** * Adds new permission to space. @@ -45,7 +45,7 @@ export class SpacePermissions { */ async addPermissionToSpace( parameters: Parameters.AddPermissionToSpace, - callback?: never + callback?: never, ): Promise; async addPermissionToSpace( parameters: Parameters.AddPermissionToSpace, @@ -75,7 +75,7 @@ export class SpacePermissions { */ async addCustomContentPermissions( parameters: Parameters.AddCustomContentPermissions, - callback: Callback + callback: Callback, ): Promise; /** * Adds new custom content permission to space. @@ -88,7 +88,7 @@ export class SpacePermissions { */ async addCustomContentPermissions( parameters: Parameters.AddCustomContentPermissions, - callback?: never + callback?: never, ): Promise; async addCustomContentPermissions( parameters: Parameters.AddCustomContentPermissions, diff --git a/src/api/spaceProperties.ts b/src/api/spaceProperties.ts index 54348031..a287f4e9 100644 --- a/src/api/spaceProperties.ts +++ b/src/api/spaceProperties.ts @@ -14,7 +14,7 @@ export class SpaceProperties { */ async getSpaceProperties( parameters: Parameters.GetSpaceProperties, - callback: Callback + callback: Callback, ): Promise; /** * Returns all properties for the given space. Space properties are a key-value storage associated with a space. @@ -23,7 +23,7 @@ export class SpaceProperties { */ async getSpaceProperties( parameters: Parameters.GetSpaceProperties, - callback?: never + callback?: never, ): Promise; async getSpaceProperties( parameters: Parameters.GetSpaceProperties, @@ -49,7 +49,7 @@ export class SpaceProperties { */ async createSpaceProperty( parameters: Parameters.CreateSpaceProperty, - callback: Callback + callback: Callback, ): Promise; /** * Creates a new space property. @@ -58,7 +58,7 @@ export class SpaceProperties { */ async createSpaceProperty( parameters: Parameters.CreateSpaceProperty, - callback?: never + callback?: never, ): Promise; async createSpaceProperty( parameters: Parameters.CreateSpaceProperty, @@ -84,7 +84,7 @@ export class SpaceProperties { */ async getSpaceProperty( parameters: Parameters.GetSpaceProperty, - callback: Callback + callback: Callback, ): Promise; /** * Returns a space property. @@ -93,7 +93,7 @@ export class SpaceProperties { */ async getSpaceProperty( parameters: Parameters.GetSpaceProperty, - callback?: never + callback?: never, ): Promise; async getSpaceProperty( parameters: Parameters.GetSpaceProperty, @@ -118,7 +118,7 @@ export class SpaceProperties { */ async createSpacePropertyForKey( parameters: Parameters.CreateSpacePropertyForKey, - callback: Callback + callback: Callback, ): Promise; /** * Creates a new space property. This is the same as `POST /api/space/{spaceKey}/property` but the key for the @@ -128,7 +128,7 @@ export class SpaceProperties { */ async createSpacePropertyForKey( parameters: Parameters.CreateSpacePropertyForKey, - callback?: never + callback?: never, ): Promise; async createSpacePropertyForKey( parameters: Parameters.CreateSpacePropertyForKey, @@ -152,7 +152,7 @@ export class SpaceProperties { */ async updateSpaceProperty( parameters: Parameters.UpdateSpaceProperty, - callback: Callback + callback: Callback, ): Promise; /** * Updates a space property. Note, you cannot update the key of a space property, only the value. @@ -161,7 +161,7 @@ export class SpaceProperties { */ async updateSpaceProperty( parameters: Parameters.UpdateSpaceProperty, - callback?: never + callback?: never, ): Promise; async updateSpaceProperty( parameters: Parameters.UpdateSpaceProperty, diff --git a/src/api/spaceSettings.ts b/src/api/spaceSettings.ts index 7bcb0f8f..b593cfa7 100644 --- a/src/api/spaceSettings.ts +++ b/src/api/spaceSettings.ts @@ -14,7 +14,7 @@ export class SpaceSettings { */ async getSpaceSettings( parameters: Parameters.GetSpaceSettings, - callback: Callback + callback: Callback, ): Promise; /** * Returns the settings of a space. Currently only the `routeOverrideEnabled` setting can be returned. @@ -23,7 +23,7 @@ export class SpaceSettings { */ async getSpaceSettings( parameters: Parameters.GetSpaceSettings, - callback?: never + callback?: never, ): Promise; async getSpaceSettings( parameters: Parameters.GetSpaceSettings, @@ -44,7 +44,7 @@ export class SpaceSettings { */ async updateSpaceSettings( parameters: Parameters.UpdateSpaceSettings, - callback: Callback + callback: Callback, ): Promise; /** * Updates the settings for a space. Currently only the `routeOverrideEnabled` setting can be updated. @@ -53,7 +53,7 @@ export class SpaceSettings { */ async updateSpaceSettings( parameters: Parameters.UpdateSpaceSettings, - callback?: never + callback?: never, ): Promise; async updateSpaceSettings( parameters: Parameters.UpdateSpaceSettings, diff --git a/src/api/template.ts b/src/api/template.ts index 4f58a116..08b18511 100644 --- a/src/api/template.ts +++ b/src/api/template.ts @@ -15,7 +15,7 @@ export class Template { */ async createContentTemplate( parameters: Parameters.CreateContentTemplate | undefined, - callback: Callback + callback: Callback, ): Promise; /** * Creates a new content template. Note, blueprint templates cannot be created via the REST API. @@ -25,7 +25,7 @@ export class Template { */ async createContentTemplate( parameters?: Parameters.CreateContentTemplate, - callback?: never + callback?: never, ): Promise; async createContentTemplate( parameters?: Parameters.CreateContentTemplate, @@ -55,7 +55,7 @@ export class Template { */ async updateContentTemplate( parameters: Parameters.UpdateContentTemplate | undefined, - callback: Callback + callback: Callback, ): Promise; /** * Updates a content template. Note, blueprint templates cannot be updated via the REST API. @@ -65,7 +65,7 @@ export class Template { */ async updateContentTemplate( parameters?: Parameters.UpdateContentTemplate, - callback?: never + callback?: never, ): Promise; async updateContentTemplate( parameters?: Parameters.UpdateContentTemplate, @@ -101,7 +101,7 @@ export class Template { */ async getBlueprintTemplates( parameters: Parameters.GetBlueprintTemplates | undefined, - callback: Callback + callback: Callback, ): Promise; /** * Returns all templates provided by blueprints. Use this method to retrieve all global blueprint templates or all @@ -116,7 +116,7 @@ export class Template { */ async getBlueprintTemplates( parameters?: Parameters.GetBlueprintTemplates, - callback?: never + callback?: never, ): Promise; async getBlueprintTemplates( parameters?: Parameters.GetBlueprintTemplates, @@ -146,7 +146,7 @@ export class Template { */ async getContentTemplates( parameters: Parameters.GetContentTemplates | undefined, - callback: Callback + callback: Callback, ): Promise; /** * Returns all content templates. Use this method to retrieve all global content templates or all content templates in @@ -158,7 +158,7 @@ export class Template { */ async getContentTemplates( parameters?: Parameters.GetContentTemplates, - callback?: never + callback?: never, ): Promise; async getContentTemplates( parameters?: Parameters.GetContentTemplates, @@ -188,7 +188,7 @@ export class Template { */ async getContentTemplate( parameters: Parameters.GetContentTemplate, - callback: Callback + callback: Callback, ): Promise; /** * Returns a content template. This includes information about template, like the name, the space or blueprint that @@ -200,7 +200,7 @@ export class Template { */ async getContentTemplate( parameters: Parameters.GetContentTemplate, - callback?: never + callback?: never, ): Promise; async getContentTemplate( parameters: Parameters.GetContentTemplate, diff --git a/src/api/themes.ts b/src/api/themes.ts index 79274fb2..58f15dbb 100644 --- a/src/api/themes.ts +++ b/src/api/themes.ts @@ -14,7 +14,7 @@ export class Themes { */ async getThemes( parameters: Parameters.GetThemes | undefined, - callback: Callback + callback: Callback, ): Promise; /** * Returns all themes, not including the default theme. diff --git a/src/api/users.ts b/src/api/users.ts index a2d83754..722e83ac 100644 --- a/src/api/users.ts +++ b/src/api/users.ts @@ -52,7 +52,7 @@ export class Users { */ async getAnonymousUser( parameters: Parameters.GetAnonymousUser | undefined, - callback: Callback + callback: Callback, ): Promise; /** * Returns information about how anonymous users are represented, like the profile picture and display name. @@ -62,7 +62,7 @@ export class Users { */ async getAnonymousUser( parameters?: Parameters.GetAnonymousUser, - callback?: never + callback?: never, ): Promise; async getAnonymousUser( parameters?: Parameters.GetAnonymousUser, @@ -88,7 +88,7 @@ export class Users { */ async getCurrentUser( parameters: Parameters.GetCurrentUser | undefined, - callback: Callback + callback: Callback, ): Promise; /** * Returns the currently logged-in user. This includes information about the user, like the display name, userKey, @@ -121,7 +121,7 @@ export class Users { */ async getGroupMembershipsForUser( parameters: Parameters.GetGroupMembershipsForUser, - callback: Callback + callback: Callback, ): Promise; /** * Returns the groups that a user is a member of. @@ -131,7 +131,7 @@ export class Users { */ async getGroupMembershipsForUser( parameters: Parameters.GetGroupMembershipsForUser, - callback?: never + callback?: never, ): Promise; async getGroupMembershipsForUser( parameters: Parameters.GetGroupMembershipsForUser, @@ -160,7 +160,7 @@ export class Users { */ async getBulkUserLookup( parameters: Parameters.GetBulkUserLookup, - callback: Callback + callback: Callback, ): Promise; /** * Returns user details for the ids provided in request. @@ -170,7 +170,7 @@ export class Users { */ async getBulkUserLookup( parameters: Parameters.GetBulkUserLookup, - callback?: never + callback?: never, ): Promise; async getBulkUserLookup( parameters: Parameters.GetBulkUserLookup, @@ -198,7 +198,7 @@ export class Users { */ async getPrivacyUnsafeUserEmail( parameters: Parameters.GetPrivacyUnsafeUserEmail, - callback: Callback + callback: Callback, ): Promise; /** * Returns a user's email address. This API is only available to apps approved by Atlassian, according to these @@ -209,7 +209,7 @@ export class Users { */ async getPrivacyUnsafeUserEmail( parameters: Parameters.GetPrivacyUnsafeUserEmail, - callback?: never + callback?: never, ): Promise; async getPrivacyUnsafeUserEmail( parameters: Parameters.GetPrivacyUnsafeUserEmail, @@ -238,7 +238,7 @@ export class Users { */ async getPrivacyUnsafeUserEmailBulk( parameters: Parameters.GetPrivacyUnsafeUserEmailBulk, - callback: Callback + callback: Callback, ): Promise; /** * Returns user email addresses for a set of accountIds. This API is only available to apps approved by Atlassian, @@ -252,7 +252,7 @@ export class Users { */ async getPrivacyUnsafeUserEmailBulk( parameters: Parameters.GetPrivacyUnsafeUserEmailBulk, - callback?: never + callback?: never, ): Promise; async getPrivacyUnsafeUserEmailBulk( parameters: Parameters.GetPrivacyUnsafeUserEmailBulk, @@ -278,7 +278,7 @@ export class Users { */ async getBulkUserMigration( parameters: Parameters.GetBulkUserMigration, - callback: Callback + callback: Callback, ): Promise; /** * Returns the accountIds for the users specified in the key or username parameters. Note that multiple key and @@ -289,7 +289,7 @@ export class Users { */ async getBulkUserMigration( parameters: Parameters.GetBulkUserMigration, - callback?: never + callback?: never, ): Promise; async getBulkUserMigration( parameters: Parameters.GetBulkUserMigration, diff --git a/src/config.ts b/src/config.ts index 8d7ce6a1..6a9995b4 100644 --- a/src/config.ts +++ b/src/config.ts @@ -9,9 +9,7 @@ export interface Config { middlewares?: Config.Middlewares; /** @deprecated Disabled. Will be removed in the next major version. */ telemetry?: Config.Telemetry; - /** - * Adds `'X-Atlassian-Token': 'no-check'` to each request header - */ + /** Adds `'X-Atlassian-Token': 'no-check'` to each request header */ noCheckAtlassianToken?: boolean; /** Enable new API error handling. `false` by default. */ newErrorHandling?: boolean; @@ -23,15 +21,20 @@ export namespace Config { /** @deprecated Disabled. Will be removed in the next major version. */ export type Telemetry = boolean | any; - export type Authentication = UtilityTypes.XOR<{ + export type Authentication = UtilityTypes.XOR4< + { jwt: Authentication.JWT; - }, UtilityTypes.XOR<{ + }, + { personalAccessToken: Authentication.PersonalAccessToken; - }, UtilityTypes.XOR<{ + }, + { basic: Authentication.Basic; - }, { + }, + { oauth2: Authentication.OAuth2; - }>>>; + } + >; export interface Middlewares { onError?: Config.Middlewares.OnErrorHandler; @@ -55,13 +58,16 @@ export namespace Config { expiryTimeSeconds?: number; }; - export type Basic = UtilityTypes.XOR<{ + export type Basic = UtilityTypes.XOR< + { email: string; apiToken: string; - }, { + }, + { username: string; password: string; - }>; + } + >; export type OAuth2 = { accessToken: string; diff --git a/src/server/audit.ts b/src/server/audit.ts index c0942f2e..a8223d61 100644 --- a/src/server/audit.ts +++ b/src/server/audit.ts @@ -11,12 +11,12 @@ export class Audit { /** Fetch a paginated list of AuditRecord instances dating back to a certain time */ async getAuditRecords>( parameters: Parameters.GetAuditRecords | undefined, - callback: Callback + callback: Callback, ): Promise; /** Fetch a paginated list of AuditRecord instances dating back to a certain time */ async getAuditRecords>( parameters?: Parameters.GetAuditRecords, - callback?: never + callback?: never, ): Promise; async getAuditRecords>( parameters?: Parameters.GetAuditRecords, @@ -40,12 +40,12 @@ export class Audit { /** Creates a record in the audit log. */ async createAuditRecord( parameters: Parameters.CreateAuditRecord, - callback: Callback + callback: Callback, ): Promise; /** Creates a record in the audit log. */ async createAuditRecord( parameters: Parameters.CreateAuditRecord, - callback?: never + callback?: never, ): Promise; async createAuditRecord( parameters: Parameters.CreateAuditRecord, @@ -74,7 +74,7 @@ export class Audit { /** Exports audit records as a CSV file or ZIP file. */ async exportAuditRecords( parameters: Parameters.ExportAuditRecords | undefined, - callback: Callback + callback: Callback, ): Promise; /** Exports audit records as a CSV file or ZIP file. */ async exportAuditRecords(parameters?: Parameters.ExportAuditRecords, callback?: never): Promise; @@ -112,12 +112,12 @@ export class Audit { /** Set the retention period to a new value. Can throw ServiceException if the retention period is too long */ async setRetentionPeriod( parameters: Models.RetentionPeriod, - callback: Callback + callback: Callback, ): Promise; /** Set the retention period to a new value. Can throw ServiceException if the retention period is too long */ async setRetentionPeriod( parameters: Models.RetentionPeriod, - callback?: never + callback?: never, ): Promise; async setRetentionPeriod( parameters: Models.RetentionPeriod, @@ -138,12 +138,12 @@ export class Audit { /** Fetch a paginated list of AuditRecord instances dating back to a certain time */ async getAuditRecordsForTimePeriod>( parameters: Parameters.GetAuditRecordsSince | undefined, - callback: Callback + callback: Callback, ): Promise; /** Fetch a paginated list of AuditRecord instances dating back to a certain time */ async getAuditRecordsForTimePeriod>( parameters?: Parameters.GetAuditRecordsSince, - callback?: never + callback?: never, ): Promise; async getAuditRecordsForTimePeriod>( parameters?: Parameters.GetAuditRecordsSince, diff --git a/src/server/content.ts b/src/server/content.ts index 9eda59b9..1a4ec360 100644 --- a/src/server/content.ts +++ b/src/server/content.ts @@ -11,7 +11,7 @@ export class Content { /** Returns a paginated list of Content. */ async getContent>( parameters: Parameters.GetContent | undefined, - callback: Callback + callback: Callback, ): Promise; /** Returns a paginated list of Content. */ async getContent>(parameters?: Parameters.GetContent, callback?: never): Promise; @@ -44,7 +44,7 @@ export class Content { */ async createContent( parameters: Parameters.CreateContent | undefined, - callback: Callback + callback: Callback, ): Promise; /** * Creates a new piece of Content or publishes the draft if the content id is present.For the case publishing draft, a @@ -193,7 +193,7 @@ export class Content { */ async getMacroBodyByHash( parameters: Parameters.GetMacroBodyByHash, - callback: Callback + callback: Callback, ): Promise; /** * Returns the body of a macro (in storage format) with the given hash. This resource is primarily used by connect @@ -212,7 +212,7 @@ export class Content { */ async getMacroBodyByHash( parameters: Parameters.GetMacroBodyByHash, - callback?: never + callback?: never, ): Promise; async getMacroBodyByHash( parameters: Parameters.GetMacroBodyByHash, @@ -239,7 +239,7 @@ export class Content { */ async getMacroBodyByMacroId( parameters: Parameters.GetMacroBodyByMacroId, - callback: Callback + callback: Callback, ): Promise; /** * Returns the body of a macro (in storage format) with the given id. This resource is primarily used by connect @@ -254,7 +254,7 @@ export class Content { */ async getMacroBodyByMacroId( parameters: Parameters.GetMacroBodyByMacroId, - callback?: never + callback?: never, ): Promise; async getMacroBodyByMacroId( parameters: Parameters.GetMacroBodyByMacroId, @@ -271,12 +271,12 @@ export class Content { /** Fetch a list of content using the Confluence Query Language (CQL). See: Advanced searching using CQL */ async searchContent>( parameters: Parameters.SearchContent | undefined, - callback: Callback + callback: Callback, ): Promise; /** Fetch a list of content using the Confluence Query Language (CQL). See: Advanced searching using CQL */ async searchContent>( parameters?: Parameters.SearchContent, - callback?: never + callback?: never, ): Promise; async searchContent>( parameters?: Parameters.SearchContent, @@ -309,7 +309,7 @@ export class Content { */ async getContentChildren( parameters: Parameters.GetContentChildren, - callback: Callback + callback: Callback, ): Promise; /** * Returns a map of the direct children of a piece of Content. Content can have multiple types of children - for @@ -323,7 +323,7 @@ export class Content { */ async getContentChildren( parameters: Parameters.GetContentChildren, - callback?: never + callback?: never, ): Promise; async getContentChildren( parameters: Parameters.GetContentChildren, @@ -350,7 +350,7 @@ export class Content { */ async getContentChildrenByType>( parameters: Parameters.GetContentChildrenByType, - callback: Callback + callback: Callback, ): Promise; /** * Returns the direct children of a piece of Content, limited to a single child type. @@ -359,7 +359,7 @@ export class Content { */ async getContentChildrenByType>( parameters: Parameters.GetContentChildrenByType, - callback?: never + callback?: never, ): Promise; async getContentChildrenByType>( parameters: Parameters.GetContentChildrenByType, @@ -382,12 +382,12 @@ export class Content { /** Returns the comments of a content */ async getContentComments>( parameters: Parameters.GetContentComments, - callback: Callback + callback: Callback, ): Promise; /** Returns the comments of a content */ async getContentComments>( parameters: Parameters.GetContentComments, - callback?: never + callback?: never, ): Promise; async getContentComments>( parameters: Parameters.GetContentComments, @@ -412,12 +412,12 @@ export class Content { /** Returns a paginated list of attachment Content entities within a single container. */ async getAttachments>( parameters: Parameters.GetAttachments, - callback: Callback + callback: Callback, ): Promise; /** Returns a paginated list of attachment Content entities within a single container. */ async getAttachments>( parameters: Parameters.GetAttachments, - callback?: never + callback?: never, ): Promise; async getAttachments>( parameters: Parameters.GetAttachments, @@ -465,7 +465,7 @@ export class Content { */ async createAttachments>( parameters: Parameters.CreateAttachments, - callback: Callback + callback: Callback, ): Promise; /** * Add one or more attachments to a Confluence Content entity, with optional comments. @@ -494,7 +494,7 @@ export class Content { */ async createAttachments>( parameters: Parameters.CreateAttachments, - callback?: never + callback?: never, ): Promise; async createAttachments>( parameters: Parameters.CreateAttachments, @@ -527,7 +527,7 @@ export class Content { */ async updateAttachmentProperties( parameters: Parameters.UpdateAttachmentProperties, - callback: Callback + callback: Callback, ): Promise; /** * Update the non-binary data of an Attachment. @@ -536,7 +536,7 @@ export class Content { */ async updateAttachmentProperties( parameters: Parameters.UpdateAttachmentProperties, - callback?: never + callback?: never, ): Promise; async updateAttachmentProperties( parameters: Parameters.UpdateAttachmentProperties, @@ -583,7 +583,7 @@ export class Content { */ async updateAttachmentData( parameters: Parameters.UpdateAttachmentData, - callback: Callback + callback: Callback, ): Promise; /** * Update the binary data of an Attachment, and optionally the comment and the minor edit field. This adds a new @@ -613,7 +613,7 @@ export class Content { */ async updateAttachmentData( parameters: Parameters.UpdateAttachmentData, - callback?: never + callback?: never, ): Promise; async updateAttachmentData( parameters: Parameters.UpdateAttachmentData, @@ -650,7 +650,7 @@ export class Content { */ async getContentDescendants( parameters: Parameters.GetContentDescendants, - callback: Callback + callback: Callback, ): Promise; /** * Returns a map of the descendants of a piece of Content. Content can have multiple types of descendants - for @@ -666,7 +666,7 @@ export class Content { */ async getContentDescendants( parameters: Parameters.GetContentDescendants, - callback?: never + callback?: never, ): Promise; async getContentDescendants( parameters: Parameters.GetContentDescendants, @@ -692,7 +692,7 @@ export class Content { */ async getContentDescendantsOfType>( parameters: Parameters.GetContentDescendantsOfType, - callback: Callback + callback: Callback, ): Promise; /** * Returns the direct descendants of a piece of Content, limited to a single descendant type. @@ -703,7 +703,7 @@ export class Content { */ async getContentDescendantsOfType>( parameters: Parameters.GetContentDescendantsOfType, - callback?: never + callback?: never, ): Promise; async getContentDescendantsOfType>( parameters: Parameters.GetContentDescendantsOfType, @@ -725,12 +725,12 @@ export class Content { /** Returns the list of labels on a piece of Content. */ async getContentLabels>( parameters: Parameters.GetContentLabels, - callback: Callback + callback: Callback, ): Promise; /** Returns the list of labels on a piece of Content. */ async getContentLabels>( parameters: Parameters.GetContentLabels, - callback?: never + callback?: never, ): Promise; async getContentLabels>( parameters: Parameters.GetContentLabels, @@ -752,12 +752,12 @@ export class Content { /** Adds a list of labels to the specified content. The body is the json representation of the list. */ async addLabelsToContent>( parameters: Parameters.AddLabelsToContent, - callback: Callback + callback: Callback, ): Promise; /** Adds a list of labels to the specified content. The body is the json representation of the list. */ async addLabelsToContent>( parameters: Parameters.AddLabelsToContent, - callback?: never + callback?: never, ): Promise; async addLabelsToContent>( parameters: Parameters.AddLabelsToContent, @@ -775,12 +775,12 @@ export class Content { /** Deletes a labels to the specified content. */ async deleteLabelWithQueryParam( parameters: Parameters.DeleteLabelWithQueryParam, - callback: Callback + callback: Callback, ): Promise; /** Deletes a labels to the specified content. */ async deleteLabelWithQueryParam( parameters: Parameters.DeleteLabelWithQueryParam, - callback?: never + callback?: never, ): Promise; async deleteLabelWithQueryParam( parameters: Parameters.DeleteLabelWithQueryParam, @@ -821,12 +821,12 @@ export class Content { /** Returns a paginated list of content properties. */ async getContentProperties>( parameters: Parameters.GetContentProperties, - callback: Callback + callback: Callback, ): Promise; /** Returns a paginated list of content properties. */ async getContentProperties>( parameters: Parameters.GetContentProperties, - callback?: never + callback?: never, ): Promise; async getContentProperties>( parameters: Parameters.GetContentProperties, @@ -848,12 +848,12 @@ export class Content { /** Creates a new content property. */ async createContentProperty( parameters: Parameters.CreateContentProperty, - callback: Callback + callback: Callback, ): Promise; /** Creates a new content property. */ async createContentProperty( parameters: Parameters.CreateContentProperty, - callback?: never + callback?: never, ): Promise; async createContentProperty( parameters: Parameters.CreateContentProperty, @@ -874,12 +874,12 @@ export class Content { /** Returns a content property. */ async getContentProperty( parameters: Parameters.GetContentProperty, - callback: Callback + callback: Callback, ): Promise; /** Returns a content property. */ async getContentProperty( parameters: Parameters.GetContentProperty, - callback?: never + callback?: never, ): Promise; async getContentProperty( parameters: Parameters.GetContentProperty, @@ -899,12 +899,12 @@ export class Content { /** Creates a new content property. */ async createContentPropertyForKey( parameters: Parameters.CreateContentPropertyForKey, - callback: Callback + callback: Callback, ): Promise; /** Creates a new content property. */ async createContentPropertyForKey( parameters: Parameters.CreateContentPropertyForKey, - callback?: never + callback?: never, ): Promise; async createContentPropertyForKey( parameters: Parameters.CreateContentPropertyForKey, @@ -930,7 +930,7 @@ export class Content { */ async updateContentProperty( parameters: Parameters.UpdateContentProperty, - callback: Callback + callback: Callback, ): Promise; /** * Updates a content property. The body contains the representation of the content property. Must include the property @@ -941,7 +941,7 @@ export class Content { */ async updateContentProperty( parameters: Parameters.UpdateContentProperty, - callback?: never + callback?: never, ): Promise; async updateContentProperty( parameters: Parameters.UpdateContentProperty, @@ -962,7 +962,7 @@ export class Content { /** Deletes a content property. */ async deleteContentProperty( parameters: Parameters.DeleteContentProperty, - callback: Callback + callback: Callback, ): Promise; /** Deletes a content property. */ async deleteContentProperty(parameters: Parameters.DeleteContentProperty, callback?: never): Promise; @@ -981,12 +981,12 @@ export class Content { /** Returns info about all restrictions by operation */ async getRestrictionsByOperation( parameters: Parameters.GetRestrictionsByOperation, - callback: Callback + callback: Callback, ): Promise; /** Returns info about all restrictions by operation */ async getRestrictionsByOperation( parameters: Parameters.GetRestrictionsByOperation, - callback?: never + callback?: never, ): Promise; async getRestrictionsByOperation( parameters: Parameters.GetRestrictionsByOperation, @@ -1006,12 +1006,12 @@ export class Content { /** Returns info about all restrictions of given operation */ async getRestrictionsForOperation( parameters: Parameters.GetRestrictionsForOperation, - callback: Callback + callback: Callback, ): Promise; /** Returns info about all restrictions of given operation */ async getRestrictionsForOperation( parameters: Parameters.GetRestrictionsForOperation, - callback?: never + callback?: never, ): Promise; async getRestrictionsForOperation( parameters: Parameters.GetRestrictionsForOperation, @@ -1033,7 +1033,7 @@ export class Content { /** Publishes a legacy draft of a Content created from a ContentBlueprint */ async publishLegacyDraft( parameters: Parameters.PublishLegacyDraft, - callback: Callback + callback: Callback, ): Promise; /** Publishes a legacy draft of a Content created from a ContentBlueprint */ async publishLegacyDraft(parameters: Parameters.PublishLegacyDraft, callback?: never): Promise; @@ -1056,7 +1056,7 @@ export class Content { /** Publishes a shared draft of a Content created from a ContentBlueprint */ async publishSharedDraft( parameters: Parameters.PublishSharedDraft, - callback: Callback + callback: Callback, ): Promise; /** Publishes a shared draft of a Content created from a ContentBlueprint */ async publishSharedDraft(parameters: Parameters.PublishSharedDraft, callback?: never): Promise; diff --git a/src/server/contentBody.ts b/src/server/contentBody.ts index 15572b74..040b50e9 100644 --- a/src/server/contentBody.ts +++ b/src/server/contentBody.ts @@ -19,7 +19,7 @@ export class ContentBody { */ async convertContentBody( parameters: Parameters.ConvertContentBody, - callback: Callback + callback: Callback, ): Promise; /** * Converts between content body representations. Not all representations can be converted to/from other formats. @@ -33,7 +33,7 @@ export class ContentBody { */ async convertContentBody( parameters: Parameters.ConvertContentBody, - callback?: never + callback?: never, ): Promise; async convertContentBody( parameters: Parameters.ConvertContentBody, diff --git a/src/server/group.ts b/src/server/group.ts index 13d198cb..932499d8 100644 --- a/src/server/group.ts +++ b/src/server/group.ts @@ -11,7 +11,7 @@ export class Group { /** Get a paginated collection of user groups */ async getGroups>( parameters: Parameters.GetGroups | undefined, - callback: Callback + callback: Callback, ): Promise; /** Get a paginated collection of user groups */ async getGroups>(parameters?: Parameters.GetGroups, callback?: never): Promise; @@ -51,7 +51,7 @@ export class Group { /** Get a paginated collection of users in the given group */ async getMembers>( parameters: Parameters.GetMembers, - callback: Callback + callback: Callback, ): Promise; /** Get a paginated collection of users in the given group */ async getMembers>(parameters: Parameters.GetMembers, callback?: never): Promise; diff --git a/src/server/longTask.ts b/src/server/longTask.ts index 6de7f973..c1f8621d 100644 --- a/src/server/longTask.ts +++ b/src/server/longTask.ts @@ -11,7 +11,7 @@ export class LongTask { /** Returns information about all tracked long-running tasks. */ async getTasks>( parameters: Parameters.GetTasks | undefined, - callback: Callback + callback: Callback, ): Promise; /** Returns information about all tracked long-running tasks. */ async getTasks>(parameters?: Parameters.GetTasks, callback?: never): Promise; diff --git a/src/server/parameters/createAuditRecord.ts b/src/server/parameters/createAuditRecord.ts index b65a643d..efe6c558 100644 --- a/src/server/parameters/createAuditRecord.ts +++ b/src/server/parameters/createAuditRecord.ts @@ -21,12 +21,16 @@ export interface CreateAuditRecord { remoteAddress: string; /** * The creation date-time of the audit record, as a timestamp. This is converted to a date-time display in the - * Confluence UI. If the `creationDate` is not specified, then it will be set to the timestamp for the current date-time. + * Confluence UI. If the `creationDate` is not specified, then it will be set to the timestamp for the current + * date-time. */ creationDate?: number; /** The summary of the event, which is displayed in the 'Change' column on the audit log in the Confluence UI. */ summary?: string; - /** A long description of the event, which is displayed in the 'Description' field on the audit log in the Confluence UI. */ + /** + * A long description of the event, which is displayed in the 'Description' field on the audit log in the Confluence + * UI. + */ description?: string; /** The category of the event, which is displayed in the 'Event type' column on the audit log in the Confluence UI. */ category?: string; diff --git a/src/server/parameters/getAttachments.ts b/src/server/parameters/getAttachments.ts index 0fa3846f..4df055cf 100644 --- a/src/server/parameters/getAttachments.ts +++ b/src/server/parameters/getAttachments.ts @@ -65,7 +65,10 @@ export namespace GetAttachments { UpdateGroupRestriction = 'restrictions.update.restrictions.group', /** Returns the history of the content, including the date it was created. */ History = 'history', - /** Returns information about the most recent update of the content, including who updated it and when it was updated. */ + /** + * Returns information about the most recent update of the content, including who updated it and when it was + * updated. + */ LastUpdated = 'history.lastUpdated', /** Returns information about the update prior to the current content update. */ PreviousVersion = 'history.previousVersion', @@ -75,9 +78,15 @@ export namespace GetAttachments { NextVersion = 'history.nextVersion', /** Returns the parent page, if the content is a page. */ Ancestors = 'ancestors', - /** Returns the body of the content in different formats, including the editor format, view format, and export format. */ + /** + * Returns the body of the content in different formats, including the editor format, view format, and export + * format. + */ Body = 'body', - /** Returns information about the most recent update of the content, including who updated it and when it was updated. */ + /** + * Returns information about the most recent update of the content, including who updated it and when it was + * updated. + */ Version = 'version', /** Returns pages that are descendants at any level below the content. */ PageDescendant = 'descendants.page', diff --git a/src/server/parameters/updateAttachmentData.ts b/src/server/parameters/updateAttachmentData.ts index 7c3068d3..dbb0b70a 100644 --- a/src/server/parameters/updateAttachmentData.ts +++ b/src/server/parameters/updateAttachmentData.ts @@ -8,5 +8,5 @@ export interface UpdateAttachmentData { /** A comment to be added to the attachment */ comment?: string; /** The actual file content to upload */ - file: Buffer + file: Buffer; } diff --git a/src/server/search.ts b/src/server/search.ts index ba8b7ff6..1b48476e 100644 --- a/src/server/search.ts +++ b/src/server/search.ts @@ -11,12 +11,12 @@ export class Search { /** Search for entities in Confluence using the Confluence Query Language (CQL) */ async search>( parameters: Parameters.SearchContent | undefined, - callback: Callback + callback: Callback, ): Promise; /** Search for entities in Confluence using the Confluence Query Language (CQL) */ async search>( parameters?: Parameters.SearchContent, - callback?: never + callback?: never, ): Promise; async search>( parameters?: Parameters.SearchContent, diff --git a/src/server/space.ts b/src/server/space.ts index ceba771d..fc879ba1 100644 --- a/src/server/space.ts +++ b/src/server/space.ts @@ -11,7 +11,7 @@ export class Space { /** Returns information about a number of spaces. */ async getSpaces>( parameters: Parameters.GetSpaces | undefined, - callback: Callback + callback: Callback, ): Promise; /** Returns information about a number of spaces. */ async getSpaces>(parameters?: Parameters.GetSpaces, callback?: never): Promise; @@ -71,7 +71,7 @@ export class Space { */ async createPrivateSpace( parameters: Parameters.CreatePrivateSpace, - callback: Callback + callback: Callback, ): Promise; /** * Creates a new private Space, viewable only by its creator. @@ -159,12 +159,12 @@ export class Space { /** Returns the content in this given space */ async getContentForSpace>( parameters: Parameters.GetContentForSpace, - callback: Callback + callback: Callback, ): Promise; /** Returns the content in this given space */ async getContentForSpace>( parameters: Parameters.GetContentForSpace, - callback?: never + callback?: never, ): Promise; async getContentForSpace>( parameters: Parameters.GetContentForSpace, @@ -187,12 +187,12 @@ export class Space { /** Returns the content in this given space with the given type */ async getContentByType>( parameters: Parameters.GetContentByType, - callback: Callback + callback: Callback, ): Promise; /** Returns the content in this given space with the given type */ async getContentByType>( parameters: Parameters.GetContentByType, - callback?: never + callback?: never, ): Promise; async getContentByType>( parameters: Parameters.GetContentByType, @@ -215,12 +215,12 @@ export class Space { /** Returns a paginated list of space properties. */ async getSpaceProperties>( parameters: Parameters.GetSpaceProperties, - callback: Callback + callback: Callback, ): Promise; /** Returns a paginated list of space properties. */ async getSpaceProperties>( parameters: Parameters.GetSpaceProperties, - callback?: never + callback?: never, ): Promise; async getSpaceProperties>( parameters: Parameters.GetSpaceProperties, @@ -242,12 +242,12 @@ export class Space { /** Creates a new space property. */ async createSpaceProperty( parameters: Parameters.CreateSpaceProperty, - callback: Callback + callback: Callback, ): Promise; /** Creates a new space property. */ async createSpaceProperty( parameters: Parameters.CreateSpaceProperty, - callback?: never + callback?: never, ): Promise; async createSpaceProperty( parameters: Parameters.CreateSpaceProperty, @@ -268,12 +268,12 @@ export class Space { /** Returns a paginated list of space properties. */ async getSpaceProperty( parameters: Parameters.GetSpaceProperty, - callback: Callback + callback: Callback, ): Promise; /** Returns a paginated list of space properties. */ async getSpaceProperty( parameters: Parameters.GetSpaceProperty, - callback?: never + callback?: never, ): Promise; async getSpaceProperty( parameters: Parameters.GetSpaceProperty, @@ -293,12 +293,12 @@ export class Space { /** Creates a new space property. */ async createSpacePropertyForKey( parameters: Parameters.CreateSpacePropertyForKey, - callback: Callback + callback: Callback, ): Promise; /** Creates a new space property. */ async createSpacePropertyForKey( parameters: Parameters.CreateSpacePropertyForKey, - callback?: never + callback?: never, ): Promise; async createSpacePropertyForKey( parameters: Parameters.CreateSpacePropertyForKey, @@ -322,7 +322,7 @@ export class Space { */ async updateSpaceProperty( parameters: Parameters.UpdateSpaceProperty, - callback: Callback + callback: Callback, ): Promise; /** * Updates a space property. The body contains the representation of the space property. Must include new version @@ -331,7 +331,7 @@ export class Space { */ async updateSpaceProperty( parameters: Parameters.UpdateSpaceProperty, - callback?: never + callback?: never, ): Promise; async updateSpaceProperty( parameters: Parameters.UpdateSpaceProperty, diff --git a/src/server/user.ts b/src/server/user.ts index 42f69ea4..ddbbe1c9 100644 --- a/src/server/user.ts +++ b/src/server/user.ts @@ -42,7 +42,7 @@ export class User { /** Get information about the current logged-in user. */ async getCurrentUser( parameters: Parameters.GetCurrentUser | undefined, - callback: Callback + callback: Callback, ): Promise; /** Get information about the current logged-in user. */ async getCurrentUser(parameters?: Parameters.GetCurrentUser, callback?: never): Promise; @@ -64,12 +64,12 @@ export class User { /** Get a paginated collection of groups that the given user is a member of */ async getGroupMembershipsForUser>( parameters: Parameters.GetGroups | undefined, - callback: Callback + callback: Callback, ): Promise; /** Get a paginated collection of groups that the given user is a member of */ async getGroupMembershipsForUser>( parameters?: Parameters.GetGroups, - callback?: never + callback?: never, ): Promise; async getGroupMembershipsForUser>( parameters?: Parameters.GetGroups, @@ -99,7 +99,7 @@ export class User { */ async getContentWatchStatus( parameters: Parameters.GetContentWatchStatus, - callback: Callback + callback: Callback, ): Promise; /** * Get information about whether a user is watching a specified content. @@ -110,7 +110,7 @@ export class User { */ async getContentWatchStatus( parameters: Parameters.GetContentWatchStatus, - callback?: never + callback?: never, ): Promise; async getContentWatchStatus( parameters: Parameters.GetContentWatchStatus, @@ -169,7 +169,7 @@ export class User { */ async removeContentWatcher( parameters: Parameters.RemoveContentWatcher, - callback: Callback + callback: Callback, ): Promise; /** * Delete an existing watcher for the given user and content id. @@ -204,7 +204,7 @@ export class User { */ async isWatchingSpace( parameters: Parameters.IsWatchingSpace, - callback: Callback + callback: Callback, ): Promise; /** * Get information about whether a user is watching a specified space. diff --git a/src/services/authenticationService/authentications/createJWTAuthentication.ts b/src/services/authenticationService/authentications/createJWTAuthentication.ts index 868be09d..78e324e2 100644 --- a/src/services/authenticationService/authentications/createJWTAuthentication.ts +++ b/src/services/authenticationService/authentications/createJWTAuthentication.ts @@ -8,10 +8,7 @@ export function createJWTAuthentication( url: string; }, ) { - const { - method, - url, - } = requestData; + const { method, url } = requestData; const now = Math.floor(Date.now() / 1000); const expire = now + 180; diff --git a/src/services/authenticationService/base64Encoder.ts b/src/services/authenticationService/base64Encoder.ts index cae20617..f20d74e9 100644 --- a/src/services/authenticationService/base64Encoder.ts +++ b/src/services/authenticationService/base64Encoder.ts @@ -1,7 +1,5 @@ /* eslint-disable */ -/** - * @copyright The code was taken from the portal http://www.webtoolkit.info/javascript-base64.html - */ +/** @copyright The code was taken from the portal http://www.webtoolkit.info/javascript-base64.html */ export namespace Base64Encoder { const base64Sequence = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='; @@ -16,7 +14,7 @@ export namespace Base64Encoder { if (c < 128) { utftext += String.fromCharCode(c); - } else if ((c > 127) && (c < 2048)) { + } else if (c > 127 && c < 2048) { utftext += String.fromCharCode((c >> 6) | 192); utftext += String.fromCharCode((c & 63) | 128); @@ -61,7 +59,9 @@ export namespace Base64Encoder { enc4 = 64; } - output += `${base64Sequence.charAt(enc1)}${base64Sequence.charAt(enc2)}${base64Sequence.charAt(enc3)}${base64Sequence.charAt(enc4)}`; + output += `${base64Sequence.charAt(enc1)}${base64Sequence.charAt(enc2)}${base64Sequence.charAt( + enc3, + )}${base64Sequence.charAt(enc4)}`; } return output; diff --git a/src/utilityTypes.ts b/src/utilityTypes.ts index 2b3a81f1..6fd5216e 100644 --- a/src/utilityTypes.ts +++ b/src/utilityTypes.ts @@ -2,6 +2,12 @@ export namespace UtilityTypes { /** Mark some properties which only the former including as optional and set the value to never */ export type Without = { [P in Exclude]?: never }; - /** get the XOR type which could make 2 types exclude each other */ + /** Get the XOR type which could make 2 types exclude each other */ export type XOR = T | U extends object ? (Without & U) | (Without & T) : T | U; + + /** Get the XOR type which could make 3 types exclude each other */ + export type XOR3 = XOR>; + + /** Get the XOR type which could make 4 types exclude each other */ + export type XOR4 = XOR>; } diff --git a/src/version2/attachment.ts b/src/version2/attachment.ts index 7f4ce9f0..7e2e4043 100644 --- a/src/version2/attachment.ts +++ b/src/version2/attachment.ts @@ -15,7 +15,7 @@ export class Attachment { */ async getAttachmentById( parameters: Parameters.GetAttachmentById, - callback: Callback + callback: Callback, ): Promise; /** * Returns a specific attachment. @@ -25,7 +25,7 @@ export class Attachment { */ async getAttachmentById( parameters: Parameters.GetAttachmentById, - callback?: never + callback?: never, ): Promise; async getAttachmentById( parameters: Parameters.GetAttachmentById, @@ -51,7 +51,7 @@ export class Attachment { */ async getBlogpostAttachments( parameters: Parameters.GetBlogpostAttachments, - callback: Callback + callback: Callback, ): Promise; /** * Returns the attachments of specific blog post. The number of results is limited by the `limit` parameter and @@ -62,7 +62,7 @@ export class Attachment { */ async getBlogpostAttachments( parameters: Parameters.GetBlogpostAttachments, - callback?: never + callback?: never, ): Promise; async getBlogpostAttachments( parameters: Parameters.GetBlogpostAttachments, @@ -92,7 +92,7 @@ export class Attachment { */ async getCustomContentAttachments( parameters: Parameters.GetCustomContentAttachments, - callback: Callback + callback: Callback, ): Promise; /** * Returns the attachments of specific custom content. The number of results is limited by the `limit` parameter and @@ -103,7 +103,7 @@ export class Attachment { */ async getCustomContentAttachments( parameters: Parameters.GetCustomContentAttachments, - callback?: never + callback?: never, ): Promise; async getCustomContentAttachments( parameters: Parameters.GetCustomContentAttachments, @@ -133,7 +133,7 @@ export class Attachment { */ async getPageAttachments( parameters: Parameters.GetPageAttachments, - callback: Callback + callback: Callback, ): Promise; /** * Returns the attachments of specific page. The number of results is limited by the `limit` parameter and additional @@ -144,7 +144,7 @@ export class Attachment { */ async getPageAttachments( parameters: Parameters.GetPageAttachments, - callback?: never + callback?: never, ): Promise; async getPageAttachments( parameters: Parameters.GetPageAttachments, diff --git a/src/version2/blogPost.ts b/src/version2/blogPost.ts index eacb1a3c..492465ab 100644 --- a/src/version2/blogPost.ts +++ b/src/version2/blogPost.ts @@ -16,7 +16,7 @@ export class BlogPost { */ async getBlogPosts( parameters: Parameters.GetBlogPosts | undefined, - callback: Callback + callback: Callback, ): Promise; /** * Returns all blog posts. The number of results is limited by the `limit` parameter and additional results (if @@ -78,7 +78,7 @@ export class BlogPost { */ async getBlogPostById( parameters: Parameters.GetBlogPostById, - callback: Callback + callback: Callback, ): Promise; /** * Returns a specific blog post. @@ -112,7 +112,7 @@ export class BlogPost { */ async updateBlogPost( parameters: Parameters.UpdateBlogPost, - callback: Callback + callback: Callback, ): Promise; /** * Update a blog post by id. @@ -166,7 +166,7 @@ export class BlogPost { */ async getLabelBlogPosts( parameters: Parameters.GetLabelBlogPosts, - callback: Callback + callback: Callback, ): Promise; /** * Returns the blogposts of specified label. The number of results is limited by the `limit` parameter and additional @@ -177,7 +177,7 @@ export class BlogPost { */ async getLabelBlogPosts( parameters: Parameters.GetLabelBlogPosts, - callback?: never + callback?: never, ): Promise; async getLabelBlogPosts( parameters: Parameters.GetLabelBlogPosts, @@ -206,7 +206,7 @@ export class BlogPost { */ async getBlogPostsInSpace( parameters: Parameters.GetBlogPostsInSpace, - callback: Callback + callback: Callback, ): Promise; /** * Returns all blog posts in a space. The number of results is limited by the `limit` parameter and additional results @@ -218,7 +218,7 @@ export class BlogPost { */ async getBlogPostsInSpace( parameters: Parameters.GetBlogPostsInSpace, - callback?: never + callback?: never, ): Promise; async getBlogPostsInSpace( parameters: Parameters.GetBlogPostsInSpace, diff --git a/src/version2/children.ts b/src/version2/children.ts index 624ad38c..e6c46a9a 100644 --- a/src/version2/children.ts +++ b/src/version2/children.ts @@ -16,7 +16,7 @@ export class Children { */ async getChildPages( parameters: Parameters.GetChildPages, - callback: Callback + callback: Callback, ): Promise; /** * Returns all child pages for given page id. The number of results is limited by the `limit` parameter and additional @@ -53,7 +53,7 @@ export class Children { */ async getChildCustomContent( parameters: Parameters.GetChildCustomContent, - callback: Callback + callback: Callback, ): Promise; /** * Returns all child custom content for given custom content id. The number of results is limited by the `limit` @@ -65,7 +65,7 @@ export class Children { */ async getChildCustomContent( parameters: Parameters.GetChildCustomContent, - callback?: never + callback?: never, ): Promise; async getChildCustomContent( parameters: Parameters.GetChildCustomContent, diff --git a/src/version2/comment.ts b/src/version2/comment.ts index a0a4b9f6..915925e8 100644 --- a/src/version2/comment.ts +++ b/src/version2/comment.ts @@ -16,7 +16,7 @@ export class Comment { */ async getPageFooterComments( parameters: Parameters.GetPageFooterComments, - callback: Callback + callback: Callback, ): Promise; /** * Returns the root footer comments of specific page. The number of results is limited by the `limit` parameter and @@ -27,7 +27,7 @@ export class Comment { */ async getPageFooterComments( parameters: Parameters.GetPageFooterComments, - callback?: never + callback?: never, ): Promise; async getPageFooterComments( parameters: Parameters.GetPageFooterComments, @@ -56,7 +56,7 @@ export class Comment { */ async getPageInlineComments( parameters: Parameters.GetPageInlineComments, - callback: Callback + callback: Callback, ): Promise; /** * Returns the root inline comments of specific page. The number of results is limited by the `limit` parameter and @@ -67,7 +67,7 @@ export class Comment { */ async getPageInlineComments( parameters: Parameters.GetPageInlineComments, - callback?: never + callback?: never, ): Promise; async getPageInlineComments( parameters: Parameters.GetPageInlineComments, @@ -97,7 +97,7 @@ export class Comment { */ async getBlogPostFooterComments( parameters: Parameters.GetBlogPostFooterComments, - callback: Callback + callback: Callback, ): Promise; /** * Returns the root footer comments of specific blog post. The number of results is limited by the `limit` parameter @@ -109,7 +109,7 @@ export class Comment { */ async getBlogPostFooterComments( parameters: Parameters.GetBlogPostFooterComments, - callback?: never + callback?: never, ): Promise; async getBlogPostFooterComments( parameters: Parameters.GetBlogPostFooterComments, @@ -139,7 +139,7 @@ export class Comment { */ async getBlogPostInlineComments( parameters: Parameters.GetBlogPostInlineComments, - callback: Callback + callback: Callback, ): Promise; /** * Returns the root inline comments of specific blog post. The number of results is limited by the `limit` parameter @@ -151,7 +151,7 @@ export class Comment { */ async getBlogPostInlineComments( parameters: Parameters.GetBlogPostInlineComments, - callback?: never + callback?: never, ): Promise; async getBlogPostInlineComments( parameters: Parameters.GetBlogPostInlineComments, @@ -180,7 +180,7 @@ export class Comment { */ async createFooterComment( parameters: Parameters.CreateFooterComment | undefined, - callback: Callback + callback: Callback, ): Promise; /** * Create a footer comment. This can be at the top level (specifying pageId or blogPostId in the request body) or as a @@ -191,7 +191,7 @@ export class Comment { */ async createFooterComment( parameters?: Parameters.CreateFooterComment, - callback?: never + callback?: never, ): Promise; async createFooterComment( parameters?: Parameters.CreateFooterComment, @@ -219,7 +219,7 @@ export class Comment { */ async getFooterCommentById( parameters: Parameters.GetFooterCommentById, - callback: Callback + callback: Callback, ): Promise; /** * Retrieves a footer comment by id @@ -229,7 +229,7 @@ export class Comment { */ async getFooterCommentById( parameters: Parameters.GetFooterCommentById, - callback?: never + callback?: never, ): Promise; async getFooterCommentById( parameters: Parameters.GetFooterCommentById, @@ -255,7 +255,7 @@ export class Comment { */ async updateFooterComment( parameters: Parameters.UpdateFooterComment, - callback: Callback + callback: Callback, ): Promise; /** * Update a footer comment. This can be used to update the body text of a comment. @@ -265,7 +265,7 @@ export class Comment { */ async updateFooterComment( parameters: Parameters.UpdateFooterComment, - callback?: never + callback?: never, ): Promise; async updateFooterComment( parameters: Parameters.UpdateFooterComment, @@ -319,7 +319,7 @@ export class Comment { */ async getFooterCommentChildren( parameters: Parameters.GetFooterCommentChildren, - callback: Callback + callback: Callback, ): Promise; /** * Returns the children footer comments of specific comment. The number of results is limited by the `limit` parameter @@ -331,7 +331,7 @@ export class Comment { */ async getFooterCommentChildren( parameters: Parameters.GetFooterCommentChildren, - callback?: never + callback?: never, ): Promise; async getFooterCommentChildren( parameters: Parameters.GetFooterCommentChildren, @@ -362,7 +362,7 @@ export class Comment { */ async createInlineComment( parameters: Parameters.CreateInlineComment | undefined, - callback: Callback + callback: Callback, ): Promise; /** * Create an inline comment. This can be at the top level (specifying pageId or blogPostId in the request body) or as @@ -375,7 +375,7 @@ export class Comment { */ async createInlineComment( parameters?: Parameters.CreateInlineComment, - callback?: never + callback?: never, ): Promise; async createInlineComment( parameters?: Parameters.CreateInlineComment, @@ -404,7 +404,7 @@ export class Comment { */ async getInlineCommentById( parameters: Parameters.GetInlineCommentById, - callback: Callback + callback: Callback, ): Promise; /** * Retrieves an inline comment by id @@ -414,7 +414,7 @@ export class Comment { */ async getInlineCommentById( parameters: Parameters.GetInlineCommentById, - callback?: never + callback?: never, ): Promise; async getInlineCommentById( parameters: Parameters.GetInlineCommentById, @@ -440,7 +440,7 @@ export class Comment { */ async updateInlineComment( parameters: Parameters.UpdateInlineComment, - callback: Callback + callback: Callback, ): Promise; /** * Update an inline comment. This can be used to update the body text of a comment and/or to resolve the comment @@ -450,7 +450,7 @@ export class Comment { */ async updateInlineComment( parameters: Parameters.UpdateInlineComment, - callback?: never + callback?: never, ): Promise; async updateInlineComment( parameters: Parameters.UpdateInlineComment, @@ -505,7 +505,7 @@ export class Comment { */ async getInlineCommentChildren( parameters: Parameters.GetInlineCommentChildren, - callback: Callback + callback: Callback, ): Promise; /** * Returns the children inline comments of specific comment. The number of results is limited by the `limit` parameter @@ -517,7 +517,7 @@ export class Comment { */ async getInlineCommentChildren( parameters: Parameters.GetInlineCommentChildren, - callback?: never + callback?: never, ): Promise; async getInlineCommentChildren( parameters: Parameters.GetInlineCommentChildren, diff --git a/src/version2/contentProperties.ts b/src/version2/contentProperties.ts index 9d3ce147..fa700ac1 100644 --- a/src/version2/contentProperties.ts +++ b/src/version2/contentProperties.ts @@ -14,7 +14,7 @@ export class ContentProperties { */ async getAttachmentContentProperties( parameters: Parameters.GetAttachmentContentProperties, - callback: Callback + callback: Callback, ): Promise; /** * Retrieves all Content Properties tied to a specified attachment. @@ -23,7 +23,7 @@ export class ContentProperties { */ async getAttachmentContentProperties( parameters: Parameters.GetAttachmentContentProperties, - callback?: never + callback?: never, ): Promise; async getAttachmentContentProperties( parameters: Parameters.GetAttachmentContentProperties, @@ -50,7 +50,7 @@ export class ContentProperties { */ async getAttachmentContentPropertiesById( parameters: Parameters.GetAttachmentContentPropertiesById, - callback: Callback + callback: Callback, ): Promise; /** * Retrieves a specific Content Property by ID that is attached to a specified attachment. @@ -59,7 +59,7 @@ export class ContentProperties { */ async getAttachmentContentPropertiesById( parameters: Parameters.GetAttachmentContentPropertiesById, - callback?: never + callback?: never, ): Promise; async getAttachmentContentPropertiesById( parameters: Parameters.GetAttachmentContentPropertiesById, @@ -80,7 +80,7 @@ export class ContentProperties { */ async getBlogpostContentProperties( parameters: Parameters.GetBlogpostContentProperties, - callback: Callback + callback: Callback, ): Promise; /** * Retrieves all Content Properties tied to a specified blog post. @@ -89,7 +89,7 @@ export class ContentProperties { */ async getBlogpostContentProperties( parameters: Parameters.GetBlogpostContentProperties, - callback?: never + callback?: never, ): Promise; async getBlogpostContentProperties( parameters: Parameters.GetBlogpostContentProperties, @@ -116,7 +116,7 @@ export class ContentProperties { */ async getBlogpostContentPropertiesById( parameters: Parameters.GetBlogpostContentPropertiesById, - callback: Callback + callback: Callback, ): Promise; /** * Retrieves a specific Content Property by ID that is attached to a specified blog post. @@ -125,7 +125,7 @@ export class ContentProperties { */ async getBlogpostContentPropertiesById( parameters: Parameters.GetBlogpostContentPropertiesById, - callback?: never + callback?: never, ): Promise; async getBlogpostContentPropertiesById( parameters: Parameters.GetBlogpostContentPropertiesById, @@ -146,7 +146,7 @@ export class ContentProperties { */ async getCustomContentContentProperties( parameters: Parameters.GetCustomContentContentProperties, - callback: Callback + callback: Callback, ): Promise; /** * Retrieves Content Properties tied to a specified custom content. @@ -155,7 +155,7 @@ export class ContentProperties { */ async getCustomContentContentProperties( parameters: Parameters.GetCustomContentContentProperties, - callback?: never + callback?: never, ): Promise; async getCustomContentContentProperties( parameters: Parameters.GetCustomContentContentProperties, @@ -182,7 +182,7 @@ export class ContentProperties { */ async getCustomContentContentPropertiesById( parameters: Parameters.GetCustomContentContentPropertiesById, - callback: Callback + callback: Callback, ): Promise; /** * Retrieves a specific Content Property by ID that is attached to a specified custom content. @@ -191,7 +191,7 @@ export class ContentProperties { */ async getCustomContentContentPropertiesById( parameters: Parameters.GetCustomContentContentPropertiesById, - callback?: never + callback?: never, ): Promise; async getCustomContentContentPropertiesById( parameters: Parameters.GetCustomContentContentPropertiesById, @@ -212,7 +212,7 @@ export class ContentProperties { */ async getPageContentProperties( parameters: Parameters.GetPageContentProperties, - callback: Callback + callback: Callback, ): Promise; /** * Retrieves Content Properties tied to a specified page. @@ -221,7 +221,7 @@ export class ContentProperties { */ async getPageContentProperties( parameters: Parameters.GetPageContentProperties, - callback?: never + callback?: never, ): Promise; async getPageContentProperties( parameters: Parameters.GetPageContentProperties, @@ -248,7 +248,7 @@ export class ContentProperties { */ async getPageContentPropertiesById( parameters: Parameters.GetPageContentPropertiesById, - callback: Callback + callback: Callback, ): Promise; /** * Retrieves a specific Content Property by ID that is attached to a specified page. @@ -257,7 +257,7 @@ export class ContentProperties { */ async getPageContentPropertiesById( parameters: Parameters.GetPageContentPropertiesById, - callback?: never + callback?: never, ): Promise; async getPageContentPropertiesById( parameters: Parameters.GetPageContentPropertiesById, @@ -278,7 +278,7 @@ export class ContentProperties { */ async getCommentContentProperties( parameters: Parameters.GetCommentContentProperties, - callback: Callback + callback: Callback, ): Promise; /** * Retrieves Content Properties attached to a specified comment. @@ -287,7 +287,7 @@ export class ContentProperties { */ async getCommentContentProperties( parameters: Parameters.GetCommentContentProperties, - callback?: never + callback?: never, ): Promise; async getCommentContentProperties( parameters: Parameters.GetCommentContentProperties, @@ -314,7 +314,7 @@ export class ContentProperties { */ async getCommentContentPropertiesById( parameters: Parameters.GetCommentContentPropertiesById, - callback: Callback + callback: Callback, ): Promise; /** * Retrieves a specific Content Property by ID that is attached to a specified comment. @@ -323,7 +323,7 @@ export class ContentProperties { */ async getCommentContentPropertiesById( parameters: Parameters.GetCommentContentPropertiesById, - callback?: never + callback?: never, ): Promise; async getCommentContentPropertiesById( parameters: Parameters.GetCommentContentPropertiesById, diff --git a/src/version2/customContent.ts b/src/version2/customContent.ts index d2a836df..610484d0 100644 --- a/src/version2/customContent.ts +++ b/src/version2/customContent.ts @@ -17,7 +17,7 @@ export class CustomContent { */ async getCustomContentByTypeInBlogPost( parameters: Parameters.GetCustomContentByTypeInBlogPost, - callback: Callback + callback: Callback, ): Promise; /** * Returns all custom content for a given type within a given blogpost. The number of results is limited by the @@ -29,7 +29,7 @@ export class CustomContent { */ async getCustomContentByTypeInBlogPost( parameters: Parameters.GetCustomContentByTypeInBlogPost, - callback?: never + callback?: never, ): Promise; async getCustomContentByTypeInBlogPost( parameters: Parameters.GetCustomContentByTypeInBlogPost, @@ -58,7 +58,7 @@ export class CustomContent { */ async getCustomContentByType( parameters: Parameters.GetCustomContentByType, - callback: Callback + callback: Callback, ): Promise; /** * Returns all custom content for a given type. The number of results is limited by the `limit` parameter and @@ -69,7 +69,7 @@ export class CustomContent { */ async getCustomContentByType( parameters: Parameters.GetCustomContentByType, - callback?: never + callback?: never, ): Promise; async getCustomContentByType( parameters: Parameters.GetCustomContentByType, @@ -122,7 +122,7 @@ export class CustomContent { */ async getCustomContentById( parameters: Parameters.GetCustomContentById, - callback: Callback + callback: Callback, ): Promise; /** * Returns a specific piece of custom content. @@ -132,7 +132,7 @@ export class CustomContent { */ async getCustomContentById( parameters: Parameters.GetCustomContentById, - callback?: never + callback?: never, ): Promise; async getCustomContentById( parameters: Parameters.GetCustomContentById, @@ -159,7 +159,7 @@ export class CustomContent { */ async updateCustomContent( parameters: Parameters.UpdateCustomContent, - callback: Callback + callback: Callback, ): Promise; /** * Update a custom content by id. @@ -170,7 +170,7 @@ export class CustomContent { */ async updateCustomContent( parameters: Parameters.UpdateCustomContent, - callback?: never + callback?: never, ): Promise; async updateCustomContent( parameters: Parameters.UpdateCustomContent, @@ -220,7 +220,7 @@ export class CustomContent { */ async getCustomContentByTypeInPage( parameters: Parameters.GetCustomContentByTypeInPage, - callback: Callback + callback: Callback, ): Promise; /** * Returns all custom content for a given type within a given page. The number of results is limited by the `limit` @@ -232,7 +232,7 @@ export class CustomContent { */ async getCustomContentByTypeInPage( parameters: Parameters.GetCustomContentByTypeInPage, - callback?: never + callback?: never, ): Promise; async getCustomContentByTypeInPage( parameters: Parameters.GetCustomContentByTypeInPage, @@ -262,7 +262,7 @@ export class CustomContent { */ async getCustomContentByTypeInSpace( parameters: Parameters.GetCustomContentByTypeInSpace, - callback: Callback + callback: Callback, ): Promise; /** * Returns all custom content for a given type within a given space. The number of results is limited by the `limit` @@ -274,7 +274,7 @@ export class CustomContent { */ async getCustomContentByTypeInSpace( parameters: Parameters.GetCustomContentByTypeInSpace, - callback?: never + callback?: never, ): Promise; async getCustomContentByTypeInSpace( parameters: Parameters.GetCustomContentByTypeInSpace, diff --git a/src/version2/label.ts b/src/version2/label.ts index de7e906a..dce804dd 100644 --- a/src/version2/label.ts +++ b/src/version2/label.ts @@ -16,7 +16,7 @@ export class Label { */ async getAttachmentLabels( parameters: Parameters.GetAttachmentLabels, - callback: Callback + callback: Callback, ): Promise; /** * Returns the labels of specific attachment. The number of results is limited by the `limit` parameter and additional @@ -27,7 +27,7 @@ export class Label { */ async getAttachmentLabels( parameters: Parameters.GetAttachmentLabels, - callback?: never + callback?: never, ): Promise; async getAttachmentLabels( parameters: Parameters.GetAttachmentLabels, @@ -56,7 +56,7 @@ export class Label { */ async getBlogPostLabels( parameters: Parameters.GetBlogPostLabels, - callback: Callback + callback: Callback, ): Promise; /** * Returns the labels of specific blog post. The number of results is limited by the `limit` parameter and additional @@ -67,7 +67,7 @@ export class Label { */ async getBlogPostLabels( parameters: Parameters.GetBlogPostLabels, - callback?: never + callback?: never, ): Promise; async getBlogPostLabels( parameters: Parameters.GetBlogPostLabels, @@ -97,7 +97,7 @@ export class Label { */ async getCustomContentLabels( parameters: Parameters.GetCustomContentLabels, - callback: Callback + callback: Callback, ): Promise; /** * Returns the labels for a specific piece of custom content. The number of results is limited by the `limit` @@ -109,7 +109,7 @@ export class Label { */ async getCustomContentLabels( parameters: Parameters.GetCustomContentLabels, - callback?: never + callback?: never, ): Promise; async getCustomContentLabels( parameters: Parameters.GetCustomContentLabels, @@ -138,7 +138,7 @@ export class Label { */ async getPageLabels( parameters: Parameters.GetPageLabels, - callback: Callback + callback: Callback, ): Promise; /** * Returns the labels of specific page. The number of results is limited by the `limit` parameter and additional diff --git a/src/version2/page.ts b/src/version2/page.ts index 04dfe4ea..55dc11e4 100644 --- a/src/version2/page.ts +++ b/src/version2/page.ts @@ -16,7 +16,7 @@ export class Page { */ async getLabelPages( parameters: Parameters.GetLabelPages, - callback: Callback + callback: Callback, ): Promise; /** * Returns the pages of specified label. The number of results is limited by the `limit` parameter and additional @@ -52,7 +52,7 @@ export class Page { */ async getPages( parameters: Parameters.GetPages | undefined, - callback: Callback + callback: Callback, ): Promise; /** * Returns all pages. The number of results is limited by the `limit` parameter and additional results (if available) @@ -102,9 +102,7 @@ export class Page { params: { 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, }, - data: { - - }, + data: {}, }; return this.client.sendRequest(config, callback); @@ -194,7 +192,7 @@ export class Page { */ async getPagesInSpace( parameters: Parameters.GetPagesInSpace, - callback: Callback + callback: Callback, ): Promise; /** * Returns all pages in a space. The number of results is limited by the `limit` parameter and additional results (if @@ -206,7 +204,7 @@ export class Page { */ async getPagesInSpace( parameters: Parameters.GetPagesInSpace, - callback?: never + callback?: never, ): Promise; async getPagesInSpace( parameters: Parameters.GetPagesInSpace, diff --git a/src/version2/space.ts b/src/version2/space.ts index 1134f271..da9a59d6 100644 --- a/src/version2/space.ts +++ b/src/version2/space.ts @@ -17,7 +17,7 @@ export class Space { */ async getSpaces( parameters: Parameters.GetSpaces | undefined, - callback: Callback + callback: Callback, ): Promise; /** * Returns all spaces. The results will be sorted by id ascending. The number of results is limited by the `limit` diff --git a/src/version2/spaceProperties.ts b/src/version2/spaceProperties.ts index e4a2cbdc..9ad6d698 100644 --- a/src/version2/spaceProperties.ts +++ b/src/version2/spaceProperties.ts @@ -17,7 +17,7 @@ export class SpaceProperties { */ async getSpaceProperties( parameters: Parameters.GetSpaceProperties, - callback: Callback + callback: Callback, ): Promise; /** * Returns all properties for the given space. Space properties are a key-value storage associated with a space. The @@ -29,7 +29,7 @@ export class SpaceProperties { */ async getSpaceProperties( parameters: Parameters.GetSpaceProperties, - callback?: never + callback?: never, ): Promise; async getSpaceProperties( parameters: Parameters.GetSpaceProperties, @@ -56,7 +56,7 @@ export class SpaceProperties { */ async createSpaceProperty( parameters: Parameters.CreateSpaceProperty, - callback: Callback + callback: Callback, ): Promise; /** * Creates a new space property. @@ -66,7 +66,7 @@ export class SpaceProperties { */ async createSpaceProperty( parameters: Parameters.CreateSpaceProperty, - callback?: never + callback?: never, ): Promise; async createSpaceProperty( parameters: Parameters.CreateSpaceProperty, @@ -92,7 +92,7 @@ export class SpaceProperties { */ async getSpacePropertyById( parameters: Parameters.GetSpacePropertyById, - callback: Callback + callback: Callback, ): Promise; /** * Retrieve a space property by its id. @@ -102,7 +102,7 @@ export class SpaceProperties { */ async getSpacePropertyById( parameters: Parameters.GetSpacePropertyById, - callback?: never + callback?: never, ): Promise; async getSpacePropertyById( parameters: Parameters.GetSpacePropertyById, @@ -124,7 +124,7 @@ export class SpaceProperties { */ async updateSpacePropertyById( parameters: Parameters.UpdateSpacePropertyById, - callback: Callback + callback: Callback, ): Promise; /** * Update a space property by its id. @@ -134,7 +134,7 @@ export class SpaceProperties { */ async updateSpacePropertyById( parameters: Parameters.UpdateSpacePropertyById, - callback?: never + callback?: never, ): Promise; async updateSpacePropertyById( parameters: Parameters.UpdateSpacePropertyById, @@ -161,7 +161,7 @@ export class SpaceProperties { */ async deleteSpacePropertyById( parameters: Parameters.DeleteSpacePropertyById, - callback: Callback + callback: Callback, ): Promise; /** * Deletes a space property by its id. diff --git a/src/version2/task.ts b/src/version2/task.ts index 04caf643..14db0a73 100644 --- a/src/version2/task.ts +++ b/src/version2/task.ts @@ -16,7 +16,7 @@ export class Task { */ async getTasks( parameters: Parameters.GetTasks | undefined, - callback: Callback + callback: Callback, ): Promise; /** * Returns all tasks. The number of results is limited by the `limit` parameter and additional results (if available) diff --git a/src/version2/version.ts b/src/version2/version.ts index 1db61b1d..26fe3170 100644 --- a/src/version2/version.ts +++ b/src/version2/version.ts @@ -15,7 +15,7 @@ export class Version { */ async getAttachmentVersions( parameters: Parameters.GetAttachmentVersions, - callback: Callback + callback: Callback, ): Promise; /** * Returns the versions of specific attachment. @@ -25,7 +25,7 @@ export class Version { */ async getAttachmentVersions( parameters: Parameters.GetAttachmentVersions, - callback?: never + callback?: never, ): Promise; async getAttachmentVersions( parameters: Parameters.GetAttachmentVersions, @@ -51,7 +51,7 @@ export class Version { */ async getAttachmentVersionDetails( parameters: Parameters.GetAttachmentVersionDetails, - callback: Callback + callback: Callback, ): Promise; /** * Retrieves version details for the specified attachment and version number. @@ -60,7 +60,7 @@ export class Version { */ async getAttachmentVersionDetails( parameters: Parameters.GetAttachmentVersionDetails, - callback?: never + callback?: never, ): Promise; async getAttachmentVersionDetails( parameters: Parameters.GetAttachmentVersionDetails, @@ -82,7 +82,7 @@ export class Version { */ async getBlogPostVersions( parameters: Parameters.GetBlogPostVersions, - callback: Callback + callback: Callback, ): Promise; /** * Returns the versions of specific blog post. @@ -92,7 +92,7 @@ export class Version { */ async getBlogPostVersions( parameters: Parameters.GetBlogPostVersions, - callback?: never + callback?: never, ): Promise; async getBlogPostVersions( parameters: Parameters.GetBlogPostVersions, @@ -118,7 +118,7 @@ export class Version { */ async getBlogPostVersionDetails( parameters: Parameters.GetBlogPostVersionDetails, - callback: Callback + callback: Callback, ): Promise; /** * Retrieves version details for the specified blog post and version number. @@ -127,7 +127,7 @@ export class Version { */ async getBlogPostVersionDetails( parameters: Parameters.GetBlogPostVersionDetails, - callback?: never + callback?: never, ): Promise; async getBlogPostVersionDetails( parameters: Parameters.GetBlogPostVersionDetails, @@ -149,7 +149,7 @@ export class Version { */ async getPageVersions( parameters: Parameters.GetPageVersions, - callback: Callback + callback: Callback, ): Promise; /** * Returns the versions of specific page. @@ -159,7 +159,7 @@ export class Version { */ async getPageVersions( parameters: Parameters.GetPageVersions, - callback?: never + callback?: never, ): Promise; async getPageVersions( parameters: Parameters.GetPageVersions, @@ -185,7 +185,7 @@ export class Version { */ async getPageVersionDetails( parameters: Parameters.GetPageVersionDetails, - callback: Callback + callback: Callback, ): Promise; /** * Retrieves version details for the specified page and version number. @@ -194,7 +194,7 @@ export class Version { */ async getPageVersionDetails( parameters: Parameters.GetPageVersionDetails, - callback?: never + callback?: never, ): Promise; async getPageVersionDetails( parameters: Parameters.GetPageVersionDetails, @@ -216,7 +216,7 @@ export class Version { */ async getCustomContentVersions( parameters: Parameters.GetCustomContentVersions, - callback: Callback + callback: Callback, ): Promise; /** * Returns the versions of specific custom content. @@ -226,7 +226,7 @@ export class Version { */ async getCustomContentVersions( parameters: Parameters.GetCustomContentVersions, - callback?: never + callback?: never, ): Promise; async getCustomContentVersions( parameters: Parameters.GetCustomContentVersions, @@ -252,7 +252,7 @@ export class Version { */ async getCustomContentVersionDetails( parameters: Parameters.GetCustomContentVersionDetails, - callback: Callback + callback: Callback, ): Promise; /** * Retrieves version details for the specified custom content and version number. @@ -261,7 +261,7 @@ export class Version { */ async getCustomContentVersionDetails( parameters: Parameters.GetCustomContentVersionDetails, - callback?: never + callback?: never, ): Promise; async getCustomContentVersionDetails( parameters: Parameters.GetCustomContentVersionDetails, @@ -283,7 +283,7 @@ export class Version { */ async getFooterCommentVersionDetails( parameters: Parameters.GetFooterCommentVersionDetails, - callback: Callback + callback: Callback, ): Promise; /** * Retrieves version details for the specified footer comment version. @@ -293,7 +293,7 @@ export class Version { */ async getFooterCommentVersionDetails( parameters: Parameters.GetFooterCommentVersionDetails, - callback?: never + callback?: never, ): Promise; async getFooterCommentVersionDetails( parameters: Parameters.GetFooterCommentVersionDetails, From 4a849f48f645314798391d0a0d876f2275c1b850 Mon Sep 17 00:00:00 2001 From: Vladislav Tupikin Date: Sun, 21 May 2023 00:07:06 +0400 Subject: [PATCH 05/44] Version 2 Client new portion of API --- src/clients/version2Client.ts | 4 + src/version2/attachment.ts | 44 +++ src/version2/blogPost.ts | 30 +- src/version2/children.ts | 2 + src/version2/comment.ts | 34 +- src/version2/content.ts | 41 +++ src/version2/contentProperties.ts | 562 +++++++++++++++++++++++++++++- src/version2/customContent.ts | 31 +- src/version2/index.ts | 2 + src/version2/label.ts | 4 + src/version2/page.ts | 25 +- src/version2/space.ts | 1 + src/version2/spaceProperties.ts | 20 +- src/version2/task.ts | 33 +- src/version2/user.ts | 54 +++ src/version2/version.ts | 121 ++++++- 16 files changed, 964 insertions(+), 44 deletions(-) create mode 100644 src/version2/content.ts create mode 100644 src/version2/user.ts diff --git a/src/clients/version2Client.ts b/src/clients/version2Client.ts index f6ad9728..323da246 100644 --- a/src/clients/version2Client.ts +++ b/src/clients/version2Client.ts @@ -4,6 +4,7 @@ import { BlogPost, Children, Comment, + Content, ContentProperties, CustomContent, Label, @@ -11,6 +12,7 @@ import { Space, SpaceProperties, Task, + User, Version, } from '../version2'; @@ -19,6 +21,7 @@ export class Version2Client extends BaseClient { blogPost = new BlogPost(this); children = new Children(this); comment = new Comment(this); + content = new Content(this); contentProperties = new ContentProperties(this); customContent = new CustomContent(this); label = new Label(this); @@ -26,5 +29,6 @@ export class Version2Client extends BaseClient { space = new Space(this); spaceProperties = new SpaceProperties(this); task = new Task(this); + user = new User(this); version = new Version(this); } diff --git a/src/version2/attachment.ts b/src/version2/attachment.ts index 7e2e4043..bd2720c6 100644 --- a/src/version2/attachment.ts +++ b/src/version2/attachment.ts @@ -36,6 +36,7 @@ export class Attachment { method: 'GET', params: { version: parameters.version, + 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, }, }; @@ -77,6 +78,7 @@ export class Attachment { mediaType: parameters.mediaType, filename: parameters.filename, limit: parameters.limit, + 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, }, }; @@ -118,6 +120,47 @@ export class Attachment { mediaType: parameters.mediaType, filename: parameters.filename, limit: parameters.limit, + 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + }, + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Returns the attachments of specified label. The number of results is limited by the `limit` parameter and + * additional results (if available) will be available through the `next` URL present in the `Link` response header. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the attachment and its + * corresponding space. + */ + async getLabelAttachments( + parameters: Parameters.GetLabelAttachments, + callback: Callback, + ): Promise; + /** + * Returns the attachments of specified label. The number of results is limited by the `limit` parameter and + * additional results (if available) will be available through the `next` URL present in the `Link` response header. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the attachment and its + * corresponding space. + */ + async getLabelAttachments( + parameters: Parameters.GetLabelAttachments, + callback?: never, + ): Promise; + async getLabelAttachments( + parameters: Parameters.GetLabelAttachments, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: `/labels/${parameters.id}/attachments`, + method: 'GET', + params: { + sort: parameters.sort, + cursor: parameters.cursor, + limit: parameters.limit, + 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, }, }; @@ -159,6 +202,7 @@ export class Attachment { mediaType: parameters.mediaType, filename: parameters.filename, limit: parameters.limit, + 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, }, }; diff --git a/src/version2/blogPost.ts b/src/version2/blogPost.ts index 492465ab..03908a84 100644 --- a/src/version2/blogPost.ts +++ b/src/version2/blogPost.ts @@ -34,15 +34,18 @@ export class BlogPost { url: '/blogposts', method: 'GET', params: { + id: parameters?.id, + status: parameters?.status, + 'body-format': parameters?.bodyFormat, cursor: parameters?.cursor, limit: parameters?.limit, + 'serialize-ids-as-strings': parameters?.serializeIdsAsStrings, }, }; return this.client.sendRequest(config, callback); } - // todo /** * Creates a new blog post in the space specified by the spaceId. * @@ -51,7 +54,10 @@ export class BlogPost { * * Currently only supports the storage representation specified in the body.representation enums below */ - async createBlogPost(callback: Callback): Promise; + async createBlogPost( + parameters: Parameters.CreateBlogPost | undefined, + callback: Callback, + ): Promise; /** * Creates a new blog post in the space specified by the spaceId. * @@ -60,11 +66,17 @@ export class BlogPost { * * Currently only supports the storage representation specified in the body.representation enums below */ - async createBlogPost(callback?: never): Promise; - async createBlogPost(callback?: Callback): Promise { + async createBlogPost(parameters?: Parameters.CreateBlogPost, callback?: never): Promise; + async createBlogPost( + parameters?: Parameters.CreateBlogPost, + callback?: Callback, + ): Promise { const config: RequestConfig = { url: '/blogposts', method: 'POST', + params: { + 'serialize-ids-as-strings': parameters?.serializeIdsAsStrings, + }, }; return this.client.sendRequest(config, callback); @@ -98,6 +110,7 @@ export class BlogPost { 'body-format': parameters['body-format'], 'get-draft': parameters['get-draft'], version: parameters.version, + 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, }, }; @@ -128,7 +141,9 @@ export class BlogPost { const config: RequestConfig = { url: `/blogposts/${parameters.id}`, method: 'PUT', - // todo + params: { + 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + }, }; return this.client.sendRequest(config, callback); @@ -187,9 +202,11 @@ export class BlogPost { url: `/labels/${parameters.id}/blogposts`, method: 'GET', params: { + 'body-format': parameters.bodyFormat, sort: parameters.sort, cursor: parameters.cursor, limit: parameters.limit, + 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, }, }; @@ -228,8 +245,11 @@ export class BlogPost { url: `/spaces/${parameters.id}/blogposts`, method: 'GET', params: { + status: parameters.status, + 'body-format': parameters.bodyFormat, cursor: parameters.cursor, limit: parameters.limit, + 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, }, }; diff --git a/src/version2/children.ts b/src/version2/children.ts index e6c46a9a..dfb523cb 100644 --- a/src/version2/children.ts +++ b/src/version2/children.ts @@ -37,6 +37,7 @@ export class Children { cursor: parameters.cursor, limit: parameters.limit, sort: parameters.sort, + 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, }, }; @@ -78,6 +79,7 @@ export class Children { cursor: parameters.cursor, limit: parameters.limit, sort: parameters.sort, + 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, }, }; diff --git a/src/version2/comment.ts b/src/version2/comment.ts index 915925e8..9c0880e3 100644 --- a/src/version2/comment.ts +++ b/src/version2/comment.ts @@ -41,6 +41,7 @@ export class Comment { sort: parameters.sort, cursor: parameters.cursor, limit: parameters.limit, + 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, }, }; @@ -81,6 +82,7 @@ export class Comment { sort: parameters.sort, cursor: parameters.cursor, limit: parameters.limit, + 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, }, }; @@ -123,6 +125,7 @@ export class Comment { sort: parameters.sort, cursor: parameters.cursor, limit: parameters.limit, + 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, }, }; @@ -158,13 +161,14 @@ export class Comment { callback?: Callback, ): Promise { const config: RequestConfig = { - url: `/blogposts/${parameters.id}/inline -comments`, + url: `/blogposts/${parameters.id}/inline-comments`, method: 'GET', params: { 'body-format': parameters['body-format'], sort: parameters.sort, cursor: parameters.cursor, limit: parameters.limit, + 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, }, }; @@ -200,6 +204,9 @@ export class Comment { const config: RequestConfig = { url: '/footer-comments', method: 'POST', + params: { + 'serialize-ids-as-strings': parameters?.serializeIdsAsStrings, + }, data: { blogPostId: parameters?.blogPostId, pageId: parameters?.pageId, @@ -236,11 +243,12 @@ export class Comment { callback?: Callback, ): Promise { const config: RequestConfig = { - url: `/footer-comments/${parameters.id}`, + url: `/footer-comments/${parameters.commentId}`, method: 'GET', params: { 'body-format': parameters['body-format'], version: parameters.version, + 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, }, }; @@ -272,8 +280,11 @@ export class Comment { callback?: Callback, ): Promise { const config: RequestConfig = { - url: `/footer-comments/${parameters.id}`, + url: `/footer-comments/${parameters.commentId}`, method: 'PUT', + params: { + 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + }, data: { version: parameters.version, body: parameters.body, @@ -302,7 +313,7 @@ export class Comment { callback?: Callback, ): Promise { const config: RequestConfig = { - url: `/footer-comments/${parameters.id}`, + url: `/footer-comments/${parameters.commentId}`, method: 'DELETE', }; @@ -345,6 +356,7 @@ export class Comment { sort: parameters.sort, cursor: parameters.cursor, limit: parameters.limit, + 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, }, }; @@ -384,6 +396,9 @@ export class Comment { const config: RequestConfig = { url: '/inline-comments', method: 'POST', + params: { + 'serialize-ids-as-strings': parameters?.serializeIdsAsStrings, + }, data: { blogPostId: parameters?.blogPostId, pageId: parameters?.pageId, @@ -421,11 +436,12 @@ export class Comment { callback?: Callback, ): Promise { const config: RequestConfig = { - url: `/inline-comments/${parameters.id}`, + url: `/inline-comments/${parameters.commentId}`, method: 'GET', params: { 'body-format': parameters['body-format'], version: parameters.version, + 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, }, }; @@ -457,8 +473,11 @@ export class Comment { callback?: Callback, ): Promise { const config: RequestConfig = { - url: `/inline-comments/${parameters.id}`, + url: `/inline-comments/${parameters.commentId}`, method: 'PUT', + params: { + 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + }, data: { version: parameters.version, body: parameters.body, @@ -488,7 +507,7 @@ export class Comment { callback?: Callback, ): Promise { const config: RequestConfig = { - url: `/inline-comments/${parameters.id}`, + url: `/inline-comments/${parameters.commentId}`, method: 'DELETE', }; @@ -527,6 +546,7 @@ export class Comment { url: `/inline-comments/${parameters.id}/children`, method: 'GET', params: { + 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, 'body-format': parameters['body-format'], sort: parameters.sort, cursor: parameters.cursor, diff --git a/src/version2/content.ts b/src/version2/content.ts new file mode 100644 index 00000000..ef30729e --- /dev/null +++ b/src/version2/content.ts @@ -0,0 +1,41 @@ +import * as Models from './models'; +import { Callback } from '../callback'; +import { Client } from '../clients'; +import { RequestConfig } from '../requestConfig'; + +export class Content { + constructor(private client: Client) {} + + /** + * Converts a list of content ids into their associated content types. This is useful for users migrating from v1 to + * v2 who may have stored just content ids without their associated type. This will return types as they should be + * used in v2. Notably, this will return `inline-comment` for inline comments and `footer-comment` for footer + * comments, which is distinct from them both being represented by `comment` in v1. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the requested content. + * Any content that the user does not have permission to view or does not exist will map to `null` in the response. + */ + async convertContentIdsToContentTypes( + callback: Callback, + ): Promise; + /** + * Converts a list of content ids into their associated content types. This is useful for users migrating from v1 to + * v2 who may have stored just content ids without their associated type. This will return types as they should be + * used in v2. Notably, this will return `inline-comment` for inline comments and `footer-comment` for footer + * comments, which is distinct from them both being represented by `comment` in v1. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the requested content. + * Any content that the user does not have permission to view or does not exist will map to `null` in the response. + */ + async convertContentIdsToContentTypes(callback?: never): Promise; + async convertContentIdsToContentTypes( + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: '/content/convert-ids-to-types', + method: 'POST', + }; + + return this.client.sendRequest(config, callback); + } +} diff --git a/src/version2/contentProperties.ts b/src/version2/contentProperties.ts index fa700ac1..ea8a8531 100644 --- a/src/version2/contentProperties.ts +++ b/src/version2/contentProperties.ts @@ -30,13 +30,51 @@ export class ContentProperties { callback?: Callback, ): Promise { const config: RequestConfig = { - url: `/attachments/${parameters.id}/properties`, + url: `/attachments/${parameters.attachmentId}/properties`, method: 'GET', params: { key: parameters.key, sort: parameters.sort, cursor: parameters.cursor, limit: parameters.limit, + 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + }, + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Creates a new attachment property. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to update the attachment. + */ + async createAttachmentProperty( + parameters: Parameters.CreateAttachmentProperty, + callback: Callback, + ): Promise; + /** + * Creates a new attachment property. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to update the attachment. + */ + async createAttachmentProperty( + parameters: Parameters.CreateAttachmentProperty, + callback?: never, + ): Promise; + async createAttachmentProperty( + parameters: Parameters.CreateAttachmentProperty, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: `/attachments/${parameters.attachmentId}/properties`, + method: 'POST', + params: { + 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + }, + data: { + key: parameters.key, + value: parameters.value, }, }; @@ -66,8 +104,79 @@ export class ContentProperties { callback?: Callback, ): Promise { const config: RequestConfig = { - url: `/attachments/${parameters.id}/properties/${parameters.propertyId}`, + url: `/attachments/${parameters.attachmentId}/properties/${parameters.propertyId}`, method: 'GET', + params: { + 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + }, + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Update an attachment property by its id. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the attachment. + */ + async updateAttachmentPropertyById( + parameters: Parameters.UpdateAttachmentPropertyById, + callback: Callback, + ): Promise; + /** + * Update an attachment property by its id. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the attachment. + */ + async updateAttachmentPropertyById( + parameters: Parameters.UpdateAttachmentPropertyById, + callback?: never, + ): Promise; + async updateAttachmentPropertyById( + parameters: Parameters.UpdateAttachmentPropertyById, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: `/attachments/${parameters.attachmentId}/properties/${parameters.propertyId}`, + method: 'PUT', + params: { + 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + }, + data: { + key: parameters.key, + value: parameters.value, + version: parameters.version, + }, + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Deletes an attachment property by its id. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to attachment the page. + */ + async deleteAttachmentPropertyById( + parameters: Parameters.DeleteAttachmentPropertyById, + callback: Callback, + ): Promise; + /** + * Deletes a attachment property by its id. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to attachment the page. + */ + async deleteAttachmentPropertyById( + parameters: Parameters.DeleteAttachmentPropertyById, + callback?: never, + ): Promise; + async deleteAttachmentPropertyById( + parameters: Parameters.DeleteAttachmentPropertyById, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: `/attachments/${parameters.attachmentId}/properties/${parameters.propertyId}`, + method: 'DELETE', }; return this.client.sendRequest(config, callback); @@ -96,13 +205,51 @@ export class ContentProperties { callback?: Callback, ): Promise { const config: RequestConfig = { - url: `/blogposts/${parameters.id}/properties`, + url: `/blogposts/${parameters.blogpostId}/properties`, method: 'GET', params: { key: parameters.key, sort: parameters.sort, cursor: parameters.cursor, limit: parameters.limit, + 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + }, + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Creates a new blog post property. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to update the blog post. + */ + async createBlogpostProperty( + parameters: Parameters.CreateBlogpostProperty, + callback: Callback, + ): Promise; + /** + * Creates a new blog post property. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to update the blog post. + */ + async createBlogpostProperty( + parameters: Parameters.CreateBlogpostProperty, + callback?: never, + ): Promise; + async createBlogpostProperty( + parameters: Parameters.CreateBlogpostProperty, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: `/blogposts/${parameters.blogpostId}/properties`, + method: 'POST', + params: { + 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + }, + data: { + key: parameters.key, + value: parameters.value, }, }; @@ -132,8 +279,79 @@ export class ContentProperties { callback?: Callback, ): Promise { const config: RequestConfig = { - url: `/blogposts/${parameters.id}/properties/${parameters.propertyId}`, + url: `/blogposts/${parameters.blogpostId}/properties/${parameters.propertyId}`, method: 'GET', + params: { + 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + }, + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Update a blog post property by its id. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the blog post. + */ + async updateBlogpostPropertyById( + parameters: Parameters.UpdateBlogpostPropertyById, + callback: Callback, + ): Promise; + /** + * Update a blog post property by its id. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the blog post. + */ + async updateBlogpostPropertyById( + parameters: Parameters.UpdateBlogpostPropertyById, + callback?: never, + ): Promise; + async updateBlogpostPropertyById( + parameters: Parameters.UpdateBlogpostPropertyById, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: `/blogposts/${parameters.blogpostId}/properties/${parameters.propertyId}`, + method: 'PUT', + params: { + 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + }, + data: { + key: parameters.key, + value: parameters.value, + version: parameters.version, + }, + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Deletes a blog post property by its id. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the blog post. + */ + async deleteBlogpostPropertyById( + parameters: Parameters.DeleteBlogpostPropertyById, + callback: Callback, + ): Promise; + /** + * Deletes a blog post property by its id. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the blog post. + */ + async deleteBlogpostPropertyById( + parameters: Parameters.DeleteBlogpostPropertyById, + callback?: never, + ): Promise; + async deleteBlogpostPropertyById( + parameters: Parameters.DeleteBlogpostPropertyById, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: `/blogposts/${parameters.blogpostId}/properties/${parameters.propertyId}`, + method: 'DELETE', }; return this.client.sendRequest(config, callback); @@ -162,13 +380,51 @@ export class ContentProperties { callback?: Callback, ): Promise { const config: RequestConfig = { - url: `/custom-content/${parameters.id}/properties`, + url: `/custom-content/${parameters.customContentId}/properties`, method: 'GET', params: { key: parameters.key, sort: parameters.sort, cursor: parameters.cursor, limit: parameters.limit, + 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + }, + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Creates a new custom content property. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to update the custom content. + */ + async createCustomContentProperty( + parameters: Parameters.CreateCustomContentProperty, + callback: Callback, + ): Promise; + /** + * Creates a new custom content property. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to update the custom content. + */ + async createCustomContentProperty( + parameters: Parameters.CreateCustomContentProperty, + callback?: never, + ): Promise; + async createCustomContentProperty( + parameters: Parameters.CreateCustomContentProperty, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: `/custom-content/${parameters.customContentId}/properties`, + method: 'POST', + params: { + 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + }, + data: { + key: parameters.key, + value: parameters.value, }, }; @@ -198,8 +454,79 @@ export class ContentProperties { callback?: Callback, ): Promise { const config: RequestConfig = { - url: `/custom-content/${parameters.id}/properties/${parameters.propertyId}`, + url: `/custom-content/${parameters.customContentId}/properties/${parameters.propertyId}`, method: 'GET', + params: { + 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + }, + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Update a custom content property by its id. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the custom content. + */ + async updateCustomContentPropertyById( + parameters: Parameters.UpdateCustomContentPropertyById, + callback: Callback, + ): Promise; + /** + * Update a custom content property by its id. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the custom content. + */ + async updateCustomContentPropertyById( + parameters: Parameters.UpdateCustomContentPropertyById, + callback?: never, + ): Promise; + async updateCustomContentPropertyById( + parameters: Parameters.UpdateCustomContentPropertyById, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: `/custom-content/${parameters.customContentId}/properties/${parameters.propertyId}`, + method: 'PUT', + params: { + 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + }, + data: { + key: parameters.key, + value: parameters.value, + version: parameters.version, + }, + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Deletes a custom content property by its id. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the custom content. + */ + async deleteCustomContentPropertyById( + parameters: Parameters.DeleteCustomContentPropertyById, + callback: Callback, + ): Promise; + /** + * Deletes a custom content property by its id. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the custom content. + */ + async deleteCustomContentPropertyById( + parameters: Parameters.DeleteCustomContentPropertyById, + callback?: never, + ): Promise; + async deleteCustomContentPropertyById( + parameters: Parameters.DeleteCustomContentPropertyById, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: `/custom-content/${parameters.customContentId}/properties/${parameters.propertyId}`, + method: 'DELETE', }; return this.client.sendRequest(config, callback); @@ -228,13 +555,51 @@ export class ContentProperties { callback?: Callback, ): Promise { const config: RequestConfig = { - url: `/pages/${parameters.id}/properties`, + url: `/pages/${parameters.pageId}/properties`, method: 'GET', params: { key: parameters.key, sort: parameters.sort, cursor: parameters.cursor, limit: parameters.limit, + 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + }, + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Creates a new page property. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to update the page. + */ + async createPageProperty( + parameters: Parameters.CreatePageProperty, + callback: Callback, + ): Promise; + /** + * Creates a new page property. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to update the page. + */ + async createPageProperty( + parameters: Parameters.CreatePageProperty, + callback?: never, + ): Promise; + async createPageProperty( + parameters: Parameters.CreatePageProperty, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: `/pages/${parameters.pageId}/properties`, + method: 'POST', + params: { + 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + }, + data: { + key: parameters.key, + value: parameters.value, }, }; @@ -264,8 +629,76 @@ export class ContentProperties { callback?: Callback, ): Promise { const config: RequestConfig = { - url: `/pages/${parameters.id}/properties/${parameters.propertyId}`, + url: `/pages/${parameters.pageId}/properties/${parameters.propertyId}`, method: 'GET', + params: { + 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + }, + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Update a page property by its id. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the page. + */ + async updatePagePropertyById( + parameters: Parameters.UpdatePagePropertyById, + callback: Callback, + ): Promise; + /** + * Update a page property by its id. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the page. + */ + async updatePagePropertyById( + parameters: Parameters.UpdatePagePropertyById, + callback?: never, + ): Promise; + async updatePagePropertyById( + parameters: Parameters.UpdatePagePropertyById, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: `/pages/${parameters.pageId}/properties/${parameters.propertyId}`, + method: 'PUT', + params: { + 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + }, + data: { + key: parameters.key, + value: parameters.value, + version: parameters.version, + }, + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Deletes a page property by its id. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the page. + */ + async deletePagePropertyById( + parameters: Parameters.DeletePagePropertyById, + callback: Callback, + ): Promise; + /** + * Deletes a page property by its id. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the page. + */ + async deletePagePropertyById(parameters: Parameters.DeletePagePropertyById, callback?: never): Promise; + async deletePagePropertyById( + parameters: Parameters.DeletePagePropertyById, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: `/pages/${parameters.pageId}/properties/${parameters.propertyId}`, + method: 'DELETE', }; return this.client.sendRequest(config, callback); @@ -294,13 +727,51 @@ export class ContentProperties { callback?: Callback, ): Promise { const config: RequestConfig = { - url: `/comments/${parameters.id}/properties`, + url: `/comments/${parameters.commentId}/properties`, method: 'GET', params: { key: parameters.key, sort: parameters.sort, cursor: parameters.cursor, limit: parameters.limit, + 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + }, + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Creates a new comment property. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to update the comment. + */ + async createCommentProperty( + parameters: Parameters.CreateCommentProperty, + callback: Callback, + ): Promise; + /** + * Creates a new comment property. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to update the comment. + */ + async createCommentProperty( + parameters: Parameters.CreateCommentProperty, + callback?: never, + ): Promise; + async createCommentProperty( + parameters: Parameters.CreateCommentProperty, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: `/comments/${parameters.commentId}/properties`, + method: 'POST', + params: { + 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + }, + data: { + key: parameters.key, + value: parameters.value, }, }; @@ -330,8 +801,79 @@ export class ContentProperties { callback?: Callback, ): Promise { const config: RequestConfig = { - url: `/comments/${parameters.id}/properties/${parameters.propertyId}`, + url: `/comments/${parameters.commentId}/properties/${parameters.propertyId}`, method: 'GET', + params: { + 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + }, + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Update a comment property by its id. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the comment. + */ + async updateCommentPropertyById( + parameters: Parameters.UpdateCommentPropertyById, + callback: Callback, + ): Promise; + /** + * Update a comment property by its id. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the comment. + */ + async updateCommentPropertyById( + parameters: Parameters.UpdateCommentPropertyById, + callback?: never, + ): Promise; + async updateCommentPropertyById( + parameters: Parameters.UpdateCommentPropertyById, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: `/comments/${parameters.commentId}/properties/${parameters.propertyId}`, + method: 'PUT', + params: { + 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + }, + data: { + key: parameters.key, + value: parameters.value, + version: parameters.version, + }, + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Deletes a comment property by its id. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the comment. + */ + async deleteCommentPropertyById( + parameters: Parameters.DeleteCommentPropertyById, + callback: Callback, + ): Promise; + /** + * Deletes a comment property by its id. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the comment. + */ + async deleteCommentPropertyById( + parameters: Parameters.DeleteCommentPropertyById, + callback?: never, + ): Promise; + async deleteCommentPropertyById( + parameters: Parameters.DeleteCommentPropertyById, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: `/comments/${parameters.commentId}/properties/${parameters.propertyId}`, + method: 'DELETE', }; return this.client.sendRequest(config, callback); diff --git a/src/version2/customContent.ts b/src/version2/customContent.ts index 610484d0..9d32e4f3 100644 --- a/src/version2/customContent.ts +++ b/src/version2/customContent.ts @@ -43,6 +43,7 @@ export class CustomContent { cursor: parameters.cursor, limit: parameters.limit, 'body-format': parameters['body-format'], + 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, }, }; @@ -80,9 +81,11 @@ export class CustomContent { method: 'GET', params: { type: parameters.type, + id: parameters.id, cursor: parameters.cursor, limit: parameters.limit, 'body-format': parameters['body-format'], + 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, }, }; @@ -90,25 +93,37 @@ export class CustomContent { } /** - * Creates a new custom content in the given space, page, blogpost or other custom conent. + * Creates a new custom content in the given space, page, blogpost or other custom content. * * Only one of `spaceId`, `pageId`, `blogPostId`, or `customContentId` is required in the request body. * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the page * or blogpost and its corresponding space. Permission to create custom content in the space. */ - async createCustomContent(callback: Callback): Promise; + async createCustomContent( + parameters: Parameters.CreateCustomContent | undefined, + callback: Callback, + ): Promise; /** - * Creates a new custom content in the given space, page, blogpost or other custom conent. + * Creates a new custom content in the given space, page, blogpost or other custom content. * * Only one of `spaceId`, `pageId`, `blogPostId`, or `customContentId` is required in the request body. * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the page * or blogpost and its corresponding space. Permission to create custom content in the space. */ - async createCustomContent(callback?: never): Promise; - async createCustomContent(callback?: Callback): Promise { + async createCustomContent( + parameters?: Parameters.CreateCustomContent, + callback?: never, + ): Promise; + async createCustomContent( + parameters?: Parameters.CreateCustomContent, + callback?: Callback, + ): Promise { const config: RequestConfig = { url: '/custom-content', method: 'POST', + params: { + 'serialize-ids-as-strings': parameters?.serializeIdsAsStrings, + }, }; return this.client.sendRequest(config, callback); @@ -144,6 +159,7 @@ export class CustomContent { params: { 'body-format': parameters['body-format'], version: parameters.version, + 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, }, }; @@ -179,6 +195,9 @@ export class CustomContent { const config: RequestConfig = { url: `/custom-content/${parameters.id}`, method: 'PUT', + params: { + 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + }, }; return this.client.sendRequest(config, callback); @@ -246,6 +265,7 @@ export class CustomContent { cursor: parameters.cursor, limit: parameters.limit, 'body-format': parameters['body-format'], + 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, }, }; @@ -288,6 +308,7 @@ export class CustomContent { cursor: parameters.cursor, limit: parameters.limit, 'body-format': parameters['body-format'], + 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, }, }; diff --git a/src/version2/index.ts b/src/version2/index.ts index 25017b02..bf51f53c 100644 --- a/src/version2/index.ts +++ b/src/version2/index.ts @@ -2,6 +2,7 @@ export * from './attachment'; export * from './blogPost'; export * from './children'; export * from './comment'; +export * from './content'; export * from './contentProperties'; export * from './customContent'; export * from './label'; @@ -9,4 +10,5 @@ export * from './page'; export * from './space'; export * from './spaceProperties'; export * from './task'; +export * from './user'; export * from './version'; diff --git a/src/version2/label.ts b/src/version2/label.ts index dce804dd..6c8fe34e 100644 --- a/src/version2/label.ts +++ b/src/version2/label.ts @@ -41,6 +41,7 @@ export class Label { sort: parameters.sort, cursor: parameters.cursor, limit: parameters.limit, + 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, }, }; @@ -81,6 +82,7 @@ export class Label { sort: parameters.sort, cursor: parameters.cursor, limit: parameters.limit, + 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, }, }; @@ -123,6 +125,7 @@ export class Label { sort: parameters.sort, cursor: parameters.cursor, limit: parameters.limit, + 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, }, }; @@ -160,6 +163,7 @@ export class Label { sort: parameters.sort, cursor: parameters.cursor, limit: parameters.limit, + 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, }, }; diff --git a/src/version2/page.ts b/src/version2/page.ts index 55dc11e4..2d756d87 100644 --- a/src/version2/page.ts +++ b/src/version2/page.ts @@ -34,9 +34,11 @@ export class Page { url: `/labels/${parameters.id}/pages`, method: 'GET', params: { + 'body-format': parameters['body-format'], sort: parameters.sort, cursor: parameters.cursor, limit: parameters.limit, + 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, }, }; @@ -67,8 +69,12 @@ export class Page { url: '/pages', method: 'GET', params: { + id: parameters?.id, + status: parameters?.status, + 'body-format': parameters?.['body-format'], cursor: parameters?.cursor, limit: parameters?.limit, + 'serialize-ids-as-strings': parameters?.serializeIdsAsStrings, }, }; @@ -84,7 +90,10 @@ export class Page { * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the corresponding space. * Permission to create a page in the space. */ - async createPage(parameters: Parameters.CreatePage, callback: Callback): Promise; + async createPage( + parameters: Parameters.CreatePage | undefined, + callback: Callback, + ): Promise; /** * Creates a page in the space. * @@ -94,15 +103,14 @@ export class Page { * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the corresponding space. * Permission to create a page in the space. */ - async createPage(parameters: Parameters.CreatePage, callback?: never): Promise; - async createPage(parameters: Parameters.CreatePage, callback?: Callback): Promise { + async createPage(parameters?: Parameters.CreatePage, callback?: never): Promise; + async createPage(parameters?: Parameters.CreatePage, callback?: Callback): Promise { const config: RequestConfig = { url: '/pages', method: 'POST', params: { - 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + 'serialize-ids-as-strings': parameters?.serializeIdsAsStrings, }, - data: {}, }; return this.client.sendRequest(config, callback); @@ -130,6 +138,7 @@ export class Page { 'body-format': parameters['body-format'], 'get-draft': parameters['get-draft'], version: parameters.version, + 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, }, }; @@ -154,6 +163,9 @@ export class Page { const config: RequestConfig = { url: `/pages/${parameters.id}`, method: 'PUT', + params: { + 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + }, }; return this.client.sendRequest(config, callback); @@ -214,8 +226,11 @@ export class Page { url: `/spaces/${parameters.id}/pages`, method: 'GET', params: { + status: parameters.status, + 'body-format': parameters['body-format'], cursor: parameters.cursor, limit: parameters.limit, + 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, }, }; diff --git a/src/version2/space.ts b/src/version2/space.ts index da9a59d6..190bfcb7 100644 --- a/src/version2/space.ts +++ b/src/version2/space.ts @@ -42,6 +42,7 @@ export class Space { 'description-format': parameters?.['description-format'], cursor: parameters?.cursor, limit: parameters?.limit, + 'serialize-ids-as-strings': parameters?.serializeIdsAsStrings, }, }; diff --git a/src/version2/spaceProperties.ts b/src/version2/spaceProperties.ts index 9ad6d698..fe430ce0 100644 --- a/src/version2/spaceProperties.ts +++ b/src/version2/spaceProperties.ts @@ -36,12 +36,13 @@ export class SpaceProperties { callback?: Callback, ): Promise { const config: RequestConfig = { - url: `/spaces/${parameters.id}/properties`, + url: `/spaces/${parameters.spaceId}/properties`, method: 'GET', params: { key: parameters.key, cursor: parameters.cursor, limit: parameters.limit, + 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, }, }; @@ -73,8 +74,11 @@ export class SpaceProperties { callback?: Callback, ): Promise { const config: RequestConfig = { - url: `/spaces/${parameters.id}/properties`, + url: `/spaces/${parameters.spaceId}/properties`, method: 'POST', + params: { + 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + }, data: { key: parameters.key, value: parameters.value, @@ -109,8 +113,11 @@ export class SpaceProperties { callback?: Callback, ): Promise { const config: RequestConfig = { - url: `/spaces/${parameters.id}/properties/${parameters.propertyId}`, + url: `/spaces/${parameters.spaceId}/properties/${parameters.propertyId}`, method: 'GET', + params: { + 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + }, }; return this.client.sendRequest(config, callback); @@ -141,8 +148,11 @@ export class SpaceProperties { callback?: Callback, ): Promise { const config: RequestConfig = { - url: `/spaces/${parameters.id}/properties/${parameters.propertyId}`, + url: `/spaces/${parameters.spaceId}/properties/${parameters.propertyId}`, method: 'PUT', + params: { + 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + }, data: { key: parameters.key, value: parameters.value, @@ -175,7 +185,7 @@ export class SpaceProperties { callback?: Callback, ): Promise { const config: RequestConfig = { - url: `/spaces/${parameters.id}/properties/${parameters.propertyId}`, + url: `/spaces/${parameters.spaceId}/properties/${parameters.propertyId}`, method: 'DELETE', }; diff --git a/src/version2/task.ts b/src/version2/task.ts index 14db0a73..9925a676 100644 --- a/src/version2/task.ts +++ b/src/version2/task.ts @@ -34,8 +34,9 @@ export class Task { 'body-format': parameters?.['body-format'], 'include-blank-tasks': parameters?.['include-blank-tasks'], status: parameters?.status, - 'space-id': parameters?.['space-id'], - 'page-id': parameters?.['page-id'], + 'task-id': parameters?.taskId, + 'space-id': parameters?.spaceId, + 'page-id': parameters?.pageId, 'blogpost-id': parameters?.['blogpost-id'], 'created-by': parameters?.['created-by'], 'assigned-to': parameters?.['assigned-to'], @@ -48,6 +49,7 @@ export class Task { 'completed-at-to': parameters?.['completed-at-to'], cursor: parameters?.cursor, limit: parameters?.limit, + 'serialize-ids-as-strings': parameters?.serializeIdsAsStrings, }, }; @@ -74,6 +76,33 @@ export class Task { method: 'GET', params: { 'body-format': parameters['body-format'], + 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + }, + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Update a task by id. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the containing page or + * blog post and view its corresponding space. + */ + async updateTask(parameters: Parameters.UpdateTask, callback: Callback): Promise; + /** + * Update a task by id. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the containing page or + * blog post and view its corresponding space. + */ + async updateTask(parameters: Parameters.UpdateTask, callback?: never): Promise; + async updateTask(parameters: Parameters.UpdateTask, callback?: Callback): Promise { + const config: RequestConfig = { + url: `/tasks/${parameters.id}`, + method: 'PUT', + params: { + 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, }, }; diff --git a/src/version2/user.ts b/src/version2/user.ts new file mode 100644 index 00000000..7959ed3a --- /dev/null +++ b/src/version2/user.ts @@ -0,0 +1,54 @@ +import * as Models from './models'; +import { Callback } from '../callback'; +import { Client } from '../clients'; +import { RequestConfig } from '../requestConfig'; + +export class User { + constructor(private client: Client) {} + + /** + * Returns the list of emails from the input list that do not have access to site. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site + * ('Can use' global permission). + */ + async checkAccessByEmail(callback: Callback): Promise; + /** + * Returns the list of emails from the input list that do not have access to site. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site + * ('Can use' global permission). + */ + async checkAccessByEmail(callback?: never): Promise; + async checkAccessByEmail(callback?: Callback): Promise { + const config: RequestConfig = { + url: '/user/access/check-access-by-email', + method: 'POST', + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Invite a list of emails to the site. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site + * ('Can use' global permission). + */ + async inviteByEmail(callback: Callback): Promise; + /** + * Invite a list of emails to the site. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site + * ('Can use' global permission). + */ + async inviteByEmail(callback?: never): Promise; + async inviteByEmail(callback?: Callback): Promise { + const config: RequestConfig = { + url: '/user/access/invite-by-email', + method: 'POST', + }; + + return this.client.sendRequest(config, callback); + } +} diff --git a/src/version2/version.ts b/src/version2/version.ts index 26fe3170..0dd0d9f4 100644 --- a/src/version2/version.ts +++ b/src/version2/version.ts @@ -67,7 +67,7 @@ export class Version { callback?: Callback, ): Promise { const config: RequestConfig = { - url: `/attachments/${parameters.id}/versions/${parameters.versionNumber}`, + url: `/attachments/${parameters.attachmentId}/versions/${parameters.versionNumber}`, method: 'GET', }; @@ -102,6 +102,7 @@ export class Version { url: `/blogposts/${parameters.id}/versions`, method: 'GET', params: { + 'body-format': parameters['body-format'], cursor: parameters.cursor, limit: parameters.limit, sort: parameters.sort, @@ -134,7 +135,7 @@ export class Version { callback?: Callback, ): Promise { const config: RequestConfig = { - url: `/blogposts/${parameters.id}/versions/${parameters.versionNumber}`, + url: `/blogposts/${parameters.blogpostId}/versions/${parameters.versionNumber}`, method: 'GET', }; @@ -169,6 +170,7 @@ export class Version { url: `/pages/${parameters.id}/versions`, method: 'GET', params: { + 'body-format': parameters['body-format'], cursor: parameters.cursor, limit: parameters.limit, sort: parameters.sort, @@ -201,7 +203,7 @@ export class Version { callback?: Callback, ): Promise { const config: RequestConfig = { - url: `/pages/${parameters.id}/versions/${parameters.versionNumber}`, + url: `/pages/${parameters.pageId}/versions/${parameters.versionNumber}`, method: 'GET', }; @@ -233,9 +235,10 @@ export class Version { callback?: Callback, ): Promise { const config: RequestConfig = { - url: `/custom-content/${parameters.id}/versions`, + url: `/custom-content/${parameters.customContentId}/versions`, method: 'GET', params: { + 'body-format': parameters['body-format'], cursor: parameters.cursor, limit: parameters.limit, sort: parameters.sort, @@ -268,13 +271,51 @@ export class Version { callback?: Callback, ): Promise { const config: RequestConfig = { - url: `/custom-content/${parameters.id}/versions/${parameters.versionNumber}`, + url: `/custom-content/${parameters.customContentId}/versions/${parameters.versionNumber}`, method: 'GET', }; return this.client.sendRequest(config, callback); } + /** + * Retrieves the versions of the specified footer comment. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the page + * or blog post and its corresponding space. + */ + async getFooterCommentVersions( + parameters: Parameters.GetFooterCommentVersions, + callback: Callback, + ): Promise; + /** + * Retrieves the versions of the specified footer comment. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the page + * or blog post and its corresponding space. + */ + async getFooterCommentVersions( + parameters: Parameters.GetFooterCommentVersions, + callback?: never, + ): Promise; + async getFooterCommentVersions( + parameters: Parameters.GetFooterCommentVersions, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: `/footer-comments/${parameters.id}/versions`, + method: 'GET', + params: { + 'body-format': parameters['body-format'], + cursor: parameters.cursor, + limit: parameters.limit, + sort: parameters.sort, + }, + }; + + return this.client.sendRequest(config, callback); + } + /** * Retrieves version details for the specified footer comment version. * @@ -306,4 +347,74 @@ export class Version { return this.client.sendRequest(config, callback); } + + /** + * Retrieves the versions of the specified inline comment. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the page + * or blog post and its corresponding space. + */ + async getInlineCommentVersions( + parameters: Parameters.GetInlineCommentVersions, + callback: Callback, + ): Promise; + /** + * Retrieves the versions of the specified inline comment. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the page + * or blog post and its corresponding space. + */ + async getInlineCommentVersions( + parameters: Parameters.GetInlineCommentVersions, + callback?: never, + ): Promise; + async getInlineCommentVersions( + parameters: Parameters.GetInlineCommentVersions, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: `/inline-comments/${parameters.id}/versions`, + method: 'GET', + params: { + 'body-format': parameters['body-format'], + cursor: parameters.cursor, + limit: parameters.limit, + sort: parameters.sort, + }, + }; + + return this.client.sendRequest(config, callback); + } + + /** + * Retrieves version details for the specified inline comment version. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the page + * or blog post and its corresponding space. + */ + async getInlineCommentVersionDetails( + parameters: Parameters.GetInlineCommentVersionDetails, + callback: Callback, + ): Promise; + /** + * Retrieves version details for the specified inline comment version. + * + * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the page + * or blog post and its corresponding space. + */ + async getInlineCommentVersionDetails( + parameters: Parameters.GetInlineCommentVersionDetails, + callback?: never, + ): Promise; + async getInlineCommentVersionDetails( + parameters: Parameters.GetInlineCommentVersionDetails, + callback?: Callback, + ): Promise { + const config: RequestConfig = { + url: `/inline-comments/${parameters.id}/versions/${parameters.versionNumber}`, + method: 'GET', + }; + + return this.client.sendRequest(config, callback); + } } From b696854545a0d1706538f02f269d129b68131953 Mon Sep 17 00:00:00 2001 From: Vladislav Tupikin Date: Sun, 21 May 2023 00:33:43 +0400 Subject: [PATCH 06/44] Models updated --- src/version2/models/attachment.ts | 24 +++++++++++++++++++ src/version2/models/attachmentVersion.ts | 18 ++++++++++++++ .../models/inlineCommentProperties.ts | 7 +++++- src/version2/models/inviteByEmail.ts | 11 +++++++++ src/version2/models/label.ts | 2 +- src/version2/models/page.ts | 6 ++--- src/version2/models/pageBodyWrite.ts | 6 +++++ src/version2/models/pageCommentModel.ts | 5 ++-- src/version2/models/pageInlineCommentModel.ts | 19 ++++++++------- src/version2/models/pageNestedBodyWrite.ts | 8 +++++++ src/version2/models/pageVersion.ts | 18 ++++++++++++++ .../models/primaryBodyRepresentation.ts | 5 +++- src/version2/models/space.ts | 4 ++-- src/version2/models/spaceProperty.ts | 2 +- .../models/spacePropertyCreateRequest.ts | 4 ++-- .../models/spacePropertyUpdateRequest.ts | 4 ++-- src/version2/models/task.ts | 10 ++++---- .../models/updateFooterCommentModel.ts | 8 +------ .../models/updateInlineCommentModel.ts | 11 +++------ src/version2/models/versionedEntity.ts | 9 +++++++ 20 files changed, 137 insertions(+), 44 deletions(-) create mode 100644 src/version2/models/attachmentVersion.ts create mode 100644 src/version2/models/inviteByEmail.ts create mode 100644 src/version2/models/pageBodyWrite.ts create mode 100644 src/version2/models/pageNestedBodyWrite.ts create mode 100644 src/version2/models/pageVersion.ts create mode 100644 src/version2/models/versionedEntity.ts diff --git a/src/version2/models/attachment.ts b/src/version2/models/attachment.ts index 22b8a652..64ca4842 100644 --- a/src/version2/models/attachment.ts +++ b/src/version2/models/attachment.ts @@ -7,6 +7,30 @@ export interface Attachment { status?: ContentStatus; /** Title of the comment. */ title?: string; + /** + * ID of the containing page. + * + * Note: This is only returned if the attachment has a container that is a page. + * + + */ + pageId?: {}; + /** + * ID of the containing blog post. + * + * Note: This is only returned if the attachment has a container that is a blog post. + * + + */ + blogPostId?: {}; + /** + * ID of the containing custom content. + * + * Note: This is only returned if the attachment has a container that is custom content. + * + + */ + customContentId?: {}; /** Media Type for the attachment. */ mediaType?: string; /** Media Type description for the attachment. */ diff --git a/src/version2/models/attachmentVersion.ts b/src/version2/models/attachmentVersion.ts new file mode 100644 index 00000000..ac59a4aa --- /dev/null +++ b/src/version2/models/attachmentVersion.ts @@ -0,0 +1,18 @@ +import { VersionedEntity } from './versionedEntity'; + +export interface AttachmentVersion { + /** Date and time when the version was created. In format "YYYY-MM-DDTHH:mm:ss.sssZ". */ + createdAt: string; + /** Message associated with the current version. */ + message: string; + /** The version number. */ + number: number; + /** + * Describes if this version is a minor version. Email notifications and activity stream updates are not created for + * minor versions. + */ + minorEdit: boolean; + /** The account ID of the user who created this version. */ + authorId: string; + attachment: VersionedEntity; +} diff --git a/src/version2/models/inlineCommentProperties.ts b/src/version2/models/inlineCommentProperties.ts index 631915ef..5baa2132 100644 --- a/src/version2/models/inlineCommentProperties.ts +++ b/src/version2/models/inlineCommentProperties.ts @@ -1 +1,6 @@ -export interface InlineCommentProperties {} +export interface InlineCommentProperties { + /** Property value used to reference the highlighted element in DOM. */ + 'inline-marker-ref'?: string; + /** Text that is highlighted */ + 'inline-original-selection'?: string; +} diff --git a/src/version2/models/inviteByEmail.ts b/src/version2/models/inviteByEmail.ts new file mode 100644 index 00000000..ce04206a --- /dev/null +++ b/src/version2/models/inviteByEmail.ts @@ -0,0 +1,11 @@ +export interface InviteByEmail { + /** List of emails invited to the site. */ + emailsInvited?: string[]; + /** List of invalid emails provided in the request. */ + emailsNotInvited?: { + /** Email that was not invited. */ + key?: string; + /** Reason why the email was not invited. */ + value?: string; + }; +} diff --git a/src/version2/models/label.ts b/src/version2/models/label.ts index b5b36e0c..15e40830 100644 --- a/src/version2/models/label.ts +++ b/src/version2/models/label.ts @@ -1,6 +1,6 @@ export interface Label { /** ID of the label. */ - id?: number; + id?: {}; /** Name of the label. */ name?: string; /** Prefix of the label. */ diff --git a/src/version2/models/page.ts b/src/version2/models/page.ts index 9d3cdf5c..34ec90e2 100644 --- a/src/version2/models/page.ts +++ b/src/version2/models/page.ts @@ -4,14 +4,14 @@ import { Version } from './version'; export interface Page { /** ID of the page. */ - id?: number; + id?: {}; status?: ContentStatus; /** Title of the page. */ title?: string; /** ID of the space the page is in. */ - spaceId?: number; + spaceId?: {}; /** ID of the parent page, or null if there is no parent page. */ - parentId?: number; + parentId?: {}; /** The account ID of the user who created this page originally. */ authorId?: string; /** Date and time when the page was created. In format "YYYY-MM-DDTHH:mm:ss.sssZ". */ diff --git a/src/version2/models/pageBodyWrite.ts b/src/version2/models/pageBodyWrite.ts new file mode 100644 index 00000000..e9e702ca --- /dev/null +++ b/src/version2/models/pageBodyWrite.ts @@ -0,0 +1,6 @@ +export interface PageBodyWrite { + /** Type of content representation used for the value field. */ + representation?: string; + /** Body of the page, in the format found in the representation field. */ + value?: string; +} diff --git a/src/version2/models/pageCommentModel.ts b/src/version2/models/pageCommentModel.ts index b0c31e9d..73ecc099 100644 --- a/src/version2/models/pageCommentModel.ts +++ b/src/version2/models/pageCommentModel.ts @@ -4,13 +4,12 @@ import { Version } from './version'; export interface PageCommentModel { /** ID of the comment. */ - id?: number; + id?: {}; status?: ContentStatus; /** Title of the comment. */ title?: string; /** ID of the page the comment is in. */ - pageId?: number; + pageId?: {}; version?: Version; - /** Contains representations of the comment's body in different formats. */ body?: Body; } diff --git a/src/version2/models/pageInlineCommentModel.ts b/src/version2/models/pageInlineCommentModel.ts index 9912f62a..4ec5a45f 100644 --- a/src/version2/models/pageInlineCommentModel.ts +++ b/src/version2/models/pageInlineCommentModel.ts @@ -1,16 +1,19 @@ import { Body } from './body'; +import { ContentStatus } from './contentStatus'; +import { InlineCommentProperties } from './inlineCommentProperties'; +import { InlineCommentResolutionStatus } from './inlineCommentResolutionStatus'; import { Version } from './version'; export interface PageInlineCommentModel { /** ID of the comment. */ - id: number; - /** The status of the content. */ - status: 'current' | 'trashed' | 'historical' | 'deleted' | 'any' | 'draft' | 'archived' | string; + id?: {}; + status?: ContentStatus; /** Title of the comment. */ - title: string; + title?: string; /** ID of the page the comment is in. */ - pageId: number; - version: Version; - /** Contains fields for each representation type requested. */ - body: Body; + pageId?: {}; + version?: Version; + body?: Body; + resolutionStatus?: InlineCommentResolutionStatus; + properties?: InlineCommentProperties; } diff --git a/src/version2/models/pageNestedBodyWrite.ts b/src/version2/models/pageNestedBodyWrite.ts new file mode 100644 index 00000000..72680ba4 --- /dev/null +++ b/src/version2/models/pageNestedBodyWrite.ts @@ -0,0 +1,8 @@ +import { PageBodyWrite } from './pageBodyWrite'; + +/** Body of the page. Only one body format should be specified as the property* for this object, e.g. `storage`. */ +export interface PageNestedBodyWrite { + storage?: PageBodyWrite; + atlasDocFormat?: PageBodyWrite; + wiki?: PageBodyWrite; +} diff --git a/src/version2/models/pageVersion.ts b/src/version2/models/pageVersion.ts new file mode 100644 index 00000000..ce5b46f4 --- /dev/null +++ b/src/version2/models/pageVersion.ts @@ -0,0 +1,18 @@ +import { VersionedEntity } from './versionedEntity'; + +export interface PageVersion { + /** Date and time when the version was created. In format "YYYY-MM-DDTHH:mm:ss.sssZ". */ + createdAt: string; + /** Message associated with the current version. */ + message: string; + /** The version number. */ + number: number; + /** + * Describes if this version is a minor version. Email notifications and activity stream updates are not created for + * minor versions. + */ + minorEdit: boolean; + /** The account ID of the user who created this version. */ + authorId: string; + page: VersionedEntity; +} diff --git a/src/version2/models/primaryBodyRepresentation.ts b/src/version2/models/primaryBodyRepresentation.ts index eb812e3b..6e699989 100644 --- a/src/version2/models/primaryBodyRepresentation.ts +++ b/src/version2/models/primaryBodyRepresentation.ts @@ -2,4 +2,7 @@ * The primary formats a body can be represented as. A subset of BodyRepresentation. These formats are the only allowed * formats in certain use cases. */ -export interface PrimaryBodyRepresentation {} +export interface PrimaryBodyRepresentation { + storage?: any; + atlas_doc_format?: any; +} diff --git a/src/version2/models/space.ts b/src/version2/models/space.ts index cb4134c8..485e9abd 100644 --- a/src/version2/models/space.ts +++ b/src/version2/models/space.ts @@ -4,7 +4,7 @@ import { SpaceType } from './spaceType'; export interface Space { /** ID of the space. */ - id?: number; + id?: {}; /** Key of the space. */ key?: string; /** Name of the space. */ @@ -12,6 +12,6 @@ export interface Space { type?: SpaceType; status?: SpaceStatus; /** ID of the space's homepage. */ - homepageId?: number; + homepageId?: {}; description?: SpaceDescription; } diff --git a/src/version2/models/spaceProperty.ts b/src/version2/models/spaceProperty.ts index 7424c7e9..daaefcf1 100644 --- a/src/version2/models/spaceProperty.ts +++ b/src/version2/models/spaceProperty.ts @@ -1,6 +1,6 @@ export interface SpaceProperty { /** ID of the space property. */ - id?: number; + id?: {}; /** Key of the space property. */ key?: string; /** Value of the space property. */ diff --git a/src/version2/models/spacePropertyCreateRequest.ts b/src/version2/models/spacePropertyCreateRequest.ts index b46aaf25..680a0e6e 100644 --- a/src/version2/models/spacePropertyCreateRequest.ts +++ b/src/version2/models/spacePropertyCreateRequest.ts @@ -1,6 +1,6 @@ export interface SpacePropertyCreateRequest { /** Key of the space property */ - key?: string; + key: string; /** Value of the space property. */ - value?: {}; + value: any; } diff --git a/src/version2/models/spacePropertyUpdateRequest.ts b/src/version2/models/spacePropertyUpdateRequest.ts index c78800c0..366887fb 100644 --- a/src/version2/models/spacePropertyUpdateRequest.ts +++ b/src/version2/models/spacePropertyUpdateRequest.ts @@ -1,8 +1,8 @@ export interface SpacePropertyUpdateRequest { /** Key of the space property */ - key?: string; + key: string; /** Value of the space property. */ - value?: {}; + value: any; /** New version number and associated message */ version?: { /** Version number of the new version. Should be 1 more than the current version number. */ diff --git a/src/version2/models/task.ts b/src/version2/models/task.ts index a4e90e3e..6b820608 100644 --- a/src/version2/models/task.ts +++ b/src/version2/models/task.ts @@ -2,15 +2,15 @@ import { Body } from './body'; export interface Task { /** ID of the task. */ - id?: number; + id?: {}; /** Local ID of the task. This ID is local to the corresponding page or blog post. */ - localId?: number; + localId?: {}; /** ID of the space the task is in. */ - spaceId?: number; + spaceId?: {}; /** ID of the page the task is in. */ - pageId?: number; + pageId?: {}; /** ID of the blog post the task is in. */ - blogPostId?: number; + blogPostId?: {}; /** Status of the task. */ status?: string; body?: Body; diff --git a/src/version2/models/updateFooterCommentModel.ts b/src/version2/models/updateFooterCommentModel.ts index 5561acf4..de3dae6b 100644 --- a/src/version2/models/updateFooterCommentModel.ts +++ b/src/version2/models/updateFooterCommentModel.ts @@ -5,11 +5,5 @@ export interface UpdateFooterCommentModel { /** Optional message store for the new version. */ message?: string; }; - /** Body of the comment */ - body?: { - /** Body of the comment */ - value?: string; - /** Format of the body's value. */ - representation?: string; - }; + body?: {}; } diff --git a/src/version2/models/updateInlineCommentModel.ts b/src/version2/models/updateInlineCommentModel.ts index e8352fad..ead42774 100644 --- a/src/version2/models/updateInlineCommentModel.ts +++ b/src/version2/models/updateInlineCommentModel.ts @@ -1,19 +1,14 @@ export interface UpdateInlineCommentModel { + commentId: number; version?: { /** Number of new version. Should be 1 higher than current version of the comment. */ number?: number; /** Optional message store for the new version. */ message?: string; }; - /** Body of the comment */ - body?: { - /** Body of the comment */ - value?: string; - /** Format of the body's value. */ - representation?: string; - }; + body?: {}; /** - * -| Resolved state of the comment. Set to true to resolve the comment, set to false to reopen it. If matching the + * Resolved state of the comment. Set to true to resolve the comment, set to false to reopen it. If matching the * existing state (i.e. true -> resolved or false -> open/reopened) , no change will occur. A dangling comment cannot * be updated. */ diff --git a/src/version2/models/versionedEntity.ts b/src/version2/models/versionedEntity.ts new file mode 100644 index 00000000..b5f310b5 --- /dev/null +++ b/src/version2/models/versionedEntity.ts @@ -0,0 +1,9 @@ +import { Body } from './body'; + +export interface VersionedEntity { + /** Title of the entity. */ + title: string; + /** ID of the entity. */ + id: string; + body: Body; +} From 14056f4a37780e9710753d811e3352e61dee7989 Mon Sep 17 00:00:00 2001 From: Vladislav Tupikin Date: Sun, 21 May 2023 16:13:16 +0400 Subject: [PATCH 07/44] Models updated --- src/version2/models/blogPost.ts | 4 +-- src/version2/models/blogPostBodyWrite.ts | 6 ++++ src/version2/models/blogPostCommentModel.ts | 4 +-- .../models/blogPostInlineCommentModel.ts | 19 +++++++----- .../models/blogPostNestedBodyWrite.ts | 8 +++++ src/version2/models/blogPostVersion.ts | 18 +++++++++++ src/version2/models/checkAccessByEmail.ts | 6 ++++ src/version2/models/childCustomContent.ts | 4 +-- src/version2/models/childPage.ts | 4 +-- src/version2/models/childrenCommentModel.ts | 5 ++-- src/version2/models/commentBodyWrite.ts | 6 ++++ src/version2/models/commentNestedBodyWrite.ts | 8 +++++ src/version2/models/commentVersion.ts | 18 +++++++++++ .../models/contentIdToContentTypeResponse.ts | 8 +++++ src/version2/models/contentProperty.ts | 8 ++--- .../models/contentPropertyCreateRequest.ts | 7 +++++ .../models/contentPropertyUpdateRequest.ts | 13 ++++++++ .../models/createFooterCommentModel.ts | 6 ++-- .../models/createInlineCommentModel.ts | 14 +++------ src/version2/models/customContent.ts | 10 +++---- src/version2/models/customContentBodyWrite.ts | 6 ++++ .../models/customContentNestedBodyWrite.ts | 11 +++++++ src/version2/models/customContentVersion.ts | 18 +++++++++++ src/version2/models/footerCommentModel.ts | 8 ++--- .../models/getAttachmentContentProperties.ts | 9 +++++- src/version2/models/getAttachmentLabels.ts | 9 +++++- src/version2/models/getAttachmentVersions.ts | 11 +++++-- .../models/getBlogPostFooterComments.ts | 9 +++++- .../models/getBlogPostInlineComments.ts | 9 +++++- src/version2/models/getBlogPostLabels.ts | 9 +++++- src/version2/models/getBlogPostVersions.ts | 11 +++++-- src/version2/models/getBlogPosts.ts | 9 +++++- src/version2/models/getBlogPostsInSpace.ts | 9 +++++- src/version2/models/getBlogpostAttachments.ts | 9 +++++- .../models/getBlogpostContentProperties.ts | 9 +++++- src/version2/models/getChildCustomContent.ts | 9 +++++- src/version2/models/getChildPages.ts | 9 +++++- .../models/getCommentContentProperties.ts | 9 +++++- .../models/getCustomContentAttachments.ts | 9 +++++- src/version2/models/getCustomContentByType.ts | 9 +++++- .../getCustomContentByTypeInBlogPost.ts | 9 +++++- .../models/getCustomContentByTypeInPage.ts | 9 +++++- .../models/getCustomContentByTypeInSpace.ts | 9 +++++- .../getCustomContentContentProperties.ts | 9 +++++- src/version2/models/getCustomContentLabels.ts | 9 +++++- .../models/getCustomContentVersions.ts | 11 +++++-- .../models/getFooterCommentChildren.ts | 9 +++++- .../models/getFooterCommentVersions.ts | 12 ++++++++ .../models/getInlineCommentChildren.ts | 9 +++++- .../models/getInlineCommentVersions.ts | 12 ++++++++ src/version2/models/getLabelAttachments.ts | 12 ++++++++ src/version2/models/getLabelBlogPosts.ts | 9 +++++- src/version2/models/getLabelPages.ts | 9 +++++- src/version2/models/getPageAttachments.ts | 9 +++++- .../models/getPageContentProperties.ts | 9 +++++- src/version2/models/getPageFooterComments.ts | 9 +++++- src/version2/models/getPageInlineComments.ts | 9 +++++- src/version2/models/getPageLabels.ts | 9 +++++- src/version2/models/getPageVersions.ts | 11 +++++-- src/version2/models/getPages.ts | 9 +++++- src/version2/models/getPagesInSpace.ts | 9 +++++- src/version2/models/getSpaceProperties.ts | 9 +++++- src/version2/models/getSpaces.ts | 9 +++++- src/version2/models/getTasks.ts | 9 +++++- src/version2/models/index.ts | 30 ++++++++++++++++--- .../models/inlineCommentChildrenModel.ts | 16 +++++----- src/version2/models/inlineCommentModel.ts | 12 ++++---- 67 files changed, 551 insertions(+), 103 deletions(-) create mode 100644 src/version2/models/blogPostBodyWrite.ts create mode 100644 src/version2/models/blogPostNestedBodyWrite.ts create mode 100644 src/version2/models/blogPostVersion.ts create mode 100644 src/version2/models/checkAccessByEmail.ts create mode 100644 src/version2/models/commentBodyWrite.ts create mode 100644 src/version2/models/commentNestedBodyWrite.ts create mode 100644 src/version2/models/commentVersion.ts create mode 100644 src/version2/models/contentIdToContentTypeResponse.ts create mode 100644 src/version2/models/contentPropertyCreateRequest.ts create mode 100644 src/version2/models/contentPropertyUpdateRequest.ts create mode 100644 src/version2/models/customContentBodyWrite.ts create mode 100644 src/version2/models/customContentNestedBodyWrite.ts create mode 100644 src/version2/models/customContentVersion.ts create mode 100644 src/version2/models/getFooterCommentVersions.ts create mode 100644 src/version2/models/getInlineCommentVersions.ts create mode 100644 src/version2/models/getLabelAttachments.ts diff --git a/src/version2/models/blogPost.ts b/src/version2/models/blogPost.ts index a5cd0704..38200cea 100644 --- a/src/version2/models/blogPost.ts +++ b/src/version2/models/blogPost.ts @@ -4,12 +4,12 @@ import { Version } from './version'; export interface BlogPost { /** ID of the blog post. */ - id?: number; + id?: {}; status?: ContentStatus; /** Title of the blog post. */ title?: string; /** ID of the space the blog post is in. */ - spaceId?: number; + spaceId?: {}; /** The account ID of the user who created this blog post originally. */ authorId?: string; /** Date and time when the blog post was created. In format "YYYY-MM-DDTHH:mm:ss.sssZ". */ diff --git a/src/version2/models/blogPostBodyWrite.ts b/src/version2/models/blogPostBodyWrite.ts new file mode 100644 index 00000000..f016d7ea --- /dev/null +++ b/src/version2/models/blogPostBodyWrite.ts @@ -0,0 +1,6 @@ +export interface BlogPostBodyWrite { + /** Type of content representation used for the value field. */ + representation?: string; + /** Body of the blog post, in the format found in the representation field. */ + value?: string; +} diff --git a/src/version2/models/blogPostCommentModel.ts b/src/version2/models/blogPostCommentModel.ts index dbfea269..4b67318c 100644 --- a/src/version2/models/blogPostCommentModel.ts +++ b/src/version2/models/blogPostCommentModel.ts @@ -4,12 +4,12 @@ import { Version } from './version'; export interface BlogPostCommentModel { /** ID of the comment. */ - id?: number; + id?: {}; status?: ContentStatus; /** Title of the comment. */ title?: string; /** ID of the blog post the comment is in. */ - blogPostId?: number; + blogPostId?: {}; version?: Version; /** Contains representations of the comment's body in different formats. */ body?: Body; diff --git a/src/version2/models/blogPostInlineCommentModel.ts b/src/version2/models/blogPostInlineCommentModel.ts index f93260c5..e1257088 100644 --- a/src/version2/models/blogPostInlineCommentModel.ts +++ b/src/version2/models/blogPostInlineCommentModel.ts @@ -1,16 +1,19 @@ import { Body } from './body'; +import { ContentStatus } from './contentStatus'; +import { InlineCommentProperties } from './inlineCommentProperties'; +import { InlineCommentResolutionStatus } from './inlineCommentResolutionStatus'; import { Version } from './version'; export interface BlogPostInlineCommentModel { /** ID of the comment. */ - id: number; - /** The status of the content. */ - status: 'current' | 'trashed' | 'historical' | 'deleted' | 'any' | 'draft' | 'archived' | string; + id?: {}; + status?: ContentStatus; /** Title of the comment. */ - title: string; + title?: string; /** ID of the blog post the comment is in. */ - blogPostId: number; - version: Version; - /** Contains fields for each representation type requested. */ - body: Body; + blogPostId?: {}; + version?: Version; + body?: Body; + resolutionStatus?: InlineCommentResolutionStatus; + properties?: InlineCommentProperties; } diff --git a/src/version2/models/blogPostNestedBodyWrite.ts b/src/version2/models/blogPostNestedBodyWrite.ts new file mode 100644 index 00000000..dc070bb9 --- /dev/null +++ b/src/version2/models/blogPostNestedBodyWrite.ts @@ -0,0 +1,8 @@ +import { BlogPostBodyWrite } from './blogPostBodyWrite'; + +/** Body of the blog post. Only one body format should be specified as the property* for this object, e.g. `storage`. */ +export interface BlogPostNestedBodyWrite { + storage?: BlogPostBodyWrite; + atlasDocFormat?: BlogPostBodyWrite; + wiki?: BlogPostBodyWrite; +} diff --git a/src/version2/models/blogPostVersion.ts b/src/version2/models/blogPostVersion.ts new file mode 100644 index 00000000..996c59dc --- /dev/null +++ b/src/version2/models/blogPostVersion.ts @@ -0,0 +1,18 @@ +import { VersionedEntity } from './versionedEntity'; + +export interface BlogPostVersion { + /** Date and time when the version was created. In format "YYYY-MM-DDTHH:mm:ss.sssZ". */ + createdAt?: string; + /** Message associated with the current version. */ + message?: string; + /** The version number. */ + number?: number; + /** + * Describes if this version is a minor version. Email notifications and activity stream updates are not created for + * minor versions. + */ + minorEdit?: boolean; + /** The account ID of the user who created this version. */ + authorId?: string; + blogpost?: VersionedEntity; +} diff --git a/src/version2/models/checkAccessByEmail.ts b/src/version2/models/checkAccessByEmail.ts new file mode 100644 index 00000000..ade9ed3c --- /dev/null +++ b/src/version2/models/checkAccessByEmail.ts @@ -0,0 +1,6 @@ +export interface CheckAccessByEmail { + /** List of emails that do not have access to site. */ + emailsWithoutAccess?: string[]; + /** List of invalid emails provided in the request. */ + invalidEmails?: string[]; +} diff --git a/src/version2/models/childCustomContent.ts b/src/version2/models/childCustomContent.ts index 851d33e4..0e40fa3d 100644 --- a/src/version2/models/childCustomContent.ts +++ b/src/version2/models/childCustomContent.ts @@ -2,12 +2,12 @@ import { OnlyArchivedAndCurrentContentStatus } from './onlyArchivedAndCurrentCon export interface ChildCustomContent { /** ID of the child custom content. */ - id?: number; + id?: {}; status?: OnlyArchivedAndCurrentContentStatus; /** Title of the custom content. */ title?: string; /** Custom content type. */ type?: string; /** ID of the space the custom content is in. */ - spaceId?: number; + spaceId?: {}; } diff --git a/src/version2/models/childPage.ts b/src/version2/models/childPage.ts index c535bf7b..210a7dd3 100644 --- a/src/version2/models/childPage.ts +++ b/src/version2/models/childPage.ts @@ -2,12 +2,12 @@ import { OnlyArchivedAndCurrentContentStatus } from './onlyArchivedAndCurrentCon export interface ChildPage { /** ID of the page. */ - id?: number; + id?: {}; status?: OnlyArchivedAndCurrentContentStatus; /** Title of the page. */ title?: string; /** ID of the space the page is in. */ - spaceId?: number; + spaceId?: {}; /** Position of child page within the given parent page tree. */ childPosition?: number; } diff --git a/src/version2/models/childrenCommentModel.ts b/src/version2/models/childrenCommentModel.ts index e0017729..f1f7f057 100644 --- a/src/version2/models/childrenCommentModel.ts +++ b/src/version2/models/childrenCommentModel.ts @@ -4,13 +4,12 @@ import { Version } from './version'; export interface ChildrenCommentModel { /** ID of the comment. */ - id?: number; + id?: {}; status?: ContentStatus; /** Title of the comment. */ title?: string; /** ID of the parent comment the child comment is in. */ - parentCommentId?: number; + parentCommentId?: {}; version?: Version; - /** Contains representations of the comment's body in different formats. */ body?: Body; } diff --git a/src/version2/models/commentBodyWrite.ts b/src/version2/models/commentBodyWrite.ts new file mode 100644 index 00000000..0e55ece2 --- /dev/null +++ b/src/version2/models/commentBodyWrite.ts @@ -0,0 +1,6 @@ +export interface CommentBodyWrite { + /** Type of content representation used for the value field. */ + representation?: string; + /** Body of the comment, in the format found in the representation field. */ + value?: string; +} diff --git a/src/version2/models/commentNestedBodyWrite.ts b/src/version2/models/commentNestedBodyWrite.ts new file mode 100644 index 00000000..2286b8b2 --- /dev/null +++ b/src/version2/models/commentNestedBodyWrite.ts @@ -0,0 +1,8 @@ +import { CommentBodyWrite } from './commentBodyWrite'; + +/** Body of the comment. Only one body format should be specified as the property* for this object, e.g. `storage`. */ +export interface CommentNestedBodyWrite { + storage?: CommentBodyWrite; + atlasDocFormat?: CommentBodyWrite; + wiki?: CommentBodyWrite; +} diff --git a/src/version2/models/commentVersion.ts b/src/version2/models/commentVersion.ts new file mode 100644 index 00000000..f4ddd245 --- /dev/null +++ b/src/version2/models/commentVersion.ts @@ -0,0 +1,18 @@ +import { VersionedEntity } from './versionedEntity'; + +export interface CommentVersion { + /** Date and time when the version was created. In format "YYYY-MM-DDTHH:mm:ss.sssZ". */ + createdAt?: string; + /** Message associated with the current version. */ + message?: string; + /** The version number. */ + number?: number; + /** + * Describes if this version is a minor version. Email notifications and activity stream updates are not created for + * minor versions. + */ + minorEdit?: boolean; + /** The account ID of the user who created this version. */ + authorId?: string; + comment?: VersionedEntity; +} diff --git a/src/version2/models/contentIdToContentTypeResponse.ts b/src/version2/models/contentIdToContentTypeResponse.ts new file mode 100644 index 00000000..c3f07887 --- /dev/null +++ b/src/version2/models/contentIdToContentTypeResponse.ts @@ -0,0 +1,8 @@ +export interface ContentIdToContentTypeResponse { + /** + * JSON object containing all requested content ids as keys and their associated content types as the values. + * Duplicate content ids in the request will be returned under a single key in the response. For built-in content + * types, the enumerations are as specified. Custom content ids will be mapped to their associated type. + */ + results?: {}; +} diff --git a/src/version2/models/contentProperty.ts b/src/version2/models/contentProperty.ts index 01e43924..b7ddc94e 100644 --- a/src/version2/models/contentProperty.ts +++ b/src/version2/models/contentProperty.ts @@ -2,10 +2,10 @@ import { Version } from './version'; export interface ContentProperty { /** ID of the property */ - id?: number; + id: string; /** Key of the property */ - key?: string; + key: string; /** Value of the property. Must be a valid JSON value. */ - value?: {}; - version?: Version; + value: any; + version: Version; } diff --git a/src/version2/models/contentPropertyCreateRequest.ts b/src/version2/models/contentPropertyCreateRequest.ts new file mode 100644 index 00000000..70a23c0b --- /dev/null +++ b/src/version2/models/contentPropertyCreateRequest.ts @@ -0,0 +1,7 @@ +export interface ContentPropertyCreateRequest { + attachmentId: string; + /** Key of the content property */ + key: string; + /** Value of the content property. */ + value: any; +} diff --git a/src/version2/models/contentPropertyUpdateRequest.ts b/src/version2/models/contentPropertyUpdateRequest.ts new file mode 100644 index 00000000..3ce59555 --- /dev/null +++ b/src/version2/models/contentPropertyUpdateRequest.ts @@ -0,0 +1,13 @@ +export interface ContentPropertyUpdateRequest { + /** Key of the content property */ + key: string; + /** Value of the content property. */ + value: any; + /** New version number and associated message */ + version?: { + /** Version number of the new version. Should be 1 more than the current version number. */ + number?: number; + /** Message to be associated with the new version. */ + message?: string; + }; +} diff --git a/src/version2/models/createFooterCommentModel.ts b/src/version2/models/createFooterCommentModel.ts index e4108554..8a4288be 100644 --- a/src/version2/models/createFooterCommentModel.ts +++ b/src/version2/models/createFooterCommentModel.ts @@ -3,11 +3,11 @@ export interface CreateFooterCommentModel { * ID of the containing blog post, if intending to create a top level footer comment. Do not provide if creating a * reply. */ - blogPostId?: number; + blogPostId?: string; /** ID of the containing page, if intending to create a top level footer comment. Do not provide if creating a reply. */ - pageId?: number; + pageId?: string; /** ID of the parent comment, if intending to create a reply. Do not provide if creating a top level comment. */ - parentCommentId?: number; + parentCommentId?: string; body?: { /** Body of the comment */ value?: string; diff --git a/src/version2/models/createInlineCommentModel.ts b/src/version2/models/createInlineCommentModel.ts index c00ff969..fde8e2de 100644 --- a/src/version2/models/createInlineCommentModel.ts +++ b/src/version2/models/createInlineCommentModel.ts @@ -3,18 +3,12 @@ export interface CreateInlineCommentModel { * ID of the containing blog post, if intending to create a top level footer comment. Do not provide if creating a * reply. */ - blogPostId?: number; + blogPostId?: string; /** ID of the containing page, if intending to create a top level footer comment. Do not provide if creating a reply. */ - pageId?: number; + pageId?: string; /** ID of the parent comment, if intending to create a reply. Do not provide if creating a top level comment. */ - parentCommentId?: number; - /** Body of the comment */ - body?: { - /** Body of the comment */ - value?: string; - /** Format of the body's value. */ - representation?: string; - }; + parentCommentId?: string; + body?: {}; /** * Object describing the text to highlight on the page/blog post. Only applicable for top level inline comments (not * replies) and required in that case. diff --git a/src/version2/models/customContent.ts b/src/version2/models/customContent.ts index b8b42a40..ed461180 100644 --- a/src/version2/models/customContent.ts +++ b/src/version2/models/customContent.ts @@ -4,7 +4,7 @@ import { Version } from './version'; export interface CustomContent { /** ID of the custom content. */ - id?: number; + id?: {}; /** The type of custom content. */ type?: string; status?: ContentStatus; @@ -15,25 +15,25 @@ export interface CustomContent { * * Note: This is always returned, regardless of if the custom content has a container that is a space. */ - spaceId?: number; + spaceId?: {}; /** * ID of the containing page. * * Note: This is only returned if the custom content has a container that is a page. */ - pageId?: number; + pageId?: {}; /** * ID of the containing blog post. * * Note: This is only returned if the custom content has a container that is a blog post. */ - blogPostId?: number; + blogPostId?: {}; /** * ID of the containing custom content. * * Note: This is only returned if the custom content has a container that is custom content. */ - customContentId?: number; + customContentId?: {}; /** The account ID of the user who created this custom content originally. */ authorId?: string; /** Date and time when the custom content was created. In format "YYYY-MM-DDTHH:mm:ss.sssZ". */ diff --git a/src/version2/models/customContentBodyWrite.ts b/src/version2/models/customContentBodyWrite.ts new file mode 100644 index 00000000..4a603007 --- /dev/null +++ b/src/version2/models/customContentBodyWrite.ts @@ -0,0 +1,6 @@ +export interface CustomContentBodyWrite { + /** Type of content representation used for the value field. */ + representation?: string; + /** Body of the custom content, in the format found in the representation field. */ + value?: string; +} diff --git a/src/version2/models/customContentNestedBodyWrite.ts b/src/version2/models/customContentNestedBodyWrite.ts new file mode 100644 index 00000000..9c64a9e3 --- /dev/null +++ b/src/version2/models/customContentNestedBodyWrite.ts @@ -0,0 +1,11 @@ +import { CustomContentBodyWrite } from './customContentBodyWrite'; + +/** + * Body of the custom content. Only one body format should be specified as the property* for this object, e.g. + * `storage`. + */ +export interface CustomContentNestedBodyWrite { + storage?: CustomContentBodyWrite; + atlasDocFormat?: CustomContentBodyWrite; + raw?: CustomContentBodyWrite; +} diff --git a/src/version2/models/customContentVersion.ts b/src/version2/models/customContentVersion.ts new file mode 100644 index 00000000..58c105d2 --- /dev/null +++ b/src/version2/models/customContentVersion.ts @@ -0,0 +1,18 @@ +import { VersionedEntity } from './versionedEntity'; + +export interface CustomContentVersion { + /** Date and time when the version was created. In format "YYYY-MM-DDTHH:mm:ss.sssZ". */ + createdAt?: string; + /** Message associated with the current version. */ + message?: string; + /** The version number. */ + number?: number; + /** + * Describes if this version is a minor version. Email notifications and activity stream updates are not created for + * minor versions. + */ + minorEdit?: boolean; + /** The account ID of the user who created this version. */ + authorId?: string; + custom?: VersionedEntity; +} diff --git a/src/version2/models/footerCommentModel.ts b/src/version2/models/footerCommentModel.ts index 2493b208..d825fbbd 100644 --- a/src/version2/models/footerCommentModel.ts +++ b/src/version2/models/footerCommentModel.ts @@ -4,16 +4,16 @@ import { Version } from './version'; export interface FooterCommentModel { /** ID of the comment. */ - id?: number; + id?: {}; status?: ContentStatus; /** Title of the comment. */ title?: string; /** ID of the blog post containing the comment if the comment is on a blog post. */ - blogPostId?: number; + blogPostId?: {}; /** ID of the page containing the comment if the comment is on a page. */ - pageId?: number; + pageId?: {}; /** ID of the parent comment if the comment is a reply. */ - parentCommentId?: number; + parentCommentId?: {}; version?: Version; body?: Body; } diff --git a/src/version2/models/getAttachmentContentProperties.ts b/src/version2/models/getAttachmentContentProperties.ts index f9237ab4..72d12980 100644 --- a/src/version2/models/getAttachmentContentProperties.ts +++ b/src/version2/models/getAttachmentContentProperties.ts @@ -1,5 +1,12 @@ import { ContentProperty } from './contentProperty'; export interface GetAttachmentContentProperties { - results?: ContentProperty[]; + results: ContentProperty[]; + _links: { + /** + * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This + * property will not be present if there is no additional data available. + */ + next?: string; + }; } diff --git a/src/version2/models/getAttachmentLabels.ts b/src/version2/models/getAttachmentLabels.ts index c8be641d..eb51a9d8 100644 --- a/src/version2/models/getAttachmentLabels.ts +++ b/src/version2/models/getAttachmentLabels.ts @@ -1,5 +1,12 @@ import { Label } from './label'; export interface GetAttachmentLabels { - results?: Label[]; + results: Label[]; + _links: { + /** + * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This + * property will not be present if there is no additional data available. + */ + next?: string; + }; } diff --git a/src/version2/models/getAttachmentVersions.ts b/src/version2/models/getAttachmentVersions.ts index 5a6d844a..03ae354e 100644 --- a/src/version2/models/getAttachmentVersions.ts +++ b/src/version2/models/getAttachmentVersions.ts @@ -1,5 +1,12 @@ -import { Version } from './version'; +import { AttachmentVersion } from './attachmentVersion'; export interface GetAttachmentVersions { - results?: Version[]; + results: AttachmentVersion[]; + _links: { + /** + * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This + * property will not be present if there is no additional data available. + */ + next?: string; + }; } diff --git a/src/version2/models/getBlogPostFooterComments.ts b/src/version2/models/getBlogPostFooterComments.ts index 2a003959..1c1b95dc 100644 --- a/src/version2/models/getBlogPostFooterComments.ts +++ b/src/version2/models/getBlogPostFooterComments.ts @@ -1,5 +1,12 @@ import { BlogPostCommentModel } from './blogPostCommentModel'; export interface GetBlogPostFooterComments { - results?: BlogPostCommentModel[]; + results: BlogPostCommentModel[]; + _links: { + /** + * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This + * property will not be present if there is no additional data available. + */ + next?: string; + }; } diff --git a/src/version2/models/getBlogPostInlineComments.ts b/src/version2/models/getBlogPostInlineComments.ts index 6f16108b..9448954a 100644 --- a/src/version2/models/getBlogPostInlineComments.ts +++ b/src/version2/models/getBlogPostInlineComments.ts @@ -1,5 +1,12 @@ import { BlogPostInlineCommentModel } from './blogPostInlineCommentModel'; export interface GetBlogPostInlineComments { - results?: BlogPostInlineCommentModel[]; + results: BlogPostInlineCommentModel[]; + _links: { + /** + * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This + * property will not be present if there is no additional data available. + */ + next?: string; + }; } diff --git a/src/version2/models/getBlogPostLabels.ts b/src/version2/models/getBlogPostLabels.ts index 598f278d..a4ac754d 100644 --- a/src/version2/models/getBlogPostLabels.ts +++ b/src/version2/models/getBlogPostLabels.ts @@ -1,5 +1,12 @@ import { Label } from './label'; export interface GetBlogPostLabels { - results?: Label[]; + results: Label[]; + _links: { + /** + * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This + * property will not be present if there is no additional data available. + */ + next?: string; + }; } diff --git a/src/version2/models/getBlogPostVersions.ts b/src/version2/models/getBlogPostVersions.ts index 0366c974..8d1e25eb 100644 --- a/src/version2/models/getBlogPostVersions.ts +++ b/src/version2/models/getBlogPostVersions.ts @@ -1,5 +1,12 @@ -import { Version } from './version'; +import { BlogPostVersion } from './blogPostVersion'; export interface GetBlogPostVersions { - results?: Version[]; + results: BlogPostVersion[]; + _links: { + /** + * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This + * property will not be present if there is no additional data available. + */ + next?: string; + }; } diff --git a/src/version2/models/getBlogPosts.ts b/src/version2/models/getBlogPosts.ts index 4624c4e7..27746d0b 100644 --- a/src/version2/models/getBlogPosts.ts +++ b/src/version2/models/getBlogPosts.ts @@ -1,5 +1,12 @@ import { BlogPost } from './blogPost'; export interface GetBlogPosts { - results?: BlogPost[]; + results: BlogPost[]; + _links: { + /** + * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This + * property will not be present if there is no additional data available. + */ + next?: string; + }; } diff --git a/src/version2/models/getBlogPostsInSpace.ts b/src/version2/models/getBlogPostsInSpace.ts index a046332b..597412f0 100644 --- a/src/version2/models/getBlogPostsInSpace.ts +++ b/src/version2/models/getBlogPostsInSpace.ts @@ -1,5 +1,12 @@ import { BlogPost } from './blogPost'; export interface GetBlogPostsInSpace { - results?: BlogPost[]; + results: BlogPost[]; + _links: { + /** + * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This + * property will not be present if there is no additional data available. + */ + next?: string; + }; } diff --git a/src/version2/models/getBlogpostAttachments.ts b/src/version2/models/getBlogpostAttachments.ts index 05f7eec5..4e93c362 100644 --- a/src/version2/models/getBlogpostAttachments.ts +++ b/src/version2/models/getBlogpostAttachments.ts @@ -1,5 +1,12 @@ import { Attachment } from './attachment'; export interface GetBlogpostAttachments { - results?: Attachment[]; + results: Attachment[]; + _links: { + /** + * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This + * property will not be present if there is no additional data available. + */ + next?: string; + }; } diff --git a/src/version2/models/getBlogpostContentProperties.ts b/src/version2/models/getBlogpostContentProperties.ts index 6eccf99c..aa2ea104 100644 --- a/src/version2/models/getBlogpostContentProperties.ts +++ b/src/version2/models/getBlogpostContentProperties.ts @@ -1,5 +1,12 @@ import { ContentProperty } from './contentProperty'; export interface GetBlogpostContentProperties { - results?: ContentProperty[]; + results: ContentProperty[]; + _links: { + /** + * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This + * property will not be present if there is no additional data available. + */ + next?: string; + }; } diff --git a/src/version2/models/getChildCustomContent.ts b/src/version2/models/getChildCustomContent.ts index 304a83e5..2920a085 100644 --- a/src/version2/models/getChildCustomContent.ts +++ b/src/version2/models/getChildCustomContent.ts @@ -1,5 +1,12 @@ import { ChildCustomContent } from './childCustomContent'; export interface GetChildCustomContent { - results?: ChildCustomContent[]; + results: ChildCustomContent[]; + _links: { + /** + * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This + * property will not be present if there is no additional data available. + */ + next?: string; + }; } diff --git a/src/version2/models/getChildPages.ts b/src/version2/models/getChildPages.ts index 2222a855..d777ebf5 100644 --- a/src/version2/models/getChildPages.ts +++ b/src/version2/models/getChildPages.ts @@ -1,5 +1,12 @@ import { ChildPage } from './childPage'; export interface GetChildPages { - results?: ChildPage[]; + results: ChildPage[]; + _links: { + /** + * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This + * property will not be present if there is no additional data available. + */ + next?: string; + }; } diff --git a/src/version2/models/getCommentContentProperties.ts b/src/version2/models/getCommentContentProperties.ts index ad617c38..40f91655 100644 --- a/src/version2/models/getCommentContentProperties.ts +++ b/src/version2/models/getCommentContentProperties.ts @@ -1,5 +1,12 @@ import { ContentProperty } from './contentProperty'; export interface GetCommentContentProperties { - results?: ContentProperty[]; + results: ContentProperty[]; + _links: { + /** + * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This + * property will not be present if there is no additional data available. + */ + next?: string; + }; } diff --git a/src/version2/models/getCustomContentAttachments.ts b/src/version2/models/getCustomContentAttachments.ts index b96cdb06..c84d7afd 100644 --- a/src/version2/models/getCustomContentAttachments.ts +++ b/src/version2/models/getCustomContentAttachments.ts @@ -1,5 +1,12 @@ import { Attachment } from './attachment'; export interface GetCustomContentAttachments { - results?: Attachment[]; + results: Attachment[]; + _links: { + /** + * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This + * property will not be present if there is no additional data available. + */ + next?: string; + }; } diff --git a/src/version2/models/getCustomContentByType.ts b/src/version2/models/getCustomContentByType.ts index 6d3efed5..fa2a7609 100644 --- a/src/version2/models/getCustomContentByType.ts +++ b/src/version2/models/getCustomContentByType.ts @@ -1,5 +1,12 @@ import { CustomContent } from './customContent'; export interface GetCustomContentByType { - results?: CustomContent[]; + results: CustomContent[]; + _links: { + /** + * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This + * property will not be present if there is no additional data available. + */ + next?: string; + }; } diff --git a/src/version2/models/getCustomContentByTypeInBlogPost.ts b/src/version2/models/getCustomContentByTypeInBlogPost.ts index d7762b33..f44c3821 100644 --- a/src/version2/models/getCustomContentByTypeInBlogPost.ts +++ b/src/version2/models/getCustomContentByTypeInBlogPost.ts @@ -1,5 +1,12 @@ import { CustomContent } from './customContent'; export interface GetCustomContentByTypeInBlogPost { - results?: CustomContent[]; + results: CustomContent[]; + _links: { + /** + * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This + * property will not be present if there is no additional data available. + */ + next?: string; + }; } diff --git a/src/version2/models/getCustomContentByTypeInPage.ts b/src/version2/models/getCustomContentByTypeInPage.ts index c0f810c8..739d88be 100644 --- a/src/version2/models/getCustomContentByTypeInPage.ts +++ b/src/version2/models/getCustomContentByTypeInPage.ts @@ -1,5 +1,12 @@ import { CustomContent } from './customContent'; export interface GetCustomContentByTypeInPage { - results?: CustomContent[]; + results: CustomContent[]; + _links: { + /** + * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This + * property will not be present if there is no additional data available. + */ + next?: string; + }; } diff --git a/src/version2/models/getCustomContentByTypeInSpace.ts b/src/version2/models/getCustomContentByTypeInSpace.ts index 4d624277..d40d5398 100644 --- a/src/version2/models/getCustomContentByTypeInSpace.ts +++ b/src/version2/models/getCustomContentByTypeInSpace.ts @@ -1,5 +1,12 @@ import { CustomContent } from './customContent'; export interface GetCustomContentByTypeInSpace { - results?: CustomContent[]; + results: CustomContent[]; + _links: { + /** + * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This + * property will not be present if there is no additional data available. + */ + next?: string; + }; } diff --git a/src/version2/models/getCustomContentContentProperties.ts b/src/version2/models/getCustomContentContentProperties.ts index a3591ee2..84bfb161 100644 --- a/src/version2/models/getCustomContentContentProperties.ts +++ b/src/version2/models/getCustomContentContentProperties.ts @@ -1,5 +1,12 @@ import { ContentProperty } from './contentProperty'; export interface GetCustomContentContentProperties { - results?: ContentProperty[]; + results: ContentProperty[]; + _links: { + /** + * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This + * property will not be present if there is no additional data available. + */ + next?: string; + }; } diff --git a/src/version2/models/getCustomContentLabels.ts b/src/version2/models/getCustomContentLabels.ts index 93624c8b..ab5cd5ca 100644 --- a/src/version2/models/getCustomContentLabels.ts +++ b/src/version2/models/getCustomContentLabels.ts @@ -1,5 +1,12 @@ import { Label } from './label'; export interface GetCustomContentLabels { - results?: Label[]; + results: Label[]; + _links: { + /** + * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This + * property will not be present if there is no additional data available. + */ + next?: string; + }; } diff --git a/src/version2/models/getCustomContentVersions.ts b/src/version2/models/getCustomContentVersions.ts index 5a66c321..44e05fcf 100644 --- a/src/version2/models/getCustomContentVersions.ts +++ b/src/version2/models/getCustomContentVersions.ts @@ -1,5 +1,12 @@ -import { Version } from './version'; +import { CustomContentVersion } from './customContentVersion'; export interface GetCustomContentVersions { - results?: Version[]; + results: CustomContentVersion[]; + _links: { + /** + * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This + * property will not be present if there is no additional data available. + */ + next?: string; + }; } diff --git a/src/version2/models/getFooterCommentChildren.ts b/src/version2/models/getFooterCommentChildren.ts index 11d0358a..7b996c90 100644 --- a/src/version2/models/getFooterCommentChildren.ts +++ b/src/version2/models/getFooterCommentChildren.ts @@ -1,5 +1,12 @@ import { ChildrenCommentModel } from './childrenCommentModel'; export interface GetFooterCommentChildren { - results?: ChildrenCommentModel[]; + results: ChildrenCommentModel[]; + _links: { + /** + * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This + * property will not be present if there is no additional data available. + */ + next?: string; + }; } diff --git a/src/version2/models/getFooterCommentVersions.ts b/src/version2/models/getFooterCommentVersions.ts new file mode 100644 index 00000000..c31fc762 --- /dev/null +++ b/src/version2/models/getFooterCommentVersions.ts @@ -0,0 +1,12 @@ +import { CommentVersion } from './commentVersion'; + +export interface GetFooterCommentVersions { + results: CommentVersion[]; + _links: { + /** + * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This + * property will not be present if there is no additional data available. + */ + next?: string; + }; +} diff --git a/src/version2/models/getInlineCommentChildren.ts b/src/version2/models/getInlineCommentChildren.ts index c9b6cf00..6d6a4a15 100644 --- a/src/version2/models/getInlineCommentChildren.ts +++ b/src/version2/models/getInlineCommentChildren.ts @@ -1,5 +1,12 @@ import { InlineCommentChildrenModel } from './inlineCommentChildrenModel'; export interface GetInlineCommentChildren { - results?: InlineCommentChildrenModel[]; + results: InlineCommentChildrenModel[]; + _links: { + /** + * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This + * property will not be present if there is no additional data available. + */ + next?: string; + }; } diff --git a/src/version2/models/getInlineCommentVersions.ts b/src/version2/models/getInlineCommentVersions.ts new file mode 100644 index 00000000..228dc286 --- /dev/null +++ b/src/version2/models/getInlineCommentVersions.ts @@ -0,0 +1,12 @@ +import { CommentVersion } from './commentVersion'; + +export interface GetInlineCommentVersions { + results: CommentVersion[]; + _links: { + /** + * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This + * property will not be present if there is no additional data available. + */ + next?: string; + }; +} diff --git a/src/version2/models/getLabelAttachments.ts b/src/version2/models/getLabelAttachments.ts new file mode 100644 index 00000000..03692f9c --- /dev/null +++ b/src/version2/models/getLabelAttachments.ts @@ -0,0 +1,12 @@ +import { Attachment } from './attachment'; + +export interface GetLabelAttachments { + results: Attachment[]; + _links: { + /** + * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This + * property will not be present if there is no additional data available. + */ + next?: string; + }; +} diff --git a/src/version2/models/getLabelBlogPosts.ts b/src/version2/models/getLabelBlogPosts.ts index 19bd35bc..e761624a 100644 --- a/src/version2/models/getLabelBlogPosts.ts +++ b/src/version2/models/getLabelBlogPosts.ts @@ -1,5 +1,12 @@ import { BlogPost } from './blogPost'; export interface GetLabelBlogPosts { - results?: BlogPost[]; + results: BlogPost[]; + _links: { + /** + * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This + * property will not be present if there is no additional data available. + */ + next?: string; + }; } diff --git a/src/version2/models/getLabelPages.ts b/src/version2/models/getLabelPages.ts index 230ed6be..cb43cba7 100644 --- a/src/version2/models/getLabelPages.ts +++ b/src/version2/models/getLabelPages.ts @@ -1,5 +1,12 @@ import { Page } from './page'; export interface GetLabelPages { - results?: Page[]; + results: Page[]; + _links: { + /** + * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This + * property will not be present if there is no additional data available. + */ + next?: string; + }; } diff --git a/src/version2/models/getPageAttachments.ts b/src/version2/models/getPageAttachments.ts index 70fda8e9..5f449e7b 100644 --- a/src/version2/models/getPageAttachments.ts +++ b/src/version2/models/getPageAttachments.ts @@ -1,5 +1,12 @@ import { Attachment } from './attachment'; export interface GetPageAttachments { - results?: Attachment[]; + results: Attachment[]; + _links: { + /** + * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This + * property will not be present if there is no additional data available. + */ + next?: string; + }; } diff --git a/src/version2/models/getPageContentProperties.ts b/src/version2/models/getPageContentProperties.ts index eafe188e..d1dd9db2 100644 --- a/src/version2/models/getPageContentProperties.ts +++ b/src/version2/models/getPageContentProperties.ts @@ -1,5 +1,12 @@ import { ContentProperty } from './contentProperty'; export interface GetPageContentProperties { - results?: ContentProperty[]; + results: ContentProperty[]; + _links: { + /** + * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This + * property will not be present if there is no additional data available. + */ + next?: string; + }; } diff --git a/src/version2/models/getPageFooterComments.ts b/src/version2/models/getPageFooterComments.ts index 0a17de7d..017d74d6 100644 --- a/src/version2/models/getPageFooterComments.ts +++ b/src/version2/models/getPageFooterComments.ts @@ -1,5 +1,12 @@ import { PageCommentModel } from './pageCommentModel'; export interface GetPageFooterComments { - results?: PageCommentModel[]; + results: PageCommentModel[]; + _links: { + /** + * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This + * property will not be present if there is no additional data available. + */ + next?: string; + }; } diff --git a/src/version2/models/getPageInlineComments.ts b/src/version2/models/getPageInlineComments.ts index c747d209..f9c48d25 100644 --- a/src/version2/models/getPageInlineComments.ts +++ b/src/version2/models/getPageInlineComments.ts @@ -1,5 +1,12 @@ import { PageInlineCommentModel } from './pageInlineCommentModel'; export interface GetPageInlineComments { - results?: PageInlineCommentModel[]; + results: PageInlineCommentModel[]; + _links: { + /** + * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This + * property will not be present if there is no additional data available. + */ + next?: string; + }; } diff --git a/src/version2/models/getPageLabels.ts b/src/version2/models/getPageLabels.ts index 6de3ece2..743481d7 100644 --- a/src/version2/models/getPageLabels.ts +++ b/src/version2/models/getPageLabels.ts @@ -1,5 +1,12 @@ import { Label } from './label'; export interface GetPageLabels { - results?: Label[]; + results: Label[]; + _links: { + /** + * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This + * property will not be present if there is no additional data available. + */ + next?: string; + }; } diff --git a/src/version2/models/getPageVersions.ts b/src/version2/models/getPageVersions.ts index c3db4d7a..dd748727 100644 --- a/src/version2/models/getPageVersions.ts +++ b/src/version2/models/getPageVersions.ts @@ -1,5 +1,12 @@ -import { Version } from './version'; +import { PageVersion } from './pageVersion'; export interface GetPageVersions { - results?: Version[]; + results: PageVersion[]; + _links: { + /** + * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This + * property will not be present if there is no additional data available. + */ + next?: string; + }; } diff --git a/src/version2/models/getPages.ts b/src/version2/models/getPages.ts index 978a4eb5..aa218827 100644 --- a/src/version2/models/getPages.ts +++ b/src/version2/models/getPages.ts @@ -1,5 +1,12 @@ import { Page } from './page'; export interface GetPages { - results?: Page[]; + results: Page[]; + _links: { + /** + * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This + * property will not be present if there is no additional data available. + */ + next?: string; + }; } diff --git a/src/version2/models/getPagesInSpace.ts b/src/version2/models/getPagesInSpace.ts index b9936cde..a67d93e9 100644 --- a/src/version2/models/getPagesInSpace.ts +++ b/src/version2/models/getPagesInSpace.ts @@ -1,5 +1,12 @@ import { Page } from './page'; export interface GetPagesInSpace { - results?: Page[]; + results: Page[]; + _links: { + /** + * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This + * property will not be present if there is no additional data available. + */ + next?: string; + }; } diff --git a/src/version2/models/getSpaceProperties.ts b/src/version2/models/getSpaceProperties.ts index 388549a1..041d1433 100644 --- a/src/version2/models/getSpaceProperties.ts +++ b/src/version2/models/getSpaceProperties.ts @@ -1,5 +1,12 @@ import { SpaceProperty } from './spaceProperty'; export interface GetSpaceProperties { - results?: SpaceProperty[]; + results: SpaceProperty[]; + _links: { + /** + * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This + * property will not be present if there is no additional data available. + */ + next?: string; + }; } diff --git a/src/version2/models/getSpaces.ts b/src/version2/models/getSpaces.ts index 21d7153a..80006e70 100644 --- a/src/version2/models/getSpaces.ts +++ b/src/version2/models/getSpaces.ts @@ -1,5 +1,12 @@ import { Space } from './space'; export interface GetSpaces { - results?: Space[]; + results: Space[]; + _links: { + /** + * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This + * property will not be present if there is no additional data available. + */ + next?: string; + }; } diff --git a/src/version2/models/getTasks.ts b/src/version2/models/getTasks.ts index 0728f4e2..22212896 100644 --- a/src/version2/models/getTasks.ts +++ b/src/version2/models/getTasks.ts @@ -1,5 +1,12 @@ import { Task } from './task'; export interface GetTasks { - results?: Task[]; + results: Task[]; + _links: { + /** + * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This + * property will not be present if there is no additional data available. + */ + next?: string; + }; } diff --git a/src/version2/models/index.ts b/src/version2/models/index.ts index 1a45ef06..6fb3e4a7 100644 --- a/src/version2/models/index.ts +++ b/src/version2/models/index.ts @@ -1,39 +1,53 @@ export * from './attachment'; export * from './attachmentSortOrder'; +export * from './attachmentVersion'; export * from './blogPost'; +export * from './blogPostBodyWrite'; export * from './blogPostCommentModel'; export * from './blogPostInlineCommentModel'; +export * from './blogPostNestedBodyWrite'; export * from './blogPostSortOrder'; +export * from './blogPostVersion'; export * from './body'; export * from './bodyRepresentation'; export * from './bodyType'; +export * from './checkAccessByEmail'; export * from './childCustomContent'; export * from './childCustomContentSortOrder'; export * from './childPage'; export * from './childPageSortOrder'; export * from './childrenCommentModel'; +export * from './commentBodyWrite'; +export * from './commentNestedBodyWrite'; export * from './commentSortOrder'; +export * from './commentVersion'; +export * from './contentIdToContentTypeResponse'; export * from './contentProperty'; +export * from './contentPropertyCreateRequest'; export * from './contentPropertySortOrder'; +export * from './contentPropertyUpdateRequest'; export * from './contentStatus'; export * from './createFooterCommentModel'; export * from './createInlineCommentModel'; export * from './customContent'; export * from './customContentBody'; export * from './customContentBodyRepresentation'; +export * from './customContentBodyWrite'; +export * from './customContentNestedBodyWrite'; +export * from './customContentVersion'; export * from './detailedVersion'; export * from './footerCommentModel'; export * from './getAttachmentContentProperties'; export * from './getAttachmentLabels'; export * from './getAttachmentVersions'; +export * from './getBlogpostAttachments'; +export * from './getBlogpostContentProperties'; export * from './getBlogPostFooterComments'; export * from './getBlogPostInlineComments'; export * from './getBlogPostLabels'; -export * from './getBlogPostVersions'; export * from './getBlogPosts'; export * from './getBlogPostsInSpace'; -export * from './getBlogpostAttachments'; -export * from './getBlogpostContentProperties'; +export * from './getBlogPostVersions'; export * from './getChildCustomContent'; export * from './getChildPages'; export * from './getCommentContentProperties'; @@ -46,7 +60,10 @@ export * from './getCustomContentContentProperties'; export * from './getCustomContentLabels'; export * from './getCustomContentVersions'; export * from './getFooterCommentChildren'; +export * from './getFooterCommentVersions'; export * from './getInlineCommentChildren'; +export * from './getInlineCommentVersions'; +export * from './getLabelAttachments'; export * from './getLabelBlogPosts'; export * from './getLabelPages'; export * from './getPageAttachments'; @@ -54,9 +71,9 @@ export * from './getPageContentProperties'; export * from './getPageFooterComments'; export * from './getPageInlineComments'; export * from './getPageLabels'; -export * from './getPageVersions'; export * from './getPages'; export * from './getPagesInSpace'; +export * from './getPageVersions'; export * from './getSpaceProperties'; export * from './getSpaces'; export * from './getTasks'; @@ -64,13 +81,17 @@ export * from './inlineCommentChildrenModel'; export * from './inlineCommentModel'; export * from './inlineCommentProperties'; export * from './inlineCommentResolutionStatus'; +export * from './inviteByEmail'; export * from './label'; export * from './labelSortOrder'; export * from './onlyArchivedAndCurrentContentStatus'; export * from './page'; +export * from './pageBodyWrite'; export * from './pageCommentModel'; export * from './pageInlineCommentModel'; +export * from './pageNestedBodyWrite'; export * from './pageSortOrder'; +export * from './pageVersion'; export * from './primaryBodyRepresentation'; export * from './space'; export * from './spaceDescription'; @@ -85,4 +106,5 @@ export * from './task'; export * from './updateFooterCommentModel'; export * from './updateInlineCommentModel'; export * from './version'; +export * from './versionedEntity'; export * from './versionSortOrder'; diff --git a/src/version2/models/inlineCommentChildrenModel.ts b/src/version2/models/inlineCommentChildrenModel.ts index e9c00b29..0b87a1f3 100644 --- a/src/version2/models/inlineCommentChildrenModel.ts +++ b/src/version2/models/inlineCommentChildrenModel.ts @@ -1,16 +1,18 @@ import { Body } from './body'; +import { InlineCommentProperties } from './inlineCommentProperties'; +import { InlineCommentResolutionStatus } from './inlineCommentResolutionStatus'; import { Version } from './version'; export interface InlineCommentChildrenModel { /** ID of the comment. */ - id: number; - /** The status of the content. */ + id?: {}; status: 'current' | 'trashed' | 'historical' | 'deleted' | 'any' | 'draft' | 'archived' | string; /** Title of the comment. */ - title: string; + title?: string; /** ID of the parent comment the child comment is in. */ - parentCommentId: number; - version: Version; - /** Contains fields for each representation type requested. */ - body: Body; + parentCommentId?: {}; + version?: Version; + body?: Body; + resolutionStatus?: InlineCommentResolutionStatus; + properties?: InlineCommentProperties; } diff --git a/src/version2/models/inlineCommentModel.ts b/src/version2/models/inlineCommentModel.ts index 911174df..e6a8ea63 100644 --- a/src/version2/models/inlineCommentModel.ts +++ b/src/version2/models/inlineCommentModel.ts @@ -6,21 +6,21 @@ import { Version } from './version'; export interface InlineCommentModel { /** ID of the comment. */ - id?: number; + id?: {}; status?: ContentStatus; /** Title of the comment. */ title?: string; /** ID of the blog post containing the comment if the comment is on a blog post. */ - blogPostId?: number; + blogPostId?: {}; /** ID of the page containing the comment if the comment is on a page. */ - pageId?: number; + pageId?: {}; /** ID of the parent comment if the comment is a reply. */ - parentCommentId?: number; + parentCommentId?: {}; version?: Version; body?: Body; /** - * Atlassian Account ID of last person who modified the resolve state of the comment. Null until comment is resolved - * or reopened. + * Atlassian Account ID of the last person who modified the resolve state of the comment. Null until comment is + * resolved or reopened. */ resolutionLastModifierId?: string; /** Timestamp of the last modification to the comment's resolution status. Null until comment is resolved or reopened. */ From 4bd887b441a325d316483d6ea0ebdbb1c2ef0a95 Mon Sep 17 00:00:00 2001 From: Vladislav Tupikin Date: Sun, 21 May 2023 16:51:21 +0400 Subject: [PATCH 08/44] Parameters updated --- .../parameters/createAttachmentProperty.ts | 13 ++ src/version2/parameters/createBlogPost.ts | 9 ++ .../parameters/createBlogpostProperty.ts | 13 ++ .../parameters/createCommentProperty.ts | 13 ++ .../parameters/createCustomContent.ts | 9 ++ .../parameters/createCustomContentProperty.ts | 13 ++ .../parameters/createFooterComment.ts | 10 +- .../parameters/createInlineComment.ts | 10 +- src/version2/parameters/createPage.ts | 14 +- src/version2/parameters/createPageProperty.ts | 13 ++ .../parameters/createSpaceProperty.ts | 9 +- .../deleteAttachmentPropertyById.ts | 6 + .../parameters/deleteBlogpostPropertyById.ts | 6 + .../parameters/deleteCommentPropertyById.ts | 6 + .../deleteCustomContentPropertyById.ts | 6 + .../parameters/deleteFooterComment.ts | 2 +- .../parameters/deleteInlineComment.ts | 2 +- .../parameters/deletePagePropertyById.ts | 6 + .../parameters/deleteSpacePropertyById.ts | 2 +- src/version2/parameters/getAttachmentById.ts | 9 +- .../getAttachmentContentProperties.ts | 9 +- .../getAttachmentContentPropertiesById.ts | 9 +- .../parameters/getAttachmentLabels.ts | 7 + .../parameters/getAttachmentVersionDetails.ts | 2 +- .../parameters/getAttachmentVersions.ts | 2 +- src/version2/parameters/getBlogPostById.ts | 7 + .../parameters/getBlogPostFooterComments.ts | 7 + .../parameters/getBlogPostInlineComments.ts | 7 + src/version2/parameters/getBlogPostLabels.ts | 7 + .../parameters/getBlogPostVersionDetails.ts | 2 +- .../parameters/getBlogPostVersions.ts | 5 + src/version2/parameters/getBlogPosts.ts | 18 +++ .../parameters/getBlogPostsInSpace.ts | 16 +++ .../parameters/getBlogpostAttachments.ts | 7 + .../getBlogpostContentProperties.ts | 11 +- .../getBlogpostContentPropertiesById.ts | 9 +- .../parameters/getChildCustomContent.ts | 7 + src/version2/parameters/getChildPages.ts | 7 + .../parameters/getCommentContentProperties.ts | 13 +- .../getCommentContentPropertiesById.ts | 9 +- .../parameters/getCustomContentAttachments.ts | 7 + .../parameters/getCustomContentById.ts | 7 + .../parameters/getCustomContentByType.ts | 12 ++ .../getCustomContentByTypeInBlogPost.ts | 7 + .../getCustomContentByTypeInPage.ts | 7 + .../getCustomContentByTypeInSpace.ts | 7 + .../getCustomContentContentProperties.ts | 11 +- .../getCustomContentContentPropertiesById.ts | 9 +- .../parameters/getCustomContentLabels.ts | 7 + .../getCustomContentVersionDetails.ts | 2 +- .../parameters/getCustomContentVersions.ts | 7 +- .../parameters/getFooterCommentById.ts | 9 +- .../parameters/getFooterCommentChildren.ts | 7 + .../parameters/getFooterCommentVersions.ts | 21 +++ .../parameters/getInlineCommentById.ts | 9 +- .../parameters/getInlineCommentChildren.ts | 7 + .../getInlineCommentVersionDetails.ts | 6 + .../parameters/getInlineCommentVersions.ts | 21 +++ .../parameters/getLabelAttachments.ts | 23 ++++ src/version2/parameters/getLabelBlogPosts.ts | 16 ++- src/version2/parameters/getLabelPages.ts | 14 +- src/version2/parameters/getPageAttachments.ts | 7 + src/version2/parameters/getPageById.ts | 7 + .../parameters/getPageContentProperties.ts | 13 +- .../getPageContentPropertiesById.ts | 9 +- .../parameters/getPageFooterComments.ts | 7 + .../parameters/getPageInlineComments.ts | 7 + src/version2/parameters/getPageLabels.ts | 7 + .../parameters/getPageVersionDetails.ts | 2 +- src/version2/parameters/getPageVersions.ts | 5 + src/version2/parameters/getPages.ts | 16 +++ src/version2/parameters/getPagesInSpace.ts | 14 ++ src/version2/parameters/getSpaceProperties.ts | 9 +- .../parameters/getSpacePropertyById.ts | 9 +- src/version2/parameters/getSpaces.ts | 7 + src/version2/parameters/getTaskById.ts | 7 + src/version2/parameters/getTasks.ts | 21 ++- src/version2/parameters/index.ts | 129 +++++++++++------- .../updateAttachmentPropertyById.ts | 15 ++ src/version2/parameters/updateBlogPost.ts | 7 + .../parameters/updateBlogpostPropertyById.ts | 15 ++ .../parameters/updateCommentPropertyById.ts | 15 ++ .../parameters/updateCustomContent.ts | 7 + .../updateCustomContentPropertyById.ts | 15 ++ .../parameters/updateFooterComment.ts | 9 +- .../parameters/updateInlineComment.ts | 9 +- src/version2/parameters/updatePage.ts | 7 + .../parameters/updatePagePropertyById.ts | 15 ++ .../parameters/updateSpacePropertyById.ts | 9 +- src/version2/parameters/updateTask.ts | 11 ++ 90 files changed, 849 insertions(+), 109 deletions(-) create mode 100644 src/version2/parameters/createAttachmentProperty.ts create mode 100644 src/version2/parameters/createBlogPost.ts create mode 100644 src/version2/parameters/createBlogpostProperty.ts create mode 100644 src/version2/parameters/createCommentProperty.ts create mode 100644 src/version2/parameters/createCustomContent.ts create mode 100644 src/version2/parameters/createCustomContentProperty.ts create mode 100644 src/version2/parameters/createPageProperty.ts create mode 100644 src/version2/parameters/deleteAttachmentPropertyById.ts create mode 100644 src/version2/parameters/deleteBlogpostPropertyById.ts create mode 100644 src/version2/parameters/deleteCommentPropertyById.ts create mode 100644 src/version2/parameters/deleteCustomContentPropertyById.ts create mode 100644 src/version2/parameters/deletePagePropertyById.ts create mode 100644 src/version2/parameters/getFooterCommentVersions.ts create mode 100644 src/version2/parameters/getInlineCommentVersionDetails.ts create mode 100644 src/version2/parameters/getInlineCommentVersions.ts create mode 100644 src/version2/parameters/getLabelAttachments.ts create mode 100644 src/version2/parameters/updateAttachmentPropertyById.ts create mode 100644 src/version2/parameters/updateBlogpostPropertyById.ts create mode 100644 src/version2/parameters/updateCommentPropertyById.ts create mode 100644 src/version2/parameters/updateCustomContentPropertyById.ts create mode 100644 src/version2/parameters/updatePagePropertyById.ts create mode 100644 src/version2/parameters/updateTask.ts diff --git a/src/version2/parameters/createAttachmentProperty.ts b/src/version2/parameters/createAttachmentProperty.ts new file mode 100644 index 00000000..0fae52bc --- /dev/null +++ b/src/version2/parameters/createAttachmentProperty.ts @@ -0,0 +1,13 @@ +import { ContentPropertyCreateRequest } from '../models'; + +export interface CreateAttachmentProperty extends ContentPropertyCreateRequest { + /** The ID of the attachment to create a property for. */ + attachmentId: string; + /** + * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for + * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the + * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this + * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. + */ + serializeIdsAsStrings?: boolean; +} diff --git a/src/version2/parameters/createBlogPost.ts b/src/version2/parameters/createBlogPost.ts new file mode 100644 index 00000000..c9a0a3c5 --- /dev/null +++ b/src/version2/parameters/createBlogPost.ts @@ -0,0 +1,9 @@ +export interface CreateBlogPost { + /** + * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for + * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the + * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this + * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. + */ + serializeIdsAsStrings?: boolean; +} diff --git a/src/version2/parameters/createBlogpostProperty.ts b/src/version2/parameters/createBlogpostProperty.ts new file mode 100644 index 00000000..cb4e0a76 --- /dev/null +++ b/src/version2/parameters/createBlogpostProperty.ts @@ -0,0 +1,13 @@ +import { ContentPropertyCreateRequest } from '../models'; + +export interface CreateBlogpostProperty extends ContentPropertyCreateRequest { + /** The ID of the blog post to create a property for. */ + blogpostId: number; + /** + * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for + * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the + * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this + * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. + */ + serializeIdsAsStrings?: boolean; +} diff --git a/src/version2/parameters/createCommentProperty.ts b/src/version2/parameters/createCommentProperty.ts new file mode 100644 index 00000000..5e17727c --- /dev/null +++ b/src/version2/parameters/createCommentProperty.ts @@ -0,0 +1,13 @@ +import { ContentPropertyCreateRequest } from '../models'; + +export interface CreateCommentProperty extends ContentPropertyCreateRequest { + /** The ID of the comment to create a property for. */ + commentId: number; + /** + * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for + * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the + * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this + * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. + */ + serializeIdsAsStrings?: boolean; +} diff --git a/src/version2/parameters/createCustomContent.ts b/src/version2/parameters/createCustomContent.ts new file mode 100644 index 00000000..1a53812b --- /dev/null +++ b/src/version2/parameters/createCustomContent.ts @@ -0,0 +1,9 @@ +export interface CreateCustomContent { + /** + * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for + * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the + * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this + * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. + */ + serializeIdsAsStrings?: boolean; +} diff --git a/src/version2/parameters/createCustomContentProperty.ts b/src/version2/parameters/createCustomContentProperty.ts new file mode 100644 index 00000000..2cb1f2f7 --- /dev/null +++ b/src/version2/parameters/createCustomContentProperty.ts @@ -0,0 +1,13 @@ +import { ContentPropertyCreateRequest } from '../models'; + +export interface CreateCustomContentProperty extends ContentPropertyCreateRequest { + /** The ID of the custom content to create a property for. */ + customContentId: number; + /** + * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for + * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the + * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this + * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. + */ + serializeIdsAsStrings?: boolean; +} diff --git a/src/version2/parameters/createFooterComment.ts b/src/version2/parameters/createFooterComment.ts index d1f86550..c4e4a72a 100644 --- a/src/version2/parameters/createFooterComment.ts +++ b/src/version2/parameters/createFooterComment.ts @@ -1,3 +1,11 @@ import { CreateFooterCommentModel } from '../models'; -export interface CreateFooterComment extends CreateFooterCommentModel {} +export interface CreateFooterComment extends CreateFooterCommentModel { + /** + * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for + * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the + * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this + * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. + */ + serializeIdsAsStrings?: boolean; +} diff --git a/src/version2/parameters/createInlineComment.ts b/src/version2/parameters/createInlineComment.ts index cca9cc9d..807f8c3e 100644 --- a/src/version2/parameters/createInlineComment.ts +++ b/src/version2/parameters/createInlineComment.ts @@ -1,3 +1,11 @@ import { CreateInlineCommentModel } from '../models'; -export interface CreateInlineComment extends CreateInlineCommentModel {} +export interface CreateInlineComment extends CreateInlineCommentModel { + /** + * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for + * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the + * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this + * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. + */ + serializeIdsAsStrings?: boolean; +} diff --git a/src/version2/parameters/createPage.ts b/src/version2/parameters/createPage.ts index 04bee05c..bca4781e 100644 --- a/src/version2/parameters/createPage.ts +++ b/src/version2/parameters/createPage.ts @@ -2,18 +2,8 @@ export interface CreatePage { /** * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the - * meantime, this query param can be passed to this endpoint to opt-in to this change now. See [this - * changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. + * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this + * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. */ serializeIdsAsStrings?: boolean; - /** ID of the space */ - spaceId: string; - /** The status of the page, published or draft. */ - status?: 'current' | 'draft' | string; - /** Title of the page, required if page status is not draft. */ - title?: string; - /** The parent content ID of the page. */ - parentId?: string; - /** The type of the page. */ - // body?: PageBodyWrite; // todo } diff --git a/src/version2/parameters/createPageProperty.ts b/src/version2/parameters/createPageProperty.ts new file mode 100644 index 00000000..909e60ef --- /dev/null +++ b/src/version2/parameters/createPageProperty.ts @@ -0,0 +1,13 @@ +import { ContentPropertyCreateRequest } from '../models'; + +export interface CreatePageProperty extends ContentPropertyCreateRequest { + /** The ID of the page to create a property for. */ + pageId: number; + /** + * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for + * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the + * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this + * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. + */ + serializeIdsAsStrings?: boolean; +} diff --git a/src/version2/parameters/createSpaceProperty.ts b/src/version2/parameters/createSpaceProperty.ts index e9de20a1..4f8dba7b 100644 --- a/src/version2/parameters/createSpaceProperty.ts +++ b/src/version2/parameters/createSpaceProperty.ts @@ -2,5 +2,12 @@ import { SpacePropertyCreateRequest } from '../models'; export interface CreateSpaceProperty extends SpacePropertyCreateRequest { /** The ID of the space for which space properties should be returned. */ - id: number; + spaceId: number; + /** + * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for + * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the + * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this + * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. + */ + serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/deleteAttachmentPropertyById.ts b/src/version2/parameters/deleteAttachmentPropertyById.ts new file mode 100644 index 00000000..6edb144a --- /dev/null +++ b/src/version2/parameters/deleteAttachmentPropertyById.ts @@ -0,0 +1,6 @@ +export interface DeleteAttachmentPropertyById { + /** The ID of the attachment the property belongs to. */ + attachmentId: string; + /** The ID of the property to be deleted. */ + propertyId: number; +} diff --git a/src/version2/parameters/deleteBlogpostPropertyById.ts b/src/version2/parameters/deleteBlogpostPropertyById.ts new file mode 100644 index 00000000..c57785be --- /dev/null +++ b/src/version2/parameters/deleteBlogpostPropertyById.ts @@ -0,0 +1,6 @@ +export interface DeleteBlogpostPropertyById { + /** The ID of the blog post the property belongs to. */ + blogpostId: number; + /** The ID of the property to be deleted. */ + propertyId: number; +} diff --git a/src/version2/parameters/deleteCommentPropertyById.ts b/src/version2/parameters/deleteCommentPropertyById.ts new file mode 100644 index 00000000..f9af8265 --- /dev/null +++ b/src/version2/parameters/deleteCommentPropertyById.ts @@ -0,0 +1,6 @@ +export interface DeleteCommentPropertyById { + /** The ID of the comment the property belongs to. */ + commentId: number; + /** The ID of the property to be deleted. */ + propertyId: number; +} diff --git a/src/version2/parameters/deleteCustomContentPropertyById.ts b/src/version2/parameters/deleteCustomContentPropertyById.ts new file mode 100644 index 00000000..cd29c3c2 --- /dev/null +++ b/src/version2/parameters/deleteCustomContentPropertyById.ts @@ -0,0 +1,6 @@ +export interface DeleteCustomContentPropertyById { + /** The ID of the custom content the property belongs to. */ + customContentId: number; + /** The ID of the property to be deleted. */ + propertyId: number; +} diff --git a/src/version2/parameters/deleteFooterComment.ts b/src/version2/parameters/deleteFooterComment.ts index 873a8fa1..ff05ab7f 100644 --- a/src/version2/parameters/deleteFooterComment.ts +++ b/src/version2/parameters/deleteFooterComment.ts @@ -1,4 +1,4 @@ export interface DeleteFooterComment { /** The ID of the comment to be retrieved. */ - id: number; + commentId: number; } diff --git a/src/version2/parameters/deleteInlineComment.ts b/src/version2/parameters/deleteInlineComment.ts index 247bc1c2..e15e68a9 100644 --- a/src/version2/parameters/deleteInlineComment.ts +++ b/src/version2/parameters/deleteInlineComment.ts @@ -1,4 +1,4 @@ export interface DeleteInlineComment { /** The ID of the comment to be deleted. */ - id: number; + commentId: number; } diff --git a/src/version2/parameters/deletePagePropertyById.ts b/src/version2/parameters/deletePagePropertyById.ts new file mode 100644 index 00000000..ba6ef1a1 --- /dev/null +++ b/src/version2/parameters/deletePagePropertyById.ts @@ -0,0 +1,6 @@ +export interface DeletePagePropertyById { + /** The ID of the page the property belongs to. */ + pageId: number; + /** The ID of the property to be deleted. */ + propertyId: number; +} diff --git a/src/version2/parameters/deleteSpacePropertyById.ts b/src/version2/parameters/deleteSpacePropertyById.ts index 68ca8918..2aeb76c3 100644 --- a/src/version2/parameters/deleteSpacePropertyById.ts +++ b/src/version2/parameters/deleteSpacePropertyById.ts @@ -1,6 +1,6 @@ export interface DeleteSpacePropertyById { /** The ID of the space the property belongs to. */ - id: number; + spaceId: number; /** The ID of the property to be deleted. */ propertyId: number; } diff --git a/src/version2/parameters/getAttachmentById.ts b/src/version2/parameters/getAttachmentById.ts index bf15cecd..26f3f4af 100644 --- a/src/version2/parameters/getAttachmentById.ts +++ b/src/version2/parameters/getAttachmentById.ts @@ -3,10 +3,17 @@ export interface GetAttachmentById { * The ID of the attachment to be returned. If you don't know the attachment's ID, use Get attachments for * page/blogpost/custom content. */ - id: number; + id: string; /** * Allows you to retrieve a previously published version. Specify the previous version's number to retrieve its * details. */ version?: number; + /** + * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for + * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the + * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this + * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. + */ + serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getAttachmentContentProperties.ts b/src/version2/parameters/getAttachmentContentProperties.ts index 90d65eaa..e93a7bda 100644 --- a/src/version2/parameters/getAttachmentContentProperties.ts +++ b/src/version2/parameters/getAttachmentContentProperties.ts @@ -1,6 +1,6 @@ export interface GetAttachmentContentProperties { /** The ID of the attachment for which content properties should be returned. */ - id: string; + attachmentId: string; /** Filters the response to return a specific content property with matching key (case sensitive). */ key?: string; /** Used to sort the result by a particular field. */ @@ -15,4 +15,11 @@ export interface GetAttachmentContentProperties { * relative URL that will return the next set of results. */ limit?: number; + /** + * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for + * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the + * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this + * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. + */ + serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getAttachmentContentPropertiesById.ts b/src/version2/parameters/getAttachmentContentPropertiesById.ts index e6d4003d..99676f1d 100644 --- a/src/version2/parameters/getAttachmentContentPropertiesById.ts +++ b/src/version2/parameters/getAttachmentContentPropertiesById.ts @@ -1,6 +1,13 @@ export interface GetAttachmentContentPropertiesById { /** The ID of the attachment for which content properties should be returned. */ - id: string; + attachmentId: string; /** The ID of the content property to be returned */ propertyId: number; + /** + * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for + * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the + * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this + * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. + */ + serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getAttachmentLabels.ts b/src/version2/parameters/getAttachmentLabels.ts index 49f5ace8..eb67e297 100644 --- a/src/version2/parameters/getAttachmentLabels.ts +++ b/src/version2/parameters/getAttachmentLabels.ts @@ -15,4 +15,11 @@ export interface GetAttachmentLabels { * URL that will return the next set of results. */ limit?: number; + /** + * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for + * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the + * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this + * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. + */ + serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getAttachmentVersionDetails.ts b/src/version2/parameters/getAttachmentVersionDetails.ts index 9afbbbe4..b2388fde 100644 --- a/src/version2/parameters/getAttachmentVersionDetails.ts +++ b/src/version2/parameters/getAttachmentVersionDetails.ts @@ -1,6 +1,6 @@ export interface GetAttachmentVersionDetails { /** The ID of the attachment for which version details should be returned. */ - id: string; + attachmentId: string; /** The version number of the attachment to be returned. */ versionNumber: number; } diff --git a/src/version2/parameters/getAttachmentVersions.ts b/src/version2/parameters/getAttachmentVersions.ts index 92dc35cf..5ba9c734 100644 --- a/src/version2/parameters/getAttachmentVersions.ts +++ b/src/version2/parameters/getAttachmentVersions.ts @@ -3,7 +3,7 @@ export interface GetAttachmentVersions { * The ID of the attachment to be queried for its versions. If you don't know the attachment ID, use Get attachments * and filter the results. */ - id: number; + id: string; /** * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the * relative URL in the `Link` header to retrieve the `next` set of results. diff --git a/src/version2/parameters/getBlogPostById.ts b/src/version2/parameters/getBlogPostById.ts index d8881974..5f29c7e1 100644 --- a/src/version2/parameters/getBlogPostById.ts +++ b/src/version2/parameters/getBlogPostById.ts @@ -16,4 +16,11 @@ export interface GetBlogPostById { * details. */ version?: number; + /** + * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for + * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the + * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this + * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. + */ + serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getBlogPostFooterComments.ts b/src/version2/parameters/getBlogPostFooterComments.ts index 07103f65..42990c6f 100644 --- a/src/version2/parameters/getBlogPostFooterComments.ts +++ b/src/version2/parameters/getBlogPostFooterComments.ts @@ -18,4 +18,11 @@ export interface GetBlogPostFooterComments { * relative URL that will return the next set of results. */ limit?: number; + /** + * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for + * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the + * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this + * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. + */ + serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getBlogPostInlineComments.ts b/src/version2/parameters/getBlogPostInlineComments.ts index 71d26dfd..07ad38be 100644 --- a/src/version2/parameters/getBlogPostInlineComments.ts +++ b/src/version2/parameters/getBlogPostInlineComments.ts @@ -18,4 +18,11 @@ export interface GetBlogPostInlineComments { * relative URL that will return the next set of results. */ limit?: number; + /** + * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for + * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the + * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this + * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. + */ + serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getBlogPostLabels.ts b/src/version2/parameters/getBlogPostLabels.ts index e8eab7b8..0bf2f9c7 100644 --- a/src/version2/parameters/getBlogPostLabels.ts +++ b/src/version2/parameters/getBlogPostLabels.ts @@ -15,4 +15,11 @@ export interface GetBlogPostLabels { * URL that will return the next set of results. */ limit?: number; + /** + * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for + * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the + * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this + * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. + */ + serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getBlogPostVersionDetails.ts b/src/version2/parameters/getBlogPostVersionDetails.ts index 7771ab1e..25f2a249 100644 --- a/src/version2/parameters/getBlogPostVersionDetails.ts +++ b/src/version2/parameters/getBlogPostVersionDetails.ts @@ -1,6 +1,6 @@ export interface GetBlogPostVersionDetails { /** The ID of the blog post for which version details should be returned. */ - id: number; + blogpostId: number; /** The version number of the blog post to be returned. */ versionNumber: number; } diff --git a/src/version2/parameters/getBlogPostVersions.ts b/src/version2/parameters/getBlogPostVersions.ts index 50252cd3..c6e80af3 100644 --- a/src/version2/parameters/getBlogPostVersions.ts +++ b/src/version2/parameters/getBlogPostVersions.ts @@ -4,6 +4,11 @@ export interface GetBlogPostVersions { * filter the results. */ id: number; + /** + * The content format types to be returned in the `body` field of the response. If available, the representation will + * be available under a response field of the same name under the `body` field. + */ + 'body-format'?: {}; /** * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the * relative URL in the `Link` header to retrieve the `next` set of results. diff --git a/src/version2/parameters/getBlogPosts.ts b/src/version2/parameters/getBlogPosts.ts index 853d8b8b..0a7ee9ac 100644 --- a/src/version2/parameters/getBlogPosts.ts +++ b/src/version2/parameters/getBlogPosts.ts @@ -1,4 +1,15 @@ +import { PrimaryBodyRepresentation } from '../models'; + export interface GetBlogPosts { + /** Filter the results based on blog post ids. Multiple blog post ids can be specified as a comma-separated list. */ + id?: number[]; + /** Filter the results to blog posts based on their status. */ + status?: string; + /** + * The content format types to be returned in the `body` field of the response. If available, the representation will + * be available under a response field of the same name under the `body` field. + */ + bodyFormat?: PrimaryBodyRepresentation; /** * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the * relative URL in the `Link` header to retrieve the `next` set of results. @@ -9,4 +20,11 @@ export interface GetBlogPosts { * retrieve a relative URL that will return the next set of results. */ limit?: number; + /** + * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for + * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the + * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this + * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. + */ + serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getBlogPostsInSpace.ts b/src/version2/parameters/getBlogPostsInSpace.ts index 901c37ef..ddcafc16 100644 --- a/src/version2/parameters/getBlogPostsInSpace.ts +++ b/src/version2/parameters/getBlogPostsInSpace.ts @@ -1,6 +1,15 @@ +import { PrimaryBodyRepresentation } from '../models'; + export interface GetBlogPostsInSpace { /** The ID of the space for which blog posts should be returned. */ id: number; + /** Filter the results to blog posts based on their status. */ + status?: string; + /** + * The content format types to be returned in the `body` field of the response. If available, the representation will + * be available under a response field of the same name under the `body` field. + */ + bodyFormat?: PrimaryBodyRepresentation; /** * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the * relative URL in the `Link` header to retrieve the `next` set of results. @@ -11,4 +20,11 @@ export interface GetBlogPostsInSpace { * relative URL that will return the next set of results. */ limit?: number; + /** + * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for + * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the + * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this + * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. + */ + serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getBlogpostAttachments.ts b/src/version2/parameters/getBlogpostAttachments.ts index 29636d7a..d5089871 100644 --- a/src/version2/parameters/getBlogpostAttachments.ts +++ b/src/version2/parameters/getBlogpostAttachments.ts @@ -17,4 +17,11 @@ export interface GetBlogpostAttachments { * relative URL that will return the next set of results. */ limit?: number; + /** + * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for + * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the + * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this + * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. + */ + serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getBlogpostContentProperties.ts b/src/version2/parameters/getBlogpostContentProperties.ts index ab6d7b09..b1b5951a 100644 --- a/src/version2/parameters/getBlogpostContentProperties.ts +++ b/src/version2/parameters/getBlogpostContentProperties.ts @@ -1,10 +1,10 @@ export interface GetBlogpostContentProperties { /** The ID of the blog post for which content properties should be returned. */ - id: number; + blogpostId: number; /** Filters the response to return a specific content property with matching key (case sensitive). */ key?: string; /** Used to sort the result by a particular field. */ - sort?: {}; + sort?: 'key' | '-key'; /** * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the * relative URL in the `Link` header to retrieve the `next` set of results. @@ -15,4 +15,11 @@ export interface GetBlogpostContentProperties { * relative URL that will return the next set of results. */ limit?: number; + /** + * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for + * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the + * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this + * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. + */ + serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getBlogpostContentPropertiesById.ts b/src/version2/parameters/getBlogpostContentPropertiesById.ts index 8929aa4a..8a219f7d 100644 --- a/src/version2/parameters/getBlogpostContentPropertiesById.ts +++ b/src/version2/parameters/getBlogpostContentPropertiesById.ts @@ -1,6 +1,13 @@ export interface GetBlogpostContentPropertiesById { /** The ID of the blog post for which content properties should be returned. */ - id: number; + blogpostId: number; /** The ID of the property being requested */ propertyId: number; + /** + * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for + * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the + * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this + * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. + */ + serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getChildCustomContent.ts b/src/version2/parameters/getChildCustomContent.ts index 32652afa..4cac4439 100644 --- a/src/version2/parameters/getChildCustomContent.ts +++ b/src/version2/parameters/getChildCustomContent.ts @@ -16,4 +16,11 @@ export interface GetChildCustomContent { limit?: number; /** Used to sort the result by a particular field. */ sort?: string; + /** + * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for + * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the + * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this + * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. + */ + serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getChildPages.ts b/src/version2/parameters/getChildPages.ts index d33c0f52..2768e4b5 100644 --- a/src/version2/parameters/getChildPages.ts +++ b/src/version2/parameters/getChildPages.ts @@ -13,4 +13,11 @@ export interface GetChildPages { limit?: number; /** Used to sort the result by a particular field. */ sort?: string; + /** + * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for + * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the + * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this + * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. + */ + serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getCommentContentProperties.ts b/src/version2/parameters/getCommentContentProperties.ts index 2a2a6bb7..52bf6d60 100644 --- a/src/version2/parameters/getCommentContentProperties.ts +++ b/src/version2/parameters/getCommentContentProperties.ts @@ -1,10 +1,10 @@ export interface GetCommentContentProperties { /** The ID of the comment for which content properties should be returned. */ - id: number; + commentId: number; /** Filters the response to return a specific content property with matching key (case sensitive). */ - key?: string; + key: string; /** Used to sort the result by a particular field. */ - sort?: {}; + sort?: 'key' | '-key'; /** * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the * relative URL in the `Link` header to retrieve the `next` set of results. @@ -15,4 +15,11 @@ export interface GetCommentContentProperties { * relative URL that will return the next set of results. */ limit?: number; + /** + * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for + * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the + * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this + * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. + */ + serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getCommentContentPropertiesById.ts b/src/version2/parameters/getCommentContentPropertiesById.ts index fc95aad7..21dffb3d 100644 --- a/src/version2/parameters/getCommentContentPropertiesById.ts +++ b/src/version2/parameters/getCommentContentPropertiesById.ts @@ -1,6 +1,13 @@ export interface GetCommentContentPropertiesById { /** The ID of the comment for which content properties should be returned. */ - id: number; + commentId: number; /** The ID of the content property being requested. */ propertyId: number; + /** + * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for + * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the + * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this + * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. + */ + serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getCustomContentAttachments.ts b/src/version2/parameters/getCustomContentAttachments.ts index 2102c9fd..b6ba64b9 100644 --- a/src/version2/parameters/getCustomContentAttachments.ts +++ b/src/version2/parameters/getCustomContentAttachments.ts @@ -17,4 +17,11 @@ export interface GetCustomContentAttachments { * relative URL that will return the next set of results. */ limit?: number; + /** + * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for + * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the + * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this + * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. + */ + serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getCustomContentById.ts b/src/version2/parameters/getCustomContentById.ts index 15a6eff3..7b855c2d 100644 --- a/src/version2/parameters/getCustomContentById.ts +++ b/src/version2/parameters/getCustomContentById.ts @@ -17,4 +17,11 @@ export interface GetCustomContentById { * details. */ version?: number; + /** + * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for + * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the + * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this + * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. + */ + serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getCustomContentByType.ts b/src/version2/parameters/getCustomContentByType.ts index 935e9f83..ea4c6190 100644 --- a/src/version2/parameters/getCustomContentByType.ts +++ b/src/version2/parameters/getCustomContentByType.ts @@ -4,6 +4,11 @@ export interface GetCustomContentByType { * for additional details on custom content. */ type: string; + /** + * Filter the results based on custom content ids. Multiple custom content ids can be specified as a comma-separated + * list. + */ + id?: number[]; /** * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the * relative URL in the `Link` header to retrieve the `next` set of results. @@ -22,4 +27,11 @@ export interface GetCustomContentByType { * be returned. If the custom content body type is `raw`, only the `raw` body format is able to be returned. */ 'body-format'?: {}; + /** + * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for + * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the + * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this + * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. + */ + serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getCustomContentByTypeInBlogPost.ts b/src/version2/parameters/getCustomContentByTypeInBlogPost.ts index 13bfbfe1..c8463126 100644 --- a/src/version2/parameters/getCustomContentByTypeInBlogPost.ts +++ b/src/version2/parameters/getCustomContentByTypeInBlogPost.ts @@ -24,4 +24,11 @@ export interface GetCustomContentByTypeInBlogPost { * be returned. If the custom content body type is `raw`, only the `raw` body format is able to be returned. */ 'body-format'?: {}; + /** + * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for + * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the + * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this + * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. + */ + serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getCustomContentByTypeInPage.ts b/src/version2/parameters/getCustomContentByTypeInPage.ts index 8cad28de..ebc3c2c5 100644 --- a/src/version2/parameters/getCustomContentByTypeInPage.ts +++ b/src/version2/parameters/getCustomContentByTypeInPage.ts @@ -24,4 +24,11 @@ export interface GetCustomContentByTypeInPage { * be returned. If the custom content body type is `raw`, only the `raw` body format is able to be returned. */ 'body-format'?: {}; + /** + * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for + * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the + * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this + * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. + */ + serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getCustomContentByTypeInSpace.ts b/src/version2/parameters/getCustomContentByTypeInSpace.ts index 13cb1642..ffed94bc 100644 --- a/src/version2/parameters/getCustomContentByTypeInSpace.ts +++ b/src/version2/parameters/getCustomContentByTypeInSpace.ts @@ -24,4 +24,11 @@ export interface GetCustomContentByTypeInSpace { * be returned. If the custom content body type is `raw`, only the `raw` body format is able to be returned. */ 'body-format'?: {}; + /** + * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for + * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the + * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this + * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. + */ + serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getCustomContentContentProperties.ts b/src/version2/parameters/getCustomContentContentProperties.ts index 7e249762..3ffa3172 100644 --- a/src/version2/parameters/getCustomContentContentProperties.ts +++ b/src/version2/parameters/getCustomContentContentProperties.ts @@ -1,10 +1,10 @@ export interface GetCustomContentContentProperties { /** The ID of the custom content for which content properties should be returned. */ - id: number; + customContentId: number; /** Filters the response to return a specific content property with matching key (case sensitive). */ key?: string; /** Used to sort the result by a particular field. */ - sort?: {}; + sort?: 'key' | '-key'; /** * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the * relative URL in the `Link` header to retrieve the `next` set of results. @@ -15,4 +15,11 @@ export interface GetCustomContentContentProperties { * relative URL that will return the next set of results. */ limit?: number; + /** + * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for + * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the + * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this + * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. + */ + serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getCustomContentContentPropertiesById.ts b/src/version2/parameters/getCustomContentContentPropertiesById.ts index d60322eb..dd922783 100644 --- a/src/version2/parameters/getCustomContentContentPropertiesById.ts +++ b/src/version2/parameters/getCustomContentContentPropertiesById.ts @@ -1,6 +1,13 @@ export interface GetCustomContentContentPropertiesById { /** The ID of the custom content for which content properties should be returned. */ - id: number; + customContentId: number; /** The ID of the content property being requested. */ propertyId: number; + /** + * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for + * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the + * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this + * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. + */ + serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getCustomContentLabels.ts b/src/version2/parameters/getCustomContentLabels.ts index 02afd2cf..f58d5ee8 100644 --- a/src/version2/parameters/getCustomContentLabels.ts +++ b/src/version2/parameters/getCustomContentLabels.ts @@ -15,4 +15,11 @@ export interface GetCustomContentLabels { * URL that will return the next set of results. */ limit?: number; + /** + * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for + * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the + * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this + * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. + */ + serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getCustomContentVersionDetails.ts b/src/version2/parameters/getCustomContentVersionDetails.ts index a5624bd4..86828aad 100644 --- a/src/version2/parameters/getCustomContentVersionDetails.ts +++ b/src/version2/parameters/getCustomContentVersionDetails.ts @@ -1,6 +1,6 @@ export interface GetCustomContentVersionDetails { /** The ID of the custom content for which version details should be returned. */ - id: number; + customContentId: number; /** The version number of the custom content to be returned. */ versionNumber: number; } diff --git a/src/version2/parameters/getCustomContentVersions.ts b/src/version2/parameters/getCustomContentVersions.ts index 21a4fd00..d1e6a3ea 100644 --- a/src/version2/parameters/getCustomContentVersions.ts +++ b/src/version2/parameters/getCustomContentVersions.ts @@ -3,7 +3,12 @@ export interface GetCustomContentVersions { * The ID of the custom content to be queried for its versions. If you don't know the custom content ID, use Get * custom-content by type and filter the results. */ - id: number; + customContentId: number; + /** + * The content format types to be returned in the `body` field of the response. If available, the representation will + * be available under a response field of the same name under the `body` field. + */ + 'body-format'?: {}; /** * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the * relative URL in the `Link` header to retrieve the `next` set of results. diff --git a/src/version2/parameters/getFooterCommentById.ts b/src/version2/parameters/getFooterCommentById.ts index 279fd549..1cb61eaa 100644 --- a/src/version2/parameters/getFooterCommentById.ts +++ b/src/version2/parameters/getFooterCommentById.ts @@ -1,6 +1,6 @@ export interface GetFooterCommentById { /** The ID of the comment to be retrieved. */ - id: number; + commentId: number; /** * The content format type to be returned in the `body` field of the response. If available, the representation will * be available under a response field of the same name under the `body` field. @@ -11,4 +11,11 @@ export interface GetFooterCommentById { * details. */ version?: number; + /** + * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for + * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the + * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this + * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. + */ + serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getFooterCommentChildren.ts b/src/version2/parameters/getFooterCommentChildren.ts index 2279f902..1894886a 100644 --- a/src/version2/parameters/getFooterCommentChildren.ts +++ b/src/version2/parameters/getFooterCommentChildren.ts @@ -18,4 +18,11 @@ export interface GetFooterCommentChildren { * relative URL that will return the next set of results. */ limit?: number; + /** + * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for + * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the + * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this + * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. + */ + serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getFooterCommentVersions.ts b/src/version2/parameters/getFooterCommentVersions.ts new file mode 100644 index 00000000..a2d0c2c2 --- /dev/null +++ b/src/version2/parameters/getFooterCommentVersions.ts @@ -0,0 +1,21 @@ +export interface GetFooterCommentVersions { + /** The ID of the footer comment for which versions should be returned */ + id: number; + /** + * The content format types to be returned in the `body` field of the response. If available, the representation will + * be available under a response field of the same name under the `body` field. + */ + 'body-format'?: {}; + /** + * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the + * relative URL in the `Link` header to retrieve the `next` set of results. + */ + cursor?: string; + /** + * Maximum number of versions per result to return. If more results exist, use the `Link` header to retrieve a + * relative URL that will return the next set of results. + */ + limit?: number; + /** Used to sort the result by a particular field. */ + sort?: {}; +} diff --git a/src/version2/parameters/getInlineCommentById.ts b/src/version2/parameters/getInlineCommentById.ts index 1639a9cc..08beb43f 100644 --- a/src/version2/parameters/getInlineCommentById.ts +++ b/src/version2/parameters/getInlineCommentById.ts @@ -1,6 +1,6 @@ export interface GetInlineCommentById { /** The ID of the comment to be retrieved. */ - id: number; + commentId: number; /** * The content format type to be returned in the `body` field of the response. If available, the representation will * be available under a response field of the same name under the `body` field. @@ -11,4 +11,11 @@ export interface GetInlineCommentById { * details. */ version?: number; + /** + * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for + * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the + * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this + * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. + */ + serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getInlineCommentChildren.ts b/src/version2/parameters/getInlineCommentChildren.ts index 54f9b0a8..a1bfe7ba 100644 --- a/src/version2/parameters/getInlineCommentChildren.ts +++ b/src/version2/parameters/getInlineCommentChildren.ts @@ -1,6 +1,13 @@ export interface GetInlineCommentChildren { /** The ID of the parent comment for which inline comment children should be returned. */ id: number; + /** + * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for + * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the + * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this + * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. + */ + serializeIdsAsStrings?: boolean; /** * The content format type to be returned in the `body` field of the response. If available, the representation will * be available under a response field of the same name under the `body` field. diff --git a/src/version2/parameters/getInlineCommentVersionDetails.ts b/src/version2/parameters/getInlineCommentVersionDetails.ts new file mode 100644 index 00000000..11e35f6d --- /dev/null +++ b/src/version2/parameters/getInlineCommentVersionDetails.ts @@ -0,0 +1,6 @@ +export interface GetInlineCommentVersionDetails { + /** The ID of the inline comment for which version details should be returned. */ + id: number; + /** The version number of the inline comment to be returned. */ + versionNumber: number; +} diff --git a/src/version2/parameters/getInlineCommentVersions.ts b/src/version2/parameters/getInlineCommentVersions.ts new file mode 100644 index 00000000..bba6e131 --- /dev/null +++ b/src/version2/parameters/getInlineCommentVersions.ts @@ -0,0 +1,21 @@ +export interface GetInlineCommentVersions { + /** The ID of the inline comment for which versions should be returned */ + id: number; + /** + * The content format types to be returned in the `body` field of the response. If available, the representation will + * be available under a response field of the same name under the `body` field. + */ + 'body-format'?: {}; + /** + * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the + * relative URL in the `Link` header to retrieve the `next` set of results. + */ + cursor?: string; + /** + * Maximum number of versions per result to return. If more results exist, use the `Link` header to retrieve a + * relative URL that will return the next set of results. + */ + limit?: number; + /** Used to sort the result by a particular field. */ + sort?: {}; +} diff --git a/src/version2/parameters/getLabelAttachments.ts b/src/version2/parameters/getLabelAttachments.ts new file mode 100644 index 00000000..af3a63bb --- /dev/null +++ b/src/version2/parameters/getLabelAttachments.ts @@ -0,0 +1,23 @@ +export interface GetLabelAttachments { + /** The ID of the label for which attachments should be returned. */ + id: number; + /** Used to sort the result by a particular field. */ + sort?: {}; + /** + * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the + * relative URL in the `Link` header to retrieve the `next` set of results. + */ + cursor?: string; + /** + * Maximum number of pages per result to return. If more results exist, use the `Link` header to retrieve a relative + * URL that will return the next set of results. + */ + limit?: number; + /** + * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for + * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the + * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this + * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. + */ + serializeIdsAsStrings?: boolean; +} diff --git a/src/version2/parameters/getLabelBlogPosts.ts b/src/version2/parameters/getLabelBlogPosts.ts index 213ea95f..7787eafe 100644 --- a/src/version2/parameters/getLabelBlogPosts.ts +++ b/src/version2/parameters/getLabelBlogPosts.ts @@ -1,8 +1,15 @@ +import { PrimaryBodyRepresentation } from '../models'; + export interface GetLabelBlogPosts { /** The ID of the label for which blog posts should be returned. */ id: number; + /** + * The content format types to be returned in the `body` field of the response. If available, the representation will + * be available under a response field of the same name under the `body` field. + */ + bodyFormat?: PrimaryBodyRepresentation; /** Used to sort the result by a particular field. */ - sort?: string; + sort?: {}; /** * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the * relative URL in the `Link` header to retrieve the `next` set of results. @@ -13,4 +20,11 @@ export interface GetLabelBlogPosts { * relative URL that will return the next set of results. */ limit?: number; + /** + * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for + * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the + * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this + * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. + */ + serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getLabelPages.ts b/src/version2/parameters/getLabelPages.ts index aa322b4d..80d1fffd 100644 --- a/src/version2/parameters/getLabelPages.ts +++ b/src/version2/parameters/getLabelPages.ts @@ -1,8 +1,13 @@ export interface GetLabelPages { /** The ID of the label for which pages should be returned. */ id: number; + /** + * The content format types to be returned in the `body` field of the response. If available, the representation will + * be available under a response field of the same name under the `body` field. + */ + 'body-format'?: {}; /** Used to sort the result by a particular field. */ - sort?: string; + sort?: {}; /** * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the * relative URL in the `Link` header to retrieve the `next` set of results. @@ -13,4 +18,11 @@ export interface GetLabelPages { * URL that will return the next set of results. */ limit?: number; + /** + * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for + * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the + * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this + * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. + */ + serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getPageAttachments.ts b/src/version2/parameters/getPageAttachments.ts index a3d16158..b9750924 100644 --- a/src/version2/parameters/getPageAttachments.ts +++ b/src/version2/parameters/getPageAttachments.ts @@ -17,4 +17,11 @@ export interface GetPageAttachments { * relative URL that will return the next set of results. */ limit?: number; + /** + * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for + * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the + * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this + * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. + */ + serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getPageById.ts b/src/version2/parameters/getPageById.ts index 554f31ad..ef0da5ef 100644 --- a/src/version2/parameters/getPageById.ts +++ b/src/version2/parameters/getPageById.ts @@ -13,4 +13,11 @@ export interface GetPageById { * details. */ version?: number; + /** + * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for + * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the + * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this + * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. + */ + serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getPageContentProperties.ts b/src/version2/parameters/getPageContentProperties.ts index 09fa73bf..35f94b06 100644 --- a/src/version2/parameters/getPageContentProperties.ts +++ b/src/version2/parameters/getPageContentProperties.ts @@ -1,10 +1,10 @@ export interface GetPageContentProperties { /** The ID of the page for which content properties should be returned. */ - id: number; + pageId: number; /** Filters the response to return a specific content property with matching key (case sensitive). */ - key?: string; + key: string; /** Used to sort the result by a particular field. */ - sort?: {}; + sort?: 'key' | '-key'; /** * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the * relative URL in the `Link` header to retrieve the `next` set of results. @@ -15,4 +15,11 @@ export interface GetPageContentProperties { * relative URL that will return the next set of results. */ limit?: number; + /** + * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for + * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the + * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this + * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. + */ + serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getPageContentPropertiesById.ts b/src/version2/parameters/getPageContentPropertiesById.ts index 62202837..baafa0e9 100644 --- a/src/version2/parameters/getPageContentPropertiesById.ts +++ b/src/version2/parameters/getPageContentPropertiesById.ts @@ -1,6 +1,13 @@ export interface GetPageContentPropertiesById { /** The ID of the page for which content properties should be returned. */ - id: number; + pageId: number; /** The ID of the content property being requested. */ propertyId: number; + /** + * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for + * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the + * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this + * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. + */ + serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getPageFooterComments.ts b/src/version2/parameters/getPageFooterComments.ts index c8976979..693a56c5 100644 --- a/src/version2/parameters/getPageFooterComments.ts +++ b/src/version2/parameters/getPageFooterComments.ts @@ -18,4 +18,11 @@ export interface GetPageFooterComments { * relative URL that will return the next set of results. */ limit?: number; + /** + * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for + * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the + * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this + * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. + */ + serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getPageInlineComments.ts b/src/version2/parameters/getPageInlineComments.ts index 32900097..f841f343 100644 --- a/src/version2/parameters/getPageInlineComments.ts +++ b/src/version2/parameters/getPageInlineComments.ts @@ -18,4 +18,11 @@ export interface GetPageInlineComments { * relative URL that will return the next set of results. */ limit?: number; + /** + * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for + * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the + * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this + * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. + */ + serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getPageLabels.ts b/src/version2/parameters/getPageLabels.ts index b883e437..643fdd02 100644 --- a/src/version2/parameters/getPageLabels.ts +++ b/src/version2/parameters/getPageLabels.ts @@ -15,4 +15,11 @@ export interface GetPageLabels { * URL that will return the next set of results. */ limit?: number; + /** + * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for + * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the + * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this + * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. + */ + serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getPageVersionDetails.ts b/src/version2/parameters/getPageVersionDetails.ts index f951d86f..c968d455 100644 --- a/src/version2/parameters/getPageVersionDetails.ts +++ b/src/version2/parameters/getPageVersionDetails.ts @@ -1,6 +1,6 @@ export interface GetPageVersionDetails { /** The ID of the page for which version details should be returned. */ - id: number; + pageId: number; /** The version number of the page to be returned. */ versionNumber: number; } diff --git a/src/version2/parameters/getPageVersions.ts b/src/version2/parameters/getPageVersions.ts index 1f7ab3ad..fc506a3b 100644 --- a/src/version2/parameters/getPageVersions.ts +++ b/src/version2/parameters/getPageVersions.ts @@ -4,6 +4,11 @@ export interface GetPageVersions { * results. */ id: number; + /** + * The content format types to be returned in the `body` field of the response. If available, the representation will + * be available under a response field of the same name under the `body` field. + */ + 'body-format'?: {}; /** * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the * relative URL in the `Link` header to retrieve the `next` set of results. diff --git a/src/version2/parameters/getPages.ts b/src/version2/parameters/getPages.ts index 93f285bb..751eb401 100644 --- a/src/version2/parameters/getPages.ts +++ b/src/version2/parameters/getPages.ts @@ -1,4 +1,13 @@ export interface GetPages { + /** Filter the results based on page ids. Multiple page ids can be specified as a comma-separated list. */ + id?: number[]; + /** Filter the results to pages based on their status. */ + status?: string; + /** + * The content format types to be returned in the `body` field of the response. If available, the representation will + * be available under a response field of the same name under the `body` field. + */ + 'body-format'?: {}; /** * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the * relative URL in the `Link` header to retrieve the `next` set of results. @@ -9,4 +18,11 @@ export interface GetPages { * URL that will return the next set of results. */ limit?: number; + /** + * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for + * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the + * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this + * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. + */ + serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getPagesInSpace.ts b/src/version2/parameters/getPagesInSpace.ts index f4748b85..a6d21bfd 100644 --- a/src/version2/parameters/getPagesInSpace.ts +++ b/src/version2/parameters/getPagesInSpace.ts @@ -1,6 +1,13 @@ export interface GetPagesInSpace { /** The ID of the space for which pages should be returned. */ id: number; + /** Filter the results to pages based on their status. */ + status?: string; + /** + * The content format types to be returned in the `body` field of the response. If available, the representation will + * be available under a response field of the same name under the `body` field. + */ + 'body-format'?: {}; /** * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the * relative URL in the `Link` header to retrieve the `next` set of results. @@ -11,4 +18,11 @@ export interface GetPagesInSpace { * URL that will return the next set of results. */ limit?: number; + /** + * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for + * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the + * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this + * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. + */ + serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getSpaceProperties.ts b/src/version2/parameters/getSpaceProperties.ts index 39331c77..ffe13739 100644 --- a/src/version2/parameters/getSpaceProperties.ts +++ b/src/version2/parameters/getSpaceProperties.ts @@ -1,6 +1,6 @@ export interface GetSpaceProperties { /** The ID of the space for which space properties should be returned. */ - id: number; + spaceId: number; /** * The key of the space property to retrieve. This should be used when a user knows the key of their property, but * needs to retrieve the id for use in other methods. @@ -16,4 +16,11 @@ export interface GetSpaceProperties { * URL that will return the next set of results. */ limit?: number; + /** + * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for + * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the + * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this + * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. + */ + serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getSpacePropertyById.ts b/src/version2/parameters/getSpacePropertyById.ts index d0029d49..2b6c262e 100644 --- a/src/version2/parameters/getSpacePropertyById.ts +++ b/src/version2/parameters/getSpacePropertyById.ts @@ -1,6 +1,13 @@ export interface GetSpacePropertyById { /** The ID of the space the property belongs to. */ - id: number; + spaceId: number; /** The ID of the property to be retrieved. */ propertyId: number; + /** + * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for + * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the + * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this + * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. + */ + serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getSpaces.ts b/src/version2/parameters/getSpaces.ts index 12fe1a12..75ed60ac 100644 --- a/src/version2/parameters/getSpaces.ts +++ b/src/version2/parameters/getSpaces.ts @@ -26,4 +26,11 @@ export interface GetSpaces { * relative URL that will return the next set of results. */ limit?: number; + /** + * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for + * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the + * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this + * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. + */ + serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getTaskById.ts b/src/version2/parameters/getTaskById.ts index 67b0df77..75b1a162 100644 --- a/src/version2/parameters/getTaskById.ts +++ b/src/version2/parameters/getTaskById.ts @@ -6,4 +6,11 @@ export interface GetTaskById { * be available under a response field of the same name under the `body` field. */ 'body-format'?: {}; + /** + * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for + * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the + * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this + * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. + */ + serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getTasks.ts b/src/version2/parameters/getTasks.ts index 30d2ed4f..8aa46935 100644 --- a/src/version2/parameters/getTasks.ts +++ b/src/version2/parameters/getTasks.ts @@ -8,16 +8,18 @@ export interface GetTasks { 'include-blank-tasks'?: boolean; /** Filters on the status of the task. */ status?: string; + /** Filters on task ID. Multiple IDs can be specified. */ + taskId?: number[]; /** Filters on the space ID of the task. Multiple IDs can be specified. */ - 'space-id'?: number[]; + spaceId?: number[]; /** - * Filters on the page ID of the task. Multiple IDs can be specified. Note - passing both page and blog post filters - * will result in an empty response. + * Filters on the page ID of the task. Multiple IDs can be specified. Note - page and blog post filters can be used in + * conjunction. */ - 'page-id'?: number[]; + pageId?: number[]; /** - * Filters on the blog post ID of the task. Multiple IDs can be specified. Note - passing both page and blog post - * filters will result in an empty response. + * Filters on the blog post ID of the task. Multiple IDs can be specified. Note - page and blog post filters can be + * used in conjunction. */ 'blogpost-id'?: number[]; /** Filters on the Account ID of the user who created this task. Multiple IDs can be specified. */ @@ -57,4 +59,11 @@ export interface GetTasks { * URL that will return the next set of results. */ limit?: number; + /** + * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for + * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the + * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this + * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. + */ + serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/index.ts b/src/version2/parameters/index.ts index 3795562b..99c67fbf 100644 --- a/src/version2/parameters/index.ts +++ b/src/version2/parameters/index.ts @@ -1,71 +1,94 @@ +export * from './createAttachmentProperty'; +export * from './createBlogPost'; +export * from './createBlogpostProperty'; +export * from './createCommentProperty'; +export * from './createCustomContent'; +export * from './createCustomContentProperty'; +export * from './createFooterComment'; +export * from './createInlineComment'; +export * from './createPage'; +export * from './createPageProperty'; +export * from './createSpaceProperty'; +export * from './deleteAttachmentPropertyById'; +export * from './deleteBlogPost'; +export * from './deleteBlogpostPropertyById'; +export * from './deleteCommentPropertyById'; +export * from './deleteCustomContent'; +export * from './deleteCustomContentPropertyById'; +export * from './deleteFooterComment'; +export * from './deleteInlineComment'; +export * from './deletePage'; +export * from './deletePagePropertyById'; +export * from './deleteSpacePropertyById'; export * from './getAttachmentById'; -export * from './getBlogpostAttachments'; -export * from './getCustomContentAttachments'; -export * from './getPageAttachments'; -export * from './getAttachmentLabels'; -export * from './getBlogPostLabels'; -export * from './getCustomContentLabels'; -export * from './getPageLabels'; export * from './getAttachmentContentProperties'; export * from './getAttachmentContentPropertiesById'; +export * from './getAttachmentLabels'; +export * from './getAttachmentVersionDetails'; +export * from './getAttachmentVersions'; +export * from './getBlogpostAttachments'; +export * from './getBlogPostById'; export * from './getBlogpostContentProperties'; export * from './getBlogpostContentPropertiesById'; -export * from './getCustomContentContentProperties'; -export * from './getCustomContentContentPropertiesById'; -export * from './getPageContentProperties'; -export * from './getPageContentPropertiesById'; -export * from './getCommentContentProperties'; -export * from './getCommentContentPropertiesById'; -export * from './getAttachmentVersions'; -export * from './getAttachmentVersionDetails'; -export * from './getBlogPostVersions'; -export * from './getBlogPostVersionDetails'; -export * from './getPageVersions'; -export * from './getPageVersionDetails'; -export * from './getCustomContentVersions'; -export * from './getCustomContentVersionDetails'; -export * from './getFooterCommentVersionDetails'; +export * from './getBlogPostFooterComments'; +export * from './getBlogPostInlineComments'; +export * from './getBlogPostLabels'; export * from './getBlogPosts'; -export * from './getBlogPostById'; -export * from './updateBlogPost'; -export * from './deleteBlogPost'; -export * from './getLabelBlogPosts'; export * from './getBlogPostsInSpace'; -export * from './getCustomContentByTypeInBlogPost'; -export * from './getCustomContentByType'; +export * from './getBlogPostVersionDetails'; +export * from './getBlogPostVersions'; +export * from './getChildCustomContent'; +export * from './getChildPages'; +export * from './getCommentContentProperties'; +export * from './getCommentContentPropertiesById'; +export * from './getCustomContentAttachments'; export * from './getCustomContentById'; -export * from './updateCustomContent'; -export * from './deleteCustomContent'; +export * from './getCustomContentByType'; +export * from './getCustomContentByTypeInBlogPost'; export * from './getCustomContentByTypeInPage'; export * from './getCustomContentByTypeInSpace'; +export * from './getCustomContentContentProperties'; +export * from './getCustomContentContentPropertiesById'; +export * from './getCustomContentLabels'; +export * from './getCustomContentVersionDetails'; +export * from './getCustomContentVersions'; +export * from './getFooterCommentById'; +export * from './getFooterCommentChildren'; +export * from './getFooterCommentVersionDetails'; +export * from './getFooterCommentVersions'; +export * from './getInlineCommentById'; +export * from './getInlineCommentChildren'; +export * from './getInlineCommentVersionDetails'; +export * from './getInlineCommentVersions'; +export * from './getLabelAttachments'; +export * from './getLabelBlogPosts'; export * from './getLabelPages'; -export * from './getPages'; +export * from './getPageAttachments'; export * from './getPageById'; -export * from './updatePage'; -export * from './deletePage'; +export * from './getPageContentProperties'; +export * from './getPageContentPropertiesById'; +export * from './getPageFooterComments'; +export * from './getPageInlineComments'; +export * from './getPageLabels'; +export * from './getPages'; export * from './getPagesInSpace'; -export * from './getSpaces'; +export * from './getPageVersionDetails'; +export * from './getPageVersions'; export * from './getSpaceById'; export * from './getSpaceProperties'; -export * from './createSpaceProperty'; export * from './getSpacePropertyById'; -export * from './updateSpacePropertyById'; -export * from './deleteSpacePropertyById'; -export * from './getPageFooterComments'; -export * from './getPageInlineComments'; -export * from './getBlogPostFooterComments'; -export * from './getBlogPostInlineComments'; -export * from './createFooterComment'; -export * from './getFooterCommentById'; +export * from './getSpaces'; +export * from './getTaskById'; +export * from './getTasks'; +export * from './updateAttachmentPropertyById'; +export * from './updateBlogPost'; +export * from './updateBlogpostPropertyById'; +export * from './updateCommentPropertyById'; +export * from './updateCustomContent'; +export * from './updateCustomContentPropertyById'; export * from './updateFooterComment'; -export * from './deleteFooterComment'; -export * from './getFooterCommentChildren'; -export * from './createInlineComment'; -export * from './getInlineCommentById'; export * from './updateInlineComment'; -export * from './deleteInlineComment'; -export * from './getInlineCommentChildren'; -export * from './getTasks'; -export * from './getTaskById'; -export * from './getChildPages'; -export * from './getChildCustomContent'; +export * from './updatePage'; +export * from './updatePagePropertyById'; +export * from './updateSpacePropertyById'; +export * from './updateTask'; diff --git a/src/version2/parameters/updateAttachmentPropertyById.ts b/src/version2/parameters/updateAttachmentPropertyById.ts new file mode 100644 index 00000000..56e74b40 --- /dev/null +++ b/src/version2/parameters/updateAttachmentPropertyById.ts @@ -0,0 +1,15 @@ +import { ContentPropertyUpdateRequest } from '../models'; + +export interface UpdateAttachmentPropertyById extends ContentPropertyUpdateRequest { + /** The ID of the attachment the property belongs to. */ + attachmentId: string; + /** The ID of the property to be updated. */ + propertyId: number; + /** + * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for + * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the + * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this + * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. + */ + serializeIdsAsStrings?: boolean; +} diff --git a/src/version2/parameters/updateBlogPost.ts b/src/version2/parameters/updateBlogPost.ts index 0164264d..8ef03274 100644 --- a/src/version2/parameters/updateBlogPost.ts +++ b/src/version2/parameters/updateBlogPost.ts @@ -4,4 +4,11 @@ export interface UpdateBlogPost { * results. */ id: number; + /** + * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for + * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the + * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this + * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. + */ + serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/updateBlogpostPropertyById.ts b/src/version2/parameters/updateBlogpostPropertyById.ts new file mode 100644 index 00000000..26baab89 --- /dev/null +++ b/src/version2/parameters/updateBlogpostPropertyById.ts @@ -0,0 +1,15 @@ +import { ContentPropertyUpdateRequest } from '../models'; + +export interface UpdateBlogpostPropertyById extends ContentPropertyUpdateRequest { + /** The ID of the blog post the property belongs to. */ + blogpostId: number; + /** The ID of the property to be updated. */ + propertyId: number; + /** + * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for + * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the + * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this + * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. + */ + serializeIdsAsStrings?: boolean; +} diff --git a/src/version2/parameters/updateCommentPropertyById.ts b/src/version2/parameters/updateCommentPropertyById.ts new file mode 100644 index 00000000..aec2d9b8 --- /dev/null +++ b/src/version2/parameters/updateCommentPropertyById.ts @@ -0,0 +1,15 @@ +import { ContentPropertyUpdateRequest } from '../models'; + +export interface UpdateCommentPropertyById extends ContentPropertyUpdateRequest { + /** The ID of the comment the property belongs to. */ + commentId: number; + /** The ID of the property to be updated. */ + propertyId: number; + /** + * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for + * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the + * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this + * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. + */ + serializeIdsAsStrings?: boolean; +} diff --git a/src/version2/parameters/updateCustomContent.ts b/src/version2/parameters/updateCustomContent.ts index 31dd61b2..16294c3f 100644 --- a/src/version2/parameters/updateCustomContent.ts +++ b/src/version2/parameters/updateCustomContent.ts @@ -4,4 +4,11 @@ export interface UpdateCustomContent { * and filter the results. */ id: number; + /** + * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for + * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the + * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this + * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. + */ + serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/updateCustomContentPropertyById.ts b/src/version2/parameters/updateCustomContentPropertyById.ts new file mode 100644 index 00000000..884e021a --- /dev/null +++ b/src/version2/parameters/updateCustomContentPropertyById.ts @@ -0,0 +1,15 @@ +import { ContentPropertyUpdateRequest } from '../models'; + +export interface UpdateCustomContentPropertyById extends ContentPropertyUpdateRequest { + /** The ID of the custom content the property belongs to. */ + customContentId: number; + /** The ID of the property to be updated. */ + propertyId: number; + /** + * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for + * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the + * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this + * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. + */ + serializeIdsAsStrings?: boolean; +} diff --git a/src/version2/parameters/updateFooterComment.ts b/src/version2/parameters/updateFooterComment.ts index b1bc0a9b..5cfd7212 100644 --- a/src/version2/parameters/updateFooterComment.ts +++ b/src/version2/parameters/updateFooterComment.ts @@ -2,5 +2,12 @@ import { UpdateFooterCommentModel } from '../models'; export interface UpdateFooterComment extends UpdateFooterCommentModel { /** The ID of the comment to be retrieved. */ - id: number; + commentId: number; + /** + * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for + * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the + * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this + * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. + */ + serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/updateInlineComment.ts b/src/version2/parameters/updateInlineComment.ts index c5fa86d6..21ca58eb 100644 --- a/src/version2/parameters/updateInlineComment.ts +++ b/src/version2/parameters/updateInlineComment.ts @@ -2,5 +2,12 @@ import { UpdateInlineCommentModel } from '../models'; export interface UpdateInlineComment extends UpdateInlineCommentModel { /** The ID of the comment to be retrieved. */ - id: number; + commentId: number; + /** + * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for + * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the + * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this + * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. + */ + serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/updatePage.ts b/src/version2/parameters/updatePage.ts index c389f18a..bc562a81 100644 --- a/src/version2/parameters/updatePage.ts +++ b/src/version2/parameters/updatePage.ts @@ -1,4 +1,11 @@ export interface UpdatePage { /** The ID of the page to be updated. If you don't know the page ID, use Get Pages and filter the results. */ id: number; + /** + * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for + * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the + * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this + * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. + */ + serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/updatePagePropertyById.ts b/src/version2/parameters/updatePagePropertyById.ts new file mode 100644 index 00000000..df61b6d8 --- /dev/null +++ b/src/version2/parameters/updatePagePropertyById.ts @@ -0,0 +1,15 @@ +import { ContentPropertyUpdateRequest } from '../models'; + +export interface UpdatePagePropertyById extends ContentPropertyUpdateRequest { + /** The ID of the page the property belongs to. */ + pageId: number; + /** The ID of the property to be updated. */ + propertyId: number; + /** + * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for + * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the + * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this + * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. + */ + serializeIdsAsStrings?: boolean; +} diff --git a/src/version2/parameters/updateSpacePropertyById.ts b/src/version2/parameters/updateSpacePropertyById.ts index 9212f250..82f48c9c 100644 --- a/src/version2/parameters/updateSpacePropertyById.ts +++ b/src/version2/parameters/updateSpacePropertyById.ts @@ -2,7 +2,14 @@ import { SpacePropertyUpdateRequest } from '../models'; export interface UpdateSpacePropertyById extends SpacePropertyUpdateRequest { /** The ID of the space the property belongs to. */ - id: number; + spaceId: number; /** The ID of the property to be updated. */ propertyId: number; + /** + * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for + * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the + * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this + * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. + */ + serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/updateTask.ts b/src/version2/parameters/updateTask.ts new file mode 100644 index 00000000..a61d6d4e --- /dev/null +++ b/src/version2/parameters/updateTask.ts @@ -0,0 +1,11 @@ +export interface UpdateTask { + /** The ID of the task to be updated. If you don't know the task ID, use Get tasks and filter the results. */ + id: number; + /** + * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for + * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the + * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this + * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. + */ + serializeIdsAsStrings?: boolean; +} From 6877cf8ddd87fbdac545dabdee4ea7ebacb4d3d6 Mon Sep 17 00:00:00 2001 From: Vladislav Tupikin Date: Sun, 21 May 2023 17:05:45 +0400 Subject: [PATCH 09/44] unit tests fixes --- package-lock.json | 10 ++ package.json | 1 + tests/e2e/version2Client.test.ts | 184 ------------------------------- 3 files changed, 11 insertions(+), 184 deletions(-) delete mode 100644 tests/e2e/version2Client.test.ts diff --git a/package-lock.json b/package-lock.json index ce4410f0..b1b99fd1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,6 +17,7 @@ }, "devDependencies": { "@swc-node/register": "1.6.5", + "@swc/helpers": "^0.5.1", "@types/express": "^4.17.17", "@types/oauth": "^0.9.1", "@types/sinon": "^10.0.15", @@ -491,6 +492,15 @@ "node": ">=10" } }, + "node_modules/@swc/helpers": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.1.tgz", + "integrity": "sha512-sJ902EfIzn1Fa+qYmjdQqh8tPsoxyBz+8yBKC2HKUxyezKJFwPGOn7pv4WY6QuQW//ySQi5lJjA/ZT9sNWWNTg==", + "dev": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, "node_modules/@types/body-parser": { "version": "1.19.2", "resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.2.tgz", diff --git a/package.json b/package.json index 11470216..475b5d4b 100644 --- a/package.json +++ b/package.json @@ -43,6 +43,7 @@ ], "devDependencies": { "@swc-node/register": "1.6.5", + "@swc/helpers": "^0.5.1", "@types/express": "^4.17.17", "@types/oauth": "^0.9.1", "@types/sinon": "^10.0.15", diff --git a/tests/e2e/version2Client.test.ts b/tests/e2e/version2Client.test.ts deleted file mode 100644 index bc4509c0..00000000 --- a/tests/e2e/version2Client.test.ts +++ /dev/null @@ -1,184 +0,0 @@ -import * as fs from 'fs'; -import test from 'ava'; -import { ConfluenceClient, Version2Client } from '../../src'; - -const HOST = process.env.HOST!; -const EMAIL = process.env.EMAIL!; -const API_TOKEN = process.env.API_TOKEN!; - -let createdContentId: string; -let createdAttachmentId: string; - -const config = { - host: HOST, - telemetry: false, - newErrorHandling: true, - authentication: { - basic: { - email: EMAIL, - apiToken: API_TOKEN, - }, - }, -}; - -const client = new ConfluenceClient(config); -const version2Client = new Version2Client(config); - -test.serial('should create space', async t => { - const space = await client.space.createSpace({ - name: 'Auto testing software', - key: 'AUTOMATED', - }); - - t.truthy(!!space); - t.is(space.key, 'AUTOMATED'); - t.is(space.name, 'Auto testing software'); -}); - -test.serial('should create content', async t => { - const content = await version2Client.page.createPage({ - title: 'Test page', - space: { - key: 'AUTOMATED', - }, - type: 'page', - body: { - view: { - value: '', - representation: 'view', - }, - }, - }); - - createdContentId = content.id; - - t.truthy(!!content); - t.is(content.type, 'page'); - t.is(content.space?.key, 'AUTOMATED'); -}); - -test.serial('should add attachment', async t => { - const file = await fs.readFileSync('./tests/unit/clients/serverClient.test.ts'); - - const attachment = await version2Client.contentAttachments.createAttachments({ - id: createdContentId, - attachments: { - file, - filename: 'serverApiClient.test.ts', - minorEdit: true, - comment: 'heh comment', - contentType: 'application/javascript', - }, - }); - - t.truthy(!!attachment); - t.truthy(attachment.results.length === 1); - t.is(attachment.results[0].title, 'serverApiClient.test.ts'); - t.is(attachment.results[0].metadata.mediaType, 'application/javascript'); - t.is(attachment.results[0].version.minorEdit, true); -}); - -test.serial('should get attachments', async t => { - const attachments = await version2Client.contentAttachments.getAttachments({ - id: createdContentId, - }); - - t.truthy(!!attachments); - t.truthy(attachments.results.length === 1); - t.is(attachments.results[0].title, 'serverApiClient.test.ts'); - t.is(attachments.results[0].metadata.mediaType, 'application/javascript'); -}); - -test.serial('should update attachment', async t => { - const attachments = await version2Client.contentAttachments.createOrUpdateAttachments({ - id: createdContentId, - attachments: { - file: 'testFileContent', - filename: 'serverApiClient.test.ts', - minorEdit: false, - comment: 'some changes', - contentType: 'application/javascript', - }, - }); - - createdAttachmentId = attachments.results[0].id; - - t.truthy(!!attachments); - t.truthy(attachments.results.length === 1); - t.is(attachments.results[0].title, 'serverApiClient.test.ts'); - t.is(attachments.results[0].metadata.mediaType, 'application/javascript'); - t.is(attachments.results[0].version.minorEdit, false); - t.is(attachments.results[0].version.number, 2); - t.is(attachments.results[0].version.message, 'some changes'); -}); - -test.serial('should update attachment properties', async t => { - const attachment = await version2Client.contentAttachments.updateAttachmentProperties({ - id: createdContentId, - attachmentId: createdAttachmentId, - update: { - id: createdAttachmentId, - version: { - number: 2, - }, - title: 'serverApiClient.test.ts', - type: 'attachment', - status: 'current', - metadata: { - mediaType: 'text/plain', - }, - }, - }); - - t.truthy(!!attachment); - t.is(attachment.title, 'serverApiClient.test.ts'); - t.is(attachment.metadata.mediaType, 'text/plain'); - t.is(attachment.version.minorEdit, false); - t.is(attachment.version.number, 2); - t.is(attachment.version.message, 'some changes'); -}); - -test.serial('should update content attachment data', async t => { - const attachment = await version2Client.contentAttachments.updateAttachmentData({ - id: createdContentId, - attachmentId: createdAttachmentId, - attachment: { - file: 'testFileContent', - filename: 'serverApiClient.test.ts', - minorEdit: true, - }, - }); - - t.truthy(!!attachment); - t.is(attachment.title, 'serverApiClient.test.ts'); - t.is(attachment.metadata.mediaType, 'video/mp2t'); - t.is(attachment.version.minorEdit, true); - t.is(attachment.version.number, 3); - t.is(attachment.version.message, undefined); -}); - -test.serial('should download content attachment', async t => { - const attachment = await version2Client.contentAttachments.downloadAttachment({ - id: createdContentId, - attachmentId: createdAttachmentId, - }); - - t.truthy(!!attachment); - t.is(attachment.toString(), 'testFileContent'); -}); - -test.serial('should remove content', async t => { - await version2Client.content.deleteContent({ - id: createdContentId, - }); - - t.pass(); -}); - -test.serial('should remove space', async t => { - const removedSpace = await version2Client.space.deleteSpace({ - spaceKey: 'AUTOMATED', - }); - - t.truthy(!!removedSpace); -}); From ff52483e52c80f0d2684f2aca5adb069066595d6 Mon Sep 17 00:00:00 2001 From: Vladislav Tupikin Date: Sun, 21 May 2023 22:24:28 +0400 Subject: [PATCH 10/44] #35 `apiPrefix` as configuration option (#48) * #35 `apiPrefix` now configurable * #35 serverClient prefix setup --- .github/FUNDING.yml | 1 - .github/workflows/ci.yaml | 2 +- package.json | 4 ++-- src/clients/baseClient.ts | 7 +++---- src/clients/confluenceClient.ts | 8 ++++++++ src/clients/serverClient.ts | 8 +++++++- src/clients/version2Client.ts | 9 +++++++++ src/config.ts | 13 ++++++++++++- src/utilityTypes.ts | 2 ++ .../legacyConflueceClient.test.ts} | 0 10 files changed, 44 insertions(+), 10 deletions(-) delete mode 100644 .github/FUNDING.yml rename tests/{e2e/e2e.test.ts => integration/legacyConflueceClient.test.ts} (100%) diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml deleted file mode 100644 index ab518073..00000000 --- a/.github/FUNDING.yml +++ /dev/null @@ -1 +0,0 @@ -patreon: vladislav_tupikin diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index de93ecb0..c356d809 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -24,7 +24,7 @@ jobs: echo API_TOKEN=${{ secrets.API_TOKEN }} >> .env - run: npm run build - run: npm run test:unit - - run: npm run test:e2e + - run: npm run test:integration - run: npm run lint env: CI: true diff --git a/package.json b/package.json index 475b5d4b..c3e383d7 100644 --- a/package.json +++ b/package.json @@ -11,13 +11,13 @@ "scripts": { "build": "tsc", "prepublishOnly": "npm run build && npm run test && npm run lint", - "test": "npm run test:unit && npm run test:e2e", "prettier": "prettier --write src", "doc": "typedoc --name \"Confluence.js - Cloud and Server API library\" --out docs ./src/index.ts --plugin typedoc-plugin-extras --footerDate --footerTime --footerTypedocVersion --favicon https://svgshare.com/i/bVi.svg", "lint": "eslint src tests --ext .ts", "lint:fix": "npm run lint -- --fix", + "test": "npm run test:unit && npm run test:integration", "test:unit": "ava tests/unit", - "test:e2e": "ava --timeout=2m --fail-fast --no-worker-threads -c 1 -s tests/e2e/**/*.test.ts" + "test:integration": "ava --timeout=2m --fail-fast --no-worker-threads -c 1 -s tests/integration" }, "ava": { "extensions": [ diff --git a/src/clients/baseClient.ts b/src/clients/baseClient.ts index 3885a20f..6f5e8126 100644 --- a/src/clients/baseClient.ts +++ b/src/clients/baseClient.ts @@ -3,6 +3,7 @@ import type { Callback } from '../callback'; import type { Client } from './client'; import type { Config } from '../config'; import type { RequestConfig } from '../requestConfig'; +import { UtilityTypes } from '../utilityTypes'; import axios, { AxiosInstance } from 'axios'; const ATLASSIAN_TOKEN_CHECK_FLAG = 'X-Atlassian-Token'; @@ -11,9 +12,7 @@ const ATLASSIAN_TOKEN_CHECK_NOCHECK_VALUE = 'no-check'; export class BaseClient implements Client { #instance: AxiosInstance | undefined; - protected urlSuffix = '/wiki/rest/'; - - constructor(protected readonly config: Config) {} + constructor(protected readonly config: UtilityTypes.MarkRequired) {} protected paramSerializer(parameters: Record): string { const parts: string[] = []; @@ -72,7 +71,7 @@ export class BaseClient implements Client { this.#instance = axios.create({ paramsSerializer: this.paramSerializer.bind(this), ...this.config.baseRequestConfig, - baseURL: `${this.config.host}${this.urlSuffix}`, + baseURL: `${this.config.host}${this.config.apiPrefix}`, headers: this.removeUndefinedProperties({ [ATLASSIAN_TOKEN_CHECK_FLAG]: this.config.noCheckAtlassianToken ? ATLASSIAN_TOKEN_CHECK_NOCHECK_VALUE diff --git a/src/clients/confluenceClient.ts b/src/clients/confluenceClient.ts index a65a5de6..00893961 100644 --- a/src/clients/confluenceClient.ts +++ b/src/clients/confluenceClient.ts @@ -1,4 +1,5 @@ import { BaseClient } from './baseClient'; +import { Config } from '../config'; import { Analytics, Audit, @@ -35,6 +36,13 @@ import { } from '../api'; export class ConfluenceClient extends BaseClient { + constructor(config: Config) { + super({ + ...config, + apiPrefix: config.apiPrefix ?? '/wiki/rest', + }); + } + analytics = new Analytics(this); audit = new Audit(this); content = new Content(this); diff --git a/src/clients/serverClient.ts b/src/clients/serverClient.ts index 1d308577..24ff50bf 100644 --- a/src/clients/serverClient.ts +++ b/src/clients/serverClient.ts @@ -1,8 +1,14 @@ import { BaseClient } from './baseClient'; +import { Config } from '../config'; import { Audit, Content, ContentBody, Group, LongTask, Search, Space, User } from '../server'; export class ServerClient extends BaseClient { - urlSuffix = '/'; + constructor(config: Config) { + super({ + ...config, + apiPrefix: config.apiPrefix ?? '/', + }); + } audit = new Audit(this); content = new Content(this); diff --git a/src/clients/version2Client.ts b/src/clients/version2Client.ts index 323da246..4c917e9e 100644 --- a/src/clients/version2Client.ts +++ b/src/clients/version2Client.ts @@ -1,4 +1,5 @@ import { BaseClient } from './baseClient'; +import { Config } from '../config'; import { Attachment, BlogPost, @@ -17,6 +18,14 @@ import { } from '../version2'; export class Version2Client extends BaseClient { + constructor(config: Config) { + super({ + ...config, + newErrorHandling: true, + apiPrefix: config.apiPrefix ?? '/wiki/api/v2', + }); + } + attachment = new Attachment(this); blogPost = new BlogPost(this); children = new Children(this); diff --git a/src/config.ts b/src/config.ts index 6a9995b4..c360e176 100644 --- a/src/config.ts +++ b/src/config.ts @@ -11,8 +11,19 @@ export interface Config { telemetry?: Config.Telemetry; /** Adds `'X-Atlassian-Token': 'no-check'` to each request header */ noCheckAtlassianToken?: boolean; - /** Enable new API error handling. `false` by default. */ + /** + * Enable new API error handling. For "ConfluenceClient" `false` by default. + * + * For "Version2Client" enabled by default. + */ newErrorHandling?: boolean; + /** + * Prefix for all API routes. + * + * - For "ConfluenceCloud" by default it is "/wiki/rest" + * - For "Version2Client" by default it is "/wiki/api/v2" + */ + apiPrefix?: string; } export namespace Config { diff --git a/src/utilityTypes.ts b/src/utilityTypes.ts index 6fd5216e..224feacc 100644 --- a/src/utilityTypes.ts +++ b/src/utilityTypes.ts @@ -10,4 +10,6 @@ export namespace UtilityTypes { /** Get the XOR type which could make 4 types exclude each other */ export type XOR4 = XOR>; + + export type MarkRequired = Pick> & Required>; } diff --git a/tests/e2e/e2e.test.ts b/tests/integration/legacyConflueceClient.test.ts similarity index 100% rename from tests/e2e/e2e.test.ts rename to tests/integration/legacyConflueceClient.test.ts From b8efec9cd2a828bd6990df3b1137513535cf7b94 Mon Sep 17 00:00:00 2001 From: Vladislav Tupikin Date: Mon, 22 May 2023 00:00:18 +0400 Subject: [PATCH 11/44] #45 `results` and `_links` wrapped to Pagination generic (#49) --- src/version2/attachment.ts | 24 ++++----- src/version2/blogPost.ts | 18 +++---- src/version2/children.ts | 12 ++--- src/version2/comment.ts | 36 ++++++------- src/version2/contentProperties.ts | 30 +++++------ src/version2/customContent.ts | 24 ++++----- src/version2/label.ts | 24 ++++----- src/version2/models/attachment.ts | 6 --- ...PostCommentModel.ts => blogPostComment.ts} | 2 +- ...mmentModel.ts => blogPostInlineComment.ts} | 2 +- ...drenCommentModel.ts => childrenComment.ts} | 2 +- .../models/getAttachmentContentProperties.ts | 12 ----- src/version2/models/getAttachmentLabels.ts | 12 ----- src/version2/models/getAttachmentVersions.ts | 12 ----- .../models/getBlogPostFooterComments.ts | 12 ----- .../models/getBlogPostInlineComments.ts | 12 ----- src/version2/models/getBlogPostLabels.ts | 12 ----- src/version2/models/getBlogPostVersions.ts | 12 ----- src/version2/models/getBlogPosts.ts | 12 ----- src/version2/models/getBlogPostsInSpace.ts | 12 ----- src/version2/models/getBlogpostAttachments.ts | 12 ----- .../models/getBlogpostContentProperties.ts | 12 ----- src/version2/models/getChildCustomContent.ts | 12 ----- src/version2/models/getChildPages.ts | 12 ----- .../models/getCommentContentProperties.ts | 12 ----- .../models/getCustomContentAttachments.ts | 12 ----- src/version2/models/getCustomContentByType.ts | 12 ----- .../getCustomContentByTypeInBlogPost.ts | 12 ----- .../models/getCustomContentByTypeInPage.ts | 12 ----- .../models/getCustomContentByTypeInSpace.ts | 12 ----- .../getCustomContentContentProperties.ts | 12 ----- src/version2/models/getCustomContentLabels.ts | 12 ----- .../models/getCustomContentVersions.ts | 12 ----- .../models/getFooterCommentChildren.ts | 12 ----- .../models/getFooterCommentVersions.ts | 12 ----- .../models/getInlineCommentChildren.ts | 12 ----- .../models/getInlineCommentVersions.ts | 12 ----- src/version2/models/getLabelAttachments.ts | 12 ----- src/version2/models/getLabelBlogPosts.ts | 12 ----- src/version2/models/getLabelPages.ts | 12 ----- src/version2/models/getPageAttachments.ts | 12 ----- .../models/getPageContentProperties.ts | 12 ----- src/version2/models/getPageFooterComments.ts | 12 ----- src/version2/models/getPageInlineComments.ts | 12 ----- src/version2/models/getPageLabels.ts | 12 ----- src/version2/models/getPageVersions.ts | 12 ----- src/version2/models/getPages.ts | 12 ----- src/version2/models/getPagesInSpace.ts | 12 ----- src/version2/models/getSpaceProperties.ts | 12 ----- src/version2/models/getSpaces.ts | 12 ----- src/version2/models/getTasks.ts | 12 ----- src/version2/models/index.ts | 53 +++---------------- ...ldrenModel.ts => inlineCommentChildren.ts} | 2 +- src/version2/models/links.ts | 7 +++ .../{pageCommentModel.ts => pageComment.ts} | 2 +- ...neCommentModel.ts => pageInlineComment.ts} | 2 +- src/version2/models/pagination.ts | 6 +++ src/version2/page.ts | 18 +++---- src/version2/space.ts | 6 +-- src/version2/spaceProperties.ts | 6 +-- src/version2/task.ts | 6 +-- src/version2/version.ts | 36 ++++++------- 62 files changed, 146 insertions(+), 658 deletions(-) rename src/version2/models/{blogPostCommentModel.ts => blogPostComment.ts} (91%) rename src/version2/models/{blogPostInlineCommentModel.ts => blogPostInlineComment.ts} (92%) rename src/version2/models/{childrenCommentModel.ts => childrenComment.ts} (89%) delete mode 100644 src/version2/models/getAttachmentContentProperties.ts delete mode 100644 src/version2/models/getAttachmentLabels.ts delete mode 100644 src/version2/models/getAttachmentVersions.ts delete mode 100644 src/version2/models/getBlogPostFooterComments.ts delete mode 100644 src/version2/models/getBlogPostInlineComments.ts delete mode 100644 src/version2/models/getBlogPostLabels.ts delete mode 100644 src/version2/models/getBlogPostVersions.ts delete mode 100644 src/version2/models/getBlogPosts.ts delete mode 100644 src/version2/models/getBlogPostsInSpace.ts delete mode 100644 src/version2/models/getBlogpostAttachments.ts delete mode 100644 src/version2/models/getBlogpostContentProperties.ts delete mode 100644 src/version2/models/getChildCustomContent.ts delete mode 100644 src/version2/models/getChildPages.ts delete mode 100644 src/version2/models/getCommentContentProperties.ts delete mode 100644 src/version2/models/getCustomContentAttachments.ts delete mode 100644 src/version2/models/getCustomContentByType.ts delete mode 100644 src/version2/models/getCustomContentByTypeInBlogPost.ts delete mode 100644 src/version2/models/getCustomContentByTypeInPage.ts delete mode 100644 src/version2/models/getCustomContentByTypeInSpace.ts delete mode 100644 src/version2/models/getCustomContentContentProperties.ts delete mode 100644 src/version2/models/getCustomContentLabels.ts delete mode 100644 src/version2/models/getCustomContentVersions.ts delete mode 100644 src/version2/models/getFooterCommentChildren.ts delete mode 100644 src/version2/models/getFooterCommentVersions.ts delete mode 100644 src/version2/models/getInlineCommentChildren.ts delete mode 100644 src/version2/models/getInlineCommentVersions.ts delete mode 100644 src/version2/models/getLabelAttachments.ts delete mode 100644 src/version2/models/getLabelBlogPosts.ts delete mode 100644 src/version2/models/getLabelPages.ts delete mode 100644 src/version2/models/getPageAttachments.ts delete mode 100644 src/version2/models/getPageContentProperties.ts delete mode 100644 src/version2/models/getPageFooterComments.ts delete mode 100644 src/version2/models/getPageInlineComments.ts delete mode 100644 src/version2/models/getPageLabels.ts delete mode 100644 src/version2/models/getPageVersions.ts delete mode 100644 src/version2/models/getPages.ts delete mode 100644 src/version2/models/getPagesInSpace.ts delete mode 100644 src/version2/models/getSpaceProperties.ts delete mode 100644 src/version2/models/getSpaces.ts delete mode 100644 src/version2/models/getTasks.ts rename src/version2/models/{inlineCommentChildrenModel.ts => inlineCommentChildren.ts} (93%) create mode 100644 src/version2/models/links.ts rename src/version2/models/{pageCommentModel.ts => pageComment.ts} (90%) rename src/version2/models/{pageInlineCommentModel.ts => pageInlineComment.ts} (93%) create mode 100644 src/version2/models/pagination.ts diff --git a/src/version2/attachment.ts b/src/version2/attachment.ts index bd2720c6..7cd761c0 100644 --- a/src/version2/attachment.ts +++ b/src/version2/attachment.ts @@ -50,7 +50,7 @@ export class Attachment { * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the blog * post and its corresponding space. */ - async getBlogpostAttachments( + async getBlogpostAttachments>( parameters: Parameters.GetBlogpostAttachments, callback: Callback, ): Promise; @@ -61,11 +61,11 @@ export class Attachment { * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the blog * post and its corresponding space. */ - async getBlogpostAttachments( + async getBlogpostAttachments>( parameters: Parameters.GetBlogpostAttachments, callback?: never, ): Promise; - async getBlogpostAttachments( + async getBlogpostAttachments>( parameters: Parameters.GetBlogpostAttachments, callback?: Callback, ): Promise { @@ -92,7 +92,7 @@ export class Attachment { * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the custom * content and its corresponding space. */ - async getCustomContentAttachments( + async getCustomContentAttachments>( parameters: Parameters.GetCustomContentAttachments, callback: Callback, ): Promise; @@ -103,11 +103,11 @@ export class Attachment { * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the custom * content and its corresponding space. */ - async getCustomContentAttachments( + async getCustomContentAttachments>( parameters: Parameters.GetCustomContentAttachments, callback?: never, ): Promise; - async getCustomContentAttachments( + async getCustomContentAttachments>( parameters: Parameters.GetCustomContentAttachments, callback?: Callback, ): Promise { @@ -134,7 +134,7 @@ export class Attachment { * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the attachment and its * corresponding space. */ - async getLabelAttachments( + async getLabelAttachments>( parameters: Parameters.GetLabelAttachments, callback: Callback, ): Promise; @@ -145,11 +145,11 @@ export class Attachment { * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the attachment and its * corresponding space. */ - async getLabelAttachments( + async getLabelAttachments>( parameters: Parameters.GetLabelAttachments, callback?: never, ): Promise; - async getLabelAttachments( + async getLabelAttachments>( parameters: Parameters.GetLabelAttachments, callback?: Callback, ): Promise { @@ -174,7 +174,7 @@ export class Attachment { * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the page * and its corresponding space. */ - async getPageAttachments( + async getPageAttachments>( parameters: Parameters.GetPageAttachments, callback: Callback, ): Promise; @@ -185,11 +185,11 @@ export class Attachment { * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the page * and its corresponding space. */ - async getPageAttachments( + async getPageAttachments>( parameters: Parameters.GetPageAttachments, callback?: never, ): Promise; - async getPageAttachments( + async getPageAttachments>( parameters: Parameters.GetPageAttachments, callback?: Callback, ): Promise { diff --git a/src/version2/blogPost.ts b/src/version2/blogPost.ts index 03908a84..4db36477 100644 --- a/src/version2/blogPost.ts +++ b/src/version2/blogPost.ts @@ -14,7 +14,7 @@ export class BlogPost { * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site * ('Can use' global permission). Only blog posts that the user has permission to view will be returned. */ - async getBlogPosts( + async getBlogPosts>( parameters: Parameters.GetBlogPosts | undefined, callback: Callback, ): Promise; @@ -25,8 +25,8 @@ export class BlogPost { * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site * ('Can use' global permission). Only blog posts that the user has permission to view will be returned. */ - async getBlogPosts(parameters?: Parameters.GetBlogPosts, callback?: never): Promise; - async getBlogPosts( + async getBlogPosts>(parameters?: Parameters.GetBlogPosts, callback?: never): Promise; + async getBlogPosts>( parameters?: Parameters.GetBlogPosts, callback?: Callback, ): Promise { @@ -179,7 +179,7 @@ export class BlogPost { * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the page * and its corresponding space. */ - async getLabelBlogPosts( + async getLabelBlogPosts>( parameters: Parameters.GetLabelBlogPosts, callback: Callback, ): Promise; @@ -190,11 +190,11 @@ export class BlogPost { * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the page * and its corresponding space. */ - async getLabelBlogPosts( + async getLabelBlogPosts>( parameters: Parameters.GetLabelBlogPosts, callback?: never, ): Promise; - async getLabelBlogPosts( + async getLabelBlogPosts>( parameters: Parameters.GetLabelBlogPosts, callback?: Callback, ): Promise { @@ -221,7 +221,7 @@ export class BlogPost { * ('Can use' global permission) and view the space. Only blog posts that the user has permission to view will be * returned. */ - async getBlogPostsInSpace( + async getBlogPostsInSpace>( parameters: Parameters.GetBlogPostsInSpace, callback: Callback, ): Promise; @@ -233,11 +233,11 @@ export class BlogPost { * ('Can use' global permission) and view the space. Only blog posts that the user has permission to view will be * returned. */ - async getBlogPostsInSpace( + async getBlogPostsInSpace>( parameters: Parameters.GetBlogPostsInSpace, callback?: never, ): Promise; - async getBlogPostsInSpace( + async getBlogPostsInSpace>( parameters: Parameters.GetBlogPostsInSpace, callback?: Callback, ): Promise { diff --git a/src/version2/children.ts b/src/version2/children.ts index dfb523cb..525d4f91 100644 --- a/src/version2/children.ts +++ b/src/version2/children.ts @@ -14,7 +14,7 @@ export class Children { * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site * ('Can use' global permission). Only pages that the user has permission to view will be returned. */ - async getChildPages( + async getChildPages>( parameters: Parameters.GetChildPages, callback: Callback, ): Promise; @@ -25,8 +25,8 @@ export class Children { * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site * ('Can use' global permission). Only pages that the user has permission to view will be returned. */ - async getChildPages(parameters: Parameters.GetChildPages, callback?: never): Promise; - async getChildPages( + async getChildPages>(parameters: Parameters.GetChildPages, callback?: never): Promise; + async getChildPages>( parameters: Parameters.GetChildPages, callback?: Callback, ): Promise { @@ -52,7 +52,7 @@ export class Children { * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site * ('Can use' global permission). Only custom content that the user has permission to view will be returned. */ - async getChildCustomContent( + async getChildCustomContent>( parameters: Parameters.GetChildCustomContent, callback: Callback, ): Promise; @@ -64,11 +64,11 @@ export class Children { * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site * ('Can use' global permission). Only custom content that the user has permission to view will be returned. */ - async getChildCustomContent( + async getChildCustomContent>( parameters: Parameters.GetChildCustomContent, callback?: never, ): Promise; - async getChildCustomContent( + async getChildCustomContent>( parameters: Parameters.GetChildCustomContent, callback?: Callback, ): Promise { diff --git a/src/version2/comment.ts b/src/version2/comment.ts index 9c0880e3..1d8b27fd 100644 --- a/src/version2/comment.ts +++ b/src/version2/comment.ts @@ -14,7 +14,7 @@ export class Comment { * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the page * and its corresponding space. */ - async getPageFooterComments( + async getPageFooterComments>( parameters: Parameters.GetPageFooterComments, callback: Callback, ): Promise; @@ -25,11 +25,11 @@ export class Comment { * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the page * and its corresponding space. */ - async getPageFooterComments( + async getPageFooterComments>( parameters: Parameters.GetPageFooterComments, callback?: never, ): Promise; - async getPageFooterComments( + async getPageFooterComments>( parameters: Parameters.GetPageFooterComments, callback?: Callback, ): Promise { @@ -55,7 +55,7 @@ export class Comment { * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the page * and its corresponding space. */ - async getPageInlineComments( + async getPageInlineComments>( parameters: Parameters.GetPageInlineComments, callback: Callback, ): Promise; @@ -66,11 +66,11 @@ export class Comment { * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the page * and its corresponding space. */ - async getPageInlineComments( + async getPageInlineComments>( parameters: Parameters.GetPageInlineComments, callback?: never, ): Promise; - async getPageInlineComments( + async getPageInlineComments>( parameters: Parameters.GetPageInlineComments, callback?: Callback, ): Promise { @@ -97,7 +97,7 @@ export class Comment { * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the blog * post and its corresponding space. */ - async getBlogPostFooterComments( + async getBlogPostFooterComments>( parameters: Parameters.GetBlogPostFooterComments, callback: Callback, ): Promise; @@ -109,11 +109,11 @@ export class Comment { * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the blog * post and its corresponding space. */ - async getBlogPostFooterComments( + async getBlogPostFooterComments>( parameters: Parameters.GetBlogPostFooterComments, callback?: never, ): Promise; - async getBlogPostFooterComments( + async getBlogPostFooterComments>( parameters: Parameters.GetBlogPostFooterComments, callback?: Callback, ): Promise { @@ -140,7 +140,7 @@ export class Comment { * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the blog * post and its corresponding space. */ - async getBlogPostInlineComments( + async getBlogPostInlineComments>( parameters: Parameters.GetBlogPostInlineComments, callback: Callback, ): Promise; @@ -152,11 +152,11 @@ export class Comment { * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the blog * post and its corresponding space. */ - async getBlogPostInlineComments( + async getBlogPostInlineComments>( parameters: Parameters.GetBlogPostInlineComments, callback?: never, ): Promise; - async getBlogPostInlineComments( + async getBlogPostInlineComments>( parameters: Parameters.GetBlogPostInlineComments, callback?: Callback, ): Promise { @@ -328,7 +328,7 @@ export class Comment { * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the page * and its corresponding space. */ - async getFooterCommentChildren( + async getFooterCommentChildren>( parameters: Parameters.GetFooterCommentChildren, callback: Callback, ): Promise; @@ -340,11 +340,11 @@ export class Comment { * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the page * and its corresponding space. */ - async getFooterCommentChildren( + async getFooterCommentChildren>( parameters: Parameters.GetFooterCommentChildren, callback?: never, ): Promise; - async getFooterCommentChildren( + async getFooterCommentChildren>( parameters: Parameters.GetFooterCommentChildren, callback?: Callback, ): Promise { @@ -522,7 +522,7 @@ export class Comment { * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the page * and its corresponding space. */ - async getInlineCommentChildren( + async getInlineCommentChildren>( parameters: Parameters.GetInlineCommentChildren, callback: Callback, ): Promise; @@ -534,11 +534,11 @@ export class Comment { * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the page * and its corresponding space. */ - async getInlineCommentChildren( + async getInlineCommentChildren>( parameters: Parameters.GetInlineCommentChildren, callback?: never, ): Promise; - async getInlineCommentChildren( + async getInlineCommentChildren>( parameters: Parameters.GetInlineCommentChildren, callback?: Callback, ): Promise { diff --git a/src/version2/contentProperties.ts b/src/version2/contentProperties.ts index ea8a8531..311a5a9e 100644 --- a/src/version2/contentProperties.ts +++ b/src/version2/contentProperties.ts @@ -12,7 +12,7 @@ export class ContentProperties { * * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the attachment. */ - async getAttachmentContentProperties( + async getAttachmentContentProperties>( parameters: Parameters.GetAttachmentContentProperties, callback: Callback, ): Promise; @@ -21,11 +21,11 @@ export class ContentProperties { * * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the attachment. */ - async getAttachmentContentProperties( + async getAttachmentContentProperties>( parameters: Parameters.GetAttachmentContentProperties, callback?: never, ): Promise; - async getAttachmentContentProperties( + async getAttachmentContentProperties>( parameters: Parameters.GetAttachmentContentProperties, callback?: Callback, ): Promise { @@ -187,7 +187,7 @@ export class ContentProperties { * * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the blog post. */ - async getBlogpostContentProperties( + async getBlogpostContentProperties>( parameters: Parameters.GetBlogpostContentProperties, callback: Callback, ): Promise; @@ -196,11 +196,11 @@ export class ContentProperties { * * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the blog post. */ - async getBlogpostContentProperties( + async getBlogpostContentProperties>( parameters: Parameters.GetBlogpostContentProperties, callback?: never, ): Promise; - async getBlogpostContentProperties( + async getBlogpostContentProperties>( parameters: Parameters.GetBlogpostContentProperties, callback?: Callback, ): Promise { @@ -362,7 +362,7 @@ export class ContentProperties { * * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the custom content. */ - async getCustomContentContentProperties( + async getCustomContentContentProperties>( parameters: Parameters.GetCustomContentContentProperties, callback: Callback, ): Promise; @@ -371,11 +371,11 @@ export class ContentProperties { * * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the custom content. */ - async getCustomContentContentProperties( + async getCustomContentContentProperties>( parameters: Parameters.GetCustomContentContentProperties, callback?: never, ): Promise; - async getCustomContentContentProperties( + async getCustomContentContentProperties>( parameters: Parameters.GetCustomContentContentProperties, callback?: Callback, ): Promise { @@ -537,7 +537,7 @@ export class ContentProperties { * * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the page. */ - async getPageContentProperties( + async getPageContentProperties>( parameters: Parameters.GetPageContentProperties, callback: Callback, ): Promise; @@ -546,11 +546,11 @@ export class ContentProperties { * * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the page. */ - async getPageContentProperties( + async getPageContentProperties>( parameters: Parameters.GetPageContentProperties, callback?: never, ): Promise; - async getPageContentProperties( + async getPageContentProperties>( parameters: Parameters.GetPageContentProperties, callback?: Callback, ): Promise { @@ -709,7 +709,7 @@ export class ContentProperties { * * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the comment. */ - async getCommentContentProperties( + async getCommentContentProperties>( parameters: Parameters.GetCommentContentProperties, callback: Callback, ): Promise; @@ -718,11 +718,11 @@ export class ContentProperties { * * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the comment. */ - async getCommentContentProperties( + async getCommentContentProperties>( parameters: Parameters.GetCommentContentProperties, callback?: never, ): Promise; - async getCommentContentProperties( + async getCommentContentProperties>( parameters: Parameters.GetCommentContentProperties, callback?: Callback, ): Promise { diff --git a/src/version2/customContent.ts b/src/version2/customContent.ts index 9d32e4f3..45e44e71 100644 --- a/src/version2/customContent.ts +++ b/src/version2/customContent.ts @@ -15,7 +15,7 @@ export class CustomContent { * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the custom content, the * container of the custom content (blog post), and the corresponding space. */ - async getCustomContentByTypeInBlogPost( + async getCustomContentByTypeInBlogPost>( parameters: Parameters.GetCustomContentByTypeInBlogPost, callback: Callback, ): Promise; @@ -27,11 +27,11 @@ export class CustomContent { * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the custom content, the * container of the custom content (blog post), and the corresponding space. */ - async getCustomContentByTypeInBlogPost( + async getCustomContentByTypeInBlogPost>( parameters: Parameters.GetCustomContentByTypeInBlogPost, callback?: never, ): Promise; - async getCustomContentByTypeInBlogPost( + async getCustomContentByTypeInBlogPost>( parameters: Parameters.GetCustomContentByTypeInBlogPost, callback?: Callback, ): Promise { @@ -57,7 +57,7 @@ export class CustomContent { * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the custom content, the * container of the custom content, and the corresponding space (if different from the container). */ - async getCustomContentByType( + async getCustomContentByType>( parameters: Parameters.GetCustomContentByType, callback: Callback, ): Promise; @@ -68,11 +68,11 @@ export class CustomContent { * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the custom content, the * container of the custom content, and the corresponding space (if different from the container). */ - async getCustomContentByType( + async getCustomContentByType>( parameters: Parameters.GetCustomContentByType, callback?: never, ): Promise; - async getCustomContentByType( + async getCustomContentByType>( parameters: Parameters.GetCustomContentByType, callback?: Callback, ): Promise { @@ -237,7 +237,7 @@ export class CustomContent { * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the custom content, the * container of the custom content (page), and the corresponding space. */ - async getCustomContentByTypeInPage( + async getCustomContentByTypeInPage>( parameters: Parameters.GetCustomContentByTypeInPage, callback: Callback, ): Promise; @@ -249,11 +249,11 @@ export class CustomContent { * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the custom content, the * container of the custom content (page), and the corresponding space. */ - async getCustomContentByTypeInPage( + async getCustomContentByTypeInPage>( parameters: Parameters.GetCustomContentByTypeInPage, callback?: never, ): Promise; - async getCustomContentByTypeInPage( + async getCustomContentByTypeInPage>( parameters: Parameters.GetCustomContentByTypeInPage, callback?: Callback, ): Promise { @@ -280,7 +280,7 @@ export class CustomContent { * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the custom content and * the corresponding space. */ - async getCustomContentByTypeInSpace( + async getCustomContentByTypeInSpace>( parameters: Parameters.GetCustomContentByTypeInSpace, callback: Callback, ): Promise; @@ -292,11 +292,11 @@ export class CustomContent { * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the custom content and * the corresponding space. */ - async getCustomContentByTypeInSpace( + async getCustomContentByTypeInSpace>( parameters: Parameters.GetCustomContentByTypeInSpace, callback?: never, ): Promise; - async getCustomContentByTypeInSpace( + async getCustomContentByTypeInSpace>( parameters: Parameters.GetCustomContentByTypeInSpace, callback?: Callback, ): Promise { diff --git a/src/version2/label.ts b/src/version2/label.ts index 6c8fe34e..bfddd204 100644 --- a/src/version2/label.ts +++ b/src/version2/label.ts @@ -14,7 +14,7 @@ export class Label { * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the parent content of the * attachment and its corresponding space. */ - async getAttachmentLabels( + async getAttachmentLabels>( parameters: Parameters.GetAttachmentLabels, callback: Callback, ): Promise; @@ -25,11 +25,11 @@ export class Label { * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the parent content of the * attachment and its corresponding space. */ - async getAttachmentLabels( + async getAttachmentLabels>( parameters: Parameters.GetAttachmentLabels, callback?: never, ): Promise; - async getAttachmentLabels( + async getAttachmentLabels>( parameters: Parameters.GetAttachmentLabels, callback?: Callback, ): Promise { @@ -55,7 +55,7 @@ export class Label { * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the blog * post and its corresponding space. */ - async getBlogPostLabels( + async getBlogPostLabels>( parameters: Parameters.GetBlogPostLabels, callback: Callback, ): Promise; @@ -66,11 +66,11 @@ export class Label { * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the blog * post and its corresponding space. */ - async getBlogPostLabels( + async getBlogPostLabels>( parameters: Parameters.GetBlogPostLabels, callback?: never, ): Promise; - async getBlogPostLabels( + async getBlogPostLabels>( parameters: Parameters.GetBlogPostLabels, callback?: Callback, ): Promise { @@ -97,7 +97,7 @@ export class Label { * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the custom content and * its corresponding space. */ - async getCustomContentLabels( + async getCustomContentLabels>( parameters: Parameters.GetCustomContentLabels, callback: Callback, ): Promise; @@ -109,11 +109,11 @@ export class Label { * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the custom content and * its corresponding space. */ - async getCustomContentLabels( + async getCustomContentLabels>( parameters: Parameters.GetCustomContentLabels, callback?: never, ): Promise; - async getCustomContentLabels( + async getCustomContentLabels>( parameters: Parameters.GetCustomContentLabels, callback?: Callback, ): Promise { @@ -139,7 +139,7 @@ export class Label { * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the page * and its corresponding space. */ - async getPageLabels( + async getPageLabels>( parameters: Parameters.GetPageLabels, callback: Callback, ): Promise; @@ -150,8 +150,8 @@ export class Label { * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the page * and its corresponding space. */ - async getPageLabels(parameters: Parameters.GetPageLabels, callback?: never): Promise; - async getPageLabels( + async getPageLabels>(parameters: Parameters.GetPageLabels, callback?: never): Promise; + async getPageLabels>( parameters: Parameters.GetPageLabels, callback?: Callback, ): Promise { diff --git a/src/version2/models/attachment.ts b/src/version2/models/attachment.ts index 64ca4842..96bb5b2a 100644 --- a/src/version2/models/attachment.ts +++ b/src/version2/models/attachment.ts @@ -11,24 +11,18 @@ export interface Attachment { * ID of the containing page. * * Note: This is only returned if the attachment has a container that is a page. - * - */ pageId?: {}; /** * ID of the containing blog post. * * Note: This is only returned if the attachment has a container that is a blog post. - * - */ blogPostId?: {}; /** * ID of the containing custom content. * * Note: This is only returned if the attachment has a container that is custom content. - * - */ customContentId?: {}; /** Media Type for the attachment. */ diff --git a/src/version2/models/blogPostCommentModel.ts b/src/version2/models/blogPostComment.ts similarity index 91% rename from src/version2/models/blogPostCommentModel.ts rename to src/version2/models/blogPostComment.ts index 4b67318c..29dfcb6f 100644 --- a/src/version2/models/blogPostCommentModel.ts +++ b/src/version2/models/blogPostComment.ts @@ -2,7 +2,7 @@ import { Body } from './body'; import { ContentStatus } from './contentStatus'; import { Version } from './version'; -export interface BlogPostCommentModel { +export interface BlogPostComment { /** ID of the comment. */ id?: {}; status?: ContentStatus; diff --git a/src/version2/models/blogPostInlineCommentModel.ts b/src/version2/models/blogPostInlineComment.ts similarity index 92% rename from src/version2/models/blogPostInlineCommentModel.ts rename to src/version2/models/blogPostInlineComment.ts index e1257088..ec9276c3 100644 --- a/src/version2/models/blogPostInlineCommentModel.ts +++ b/src/version2/models/blogPostInlineComment.ts @@ -4,7 +4,7 @@ import { InlineCommentProperties } from './inlineCommentProperties'; import { InlineCommentResolutionStatus } from './inlineCommentResolutionStatus'; import { Version } from './version'; -export interface BlogPostInlineCommentModel { +export interface BlogPostInlineComment { /** ID of the comment. */ id?: {}; status?: ContentStatus; diff --git a/src/version2/models/childrenCommentModel.ts b/src/version2/models/childrenComment.ts similarity index 89% rename from src/version2/models/childrenCommentModel.ts rename to src/version2/models/childrenComment.ts index f1f7f057..62568604 100644 --- a/src/version2/models/childrenCommentModel.ts +++ b/src/version2/models/childrenComment.ts @@ -2,7 +2,7 @@ import { Body } from './body'; import { ContentStatus } from './contentStatus'; import { Version } from './version'; -export interface ChildrenCommentModel { +export interface ChildrenComment { /** ID of the comment. */ id?: {}; status?: ContentStatus; diff --git a/src/version2/models/getAttachmentContentProperties.ts b/src/version2/models/getAttachmentContentProperties.ts deleted file mode 100644 index 72d12980..00000000 --- a/src/version2/models/getAttachmentContentProperties.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { ContentProperty } from './contentProperty'; - -export interface GetAttachmentContentProperties { - results: ContentProperty[]; - _links: { - /** - * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This - * property will not be present if there is no additional data available. - */ - next?: string; - }; -} diff --git a/src/version2/models/getAttachmentLabels.ts b/src/version2/models/getAttachmentLabels.ts deleted file mode 100644 index eb51a9d8..00000000 --- a/src/version2/models/getAttachmentLabels.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { Label } from './label'; - -export interface GetAttachmentLabels { - results: Label[]; - _links: { - /** - * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This - * property will not be present if there is no additional data available. - */ - next?: string; - }; -} diff --git a/src/version2/models/getAttachmentVersions.ts b/src/version2/models/getAttachmentVersions.ts deleted file mode 100644 index 03ae354e..00000000 --- a/src/version2/models/getAttachmentVersions.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { AttachmentVersion } from './attachmentVersion'; - -export interface GetAttachmentVersions { - results: AttachmentVersion[]; - _links: { - /** - * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This - * property will not be present if there is no additional data available. - */ - next?: string; - }; -} diff --git a/src/version2/models/getBlogPostFooterComments.ts b/src/version2/models/getBlogPostFooterComments.ts deleted file mode 100644 index 1c1b95dc..00000000 --- a/src/version2/models/getBlogPostFooterComments.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { BlogPostCommentModel } from './blogPostCommentModel'; - -export interface GetBlogPostFooterComments { - results: BlogPostCommentModel[]; - _links: { - /** - * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This - * property will not be present if there is no additional data available. - */ - next?: string; - }; -} diff --git a/src/version2/models/getBlogPostInlineComments.ts b/src/version2/models/getBlogPostInlineComments.ts deleted file mode 100644 index 9448954a..00000000 --- a/src/version2/models/getBlogPostInlineComments.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { BlogPostInlineCommentModel } from './blogPostInlineCommentModel'; - -export interface GetBlogPostInlineComments { - results: BlogPostInlineCommentModel[]; - _links: { - /** - * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This - * property will not be present if there is no additional data available. - */ - next?: string; - }; -} diff --git a/src/version2/models/getBlogPostLabels.ts b/src/version2/models/getBlogPostLabels.ts deleted file mode 100644 index a4ac754d..00000000 --- a/src/version2/models/getBlogPostLabels.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { Label } from './label'; - -export interface GetBlogPostLabels { - results: Label[]; - _links: { - /** - * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This - * property will not be present if there is no additional data available. - */ - next?: string; - }; -} diff --git a/src/version2/models/getBlogPostVersions.ts b/src/version2/models/getBlogPostVersions.ts deleted file mode 100644 index 8d1e25eb..00000000 --- a/src/version2/models/getBlogPostVersions.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { BlogPostVersion } from './blogPostVersion'; - -export interface GetBlogPostVersions { - results: BlogPostVersion[]; - _links: { - /** - * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This - * property will not be present if there is no additional data available. - */ - next?: string; - }; -} diff --git a/src/version2/models/getBlogPosts.ts b/src/version2/models/getBlogPosts.ts deleted file mode 100644 index 27746d0b..00000000 --- a/src/version2/models/getBlogPosts.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { BlogPost } from './blogPost'; - -export interface GetBlogPosts { - results: BlogPost[]; - _links: { - /** - * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This - * property will not be present if there is no additional data available. - */ - next?: string; - }; -} diff --git a/src/version2/models/getBlogPostsInSpace.ts b/src/version2/models/getBlogPostsInSpace.ts deleted file mode 100644 index 597412f0..00000000 --- a/src/version2/models/getBlogPostsInSpace.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { BlogPost } from './blogPost'; - -export interface GetBlogPostsInSpace { - results: BlogPost[]; - _links: { - /** - * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This - * property will not be present if there is no additional data available. - */ - next?: string; - }; -} diff --git a/src/version2/models/getBlogpostAttachments.ts b/src/version2/models/getBlogpostAttachments.ts deleted file mode 100644 index 4e93c362..00000000 --- a/src/version2/models/getBlogpostAttachments.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { Attachment } from './attachment'; - -export interface GetBlogpostAttachments { - results: Attachment[]; - _links: { - /** - * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This - * property will not be present if there is no additional data available. - */ - next?: string; - }; -} diff --git a/src/version2/models/getBlogpostContentProperties.ts b/src/version2/models/getBlogpostContentProperties.ts deleted file mode 100644 index aa2ea104..00000000 --- a/src/version2/models/getBlogpostContentProperties.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { ContentProperty } from './contentProperty'; - -export interface GetBlogpostContentProperties { - results: ContentProperty[]; - _links: { - /** - * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This - * property will not be present if there is no additional data available. - */ - next?: string; - }; -} diff --git a/src/version2/models/getChildCustomContent.ts b/src/version2/models/getChildCustomContent.ts deleted file mode 100644 index 2920a085..00000000 --- a/src/version2/models/getChildCustomContent.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { ChildCustomContent } from './childCustomContent'; - -export interface GetChildCustomContent { - results: ChildCustomContent[]; - _links: { - /** - * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This - * property will not be present if there is no additional data available. - */ - next?: string; - }; -} diff --git a/src/version2/models/getChildPages.ts b/src/version2/models/getChildPages.ts deleted file mode 100644 index d777ebf5..00000000 --- a/src/version2/models/getChildPages.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { ChildPage } from './childPage'; - -export interface GetChildPages { - results: ChildPage[]; - _links: { - /** - * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This - * property will not be present if there is no additional data available. - */ - next?: string; - }; -} diff --git a/src/version2/models/getCommentContentProperties.ts b/src/version2/models/getCommentContentProperties.ts deleted file mode 100644 index 40f91655..00000000 --- a/src/version2/models/getCommentContentProperties.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { ContentProperty } from './contentProperty'; - -export interface GetCommentContentProperties { - results: ContentProperty[]; - _links: { - /** - * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This - * property will not be present if there is no additional data available. - */ - next?: string; - }; -} diff --git a/src/version2/models/getCustomContentAttachments.ts b/src/version2/models/getCustomContentAttachments.ts deleted file mode 100644 index c84d7afd..00000000 --- a/src/version2/models/getCustomContentAttachments.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { Attachment } from './attachment'; - -export interface GetCustomContentAttachments { - results: Attachment[]; - _links: { - /** - * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This - * property will not be present if there is no additional data available. - */ - next?: string; - }; -} diff --git a/src/version2/models/getCustomContentByType.ts b/src/version2/models/getCustomContentByType.ts deleted file mode 100644 index fa2a7609..00000000 --- a/src/version2/models/getCustomContentByType.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { CustomContent } from './customContent'; - -export interface GetCustomContentByType { - results: CustomContent[]; - _links: { - /** - * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This - * property will not be present if there is no additional data available. - */ - next?: string; - }; -} diff --git a/src/version2/models/getCustomContentByTypeInBlogPost.ts b/src/version2/models/getCustomContentByTypeInBlogPost.ts deleted file mode 100644 index f44c3821..00000000 --- a/src/version2/models/getCustomContentByTypeInBlogPost.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { CustomContent } from './customContent'; - -export interface GetCustomContentByTypeInBlogPost { - results: CustomContent[]; - _links: { - /** - * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This - * property will not be present if there is no additional data available. - */ - next?: string; - }; -} diff --git a/src/version2/models/getCustomContentByTypeInPage.ts b/src/version2/models/getCustomContentByTypeInPage.ts deleted file mode 100644 index 739d88be..00000000 --- a/src/version2/models/getCustomContentByTypeInPage.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { CustomContent } from './customContent'; - -export interface GetCustomContentByTypeInPage { - results: CustomContent[]; - _links: { - /** - * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This - * property will not be present if there is no additional data available. - */ - next?: string; - }; -} diff --git a/src/version2/models/getCustomContentByTypeInSpace.ts b/src/version2/models/getCustomContentByTypeInSpace.ts deleted file mode 100644 index d40d5398..00000000 --- a/src/version2/models/getCustomContentByTypeInSpace.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { CustomContent } from './customContent'; - -export interface GetCustomContentByTypeInSpace { - results: CustomContent[]; - _links: { - /** - * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This - * property will not be present if there is no additional data available. - */ - next?: string; - }; -} diff --git a/src/version2/models/getCustomContentContentProperties.ts b/src/version2/models/getCustomContentContentProperties.ts deleted file mode 100644 index 84bfb161..00000000 --- a/src/version2/models/getCustomContentContentProperties.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { ContentProperty } from './contentProperty'; - -export interface GetCustomContentContentProperties { - results: ContentProperty[]; - _links: { - /** - * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This - * property will not be present if there is no additional data available. - */ - next?: string; - }; -} diff --git a/src/version2/models/getCustomContentLabels.ts b/src/version2/models/getCustomContentLabels.ts deleted file mode 100644 index ab5cd5ca..00000000 --- a/src/version2/models/getCustomContentLabels.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { Label } from './label'; - -export interface GetCustomContentLabels { - results: Label[]; - _links: { - /** - * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This - * property will not be present if there is no additional data available. - */ - next?: string; - }; -} diff --git a/src/version2/models/getCustomContentVersions.ts b/src/version2/models/getCustomContentVersions.ts deleted file mode 100644 index 44e05fcf..00000000 --- a/src/version2/models/getCustomContentVersions.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { CustomContentVersion } from './customContentVersion'; - -export interface GetCustomContentVersions { - results: CustomContentVersion[]; - _links: { - /** - * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This - * property will not be present if there is no additional data available. - */ - next?: string; - }; -} diff --git a/src/version2/models/getFooterCommentChildren.ts b/src/version2/models/getFooterCommentChildren.ts deleted file mode 100644 index 7b996c90..00000000 --- a/src/version2/models/getFooterCommentChildren.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { ChildrenCommentModel } from './childrenCommentModel'; - -export interface GetFooterCommentChildren { - results: ChildrenCommentModel[]; - _links: { - /** - * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This - * property will not be present if there is no additional data available. - */ - next?: string; - }; -} diff --git a/src/version2/models/getFooterCommentVersions.ts b/src/version2/models/getFooterCommentVersions.ts deleted file mode 100644 index c31fc762..00000000 --- a/src/version2/models/getFooterCommentVersions.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { CommentVersion } from './commentVersion'; - -export interface GetFooterCommentVersions { - results: CommentVersion[]; - _links: { - /** - * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This - * property will not be present if there is no additional data available. - */ - next?: string; - }; -} diff --git a/src/version2/models/getInlineCommentChildren.ts b/src/version2/models/getInlineCommentChildren.ts deleted file mode 100644 index 6d6a4a15..00000000 --- a/src/version2/models/getInlineCommentChildren.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { InlineCommentChildrenModel } from './inlineCommentChildrenModel'; - -export interface GetInlineCommentChildren { - results: InlineCommentChildrenModel[]; - _links: { - /** - * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This - * property will not be present if there is no additional data available. - */ - next?: string; - }; -} diff --git a/src/version2/models/getInlineCommentVersions.ts b/src/version2/models/getInlineCommentVersions.ts deleted file mode 100644 index 228dc286..00000000 --- a/src/version2/models/getInlineCommentVersions.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { CommentVersion } from './commentVersion'; - -export interface GetInlineCommentVersions { - results: CommentVersion[]; - _links: { - /** - * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This - * property will not be present if there is no additional data available. - */ - next?: string; - }; -} diff --git a/src/version2/models/getLabelAttachments.ts b/src/version2/models/getLabelAttachments.ts deleted file mode 100644 index 03692f9c..00000000 --- a/src/version2/models/getLabelAttachments.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { Attachment } from './attachment'; - -export interface GetLabelAttachments { - results: Attachment[]; - _links: { - /** - * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This - * property will not be present if there is no additional data available. - */ - next?: string; - }; -} diff --git a/src/version2/models/getLabelBlogPosts.ts b/src/version2/models/getLabelBlogPosts.ts deleted file mode 100644 index e761624a..00000000 --- a/src/version2/models/getLabelBlogPosts.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { BlogPost } from './blogPost'; - -export interface GetLabelBlogPosts { - results: BlogPost[]; - _links: { - /** - * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This - * property will not be present if there is no additional data available. - */ - next?: string; - }; -} diff --git a/src/version2/models/getLabelPages.ts b/src/version2/models/getLabelPages.ts deleted file mode 100644 index cb43cba7..00000000 --- a/src/version2/models/getLabelPages.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { Page } from './page'; - -export interface GetLabelPages { - results: Page[]; - _links: { - /** - * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This - * property will not be present if there is no additional data available. - */ - next?: string; - }; -} diff --git a/src/version2/models/getPageAttachments.ts b/src/version2/models/getPageAttachments.ts deleted file mode 100644 index 5f449e7b..00000000 --- a/src/version2/models/getPageAttachments.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { Attachment } from './attachment'; - -export interface GetPageAttachments { - results: Attachment[]; - _links: { - /** - * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This - * property will not be present if there is no additional data available. - */ - next?: string; - }; -} diff --git a/src/version2/models/getPageContentProperties.ts b/src/version2/models/getPageContentProperties.ts deleted file mode 100644 index d1dd9db2..00000000 --- a/src/version2/models/getPageContentProperties.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { ContentProperty } from './contentProperty'; - -export interface GetPageContentProperties { - results: ContentProperty[]; - _links: { - /** - * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This - * property will not be present if there is no additional data available. - */ - next?: string; - }; -} diff --git a/src/version2/models/getPageFooterComments.ts b/src/version2/models/getPageFooterComments.ts deleted file mode 100644 index 017d74d6..00000000 --- a/src/version2/models/getPageFooterComments.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { PageCommentModel } from './pageCommentModel'; - -export interface GetPageFooterComments { - results: PageCommentModel[]; - _links: { - /** - * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This - * property will not be present if there is no additional data available. - */ - next?: string; - }; -} diff --git a/src/version2/models/getPageInlineComments.ts b/src/version2/models/getPageInlineComments.ts deleted file mode 100644 index f9c48d25..00000000 --- a/src/version2/models/getPageInlineComments.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { PageInlineCommentModel } from './pageInlineCommentModel'; - -export interface GetPageInlineComments { - results: PageInlineCommentModel[]; - _links: { - /** - * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This - * property will not be present if there is no additional data available. - */ - next?: string; - }; -} diff --git a/src/version2/models/getPageLabels.ts b/src/version2/models/getPageLabels.ts deleted file mode 100644 index 743481d7..00000000 --- a/src/version2/models/getPageLabels.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { Label } from './label'; - -export interface GetPageLabels { - results: Label[]; - _links: { - /** - * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This - * property will not be present if there is no additional data available. - */ - next?: string; - }; -} diff --git a/src/version2/models/getPageVersions.ts b/src/version2/models/getPageVersions.ts deleted file mode 100644 index dd748727..00000000 --- a/src/version2/models/getPageVersions.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { PageVersion } from './pageVersion'; - -export interface GetPageVersions { - results: PageVersion[]; - _links: { - /** - * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This - * property will not be present if there is no additional data available. - */ - next?: string; - }; -} diff --git a/src/version2/models/getPages.ts b/src/version2/models/getPages.ts deleted file mode 100644 index aa218827..00000000 --- a/src/version2/models/getPages.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { Page } from './page'; - -export interface GetPages { - results: Page[]; - _links: { - /** - * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This - * property will not be present if there is no additional data available. - */ - next?: string; - }; -} diff --git a/src/version2/models/getPagesInSpace.ts b/src/version2/models/getPagesInSpace.ts deleted file mode 100644 index a67d93e9..00000000 --- a/src/version2/models/getPagesInSpace.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { Page } from './page'; - -export interface GetPagesInSpace { - results: Page[]; - _links: { - /** - * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This - * property will not be present if there is no additional data available. - */ - next?: string; - }; -} diff --git a/src/version2/models/getSpaceProperties.ts b/src/version2/models/getSpaceProperties.ts deleted file mode 100644 index 041d1433..00000000 --- a/src/version2/models/getSpaceProperties.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { SpaceProperty } from './spaceProperty'; - -export interface GetSpaceProperties { - results: SpaceProperty[]; - _links: { - /** - * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This - * property will not be present if there is no additional data available. - */ - next?: string; - }; -} diff --git a/src/version2/models/getSpaces.ts b/src/version2/models/getSpaces.ts deleted file mode 100644 index 80006e70..00000000 --- a/src/version2/models/getSpaces.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { Space } from './space'; - -export interface GetSpaces { - results: Space[]; - _links: { - /** - * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This - * property will not be present if there is no additional data available. - */ - next?: string; - }; -} diff --git a/src/version2/models/getTasks.ts b/src/version2/models/getTasks.ts deleted file mode 100644 index 22212896..00000000 --- a/src/version2/models/getTasks.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { Task } from './task'; - -export interface GetTasks { - results: Task[]; - _links: { - /** - * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This - * property will not be present if there is no additional data available. - */ - next?: string; - }; -} diff --git a/src/version2/models/index.ts b/src/version2/models/index.ts index 6fb3e4a7..3bf0b778 100644 --- a/src/version2/models/index.ts +++ b/src/version2/models/index.ts @@ -3,8 +3,8 @@ export * from './attachmentSortOrder'; export * from './attachmentVersion'; export * from './blogPost'; export * from './blogPostBodyWrite'; -export * from './blogPostCommentModel'; -export * from './blogPostInlineCommentModel'; +export * from './blogPostComment'; +export * from './blogPostInlineComment'; export * from './blogPostNestedBodyWrite'; export * from './blogPostSortOrder'; export * from './blogPostVersion'; @@ -16,7 +16,7 @@ export * from './childCustomContent'; export * from './childCustomContentSortOrder'; export * from './childPage'; export * from './childPageSortOrder'; -export * from './childrenCommentModel'; +export * from './childrenComment'; export * from './commentBodyWrite'; export * from './commentNestedBodyWrite'; export * from './commentSortOrder'; @@ -37,47 +37,7 @@ export * from './customContentNestedBodyWrite'; export * from './customContentVersion'; export * from './detailedVersion'; export * from './footerCommentModel'; -export * from './getAttachmentContentProperties'; -export * from './getAttachmentLabels'; -export * from './getAttachmentVersions'; -export * from './getBlogpostAttachments'; -export * from './getBlogpostContentProperties'; -export * from './getBlogPostFooterComments'; -export * from './getBlogPostInlineComments'; -export * from './getBlogPostLabels'; -export * from './getBlogPosts'; -export * from './getBlogPostsInSpace'; -export * from './getBlogPostVersions'; -export * from './getChildCustomContent'; -export * from './getChildPages'; -export * from './getCommentContentProperties'; -export * from './getCustomContentAttachments'; -export * from './getCustomContentByType'; -export * from './getCustomContentByTypeInBlogPost'; -export * from './getCustomContentByTypeInPage'; -export * from './getCustomContentByTypeInSpace'; -export * from './getCustomContentContentProperties'; -export * from './getCustomContentLabels'; -export * from './getCustomContentVersions'; -export * from './getFooterCommentChildren'; -export * from './getFooterCommentVersions'; -export * from './getInlineCommentChildren'; -export * from './getInlineCommentVersions'; -export * from './getLabelAttachments'; -export * from './getLabelBlogPosts'; -export * from './getLabelPages'; -export * from './getPageAttachments'; -export * from './getPageContentProperties'; -export * from './getPageFooterComments'; -export * from './getPageInlineComments'; -export * from './getPageLabels'; -export * from './getPages'; -export * from './getPagesInSpace'; -export * from './getPageVersions'; -export * from './getSpaceProperties'; -export * from './getSpaces'; -export * from './getTasks'; -export * from './inlineCommentChildrenModel'; +export * from './inlineCommentChildren'; export * from './inlineCommentModel'; export * from './inlineCommentProperties'; export * from './inlineCommentResolutionStatus'; @@ -87,11 +47,12 @@ export * from './labelSortOrder'; export * from './onlyArchivedAndCurrentContentStatus'; export * from './page'; export * from './pageBodyWrite'; -export * from './pageCommentModel'; -export * from './pageInlineCommentModel'; +export * from './pageComment'; +export * from './pageInlineComment'; export * from './pageNestedBodyWrite'; export * from './pageSortOrder'; export * from './pageVersion'; +export * from './pagination'; export * from './primaryBodyRepresentation'; export * from './space'; export * from './spaceDescription'; diff --git a/src/version2/models/inlineCommentChildrenModel.ts b/src/version2/models/inlineCommentChildren.ts similarity index 93% rename from src/version2/models/inlineCommentChildrenModel.ts rename to src/version2/models/inlineCommentChildren.ts index 0b87a1f3..ab07391d 100644 --- a/src/version2/models/inlineCommentChildrenModel.ts +++ b/src/version2/models/inlineCommentChildren.ts @@ -3,7 +3,7 @@ import { InlineCommentProperties } from './inlineCommentProperties'; import { InlineCommentResolutionStatus } from './inlineCommentResolutionStatus'; import { Version } from './version'; -export interface InlineCommentChildrenModel { +export interface InlineCommentChildren { /** ID of the comment. */ id?: {}; status: 'current' | 'trashed' | 'historical' | 'deleted' | 'any' | 'draft' | 'archived' | string; diff --git a/src/version2/models/links.ts b/src/version2/models/links.ts new file mode 100644 index 00000000..0171b668 --- /dev/null +++ b/src/version2/models/links.ts @@ -0,0 +1,7 @@ +export interface Links { + /** + * Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This + * property will not be present if there is no additional data available. + */ + next?: string; +} diff --git a/src/version2/models/pageCommentModel.ts b/src/version2/models/pageComment.ts similarity index 90% rename from src/version2/models/pageCommentModel.ts rename to src/version2/models/pageComment.ts index 73ecc099..0abde37d 100644 --- a/src/version2/models/pageCommentModel.ts +++ b/src/version2/models/pageComment.ts @@ -2,7 +2,7 @@ import { Body } from './body'; import { ContentStatus } from './contentStatus'; import { Version } from './version'; -export interface PageCommentModel { +export interface PageComment { /** ID of the comment. */ id?: {}; status?: ContentStatus; diff --git a/src/version2/models/pageInlineCommentModel.ts b/src/version2/models/pageInlineComment.ts similarity index 93% rename from src/version2/models/pageInlineCommentModel.ts rename to src/version2/models/pageInlineComment.ts index 4ec5a45f..e37997ac 100644 --- a/src/version2/models/pageInlineCommentModel.ts +++ b/src/version2/models/pageInlineComment.ts @@ -4,7 +4,7 @@ import { InlineCommentProperties } from './inlineCommentProperties'; import { InlineCommentResolutionStatus } from './inlineCommentResolutionStatus'; import { Version } from './version'; -export interface PageInlineCommentModel { +export interface PageInlineComment { /** ID of the comment. */ id?: {}; status?: ContentStatus; diff --git a/src/version2/models/pagination.ts b/src/version2/models/pagination.ts new file mode 100644 index 00000000..a8825591 --- /dev/null +++ b/src/version2/models/pagination.ts @@ -0,0 +1,6 @@ +import { Links } from './links'; + +export interface Pagination { + results: T[]; + _links: Links; +} diff --git a/src/version2/page.ts b/src/version2/page.ts index 2d756d87..33697ac3 100644 --- a/src/version2/page.ts +++ b/src/version2/page.ts @@ -14,7 +14,7 @@ export class Page { * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the page * and its corresponding space. */ - async getLabelPages( + async getLabelPages>( parameters: Parameters.GetLabelPages, callback: Callback, ): Promise; @@ -25,8 +25,8 @@ export class Page { * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the page * and its corresponding space. */ - async getLabelPages(parameters: Parameters.GetLabelPages, callback?: never): Promise; - async getLabelPages( + async getLabelPages>(parameters: Parameters.GetLabelPages, callback?: never): Promise; + async getLabelPages>( parameters: Parameters.GetLabelPages, callback?: Callback, ): Promise { @@ -52,7 +52,7 @@ export class Page { * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site * ('Can use' global permission). Only pages that the user has permission to view will be returned. */ - async getPages( + async getPages>( parameters: Parameters.GetPages | undefined, callback: Callback, ): Promise; @@ -63,8 +63,8 @@ export class Page { * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site * ('Can use' global permission). Only pages that the user has permission to view will be returned. */ - async getPages(parameters?: Parameters.GetPages, callback?: never): Promise; - async getPages(parameters?: Parameters.GetPages, callback?: Callback): Promise { + async getPages>(parameters?: Parameters.GetPages, callback?: never): Promise; + async getPages>(parameters?: Parameters.GetPages, callback?: Callback): Promise { const config: RequestConfig = { url: '/pages', method: 'GET', @@ -202,7 +202,7 @@ export class Page { * ('Can use' global permission) and 'View' permission for the space. Only pages that the user has permission to view * will be returned. */ - async getPagesInSpace( + async getPagesInSpace>( parameters: Parameters.GetPagesInSpace, callback: Callback, ): Promise; @@ -214,11 +214,11 @@ export class Page { * ('Can use' global permission) and 'View' permission for the space. Only pages that the user has permission to view * will be returned. */ - async getPagesInSpace( + async getPagesInSpace>( parameters: Parameters.GetPagesInSpace, callback?: never, ): Promise; - async getPagesInSpace( + async getPagesInSpace>( parameters: Parameters.GetPagesInSpace, callback?: Callback, ): Promise { diff --git a/src/version2/space.ts b/src/version2/space.ts index 190bfcb7..d46c64b1 100644 --- a/src/version2/space.ts +++ b/src/version2/space.ts @@ -15,7 +15,7 @@ export class Space { * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site * ('Can use' global permission). Only spaces that the user has permission to view will be returned. */ - async getSpaces( + async getSpaces>( parameters: Parameters.GetSpaces | undefined, callback: Callback, ): Promise; @@ -27,8 +27,8 @@ export class Space { * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site * ('Can use' global permission). Only spaces that the user has permission to view will be returned. */ - async getSpaces(parameters?: Parameters.GetSpaces, callback?: never): Promise; - async getSpaces(parameters?: Parameters.GetSpaces, callback?: Callback): Promise { + async getSpaces>(parameters?: Parameters.GetSpaces, callback?: never): Promise; + async getSpaces>(parameters?: Parameters.GetSpaces, callback?: Callback): Promise { const config: RequestConfig = { url: '/spaces', method: 'GET', diff --git a/src/version2/spaceProperties.ts b/src/version2/spaceProperties.ts index fe430ce0..7c4684c6 100644 --- a/src/version2/spaceProperties.ts +++ b/src/version2/spaceProperties.ts @@ -15,7 +15,7 @@ export class SpaceProperties { * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site * ('Can use' global permission) and 'View' permission for the space. */ - async getSpaceProperties( + async getSpaceProperties>( parameters: Parameters.GetSpaceProperties, callback: Callback, ): Promise; @@ -27,11 +27,11 @@ export class SpaceProperties { * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site * ('Can use' global permission) and 'View' permission for the space. */ - async getSpaceProperties( + async getSpaceProperties>( parameters: Parameters.GetSpaceProperties, callback?: never, ): Promise; - async getSpaceProperties( + async getSpaceProperties>( parameters: Parameters.GetSpaceProperties, callback?: Callback, ): Promise { diff --git a/src/version2/task.ts b/src/version2/task.ts index 9925a676..901822b1 100644 --- a/src/version2/task.ts +++ b/src/version2/task.ts @@ -14,7 +14,7 @@ export class Task { * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site * ('Can use' global permission). Only tasks that the user has permission to view will be returned. */ - async getTasks( + async getTasks>( parameters: Parameters.GetTasks | undefined, callback: Callback, ): Promise; @@ -25,8 +25,8 @@ export class Task { * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site * ('Can use' global permission). Only tasks that the user has permission to view will be returned. */ - async getTasks(parameters?: Parameters.GetTasks, callback?: never): Promise; - async getTasks(parameters?: Parameters.GetTasks, callback?: Callback): Promise { + async getTasks>(parameters?: Parameters.GetTasks, callback?: never): Promise; + async getTasks>(parameters?: Parameters.GetTasks, callback?: Callback): Promise { const config: RequestConfig = { url: '/tasks', method: 'GET', diff --git a/src/version2/version.ts b/src/version2/version.ts index 0dd0d9f4..e314b022 100644 --- a/src/version2/version.ts +++ b/src/version2/version.ts @@ -13,7 +13,7 @@ export class Version { * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the attachment and its * corresponding space. */ - async getAttachmentVersions( + async getAttachmentVersions>( parameters: Parameters.GetAttachmentVersions, callback: Callback, ): Promise; @@ -23,11 +23,11 @@ export class Version { * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the attachment and its * corresponding space. */ - async getAttachmentVersions( + async getAttachmentVersions>( parameters: Parameters.GetAttachmentVersions, callback?: never, ): Promise; - async getAttachmentVersions( + async getAttachmentVersions>( parameters: Parameters.GetAttachmentVersions, callback?: Callback, ): Promise { @@ -80,7 +80,7 @@ export class Version { * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the blog post and its * corresponding space. */ - async getBlogPostVersions( + async getBlogPostVersions>( parameters: Parameters.GetBlogPostVersions, callback: Callback, ): Promise; @@ -90,11 +90,11 @@ export class Version { * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the blog post and its * corresponding space. */ - async getBlogPostVersions( + async getBlogPostVersions>( parameters: Parameters.GetBlogPostVersions, callback?: never, ): Promise; - async getBlogPostVersions( + async getBlogPostVersions>( parameters: Parameters.GetBlogPostVersions, callback?: Callback, ): Promise { @@ -148,7 +148,7 @@ export class Version { * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the page and its * corresponding space. */ - async getPageVersions( + async getPageVersions>( parameters: Parameters.GetPageVersions, callback: Callback, ): Promise; @@ -158,11 +158,11 @@ export class Version { * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the page and its * corresponding space. */ - async getPageVersions( + async getPageVersions>( parameters: Parameters.GetPageVersions, callback?: never, ): Promise; - async getPageVersions( + async getPageVersions>( parameters: Parameters.GetPageVersions, callback?: Callback, ): Promise { @@ -216,7 +216,7 @@ export class Version { * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the custom content and * its corresponding page and space. */ - async getCustomContentVersions( + async getCustomContentVersions>( parameters: Parameters.GetCustomContentVersions, callback: Callback, ): Promise; @@ -226,11 +226,11 @@ export class Version { * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the custom content and * its corresponding page and space. */ - async getCustomContentVersions( + async getCustomContentVersions>( parameters: Parameters.GetCustomContentVersions, callback?: never, ): Promise; - async getCustomContentVersions( + async getCustomContentVersions>( parameters: Parameters.GetCustomContentVersions, callback?: Callback, ): Promise { @@ -284,7 +284,7 @@ export class Version { * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the page * or blog post and its corresponding space. */ - async getFooterCommentVersions( + async getFooterCommentVersions>( parameters: Parameters.GetFooterCommentVersions, callback: Callback, ): Promise; @@ -294,11 +294,11 @@ export class Version { * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the page * or blog post and its corresponding space. */ - async getFooterCommentVersions( + async getFooterCommentVersions>( parameters: Parameters.GetFooterCommentVersions, callback?: never, ): Promise; - async getFooterCommentVersions( + async getFooterCommentVersions>( parameters: Parameters.GetFooterCommentVersions, callback?: Callback, ): Promise { @@ -354,7 +354,7 @@ export class Version { * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the page * or blog post and its corresponding space. */ - async getInlineCommentVersions( + async getInlineCommentVersions>( parameters: Parameters.GetInlineCommentVersions, callback: Callback, ): Promise; @@ -364,11 +364,11 @@ export class Version { * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the page * or blog post and its corresponding space. */ - async getInlineCommentVersions( + async getInlineCommentVersions>( parameters: Parameters.GetInlineCommentVersions, callback?: never, ): Promise; - async getInlineCommentVersions( + async getInlineCommentVersions>( parameters: Parameters.GetInlineCommentVersions, callback?: Callback, ): Promise { From 61d4d6bce11dabbee420cb5a8b484ad69b988a7a Mon Sep 17 00:00:00 2001 From: Vladislav Tupikin Date: Mon, 22 May 2023 00:44:23 +0400 Subject: [PATCH 12/44] #47 'serialize-ids-as-strings' set to true by default (#50) * #47 'serialize-ids-as-strings' set to true by default * #47 build fixes --- src/version2/attachment.ts | 10 ++--- src/version2/blogPost.ts | 17 ++++---- src/version2/children.ts | 9 +++-- src/version2/comment.ts | 24 +++++------ src/version2/contentProperties.ts | 40 +++++++++---------- src/version2/customContent.ts | 14 +++---- src/version2/label.ts | 13 +++--- .../models/createFooterCommentModel.ts | 17 -------- .../models/createInlineCommentModel.ts | 28 ------------- src/version2/models/index.ts | 6 --- .../models/spacePropertyCreateRequest.ts | 6 --- .../models/spacePropertyUpdateRequest.ts | 13 ------ .../models/updateFooterCommentModel.ts | 9 ----- .../models/updateInlineCommentModel.ts | 16 -------- src/version2/page.ts | 22 ++++++---- .../parameters/createAttachmentProperty.ts | 7 ---- src/version2/parameters/createBlogPost.ts | 10 +---- .../parameters/createBlogpostProperty.ts | 7 ---- .../parameters/createCommentProperty.ts | 7 ---- .../parameters/createCustomContent.ts | 10 +---- .../parameters/createCustomContentProperty.ts | 7 ---- .../parameters/createFooterComment.ts | 22 ++++++---- .../parameters/createInlineComment.ts | 33 +++++++++++---- src/version2/parameters/createPage.ts | 10 +---- src/version2/parameters/createPageProperty.ts | 7 ---- .../parameters/createSpaceProperty.ts | 15 +++---- src/version2/parameters/getAttachmentById.ts | 7 ---- .../getAttachmentContentProperties.ts | 7 ---- .../getAttachmentContentPropertiesById.ts | 7 ---- .../parameters/getAttachmentLabels.ts | 7 ---- src/version2/parameters/getBlogPostById.ts | 7 ---- .../parameters/getBlogPostFooterComments.ts | 7 ---- .../parameters/getBlogPostInlineComments.ts | 7 ---- src/version2/parameters/getBlogPostLabels.ts | 7 ---- src/version2/parameters/getBlogPosts.ts | 7 ---- .../parameters/getBlogPostsInSpace.ts | 7 ---- .../parameters/getBlogpostAttachments.ts | 7 ---- .../getBlogpostContentProperties.ts | 7 ---- .../getBlogpostContentPropertiesById.ts | 7 ---- .../parameters/getChildCustomContent.ts | 7 ---- src/version2/parameters/getChildPages.ts | 7 ---- .../parameters/getCommentContentProperties.ts | 7 ---- .../getCommentContentPropertiesById.ts | 7 ---- .../parameters/getCustomContentAttachments.ts | 7 ---- .../parameters/getCustomContentById.ts | 7 ---- .../parameters/getCustomContentByType.ts | 7 ---- .../getCustomContentByTypeInBlogPost.ts | 7 ---- .../getCustomContentByTypeInPage.ts | 7 ---- .../getCustomContentByTypeInSpace.ts | 7 ---- .../getCustomContentContentProperties.ts | 7 ---- .../getCustomContentContentPropertiesById.ts | 7 ---- .../parameters/getCustomContentLabels.ts | 7 ---- .../parameters/getFooterCommentById.ts | 7 ---- .../parameters/getFooterCommentChildren.ts | 7 ---- .../parameters/getInlineCommentById.ts | 7 ---- .../parameters/getInlineCommentChildren.ts | 8 +--- .../parameters/getLabelAttachments.ts | 7 ---- src/version2/parameters/getLabelBlogPosts.ts | 7 ---- src/version2/parameters/getLabelPages.ts | 7 ---- src/version2/parameters/getPageAttachments.ts | 7 ---- src/version2/parameters/getPageById.ts | 7 ---- .../parameters/getPageContentProperties.ts | 7 ---- .../getPageContentPropertiesById.ts | 7 ---- .../parameters/getPageFooterComments.ts | 7 ---- .../parameters/getPageInlineComments.ts | 7 ---- src/version2/parameters/getPageLabels.ts | 7 ---- src/version2/parameters/getPages.ts | 7 ---- src/version2/parameters/getPagesInSpace.ts | 7 ---- src/version2/parameters/getSpaceProperties.ts | 7 ---- .../parameters/getSpacePropertyById.ts | 7 ---- src/version2/parameters/getSpaces.ts | 7 ---- src/version2/parameters/getTaskById.ts | 7 ---- src/version2/parameters/getTasks.ts | 7 ---- .../updateAttachmentPropertyById.ts | 7 ---- src/version2/parameters/updateBlogPost.ts | 7 ---- .../parameters/updateBlogpostPropertyById.ts | 7 ---- .../parameters/updateCommentPropertyById.ts | 7 ---- .../parameters/updateCustomContent.ts | 7 ---- .../updateCustomContentPropertyById.ts | 7 ---- .../parameters/updateFooterComment.ts | 18 ++++----- .../parameters/updateInlineComment.ts | 20 ++++++---- src/version2/parameters/updatePage.ts | 7 ---- .../parameters/updatePagePropertyById.ts | 7 ---- .../parameters/updateSpacePropertyById.ts | 22 +++++----- src/version2/parameters/updateTask.ts | 7 ---- src/version2/space.ts | 7 +++- src/version2/spaceProperties.ts | 8 ++-- src/version2/task.ts | 11 +++-- 88 files changed, 178 insertions(+), 680 deletions(-) delete mode 100644 src/version2/models/createFooterCommentModel.ts delete mode 100644 src/version2/models/createInlineCommentModel.ts delete mode 100644 src/version2/models/spacePropertyCreateRequest.ts delete mode 100644 src/version2/models/spacePropertyUpdateRequest.ts delete mode 100644 src/version2/models/updateFooterCommentModel.ts delete mode 100644 src/version2/models/updateInlineCommentModel.ts diff --git a/src/version2/attachment.ts b/src/version2/attachment.ts index 7cd761c0..1ff58bbb 100644 --- a/src/version2/attachment.ts +++ b/src/version2/attachment.ts @@ -36,7 +36,7 @@ export class Attachment { method: 'GET', params: { version: parameters.version, - 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + 'serialize-ids-as-strings': true, }, }; @@ -78,7 +78,7 @@ export class Attachment { mediaType: parameters.mediaType, filename: parameters.filename, limit: parameters.limit, - 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + 'serialize-ids-as-strings': true, }, }; @@ -120,7 +120,7 @@ export class Attachment { mediaType: parameters.mediaType, filename: parameters.filename, limit: parameters.limit, - 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + 'serialize-ids-as-strings': true, }, }; @@ -160,7 +160,7 @@ export class Attachment { sort: parameters.sort, cursor: parameters.cursor, limit: parameters.limit, - 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + 'serialize-ids-as-strings': true, }, }; @@ -202,7 +202,7 @@ export class Attachment { mediaType: parameters.mediaType, filename: parameters.filename, limit: parameters.limit, - 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + 'serialize-ids-as-strings': true, }, }; diff --git a/src/version2/blogPost.ts b/src/version2/blogPost.ts index 4db36477..11f07b49 100644 --- a/src/version2/blogPost.ts +++ b/src/version2/blogPost.ts @@ -25,7 +25,10 @@ export class BlogPost { * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site * ('Can use' global permission). Only blog posts that the user has permission to view will be returned. */ - async getBlogPosts>(parameters?: Parameters.GetBlogPosts, callback?: never): Promise; + async getBlogPosts>( + parameters?: Parameters.GetBlogPosts, + callback?: never, + ): Promise; async getBlogPosts>( parameters?: Parameters.GetBlogPosts, callback?: Callback, @@ -39,7 +42,7 @@ export class BlogPost { 'body-format': parameters?.bodyFormat, cursor: parameters?.cursor, limit: parameters?.limit, - 'serialize-ids-as-strings': parameters?.serializeIdsAsStrings, + 'serialize-ids-as-strings': true, }, }; @@ -75,7 +78,7 @@ export class BlogPost { url: '/blogposts', method: 'POST', params: { - 'serialize-ids-as-strings': parameters?.serializeIdsAsStrings, + 'serialize-ids-as-strings': true, }, }; @@ -110,7 +113,7 @@ export class BlogPost { 'body-format': parameters['body-format'], 'get-draft': parameters['get-draft'], version: parameters.version, - 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + 'serialize-ids-as-strings': true, }, }; @@ -142,7 +145,7 @@ export class BlogPost { url: `/blogposts/${parameters.id}`, method: 'PUT', params: { - 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + 'serialize-ids-as-strings': true, }, }; @@ -206,7 +209,7 @@ export class BlogPost { sort: parameters.sort, cursor: parameters.cursor, limit: parameters.limit, - 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + 'serialize-ids-as-strings': true, }, }; @@ -249,7 +252,7 @@ export class BlogPost { 'body-format': parameters.bodyFormat, cursor: parameters.cursor, limit: parameters.limit, - 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + 'serialize-ids-as-strings': true, }, }; diff --git a/src/version2/children.ts b/src/version2/children.ts index 525d4f91..9e135cb1 100644 --- a/src/version2/children.ts +++ b/src/version2/children.ts @@ -25,7 +25,10 @@ export class Children { * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site * ('Can use' global permission). Only pages that the user has permission to view will be returned. */ - async getChildPages>(parameters: Parameters.GetChildPages, callback?: never): Promise; + async getChildPages>( + parameters: Parameters.GetChildPages, + callback?: never, + ): Promise; async getChildPages>( parameters: Parameters.GetChildPages, callback?: Callback, @@ -37,7 +40,7 @@ export class Children { cursor: parameters.cursor, limit: parameters.limit, sort: parameters.sort, - 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + 'serialize-ids-as-strings': true, }, }; @@ -79,7 +82,7 @@ export class Children { cursor: parameters.cursor, limit: parameters.limit, sort: parameters.sort, - 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + 'serialize-ids-as-strings': true, }, }; diff --git a/src/version2/comment.ts b/src/version2/comment.ts index 1d8b27fd..92b0f31b 100644 --- a/src/version2/comment.ts +++ b/src/version2/comment.ts @@ -41,7 +41,7 @@ export class Comment { sort: parameters.sort, cursor: parameters.cursor, limit: parameters.limit, - 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + 'serialize-ids-as-strings': true, }, }; @@ -82,7 +82,7 @@ export class Comment { sort: parameters.sort, cursor: parameters.cursor, limit: parameters.limit, - 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + 'serialize-ids-as-strings': true, }, }; @@ -125,7 +125,7 @@ export class Comment { sort: parameters.sort, cursor: parameters.cursor, limit: parameters.limit, - 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + 'serialize-ids-as-strings': true, }, }; @@ -168,7 +168,7 @@ export class Comment { sort: parameters.sort, cursor: parameters.cursor, limit: parameters.limit, - 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + 'serialize-ids-as-strings': true, }, }; @@ -205,7 +205,7 @@ export class Comment { url: '/footer-comments', method: 'POST', params: { - 'serialize-ids-as-strings': parameters?.serializeIdsAsStrings, + 'serialize-ids-as-strings': true, }, data: { blogPostId: parameters?.blogPostId, @@ -248,7 +248,7 @@ export class Comment { params: { 'body-format': parameters['body-format'], version: parameters.version, - 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + 'serialize-ids-as-strings': true, }, }; @@ -283,7 +283,7 @@ export class Comment { url: `/footer-comments/${parameters.commentId}`, method: 'PUT', params: { - 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + 'serialize-ids-as-strings': true, }, data: { version: parameters.version, @@ -356,7 +356,7 @@ export class Comment { sort: parameters.sort, cursor: parameters.cursor, limit: parameters.limit, - 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + 'serialize-ids-as-strings': true, }, }; @@ -397,7 +397,7 @@ export class Comment { url: '/inline-comments', method: 'POST', params: { - 'serialize-ids-as-strings': parameters?.serializeIdsAsStrings, + 'serialize-ids-as-strings': true, }, data: { blogPostId: parameters?.blogPostId, @@ -441,7 +441,7 @@ export class Comment { params: { 'body-format': parameters['body-format'], version: parameters.version, - 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + 'serialize-ids-as-strings': true, }, }; @@ -476,7 +476,7 @@ export class Comment { url: `/inline-comments/${parameters.commentId}`, method: 'PUT', params: { - 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + 'serialize-ids-as-strings': true, }, data: { version: parameters.version, @@ -546,7 +546,7 @@ export class Comment { url: `/inline-comments/${parameters.id}/children`, method: 'GET', params: { - 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + 'serialize-ids-as-strings': true, 'body-format': parameters['body-format'], sort: parameters.sort, cursor: parameters.cursor, diff --git a/src/version2/contentProperties.ts b/src/version2/contentProperties.ts index 311a5a9e..d48ce4ce 100644 --- a/src/version2/contentProperties.ts +++ b/src/version2/contentProperties.ts @@ -37,7 +37,7 @@ export class ContentProperties { sort: parameters.sort, cursor: parameters.cursor, limit: parameters.limit, - 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + 'serialize-ids-as-strings': true, }, }; @@ -70,7 +70,7 @@ export class ContentProperties { url: `/attachments/${parameters.attachmentId}/properties`, method: 'POST', params: { - 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + 'serialize-ids-as-strings': true, }, data: { key: parameters.key, @@ -107,7 +107,7 @@ export class ContentProperties { url: `/attachments/${parameters.attachmentId}/properties/${parameters.propertyId}`, method: 'GET', params: { - 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + 'serialize-ids-as-strings': true, }, }; @@ -140,7 +140,7 @@ export class ContentProperties { url: `/attachments/${parameters.attachmentId}/properties/${parameters.propertyId}`, method: 'PUT', params: { - 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + 'serialize-ids-as-strings': true, }, data: { key: parameters.key, @@ -212,7 +212,7 @@ export class ContentProperties { sort: parameters.sort, cursor: parameters.cursor, limit: parameters.limit, - 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + 'serialize-ids-as-strings': true, }, }; @@ -245,7 +245,7 @@ export class ContentProperties { url: `/blogposts/${parameters.blogpostId}/properties`, method: 'POST', params: { - 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + 'serialize-ids-as-strings': true, }, data: { key: parameters.key, @@ -282,7 +282,7 @@ export class ContentProperties { url: `/blogposts/${parameters.blogpostId}/properties/${parameters.propertyId}`, method: 'GET', params: { - 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + 'serialize-ids-as-strings': true, }, }; @@ -315,7 +315,7 @@ export class ContentProperties { url: `/blogposts/${parameters.blogpostId}/properties/${parameters.propertyId}`, method: 'PUT', params: { - 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + 'serialize-ids-as-strings': true, }, data: { key: parameters.key, @@ -387,7 +387,7 @@ export class ContentProperties { sort: parameters.sort, cursor: parameters.cursor, limit: parameters.limit, - 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + 'serialize-ids-as-strings': true, }, }; @@ -420,7 +420,7 @@ export class ContentProperties { url: `/custom-content/${parameters.customContentId}/properties`, method: 'POST', params: { - 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + 'serialize-ids-as-strings': true, }, data: { key: parameters.key, @@ -457,7 +457,7 @@ export class ContentProperties { url: `/custom-content/${parameters.customContentId}/properties/${parameters.propertyId}`, method: 'GET', params: { - 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + 'serialize-ids-as-strings': true, }, }; @@ -490,7 +490,7 @@ export class ContentProperties { url: `/custom-content/${parameters.customContentId}/properties/${parameters.propertyId}`, method: 'PUT', params: { - 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + 'serialize-ids-as-strings': true, }, data: { key: parameters.key, @@ -562,7 +562,7 @@ export class ContentProperties { sort: parameters.sort, cursor: parameters.cursor, limit: parameters.limit, - 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + 'serialize-ids-as-strings': true, }, }; @@ -595,7 +595,7 @@ export class ContentProperties { url: `/pages/${parameters.pageId}/properties`, method: 'POST', params: { - 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + 'serialize-ids-as-strings': true, }, data: { key: parameters.key, @@ -632,7 +632,7 @@ export class ContentProperties { url: `/pages/${parameters.pageId}/properties/${parameters.propertyId}`, method: 'GET', params: { - 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + 'serialize-ids-as-strings': true, }, }; @@ -665,7 +665,7 @@ export class ContentProperties { url: `/pages/${parameters.pageId}/properties/${parameters.propertyId}`, method: 'PUT', params: { - 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + 'serialize-ids-as-strings': true, }, data: { key: parameters.key, @@ -734,7 +734,7 @@ export class ContentProperties { sort: parameters.sort, cursor: parameters.cursor, limit: parameters.limit, - 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + 'serialize-ids-as-strings': true, }, }; @@ -767,7 +767,7 @@ export class ContentProperties { url: `/comments/${parameters.commentId}/properties`, method: 'POST', params: { - 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + 'serialize-ids-as-strings': true, }, data: { key: parameters.key, @@ -804,7 +804,7 @@ export class ContentProperties { url: `/comments/${parameters.commentId}/properties/${parameters.propertyId}`, method: 'GET', params: { - 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + 'serialize-ids-as-strings': true, }, }; @@ -837,7 +837,7 @@ export class ContentProperties { url: `/comments/${parameters.commentId}/properties/${parameters.propertyId}`, method: 'PUT', params: { - 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + 'serialize-ids-as-strings': true, }, data: { key: parameters.key, diff --git a/src/version2/customContent.ts b/src/version2/customContent.ts index 45e44e71..32698bfd 100644 --- a/src/version2/customContent.ts +++ b/src/version2/customContent.ts @@ -43,7 +43,7 @@ export class CustomContent { cursor: parameters.cursor, limit: parameters.limit, 'body-format': parameters['body-format'], - 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + 'serialize-ids-as-strings': true, }, }; @@ -85,7 +85,7 @@ export class CustomContent { cursor: parameters.cursor, limit: parameters.limit, 'body-format': parameters['body-format'], - 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + 'serialize-ids-as-strings': true, }, }; @@ -122,7 +122,7 @@ export class CustomContent { url: '/custom-content', method: 'POST', params: { - 'serialize-ids-as-strings': parameters?.serializeIdsAsStrings, + 'serialize-ids-as-strings': true, }, }; @@ -159,7 +159,7 @@ export class CustomContent { params: { 'body-format': parameters['body-format'], version: parameters.version, - 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + 'serialize-ids-as-strings': true, }, }; @@ -196,7 +196,7 @@ export class CustomContent { url: `/custom-content/${parameters.id}`, method: 'PUT', params: { - 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + 'serialize-ids-as-strings': true, }, }; @@ -265,7 +265,7 @@ export class CustomContent { cursor: parameters.cursor, limit: parameters.limit, 'body-format': parameters['body-format'], - 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + 'serialize-ids-as-strings': true, }, }; @@ -308,7 +308,7 @@ export class CustomContent { cursor: parameters.cursor, limit: parameters.limit, 'body-format': parameters['body-format'], - 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + 'serialize-ids-as-strings': true, }, }; diff --git a/src/version2/label.ts b/src/version2/label.ts index bfddd204..0083171e 100644 --- a/src/version2/label.ts +++ b/src/version2/label.ts @@ -41,7 +41,7 @@ export class Label { sort: parameters.sort, cursor: parameters.cursor, limit: parameters.limit, - 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + 'serialize-ids-as-strings': true, }, }; @@ -82,7 +82,7 @@ export class Label { sort: parameters.sort, cursor: parameters.cursor, limit: parameters.limit, - 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + 'serialize-ids-as-strings': true, }, }; @@ -125,7 +125,7 @@ export class Label { sort: parameters.sort, cursor: parameters.cursor, limit: parameters.limit, - 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + 'serialize-ids-as-strings': true, }, }; @@ -150,7 +150,10 @@ export class Label { * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the page * and its corresponding space. */ - async getPageLabels>(parameters: Parameters.GetPageLabels, callback?: never): Promise; + async getPageLabels>( + parameters: Parameters.GetPageLabels, + callback?: never, + ): Promise; async getPageLabels>( parameters: Parameters.GetPageLabels, callback?: Callback, @@ -163,7 +166,7 @@ export class Label { sort: parameters.sort, cursor: parameters.cursor, limit: parameters.limit, - 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + 'serialize-ids-as-strings': true, }, }; diff --git a/src/version2/models/createFooterCommentModel.ts b/src/version2/models/createFooterCommentModel.ts deleted file mode 100644 index 8a4288be..00000000 --- a/src/version2/models/createFooterCommentModel.ts +++ /dev/null @@ -1,17 +0,0 @@ -export interface CreateFooterCommentModel { - /** - * ID of the containing blog post, if intending to create a top level footer comment. Do not provide if creating a - * reply. - */ - blogPostId?: string; - /** ID of the containing page, if intending to create a top level footer comment. Do not provide if creating a reply. */ - pageId?: string; - /** ID of the parent comment, if intending to create a reply. Do not provide if creating a top level comment. */ - parentCommentId?: string; - body?: { - /** Body of the comment */ - value?: string; - /** Format of the body's value. */ - representation?: string; - }; -} diff --git a/src/version2/models/createInlineCommentModel.ts b/src/version2/models/createInlineCommentModel.ts deleted file mode 100644 index fde8e2de..00000000 --- a/src/version2/models/createInlineCommentModel.ts +++ /dev/null @@ -1,28 +0,0 @@ -export interface CreateInlineCommentModel { - /** - * ID of the containing blog post, if intending to create a top level footer comment. Do not provide if creating a - * reply. - */ - blogPostId?: string; - /** ID of the containing page, if intending to create a top level footer comment. Do not provide if creating a reply. */ - pageId?: string; - /** ID of the parent comment, if intending to create a reply. Do not provide if creating a top level comment. */ - parentCommentId?: string; - body?: {}; - /** - * Object describing the text to highlight on the page/blog post. Only applicable for top level inline comments (not - * replies) and required in that case. - */ - inlineCommentProperties?: { - /** The text to highlight */ - textSelection?: string; - /** The number of matches for the selected text on the page (should be strictly greater than textSelectionMatchIndex) */ - textSelectionMatchCount?: number; - /** - * The match index to highlight. This is zero-based. E.g. if you have 3 occurrences of "hello world" on a page and - * you want to highlight the second occurrence, you should pass 1 for textSelectionMatchIndex and 3 for - * textSelectionMatchCount. - */ - textSelectionMatchIndex?: number; - }; -} diff --git a/src/version2/models/index.ts b/src/version2/models/index.ts index 3bf0b778..feb28c2b 100644 --- a/src/version2/models/index.ts +++ b/src/version2/models/index.ts @@ -27,8 +27,6 @@ export * from './contentPropertyCreateRequest'; export * from './contentPropertySortOrder'; export * from './contentPropertyUpdateRequest'; export * from './contentStatus'; -export * from './createFooterCommentModel'; -export * from './createInlineCommentModel'; export * from './customContent'; export * from './customContentBody'; export * from './customContentBodyRepresentation'; @@ -58,14 +56,10 @@ export * from './space'; export * from './spaceDescription'; export * from './spaceDescriptionBodyRepresentation'; export * from './spaceProperty'; -export * from './spacePropertyCreateRequest'; -export * from './spacePropertyUpdateRequest'; export * from './spaceSortOrder'; export * from './spaceStatus'; export * from './spaceType'; export * from './task'; -export * from './updateFooterCommentModel'; -export * from './updateInlineCommentModel'; export * from './version'; export * from './versionedEntity'; export * from './versionSortOrder'; diff --git a/src/version2/models/spacePropertyCreateRequest.ts b/src/version2/models/spacePropertyCreateRequest.ts deleted file mode 100644 index 680a0e6e..00000000 --- a/src/version2/models/spacePropertyCreateRequest.ts +++ /dev/null @@ -1,6 +0,0 @@ -export interface SpacePropertyCreateRequest { - /** Key of the space property */ - key: string; - /** Value of the space property. */ - value: any; -} diff --git a/src/version2/models/spacePropertyUpdateRequest.ts b/src/version2/models/spacePropertyUpdateRequest.ts deleted file mode 100644 index 366887fb..00000000 --- a/src/version2/models/spacePropertyUpdateRequest.ts +++ /dev/null @@ -1,13 +0,0 @@ -export interface SpacePropertyUpdateRequest { - /** Key of the space property */ - key: string; - /** Value of the space property. */ - value: any; - /** New version number and associated message */ - version?: { - /** Version number of the new version. Should be 1 more than the current version number. */ - number?: number; - /** Message to be associated with the new version. */ - message?: string; - }; -} diff --git a/src/version2/models/updateFooterCommentModel.ts b/src/version2/models/updateFooterCommentModel.ts deleted file mode 100644 index de3dae6b..00000000 --- a/src/version2/models/updateFooterCommentModel.ts +++ /dev/null @@ -1,9 +0,0 @@ -export interface UpdateFooterCommentModel { - version?: { - /** Number of new version. Should be 1 higher than current version of the comment. */ - number?: number; - /** Optional message store for the new version. */ - message?: string; - }; - body?: {}; -} diff --git a/src/version2/models/updateInlineCommentModel.ts b/src/version2/models/updateInlineCommentModel.ts deleted file mode 100644 index ead42774..00000000 --- a/src/version2/models/updateInlineCommentModel.ts +++ /dev/null @@ -1,16 +0,0 @@ -export interface UpdateInlineCommentModel { - commentId: number; - version?: { - /** Number of new version. Should be 1 higher than current version of the comment. */ - number?: number; - /** Optional message store for the new version. */ - message?: string; - }; - body?: {}; - /** - * Resolved state of the comment. Set to true to resolve the comment, set to false to reopen it. If matching the - * existing state (i.e. true -> resolved or false -> open/reopened) , no change will occur. A dangling comment cannot - * be updated. - */ - resolved?: boolean; -} diff --git a/src/version2/page.ts b/src/version2/page.ts index 33697ac3..fb4f0193 100644 --- a/src/version2/page.ts +++ b/src/version2/page.ts @@ -25,7 +25,10 @@ export class Page { * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the page * and its corresponding space. */ - async getLabelPages>(parameters: Parameters.GetLabelPages, callback?: never): Promise; + async getLabelPages>( + parameters: Parameters.GetLabelPages, + callback?: never, + ): Promise; async getLabelPages>( parameters: Parameters.GetLabelPages, callback?: Callback, @@ -38,7 +41,7 @@ export class Page { sort: parameters.sort, cursor: parameters.cursor, limit: parameters.limit, - 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + 'serialize-ids-as-strings': true, }, }; @@ -64,7 +67,10 @@ export class Page { * ('Can use' global permission). Only pages that the user has permission to view will be returned. */ async getPages>(parameters?: Parameters.GetPages, callback?: never): Promise; - async getPages>(parameters?: Parameters.GetPages, callback?: Callback): Promise { + async getPages>( + parameters?: Parameters.GetPages, + callback?: Callback, + ): Promise { const config: RequestConfig = { url: '/pages', method: 'GET', @@ -74,7 +80,7 @@ export class Page { 'body-format': parameters?.['body-format'], cursor: parameters?.cursor, limit: parameters?.limit, - 'serialize-ids-as-strings': parameters?.serializeIdsAsStrings, + 'serialize-ids-as-strings': true, }, }; @@ -109,7 +115,7 @@ export class Page { url: '/pages', method: 'POST', params: { - 'serialize-ids-as-strings': parameters?.serializeIdsAsStrings, + 'serialize-ids-as-strings': true, }, }; @@ -138,7 +144,7 @@ export class Page { 'body-format': parameters['body-format'], 'get-draft': parameters['get-draft'], version: parameters.version, - 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + 'serialize-ids-as-strings': true, }, }; @@ -164,7 +170,7 @@ export class Page { url: `/pages/${parameters.id}`, method: 'PUT', params: { - 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + 'serialize-ids-as-strings': true, }, }; @@ -230,7 +236,7 @@ export class Page { 'body-format': parameters['body-format'], cursor: parameters.cursor, limit: parameters.limit, - 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + 'serialize-ids-as-strings': true, }, }; diff --git a/src/version2/parameters/createAttachmentProperty.ts b/src/version2/parameters/createAttachmentProperty.ts index 0fae52bc..61b8c3e2 100644 --- a/src/version2/parameters/createAttachmentProperty.ts +++ b/src/version2/parameters/createAttachmentProperty.ts @@ -3,11 +3,4 @@ import { ContentPropertyCreateRequest } from '../models'; export interface CreateAttachmentProperty extends ContentPropertyCreateRequest { /** The ID of the attachment to create a property for. */ attachmentId: string; - /** - * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for - * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the - * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this - * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. - */ - serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/createBlogPost.ts b/src/version2/parameters/createBlogPost.ts index c9a0a3c5..5ec3d4ea 100644 --- a/src/version2/parameters/createBlogPost.ts +++ b/src/version2/parameters/createBlogPost.ts @@ -1,9 +1 @@ -export interface CreateBlogPost { - /** - * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for - * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the - * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this - * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. - */ - serializeIdsAsStrings?: boolean; -} +export interface CreateBlogPost {} diff --git a/src/version2/parameters/createBlogpostProperty.ts b/src/version2/parameters/createBlogpostProperty.ts index cb4e0a76..fbe8bd06 100644 --- a/src/version2/parameters/createBlogpostProperty.ts +++ b/src/version2/parameters/createBlogpostProperty.ts @@ -3,11 +3,4 @@ import { ContentPropertyCreateRequest } from '../models'; export interface CreateBlogpostProperty extends ContentPropertyCreateRequest { /** The ID of the blog post to create a property for. */ blogpostId: number; - /** - * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for - * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the - * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this - * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. - */ - serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/createCommentProperty.ts b/src/version2/parameters/createCommentProperty.ts index 5e17727c..3d26b59f 100644 --- a/src/version2/parameters/createCommentProperty.ts +++ b/src/version2/parameters/createCommentProperty.ts @@ -3,11 +3,4 @@ import { ContentPropertyCreateRequest } from '../models'; export interface CreateCommentProperty extends ContentPropertyCreateRequest { /** The ID of the comment to create a property for. */ commentId: number; - /** - * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for - * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the - * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this - * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. - */ - serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/createCustomContent.ts b/src/version2/parameters/createCustomContent.ts index 1a53812b..8637ca79 100644 --- a/src/version2/parameters/createCustomContent.ts +++ b/src/version2/parameters/createCustomContent.ts @@ -1,9 +1 @@ -export interface CreateCustomContent { - /** - * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for - * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the - * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this - * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. - */ - serializeIdsAsStrings?: boolean; -} +export interface CreateCustomContent {} diff --git a/src/version2/parameters/createCustomContentProperty.ts b/src/version2/parameters/createCustomContentProperty.ts index 2cb1f2f7..074f8b63 100644 --- a/src/version2/parameters/createCustomContentProperty.ts +++ b/src/version2/parameters/createCustomContentProperty.ts @@ -3,11 +3,4 @@ import { ContentPropertyCreateRequest } from '../models'; export interface CreateCustomContentProperty extends ContentPropertyCreateRequest { /** The ID of the custom content to create a property for. */ customContentId: number; - /** - * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for - * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the - * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this - * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. - */ - serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/createFooterComment.ts b/src/version2/parameters/createFooterComment.ts index c4e4a72a..2621501a 100644 --- a/src/version2/parameters/createFooterComment.ts +++ b/src/version2/parameters/createFooterComment.ts @@ -1,11 +1,17 @@ -import { CreateFooterCommentModel } from '../models'; - -export interface CreateFooterComment extends CreateFooterCommentModel { +export interface CreateFooterComment { /** - * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for - * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the - * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this - * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. + * ID of the containing blog post, if intending to create a top level footer comment. Do not provide if creating a + * reply. */ - serializeIdsAsStrings?: boolean; + blogPostId?: string; + /** ID of the containing page, if intending to create a top level footer comment. Do not provide if creating a reply. */ + pageId?: string; + /** ID of the parent comment, if intending to create a reply. Do not provide if creating a top level comment. */ + parentCommentId?: string; + body?: { + /** Body of the comment */ + value?: string; + /** Format of the body's value. */ + representation?: string; + }; } diff --git a/src/version2/parameters/createInlineComment.ts b/src/version2/parameters/createInlineComment.ts index 807f8c3e..c391687b 100644 --- a/src/version2/parameters/createInlineComment.ts +++ b/src/version2/parameters/createInlineComment.ts @@ -1,11 +1,28 @@ -import { CreateInlineCommentModel } from '../models'; - -export interface CreateInlineComment extends CreateInlineCommentModel { +export interface CreateInlineComment { /** - * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for - * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the - * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this - * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. + * ID of the containing blog post, if intending to create a top level footer comment. Do not provide if creating a + * reply. */ - serializeIdsAsStrings?: boolean; + blogPostId?: string; + /** ID of the containing page, if intending to create a top level footer comment. Do not provide if creating a reply. */ + pageId?: string; + /** ID of the parent comment, if intending to create a reply. Do not provide if creating a top level comment. */ + parentCommentId?: string; + body?: {}; + /** + * Object describing the text to highlight on the page/blog post. Only applicable for top level inline comments (not + * replies) and required in that case. + */ + inlineCommentProperties?: { + /** The text to highlight */ + textSelection?: string; + /** The number of matches for the selected text on the page (should be strictly greater than textSelectionMatchIndex) */ + textSelectionMatchCount?: number; + /** + * The match index to highlight. This is zero-based. E.g. if you have 3 occurrences of "hello world" on a page and + * you want to highlight the second occurrence, you should pass 1 for textSelectionMatchIndex and 3 for + * textSelectionMatchCount. + */ + textSelectionMatchIndex?: number; + }; } diff --git a/src/version2/parameters/createPage.ts b/src/version2/parameters/createPage.ts index bca4781e..f3c93e3c 100644 --- a/src/version2/parameters/createPage.ts +++ b/src/version2/parameters/createPage.ts @@ -1,9 +1 @@ -export interface CreatePage { - /** - * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for - * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the - * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this - * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. - */ - serializeIdsAsStrings?: boolean; -} +export interface CreatePage {} diff --git a/src/version2/parameters/createPageProperty.ts b/src/version2/parameters/createPageProperty.ts index 909e60ef..03f6ce2a 100644 --- a/src/version2/parameters/createPageProperty.ts +++ b/src/version2/parameters/createPageProperty.ts @@ -3,11 +3,4 @@ import { ContentPropertyCreateRequest } from '../models'; export interface CreatePageProperty extends ContentPropertyCreateRequest { /** The ID of the page to create a property for. */ pageId: number; - /** - * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for - * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the - * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this - * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. - */ - serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/createSpaceProperty.ts b/src/version2/parameters/createSpaceProperty.ts index 4f8dba7b..7e7388ea 100644 --- a/src/version2/parameters/createSpaceProperty.ts +++ b/src/version2/parameters/createSpaceProperty.ts @@ -1,13 +1,8 @@ -import { SpacePropertyCreateRequest } from '../models'; - -export interface CreateSpaceProperty extends SpacePropertyCreateRequest { +export interface CreateSpaceProperty { /** The ID of the space for which space properties should be returned. */ spaceId: number; - /** - * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for - * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the - * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this - * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. - */ - serializeIdsAsStrings?: boolean; + /** Key of the space property */ + key: string; + /** Value of the space property. */ + value: any; } diff --git a/src/version2/parameters/getAttachmentById.ts b/src/version2/parameters/getAttachmentById.ts index 26f3f4af..389ecb03 100644 --- a/src/version2/parameters/getAttachmentById.ts +++ b/src/version2/parameters/getAttachmentById.ts @@ -9,11 +9,4 @@ export interface GetAttachmentById { * details. */ version?: number; - /** - * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for - * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the - * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this - * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. - */ - serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getAttachmentContentProperties.ts b/src/version2/parameters/getAttachmentContentProperties.ts index e93a7bda..b69b6cd6 100644 --- a/src/version2/parameters/getAttachmentContentProperties.ts +++ b/src/version2/parameters/getAttachmentContentProperties.ts @@ -15,11 +15,4 @@ export interface GetAttachmentContentProperties { * relative URL that will return the next set of results. */ limit?: number; - /** - * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for - * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the - * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this - * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. - */ - serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getAttachmentContentPropertiesById.ts b/src/version2/parameters/getAttachmentContentPropertiesById.ts index 99676f1d..f170105b 100644 --- a/src/version2/parameters/getAttachmentContentPropertiesById.ts +++ b/src/version2/parameters/getAttachmentContentPropertiesById.ts @@ -3,11 +3,4 @@ export interface GetAttachmentContentPropertiesById { attachmentId: string; /** The ID of the content property to be returned */ propertyId: number; - /** - * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for - * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the - * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this - * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. - */ - serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getAttachmentLabels.ts b/src/version2/parameters/getAttachmentLabels.ts index eb67e297..49f5ace8 100644 --- a/src/version2/parameters/getAttachmentLabels.ts +++ b/src/version2/parameters/getAttachmentLabels.ts @@ -15,11 +15,4 @@ export interface GetAttachmentLabels { * URL that will return the next set of results. */ limit?: number; - /** - * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for - * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the - * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this - * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. - */ - serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getBlogPostById.ts b/src/version2/parameters/getBlogPostById.ts index 5f29c7e1..d8881974 100644 --- a/src/version2/parameters/getBlogPostById.ts +++ b/src/version2/parameters/getBlogPostById.ts @@ -16,11 +16,4 @@ export interface GetBlogPostById { * details. */ version?: number; - /** - * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for - * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the - * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this - * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. - */ - serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getBlogPostFooterComments.ts b/src/version2/parameters/getBlogPostFooterComments.ts index 42990c6f..07103f65 100644 --- a/src/version2/parameters/getBlogPostFooterComments.ts +++ b/src/version2/parameters/getBlogPostFooterComments.ts @@ -18,11 +18,4 @@ export interface GetBlogPostFooterComments { * relative URL that will return the next set of results. */ limit?: number; - /** - * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for - * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the - * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this - * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. - */ - serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getBlogPostInlineComments.ts b/src/version2/parameters/getBlogPostInlineComments.ts index 07ad38be..71d26dfd 100644 --- a/src/version2/parameters/getBlogPostInlineComments.ts +++ b/src/version2/parameters/getBlogPostInlineComments.ts @@ -18,11 +18,4 @@ export interface GetBlogPostInlineComments { * relative URL that will return the next set of results. */ limit?: number; - /** - * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for - * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the - * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this - * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. - */ - serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getBlogPostLabels.ts b/src/version2/parameters/getBlogPostLabels.ts index 0bf2f9c7..e8eab7b8 100644 --- a/src/version2/parameters/getBlogPostLabels.ts +++ b/src/version2/parameters/getBlogPostLabels.ts @@ -15,11 +15,4 @@ export interface GetBlogPostLabels { * URL that will return the next set of results. */ limit?: number; - /** - * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for - * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the - * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this - * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. - */ - serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getBlogPosts.ts b/src/version2/parameters/getBlogPosts.ts index 0a7ee9ac..20d36e9c 100644 --- a/src/version2/parameters/getBlogPosts.ts +++ b/src/version2/parameters/getBlogPosts.ts @@ -20,11 +20,4 @@ export interface GetBlogPosts { * retrieve a relative URL that will return the next set of results. */ limit?: number; - /** - * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for - * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the - * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this - * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. - */ - serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getBlogPostsInSpace.ts b/src/version2/parameters/getBlogPostsInSpace.ts index ddcafc16..512f6731 100644 --- a/src/version2/parameters/getBlogPostsInSpace.ts +++ b/src/version2/parameters/getBlogPostsInSpace.ts @@ -20,11 +20,4 @@ export interface GetBlogPostsInSpace { * relative URL that will return the next set of results. */ limit?: number; - /** - * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for - * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the - * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this - * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. - */ - serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getBlogpostAttachments.ts b/src/version2/parameters/getBlogpostAttachments.ts index d5089871..29636d7a 100644 --- a/src/version2/parameters/getBlogpostAttachments.ts +++ b/src/version2/parameters/getBlogpostAttachments.ts @@ -17,11 +17,4 @@ export interface GetBlogpostAttachments { * relative URL that will return the next set of results. */ limit?: number; - /** - * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for - * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the - * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this - * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. - */ - serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getBlogpostContentProperties.ts b/src/version2/parameters/getBlogpostContentProperties.ts index b1b5951a..dbf9bf53 100644 --- a/src/version2/parameters/getBlogpostContentProperties.ts +++ b/src/version2/parameters/getBlogpostContentProperties.ts @@ -15,11 +15,4 @@ export interface GetBlogpostContentProperties { * relative URL that will return the next set of results. */ limit?: number; - /** - * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for - * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the - * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this - * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. - */ - serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getBlogpostContentPropertiesById.ts b/src/version2/parameters/getBlogpostContentPropertiesById.ts index 8a219f7d..5a3d87cb 100644 --- a/src/version2/parameters/getBlogpostContentPropertiesById.ts +++ b/src/version2/parameters/getBlogpostContentPropertiesById.ts @@ -3,11 +3,4 @@ export interface GetBlogpostContentPropertiesById { blogpostId: number; /** The ID of the property being requested */ propertyId: number; - /** - * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for - * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the - * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this - * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. - */ - serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getChildCustomContent.ts b/src/version2/parameters/getChildCustomContent.ts index 4cac4439..32652afa 100644 --- a/src/version2/parameters/getChildCustomContent.ts +++ b/src/version2/parameters/getChildCustomContent.ts @@ -16,11 +16,4 @@ export interface GetChildCustomContent { limit?: number; /** Used to sort the result by a particular field. */ sort?: string; - /** - * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for - * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the - * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this - * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. - */ - serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getChildPages.ts b/src/version2/parameters/getChildPages.ts index 2768e4b5..d33c0f52 100644 --- a/src/version2/parameters/getChildPages.ts +++ b/src/version2/parameters/getChildPages.ts @@ -13,11 +13,4 @@ export interface GetChildPages { limit?: number; /** Used to sort the result by a particular field. */ sort?: string; - /** - * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for - * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the - * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this - * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. - */ - serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getCommentContentProperties.ts b/src/version2/parameters/getCommentContentProperties.ts index 52bf6d60..3dd4ecee 100644 --- a/src/version2/parameters/getCommentContentProperties.ts +++ b/src/version2/parameters/getCommentContentProperties.ts @@ -15,11 +15,4 @@ export interface GetCommentContentProperties { * relative URL that will return the next set of results. */ limit?: number; - /** - * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for - * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the - * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this - * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. - */ - serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getCommentContentPropertiesById.ts b/src/version2/parameters/getCommentContentPropertiesById.ts index 21dffb3d..8edad59a 100644 --- a/src/version2/parameters/getCommentContentPropertiesById.ts +++ b/src/version2/parameters/getCommentContentPropertiesById.ts @@ -3,11 +3,4 @@ export interface GetCommentContentPropertiesById { commentId: number; /** The ID of the content property being requested. */ propertyId: number; - /** - * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for - * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the - * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this - * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. - */ - serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getCustomContentAttachments.ts b/src/version2/parameters/getCustomContentAttachments.ts index b6ba64b9..2102c9fd 100644 --- a/src/version2/parameters/getCustomContentAttachments.ts +++ b/src/version2/parameters/getCustomContentAttachments.ts @@ -17,11 +17,4 @@ export interface GetCustomContentAttachments { * relative URL that will return the next set of results. */ limit?: number; - /** - * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for - * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the - * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this - * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. - */ - serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getCustomContentById.ts b/src/version2/parameters/getCustomContentById.ts index 7b855c2d..15a6eff3 100644 --- a/src/version2/parameters/getCustomContentById.ts +++ b/src/version2/parameters/getCustomContentById.ts @@ -17,11 +17,4 @@ export interface GetCustomContentById { * details. */ version?: number; - /** - * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for - * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the - * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this - * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. - */ - serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getCustomContentByType.ts b/src/version2/parameters/getCustomContentByType.ts index ea4c6190..e9666d75 100644 --- a/src/version2/parameters/getCustomContentByType.ts +++ b/src/version2/parameters/getCustomContentByType.ts @@ -27,11 +27,4 @@ export interface GetCustomContentByType { * be returned. If the custom content body type is `raw`, only the `raw` body format is able to be returned. */ 'body-format'?: {}; - /** - * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for - * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the - * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this - * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. - */ - serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getCustomContentByTypeInBlogPost.ts b/src/version2/parameters/getCustomContentByTypeInBlogPost.ts index c8463126..13bfbfe1 100644 --- a/src/version2/parameters/getCustomContentByTypeInBlogPost.ts +++ b/src/version2/parameters/getCustomContentByTypeInBlogPost.ts @@ -24,11 +24,4 @@ export interface GetCustomContentByTypeInBlogPost { * be returned. If the custom content body type is `raw`, only the `raw` body format is able to be returned. */ 'body-format'?: {}; - /** - * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for - * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the - * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this - * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. - */ - serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getCustomContentByTypeInPage.ts b/src/version2/parameters/getCustomContentByTypeInPage.ts index ebc3c2c5..8cad28de 100644 --- a/src/version2/parameters/getCustomContentByTypeInPage.ts +++ b/src/version2/parameters/getCustomContentByTypeInPage.ts @@ -24,11 +24,4 @@ export interface GetCustomContentByTypeInPage { * be returned. If the custom content body type is `raw`, only the `raw` body format is able to be returned. */ 'body-format'?: {}; - /** - * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for - * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the - * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this - * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. - */ - serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getCustomContentByTypeInSpace.ts b/src/version2/parameters/getCustomContentByTypeInSpace.ts index ffed94bc..13cb1642 100644 --- a/src/version2/parameters/getCustomContentByTypeInSpace.ts +++ b/src/version2/parameters/getCustomContentByTypeInSpace.ts @@ -24,11 +24,4 @@ export interface GetCustomContentByTypeInSpace { * be returned. If the custom content body type is `raw`, only the `raw` body format is able to be returned. */ 'body-format'?: {}; - /** - * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for - * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the - * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this - * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. - */ - serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getCustomContentContentProperties.ts b/src/version2/parameters/getCustomContentContentProperties.ts index 3ffa3172..6c438597 100644 --- a/src/version2/parameters/getCustomContentContentProperties.ts +++ b/src/version2/parameters/getCustomContentContentProperties.ts @@ -15,11 +15,4 @@ export interface GetCustomContentContentProperties { * relative URL that will return the next set of results. */ limit?: number; - /** - * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for - * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the - * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this - * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. - */ - serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getCustomContentContentPropertiesById.ts b/src/version2/parameters/getCustomContentContentPropertiesById.ts index dd922783..46dc19ba 100644 --- a/src/version2/parameters/getCustomContentContentPropertiesById.ts +++ b/src/version2/parameters/getCustomContentContentPropertiesById.ts @@ -3,11 +3,4 @@ export interface GetCustomContentContentPropertiesById { customContentId: number; /** The ID of the content property being requested. */ propertyId: number; - /** - * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for - * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the - * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this - * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. - */ - serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getCustomContentLabels.ts b/src/version2/parameters/getCustomContentLabels.ts index f58d5ee8..02afd2cf 100644 --- a/src/version2/parameters/getCustomContentLabels.ts +++ b/src/version2/parameters/getCustomContentLabels.ts @@ -15,11 +15,4 @@ export interface GetCustomContentLabels { * URL that will return the next set of results. */ limit?: number; - /** - * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for - * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the - * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this - * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. - */ - serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getFooterCommentById.ts b/src/version2/parameters/getFooterCommentById.ts index 1cb61eaa..3055ec30 100644 --- a/src/version2/parameters/getFooterCommentById.ts +++ b/src/version2/parameters/getFooterCommentById.ts @@ -11,11 +11,4 @@ export interface GetFooterCommentById { * details. */ version?: number; - /** - * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for - * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the - * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this - * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. - */ - serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getFooterCommentChildren.ts b/src/version2/parameters/getFooterCommentChildren.ts index 1894886a..2279f902 100644 --- a/src/version2/parameters/getFooterCommentChildren.ts +++ b/src/version2/parameters/getFooterCommentChildren.ts @@ -18,11 +18,4 @@ export interface GetFooterCommentChildren { * relative URL that will return the next set of results. */ limit?: number; - /** - * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for - * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the - * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this - * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. - */ - serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getInlineCommentById.ts b/src/version2/parameters/getInlineCommentById.ts index 08beb43f..616977f3 100644 --- a/src/version2/parameters/getInlineCommentById.ts +++ b/src/version2/parameters/getInlineCommentById.ts @@ -11,11 +11,4 @@ export interface GetInlineCommentById { * details. */ version?: number; - /** - * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for - * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the - * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this - * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. - */ - serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getInlineCommentChildren.ts b/src/version2/parameters/getInlineCommentChildren.ts index a1bfe7ba..4123b15d 100644 --- a/src/version2/parameters/getInlineCommentChildren.ts +++ b/src/version2/parameters/getInlineCommentChildren.ts @@ -1,13 +1,7 @@ export interface GetInlineCommentChildren { /** The ID of the parent comment for which inline comment children should be returned. */ id: number; - /** - * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for - * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the - * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this - * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. - */ - serializeIdsAsStrings?: boolean; + /** * The content format type to be returned in the `body` field of the response. If available, the representation will * be available under a response field of the same name under the `body` field. diff --git a/src/version2/parameters/getLabelAttachments.ts b/src/version2/parameters/getLabelAttachments.ts index af3a63bb..b6504637 100644 --- a/src/version2/parameters/getLabelAttachments.ts +++ b/src/version2/parameters/getLabelAttachments.ts @@ -13,11 +13,4 @@ export interface GetLabelAttachments { * URL that will return the next set of results. */ limit?: number; - /** - * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for - * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the - * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this - * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. - */ - serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getLabelBlogPosts.ts b/src/version2/parameters/getLabelBlogPosts.ts index 7787eafe..7fbada6b 100644 --- a/src/version2/parameters/getLabelBlogPosts.ts +++ b/src/version2/parameters/getLabelBlogPosts.ts @@ -20,11 +20,4 @@ export interface GetLabelBlogPosts { * relative URL that will return the next set of results. */ limit?: number; - /** - * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for - * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the - * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this - * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. - */ - serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getLabelPages.ts b/src/version2/parameters/getLabelPages.ts index 80d1fffd..371232d4 100644 --- a/src/version2/parameters/getLabelPages.ts +++ b/src/version2/parameters/getLabelPages.ts @@ -18,11 +18,4 @@ export interface GetLabelPages { * URL that will return the next set of results. */ limit?: number; - /** - * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for - * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the - * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this - * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. - */ - serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getPageAttachments.ts b/src/version2/parameters/getPageAttachments.ts index b9750924..a3d16158 100644 --- a/src/version2/parameters/getPageAttachments.ts +++ b/src/version2/parameters/getPageAttachments.ts @@ -17,11 +17,4 @@ export interface GetPageAttachments { * relative URL that will return the next set of results. */ limit?: number; - /** - * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for - * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the - * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this - * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. - */ - serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getPageById.ts b/src/version2/parameters/getPageById.ts index ef0da5ef..554f31ad 100644 --- a/src/version2/parameters/getPageById.ts +++ b/src/version2/parameters/getPageById.ts @@ -13,11 +13,4 @@ export interface GetPageById { * details. */ version?: number; - /** - * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for - * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the - * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this - * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. - */ - serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getPageContentProperties.ts b/src/version2/parameters/getPageContentProperties.ts index 35f94b06..4a7599c0 100644 --- a/src/version2/parameters/getPageContentProperties.ts +++ b/src/version2/parameters/getPageContentProperties.ts @@ -15,11 +15,4 @@ export interface GetPageContentProperties { * relative URL that will return the next set of results. */ limit?: number; - /** - * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for - * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the - * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this - * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. - */ - serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getPageContentPropertiesById.ts b/src/version2/parameters/getPageContentPropertiesById.ts index baafa0e9..72e05c77 100644 --- a/src/version2/parameters/getPageContentPropertiesById.ts +++ b/src/version2/parameters/getPageContentPropertiesById.ts @@ -3,11 +3,4 @@ export interface GetPageContentPropertiesById { pageId: number; /** The ID of the content property being requested. */ propertyId: number; - /** - * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for - * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the - * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this - * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. - */ - serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getPageFooterComments.ts b/src/version2/parameters/getPageFooterComments.ts index 693a56c5..c8976979 100644 --- a/src/version2/parameters/getPageFooterComments.ts +++ b/src/version2/parameters/getPageFooterComments.ts @@ -18,11 +18,4 @@ export interface GetPageFooterComments { * relative URL that will return the next set of results. */ limit?: number; - /** - * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for - * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the - * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this - * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. - */ - serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getPageInlineComments.ts b/src/version2/parameters/getPageInlineComments.ts index f841f343..32900097 100644 --- a/src/version2/parameters/getPageInlineComments.ts +++ b/src/version2/parameters/getPageInlineComments.ts @@ -18,11 +18,4 @@ export interface GetPageInlineComments { * relative URL that will return the next set of results. */ limit?: number; - /** - * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for - * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the - * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this - * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. - */ - serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getPageLabels.ts b/src/version2/parameters/getPageLabels.ts index 643fdd02..b883e437 100644 --- a/src/version2/parameters/getPageLabels.ts +++ b/src/version2/parameters/getPageLabels.ts @@ -15,11 +15,4 @@ export interface GetPageLabels { * URL that will return the next set of results. */ limit?: number; - /** - * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for - * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the - * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this - * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. - */ - serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getPages.ts b/src/version2/parameters/getPages.ts index 751eb401..01208350 100644 --- a/src/version2/parameters/getPages.ts +++ b/src/version2/parameters/getPages.ts @@ -18,11 +18,4 @@ export interface GetPages { * URL that will return the next set of results. */ limit?: number; - /** - * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for - * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the - * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this - * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. - */ - serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getPagesInSpace.ts b/src/version2/parameters/getPagesInSpace.ts index a6d21bfd..52d21d67 100644 --- a/src/version2/parameters/getPagesInSpace.ts +++ b/src/version2/parameters/getPagesInSpace.ts @@ -18,11 +18,4 @@ export interface GetPagesInSpace { * URL that will return the next set of results. */ limit?: number; - /** - * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for - * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the - * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this - * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. - */ - serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getSpaceProperties.ts b/src/version2/parameters/getSpaceProperties.ts index ffe13739..1d14984f 100644 --- a/src/version2/parameters/getSpaceProperties.ts +++ b/src/version2/parameters/getSpaceProperties.ts @@ -16,11 +16,4 @@ export interface GetSpaceProperties { * URL that will return the next set of results. */ limit?: number; - /** - * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for - * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the - * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this - * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. - */ - serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getSpacePropertyById.ts b/src/version2/parameters/getSpacePropertyById.ts index 2b6c262e..fef871c6 100644 --- a/src/version2/parameters/getSpacePropertyById.ts +++ b/src/version2/parameters/getSpacePropertyById.ts @@ -3,11 +3,4 @@ export interface GetSpacePropertyById { spaceId: number; /** The ID of the property to be retrieved. */ propertyId: number; - /** - * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for - * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the - * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this - * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. - */ - serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getSpaces.ts b/src/version2/parameters/getSpaces.ts index 75ed60ac..12fe1a12 100644 --- a/src/version2/parameters/getSpaces.ts +++ b/src/version2/parameters/getSpaces.ts @@ -26,11 +26,4 @@ export interface GetSpaces { * relative URL that will return the next set of results. */ limit?: number; - /** - * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for - * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the - * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this - * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. - */ - serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getTaskById.ts b/src/version2/parameters/getTaskById.ts index 75b1a162..67b0df77 100644 --- a/src/version2/parameters/getTaskById.ts +++ b/src/version2/parameters/getTaskById.ts @@ -6,11 +6,4 @@ export interface GetTaskById { * be available under a response field of the same name under the `body` field. */ 'body-format'?: {}; - /** - * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for - * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the - * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this - * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. - */ - serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/getTasks.ts b/src/version2/parameters/getTasks.ts index 8aa46935..4331920d 100644 --- a/src/version2/parameters/getTasks.ts +++ b/src/version2/parameters/getTasks.ts @@ -59,11 +59,4 @@ export interface GetTasks { * URL that will return the next set of results. */ limit?: number; - /** - * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for - * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the - * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this - * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. - */ - serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/updateAttachmentPropertyById.ts b/src/version2/parameters/updateAttachmentPropertyById.ts index 56e74b40..bdcfbd49 100644 --- a/src/version2/parameters/updateAttachmentPropertyById.ts +++ b/src/version2/parameters/updateAttachmentPropertyById.ts @@ -5,11 +5,4 @@ export interface UpdateAttachmentPropertyById extends ContentPropertyUpdateReque attachmentId: string; /** The ID of the property to be updated. */ propertyId: number; - /** - * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for - * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the - * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this - * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. - */ - serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/updateBlogPost.ts b/src/version2/parameters/updateBlogPost.ts index 8ef03274..0164264d 100644 --- a/src/version2/parameters/updateBlogPost.ts +++ b/src/version2/parameters/updateBlogPost.ts @@ -4,11 +4,4 @@ export interface UpdateBlogPost { * results. */ id: number; - /** - * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for - * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the - * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this - * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. - */ - serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/updateBlogpostPropertyById.ts b/src/version2/parameters/updateBlogpostPropertyById.ts index 26baab89..d10dda04 100644 --- a/src/version2/parameters/updateBlogpostPropertyById.ts +++ b/src/version2/parameters/updateBlogpostPropertyById.ts @@ -5,11 +5,4 @@ export interface UpdateBlogpostPropertyById extends ContentPropertyUpdateRequest blogpostId: number; /** The ID of the property to be updated. */ propertyId: number; - /** - * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for - * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the - * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this - * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. - */ - serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/updateCommentPropertyById.ts b/src/version2/parameters/updateCommentPropertyById.ts index aec2d9b8..648e7b6e 100644 --- a/src/version2/parameters/updateCommentPropertyById.ts +++ b/src/version2/parameters/updateCommentPropertyById.ts @@ -5,11 +5,4 @@ export interface UpdateCommentPropertyById extends ContentPropertyUpdateRequest commentId: number; /** The ID of the property to be updated. */ propertyId: number; - /** - * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for - * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the - * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this - * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. - */ - serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/updateCustomContent.ts b/src/version2/parameters/updateCustomContent.ts index 16294c3f..31dd61b2 100644 --- a/src/version2/parameters/updateCustomContent.ts +++ b/src/version2/parameters/updateCustomContent.ts @@ -4,11 +4,4 @@ export interface UpdateCustomContent { * and filter the results. */ id: number; - /** - * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for - * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the - * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this - * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. - */ - serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/updateCustomContentPropertyById.ts b/src/version2/parameters/updateCustomContentPropertyById.ts index 884e021a..3c98df5f 100644 --- a/src/version2/parameters/updateCustomContentPropertyById.ts +++ b/src/version2/parameters/updateCustomContentPropertyById.ts @@ -5,11 +5,4 @@ export interface UpdateCustomContentPropertyById extends ContentPropertyUpdateRe customContentId: number; /** The ID of the property to be updated. */ propertyId: number; - /** - * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for - * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the - * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this - * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. - */ - serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/updateFooterComment.ts b/src/version2/parameters/updateFooterComment.ts index 5cfd7212..f4f2295b 100644 --- a/src/version2/parameters/updateFooterComment.ts +++ b/src/version2/parameters/updateFooterComment.ts @@ -1,13 +1,11 @@ -import { UpdateFooterCommentModel } from '../models'; - -export interface UpdateFooterComment extends UpdateFooterCommentModel { +export interface UpdateFooterComment { /** The ID of the comment to be retrieved. */ commentId: number; - /** - * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for - * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the - * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this - * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. - */ - serializeIdsAsStrings?: boolean; + version?: { + /** Number of new version. Should be 1 higher than current version of the comment. */ + number?: number; + /** Optional message store for the new version. */ + message?: string; + }; + body?: {}; } diff --git a/src/version2/parameters/updateInlineComment.ts b/src/version2/parameters/updateInlineComment.ts index 21ca58eb..f7b37029 100644 --- a/src/version2/parameters/updateInlineComment.ts +++ b/src/version2/parameters/updateInlineComment.ts @@ -1,13 +1,17 @@ -import { UpdateInlineCommentModel } from '../models'; - -export interface UpdateInlineComment extends UpdateInlineCommentModel { +export interface UpdateInlineComment { /** The ID of the comment to be retrieved. */ commentId: number; + version?: { + /** Number of new version. Should be 1 higher than current version of the comment. */ + number?: number; + /** Optional message store for the new version. */ + message?: string; + }; + body?: {}; /** - * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for - * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the - * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this - * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. + * Resolved state of the comment. Set to true to resolve the comment, set to false to reopen it. If matching the + * existing state (i.e. true -> resolved or false -> open/reopened) , no change will occur. A dangling comment cannot + * be updated. */ - serializeIdsAsStrings?: boolean; + resolved?: boolean; } diff --git a/src/version2/parameters/updatePage.ts b/src/version2/parameters/updatePage.ts index bc562a81..c389f18a 100644 --- a/src/version2/parameters/updatePage.ts +++ b/src/version2/parameters/updatePage.ts @@ -1,11 +1,4 @@ export interface UpdatePage { /** The ID of the page to be updated. If you don't know the page ID, use Get Pages and filter the results. */ id: number; - /** - * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for - * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the - * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this - * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. - */ - serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/updatePagePropertyById.ts b/src/version2/parameters/updatePagePropertyById.ts index df61b6d8..3a53f276 100644 --- a/src/version2/parameters/updatePagePropertyById.ts +++ b/src/version2/parameters/updatePagePropertyById.ts @@ -5,11 +5,4 @@ export interface UpdatePagePropertyById extends ContentPropertyUpdateRequest { pageId: number; /** The ID of the property to be updated. */ propertyId: number; - /** - * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for - * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the - * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this - * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. - */ - serializeIdsAsStrings?: boolean; } diff --git a/src/version2/parameters/updateSpacePropertyById.ts b/src/version2/parameters/updateSpacePropertyById.ts index 82f48c9c..0b114dab 100644 --- a/src/version2/parameters/updateSpacePropertyById.ts +++ b/src/version2/parameters/updateSpacePropertyById.ts @@ -1,15 +1,17 @@ -import { SpacePropertyUpdateRequest } from '../models'; - -export interface UpdateSpacePropertyById extends SpacePropertyUpdateRequest { +export interface UpdateSpacePropertyById { /** The ID of the space the property belongs to. */ spaceId: number; /** The ID of the property to be updated. */ propertyId: number; - /** - * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for - * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the - * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this - * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. - */ - serializeIdsAsStrings?: boolean; + /** Key of the space property */ + key: string; + /** Value of the space property. */ + value: any; + /** New version number and associated message */ + version?: { + /** Version number of the new version. Should be 1 more than the current version number. */ + number?: number; + /** Message to be associated with the new version. */ + message?: string; + }; } diff --git a/src/version2/parameters/updateTask.ts b/src/version2/parameters/updateTask.ts index a61d6d4e..032fe1ee 100644 --- a/src/version2/parameters/updateTask.ts +++ b/src/version2/parameters/updateTask.ts @@ -1,11 +1,4 @@ export interface UpdateTask { /** The ID of the task to be updated. If you don't know the task ID, use Get tasks and filter the results. */ id: number; - /** - * Due to JavaScript's max integer representation of 2^53-1, the type of any IDs returned in the response body for - * this endpoint will be changed from a numeric type to a string type at the end of the deprecation period. In the - * meantime, this query param can be passed to this endpoint to opt-in to this change now. See this - * [changelog](https://developer.atlassian.com/cloud/confluence/changelog/#CHANGE-905) for more detail. - */ - serializeIdsAsStrings?: boolean; } diff --git a/src/version2/space.ts b/src/version2/space.ts index d46c64b1..f156985b 100644 --- a/src/version2/space.ts +++ b/src/version2/space.ts @@ -28,7 +28,10 @@ export class Space { * ('Can use' global permission). Only spaces that the user has permission to view will be returned. */ async getSpaces>(parameters?: Parameters.GetSpaces, callback?: never): Promise; - async getSpaces>(parameters?: Parameters.GetSpaces, callback?: Callback): Promise { + async getSpaces>( + parameters?: Parameters.GetSpaces, + callback?: Callback, + ): Promise { const config: RequestConfig = { url: '/spaces', method: 'GET', @@ -42,7 +45,7 @@ export class Space { 'description-format': parameters?.['description-format'], cursor: parameters?.cursor, limit: parameters?.limit, - 'serialize-ids-as-strings': parameters?.serializeIdsAsStrings, + 'serialize-ids-as-strings': true, }, }; diff --git a/src/version2/spaceProperties.ts b/src/version2/spaceProperties.ts index 7c4684c6..341d93c1 100644 --- a/src/version2/spaceProperties.ts +++ b/src/version2/spaceProperties.ts @@ -42,7 +42,7 @@ export class SpaceProperties { key: parameters.key, cursor: parameters.cursor, limit: parameters.limit, - 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + 'serialize-ids-as-strings': true, }, }; @@ -77,7 +77,7 @@ export class SpaceProperties { url: `/spaces/${parameters.spaceId}/properties`, method: 'POST', params: { - 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + 'serialize-ids-as-strings': true, }, data: { key: parameters.key, @@ -116,7 +116,7 @@ export class SpaceProperties { url: `/spaces/${parameters.spaceId}/properties/${parameters.propertyId}`, method: 'GET', params: { - 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + 'serialize-ids-as-strings': true, }, }; @@ -151,7 +151,7 @@ export class SpaceProperties { url: `/spaces/${parameters.spaceId}/properties/${parameters.propertyId}`, method: 'PUT', params: { - 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + 'serialize-ids-as-strings': true, }, data: { key: parameters.key, diff --git a/src/version2/task.ts b/src/version2/task.ts index 901822b1..c6dcf908 100644 --- a/src/version2/task.ts +++ b/src/version2/task.ts @@ -26,7 +26,10 @@ export class Task { * ('Can use' global permission). Only tasks that the user has permission to view will be returned. */ async getTasks>(parameters?: Parameters.GetTasks, callback?: never): Promise; - async getTasks>(parameters?: Parameters.GetTasks, callback?: Callback): Promise { + async getTasks>( + parameters?: Parameters.GetTasks, + callback?: Callback, + ): Promise { const config: RequestConfig = { url: '/tasks', method: 'GET', @@ -49,7 +52,7 @@ export class Task { 'completed-at-to': parameters?.['completed-at-to'], cursor: parameters?.cursor, limit: parameters?.limit, - 'serialize-ids-as-strings': parameters?.serializeIdsAsStrings, + 'serialize-ids-as-strings': true, }, }; @@ -76,7 +79,7 @@ export class Task { method: 'GET', params: { 'body-format': parameters['body-format'], - 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + 'serialize-ids-as-strings': true, }, }; @@ -102,7 +105,7 @@ export class Task { url: `/tasks/${parameters.id}`, method: 'PUT', params: { - 'serialize-ids-as-strings': parameters.serializeIdsAsStrings, + 'serialize-ids-as-strings': true, }, }; From 8cde4793e669e145a3be59db9b4726952c25aef1 Mon Sep 17 00:00:00 2001 From: Vladislav Tupikin Date: Wed, 7 Jun 2023 23:24:11 +0400 Subject: [PATCH 13/44] dependencies upgraded --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 36896f15..72f81d33 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,7 +16,7 @@ "tslib": "^2.5.3" }, "devDependencies": { - "@swc-node/register": "1.6.5", + "@swc-node/register": "^1.6.5", "@swc/helpers": "^0.5.1", "@types/express": "^4.17.17", "@types/oauth": "^0.9.1", diff --git a/package.json b/package.json index 7a743682..7be33bd0 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "atlassian" ], "devDependencies": { - "@swc-node/register": "1.6.5", + "@swc-node/register": "^1.6.5", "@swc/helpers": "^0.5.1", "@types/express": "^4.17.17", "@types/oauth": "^0.9.1", From 263cef90599ded79189a8e850dd99b8566cecc98 Mon Sep 17 00:00:00 2001 From: Vladislav Tupikin Date: Fri, 23 Jun 2023 15:49:37 +0400 Subject: [PATCH 14/44] sorts replaced to right versions (#56) --- package-lock.json | 484 ++++++------------ package.json | 14 +- .../getAttachmentContentProperties.ts | 2 +- .../parameters/getAttachmentVersions.ts | 2 +- .../parameters/getBlogPostFooterComments.ts | 2 +- .../parameters/getBlogPostInlineComments.ts | 2 +- .../parameters/getBlogPostVersions.ts | 2 +- .../parameters/getBlogpostAttachments.ts | 2 +- .../parameters/getCustomContentAttachments.ts | 2 +- .../parameters/getCustomContentVersions.ts | 2 +- .../parameters/getFooterCommentChildren.ts | 2 +- .../parameters/getFooterCommentVersions.ts | 2 +- .../parameters/getInlineCommentChildren.ts | 2 +- .../parameters/getInlineCommentVersions.ts | 2 +- .../parameters/getLabelAttachments.ts | 2 +- src/version2/parameters/getLabelBlogPosts.ts | 2 +- src/version2/parameters/getLabelPages.ts | 2 +- src/version2/parameters/getPageAttachments.ts | 2 +- .../parameters/getPageFooterComments.ts | 2 +- .../parameters/getPageInlineComments.ts | 2 +- src/version2/parameters/getPageVersions.ts | 2 +- src/version2/parameters/getSpaces.ts | 2 +- 22 files changed, 190 insertions(+), 348 deletions(-) diff --git a/package-lock.json b/package-lock.json index 72f81d33..ab5d481b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,32 +16,32 @@ "tslib": "^2.5.3" }, "devDependencies": { - "@swc-node/register": "^1.6.5", + "@swc-node/register": "^1.6.6", "@swc/helpers": "^0.5.1", "@types/express": "^4.17.17", "@types/oauth": "^0.9.1", "@types/sinon": "^10.0.15", - "@typescript-eslint/eslint-plugin": "^5.59.9", - "@typescript-eslint/parser": "^5.59.9", - "ava": "^5.3.0", - "dotenv": "^16.1.4", - "eslint": "^8.42.0", + "@typescript-eslint/eslint-plugin": "^5.60.0", + "@typescript-eslint/parser": "^5.60.0", + "ava": "^5.3.1", + "dotenv": "^16.3.1", + "eslint": "^8.43.0", "eslint-config-airbnb": "^19.0.4", "eslint-config-airbnb-typescript": "^17.0.0", "eslint-import-resolver-typescript": "^3.5.5", "eslint-plugin-import": "^2.27.5", "prettier": "^2.8.8", "prettier-plugin-jsdoc": "^0.4.2", - "sinon": "^15.1.0", + "sinon": "^15.2.0", "typedoc": "^0.24.8", "typedoc-plugin-extras": "^2.3.3", "typescript": "^5.1.3" } }, "node_modules/@babel/runtime": { - "version": "7.22.3", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.22.3.tgz", - "integrity": "sha512-XsDuspWKLUsxwCp6r7EhsExHtYfbe5oAGQ19kqngTdCPUoPQzOPdUbD/pB9PJiwb2ptYKQDjSJT3R6dC+EPqfQ==", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.22.5.tgz", + "integrity": "sha512-ecjvYlnAaZ/KVneE/OdKYBYfgXV3Ptu6zQWmgEF7vwKhQnvVS6bjMD2XYgj+SNvQ1GfK/pjgokfPkC/2CO8CuA==", "dev": true, "peer": true, "dependencies": { @@ -99,9 +99,9 @@ } }, "node_modules/@eslint/js": { - "version": "8.42.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.42.0.tgz", - "integrity": "sha512-6SWlXpWU5AvId8Ac7zjzmIOqMOba/JWY8XZ4A7q7Gn1Vlfg/SFFIlrtHXt9nPn4op9ZPAkl91Jao+QQv3r/ukw==", + "version": "8.43.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.43.0.tgz", + "integrity": "sha512-s2UHCoiXfxMvmfzqoN+vrQ84ahUSYde9qNO1MdxmoEhyHWsfmwOpFlwYV+ePJEVc7gFnATGUi376WowX1N7tFg==", "dev": true, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" @@ -205,9 +205,9 @@ } }, "node_modules/@sinonjs/fake-timers": { - "version": "10.2.0", - "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-10.2.0.tgz", - "integrity": "sha512-OPwQlEdg40HAj5KNF8WW6q2KG4Z+cBCZb3m4ninfTZKaBmbIJodviQsDBoYMPHkOyJJMHnOJo5j2+LKDOhOACg==", + "version": "10.3.0", + "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-10.3.0.tgz", + "integrity": "sha512-V4BG07kuYSUkTCSBHG8G8TNhM+F19jXFWnQtzj+we8DrkpSBCee9Z3Ms8yiGer/dlmhe35/Xdgyo3/0rQKg7YA==", "dev": true, "dependencies": { "@sinonjs/commons": "^3.0.0" @@ -240,9 +240,9 @@ "dev": true }, "node_modules/@swc-node/core": { - "version": "1.10.3", - "resolved": "https://registry.npmjs.org/@swc-node/core/-/core-1.10.3.tgz", - "integrity": "sha512-8rpv1DXzsQjN/C8ZXuaTSmJ4M/lRr6geUlbOQ861DLC+sKWcEEvxRjK9cXQ28GserHuEcFDA3wlF9rD1YD0x+Q==", + "version": "1.10.4", + "resolved": "https://registry.npmjs.org/@swc-node/core/-/core-1.10.4.tgz", + "integrity": "sha512-ixZCb4LsSUPflnOxj4a8T5yTPzKbgvP+tF0N59Rk2+68ikFRt9Qci2qy9xfuDIQbuiONzXersrNpd+p598uH0A==", "dev": true, "engines": { "node": ">= 10" @@ -256,12 +256,12 @@ } }, "node_modules/@swc-node/register": { - "version": "1.6.5", - "resolved": "https://registry.npmjs.org/@swc-node/register/-/register-1.6.5.tgz", - "integrity": "sha512-yMxXlzthI0aMadYYKDhx7xvtjljB1qoD8Tv0djqSJ1ttTkoDxg6MhG5A5pIahiUT2neVrkWb9lCavoUwXAe/zQ==", + "version": "1.6.6", + "resolved": "https://registry.npmjs.org/@swc-node/register/-/register-1.6.6.tgz", + "integrity": "sha512-KgnQrWLgtJzEgPpxvhOPUDonv1xreVumGdzXDQlDVIqU3vH+spW8ZYxxyjJVMh3G/mQG8E3bFvUMHIS+E3FL2w==", "dev": true, "dependencies": { - "@swc-node/core": "^1.10.3", + "@swc-node/core": "^1.10.4", "@swc-node/sourcemap-support": "^0.3.0", "colorette": "^2.0.19", "debug": "^4.3.4", @@ -288,9 +288,9 @@ } }, "node_modules/@swc/core": { - "version": "1.3.62", - "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.3.62.tgz", - "integrity": "sha512-J58hWY+/G8vOr4J6ZH9hLg0lMSijZtqIIf4HofZezGog/pVX6sJyBJ40dZ1ploFkDIlWTWvJyqtpesBKS73gkQ==", + "version": "1.3.66", + "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.3.66.tgz", + "integrity": "sha512-Hpf91kH5ly7fHkWnApwryTQryT+TO4kMMPH3WyciUSQOWLE3UuQz1PtETHQQk7PZ/b1QF0qQurJrgfBr5bSKUA==", "dev": true, "hasInstallScript": true, "peer": true, @@ -302,16 +302,16 @@ "url": "https://opencollective.com/swc" }, "optionalDependencies": { - "@swc/core-darwin-arm64": "1.3.62", - "@swc/core-darwin-x64": "1.3.62", - "@swc/core-linux-arm-gnueabihf": "1.3.62", - "@swc/core-linux-arm64-gnu": "1.3.62", - "@swc/core-linux-arm64-musl": "1.3.62", - "@swc/core-linux-x64-gnu": "1.3.62", - "@swc/core-linux-x64-musl": "1.3.62", - "@swc/core-win32-arm64-msvc": "1.3.62", - "@swc/core-win32-ia32-msvc": "1.3.62", - "@swc/core-win32-x64-msvc": "1.3.62" + "@swc/core-darwin-arm64": "1.3.66", + "@swc/core-darwin-x64": "1.3.66", + "@swc/core-linux-arm-gnueabihf": "1.3.66", + "@swc/core-linux-arm64-gnu": "1.3.66", + "@swc/core-linux-arm64-musl": "1.3.66", + "@swc/core-linux-x64-gnu": "1.3.66", + "@swc/core-linux-x64-musl": "1.3.66", + "@swc/core-win32-arm64-msvc": "1.3.66", + "@swc/core-win32-ia32-msvc": "1.3.66", + "@swc/core-win32-x64-msvc": "1.3.66" }, "peerDependencies": { "@swc/helpers": "^0.5.0" @@ -323,9 +323,9 @@ } }, "node_modules/@swc/core-darwin-arm64": { - "version": "1.3.62", - "resolved": "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.3.62.tgz", - "integrity": "sha512-MmGilibITz68LEje6vJlKzc2gUUSgzvB3wGLSjEORikTNeM7P8jXVxE4A8fgZqDeudJUm9HVWrxCV+pHDSwXhA==", + "version": "1.3.66", + "resolved": "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.3.66.tgz", + "integrity": "sha512-UijJsvuLy73vxeVYEy7urIHksXS+3BdvJ9s9AY+bRMSQW483NO7RLp8g4FdTyJbRaN0BH15SQnY0dcjQBkVuHw==", "cpu": [ "arm64" ], @@ -340,9 +340,9 @@ } }, "node_modules/@swc/core-darwin-x64": { - "version": "1.3.62", - "resolved": "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.3.62.tgz", - "integrity": "sha512-Xl93MMB3sCWVlYWuQIB+v6EQgzoiuQYK5tNt9lsHoIEVu2zLdkQjae+5FUHZb1VYqCXIiWcULFfVz0R4Sjb7JQ==", + "version": "1.3.66", + "resolved": "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.3.66.tgz", + "integrity": "sha512-xGsHKvViQnwTNLF30Y/5OqWdnN6RsiyUI8awZXfz1sHcXCEaLe+v+WLQ+/E8sgw0YUkYVHzzfV/sAN2CezJK5Q==", "cpu": [ "x64" ], @@ -357,9 +357,9 @@ } }, "node_modules/@swc/core-linux-arm-gnueabihf": { - "version": "1.3.62", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.3.62.tgz", - "integrity": "sha512-nJsp6O7kCtAjTTMcIjVB0g5y1JNiYAa5q630eiwrnaHUusEFoANDdORI3Z9vXeikMkng+6yIv9/V8Rb093xLjQ==", + "version": "1.3.66", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.3.66.tgz", + "integrity": "sha512-gNbLcSIV2pq90BkMSpzvK4xPXOl8GEF3YR4NaqF0CYSzQsVXXTTqMuX/r26xNYudBKzH0345S1MpoRk2qricnA==", "cpu": [ "arm" ], @@ -374,9 +374,9 @@ } }, "node_modules/@swc/core-linux-arm64-gnu": { - "version": "1.3.62", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.3.62.tgz", - "integrity": "sha512-XGsV93vpUAopDt5y6vPwbK1Nc/MlL55L77bAZUPIiosWD1cWWPHNtNSpriE6+I+JiMHe0pqtfS/SSTk6ZkFQVw==", + "version": "1.3.66", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.3.66.tgz", + "integrity": "sha512-cJSQ0oplyWbJqy4rzVcnBYLAi6z1QT3QCcR7iAey0aAmCvfRBZJfXlyjggMjn4iosuadkauwCZR1xYNhBDRn7w==", "cpu": [ "arm64" ], @@ -391,9 +391,9 @@ } }, "node_modules/@swc/core-linux-arm64-musl": { - "version": "1.3.62", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.3.62.tgz", - "integrity": "sha512-ESUmJjSlTTkoBy9dMG49opcNn8BmviqStMhwyeD1G8XRnmRVCZZgoBOKdvCXmJhw8bQXDhZumeaTUB+OFUKVXg==", + "version": "1.3.66", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.3.66.tgz", + "integrity": "sha512-GDQZpcB9aGxG9PTA2shdIkoMZlGK5omJ8NR49uoBTtLBVYiGeXAwV0U1Uaw8kXEZj9i7wZDkvjzjSaNH3evRsg==", "cpu": [ "arm64" ], @@ -408,9 +408,9 @@ } }, "node_modules/@swc/core-linux-x64-gnu": { - "version": "1.3.62", - "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.3.62.tgz", - "integrity": "sha512-wnHJkt3ZBrax3SFnUHDcncG6mrSg9ZZjMhQV9Mc3JL1x1s1Gy9rGZCoBNnV/BUZWTemxIBcQbANRSDut/WO+9A==", + "version": "1.3.66", + "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.3.66.tgz", + "integrity": "sha512-lg8E4O/Pd9KfK0lajdinVMuGME8dSv7V9arhEpmlfGE2eXSDCWqDn5Htk5QVBstt9lt1lsRhWHJ/YYc2eQY30Q==", "cpu": [ "x64" ], @@ -425,9 +425,9 @@ } }, "node_modules/@swc/core-linux-x64-musl": { - "version": "1.3.62", - "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.3.62.tgz", - "integrity": "sha512-9oRbuTC/VshB66Rgwi3pTq3sPxSTIb8k9L1vJjES+dDMKa29DAjPtWCXG/pyZ00ufpFZgkGEuAHH5uqUcr1JQg==", + "version": "1.3.66", + "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.3.66.tgz", + "integrity": "sha512-lo8ZcAO/zL2pZWH+LZIyge8u2MklaeuT6+FpVVpBFktMVdYXbaVtzpvWbgRFBZHvL3SRDF+u8jxjtkXhvGUpTw==", "cpu": [ "x64" ], @@ -442,9 +442,9 @@ } }, "node_modules/@swc/core-win32-arm64-msvc": { - "version": "1.3.62", - "resolved": "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.3.62.tgz", - "integrity": "sha512-zv14vlF2VRrxS061XkfzGjCYnOrEo5glKJjLK5PwUKysIoVrx/L8nAbFxjkX5cObdlyoqo+ekelyBPAO+4bS0w==", + "version": "1.3.66", + "resolved": "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.3.66.tgz", + "integrity": "sha512-cQoVwBuJY5WkHbfpCOlndNwYr1ZThatRjQQvKy540NUIeAEk9Fa6ozlDBtU75UdaWKtUG6YQ/bWz+KTemheVxw==", "cpu": [ "arm64" ], @@ -459,9 +459,9 @@ } }, "node_modules/@swc/core-win32-ia32-msvc": { - "version": "1.3.62", - "resolved": "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.3.62.tgz", - "integrity": "sha512-8MC/PZQSsOP2iA/81tAfNRqMWyEqTS/8zKUI67vPuLvpx6NAjRn3E9qBv7iFqH79iqZNzqSMo3awnLrKZyFbcw==", + "version": "1.3.66", + "resolved": "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.3.66.tgz", + "integrity": "sha512-y/FrAIINK4UBeUQQknGlWXEyjo+MBvjF7WkUf2KP7sNr9EHHy8+dXohAGd5Anz0eJrqOM1ZXR/GEjxRp7bGQ1Q==", "cpu": [ "ia32" ], @@ -476,9 +476,9 @@ } }, "node_modules/@swc/core-win32-x64-msvc": { - "version": "1.3.62", - "resolved": "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.3.62.tgz", - "integrity": "sha512-GJSmUJ95HKHZXAxiuPUmrcm/S3ivQvEzXhOZaIqYBIwUsm02vFZkClsV7eIKzWjso1t0+I/8MjrnUNaSWqh1rQ==", + "version": "1.3.66", + "resolved": "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.3.66.tgz", + "integrity": "sha512-yI64ACzS14qFLrfyO12qW+f/UROTotzDeEbuyJAaPD2IZexoT1cICznI3sBmIfrSt33mVuW8eF5m3AG/NUImzw==", "cpu": [ "x64" ], @@ -553,6 +553,12 @@ "@types/send": "*" } }, + "node_modules/@types/http-errors": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@types/http-errors/-/http-errors-2.0.1.tgz", + "integrity": "sha512-/K3ds8TRAfBvi5vfjuz8y6+GiAYBZ0x4tXv1Av6CWBWn0IlADc+ZX9pMq7oU0fNQPnBwIZl3rmeLp6SBApbxSQ==", + "dev": true + }, "node_modules/@types/json-schema": { "version": "7.0.12", "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.12.tgz", @@ -587,9 +593,9 @@ "dev": true }, "node_modules/@types/node": { - "version": "20.2.5", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.2.5.tgz", - "integrity": "sha512-JJulVEQXmiY9Px5axXHeYGLSjhkZEnD+MDPDGbCbIAbMslkKwmygtZFy1X6s/075Yo94sf8GuSlFfPzysQrWZQ==", + "version": "20.3.1", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.3.1.tgz", + "integrity": "sha512-EhcH/wvidPy1WeML3TtYFGR83UzjxeWRen9V402T8aUGYsCHOmfoisV3ZSg03gAFIbLq8TnWOJ0f4cALtnSEUg==", "dev": true }, "node_modules/@types/oauth": { @@ -630,11 +636,12 @@ } }, "node_modules/@types/serve-static": { - "version": "1.15.1", - "resolved": "https://registry.npmjs.org/@types/serve-static/-/serve-static-1.15.1.tgz", - "integrity": "sha512-NUo5XNiAdULrJENtJXZZ3fHtfMolzZwczzBbnAeBbqBwG+LaG6YaJtuwzwGSQZ2wsCrxjEhNNjAkKigy3n8teQ==", + "version": "1.15.2", + "resolved": "https://registry.npmjs.org/@types/serve-static/-/serve-static-1.15.2.tgz", + "integrity": "sha512-J2LqtvFYCzaj8pVYKw8klQXrLLk7TBZmQ4ShlcdkELFKGwGMfevMLneMMRkMgZxotOD9wg497LpC7O8PcvAmfw==", "dev": true, "dependencies": { + "@types/http-errors": "*", "@types/mime": "*", "@types/node": "*" } @@ -661,15 +668,15 @@ "dev": true }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "5.59.9", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.59.9.tgz", - "integrity": "sha512-4uQIBq1ffXd2YvF7MAvehWKW3zVv/w+mSfRAu+8cKbfj3nwzyqJLNcZJpQ/WZ1HLbJDiowwmQ6NO+63nCA+fqA==", + "version": "5.60.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.60.0.tgz", + "integrity": "sha512-78B+anHLF1TI8Jn/cD0Q00TBYdMgjdOn980JfAVa9yw5sop8nyTfVOQAv6LWywkOGLclDBtv5z3oxN4w7jxyNg==", "dev": true, "dependencies": { "@eslint-community/regexpp": "^4.4.0", - "@typescript-eslint/scope-manager": "5.59.9", - "@typescript-eslint/type-utils": "5.59.9", - "@typescript-eslint/utils": "5.59.9", + "@typescript-eslint/scope-manager": "5.60.0", + "@typescript-eslint/type-utils": "5.60.0", + "@typescript-eslint/utils": "5.60.0", "debug": "^4.3.4", "grapheme-splitter": "^1.0.4", "ignore": "^5.2.0", @@ -695,14 +702,14 @@ } }, "node_modules/@typescript-eslint/parser": { - "version": "5.59.9", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.59.9.tgz", - "integrity": "sha512-FsPkRvBtcLQ/eVK1ivDiNYBjn3TGJdXy2fhXX+rc7czWl4ARwnpArwbihSOHI2Peg9WbtGHrbThfBUkZZGTtvQ==", + "version": "5.60.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.60.0.tgz", + "integrity": "sha512-jBONcBsDJ9UoTWrARkRRCgDz6wUggmH5RpQVlt7BimSwaTkTjwypGzKORXbR4/2Hqjk9hgwlon2rVQAjWNpkyQ==", "dev": true, "dependencies": { - "@typescript-eslint/scope-manager": "5.59.9", - "@typescript-eslint/types": "5.59.9", - "@typescript-eslint/typescript-estree": "5.59.9", + "@typescript-eslint/scope-manager": "5.60.0", + "@typescript-eslint/types": "5.60.0", + "@typescript-eslint/typescript-estree": "5.60.0", "debug": "^4.3.4" }, "engines": { @@ -722,13 +729,13 @@ } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "5.59.9", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.59.9.tgz", - "integrity": "sha512-8RA+E+w78z1+2dzvK/tGZ2cpGigBZ58VMEHDZtpE1v+LLjzrYGc8mMaTONSxKyEkz3IuXFM0IqYiGHlCsmlZxQ==", + "version": "5.60.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.60.0.tgz", + "integrity": "sha512-hakuzcxPwXi2ihf9WQu1BbRj1e/Pd8ZZwVTG9kfbxAMZstKz8/9OoexIwnmLzShtsdap5U/CoQGRCWlSuPbYxQ==", "dev": true, "dependencies": { - "@typescript-eslint/types": "5.59.9", - "@typescript-eslint/visitor-keys": "5.59.9" + "@typescript-eslint/types": "5.60.0", + "@typescript-eslint/visitor-keys": "5.60.0" }, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" @@ -739,13 +746,13 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "5.59.9", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.59.9.tgz", - "integrity": "sha512-ksEsT0/mEHg9e3qZu98AlSrONAQtrSTljL3ow9CGej8eRo7pe+yaC/mvTjptp23Xo/xIf2mLZKC6KPv4Sji26Q==", + "version": "5.60.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.60.0.tgz", + "integrity": "sha512-X7NsRQddORMYRFH7FWo6sA9Y/zbJ8s1x1RIAtnlj6YprbToTiQnM6vxcMu7iYhdunmoC0rUWlca13D5DVHkK2g==", "dev": true, "dependencies": { - "@typescript-eslint/typescript-estree": "5.59.9", - "@typescript-eslint/utils": "5.59.9", + "@typescript-eslint/typescript-estree": "5.60.0", + "@typescript-eslint/utils": "5.60.0", "debug": "^4.3.4", "tsutils": "^3.21.0" }, @@ -766,9 +773,9 @@ } }, "node_modules/@typescript-eslint/types": { - "version": "5.59.9", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.59.9.tgz", - "integrity": "sha512-uW8H5NRgTVneSVTfiCVffBb8AbwWSKg7qcA4Ot3JI3MPCJGsB4Db4BhvAODIIYE5mNj7Q+VJkK7JxmRhk2Lyjw==", + "version": "5.60.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.60.0.tgz", + "integrity": "sha512-ascOuoCpNZBccFVNJRSC6rPq4EmJ2NkuoKnd6LDNyAQmdDnziAtxbCGWCbefG1CNzmDvd05zO36AmB7H8RzKPA==", "dev": true, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" @@ -779,13 +786,13 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "5.59.9", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.59.9.tgz", - "integrity": "sha512-pmM0/VQ7kUhd1QyIxgS+aRvMgw+ZljB3eDb+jYyp6d2bC0mQWLzUDF+DLwCTkQ3tlNyVsvZRXjFyV0LkU/aXjA==", + "version": "5.60.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.60.0.tgz", + "integrity": "sha512-R43thAuwarC99SnvrBmh26tc7F6sPa2B3evkXp/8q954kYL6Ro56AwASYWtEEi+4j09GbiNAHqYwNNZuNlARGQ==", "dev": true, "dependencies": { - "@typescript-eslint/types": "5.59.9", - "@typescript-eslint/visitor-keys": "5.59.9", + "@typescript-eslint/types": "5.60.0", + "@typescript-eslint/visitor-keys": "5.60.0", "debug": "^4.3.4", "globby": "^11.1.0", "is-glob": "^4.0.3", @@ -806,17 +813,17 @@ } }, "node_modules/@typescript-eslint/utils": { - "version": "5.59.9", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.59.9.tgz", - "integrity": "sha512-1PuMYsju/38I5Ggblaeb98TOoUvjhRvLpLa1DoTOFaLWqaXl/1iQ1eGurTXgBY58NUdtfTXKP5xBq7q9NDaLKg==", + "version": "5.60.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.60.0.tgz", + "integrity": "sha512-ba51uMqDtfLQ5+xHtwlO84vkdjrqNzOnqrnwbMHMRY8Tqeme8C2Q8Fc7LajfGR+e3/4LoYiWXUM6BpIIbHJ4hQ==", "dev": true, "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", "@types/json-schema": "^7.0.9", "@types/semver": "^7.3.12", - "@typescript-eslint/scope-manager": "5.59.9", - "@typescript-eslint/types": "5.59.9", - "@typescript-eslint/typescript-estree": "5.59.9", + "@typescript-eslint/scope-manager": "5.60.0", + "@typescript-eslint/types": "5.60.0", + "@typescript-eslint/typescript-estree": "5.60.0", "eslint-scope": "^5.1.1", "semver": "^7.3.7" }, @@ -832,12 +839,12 @@ } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "5.59.9", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.59.9.tgz", - "integrity": "sha512-bT7s0td97KMaLwpEBckbzj/YohnvXtqbe2XgqNvTl6RJVakY5mvENOTPvw5u66nljfZxthESpDozs86U+oLY8Q==", + "version": "5.60.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.60.0.tgz", + "integrity": "sha512-wm9Uz71SbCyhUKgcaPRauBdTegUyY/ZWl8gLwD/i/ybJqscrrdVSFImpvUz16BLPChIeKBK5Fa9s6KDQjsjyWw==", "dev": true, "dependencies": { - "@typescript-eslint/types": "5.59.9", + "@typescript-eslint/types": "5.60.0", "eslint-visitor-keys": "^3.3.0" }, "engines": { @@ -849,9 +856,9 @@ } }, "node_modules/acorn": { - "version": "8.8.2", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz", - "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==", + "version": "8.9.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.9.0.tgz", + "integrity": "sha512-jaVNAFBHNLXspO543WnNNPZFRtavh3skAkITqD0/2aeMkKZTN+254PyhwxFYrk3vQ1xfY+2wbesJMs/JC8/PwQ==", "dev": true, "bin": { "acorn": "bin/acorn" @@ -960,13 +967,13 @@ "dev": true }, "node_modules/aria-query": { - "version": "5.1.3", - "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.1.3.tgz", - "integrity": "sha512-R5iJ5lkuHybztUfuOAznmboyjWq8O6sqNqtK7CLOqdydi54VNbORp49mb14KbWgG1QD3JFO9hJdZ+y4KutfdOQ==", + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.2.1.tgz", + "integrity": "sha512-7uFg4b+lETFgdaJyETnILsXgnnzVnkHcgRbwbPwevm5x/LmUlt3MjczMRe1zg824iBgXZNRPTBftNYyRSKLp2g==", "dev": true, "peer": true, "dependencies": { - "deep-equal": "^2.0.5" + "dequal": "^2.0.3" } }, "node_modules/array-buffer-byte-length": { @@ -1115,9 +1122,9 @@ } }, "node_modules/ava": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/ava/-/ava-5.3.0.tgz", - "integrity": "sha512-QYvBdyygl1LGX13IuYsC4bkwVCzZeovMGbxYkD73i7DVJxNlWnFa06YgrBOTbjw2QvSKUl5fOJ92Kj5WK9hSeg==", + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/ava/-/ava-5.3.1.tgz", + "integrity": "sha512-Scv9a4gMOXB6+ni4toLuhAm9KYWEjsgBglJl+kMGI5+IVDt120CCDZyB5HNU9DjmLI2t4I0GbnxGLmmRfGTJGg==", "dev": true, "dependencies": { "acorn": "^8.8.2", @@ -1180,9 +1187,9 @@ } }, "node_modules/ava/node_modules/globby": { - "version": "13.1.4", - "resolved": "https://registry.npmjs.org/globby/-/globby-13.1.4.tgz", - "integrity": "sha512-iui/IiiW+QrJ1X1hKH5qwlMQyv34wJAYwH1vrf8b9kBA4sNiif3gKsMHa+BrdnOpEudWjpotfa7LrTzB1ERS/g==", + "version": "13.2.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-13.2.0.tgz", + "integrity": "sha512-jWsQfayf13NvqKUIL3Ta+CIqMnvlaIDFveWE/dpOZ9+3AMEJozsxDvKA02zync9UuvOM8rOXzsD5GqKP4OnWPQ==", "dev": true, "dependencies": { "dir-glob": "^3.0.1", @@ -1243,13 +1250,13 @@ } }, "node_modules/axobject-query": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-3.1.1.tgz", - "integrity": "sha512-goKlv8DZrK9hUh975fnHzhNIO4jUnFCfv/dszV5VwUGDFjI6vQ2VwoyjYjYNEbBE8AH87TduWP5uyDR1D+Iteg==", + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-3.2.1.tgz", + "integrity": "sha512-jsyHu61e6N4Vbz/v18DHwWYKK0bSWLqn47eeDSKPB7m8tqMHF9YJ+mhIk2lVteyZrY8tnSj/jHOv4YiTCuCJgg==", "dev": true, "peer": true, "dependencies": { - "deep-equal": "^2.0.5" + "dequal": "^2.0.3" } }, "node_modules/balanced-match": { @@ -1755,36 +1762,6 @@ "url": "https://github.com/sponsors/wooorm" } }, - "node_modules/deep-equal": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/deep-equal/-/deep-equal-2.2.1.tgz", - "integrity": "sha512-lKdkdV6EOGoVn65XaOsPdH4rMxTZOnmFyuIkMjM1i5HHCbfjC97dawgTAy0deYNfuqUqW+Q5VrVaQYtUpSd6yQ==", - "dev": true, - "peer": true, - "dependencies": { - "array-buffer-byte-length": "^1.0.0", - "call-bind": "^1.0.2", - "es-get-iterator": "^1.1.3", - "get-intrinsic": "^1.2.0", - "is-arguments": "^1.1.1", - "is-array-buffer": "^3.0.2", - "is-date-object": "^1.0.5", - "is-regex": "^1.1.4", - "is-shared-array-buffer": "^1.0.2", - "isarray": "^2.0.5", - "object-is": "^1.1.5", - "object-keys": "^1.1.1", - "object.assign": "^4.1.4", - "regexp.prototype.flags": "^1.5.0", - "side-channel": "^1.0.4", - "which-boxed-primitive": "^1.0.2", - "which-collection": "^1.0.1", - "which-typed-array": "^1.1.9" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/deep-is": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", @@ -1904,9 +1881,9 @@ } }, "node_modules/dotenv": { - "version": "16.1.4", - "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.1.4.tgz", - "integrity": "sha512-m55RtE8AsPeJBpOIFKihEmqUcoVncQIwo7x9U8ZwLEZw9ZpXboz2c+rvog+jUaJvVrZ5kBOeYQBX5+8Aa/OZQw==", + "version": "16.3.1", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.3.1.tgz", + "integrity": "sha512-IPzF4w4/Rd94bA9imS68tZBaYyBWSCE47V1RGuMrB94iyTOIEwRmVL2x/4An+6mETpLrKJ5hQkB8W4kFAadeIQ==", "dev": true, "engines": { "node": ">=12" @@ -1940,9 +1917,9 @@ "dev": true }, "node_modules/enhanced-resolve": { - "version": "5.14.1", - "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.14.1.tgz", - "integrity": "sha512-Vklwq2vDKtl0y/vtwjSesgJ5MYS7Etuk5txS8VdKL4AOS1aUlD96zqIfsOSLQsdv3xgMRbtkWM8eG9XDfKUPow==", + "version": "5.15.0", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.15.0.tgz", + "integrity": "sha512-LXYT42KJ7lpIKECr2mAXIaMldcNCh/7E0KBKOu4KSfkHmP+mZmSs+8V5gBAqisWBy0OO4W5Oyys0GO1Y8KtdKg==", "dev": true, "dependencies": { "graceful-fs": "^4.2.4", @@ -2000,27 +1977,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/es-get-iterator": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/es-get-iterator/-/es-get-iterator-1.1.3.tgz", - "integrity": "sha512-sPZmqHBe6JIiTfN5q2pEi//TwxmAFHwj/XEuYjTuse78i8KxaqMTTzxPoFKuzRpDpTJ+0NAbpfenkmH2rePtuw==", - "dev": true, - "peer": true, - "dependencies": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.3", - "has-symbols": "^1.0.3", - "is-arguments": "^1.1.1", - "is-map": "^2.0.2", - "is-set": "^2.0.2", - "is-string": "^1.0.7", - "isarray": "^2.0.5", - "stop-iteration-iterator": "^1.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/es-set-tostringtag": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.1.tgz", @@ -2083,15 +2039,15 @@ } }, "node_modules/eslint": { - "version": "8.42.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.42.0.tgz", - "integrity": "sha512-ulg9Ms6E1WPf67PHaEY4/6E2tEn5/f7FXGzr3t9cBMugOmf1INYvuUwwh1aXQN4MfJ6a5K2iNwP3w4AColvI9A==", + "version": "8.43.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.43.0.tgz", + "integrity": "sha512-aaCpf2JqqKesMFGgmRPessmVKjcGXqdlAYLLC3THM8t5nBRZRQ+st5WM/hoJXkdioEXLLbXgclUpM0TXo5HX5Q==", "dev": true, "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/regexpp": "^4.4.0", "@eslint/eslintrc": "^2.0.3", - "@eslint/js": "8.42.0", + "@eslint/js": "8.43.0", "@humanwhocodes/config-array": "^0.11.10", "@humanwhocodes/module-importer": "^1.0.1", "@nodelib/fs.walk": "^1.2.8", @@ -2249,9 +2205,9 @@ } }, "node_modules/eslint-import-resolver-typescript/node_modules/globby": { - "version": "13.1.4", - "resolved": "https://registry.npmjs.org/globby/-/globby-13.1.4.tgz", - "integrity": "sha512-iui/IiiW+QrJ1X1hKH5qwlMQyv34wJAYwH1vrf8b9kBA4sNiif3gKsMHa+BrdnOpEudWjpotfa7LrTzB1ERS/g==", + "version": "13.2.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-13.2.0.tgz", + "integrity": "sha512-jWsQfayf13NvqKUIL3Ta+CIqMnvlaIDFveWE/dpOZ9+3AMEJozsxDvKA02zync9UuvOM8rOXzsD5GqKP4OnWPQ==", "dev": true, "dependencies": { "dir-glob": "^3.0.1", @@ -3288,23 +3244,6 @@ "node": ">=8" } }, - "node_modules/is-arguments": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.1.1.tgz", - "integrity": "sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==", - "dev": true, - "peer": true, - "dependencies": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/is-array-buffer": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.2.tgz", @@ -3470,16 +3409,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/is-map": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/is-map/-/is-map-2.0.2.tgz", - "integrity": "sha512-cOZFQQozTha1f4MxLFzlgKYPTyj26picdZTx82hbc/Xf4K/tZOOXSCkMvU4pKioRXGDLJRn0GM7Upe7kR721yg==", - "dev": true, - "peer": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/is-negative-zero": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.2.tgz", @@ -3556,16 +3485,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-set": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/is-set/-/is-set-2.0.2.tgz", - "integrity": "sha512-+2cnTEZeY5z/iXGbLhPrOAaK/Mau5k5eXq9j14CpRTftq0pAJu2MwVRSZhyZWBzx3o6X795Lz6Bpb6R0GKf37g==", - "dev": true, - "peer": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/is-shared-array-buffer": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz", @@ -3651,16 +3570,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/is-weakmap": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-weakmap/-/is-weakmap-2.0.1.tgz", - "integrity": "sha512-NSBR4kH5oVj1Uwvv970ruUkCV7O1mzgVFO4/rev2cLRda9Tm9HrL70ZPut4rOHgY0FNrUu9BCbXA2sdQ+x0chA==", - "dev": true, - "peer": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/is-weakref": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", @@ -3673,20 +3582,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-weakset": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/is-weakset/-/is-weakset-2.0.2.tgz", - "integrity": "sha512-t2yVvttHkQktwnNNmBQ98AhENLdPUTDTE21uPqAQ0ARwQfGeQKRVS0NNurH7bTf7RrvcVn1OOge45CnBeHCSmg==", - "dev": true, - "peer": true, - "dependencies": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.1" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/is-wsl": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", @@ -3715,11 +3610,10 @@ } }, "node_modules/isarray": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", - "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", - "dev": true, - "peer": true + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", + "integrity": "sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ==", + "dev": true }, "node_modules/isexe": { "version": "2.0.0", @@ -4683,23 +4577,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/object-is": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/object-is/-/object-is-1.1.5.tgz", - "integrity": "sha512-3cyDsyHgtmi7I7DfSSI2LDp6SK2lwvtbg0p0R1e0RvTqF5ceGx+K2dfSjm1bKDMVCFEDAQvy+o8c6a7VujOddw==", - "dev": true, - "peer": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/object-keys": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", @@ -5005,12 +4882,6 @@ "isarray": "0.0.1" } }, - "node_modules/path-to-regexp/node_modules/isarray": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", - "integrity": "sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ==", - "dev": true - }, "node_modules/path-type": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", @@ -5039,9 +4910,9 @@ } }, "node_modules/pirates": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.5.tgz", - "integrity": "sha512-8V9+HQPupnaXMA23c5hvl69zXvTwTzyAYasnkb0Tts4XvO4CliqONMOnvlq26rkhLC3nWDFBJf73LU1e1VZLaQ==", + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.6.tgz", + "integrity": "sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==", "dev": true, "engines": { "node": ">= 6" @@ -5549,9 +5420,9 @@ } }, "node_modules/semver": { - "version": "7.5.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.1.tgz", - "integrity": "sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw==", + "version": "7.5.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.3.tgz", + "integrity": "sha512-QBlUtyVk/5EeHbi7X0fw6liDZc7BBmEaSYn01fMU1OUYbf6GPsbTtd8WmnqbI20SeycoHSeiybkE/q1Q+qlThQ==", "dev": true, "dependencies": { "lru-cache": "^6.0.0" @@ -5644,13 +5515,13 @@ "dev": true }, "node_modules/sinon": { - "version": "15.1.0", - "resolved": "https://registry.npmjs.org/sinon/-/sinon-15.1.0.tgz", - "integrity": "sha512-cS5FgpDdE9/zx7no8bxROHymSlPLZzq0ChbbLk1DrxBfc+eTeBK3y8nIL+nu/0QeYydhhbLIr7ecHJpywjQaoQ==", + "version": "15.2.0", + "resolved": "https://registry.npmjs.org/sinon/-/sinon-15.2.0.tgz", + "integrity": "sha512-nPS85arNqwBXaIsFCkolHjGIkFo+Oxu9vbgmBJizLAhqe6P2o3Qmj3KCUoRkfhHtvgDhZdWD3risLHAUJ8npjw==", "dev": true, "dependencies": { "@sinonjs/commons": "^3.0.0", - "@sinonjs/fake-timers": "^10.2.0", + "@sinonjs/fake-timers": "^10.3.0", "@sinonjs/samsam": "^8.0.0", "diff": "^5.1.0", "nise": "^5.1.4", @@ -5732,19 +5603,6 @@ "node": ">=8" } }, - "node_modules/stop-iteration-iterator": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/stop-iteration-iterator/-/stop-iteration-iterator-1.0.0.tgz", - "integrity": "sha512-iCGQj+0l0HOdZ2AEeBADlsRC+vsnDsZsbdSiH1yNSjcfKM7fdpCMfqAL/dwF5BLiw/XhRft/Wax6zQbhq2BcjQ==", - "dev": true, - "peer": true, - "dependencies": { - "internal-slot": "^1.0.4" - }, - "engines": { - "node": ">= 0.4" - } - }, "node_modules/string-width": { "version": "5.1.2", "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", @@ -6277,22 +6135,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/which-collection": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/which-collection/-/which-collection-1.0.1.tgz", - "integrity": "sha512-W8xeTUwaln8i3K/cY1nGXzdnVZlidBcagyNFtBdD5kxnb4TvGKR7FfSIS3mYpwWS1QUCutfKz8IY8RjftB0+1A==", - "dev": true, - "peer": true, - "dependencies": { - "is-map": "^2.0.1", - "is-set": "^2.0.1", - "is-weakmap": "^2.0.1", - "is-weakset": "^2.0.1" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/which-typed-array": { "version": "1.1.9", "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.9.tgz", diff --git a/package.json b/package.json index 7be33bd0..0fdb0c67 100644 --- a/package.json +++ b/package.json @@ -42,23 +42,23 @@ "atlassian" ], "devDependencies": { - "@swc-node/register": "^1.6.5", + "@swc-node/register": "^1.6.6", "@swc/helpers": "^0.5.1", "@types/express": "^4.17.17", "@types/oauth": "^0.9.1", "@types/sinon": "^10.0.15", - "@typescript-eslint/eslint-plugin": "^5.59.9", - "@typescript-eslint/parser": "^5.59.9", - "ava": "^5.3.0", - "dotenv": "^16.1.4", - "eslint": "^8.42.0", + "@typescript-eslint/eslint-plugin": "^5.60.0", + "@typescript-eslint/parser": "^5.60.0", + "ava": "^5.3.1", + "dotenv": "^16.3.1", + "eslint": "^8.43.0", "eslint-config-airbnb": "^19.0.4", "eslint-config-airbnb-typescript": "^17.0.0", "eslint-import-resolver-typescript": "^3.5.5", "eslint-plugin-import": "^2.27.5", "prettier": "^2.8.8", "prettier-plugin-jsdoc": "^0.4.2", - "sinon": "^15.1.0", + "sinon": "^15.2.0", "typedoc": "^0.24.8", "typedoc-plugin-extras": "^2.3.3", "typescript": "^5.1.3" diff --git a/src/version2/parameters/getAttachmentContentProperties.ts b/src/version2/parameters/getAttachmentContentProperties.ts index b69b6cd6..b3ce5098 100644 --- a/src/version2/parameters/getAttachmentContentProperties.ts +++ b/src/version2/parameters/getAttachmentContentProperties.ts @@ -4,7 +4,7 @@ export interface GetAttachmentContentProperties { /** Filters the response to return a specific content property with matching key (case sensitive). */ key?: string; /** Used to sort the result by a particular field. */ - sort?: {}; + sort?: 'key' | '-key'; /** * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the * relative URL in the `Link` header to retrieve the `next` set of results. diff --git a/src/version2/parameters/getAttachmentVersions.ts b/src/version2/parameters/getAttachmentVersions.ts index 5ba9c734..fe7ad308 100644 --- a/src/version2/parameters/getAttachmentVersions.ts +++ b/src/version2/parameters/getAttachmentVersions.ts @@ -15,5 +15,5 @@ export interface GetAttachmentVersions { */ limit?: number; /** Used to sort the result by a particular field. */ - sort?: {}; + sort?: 'modified-date' | '-modified-date'; } diff --git a/src/version2/parameters/getBlogPostFooterComments.ts b/src/version2/parameters/getBlogPostFooterComments.ts index 07103f65..916c81e1 100644 --- a/src/version2/parameters/getBlogPostFooterComments.ts +++ b/src/version2/parameters/getBlogPostFooterComments.ts @@ -7,7 +7,7 @@ export interface GetBlogPostFooterComments { */ 'body-format'?: {}; /** Used to sort the result by a particular field. */ - sort?: {}; + sort?: 'created-date' | '-created-date' | 'modified-date' | '-modified-date'; /** * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the * relative URL in the `Link` header to retrieve the `next` set of results. diff --git a/src/version2/parameters/getBlogPostInlineComments.ts b/src/version2/parameters/getBlogPostInlineComments.ts index 71d26dfd..bb2a85dd 100644 --- a/src/version2/parameters/getBlogPostInlineComments.ts +++ b/src/version2/parameters/getBlogPostInlineComments.ts @@ -7,7 +7,7 @@ export interface GetBlogPostInlineComments { */ 'body-format'?: {}; /** Used to sort the result by a particular field. */ - sort?: {}; + sort?: 'created-date' | '-created-date' | 'modified-date' | '-modified-date'; /** * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the * relative URL in the `Link` header to retrieve the `next` set of results. diff --git a/src/version2/parameters/getBlogPostVersions.ts b/src/version2/parameters/getBlogPostVersions.ts index c6e80af3..60ccddb5 100644 --- a/src/version2/parameters/getBlogPostVersions.ts +++ b/src/version2/parameters/getBlogPostVersions.ts @@ -20,5 +20,5 @@ export interface GetBlogPostVersions { */ limit?: number; /** Used to sort the result by a particular field. */ - sort?: {}; + sort?: 'modified-date' | '-modified-date'; } diff --git a/src/version2/parameters/getBlogpostAttachments.ts b/src/version2/parameters/getBlogpostAttachments.ts index 29636d7a..6af88a04 100644 --- a/src/version2/parameters/getBlogpostAttachments.ts +++ b/src/version2/parameters/getBlogpostAttachments.ts @@ -2,7 +2,7 @@ export interface GetBlogpostAttachments { /** The ID of the blog post for which attachments should be returned. */ id: number; /** Used to sort the result by a particular field. */ - sort?: {}; + sort?: 'created-date' | '-created-date' | 'modified-date' | '-modified-date' | string; /** * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the * relative URL in the `Link` header to retrieve the `next` set of results. diff --git a/src/version2/parameters/getCustomContentAttachments.ts b/src/version2/parameters/getCustomContentAttachments.ts index 2102c9fd..007fcd2d 100644 --- a/src/version2/parameters/getCustomContentAttachments.ts +++ b/src/version2/parameters/getCustomContentAttachments.ts @@ -2,7 +2,7 @@ export interface GetCustomContentAttachments { /** The ID of the custom content for which attachments should be returned. */ id: number; /** Used to sort the result by a particular field. */ - sort?: {}; + sort?: 'created-date' | '-created-date' | 'modified-date' | '-modified-date' | string; /** * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the * relative URL in the `Link` header to retrieve the `next` set of results. diff --git a/src/version2/parameters/getCustomContentVersions.ts b/src/version2/parameters/getCustomContentVersions.ts index d1e6a3ea..80eb76e3 100644 --- a/src/version2/parameters/getCustomContentVersions.ts +++ b/src/version2/parameters/getCustomContentVersions.ts @@ -20,5 +20,5 @@ export interface GetCustomContentVersions { */ limit?: number; /** Used to sort the result by a particular field. */ - sort?: {}; + sort?: 'modified-date' | '-modified-date'; } diff --git a/src/version2/parameters/getFooterCommentChildren.ts b/src/version2/parameters/getFooterCommentChildren.ts index 2279f902..bacd8664 100644 --- a/src/version2/parameters/getFooterCommentChildren.ts +++ b/src/version2/parameters/getFooterCommentChildren.ts @@ -7,7 +7,7 @@ export interface GetFooterCommentChildren { */ 'body-format'?: {}; /** Used to sort the result by a particular field. */ - sort?: {}; + sort?: 'created-date' | '-created-date' | 'modified-date' | '-modified-date'; /** * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the * relative URL in the `Link` header to retrieve the `next` set of results. diff --git a/src/version2/parameters/getFooterCommentVersions.ts b/src/version2/parameters/getFooterCommentVersions.ts index a2d0c2c2..de7d8e6b 100644 --- a/src/version2/parameters/getFooterCommentVersions.ts +++ b/src/version2/parameters/getFooterCommentVersions.ts @@ -17,5 +17,5 @@ export interface GetFooterCommentVersions { */ limit?: number; /** Used to sort the result by a particular field. */ - sort?: {}; + sort?: 'modified-date' | '-modified-date'; } diff --git a/src/version2/parameters/getInlineCommentChildren.ts b/src/version2/parameters/getInlineCommentChildren.ts index 4123b15d..41bbc58f 100644 --- a/src/version2/parameters/getInlineCommentChildren.ts +++ b/src/version2/parameters/getInlineCommentChildren.ts @@ -8,7 +8,7 @@ export interface GetInlineCommentChildren { */ 'body-format'?: {}; /** Used to sort the result by a particular field. */ - sort?: {}; + sort?: 'created-date' | '-created-date' | 'modified-date' | '-modified-date'; /** * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the * relative URL in the `Link` header to retrieve the `next` set of results. diff --git a/src/version2/parameters/getInlineCommentVersions.ts b/src/version2/parameters/getInlineCommentVersions.ts index bba6e131..ebea9788 100644 --- a/src/version2/parameters/getInlineCommentVersions.ts +++ b/src/version2/parameters/getInlineCommentVersions.ts @@ -17,5 +17,5 @@ export interface GetInlineCommentVersions { */ limit?: number; /** Used to sort the result by a particular field. */ - sort?: {}; + sort?: 'modified-date' | '-modified-date'; } diff --git a/src/version2/parameters/getLabelAttachments.ts b/src/version2/parameters/getLabelAttachments.ts index b6504637..ee31e304 100644 --- a/src/version2/parameters/getLabelAttachments.ts +++ b/src/version2/parameters/getLabelAttachments.ts @@ -2,7 +2,7 @@ export interface GetLabelAttachments { /** The ID of the label for which attachments should be returned. */ id: number; /** Used to sort the result by a particular field. */ - sort?: {}; + sort?: 'created-date' | '-created-date' | 'modified-date' | '-modified-date' | string; /** * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the * relative URL in the `Link` header to retrieve the `next` set of results. diff --git a/src/version2/parameters/getLabelBlogPosts.ts b/src/version2/parameters/getLabelBlogPosts.ts index 7fbada6b..b8254c48 100644 --- a/src/version2/parameters/getLabelBlogPosts.ts +++ b/src/version2/parameters/getLabelBlogPosts.ts @@ -9,7 +9,7 @@ export interface GetLabelBlogPosts { */ bodyFormat?: PrimaryBodyRepresentation; /** Used to sort the result by a particular field. */ - sort?: {}; + sort?: 'id' | '-id' | 'created-date' | '-created-date' | 'modified-date' | '-modified-date' | string; /** * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the * relative URL in the `Link` header to retrieve the `next` set of results. diff --git a/src/version2/parameters/getLabelPages.ts b/src/version2/parameters/getLabelPages.ts index 371232d4..19c92c13 100644 --- a/src/version2/parameters/getLabelPages.ts +++ b/src/version2/parameters/getLabelPages.ts @@ -7,7 +7,7 @@ export interface GetLabelPages { */ 'body-format'?: {}; /** Used to sort the result by a particular field. */ - sort?: {}; + sort?: 'id' | '-id' | 'created-date' | '-created-date' | 'modified-date' | '-modified-date'; /** * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the * relative URL in the `Link` header to retrieve the `next` set of results. diff --git a/src/version2/parameters/getPageAttachments.ts b/src/version2/parameters/getPageAttachments.ts index a3d16158..94d49fe3 100644 --- a/src/version2/parameters/getPageAttachments.ts +++ b/src/version2/parameters/getPageAttachments.ts @@ -2,7 +2,7 @@ export interface GetPageAttachments { /** The ID of the page for which attachments should be returned. */ id: number; /** Used to sort the result by a particular field. */ - sort?: {}; + sort?: 'created-date' | '-created-date' | 'modified-date' | '-modified-date' | string; /** * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the * relative URL in the `Link` header to retrieve the `next` set of results. diff --git a/src/version2/parameters/getPageFooterComments.ts b/src/version2/parameters/getPageFooterComments.ts index c8976979..65f1531e 100644 --- a/src/version2/parameters/getPageFooterComments.ts +++ b/src/version2/parameters/getPageFooterComments.ts @@ -7,7 +7,7 @@ export interface GetPageFooterComments { */ 'body-format'?: {}; /** Used to sort the result by a particular field. */ - sort?: {}; + sort?: 'created-date' | '-created-date' | 'modified-date' | '-modified-date'; /** * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the * relative URL in the `Link` header to retrieve the `next` set of results. diff --git a/src/version2/parameters/getPageInlineComments.ts b/src/version2/parameters/getPageInlineComments.ts index 32900097..07bf7b6a 100644 --- a/src/version2/parameters/getPageInlineComments.ts +++ b/src/version2/parameters/getPageInlineComments.ts @@ -7,7 +7,7 @@ export interface GetPageInlineComments { */ 'body-format'?: {}; /** Used to sort the result by a particular field. */ - sort?: {}; + sort?: 'created-date' | '-created-date' | 'modified-date' | '-modified-date'; /** * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the * relative URL in the `Link` header to retrieve the `next` set of results. diff --git a/src/version2/parameters/getPageVersions.ts b/src/version2/parameters/getPageVersions.ts index fc506a3b..56cd0e4d 100644 --- a/src/version2/parameters/getPageVersions.ts +++ b/src/version2/parameters/getPageVersions.ts @@ -20,5 +20,5 @@ export interface GetPageVersions { */ limit?: number; /** Used to sort the result by a particular field. */ - sort?: {}; + sort?: 'modified-date' | '-modified-date'; } diff --git a/src/version2/parameters/getSpaces.ts b/src/version2/parameters/getSpaces.ts index 12fe1a12..b5d1eaa9 100644 --- a/src/version2/parameters/getSpaces.ts +++ b/src/version2/parameters/getSpaces.ts @@ -10,7 +10,7 @@ export interface GetSpaces { /** Filter the results to spaces based on their labels. Multiple labels can be specified as a comma-separated list. */ labels?: string[]; /** Used to sort the result by a particular field. */ - sort?: {}; + sort?: 'id' | '-id' | 'key' | '-key' | 'name' | '-name'; /** * The content format type to be returned in the `description` field of the response. If available, the representation * will be available under a response field of the same name under the `description` field. From 8765fe80661a8ecb8e76b567f50a13bac82cb1b6 Mon Sep 17 00:00:00 2001 From: Augustus Thomas <33500951+augustus-thomas@users.noreply.github.com> Date: Mon, 26 Jun 2023 10:31:32 -0500 Subject: [PATCH 15/44] Refactor getBlogPostById interface and implementation params (#85) --- src/version2/blogPost.ts | 4 ++-- src/version2/parameters/getBlogPostById.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/version2/blogPost.ts b/src/version2/blogPost.ts index 11f07b49..1171346b 100644 --- a/src/version2/blogPost.ts +++ b/src/version2/blogPost.ts @@ -110,8 +110,8 @@ export class BlogPost { url: `/blogposts/${parameters.id}`, method: 'GET', params: { - 'body-format': parameters['body-format'], - 'get-draft': parameters['get-draft'], + 'body-format': parameters.bodyFormat, + 'get-draft': parameters.getDraft, version: parameters.version, 'serialize-ids-as-strings': true, }, diff --git a/src/version2/parameters/getBlogPostById.ts b/src/version2/parameters/getBlogPostById.ts index d8881974..d5461ab4 100644 --- a/src/version2/parameters/getBlogPostById.ts +++ b/src/version2/parameters/getBlogPostById.ts @@ -8,9 +8,9 @@ export interface GetBlogPostById { * The content format types to be returned in the `body` field of the response. If available, the representation will * be available under a response field of the same name under the `body` field. */ - 'body-format'?: {}; + bodyFormat?: {}; /** Retrieve the draft version of this blog post. */ - 'get-draft'?: boolean; + getDraft?: boolean; /** * Allows you to retrieve a previously published version. Specify the previous version's number to retrieve its * details. From ece3787ec840c3bbee3d99cc05404d506557076f Mon Sep 17 00:00:00 2001 From: Haider Zaidi <100717066+haiderzaidi07@users.noreply.github.com> Date: Tue, 27 Jun 2023 01:27:43 +0500 Subject: [PATCH 16/44] converted parameters in getTasks to CamelCase (#89) --- src/version2/parameters/getTasks.ts | 24 ++++++++++++------------ src/version2/task.ts | 26 +++++++++++++------------- 2 files changed, 25 insertions(+), 25 deletions(-) diff --git a/src/version2/parameters/getTasks.ts b/src/version2/parameters/getTasks.ts index 4331920d..b1cedba4 100644 --- a/src/version2/parameters/getTasks.ts +++ b/src/version2/parameters/getTasks.ts @@ -3,9 +3,9 @@ export interface GetTasks { * The content format types to be returned in the `body` field of the response. If available, the representation will * be available under a response field of the same name under the `body` field. */ - 'body-format'?: {}; + bodyFormat?: {}; /** Specifies whether to include blank tasks in the response. Defaults to `true`. */ - 'include-blank-tasks'?: boolean; + includeBlankTasks?: boolean; /** Filters on the status of the task. */ status?: string; /** Filters on task ID. Multiple IDs can be specified. */ @@ -21,34 +21,34 @@ export interface GetTasks { * Filters on the blog post ID of the task. Multiple IDs can be specified. Note - page and blog post filters can be * used in conjunction. */ - 'blogpost-id'?: number[]; + blogpostId?: number[]; /** Filters on the Account ID of the user who created this task. Multiple IDs can be specified. */ - 'created-by'?: string[]; + createdBy?: string[]; /** Filters on the Account ID of the user to whom this task is assigned. Multiple IDs can be specified. */ - 'assigned-to'?: string[]; + assignedTo?: string[]; /** Filters on the Account ID of the user who completed this task. Multiple IDs can be specified. */ - 'completed-by'?: string[]; + completedBy?: string[]; /** * Filters on start of date-time range of task based on creation date (inclusive). Input is epoch time in * milliseconds. */ - 'created-at-from'?: number; + createdAtFrom?: number; /** Filters on end of date-time range of task based on creation date (inclusive). Input is epoch time in milliseconds. */ - 'created-at-to'?: number; + createdAtTo?: number; /** Filters on start of date-time range of task based on due date (inclusive). Input is epoch time in milliseconds. */ - 'due-at-from'?: number; + dueAtFrom?: number; /** Filters on end of date-time range of task based on due date (inclusive). Input is epoch time in milliseconds. */ - 'due-at-to'?: number; + dueAtTo?: number; /** * Filters on start of date-time range of task based on completion date (inclusive). Input is epoch time in * milliseconds. */ - 'completed-at-from'?: number; + completedAtFrom?: number; /** * Filters on end of date-time range of task based on completion date (inclusive). Input is epoch time in * milliseconds. */ - 'completed-at-to'?: number; + completedAtTo?: number; /** * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the * relative URL in the `Link` header to retrieve the `next` set of results. diff --git a/src/version2/task.ts b/src/version2/task.ts index c6dcf908..7f7952c0 100644 --- a/src/version2/task.ts +++ b/src/version2/task.ts @@ -5,7 +5,7 @@ import { Client } from '../clients'; import { RequestConfig } from '../requestConfig'; export class Task { - constructor(private client: Client) {} + constructor(private client: Client) { } /** * Returns all tasks. The number of results is limited by the `limit` parameter and additional results (if available) @@ -34,22 +34,22 @@ export class Task { url: '/tasks', method: 'GET', params: { - 'body-format': parameters?.['body-format'], - 'include-blank-tasks': parameters?.['include-blank-tasks'], + 'body-format': parameters?.bodyFormat, + 'include-blank-tasks': parameters?.includeBlankTasks, status: parameters?.status, 'task-id': parameters?.taskId, 'space-id': parameters?.spaceId, 'page-id': parameters?.pageId, - 'blogpost-id': parameters?.['blogpost-id'], - 'created-by': parameters?.['created-by'], - 'assigned-to': parameters?.['assigned-to'], - 'completed-by': parameters?.['completed-by'], - 'created-at-from': parameters?.['created-at-from'], - 'created-at-to': parameters?.['created-at-to'], - 'due-at-from': parameters?.['due-at-from'], - 'due-at-to': parameters?.['due-at-to'], - 'completed-at-from': parameters?.['completed-at-from'], - 'completed-at-to': parameters?.['completed-at-to'], + 'blogpost-id': parameters?.blogpostId, + 'created-by': parameters?.createdBy, + 'assigned-to': parameters?.assignedTo, + 'completed-by': parameters?.completedBy, + 'created-at-from': parameters?.createdAtFrom, + 'created-at-to': parameters?.createdAtTo, + 'due-at-from': parameters?.dueAtFrom, + 'due-at-to': parameters?.dueAtTo, + 'completed-at-from': parameters?.completedAtFrom, + 'completed-at-to': parameters?.completedAtTo, cursor: parameters?.cursor, limit: parameters?.limit, 'serialize-ids-as-strings': true, From 0a721775129b46feb107e4dd63efc7889ce4abf7 Mon Sep 17 00:00:00 2001 From: Vladislav Tupikin Date: Tue, 27 Jun 2023 00:43:48 +0400 Subject: [PATCH 17/44] dependencies updated --- package-lock.json | 108 +++++++++++++++++++++++----------------------- package.json | 4 +- 2 files changed, 56 insertions(+), 56 deletions(-) diff --git a/package-lock.json b/package-lock.json index ab5d481b..6d6d4ad7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -21,8 +21,8 @@ "@types/express": "^4.17.17", "@types/oauth": "^0.9.1", "@types/sinon": "^10.0.15", - "@typescript-eslint/eslint-plugin": "^5.60.0", - "@typescript-eslint/parser": "^5.60.0", + "@typescript-eslint/eslint-plugin": "^5.60.1", + "@typescript-eslint/parser": "^5.60.1", "ava": "^5.3.1", "dotenv": "^16.3.1", "eslint": "^8.43.0", @@ -593,9 +593,9 @@ "dev": true }, "node_modules/@types/node": { - "version": "20.3.1", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.3.1.tgz", - "integrity": "sha512-EhcH/wvidPy1WeML3TtYFGR83UzjxeWRen9V402T8aUGYsCHOmfoisV3ZSg03gAFIbLq8TnWOJ0f4cALtnSEUg==", + "version": "20.3.2", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.3.2.tgz", + "integrity": "sha512-vOBLVQeCQfIcF/2Y7eKFTqrMnizK5lRNQ7ykML/5RuwVXVWxYkgwS7xbt4B6fKCUPgbSL5FSsjHQpaGQP/dQmw==", "dev": true }, "node_modules/@types/oauth": { @@ -668,15 +668,15 @@ "dev": true }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "5.60.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.60.0.tgz", - "integrity": "sha512-78B+anHLF1TI8Jn/cD0Q00TBYdMgjdOn980JfAVa9yw5sop8nyTfVOQAv6LWywkOGLclDBtv5z3oxN4w7jxyNg==", + "version": "5.60.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.60.1.tgz", + "integrity": "sha512-KSWsVvsJsLJv3c4e73y/Bzt7OpqMCADUO846bHcuWYSYM19bldbAeDv7dYyV0jwkbMfJ2XdlzwjhXtuD7OY6bw==", "dev": true, "dependencies": { "@eslint-community/regexpp": "^4.4.0", - "@typescript-eslint/scope-manager": "5.60.0", - "@typescript-eslint/type-utils": "5.60.0", - "@typescript-eslint/utils": "5.60.0", + "@typescript-eslint/scope-manager": "5.60.1", + "@typescript-eslint/type-utils": "5.60.1", + "@typescript-eslint/utils": "5.60.1", "debug": "^4.3.4", "grapheme-splitter": "^1.0.4", "ignore": "^5.2.0", @@ -702,14 +702,14 @@ } }, "node_modules/@typescript-eslint/parser": { - "version": "5.60.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.60.0.tgz", - "integrity": "sha512-jBONcBsDJ9UoTWrARkRRCgDz6wUggmH5RpQVlt7BimSwaTkTjwypGzKORXbR4/2Hqjk9hgwlon2rVQAjWNpkyQ==", + "version": "5.60.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.60.1.tgz", + "integrity": "sha512-pHWlc3alg2oSMGwsU/Is8hbm3XFbcrb6P5wIxcQW9NsYBfnrubl/GhVVD/Jm/t8HXhA2WncoIRfBtnCgRGV96Q==", "dev": true, "dependencies": { - "@typescript-eslint/scope-manager": "5.60.0", - "@typescript-eslint/types": "5.60.0", - "@typescript-eslint/typescript-estree": "5.60.0", + "@typescript-eslint/scope-manager": "5.60.1", + "@typescript-eslint/types": "5.60.1", + "@typescript-eslint/typescript-estree": "5.60.1", "debug": "^4.3.4" }, "engines": { @@ -729,13 +729,13 @@ } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "5.60.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.60.0.tgz", - "integrity": "sha512-hakuzcxPwXi2ihf9WQu1BbRj1e/Pd8ZZwVTG9kfbxAMZstKz8/9OoexIwnmLzShtsdap5U/CoQGRCWlSuPbYxQ==", + "version": "5.60.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.60.1.tgz", + "integrity": "sha512-Dn/LnN7fEoRD+KspEOV0xDMynEmR3iSHdgNsarlXNLGGtcUok8L4N71dxUgt3YvlO8si7E+BJ5Fe3wb5yUw7DQ==", "dev": true, "dependencies": { - "@typescript-eslint/types": "5.60.0", - "@typescript-eslint/visitor-keys": "5.60.0" + "@typescript-eslint/types": "5.60.1", + "@typescript-eslint/visitor-keys": "5.60.1" }, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" @@ -746,13 +746,13 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "5.60.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.60.0.tgz", - "integrity": "sha512-X7NsRQddORMYRFH7FWo6sA9Y/zbJ8s1x1RIAtnlj6YprbToTiQnM6vxcMu7iYhdunmoC0rUWlca13D5DVHkK2g==", + "version": "5.60.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.60.1.tgz", + "integrity": "sha512-vN6UztYqIu05nu7JqwQGzQKUJctzs3/Hg7E2Yx8rz9J+4LgtIDFWjjl1gm3pycH0P3mHAcEUBd23LVgfrsTR8A==", "dev": true, "dependencies": { - "@typescript-eslint/typescript-estree": "5.60.0", - "@typescript-eslint/utils": "5.60.0", + "@typescript-eslint/typescript-estree": "5.60.1", + "@typescript-eslint/utils": "5.60.1", "debug": "^4.3.4", "tsutils": "^3.21.0" }, @@ -773,9 +773,9 @@ } }, "node_modules/@typescript-eslint/types": { - "version": "5.60.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.60.0.tgz", - "integrity": "sha512-ascOuoCpNZBccFVNJRSC6rPq4EmJ2NkuoKnd6LDNyAQmdDnziAtxbCGWCbefG1CNzmDvd05zO36AmB7H8RzKPA==", + "version": "5.60.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.60.1.tgz", + "integrity": "sha512-zDcDx5fccU8BA0IDZc71bAtYIcG9PowaOwaD8rjYbqwK7dpe/UMQl3inJ4UtUK42nOCT41jTSCwg76E62JpMcg==", "dev": true, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" @@ -786,13 +786,13 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "5.60.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.60.0.tgz", - "integrity": "sha512-R43thAuwarC99SnvrBmh26tc7F6sPa2B3evkXp/8q954kYL6Ro56AwASYWtEEi+4j09GbiNAHqYwNNZuNlARGQ==", + "version": "5.60.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.60.1.tgz", + "integrity": "sha512-hkX70J9+2M2ZT6fhti5Q2FoU9zb+GeZK2SLP1WZlvUDqdMbEKhexZODD1WodNRyO8eS+4nScvT0dts8IdaBzfw==", "dev": true, "dependencies": { - "@typescript-eslint/types": "5.60.0", - "@typescript-eslint/visitor-keys": "5.60.0", + "@typescript-eslint/types": "5.60.1", + "@typescript-eslint/visitor-keys": "5.60.1", "debug": "^4.3.4", "globby": "^11.1.0", "is-glob": "^4.0.3", @@ -813,17 +813,17 @@ } }, "node_modules/@typescript-eslint/utils": { - "version": "5.60.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.60.0.tgz", - "integrity": "sha512-ba51uMqDtfLQ5+xHtwlO84vkdjrqNzOnqrnwbMHMRY8Tqeme8C2Q8Fc7LajfGR+e3/4LoYiWXUM6BpIIbHJ4hQ==", + "version": "5.60.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.60.1.tgz", + "integrity": "sha512-tiJ7FFdFQOWssFa3gqb94Ilexyw0JVxj6vBzaSpfN/8IhoKkDuSAenUKvsSHw2A/TMpJb26izIszTXaqygkvpQ==", "dev": true, "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", "@types/json-schema": "^7.0.9", "@types/semver": "^7.3.12", - "@typescript-eslint/scope-manager": "5.60.0", - "@typescript-eslint/types": "5.60.0", - "@typescript-eslint/typescript-estree": "5.60.0", + "@typescript-eslint/scope-manager": "5.60.1", + "@typescript-eslint/types": "5.60.1", + "@typescript-eslint/typescript-estree": "5.60.1", "eslint-scope": "^5.1.1", "semver": "^7.3.7" }, @@ -839,12 +839,12 @@ } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "5.60.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.60.0.tgz", - "integrity": "sha512-wm9Uz71SbCyhUKgcaPRauBdTegUyY/ZWl8gLwD/i/ybJqscrrdVSFImpvUz16BLPChIeKBK5Fa9s6KDQjsjyWw==", + "version": "5.60.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.60.1.tgz", + "integrity": "sha512-xEYIxKcultP6E/RMKqube11pGjXH1DCo60mQoWhVYyKfLkwbIVVjYxmOenNMxILx0TjCujPTjjnTIVzm09TXIw==", "dev": true, "dependencies": { - "@typescript-eslint/types": "5.60.0", + "@typescript-eslint/types": "5.60.1", "eslint-visitor-keys": "^3.3.0" }, "engines": { @@ -967,9 +967,9 @@ "dev": true }, "node_modules/aria-query": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.2.1.tgz", - "integrity": "sha512-7uFg4b+lETFgdaJyETnILsXgnnzVnkHcgRbwbPwevm5x/LmUlt3MjczMRe1zg824iBgXZNRPTBftNYyRSKLp2g==", + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.3.0.tgz", + "integrity": "sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A==", "dev": true, "peer": true, "dependencies": { @@ -5483,9 +5483,9 @@ } }, "node_modules/shiki": { - "version": "0.14.2", - "resolved": "https://registry.npmjs.org/shiki/-/shiki-0.14.2.tgz", - "integrity": "sha512-ltSZlSLOuSY0M0Y75KA+ieRaZ0Trf5Wl3gutE7jzLuIcWxLp5i/uEnLoQWNvgKXQ5OMpGkJnVMRLAuzjc0LJ2A==", + "version": "0.14.3", + "resolved": "https://registry.npmjs.org/shiki/-/shiki-0.14.3.tgz", + "integrity": "sha512-U3S/a+b0KS+UkTyMjoNojvTgrBHjgp7L6ovhFVZsXmBGnVdQ4K4U9oK0z63w538S91ATngv1vXigHCSWOwnr+g==", "dev": true, "dependencies": { "ansi-sequence-parser": "^1.1.0", @@ -5992,9 +5992,9 @@ } }, "node_modules/typedoc/node_modules/minimatch": { - "version": "9.0.1", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.1.tgz", - "integrity": "sha512-0jWhJpD/MdhPXwPuiRkCbfYfSKp2qnn2eOc279qI7f+osl/l+prKSrvhg157zSYvx/1nmgn2NqdT6k2Z7zSH9w==", + "version": "9.0.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.2.tgz", + "integrity": "sha512-PZOT9g5v2ojiTL7r1xF6plNHLtOeTpSlDI007As2NlA2aYBMfVom17yqa6QzhmDP8QOhn7LjHTg7DFCVSSa6yg==", "dev": true, "dependencies": { "brace-expansion": "^2.0.1" diff --git a/package.json b/package.json index 0fdb0c67..eefd9ea5 100644 --- a/package.json +++ b/package.json @@ -47,8 +47,8 @@ "@types/express": "^4.17.17", "@types/oauth": "^0.9.1", "@types/sinon": "^10.0.15", - "@typescript-eslint/eslint-plugin": "^5.60.0", - "@typescript-eslint/parser": "^5.60.0", + "@typescript-eslint/eslint-plugin": "^5.60.1", + "@typescript-eslint/parser": "^5.60.1", "ava": "^5.3.1", "dotenv": "^16.3.1", "eslint": "^8.43.0", From 54897f5b8c4e97e8b129cee2b95021b5883cdc2f Mon Sep 17 00:00:00 2001 From: mukultotla <65943521+mukultotla@users.noreply.github.com> Date: Tue, 27 Jun 2023 13:35:47 +0530 Subject: [PATCH 18/44] fix(getInlineCommentVersions): dashed to camelCase convention (#88) * fix(getInlineCommentVersions): dashed to camelCase convention * Update src/version2/parameters/getInlineCommentVersions.ts --------- Co-authored-by: Vladislav Tupikin --- src/version2/parameters/getInlineCommentVersions.ts | 2 +- src/version2/version.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/version2/parameters/getInlineCommentVersions.ts b/src/version2/parameters/getInlineCommentVersions.ts index ebea9788..5d1beb7e 100644 --- a/src/version2/parameters/getInlineCommentVersions.ts +++ b/src/version2/parameters/getInlineCommentVersions.ts @@ -5,7 +5,7 @@ export interface GetInlineCommentVersions { * The content format types to be returned in the `body` field of the response. If available, the representation will * be available under a response field of the same name under the `body` field. */ - 'body-format'?: {}; + bodyFormat?: {}; /** * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the * relative URL in the `Link` header to retrieve the `next` set of results. diff --git a/src/version2/version.ts b/src/version2/version.ts index e314b022..2c20a39d 100644 --- a/src/version2/version.ts +++ b/src/version2/version.ts @@ -376,7 +376,7 @@ export class Version { url: `/inline-comments/${parameters.id}/versions`, method: 'GET', params: { - 'body-format': parameters['body-format'], + 'body-format': parameters.bodyFormat, cursor: parameters.cursor, limit: parameters.limit, sort: parameters.sort, From abe5001cd2dac39070c1451861967f5785ee1837 Mon Sep 17 00:00:00 2001 From: Fabio Rodriguez <71491674+frodri13@users.noreply.github.com> Date: Tue, 27 Jun 2023 15:05:02 +0100 Subject: [PATCH 19/44] Update task.ts camelCase 84 1 (#86) * Update task.ts camelCase * chagned format on getTaskByID --- src/version2/parameters/getTaskById.ts | 2 +- src/version2/task.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/version2/parameters/getTaskById.ts b/src/version2/parameters/getTaskById.ts index 67b0df77..0432783c 100644 --- a/src/version2/parameters/getTaskById.ts +++ b/src/version2/parameters/getTaskById.ts @@ -5,5 +5,5 @@ export interface GetTaskById { * The content format types to be returned in the `body` field of the response. If available, the representation will * be available under a response field of the same name under the `body` field. */ - 'body-format'?: {}; + bodyFormat?: {}; } diff --git a/src/version2/task.ts b/src/version2/task.ts index 7f7952c0..b3458869 100644 --- a/src/version2/task.ts +++ b/src/version2/task.ts @@ -78,7 +78,7 @@ export class Task { url: `/tasks/${parameters.id}`, method: 'GET', params: { - 'body-format': parameters['body-format'], + 'body-format': parameters.bodyFormat, 'serialize-ids-as-strings': true, }, }; From cc8f4b90f9a88906ad14c9c09e14295a6f3a3a1a Mon Sep 17 00:00:00 2001 From: Fabio Rodriguez <71491674+frodri13@users.noreply.github.com> Date: Fri, 30 Jun 2023 13:48:18 +0100 Subject: [PATCH 20/44] camelCase getCustomContentByTypeInBlogPost (#104) * camelCase getCustomContentByTypeInBlogPost * interface modified --- src/version2/customContent.ts | 2 +- src/version2/parameters/getCustomContentByTypeInBlogPost.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/version2/customContent.ts b/src/version2/customContent.ts index 32698bfd..64aa2634 100644 --- a/src/version2/customContent.ts +++ b/src/version2/customContent.ts @@ -42,7 +42,7 @@ export class CustomContent { type: parameters.type, cursor: parameters.cursor, limit: parameters.limit, - 'body-format': parameters['body-format'], + 'body-format': parameters.bodyFormat, 'serialize-ids-as-strings': true, }, }; diff --git a/src/version2/parameters/getCustomContentByTypeInBlogPost.ts b/src/version2/parameters/getCustomContentByTypeInBlogPost.ts index 13bfbfe1..5474095b 100644 --- a/src/version2/parameters/getCustomContentByTypeInBlogPost.ts +++ b/src/version2/parameters/getCustomContentByTypeInBlogPost.ts @@ -23,5 +23,5 @@ export interface GetCustomContentByTypeInBlogPost { * Note: If the custom content body type is `storage`, the `storage` and `atlas_doc_format` body formats are able to * be returned. If the custom content body type is `raw`, only the `raw` body format is able to be returned. */ - 'body-format'?: {}; + bodyFormat?: {}; } From 2e8d3d62ce90e3267adc79b2ef1c5268b6f6d17b Mon Sep 17 00:00:00 2001 From: Fabio Rodriguez <71491674+frodri13@users.noreply.github.com> Date: Fri, 30 Jun 2023 13:49:20 +0100 Subject: [PATCH 21/44] camelCase getCustomContentByType (#103) * camelCase getCustomContentByType * modified interface --- src/version2/customContent.ts | 2 +- src/version2/parameters/getCustomContentByType.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/version2/customContent.ts b/src/version2/customContent.ts index 64aa2634..513fd62d 100644 --- a/src/version2/customContent.ts +++ b/src/version2/customContent.ts @@ -84,7 +84,7 @@ export class CustomContent { id: parameters.id, cursor: parameters.cursor, limit: parameters.limit, - 'body-format': parameters['body-format'], + 'body-format': parameters.bodyFormat, 'serialize-ids-as-strings': true, }, }; diff --git a/src/version2/parameters/getCustomContentByType.ts b/src/version2/parameters/getCustomContentByType.ts index e9666d75..08907d87 100644 --- a/src/version2/parameters/getCustomContentByType.ts +++ b/src/version2/parameters/getCustomContentByType.ts @@ -26,5 +26,5 @@ export interface GetCustomContentByType { * Note: If the custom content body type is `storage`, the `storage` and `atlas_doc_format` body formats are able to * be returned. If the custom content body type is `raw`, only the `raw` body format is able to be returned. */ - 'body-format'?: {}; + bodyFormat?: {}; } From be3730e5e4b36bef0e961037b71d1bb7bc79127d Mon Sep 17 00:00:00 2001 From: Fabio Rodriguez <71491674+frodri13@users.noreply.github.com> Date: Fri, 30 Jun 2023 13:52:44 +0100 Subject: [PATCH 22/44] camelCase getCustomContentById (#102) * camelCase getCustomContentById * interface modified --- src/version2/customContent.ts | 2 +- src/version2/parameters/getCustomContentById.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/version2/customContent.ts b/src/version2/customContent.ts index 513fd62d..df9e9bb4 100644 --- a/src/version2/customContent.ts +++ b/src/version2/customContent.ts @@ -157,7 +157,7 @@ export class CustomContent { url: `/custom-content/${parameters.id}`, method: 'GET', params: { - 'body-format': parameters['body-format'], + 'body-format': parameters.bodyFormat, version: parameters.version, 'serialize-ids-as-strings': true, }, diff --git a/src/version2/parameters/getCustomContentById.ts b/src/version2/parameters/getCustomContentById.ts index 15a6eff3..ac62a4a0 100644 --- a/src/version2/parameters/getCustomContentById.ts +++ b/src/version2/parameters/getCustomContentById.ts @@ -11,7 +11,7 @@ export interface GetCustomContentById { * Note: If the custom content body type is `storage`, the `storage` and `atlas_doc_format` body formats are able to * be returned. If the custom content body type is `raw`, only the `raw` body format is able to be returned. */ - 'body-format'?: {}; + bodyFormat?: {}; /** * Allows you to retrieve a previously published version. Specify the previous version's number to retrieve its * details. From 2e1e7fb1719ac99694d949746f6b2ca1038790c0 Mon Sep 17 00:00:00 2001 From: Fabio Rodriguez <71491674+frodri13@users.noreply.github.com> Date: Fri, 30 Jun 2023 13:55:54 +0100 Subject: [PATCH 23/44] camelCase getCustomContentByTypeInPage (#101) * camelCase getCustomContentByTypeInPage * modified getCustomContentByTypeInPage interface --- src/version2/customContent.ts | 2 +- src/version2/parameters/getCustomContentByTypeInPage.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/version2/customContent.ts b/src/version2/customContent.ts index df9e9bb4..58bf51e4 100644 --- a/src/version2/customContent.ts +++ b/src/version2/customContent.ts @@ -264,7 +264,7 @@ export class CustomContent { type: parameters.type, cursor: parameters.cursor, limit: parameters.limit, - 'body-format': parameters['body-format'], + 'body-format': parameters.bodyFormat, 'serialize-ids-as-strings': true, }, }; diff --git a/src/version2/parameters/getCustomContentByTypeInPage.ts b/src/version2/parameters/getCustomContentByTypeInPage.ts index 8cad28de..7950f77a 100644 --- a/src/version2/parameters/getCustomContentByTypeInPage.ts +++ b/src/version2/parameters/getCustomContentByTypeInPage.ts @@ -23,5 +23,5 @@ export interface GetCustomContentByTypeInPage { * Note: If the custom content body type is `storage`, the `storage` and `atlas_doc_format` body formats are able to * be returned. If the custom content body type is `raw`, only the `raw` body format is able to be returned. */ - 'body-format'?: {}; + bodyFormat?: {}; } From 2f9cbba344c35f1eb59a709148a428f8db935b5d Mon Sep 17 00:00:00 2001 From: Fabio Rodriguez <71491674+frodri13@users.noreply.github.com> Date: Fri, 30 Jun 2023 13:57:18 +0100 Subject: [PATCH 24/44] camelCase getCustomContentByTypeInSpace (#100) * camelCase getCustomContentByTypeInSpace * modified interface --- src/version2/customContent.ts | 2 +- src/version2/parameters/getCustomContentByTypeInSpace.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/version2/customContent.ts b/src/version2/customContent.ts index 58bf51e4..0eca66d0 100644 --- a/src/version2/customContent.ts +++ b/src/version2/customContent.ts @@ -307,7 +307,7 @@ export class CustomContent { type: parameters.type, cursor: parameters.cursor, limit: parameters.limit, - 'body-format': parameters['body-format'], + 'body-format': parameters.bodyFormat, 'serialize-ids-as-strings': true, }, }; diff --git a/src/version2/parameters/getCustomContentByTypeInSpace.ts b/src/version2/parameters/getCustomContentByTypeInSpace.ts index 13cb1642..6ff8b4e6 100644 --- a/src/version2/parameters/getCustomContentByTypeInSpace.ts +++ b/src/version2/parameters/getCustomContentByTypeInSpace.ts @@ -23,5 +23,5 @@ export interface GetCustomContentByTypeInSpace { * Note: If the custom content body type is `storage`, the `storage` and `atlas_doc_format` body formats are able to * be returned. If the custom content body type is `raw`, only the `raw` body format is able to be returned. */ - 'body-format'?: {}; + bodyFormat?: {}; } From 6e23b3148c8814be5f1d3711581cfc02e2ab2a7e Mon Sep 17 00:00:00 2001 From: Fabio Rodriguez <71491674+frodri13@users.noreply.github.com> Date: Fri, 30 Jun 2023 13:59:11 +0100 Subject: [PATCH 25/44] camelCase getLabelPages (#99) * camelCase getLabelPages * modified GetLabelPages interface --- src/version2/page.ts | 2 +- src/version2/parameters/getLabelPages.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/version2/page.ts b/src/version2/page.ts index fb4f0193..0a81b275 100644 --- a/src/version2/page.ts +++ b/src/version2/page.ts @@ -37,7 +37,7 @@ export class Page { url: `/labels/${parameters.id}/pages`, method: 'GET', params: { - 'body-format': parameters['body-format'], + 'body-format': parameters.bodyFormat, sort: parameters.sort, cursor: parameters.cursor, limit: parameters.limit, diff --git a/src/version2/parameters/getLabelPages.ts b/src/version2/parameters/getLabelPages.ts index 19c92c13..940bcf35 100644 --- a/src/version2/parameters/getLabelPages.ts +++ b/src/version2/parameters/getLabelPages.ts @@ -5,7 +5,7 @@ export interface GetLabelPages { * The content format types to be returned in the `body` field of the response. If available, the representation will * be available under a response field of the same name under the `body` field. */ - 'body-format'?: {}; + bodyFormat?: {}; /** Used to sort the result by a particular field. */ sort?: 'id' | '-id' | 'created-date' | '-created-date' | 'modified-date' | '-modified-date'; /** From d8dfab1f78380d2c9eb394553f36538512135cb9 Mon Sep 17 00:00:00 2001 From: Fabio Rodriguez <71491674+frodri13@users.noreply.github.com> Date: Fri, 30 Jun 2023 14:00:44 +0100 Subject: [PATCH 26/44] camelCase getPages (#98) * camelCase getPages * modified GetPages interface --- src/version2/page.ts | 2 +- src/version2/parameters/getPages.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/version2/page.ts b/src/version2/page.ts index 0a81b275..ff853bfa 100644 --- a/src/version2/page.ts +++ b/src/version2/page.ts @@ -77,7 +77,7 @@ export class Page { params: { id: parameters?.id, status: parameters?.status, - 'body-format': parameters?.['body-format'], + 'body-format': parameters?.bodyFormat, cursor: parameters?.cursor, limit: parameters?.limit, 'serialize-ids-as-strings': true, diff --git a/src/version2/parameters/getPages.ts b/src/version2/parameters/getPages.ts index 01208350..ab6e0b47 100644 --- a/src/version2/parameters/getPages.ts +++ b/src/version2/parameters/getPages.ts @@ -7,7 +7,7 @@ export interface GetPages { * The content format types to be returned in the `body` field of the response. If available, the representation will * be available under a response field of the same name under the `body` field. */ - 'body-format'?: {}; + bodyFormat?: {}; /** * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the * relative URL in the `Link` header to retrieve the `next` set of results. From 3d6417c2025297c081a46ef302430e667cd9e48b Mon Sep 17 00:00:00 2001 From: Fabio Rodriguez <71491674+frodri13@users.noreply.github.com> Date: Fri, 30 Jun 2023 14:01:29 +0100 Subject: [PATCH 27/44] camelCase for getPageById (#97) * camelCase for getPageById * modified GetPageById interface --- src/version2/page.ts | 4 ++-- src/version2/parameters/getPageById.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/version2/page.ts b/src/version2/page.ts index ff853bfa..6340824f 100644 --- a/src/version2/page.ts +++ b/src/version2/page.ts @@ -141,8 +141,8 @@ export class Page { url: `/pages/${parameters.id}`, method: 'GET', params: { - 'body-format': parameters['body-format'], - 'get-draft': parameters['get-draft'], + 'body-format': parameters.bodyFormat, + 'get-draft': parameters.getDraft, version: parameters.version, 'serialize-ids-as-strings': true, }, diff --git a/src/version2/parameters/getPageById.ts b/src/version2/parameters/getPageById.ts index 554f31ad..1f58a8a4 100644 --- a/src/version2/parameters/getPageById.ts +++ b/src/version2/parameters/getPageById.ts @@ -5,9 +5,9 @@ export interface GetPageById { * The content format types to be returned in the `body` field of the response. If available, the representation will * be available under a response field of the same name under the `body` field. */ - 'body-format'?: {}; + bodyFormat?: {}; /** Retrieve the draft version of this page. */ - 'get-draft'?: boolean; + getDraft?: boolean; /** * Allows you to retrieve a previously published version. Specify the previous version's number to retrieve its * details. From 977bdd1260c0bbc1019ce375a9a5f541932a4e06 Mon Sep 17 00:00:00 2001 From: Fabio Rodriguez <71491674+frodri13@users.noreply.github.com> Date: Fri, 30 Jun 2023 14:03:26 +0100 Subject: [PATCH 28/44] camelCase getPagesInSpace #75 (#96) * camelCase getPagesInSpace * interface GetPagesInSpace modified --- src/version2/page.ts | 2 +- src/version2/parameters/getPagesInSpace.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/version2/page.ts b/src/version2/page.ts index 6340824f..5e5b318d 100644 --- a/src/version2/page.ts +++ b/src/version2/page.ts @@ -233,7 +233,7 @@ export class Page { method: 'GET', params: { status: parameters.status, - 'body-format': parameters['body-format'], + 'body-format': parameters.bodyFormat, cursor: parameters.cursor, limit: parameters.limit, 'serialize-ids-as-strings': true, diff --git a/src/version2/parameters/getPagesInSpace.ts b/src/version2/parameters/getPagesInSpace.ts index 52d21d67..130adbd7 100644 --- a/src/version2/parameters/getPagesInSpace.ts +++ b/src/version2/parameters/getPagesInSpace.ts @@ -7,7 +7,7 @@ export interface GetPagesInSpace { * The content format types to be returned in the `body` field of the response. If available, the representation will * be available under a response field of the same name under the `body` field. */ - 'body-format'?: {}; + bodyFormat?: {}; /** * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the * relative URL in the `Link` header to retrieve the `next` set of results. From 85f014f9151a3c1517cb2cbfa32ed336e7f60d8a Mon Sep 17 00:00:00 2001 From: Fabio Rodriguez <71491674+frodri13@users.noreply.github.com> Date: Fri, 30 Jun 2023 14:08:00 +0100 Subject: [PATCH 29/44] camelCase for getSpaces #76 (#95) * camelCase for getSpaces * modified interface --- src/version2/parameters/getSpaces.ts | 2 +- src/version2/space.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/version2/parameters/getSpaces.ts b/src/version2/parameters/getSpaces.ts index b5d1eaa9..3dab2e7a 100644 --- a/src/version2/parameters/getSpaces.ts +++ b/src/version2/parameters/getSpaces.ts @@ -15,7 +15,7 @@ export interface GetSpaces { * The content format type to be returned in the `description` field of the response. If available, the representation * will be available under a response field of the same name under the `description` field. */ - 'description-format'?: {}; + descriptionFormat?: {}; /** * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the * relative URL in the `Link` header to retrieve the `next` set of results. diff --git a/src/version2/space.ts b/src/version2/space.ts index f156985b..eeb9d0e6 100644 --- a/src/version2/space.ts +++ b/src/version2/space.ts @@ -42,7 +42,7 @@ export class Space { status: parameters?.status, labels: parameters?.labels, sort: parameters?.sort, - 'description-format': parameters?.['description-format'], + 'description-format': parameters?.descriptionFormat, cursor: parameters?.cursor, limit: parameters?.limit, 'serialize-ids-as-strings': true, From bf34f1939a93331b4db3f7398d3af6bab351b0f8 Mon Sep 17 00:00:00 2001 From: Fabio Rodriguez <71491674+frodri13@users.noreply.github.com> Date: Fri, 30 Jun 2023 14:08:36 +0100 Subject: [PATCH 30/44] camelCase descriptionFormat for getSpaceByID (#94) * camelCase descriptionFormat for getSpaceByID * modified interface --- src/version2/parameters/getSpaceById.ts | 2 +- src/version2/space.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/version2/parameters/getSpaceById.ts b/src/version2/parameters/getSpaceById.ts index 74278efd..78839b23 100644 --- a/src/version2/parameters/getSpaceById.ts +++ b/src/version2/parameters/getSpaceById.ts @@ -5,5 +5,5 @@ export interface GetSpaceById { * The content format type to be returned in the `description` field of the response. If available, the representation * will be available under a response field of the same name under the `description` field. */ - 'description-format'?: {}; + descriptionFormat?: {}; } diff --git a/src/version2/space.ts b/src/version2/space.ts index eeb9d0e6..7543ee99 100644 --- a/src/version2/space.ts +++ b/src/version2/space.ts @@ -69,7 +69,7 @@ export class Space { url: `/spaces/${parameters.id}`, method: 'GET', params: { - 'description-format': parameters['description-format'], + 'description-format': parameters.descriptionFormat, }, }; From c1340fe4d20b9483a2a2526688a7fefc8f1cca81 Mon Sep 17 00:00:00 2001 From: Fabio Rodriguez <71491674+frodri13@users.noreply.github.com> Date: Fri, 30 Jun 2023 14:10:22 +0100 Subject: [PATCH 31/44] camelCase for getBlogPostVersions #78 (#93) * camelCase for getBlogPostVersions * modified interface --- src/version2/parameters/getBlogPostVersions.ts | 2 +- src/version2/version.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/version2/parameters/getBlogPostVersions.ts b/src/version2/parameters/getBlogPostVersions.ts index 60ccddb5..994c93cc 100644 --- a/src/version2/parameters/getBlogPostVersions.ts +++ b/src/version2/parameters/getBlogPostVersions.ts @@ -8,7 +8,7 @@ export interface GetBlogPostVersions { * The content format types to be returned in the `body` field of the response. If available, the representation will * be available under a response field of the same name under the `body` field. */ - 'body-format'?: {}; + bodyFormat?: {}; /** * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the * relative URL in the `Link` header to retrieve the `next` set of results. diff --git a/src/version2/version.ts b/src/version2/version.ts index 2c20a39d..3e735c4f 100644 --- a/src/version2/version.ts +++ b/src/version2/version.ts @@ -102,7 +102,7 @@ export class Version { url: `/blogposts/${parameters.id}/versions`, method: 'GET', params: { - 'body-format': parameters['body-format'], + 'body-format': parameters.bodyFormat, cursor: parameters.cursor, limit: parameters.limit, sort: parameters.sort, From f3f89bea6eb8d1c03d9b9e0c85ac7cf92fdf33a4 Mon Sep 17 00:00:00 2001 From: Fabio Rodriguez <71491674+frodri13@users.noreply.github.com> Date: Fri, 30 Jun 2023 14:11:00 +0100 Subject: [PATCH 32/44] camelCase for getPageVersions #79 (#92) * camelCase for getPageVersions * interface modified --- src/version2/parameters/getPageVersions.ts | 2 +- src/version2/version.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/version2/parameters/getPageVersions.ts b/src/version2/parameters/getPageVersions.ts index 56cd0e4d..ccbaa2ee 100644 --- a/src/version2/parameters/getPageVersions.ts +++ b/src/version2/parameters/getPageVersions.ts @@ -8,7 +8,7 @@ export interface GetPageVersions { * The content format types to be returned in the `body` field of the response. If available, the representation will * be available under a response field of the same name under the `body` field. */ - 'body-format'?: {}; + bodyFormat?: {}; /** * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the * relative URL in the `Link` header to retrieve the `next` set of results. diff --git a/src/version2/version.ts b/src/version2/version.ts index 3e735c4f..9edf82a3 100644 --- a/src/version2/version.ts +++ b/src/version2/version.ts @@ -170,7 +170,7 @@ export class Version { url: `/pages/${parameters.id}/versions`, method: 'GET', params: { - 'body-format': parameters['body-format'], + 'body-format': parameters.bodyFormat, cursor: parameters.cursor, limit: parameters.limit, sort: parameters.sort, From 6be450081128a71031466db669f93e4675e1a659 Mon Sep 17 00:00:00 2001 From: Fabio Rodriguez <71491674+frodri13@users.noreply.github.com> Date: Fri, 30 Jun 2023 14:11:32 +0100 Subject: [PATCH 33/44] CamelCase for getCustomContentVersions #80 (#91) * CamelCase for getCustomContentVersions * modified interface --- src/version2/parameters/getCustomContentVersions.ts | 2 +- src/version2/version.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/version2/parameters/getCustomContentVersions.ts b/src/version2/parameters/getCustomContentVersions.ts index 80eb76e3..46deb100 100644 --- a/src/version2/parameters/getCustomContentVersions.ts +++ b/src/version2/parameters/getCustomContentVersions.ts @@ -8,7 +8,7 @@ export interface GetCustomContentVersions { * The content format types to be returned in the `body` field of the response. If available, the representation will * be available under a response field of the same name under the `body` field. */ - 'body-format'?: {}; + bodyFormat?: {}; /** * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the * relative URL in the `Link` header to retrieve the `next` set of results. diff --git a/src/version2/version.ts b/src/version2/version.ts index 9edf82a3..45174dca 100644 --- a/src/version2/version.ts +++ b/src/version2/version.ts @@ -238,7 +238,7 @@ export class Version { url: `/custom-content/${parameters.customContentId}/versions`, method: 'GET', params: { - 'body-format': parameters['body-format'], + 'body-format': parameters.bodyFormat, cursor: parameters.cursor, limit: parameters.limit, sort: parameters.sort, From a7ecc9c342f9656405caeb8e73a054c8eaeea22e Mon Sep 17 00:00:00 2001 From: Fabio Rodriguez <71491674+frodri13@users.noreply.github.com> Date: Fri, 30 Jun 2023 14:21:59 +0100 Subject: [PATCH 34/44] camelCase getFooterCommentVersions #81 (#90) * camelCase getFooterCommentVersions * getFooterCommentVersions interface modified --- src/version2/parameters/getFooterCommentVersions.ts | 2 +- src/version2/version.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/version2/parameters/getFooterCommentVersions.ts b/src/version2/parameters/getFooterCommentVersions.ts index de7d8e6b..e49bd173 100644 --- a/src/version2/parameters/getFooterCommentVersions.ts +++ b/src/version2/parameters/getFooterCommentVersions.ts @@ -5,7 +5,7 @@ export interface GetFooterCommentVersions { * The content format types to be returned in the `body` field of the response. If available, the representation will * be available under a response field of the same name under the `body` field. */ - 'body-format'?: {}; + bodyFormat?: {}; /** * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the * relative URL in the `Link` header to retrieve the `next` set of results. diff --git a/src/version2/version.ts b/src/version2/version.ts index 45174dca..5ec36aec 100644 --- a/src/version2/version.ts +++ b/src/version2/version.ts @@ -306,7 +306,7 @@ export class Version { url: `/footer-comments/${parameters.id}/versions`, method: 'GET', params: { - 'body-format': parameters['body-format'], + 'body-format': parameters.bodyFormat, cursor: parameters.cursor, limit: parameters.limit, sort: parameters.sort, From 512f0a15ea429fc8db39910a7202b1c92ae64bdb Mon Sep 17 00:00:00 2001 From: Kunal Virk Date: Sat, 1 Jul 2023 18:18:58 +0530 Subject: [PATCH 35/44] updated dash-cased to camelCase (#107) Co-authored-by: Kunal Virk --- src/version2/comment.ts | 2 +- src/version2/parameters/getPageFooterComments.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/version2/comment.ts b/src/version2/comment.ts index 92b0f31b..61af4f98 100644 --- a/src/version2/comment.ts +++ b/src/version2/comment.ts @@ -37,7 +37,7 @@ export class Comment { url: `/pages/${parameters.id}/footer-comments`, method: 'GET', params: { - 'body-format': parameters['body-format'], + 'body-format': parameters.bodyFormat, sort: parameters.sort, cursor: parameters.cursor, limit: parameters.limit, diff --git a/src/version2/parameters/getPageFooterComments.ts b/src/version2/parameters/getPageFooterComments.ts index 65f1531e..e212c5ab 100644 --- a/src/version2/parameters/getPageFooterComments.ts +++ b/src/version2/parameters/getPageFooterComments.ts @@ -5,7 +5,7 @@ export interface GetPageFooterComments { * The content format type to be returned in the `body` field of the response. If available, the representation will * be available under a response field of the same name under the `body` field. */ - 'body-format'?: {}; + bodyFormat?: {}; /** Used to sort the result by a particular field. */ sort?: 'created-date' | '-created-date' | 'modified-date' | '-modified-date'; /** From 41c0692893e9d867a8e5667942156473d4742c4c Mon Sep 17 00:00:00 2001 From: Fabio Rodriguez <71491674+frodri13@users.noreply.github.com> Date: Sat, 1 Jul 2023 22:17:53 +0100 Subject: [PATCH 36/44] CamelCase in getInlineCommentById (#109) * CamelCase in getInlineCommentById * modified interface --- src/version2/comment.ts | 2 +- src/version2/parameters/getInlineCommentById.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/version2/comment.ts b/src/version2/comment.ts index 61af4f98..59459fc1 100644 --- a/src/version2/comment.ts +++ b/src/version2/comment.ts @@ -439,7 +439,7 @@ export class Comment { url: `/inline-comments/${parameters.commentId}`, method: 'GET', params: { - 'body-format': parameters['body-format'], + 'body-format': parameters.bodyFormat, version: parameters.version, 'serialize-ids-as-strings': true, }, diff --git a/src/version2/parameters/getInlineCommentById.ts b/src/version2/parameters/getInlineCommentById.ts index 616977f3..cd10c19b 100644 --- a/src/version2/parameters/getInlineCommentById.ts +++ b/src/version2/parameters/getInlineCommentById.ts @@ -5,7 +5,7 @@ export interface GetInlineCommentById { * The content format type to be returned in the `body` field of the response. If available, the representation will * be available under a response field of the same name under the `body` field. */ - 'body-format'?: {}; + bodyFormat?: {}; /** * Allows you to retrieve a previously published version. Specify the previous version's number to retrieve its * details. From 210bd40776a97815445d04c536ad6dc86ac2fdf8 Mon Sep 17 00:00:00 2001 From: Fabio Rodriguez <71491674+frodri13@users.noreply.github.com> Date: Sat, 1 Jul 2023 22:18:23 +0100 Subject: [PATCH 37/44] CamelCase in getInlineCommentChildren (#108) * CamelCase in getInlineCommentChildren * modified interface --- src/version2/comment.ts | 2 +- src/version2/parameters/getInlineCommentChildren.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/version2/comment.ts b/src/version2/comment.ts index 59459fc1..6209ba69 100644 --- a/src/version2/comment.ts +++ b/src/version2/comment.ts @@ -547,7 +547,7 @@ export class Comment { method: 'GET', params: { 'serialize-ids-as-strings': true, - 'body-format': parameters['body-format'], + 'body-format': parameters.bodyFormat, sort: parameters.sort, cursor: parameters.cursor, limit: parameters.limit, diff --git a/src/version2/parameters/getInlineCommentChildren.ts b/src/version2/parameters/getInlineCommentChildren.ts index 41bbc58f..8badb372 100644 --- a/src/version2/parameters/getInlineCommentChildren.ts +++ b/src/version2/parameters/getInlineCommentChildren.ts @@ -6,7 +6,7 @@ export interface GetInlineCommentChildren { * The content format type to be returned in the `body` field of the response. If available, the representation will * be available under a response field of the same name under the `body` field. */ - 'body-format'?: {}; + bodyFormat?: {}; /** Used to sort the result by a particular field. */ sort?: 'created-date' | '-created-date' | 'modified-date' | '-modified-date'; /** From 2d642544112f506ac41acfd1130f52e35b2b1e74 Mon Sep 17 00:00:00 2001 From: Fabio Rodriguez <71491674+frodri13@users.noreply.github.com> Date: Sun, 2 Jul 2023 13:11:37 +0100 Subject: [PATCH 38/44] CamelCase in getFooterCommentChildren (#112) * CamelCase in getFooterCommentChildren * modified interface --- src/version2/comment.ts | 2 +- src/version2/parameters/getFooterCommentChildren.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/version2/comment.ts b/src/version2/comment.ts index 6209ba69..c04b10a2 100644 --- a/src/version2/comment.ts +++ b/src/version2/comment.ts @@ -352,7 +352,7 @@ export class Comment { url: `/footer-comments/${parameters.id}/children`, method: 'GET', params: { - 'body-format': parameters['body-format'], + 'body-format': parameters.bodyFormat, sort: parameters.sort, cursor: parameters.cursor, limit: parameters.limit, diff --git a/src/version2/parameters/getFooterCommentChildren.ts b/src/version2/parameters/getFooterCommentChildren.ts index bacd8664..267ddf40 100644 --- a/src/version2/parameters/getFooterCommentChildren.ts +++ b/src/version2/parameters/getFooterCommentChildren.ts @@ -5,7 +5,7 @@ export interface GetFooterCommentChildren { * The content format type to be returned in the `body` field of the response. If available, the representation will * be available under a response field of the same name under the `body` field. */ - 'body-format'?: {}; + bodyFormat?: {}; /** Used to sort the result by a particular field. */ sort?: 'created-date' | '-created-date' | 'modified-date' | '-modified-date'; /** From 413b97b3d5b0a8147f92e9d0316768b6b4fb3b6a Mon Sep 17 00:00:00 2001 From: Fabio Rodriguez <71491674+frodri13@users.noreply.github.com> Date: Sun, 2 Jul 2023 13:11:57 +0100 Subject: [PATCH 39/44] CamelCase in getFooterCommentById (#111) * CamelCase in getFooterCommentById * modified interface --- src/version2/comment.ts | 2 +- src/version2/parameters/getFooterCommentById.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/version2/comment.ts b/src/version2/comment.ts index c04b10a2..87a76c9c 100644 --- a/src/version2/comment.ts +++ b/src/version2/comment.ts @@ -246,7 +246,7 @@ export class Comment { url: `/footer-comments/${parameters.commentId}`, method: 'GET', params: { - 'body-format': parameters['body-format'], + 'body-format': parameters.bodyFormat, version: parameters.version, 'serialize-ids-as-strings': true, }, diff --git a/src/version2/parameters/getFooterCommentById.ts b/src/version2/parameters/getFooterCommentById.ts index 3055ec30..b0db1b7b 100644 --- a/src/version2/parameters/getFooterCommentById.ts +++ b/src/version2/parameters/getFooterCommentById.ts @@ -5,7 +5,7 @@ export interface GetFooterCommentById { * The content format type to be returned in the `body` field of the response. If available, the representation will * be available under a response field of the same name under the `body` field. */ - 'body-format'?: {}; + bodyFormat?: {}; /** * Allows you to retrieve a previously published version. Specify the previous version's number to retrieve its * details. From 2777ef66575ed7ba4f6555a09ee90522ba519b26 Mon Sep 17 00:00:00 2001 From: Fabio Rodriguez <71491674+frodri13@users.noreply.github.com> Date: Sun, 2 Jul 2023 13:12:18 +0100 Subject: [PATCH 40/44] CamelCase in getBlogPostInlineComments (#113) * CamelCase in getBlogPostInlineComments * modified interface --- src/version2/comment.ts | 2 +- src/version2/parameters/getBlogPostInlineComments.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/version2/comment.ts b/src/version2/comment.ts index 87a76c9c..9c6d1b27 100644 --- a/src/version2/comment.ts +++ b/src/version2/comment.ts @@ -164,7 +164,7 @@ export class Comment { url: `/blogposts/${parameters.id}/inline-comments`, method: 'GET', params: { - 'body-format': parameters['body-format'], + 'body-format': parameters.bodyFormat, sort: parameters.sort, cursor: parameters.cursor, limit: parameters.limit, diff --git a/src/version2/parameters/getBlogPostInlineComments.ts b/src/version2/parameters/getBlogPostInlineComments.ts index bb2a85dd..25a1543b 100644 --- a/src/version2/parameters/getBlogPostInlineComments.ts +++ b/src/version2/parameters/getBlogPostInlineComments.ts @@ -5,7 +5,7 @@ export interface GetBlogPostInlineComments { * The content format type to be returned in the `body` field of the response. If available, the representation will * be available under a response field of the same name under the `body` field. */ - 'body-format'?: {}; + bodyFormat: {}; /** Used to sort the result by a particular field. */ sort?: 'created-date' | '-created-date' | 'modified-date' | '-modified-date'; /** From 5f19980f295cb43c40002618a43a6f52c6c5c403 Mon Sep 17 00:00:00 2001 From: Fabio Rodriguez <71491674+frodri13@users.noreply.github.com> Date: Sun, 2 Jul 2023 13:12:44 +0100 Subject: [PATCH 41/44] CamelCase in getBlogPostFooterComments (#114) * CamelCase in getBlogPostFooterComments * modified interface --- src/version2/comment.ts | 2 +- src/version2/parameters/getBlogPostFooterComments.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/version2/comment.ts b/src/version2/comment.ts index 9c6d1b27..5b9a4899 100644 --- a/src/version2/comment.ts +++ b/src/version2/comment.ts @@ -121,7 +121,7 @@ export class Comment { url: `/blogposts/${parameters.id}/footer-comments`, method: 'GET', params: { - 'body-format': parameters['body-format'], + 'body-format': parameters.bodyFormat, sort: parameters.sort, cursor: parameters.cursor, limit: parameters.limit, diff --git a/src/version2/parameters/getBlogPostFooterComments.ts b/src/version2/parameters/getBlogPostFooterComments.ts index 916c81e1..0f372c1c 100644 --- a/src/version2/parameters/getBlogPostFooterComments.ts +++ b/src/version2/parameters/getBlogPostFooterComments.ts @@ -5,7 +5,7 @@ export interface GetBlogPostFooterComments { * The content format type to be returned in the `body` field of the response. If available, the representation will * be available under a response field of the same name under the `body` field. */ - 'body-format'?: {}; + bodyFormat?: {}; /** Used to sort the result by a particular field. */ sort?: 'created-date' | '-created-date' | 'modified-date' | '-modified-date'; /** From 80dc433135b40d1280f49ebe0a53e6d4113f994c Mon Sep 17 00:00:00 2001 From: Fabio Rodriguez <71491674+frodri13@users.noreply.github.com> Date: Sun, 2 Jul 2023 13:13:04 +0100 Subject: [PATCH 42/44] CamelCase in getPageInlineComments (#115) * CamelCase in getPageInlineComments * modified interface --- src/version2/comment.ts | 2 +- src/version2/parameters/getPageInlineComments.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/version2/comment.ts b/src/version2/comment.ts index 5b9a4899..ecfc908a 100644 --- a/src/version2/comment.ts +++ b/src/version2/comment.ts @@ -78,7 +78,7 @@ export class Comment { url: `/pages/${parameters.id}/inline-comments`, method: 'GET', params: { - 'body-format': parameters['body-format'], + 'body-format': parameters.bodyFormat, sort: parameters.sort, cursor: parameters.cursor, limit: parameters.limit, diff --git a/src/version2/parameters/getPageInlineComments.ts b/src/version2/parameters/getPageInlineComments.ts index 07bf7b6a..975550d7 100644 --- a/src/version2/parameters/getPageInlineComments.ts +++ b/src/version2/parameters/getPageInlineComments.ts @@ -5,7 +5,7 @@ export interface GetPageInlineComments { * The content format type to be returned in the `body` field of the response. If available, the representation will * be available under a response field of the same name under the `body` field. */ - 'body-format'?: {}; + bodyFormat?: {}; /** Used to sort the result by a particular field. */ sort?: 'created-date' | '-created-date' | 'modified-date' | '-modified-date'; /** From 3c73a292eed3463da06a6b751f74ae68fa45b5dd Mon Sep 17 00:00:00 2001 From: Vladislav Tupikin Date: Sun, 2 Jul 2023 21:50:18 +0400 Subject: [PATCH 43/44] #110 next function added for version2 endpoints (#116) * #110 next function added for version2 endpoints * #110 tests renamed * code fixes --- package-lock.json | 216 +++++++++--------- package.json | 8 +- src/clients/baseClient.ts | 30 ++- src/clients/client.ts | 5 + src/services/index.ts | 2 + src/services/paginationService.ts | 90 ++++++++ src/version2/attachment.ts | 55 ++++- src/version2/blogPost.ts | 42 +++- src/version2/children.ts | 29 ++- src/version2/comment.ts | 81 ++++++- src/version2/contentProperties.ts | 68 +++++- src/version2/customContent.ts | 55 ++++- src/version2/label.ts | 55 ++++- src/version2/models/bodyType.ts | 4 +- src/version2/models/index.ts | 1 + src/version2/models/pagination.ts | 4 + src/version2/models/space.ts | 27 ++- src/version2/models/spaceDescription.ts | 4 +- src/version2/models/spaceDescriptionFormat.ts | 1 + src/version2/models/spaceStatus.ts | 2 +- src/version2/models/spaceType.ts | 2 +- src/version2/page.ts | 42 +++- src/version2/parameters/getSpaceById.ts | 6 +- src/version2/parameters/getSpaces.ts | 4 +- src/version2/space.ts | 17 +- src/version2/spaceProperties.ts | 16 +- src/version2/task.ts | 16 +- src/version2/version.ts | 81 ++++++- tests/integration/config.ts | 15 ++ tests/integration/getSpacesPagination.test.ts | 45 ++++ 30 files changed, 845 insertions(+), 178 deletions(-) create mode 100644 src/services/index.ts create mode 100644 src/services/paginationService.ts create mode 100644 src/version2/models/spaceDescriptionFormat.ts create mode 100644 tests/integration/config.ts create mode 100644 tests/integration/getSpacesPagination.test.ts diff --git a/package-lock.json b/package-lock.json index 6d6d4ad7..28b9e75a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,7 +13,7 @@ "axios": "^1.4.0", "form-data": "^4.0.0", "oauth": "^0.10.0", - "tslib": "^2.5.3" + "tslib": "^2.6.0" }, "devDependencies": { "@swc-node/register": "^1.6.6", @@ -25,7 +25,7 @@ "@typescript-eslint/parser": "^5.60.1", "ava": "^5.3.1", "dotenv": "^16.3.1", - "eslint": "^8.43.0", + "eslint": "^8.44.0", "eslint-config-airbnb": "^19.0.4", "eslint-config-airbnb-typescript": "^17.0.0", "eslint-import-resolver-typescript": "^3.5.5", @@ -35,7 +35,16 @@ "sinon": "^15.2.0", "typedoc": "^0.24.8", "typedoc-plugin-extras": "^2.3.3", - "typescript": "^5.1.3" + "typescript": "^5.1.6" + } + }, + "node_modules/@aashutoshrathi/word-wrap": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz", + "integrity": "sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==", + "dev": true, + "engines": { + "node": ">=0.10.0" } }, "node_modules/@babel/runtime": { @@ -76,14 +85,14 @@ } }, "node_modules/@eslint/eslintrc": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.0.3.tgz", - "integrity": "sha512-+5gy6OQfk+xx3q0d6jGZZC3f3KzAkXc/IanVxd1is/VIIziRqqt3ongQz0FiTUXqTk0c7aDB3OaFuKnuSoJicQ==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.0.tgz", + "integrity": "sha512-Lj7DECXqIVCqnqjjHMPna4vn6GJcMgul/wuS0je9OZ9gsL0zzDpKPVtcG1HaDVc+9y+qgXneTeUMbCqXJNpH1A==", "dev": true, "dependencies": { "ajv": "^6.12.4", "debug": "^4.3.2", - "espree": "^9.5.2", + "espree": "^9.6.0", "globals": "^13.19.0", "ignore": "^5.2.0", "import-fresh": "^3.2.1", @@ -99,9 +108,9 @@ } }, "node_modules/@eslint/js": { - "version": "8.43.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.43.0.tgz", - "integrity": "sha512-s2UHCoiXfxMvmfzqoN+vrQ84ahUSYde9qNO1MdxmoEhyHWsfmwOpFlwYV+ePJEVc7gFnATGUi376WowX1N7tFg==", + "version": "8.44.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.44.0.tgz", + "integrity": "sha512-Ag+9YM4ocKQx9AarydN0KY2j0ErMHNIocPDrVo8zAE44xLTjEtz81OdR68/cydGtk6m6jDb5Za3r2useMzYmSw==", "dev": true, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" @@ -288,9 +297,9 @@ } }, "node_modules/@swc/core": { - "version": "1.3.66", - "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.3.66.tgz", - "integrity": "sha512-Hpf91kH5ly7fHkWnApwryTQryT+TO4kMMPH3WyciUSQOWLE3UuQz1PtETHQQk7PZ/b1QF0qQurJrgfBr5bSKUA==", + "version": "1.3.67", + "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.3.67.tgz", + "integrity": "sha512-9DROjzfAEt0xt0CDkOYsWpkUPyne8fl5ggWGon049678BOM7p0R0dmaalZGAsKatG5vYP1IWSKWsKhJIubDCsQ==", "dev": true, "hasInstallScript": true, "peer": true, @@ -302,16 +311,16 @@ "url": "https://opencollective.com/swc" }, "optionalDependencies": { - "@swc/core-darwin-arm64": "1.3.66", - "@swc/core-darwin-x64": "1.3.66", - "@swc/core-linux-arm-gnueabihf": "1.3.66", - "@swc/core-linux-arm64-gnu": "1.3.66", - "@swc/core-linux-arm64-musl": "1.3.66", - "@swc/core-linux-x64-gnu": "1.3.66", - "@swc/core-linux-x64-musl": "1.3.66", - "@swc/core-win32-arm64-msvc": "1.3.66", - "@swc/core-win32-ia32-msvc": "1.3.66", - "@swc/core-win32-x64-msvc": "1.3.66" + "@swc/core-darwin-arm64": "1.3.67", + "@swc/core-darwin-x64": "1.3.67", + "@swc/core-linux-arm-gnueabihf": "1.3.67", + "@swc/core-linux-arm64-gnu": "1.3.67", + "@swc/core-linux-arm64-musl": "1.3.67", + "@swc/core-linux-x64-gnu": "1.3.67", + "@swc/core-linux-x64-musl": "1.3.67", + "@swc/core-win32-arm64-msvc": "1.3.67", + "@swc/core-win32-ia32-msvc": "1.3.67", + "@swc/core-win32-x64-msvc": "1.3.67" }, "peerDependencies": { "@swc/helpers": "^0.5.0" @@ -323,9 +332,9 @@ } }, "node_modules/@swc/core-darwin-arm64": { - "version": "1.3.66", - "resolved": "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.3.66.tgz", - "integrity": "sha512-UijJsvuLy73vxeVYEy7urIHksXS+3BdvJ9s9AY+bRMSQW483NO7RLp8g4FdTyJbRaN0BH15SQnY0dcjQBkVuHw==", + "version": "1.3.67", + "resolved": "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.3.67.tgz", + "integrity": "sha512-zCT2mCkOBVNf5uJDcQ3A9KDoO1OEaGdfjsRTZTo7sejDd9AXLfJg+xgyCBBrK2jNS/uWcT21IvSv3LqKp4K8pA==", "cpu": [ "arm64" ], @@ -340,9 +349,9 @@ } }, "node_modules/@swc/core-darwin-x64": { - "version": "1.3.66", - "resolved": "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.3.66.tgz", - "integrity": "sha512-xGsHKvViQnwTNLF30Y/5OqWdnN6RsiyUI8awZXfz1sHcXCEaLe+v+WLQ+/E8sgw0YUkYVHzzfV/sAN2CezJK5Q==", + "version": "1.3.67", + "resolved": "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.3.67.tgz", + "integrity": "sha512-hXTVsfTatPEec5gFVyjGj3NccKZsYj/OXyHn6XA+l3Q76lZzGm2ISHdku//XNwXu8OmJ0HhS7LPsC4XXwxXQhg==", "cpu": [ "x64" ], @@ -357,9 +366,9 @@ } }, "node_modules/@swc/core-linux-arm-gnueabihf": { - "version": "1.3.66", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.3.66.tgz", - "integrity": "sha512-gNbLcSIV2pq90BkMSpzvK4xPXOl8GEF3YR4NaqF0CYSzQsVXXTTqMuX/r26xNYudBKzH0345S1MpoRk2qricnA==", + "version": "1.3.67", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.3.67.tgz", + "integrity": "sha512-l8AKL0RkDL5FRTeWMmjoz9zvAc37amxC+0rheaNwE+gZya7ObyNjnIYz5FwN+3y+z6JFU7LS2x/5f6iwruv6pg==", "cpu": [ "arm" ], @@ -374,9 +383,9 @@ } }, "node_modules/@swc/core-linux-arm64-gnu": { - "version": "1.3.66", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.3.66.tgz", - "integrity": "sha512-cJSQ0oplyWbJqy4rzVcnBYLAi6z1QT3QCcR7iAey0aAmCvfRBZJfXlyjggMjn4iosuadkauwCZR1xYNhBDRn7w==", + "version": "1.3.67", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.3.67.tgz", + "integrity": "sha512-S8zOB1AXEpb7kmtgMaFNeLAj01VOky4B0RNZ+uJWigdrDiFT67FeZzNHUNmNSOU0QM79G+Lie/xD/beqEw0vDg==", "cpu": [ "arm64" ], @@ -391,9 +400,9 @@ } }, "node_modules/@swc/core-linux-arm64-musl": { - "version": "1.3.66", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.3.66.tgz", - "integrity": "sha512-GDQZpcB9aGxG9PTA2shdIkoMZlGK5omJ8NR49uoBTtLBVYiGeXAwV0U1Uaw8kXEZj9i7wZDkvjzjSaNH3evRsg==", + "version": "1.3.67", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.3.67.tgz", + "integrity": "sha512-Fex8J8ASrt13pmOr2xWh41tEeKWwXYGk3sV8L/aGHiYtIJEUi2f+RtMx3jp7LIdOD8pQptor7i5WBlfR9jhp8A==", "cpu": [ "arm64" ], @@ -408,9 +417,9 @@ } }, "node_modules/@swc/core-linux-x64-gnu": { - "version": "1.3.66", - "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.3.66.tgz", - "integrity": "sha512-lg8E4O/Pd9KfK0lajdinVMuGME8dSv7V9arhEpmlfGE2eXSDCWqDn5Htk5QVBstt9lt1lsRhWHJ/YYc2eQY30Q==", + "version": "1.3.67", + "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.3.67.tgz", + "integrity": "sha512-9bz9/bMphrv5vDg0os/d8ve0QgFpDzJgZgHUaHiGwcmfnlgdOSAaYJLIvWdcGTjZuQeV4L0m+iru357D9TXEzA==", "cpu": [ "x64" ], @@ -425,9 +434,9 @@ } }, "node_modules/@swc/core-linux-x64-musl": { - "version": "1.3.66", - "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.3.66.tgz", - "integrity": "sha512-lo8ZcAO/zL2pZWH+LZIyge8u2MklaeuT6+FpVVpBFktMVdYXbaVtzpvWbgRFBZHvL3SRDF+u8jxjtkXhvGUpTw==", + "version": "1.3.67", + "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.3.67.tgz", + "integrity": "sha512-ED0H6oLvQmhgo9zs8usmEA/lcZPGTu7K9og9K871b7HhHX0h/R+Xg2pb5KD7S/GyUHpfuopxjVROm+h6X1jMUA==", "cpu": [ "x64" ], @@ -442,9 +451,9 @@ } }, "node_modules/@swc/core-win32-arm64-msvc": { - "version": "1.3.66", - "resolved": "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.3.66.tgz", - "integrity": "sha512-cQoVwBuJY5WkHbfpCOlndNwYr1ZThatRjQQvKy540NUIeAEk9Fa6ozlDBtU75UdaWKtUG6YQ/bWz+KTemheVxw==", + "version": "1.3.67", + "resolved": "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.3.67.tgz", + "integrity": "sha512-J1yFDLgPFeRtA8t5E159OXX+ww1gbkFg70yr4OP7EsOkOD1uMkuTf9yK/woHfsaVJlUYjJHzw7MkUIEgQBucqQ==", "cpu": [ "arm64" ], @@ -459,9 +468,9 @@ } }, "node_modules/@swc/core-win32-ia32-msvc": { - "version": "1.3.66", - "resolved": "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.3.66.tgz", - "integrity": "sha512-y/FrAIINK4UBeUQQknGlWXEyjo+MBvjF7WkUf2KP7sNr9EHHy8+dXohAGd5Anz0eJrqOM1ZXR/GEjxRp7bGQ1Q==", + "version": "1.3.67", + "resolved": "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.3.67.tgz", + "integrity": "sha512-bK11/KtasewqHxzkjKUBXRE9MSAidbZCxrgJUd49bItG2N/DHxkwMYu8Xkh5VDHdTYWv/2idYtf/VM9Yi+53qw==", "cpu": [ "ia32" ], @@ -476,9 +485,9 @@ } }, "node_modules/@swc/core-win32-x64-msvc": { - "version": "1.3.66", - "resolved": "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.3.66.tgz", - "integrity": "sha512-yI64ACzS14qFLrfyO12qW+f/UROTotzDeEbuyJAaPD2IZexoT1cICznI3sBmIfrSt33mVuW8eF5m3AG/NUImzw==", + "version": "1.3.67", + "resolved": "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.3.67.tgz", + "integrity": "sha512-GxzUU3+NA3cPcYxCxtfSQIS2ySD7Z8IZmKTVaWA9GOUQbKLyCE8H5js31u39+0op/1gNgxOgYFDoj2lUyvLCqw==", "cpu": [ "x64" ], @@ -593,9 +602,9 @@ "dev": true }, "node_modules/@types/node": { - "version": "20.3.2", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.3.2.tgz", - "integrity": "sha512-vOBLVQeCQfIcF/2Y7eKFTqrMnizK5lRNQ7ykML/5RuwVXVWxYkgwS7xbt4B6fKCUPgbSL5FSsjHQpaGQP/dQmw==", + "version": "20.3.3", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.3.3.tgz", + "integrity": "sha512-wheIYdr4NYML61AjC8MKj/2jrR/kDQri/CIpVoZwldwhnIrD/j9jIU5bJ8yBKuB2VhpFV7Ab6G2XkBjv9r9Zzw==", "dev": true }, "node_modules/@types/oauth": { @@ -1187,9 +1196,9 @@ } }, "node_modules/ava/node_modules/globby": { - "version": "13.2.0", - "resolved": "https://registry.npmjs.org/globby/-/globby-13.2.0.tgz", - "integrity": "sha512-jWsQfayf13NvqKUIL3Ta+CIqMnvlaIDFveWE/dpOZ9+3AMEJozsxDvKA02zync9UuvOM8rOXzsD5GqKP4OnWPQ==", + "version": "13.2.1", + "resolved": "https://registry.npmjs.org/globby/-/globby-13.2.1.tgz", + "integrity": "sha512-DPCBxctI7dN4EeIqjW2KGqgdcUMbrhJ9AzON+PlxCtvppWhubTLD4+a0GFxiym14ZvacUydTPjLPc2DlKz7EIg==", "dev": true, "dependencies": { "dir-glob": "^3.0.1", @@ -1388,9 +1397,9 @@ } }, "node_modules/chalk": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.2.0.tgz", - "integrity": "sha512-ree3Gqw/nazQAPuJJEy+avdl7QfZMcUvmHIKgEZkGL+xOBzRvup5Hxo6LHuMceSxOabuJLJm5Yp/92R9eMmMvA==", + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.3.0.tgz", + "integrity": "sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==", "dev": true, "engines": { "node": "^12.17.0 || ^14.13 || >=16.0.0" @@ -2039,15 +2048,15 @@ } }, "node_modules/eslint": { - "version": "8.43.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.43.0.tgz", - "integrity": "sha512-aaCpf2JqqKesMFGgmRPessmVKjcGXqdlAYLLC3THM8t5nBRZRQ+st5WM/hoJXkdioEXLLbXgclUpM0TXo5HX5Q==", + "version": "8.44.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.44.0.tgz", + "integrity": "sha512-0wpHoUbDUHgNCyvFB5aXLiQVfK9B0at6gUvzy83k4kAsQ/u769TQDX6iKC+aO4upIHO9WSaA3QoXYQDHbNwf1A==", "dev": true, "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/regexpp": "^4.4.0", - "@eslint/eslintrc": "^2.0.3", - "@eslint/js": "8.43.0", + "@eslint/eslintrc": "^2.1.0", + "@eslint/js": "8.44.0", "@humanwhocodes/config-array": "^0.11.10", "@humanwhocodes/module-importer": "^1.0.1", "@nodelib/fs.walk": "^1.2.8", @@ -2059,7 +2068,7 @@ "escape-string-regexp": "^4.0.0", "eslint-scope": "^7.2.0", "eslint-visitor-keys": "^3.4.1", - "espree": "^9.5.2", + "espree": "^9.6.0", "esquery": "^1.4.2", "esutils": "^2.0.2", "fast-deep-equal": "^3.1.3", @@ -2079,7 +2088,7 @@ "lodash.merge": "^4.6.2", "minimatch": "^3.1.2", "natural-compare": "^1.4.0", - "optionator": "^0.9.1", + "optionator": "^0.9.3", "strip-ansi": "^6.0.1", "strip-json-comments": "^3.1.0", "text-table": "^0.2.0" @@ -2205,9 +2214,9 @@ } }, "node_modules/eslint-import-resolver-typescript/node_modules/globby": { - "version": "13.2.0", - "resolved": "https://registry.npmjs.org/globby/-/globby-13.2.0.tgz", - "integrity": "sha512-jWsQfayf13NvqKUIL3Ta+CIqMnvlaIDFveWE/dpOZ9+3AMEJozsxDvKA02zync9UuvOM8rOXzsD5GqKP4OnWPQ==", + "version": "13.2.1", + "resolved": "https://registry.npmjs.org/globby/-/globby-13.2.1.tgz", + "integrity": "sha512-DPCBxctI7dN4EeIqjW2KGqgdcUMbrhJ9AzON+PlxCtvppWhubTLD4+a0GFxiym14ZvacUydTPjLPc2DlKz7EIg==", "dev": true, "dependencies": { "dir-glob": "^3.0.1", @@ -2560,12 +2569,12 @@ } }, "node_modules/espree": { - "version": "9.5.2", - "resolved": "https://registry.npmjs.org/espree/-/espree-9.5.2.tgz", - "integrity": "sha512-7OASN1Wma5fum5SrNhFMAMJxOUAbhyfQ8dQ//PJaJbNw0URTPWqIghHWt1MmAANKhHZIYOHruW4Kw4ruUWOdGw==", + "version": "9.6.0", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.0.tgz", + "integrity": "sha512-1FH/IiruXZ84tpUlm0aCUEwMl2Ho5ilqVh0VvQXw+byAz/4SAciyHLlfmL5WYqsvD38oymdUwBss0LtK8m4s/A==", "dev": true, "dependencies": { - "acorn": "^8.8.0", + "acorn": "^8.9.0", "acorn-jsx": "^5.3.2", "eslint-visitor-keys": "^3.4.1" }, @@ -2667,9 +2676,9 @@ "dev": true }, "node_modules/fast-glob": { - "version": "3.2.12", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.12.tgz", - "integrity": "sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w==", + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.0.tgz", + "integrity": "sha512-ChDuvbOypPuNjO8yIDf36x7BlZX1smcUMTTcyoIjycexOxd6DFsKsg21qVBzEmr3G7fUKIRy2/psii+CIUt7FA==", "dev": true, "dependencies": { "@nodelib/fs.stat": "^2.0.2", @@ -2937,9 +2946,9 @@ } }, "node_modules/get-tsconfig": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.6.0.tgz", - "integrity": "sha512-lgbo68hHTQnFddybKbbs/RDRJnJT5YyGy2kQzVwbq+g67X73i+5MVTval34QxGkOe9X5Ujf1UYpCaphLyltjEg==", + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.6.2.tgz", + "integrity": "sha512-E5XrT4CbbXcXWy+1jChlZmrmCwd5KGx502kDCXJJ7y898TtWW9FwoG5HfOLVRKmlmDGkWN2HM9Ho+/Y8F0sJDg==", "dev": true, "dependencies": { "resolve-pkg-maps": "^1.0.0" @@ -3688,14 +3697,16 @@ } }, "node_modules/jsx-ast-utils": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-3.3.3.tgz", - "integrity": "sha512-fYQHZTZ8jSfmWZ0iyzfwiU4WDX4HpHbMCZ3gPlWYiCl3BoeOTsqKBqnTVfH2rYT7eP5c3sVbeSPHnnJOaTrWiw==", + "version": "3.3.4", + "resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-3.3.4.tgz", + "integrity": "sha512-fX2TVdCViod6HwKEtSWGHs57oFhVfCMwieb9PuRDgjDPh5XeqJiHFFFJCHxU5cnTc3Bu/GRL+kPiFmw8XWOfKw==", "dev": true, "peer": true, "dependencies": { - "array-includes": "^3.1.5", - "object.assign": "^4.1.3" + "array-includes": "^3.1.6", + "array.prototype.flat": "^1.3.1", + "object.assign": "^4.1.4", + "object.values": "^1.1.6" }, "engines": { "node": ">=4.0" @@ -4710,17 +4721,17 @@ } }, "node_modules/optionator": { - "version": "0.9.1", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", - "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==", + "version": "0.9.3", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.3.tgz", + "integrity": "sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==", "dev": true, "dependencies": { + "@aashutoshrathi/word-wrap": "^1.2.3", "deep-is": "^0.1.3", "fast-levenshtein": "^2.0.6", "levn": "^0.4.1", "prelude-ls": "^1.2.1", - "type-check": "^0.4.0", - "word-wrap": "^1.2.3" + "type-check": "^0.4.0" }, "engines": { "node": ">= 0.8.0" @@ -5880,9 +5891,9 @@ } }, "node_modules/tslib": { - "version": "2.5.3", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.3.tgz", - "integrity": "sha512-mSxlJJwl3BMEQCUNnxXBU9jP4JBktcEGhURcPR6VQVlnP0FdDEsIaz0C35dXNGLyRfrATNofF0F5p2KPxQgB+w==" + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.0.tgz", + "integrity": "sha512-7At1WUettjcSRHXCyYtTselblcHl9PJFFVKiCAy/bY97+BPZXSQ2wbq0P9s8tK2G7dFQfNnlJnPAiArVBVBsfA==" }, "node_modules/tsutils": { "version": "3.21.0", @@ -6007,9 +6018,9 @@ } }, "node_modules/typescript": { - "version": "5.1.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.1.3.tgz", - "integrity": "sha512-XH627E9vkeqhlZFQuL+UsyAXEnibT0kWR2FWONlr4sTjvxyJYnyefgrkyECLzM5NenmKzRAy2rR/OlYLA1HkZw==", + "version": "5.1.6", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.1.6.tgz", + "integrity": "sha512-zaWCozRZ6DLEWAWFrVDz1H6FVXzUSfTy5FUMWsQlU8Ym5JP9eO4xkTIROFCQvhQf61z6O/G6ugw3SgAnvvm+HA==", "dev": true, "bin": { "tsc": "bin/tsc", @@ -6155,15 +6166,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/word-wrap": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", - "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/wrap-ansi": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", diff --git a/package.json b/package.json index eefd9ea5..60415f4f 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "lint:fix": "npm run lint -- --fix", "test": "npm run test:unit && npm run test:integration", "test:unit": "ava tests/unit", - "test:integration": "ava --timeout=2m --fail-fast --no-worker-threads -c 1 -s tests/integration" + "test:integration": "ava --timeout=2m --fail-fast --no-worker-threads -c 1 -s tests/integration/**.test.ts" }, "ava": { "extensions": [ @@ -51,7 +51,7 @@ "@typescript-eslint/parser": "^5.60.1", "ava": "^5.3.1", "dotenv": "^16.3.1", - "eslint": "^8.43.0", + "eslint": "^8.44.0", "eslint-config-airbnb": "^19.0.4", "eslint-config-airbnb-typescript": "^17.0.0", "eslint-import-resolver-typescript": "^3.5.5", @@ -61,13 +61,13 @@ "sinon": "^15.2.0", "typedoc": "^0.24.8", "typedoc-plugin-extras": "^2.3.3", - "typescript": "^5.1.3" + "typescript": "^5.1.6" }, "dependencies": { "atlassian-jwt": "^2.0.2", "axios": "^1.4.0", "form-data": "^4.0.0", "oauth": "^0.10.0", - "tslib": "^2.5.3" + "tslib": "^2.6.0" } } diff --git a/src/clients/baseClient.ts b/src/clients/baseClient.ts index be15bc54..8f54ddc8 100644 --- a/src/clients/baseClient.ts +++ b/src/clients/baseClient.ts @@ -1,4 +1,4 @@ -import { AuthenticationService } from '../services/authenticationService'; +import { AuthenticationService } from '../services'; import type { Callback } from '../callback'; import type { Client } from './client'; import type { Config } from '../config'; @@ -84,6 +84,22 @@ export class BaseClient implements Client { return this.#instance; } + getResponseHandler(callback?: Callback) { + const callbackResponseHandler = callback && ((data: T): void => callback(null, data)); + const defaultResponseHandler = (data: T): T => data; + + return callbackResponseHandler ?? defaultResponseHandler; + } + + getErrorHandler(callback?: Callback) { + const callbackErrorHandler = callback && ((error: Config.Error) => callback(error)); + const defaultErrorHandler = (error: Error) => { + throw error; + }; + + return callbackErrorHandler ?? defaultErrorHandler; + } + async sendRequest(requestConfig: RequestConfig, callback: never, telemetryData?: any): Promise; async sendRequest(requestConfig: RequestConfig, callback: Callback, telemetryData?: any): Promise; async sendRequest(requestConfig: RequestConfig, callback: Callback | never): Promise { @@ -102,10 +118,7 @@ export class BaseClient implements Client { const response = await this.instance.request(modifiedRequestConfig); - const callbackResponseHandler = callback && ((data: T): void => callback(null, data)); - const defaultResponseHandler = (data: T): T => data; - - const responseHandler = callbackResponseHandler ?? defaultResponseHandler; + const responseHandler = this.getResponseHandler(callback); this.config.middlewares?.onResponse?.(response.data); @@ -113,12 +126,7 @@ export class BaseClient implements Client { } catch (e: any) { const err = this.config.newErrorHandling && e.isAxiosError ? e.response.data : e; - const callbackErrorHandler = callback && ((error: Config.Error) => callback(error)); - const defaultErrorHandler = (error: Error) => { - throw error; - }; - - const errorHandler = callbackErrorHandler ?? defaultErrorHandler; + const errorHandler = this.getErrorHandler(callback); this.config.middlewares?.onError?.(err); diff --git a/src/clients/client.ts b/src/clients/client.ts index dd2d9ee3..480aea82 100644 --- a/src/clients/client.ts +++ b/src/clients/client.ts @@ -1,7 +1,12 @@ import type { Callback } from '../callback'; +import type { Config } from '../config'; import type { RequestConfig } from '../requestConfig'; export interface Client { + getResponseHandler(callback?: Callback): (data: T) => void; + + getErrorHandler(callback?: Callback): (error: Config.Error) => void; + sendRequest(requestConfig: RequestConfig, callback?: never, telemetryData?: any): Promise; sendRequest(requestConfig: RequestConfig, callback?: Callback, telemetryData?: any): Promise; } diff --git a/src/services/index.ts b/src/services/index.ts new file mode 100644 index 00000000..add416bb --- /dev/null +++ b/src/services/index.ts @@ -0,0 +1,2 @@ +export * from './authenticationService'; +export * from './paginationService'; diff --git a/src/services/paginationService.ts b/src/services/paginationService.ts new file mode 100644 index 00000000..8f8e9566 --- /dev/null +++ b/src/services/paginationService.ts @@ -0,0 +1,90 @@ +import type { Pagination } from '../version2/models'; + +/** This service is responsible for handling pagination. */ +export class PaginationService { + /** + * This method builds a paginated result based on the given pagination object and a function to call for the next + * page. + */ + buildPaginatedResult( + pagination: Pagination, + callFn: (params: any) => Promise>, + ): Pagination { + if (!pagination._links.next) { + return this.buildEmptyPagination(pagination); + } + + const parameters = this.parseParameters(pagination._links.next); + + return { + results: pagination.results, + _links: pagination._links, + parameters, + hasNext: true, + next: () => callFn(parameters), + getAll: () => this.getAll(pagination.results, parameters, callFn), + }; + } + + private parseParameters(urlString: string) { + const url = new URL(urlString, 'http://temp.temp'); + const searchParams = new URLSearchParams(url.search); + const paramsObject: Record = {}; + + searchParams.forEach((value, key) => { + paramsObject[this.toCamelCase(key)] = value; + }); + + return paramsObject; + } + + /** This method retrieves all pages of results. */ + private async getAll( + actualResult: T[], + params: Record, + callFn: (params: Record) => Promise>, + ): Promise { + let hasNext = true; + + while (hasNext) { + const paginationResult: Pagination = await callFn(params); + + actualResult.push(...paginationResult.results); + + if (paginationResult._links.next) { + params = this.parseParameters(paginationResult._links.next); + } else { + hasNext = false; + } + } + + return actualResult; + } + + private toCamelCase(str: string): string { + return str.replace(/([-_][a-z])/gi, piece => { + return piece.toUpperCase().replace('-', '').replace('_', ''); + }); + } + + private buildEmptyPagination(pagination: Pagination): Pagination { + const emptyPagination: Pagination = { + results: pagination.results, + parameters: pagination.parameters, + _links: {}, + hasNext: false, + next: () => + Promise.resolve({ + results: [], + hasNext: false, + parameters: pagination.parameters, + _links: pagination._links, + next: emptyPagination.next, + getAll: () => Promise.resolve([]), + }), + getAll: () => Promise.resolve(pagination.results), + }; + + return emptyPagination; + } +} diff --git a/src/version2/attachment.ts b/src/version2/attachment.ts index 1ff58bbb..5ca41406 100644 --- a/src/version2/attachment.ts +++ b/src/version2/attachment.ts @@ -2,9 +2,12 @@ import * as Models from './models'; import * as Parameters from './parameters'; import { Callback } from '../callback'; import { Client } from '../clients'; +import { PaginationService } from '../services'; import { RequestConfig } from '../requestConfig'; export class Attachment { + private paginationService = new PaginationService(); + constructor(private client: Client) {} /** @@ -82,7 +85,18 @@ export class Attachment { }, }; - return this.client.sendRequest(config, callback); + try { + const attachments = await this.client.sendRequest>(config); + const paginatedAttachments = this.paginationService.buildPaginatedResult(attachments, this.getBlogpostAttachments.bind(this)); + + const responseHandler = this.client.getResponseHandler(callback); + + return responseHandler(paginatedAttachments as T); + } catch (e: any) { + const errorHandler = this.client.getErrorHandler(callback); + + return errorHandler(e); + } } /** @@ -124,7 +138,18 @@ export class Attachment { }, }; - return this.client.sendRequest(config, callback); + try { + const attachments = await this.client.sendRequest>(config); + const paginatedAttachments = this.paginationService.buildPaginatedResult(attachments, this.getCustomContentAttachments.bind(this)); + + const responseHandler = this.client.getResponseHandler(callback); + + return responseHandler(paginatedAttachments as T); + } catch (e: any) { + const errorHandler = this.client.getErrorHandler(callback); + + return errorHandler(e); + } } /** @@ -164,7 +189,18 @@ export class Attachment { }, }; - return this.client.sendRequest(config, callback); + try { + const attachments = await this.client.sendRequest>(config); + const paginatedAttachments = this.paginationService.buildPaginatedResult(attachments, this.getLabelAttachments.bind(this)); + + const responseHandler = this.client.getResponseHandler(callback); + + return responseHandler(paginatedAttachments as T); + } catch (e: any) { + const errorHandler = this.client.getErrorHandler(callback); + + return errorHandler(e); + } } /** @@ -206,6 +242,17 @@ export class Attachment { }, }; - return this.client.sendRequest(config, callback); + try { + const attachments = await this.client.sendRequest>(config); + const paginatedAttachments = this.paginationService.buildPaginatedResult(attachments, this.getPageAttachments.bind(this)); + + const responseHandler = this.client.getResponseHandler(callback); + + return responseHandler(paginatedAttachments as T); + } catch (e: any) { + const errorHandler = this.client.getErrorHandler(callback); + + return errorHandler(e); + } } } diff --git a/src/version2/blogPost.ts b/src/version2/blogPost.ts index 1171346b..dd5053b9 100644 --- a/src/version2/blogPost.ts +++ b/src/version2/blogPost.ts @@ -2,9 +2,12 @@ import * as Models from './models'; import * as Parameters from './parameters'; import { Callback } from '../callback'; import { Client } from '../clients'; +import { PaginationService } from '../services'; import { RequestConfig } from '../requestConfig'; export class BlogPost { + private paginationService = new PaginationService(); + constructor(private client: Client) {} /** @@ -46,7 +49,18 @@ export class BlogPost { }, }; - return this.client.sendRequest(config, callback); + try { + const blogPosts = await this.client.sendRequest>(config); + const paginatedBlogPosts = this.paginationService.buildPaginatedResult(blogPosts, this.getBlogPosts.bind(this)); + + const responseHandler = this.client.getResponseHandler(callback); + + return responseHandler(paginatedBlogPosts as T); + } catch (e: any) { + const errorHandler = this.client.getErrorHandler(callback); + + return errorHandler(e); + } } /** @@ -213,7 +227,18 @@ export class BlogPost { }, }; - return this.client.sendRequest(config, callback); + try { + const blogPosts = await this.client.sendRequest>(config); + const paginatedBlogPosts = this.paginationService.buildPaginatedResult(blogPosts, this.getLabelBlogPosts.bind(this)); + + const responseHandler = this.client.getResponseHandler(callback); + + return responseHandler(paginatedBlogPosts as T); + } catch (e: any) { + const errorHandler = this.client.getErrorHandler(callback); + + return errorHandler(e); + } } /** @@ -256,6 +281,17 @@ export class BlogPost { }, }; - return this.client.sendRequest(config, callback); + try { + const blogPosts = await this.client.sendRequest>(config); + const paginatedBlogPosts = this.paginationService.buildPaginatedResult(blogPosts, this.getBlogPostsInSpace.bind(this)); + + const responseHandler = this.client.getResponseHandler(callback); + + return responseHandler(paginatedBlogPosts as T); + } catch (e: any) { + const errorHandler = this.client.getErrorHandler(callback); + + return errorHandler(e); + } } } diff --git a/src/version2/children.ts b/src/version2/children.ts index 9e135cb1..c150e746 100644 --- a/src/version2/children.ts +++ b/src/version2/children.ts @@ -2,9 +2,12 @@ import * as Models from './models'; import * as Parameters from './parameters'; import { Callback } from '../callback'; import { Client } from '../clients'; +import { PaginationService } from '../services'; import { RequestConfig } from '../requestConfig'; export class Children { + private paginationService = new PaginationService(); + constructor(private client: Client) {} /** @@ -44,7 +47,18 @@ export class Children { }, }; - return this.client.sendRequest(config, callback); + try { + const childPages = await this.client.sendRequest>(config); + const paginatedChildPages = this.paginationService.buildPaginatedResult(childPages, this.getChildPages.bind(this)); + + const responseHandler = this.client.getResponseHandler(callback); + + return responseHandler(paginatedChildPages as T); + } catch (e: any) { + const errorHandler = this.client.getErrorHandler(callback); + + return errorHandler(e); + } } /** @@ -86,6 +100,17 @@ export class Children { }, }; - return this.client.sendRequest(config, callback); + try { + const childCustomContents = await this.client.sendRequest>(config); + const paginatedChildCustomContents = this.paginationService.buildPaginatedResult(childCustomContents, this.getChildCustomContent.bind(this)); + + const responseHandler = this.client.getResponseHandler(callback); + + return responseHandler(paginatedChildCustomContents as T); + } catch (e: any) { + const errorHandler = this.client.getErrorHandler(callback); + + return errorHandler(e); + } } } diff --git a/src/version2/comment.ts b/src/version2/comment.ts index ecfc908a..1acbe369 100644 --- a/src/version2/comment.ts +++ b/src/version2/comment.ts @@ -2,9 +2,12 @@ import * as Models from './models'; import * as Parameters from './parameters'; import { Callback } from '../callback'; import { Client } from '../clients'; +import { PaginationService } from '../services'; import { RequestConfig } from '../requestConfig'; export class Comment { + private paginationService = new PaginationService(); + constructor(private client: Client) {} /** @@ -45,7 +48,18 @@ export class Comment { }, }; - return this.client.sendRequest(config, callback); + try { + const pageComments = await this.client.sendRequest>(config); + const paginatedPageComments = this.paginationService.buildPaginatedResult(pageComments, this.getPageFooterComments.bind(this)); + + const responseHandler = this.client.getResponseHandler(callback); + + return responseHandler(paginatedPageComments as T); + } catch (e: any) { + const errorHandler = this.client.getErrorHandler(callback); + + return errorHandler(e); + } } /** @@ -86,7 +100,18 @@ export class Comment { }, }; - return this.client.sendRequest(config, callback); + try { + const pageInlineComments = await this.client.sendRequest>(config); + const paginatedPageInlineComments = this.paginationService.buildPaginatedResult(pageInlineComments, this.getPageInlineComments.bind(this)); + + const responseHandler = this.client.getResponseHandler(callback); + + return responseHandler(paginatedPageInlineComments as T); + } catch (e: any) { + const errorHandler = this.client.getErrorHandler(callback); + + return errorHandler(e); + } } /** @@ -129,7 +154,18 @@ export class Comment { }, }; - return this.client.sendRequest(config, callback); + try { + const blogPostComments = await this.client.sendRequest>(config); + const paginatedBlogPostComments = this.paginationService.buildPaginatedResult(blogPostComments, this.getBlogPostFooterComments.bind(this)); + + const responseHandler = this.client.getResponseHandler(callback); + + return responseHandler(paginatedBlogPostComments as T); + } catch (e: any) { + const errorHandler = this.client.getErrorHandler(callback); + + return errorHandler(e); + } } /** @@ -172,7 +208,18 @@ export class Comment { }, }; - return this.client.sendRequest(config, callback); + try { + const blogPostInlineComments = await this.client.sendRequest>(config); + const paginatedBlogPostInlineComments = this.paginationService.buildPaginatedResult(blogPostInlineComments, this.getBlogPostInlineComments.bind(this)); + + const responseHandler = this.client.getResponseHandler(callback); + + return responseHandler(paginatedBlogPostInlineComments as T); + } catch (e: any) { + const errorHandler = this.client.getErrorHandler(callback); + + return errorHandler(e); + } } /** @@ -360,7 +407,18 @@ export class Comment { }, }; - return this.client.sendRequest(config, callback); + try { + const childrenComments = await this.client.sendRequest>(config); + const paginatedChildrenComments = this.paginationService.buildPaginatedResult(childrenComments, this.getFooterCommentChildren.bind(this)); + + const responseHandler = this.client.getResponseHandler(callback); + + return responseHandler(paginatedChildrenComments as T); + } catch (e: any) { + const errorHandler = this.client.getErrorHandler(callback); + + return errorHandler(e); + } } /** @@ -554,6 +612,17 @@ export class Comment { }, }; - return this.client.sendRequest(config, callback); + try { + const inlineCommentChildren = await this.client.sendRequest>(config); + const paginatedInlineCommentChildren = this.paginationService.buildPaginatedResult(inlineCommentChildren, this.getInlineCommentChildren.bind(this)); + + const responseHandler = this.client.getResponseHandler(callback); + + return responseHandler(paginatedInlineCommentChildren as T); + } catch (e: any) { + const errorHandler = this.client.getErrorHandler(callback); + + return errorHandler(e); + } } } diff --git a/src/version2/contentProperties.ts b/src/version2/contentProperties.ts index d48ce4ce..974c53d3 100644 --- a/src/version2/contentProperties.ts +++ b/src/version2/contentProperties.ts @@ -2,9 +2,12 @@ import * as Models from './models'; import * as Parameters from './parameters'; import { Callback } from '../callback'; import { Client } from '../clients'; +import { PaginationService } from '../services'; import { RequestConfig } from '../requestConfig'; export class ContentProperties { + private paginationService = new PaginationService(); + constructor(private client: Client) {} /** @@ -41,7 +44,18 @@ export class ContentProperties { }, }; - return this.client.sendRequest(config, callback); + try { + const contentProperties = await this.client.sendRequest>(config); + const paginatedContentProperties = this.paginationService.buildPaginatedResult(contentProperties, this.getAttachmentContentProperties.bind(this)); + + const responseHandler = this.client.getResponseHandler(callback); + + return responseHandler(paginatedContentProperties as T); + } catch (e: any) { + const errorHandler = this.client.getErrorHandler(callback); + + return errorHandler(e); + } } /** @@ -216,7 +230,18 @@ export class ContentProperties { }, }; - return this.client.sendRequest(config, callback); + try { + const contentProperties = await this.client.sendRequest>(config); + const paginatedContentProperties = this.paginationService.buildPaginatedResult(contentProperties, this.getBlogpostContentProperties.bind(this)); + + const responseHandler = this.client.getResponseHandler(callback); + + return responseHandler(paginatedContentProperties as T); + } catch (e: any) { + const errorHandler = this.client.getErrorHandler(callback); + + return errorHandler(e); + } } /** @@ -391,7 +416,18 @@ export class ContentProperties { }, }; - return this.client.sendRequest(config, callback); + try { + const contentProperties = await this.client.sendRequest>(config); + const paginatedContentProperties = this.paginationService.buildPaginatedResult(contentProperties, this.getCustomContentContentProperties.bind(this)); + + const responseHandler = this.client.getResponseHandler(callback); + + return responseHandler(paginatedContentProperties as T); + } catch (e: any) { + const errorHandler = this.client.getErrorHandler(callback); + + return errorHandler(e); + } } /** @@ -566,7 +602,18 @@ export class ContentProperties { }, }; - return this.client.sendRequest(config, callback); + try { + const contentProperties = await this.client.sendRequest>(config); + const paginatedContentProperties = this.paginationService.buildPaginatedResult(contentProperties, this.getPageContentProperties.bind(this)); + + const responseHandler = this.client.getResponseHandler(callback); + + return responseHandler(paginatedContentProperties as T); + } catch (e: any) { + const errorHandler = this.client.getErrorHandler(callback); + + return errorHandler(e); + } } /** @@ -738,7 +785,18 @@ export class ContentProperties { }, }; - return this.client.sendRequest(config, callback); + try { + const contentProperties = await this.client.sendRequest>(config); + const paginatedContentProperties = this.paginationService.buildPaginatedResult(contentProperties, this.getCommentContentProperties.bind(this)); + + const responseHandler = this.client.getResponseHandler(callback); + + return responseHandler(paginatedContentProperties as T); + } catch (e: any) { + const errorHandler = this.client.getErrorHandler(callback); + + return errorHandler(e); + } } /** diff --git a/src/version2/customContent.ts b/src/version2/customContent.ts index 0eca66d0..1b2dcbca 100644 --- a/src/version2/customContent.ts +++ b/src/version2/customContent.ts @@ -2,9 +2,12 @@ import * as Models from './models'; import * as Parameters from './parameters'; import { Callback } from '../callback'; import { Client } from '../clients'; +import { PaginationService } from '../services'; import { RequestConfig } from '../requestConfig'; export class CustomContent { + private paginationService = new PaginationService(); + constructor(private client: Client) {} /** @@ -47,7 +50,18 @@ export class CustomContent { }, }; - return this.client.sendRequest(config, callback); + try { + const customContents = await this.client.sendRequest>(config); + const paginatedCustomContents = this.paginationService.buildPaginatedResult(customContents, this.getCustomContentByTypeInBlogPost.bind(this)); + + const responseHandler = this.client.getResponseHandler(callback); + + return responseHandler(paginatedCustomContents as T); + } catch (e: any) { + const errorHandler = this.client.getErrorHandler(callback); + + return errorHandler(e); + } } /** @@ -89,7 +103,18 @@ export class CustomContent { }, }; - return this.client.sendRequest(config, callback); + try { + const customContents = await this.client.sendRequest>(config); + const paginatedCustomContents = this.paginationService.buildPaginatedResult(customContents, this.getCustomContentByType.bind(this)); + + const responseHandler = this.client.getResponseHandler(callback); + + return responseHandler(paginatedCustomContents as T); + } catch (e: any) { + const errorHandler = this.client.getErrorHandler(callback); + + return errorHandler(e); + } } /** @@ -269,7 +294,18 @@ export class CustomContent { }, }; - return this.client.sendRequest(config, callback); + try { + const customContents = await this.client.sendRequest>(config); + const paginatedCustomContents = this.paginationService.buildPaginatedResult(customContents, this.getCustomContentByTypeInPage.bind(this)); + + const responseHandler = this.client.getResponseHandler(callback); + + return responseHandler(paginatedCustomContents as T); + } catch (e: any) { + const errorHandler = this.client.getErrorHandler(callback); + + return errorHandler(e); + } } /** @@ -312,6 +348,17 @@ export class CustomContent { }, }; - return this.client.sendRequest(config, callback); + try { + const customContents = await this.client.sendRequest>(config); + const paginatedCustomContents = this.paginationService.buildPaginatedResult(customContents, this.getCustomContentByTypeInSpace.bind(this)); + + const responseHandler = this.client.getResponseHandler(callback); + + return responseHandler(paginatedCustomContents as T); + } catch (e: any) { + const errorHandler = this.client.getErrorHandler(callback); + + return errorHandler(e); + } } } diff --git a/src/version2/label.ts b/src/version2/label.ts index 0083171e..3883b24c 100644 --- a/src/version2/label.ts +++ b/src/version2/label.ts @@ -2,9 +2,12 @@ import * as Models from './models'; import * as Parameters from './parameters'; import { Callback } from '../callback'; import { Client } from '../clients'; +import { PaginationService } from '../services'; import { RequestConfig } from '../requestConfig'; export class Label { + private paginationService = new PaginationService(); + constructor(private client: Client) {} /** @@ -45,7 +48,18 @@ export class Label { }, }; - return this.client.sendRequest(config, callback); + try { + const labels = await this.client.sendRequest>(config); + const paginatedLabels = this.paginationService.buildPaginatedResult(labels, this.getAttachmentLabels.bind(this)); + + const responseHandler = this.client.getResponseHandler(callback); + + return responseHandler(paginatedLabels as T); + } catch (e: any) { + const errorHandler = this.client.getErrorHandler(callback); + + return errorHandler(e); + } } /** @@ -86,7 +100,18 @@ export class Label { }, }; - return this.client.sendRequest(config, callback); + try { + const labels = await this.client.sendRequest>(config); + const paginatedLabels = this.paginationService.buildPaginatedResult(labels, this.getBlogPostLabels.bind(this)); + + const responseHandler = this.client.getResponseHandler(callback); + + return responseHandler(paginatedLabels as T); + } catch (e: any) { + const errorHandler = this.client.getErrorHandler(callback); + + return errorHandler(e); + } } /** @@ -129,7 +154,18 @@ export class Label { }, }; - return this.client.sendRequest(config, callback); + try { + const labels = await this.client.sendRequest>(config); + const paginatedLabels = this.paginationService.buildPaginatedResult(labels, this.getCustomContentLabels.bind(this)); + + const responseHandler = this.client.getResponseHandler(callback); + + return responseHandler(paginatedLabels as T); + } catch (e: any) { + const errorHandler = this.client.getErrorHandler(callback); + + return errorHandler(e); + } } /** @@ -170,6 +206,17 @@ export class Label { }, }; - return this.client.sendRequest(config, callback); + try { + const labels = await this.client.sendRequest>(config); + const paginatedLabels = this.paginationService.buildPaginatedResult(labels, this.getPageLabels.bind(this)); + + const responseHandler = this.client.getResponseHandler(callback); + + return responseHandler(paginatedLabels as T); + } catch (e: any) { + const errorHandler = this.client.getErrorHandler(callback); + + return errorHandler(e); + } } } diff --git a/src/version2/models/bodyType.ts b/src/version2/models/bodyType.ts index fe1f6b80..3f5fc8e2 100644 --- a/src/version2/models/bodyType.ts +++ b/src/version2/models/bodyType.ts @@ -1,6 +1,6 @@ export interface BodyType { /** Type of content representation used for the value field. */ - representation?: string; + representation: string; /** Body of the content, in the format found in the representation field. */ - value?: string; + value: string; } diff --git a/src/version2/models/index.ts b/src/version2/models/index.ts index feb28c2b..726a0d61 100644 --- a/src/version2/models/index.ts +++ b/src/version2/models/index.ts @@ -8,6 +8,7 @@ export * from './blogPostInlineComment'; export * from './blogPostNestedBodyWrite'; export * from './blogPostSortOrder'; export * from './blogPostVersion'; +export * from './spaceDescriptionFormat'; export * from './body'; export * from './bodyRepresentation'; export * from './bodyType'; diff --git a/src/version2/models/pagination.ts b/src/version2/models/pagination.ts index a8825591..8a901557 100644 --- a/src/version2/models/pagination.ts +++ b/src/version2/models/pagination.ts @@ -2,5 +2,9 @@ import { Links } from './links'; export interface Pagination { results: T[]; + parameters: Record; + hasNext: boolean; + next: () => Promise>; + getAll: () => Promise; _links: Links; } diff --git a/src/version2/models/space.ts b/src/version2/models/space.ts index 485e9abd..06e3f963 100644 --- a/src/version2/models/space.ts +++ b/src/version2/models/space.ts @@ -4,14 +4,27 @@ import { SpaceType } from './spaceType'; export interface Space { /** ID of the space. */ - id?: {}; + id: string; /** Key of the space. */ - key?: string; + key: string; /** Name of the space. */ - name?: string; - type?: SpaceType; - status?: SpaceStatus; + name: string; + /** + * The type of the space, which determines its purpose and functionality. For example, it might be `personal` or + * `global`. + */ + type: SpaceType; + /** The current status of the space, for example, `current`, `archived`. */ + status: SpaceStatus; /** ID of the space's homepage. */ - homepageId?: {}; - description?: SpaceDescription; + homepageId: string; + /** The description of the space. Currently set to null, but might be used for additional information in the future. */ + description: SpaceDescription | null; + /** + * The icon associated with the space. Currently set to null, but might be used to set a custom space icon in the + * future. + */ + icon: null; + /** The timestamp indicating when the space was created. */ + createdAt: string; // todo make type a Date } diff --git a/src/version2/models/spaceDescription.ts b/src/version2/models/spaceDescription.ts index 012d03ce..527925ee 100644 --- a/src/version2/models/spaceDescription.ts +++ b/src/version2/models/spaceDescription.ts @@ -2,6 +2,6 @@ import { BodyType } from './bodyType'; /** Contains fields for each representation type requested. */ export interface SpaceDescription { - plain?: BodyType; - view?: BodyType; + plain: BodyType; + view: BodyType; } diff --git a/src/version2/models/spaceDescriptionFormat.ts b/src/version2/models/spaceDescriptionFormat.ts new file mode 100644 index 00000000..461e6d01 --- /dev/null +++ b/src/version2/models/spaceDescriptionFormat.ts @@ -0,0 +1 @@ +export type SpaceDescriptionFormat = 'plain' | 'view'; diff --git a/src/version2/models/spaceStatus.ts b/src/version2/models/spaceStatus.ts index 9722c86b..2cc44b97 100644 --- a/src/version2/models/spaceStatus.ts +++ b/src/version2/models/spaceStatus.ts @@ -1,2 +1,2 @@ /** The status of the space. */ -export interface SpaceStatus {} +export type SpaceStatus = 'current' | 'archived'; diff --git a/src/version2/models/spaceType.ts b/src/version2/models/spaceType.ts index 6d63eff7..2185a773 100644 --- a/src/version2/models/spaceType.ts +++ b/src/version2/models/spaceType.ts @@ -1,2 +1,2 @@ /** The type of space. */ -export interface SpaceType {} +export type SpaceType = 'global' | 'personal'; diff --git a/src/version2/page.ts b/src/version2/page.ts index 5e5b318d..77858a2a 100644 --- a/src/version2/page.ts +++ b/src/version2/page.ts @@ -2,9 +2,12 @@ import * as Models from './models'; import * as Parameters from './parameters'; import { Callback } from '../callback'; import { Client } from '../clients'; +import { PaginationService } from '../services'; import { RequestConfig } from '../requestConfig'; export class Page { + private paginationService = new PaginationService(); + constructor(private client: Client) {} /** @@ -45,7 +48,18 @@ export class Page { }, }; - return this.client.sendRequest(config, callback); + try { + const pages = await this.client.sendRequest>(config); + const paginatedPages = this.paginationService.buildPaginatedResult(pages, this.getLabelPages.bind(this)); + + const responseHandler = this.client.getResponseHandler(callback); + + return responseHandler(paginatedPages as T); + } catch (e: any) { + const errorHandler = this.client.getErrorHandler(callback); + + return errorHandler(e); + } } /** @@ -84,7 +98,18 @@ export class Page { }, }; - return this.client.sendRequest(config, callback); + try { + const pages = await this.client.sendRequest>(config); + const paginatedPages = this.paginationService.buildPaginatedResult(pages, this.getPages.bind(this)); + + const responseHandler = this.client.getResponseHandler(callback); + + return responseHandler(paginatedPages as T); + } catch (e: any) { + const errorHandler = this.client.getErrorHandler(callback); + + return errorHandler(e); + } } /** @@ -240,6 +265,17 @@ export class Page { }, }; - return this.client.sendRequest(config, callback); + try { + const pages = await this.client.sendRequest>(config); + const paginatedPages = this.paginationService.buildPaginatedResult(pages, this.getPagesInSpace.bind(this)); + + const responseHandler = this.client.getResponseHandler(callback); + + return responseHandler(paginatedPages as T); + } catch (e: any) { + const errorHandler = this.client.getErrorHandler(callback); + + return errorHandler(e); + } } } diff --git a/src/version2/parameters/getSpaceById.ts b/src/version2/parameters/getSpaceById.ts index 78839b23..c6a0bbe1 100644 --- a/src/version2/parameters/getSpaceById.ts +++ b/src/version2/parameters/getSpaceById.ts @@ -1,9 +1,11 @@ +import { SpaceDescriptionFormat } from '../models'; + export interface GetSpaceById { /** The ID of the space to be returned. */ - id: number; + id: string; /** * The content format type to be returned in the `description` field of the response. If available, the representation * will be available under a response field of the same name under the `description` field. */ - descriptionFormat?: {}; + descriptionFormat: SpaceDescriptionFormat; } diff --git a/src/version2/parameters/getSpaces.ts b/src/version2/parameters/getSpaces.ts index 3dab2e7a..df4d67ab 100644 --- a/src/version2/parameters/getSpaces.ts +++ b/src/version2/parameters/getSpaces.ts @@ -1,3 +1,5 @@ +import { SpaceDescriptionFormat } from '../models'; + export interface GetSpaces { /** Filter the results to spaces based on their IDs. Multiple IDs can be specified as a comma-separated list. */ ids?: number[]; @@ -15,7 +17,7 @@ export interface GetSpaces { * The content format type to be returned in the `description` field of the response. If available, the representation * will be available under a response field of the same name under the `description` field. */ - descriptionFormat?: {}; + descriptionFormat?: SpaceDescriptionFormat; /** * Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the * relative URL in the `Link` header to retrieve the `next` set of results. diff --git a/src/version2/space.ts b/src/version2/space.ts index 7543ee99..2b5ba231 100644 --- a/src/version2/space.ts +++ b/src/version2/space.ts @@ -2,9 +2,12 @@ import * as Models from './models'; import * as Parameters from './parameters'; import { Callback } from '../callback'; import { Client } from '../clients'; +import { PaginationService } from '../services'; import { RequestConfig } from '../requestConfig'; export class Space { + private paginationService = new PaginationService(); + constructor(private client: Client) {} /** @@ -49,7 +52,18 @@ export class Space { }, }; - return this.client.sendRequest(config, callback); + try { + const spaces = await this.client.sendRequest>(config); + const paginatedSpaces = this.paginationService.buildPaginatedResult(spaces, this.getSpaces.bind(this)); + + const responseHandler = this.client.getResponseHandler(callback); + + return responseHandler(paginatedSpaces as T); + } catch (e: any) { + const errorHandler = this.client.getErrorHandler(callback); + + return errorHandler(e); + } } /** @@ -70,6 +84,7 @@ export class Space { method: 'GET', params: { 'description-format': parameters.descriptionFormat, + 'serialize-ids-as-strings': true, }, }; diff --git a/src/version2/spaceProperties.ts b/src/version2/spaceProperties.ts index 341d93c1..d2d35dcd 100644 --- a/src/version2/spaceProperties.ts +++ b/src/version2/spaceProperties.ts @@ -2,9 +2,12 @@ import * as Models from './models'; import * as Parameters from './parameters'; import { Callback } from '../callback'; import { Client } from '../clients'; +import { PaginationService } from '../services'; import { RequestConfig } from '../requestConfig'; export class SpaceProperties { + private paginationService = new PaginationService(); + constructor(private client: Client) {} /** @@ -46,7 +49,18 @@ export class SpaceProperties { }, }; - return this.client.sendRequest(config, callback); + try { + const spaceProperties = await this.client.sendRequest>(config); + const paginatedSpaceProperties = this.paginationService.buildPaginatedResult(spaceProperties, this.getSpaceProperties.bind(this)); + + const responseHandler = this.client.getResponseHandler(callback); + + return responseHandler(paginatedSpaceProperties as T); + } catch (e: any) { + const errorHandler = this.client.getErrorHandler(callback); + + return errorHandler(e); + } } /** diff --git a/src/version2/task.ts b/src/version2/task.ts index b3458869..095d71c9 100644 --- a/src/version2/task.ts +++ b/src/version2/task.ts @@ -2,9 +2,12 @@ import * as Models from './models'; import * as Parameters from './parameters'; import { Callback } from '../callback'; import { Client } from '../clients'; +import { PaginationService } from '../services'; import { RequestConfig } from '../requestConfig'; export class Task { + private paginationService = new PaginationService(); + constructor(private client: Client) { } /** @@ -56,7 +59,18 @@ export class Task { }, }; - return this.client.sendRequest(config, callback); + try { + const tasks = await this.client.sendRequest>(config); + const paginatedTasks = this.paginationService.buildPaginatedResult(tasks, this.getTasks.bind(this)); + + const responseHandler = this.client.getResponseHandler(callback); + + return responseHandler(paginatedTasks as T); + } catch (e: any) { + const errorHandler = this.client.getErrorHandler(callback); + + return errorHandler(e); + } } /** diff --git a/src/version2/version.ts b/src/version2/version.ts index 5ec36aec..6d0a314c 100644 --- a/src/version2/version.ts +++ b/src/version2/version.ts @@ -2,9 +2,12 @@ import * as Models from './models'; import * as Parameters from './parameters'; import { Callback } from '../callback'; import { Client } from '../clients'; +import { PaginationService } from '../services'; import { RequestConfig } from '../requestConfig'; export class Version { + private paginationService = new PaginationService(); + constructor(private client: Client) {} /** @@ -41,7 +44,18 @@ export class Version { }, }; - return this.client.sendRequest(config, callback); + try { + const attachmentVersions = await this.client.sendRequest>(config); + const paginatedAttachmentVersions = this.paginationService.buildPaginatedResult(attachmentVersions, this.getAttachmentVersions.bind(this)); + + const responseHandler = this.client.getResponseHandler(callback); + + return responseHandler(paginatedAttachmentVersions as T); + } catch (e: any) { + const errorHandler = this.client.getErrorHandler(callback); + + return errorHandler(e); + } } /** @@ -109,7 +123,18 @@ export class Version { }, }; - return this.client.sendRequest(config, callback); + try { + const blogPostVersions = await this.client.sendRequest>(config); + const paginatedBlogPostVersions = this.paginationService.buildPaginatedResult(blogPostVersions, this.getBlogPostVersions.bind(this)); + + const responseHandler = this.client.getResponseHandler(callback); + + return responseHandler(paginatedBlogPostVersions as T); + } catch (e: any) { + const errorHandler = this.client.getErrorHandler(callback); + + return errorHandler(e); + } } /** @@ -177,7 +202,18 @@ export class Version { }, }; - return this.client.sendRequest(config, callback); + try { + const pageVersions = await this.client.sendRequest>(config); + const paginatedPageVersions = this.paginationService.buildPaginatedResult(pageVersions, this.getPageVersions.bind(this)); + + const responseHandler = this.client.getResponseHandler(callback); + + return responseHandler(paginatedPageVersions as T); + } catch (e: any) { + const errorHandler = this.client.getErrorHandler(callback); + + return errorHandler(e); + } } /** @@ -245,7 +281,18 @@ export class Version { }, }; - return this.client.sendRequest(config, callback); + try { + const customContentVersions = await this.client.sendRequest>(config); + const paginatedCustomContentVersions = this.paginationService.buildPaginatedResult(customContentVersions, this.getCustomContentVersions.bind(this)); + + const responseHandler = this.client.getResponseHandler(callback); + + return responseHandler(paginatedCustomContentVersions as T); + } catch (e: any) { + const errorHandler = this.client.getErrorHandler(callback); + + return errorHandler(e); + } } /** @@ -313,7 +360,18 @@ export class Version { }, }; - return this.client.sendRequest(config, callback); + try { + const commentVersions = await this.client.sendRequest>(config); + const paginatedCommentVersions = this.paginationService.buildPaginatedResult(commentVersions, this.getFooterCommentVersions.bind(this)); + + const responseHandler = this.client.getResponseHandler(callback); + + return responseHandler(paginatedCommentVersions as T); + } catch (e: any) { + const errorHandler = this.client.getErrorHandler(callback); + + return errorHandler(e); + } } /** @@ -383,7 +441,18 @@ export class Version { }, }; - return this.client.sendRequest(config, callback); + try { + const commentVersions = await this.client.sendRequest>(config); + const paginatedCommentVersions = this.paginationService.buildPaginatedResult(commentVersions, this.getInlineCommentVersions.bind(this)); + + const responseHandler = this.client.getResponseHandler(callback); + + return responseHandler(paginatedCommentVersions as T); + } catch (e: any) { + const errorHandler = this.client.getErrorHandler(callback); + + return errorHandler(e); + } } /** diff --git a/tests/integration/config.ts b/tests/integration/config.ts new file mode 100644 index 00000000..3d80b0b5 --- /dev/null +++ b/tests/integration/config.ts @@ -0,0 +1,15 @@ +import { Config } from '../../src'; + +const host = process.env.HOST!; +const email = process.env.EMAIL!; +const apiToken = process.env.API_TOKEN!; + +export const config: Config = { + host, + authentication: { + basic: { + email, + apiToken, + }, + }, +}; diff --git a/tests/integration/getSpacesPagination.test.ts b/tests/integration/getSpacesPagination.test.ts new file mode 100644 index 00000000..5f31825a --- /dev/null +++ b/tests/integration/getSpacesPagination.test.ts @@ -0,0 +1,45 @@ +import { config } from './config'; +import { Space } from '../../src/version2/models'; +import test from 'ava'; +import { Version2Client } from '../../src'; + +const version2Client = new Version2Client(config); + +let spaces: Space[]; + +test.serial('`getSpaces()` should works', async t => { + const spacesPagination = await version2Client.space.getSpaces(); + + spaces = spacesPagination.results; + + t.truthy(spacesPagination.results.length <= 25); +}); + +test.serial('`getSpaceById(id)` should works', async t => { + const space = await version2Client.space.getSpaceById({ + id: spaces[0].id, + descriptionFormat: 'plain', + }); + + t.is(space.id, spaces[0].id); + t.is(space.description.plain.representation, 'plain'); +}); + +test.serial('`getAll()` function should works', async t => { + const batchedSpaces = await version2Client.space.getSpaces({ limit: 1 }); + + const allSpaces = await batchedSpaces.getAll(); + + t.truthy(allSpaces.length > 1); +}); + +test.serial('`next()` function should works', async t => { + const firstSpaceBatch = await version2Client.space.getSpaces({ limit: 1, descriptionFormat: 'view' }); + const secondSpaceBatch = await firstSpaceBatch.next(); + + t.is(firstSpaceBatch.results.length, 1); + t.is(firstSpaceBatch.results[0].description.view.representation, 'view'); + + t.is(secondSpaceBatch.results.length, 1); + t.is(secondSpaceBatch.results[0].description.view.representation, 'view'); +}); From 78169c08fb62a74afbe28c43da85a194ab46e688 Mon Sep 17 00:00:00 2001 From: Vladislav Tupikin Date: Mon, 16 Oct 2023 19:29:27 +0300 Subject: [PATCH 44/44] getAll... methods added (#118) * getAll... methods added for attachment and space endpoints * getAll... methods added for blogPost endpoints * getAll... methods added for children and comments endpoints --- src/version2/attachment.ts | 142 +++++++++++- src/version2/blogPost.ts | 94 +++++++- src/version2/children.ts | 65 +++++- src/version2/comment.ts | 212 +++++++++++++++++- src/version2/space.ts | 23 ++ tests/integration/getSpacesPagination.test.ts | 6 + tests/unit/version2/attachment.test.ts | 20 ++ tests/unit/version2/blogPost.test.ts | 16 ++ tests/unit/version2/children.test.ts | 12 + tests/unit/version2/comment.test.ts | 28 +++ tests/unit/version2/space.test.ts | 8 + 11 files changed, 607 insertions(+), 19 deletions(-) create mode 100644 tests/unit/version2/attachment.test.ts create mode 100644 tests/unit/version2/blogPost.test.ts create mode 100644 tests/unit/version2/children.test.ts create mode 100644 tests/unit/version2/comment.test.ts create mode 100644 tests/unit/version2/space.test.ts diff --git a/src/version2/attachment.ts b/src/version2/attachment.ts index 5ca41406..afc9f02e 100644 --- a/src/version2/attachment.ts +++ b/src/version2/attachment.ts @@ -46,6 +46,35 @@ export class Attachment { return this.client.sendRequest(config, callback); } + /** Fetches all attachments of a blog post. */ + async getAllBlogPostAttachments( + parameters: Parameters.GetBlogpostAttachments, + callback: Callback, + ): Promise; + /** Fetches all attachments of a blog post. */ + async getAllBlogPostAttachments( + parameters: Parameters.GetBlogpostAttachments, + callback?: never, + ): Promise; + async getAllBlogPostAttachments( + parameters: Parameters.GetBlogpostAttachments, + callback?: Callback, + ): Promise { + try { + const { getAll: getAllAttachments } = await this.getBlogPostAttachments(parameters); + + const attachments = await getAllAttachments(); + + const responseHandler = this.client.getResponseHandler(callback); + + return responseHandler(attachments as T); + } catch (e: any) { + const errorHandler = this.client.getErrorHandler(callback); + + return errorHandler(e); + } + } + /** * Returns the attachments of specific blog post. The number of results is limited by the `limit` parameter and * additional results (if available) will be available through the `next` URL present in the `Link` response header. @@ -53,7 +82,7 @@ export class Attachment { * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the blog * post and its corresponding space. */ - async getBlogpostAttachments>( + async getBlogPostAttachments>( parameters: Parameters.GetBlogpostAttachments, callback: Callback, ): Promise; @@ -64,11 +93,11 @@ export class Attachment { * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content of the blog * post and its corresponding space. */ - async getBlogpostAttachments>( + async getBlogPostAttachments>( parameters: Parameters.GetBlogpostAttachments, callback?: never, ): Promise; - async getBlogpostAttachments>( + async getBlogPostAttachments>( parameters: Parameters.GetBlogpostAttachments, callback?: Callback, ): Promise { @@ -87,7 +116,10 @@ export class Attachment { try { const attachments = await this.client.sendRequest>(config); - const paginatedAttachments = this.paginationService.buildPaginatedResult(attachments, this.getBlogpostAttachments.bind(this)); + const paginatedAttachments = this.paginationService.buildPaginatedResult( + attachments, + this.getBlogPostAttachments.bind(this), + ); const responseHandler = this.client.getResponseHandler(callback); @@ -99,6 +131,35 @@ export class Attachment { } } + /** Fetches all attachments of a custom content. */ + async getAllCustomContentAttachments( + parameters: Parameters.GetCustomContentAttachments, + callback: Callback, + ): Promise; + /** Fetches all attachments of a custom content. */ + async getAllCustomContentAttachments( + parameters: Parameters.GetCustomContentAttachments, + callback?: never, + ): Promise; + async getAllCustomContentAttachments( + parameters: Parameters.GetCustomContentAttachments, + callback?: Callback, + ): Promise { + try { + const { getAll: getAllAttachments } = await this.getCustomContentAttachments(parameters); + + const attachments = await getAllAttachments(); + + const responseHandler = this.client.getResponseHandler(callback); + + return responseHandler(attachments as T); + } catch (e: any) { + const errorHandler = this.client.getErrorHandler(callback); + + return errorHandler(e); + } + } + /** * Returns the attachments of specific custom content. The number of results is limited by the `limit` parameter and * additional results (if available) will be available through the `next` URL present in the `Link` response header. @@ -140,7 +201,10 @@ export class Attachment { try { const attachments = await this.client.sendRequest>(config); - const paginatedAttachments = this.paginationService.buildPaginatedResult(attachments, this.getCustomContentAttachments.bind(this)); + const paginatedAttachments = this.paginationService.buildPaginatedResult( + attachments, + this.getCustomContentAttachments.bind(this), + ); const responseHandler = this.client.getResponseHandler(callback); @@ -152,6 +216,35 @@ export class Attachment { } } + /** Fetches all attachments of a label. */ + async getAllLabelAttachments( + parameters: Parameters.GetLabelAttachments, + callback: Callback, + ): Promise; + /** Fetches all attachments of a label. */ + async getAllLabelAttachments( + parameters: Parameters.GetLabelAttachments, + callback?: never, + ): Promise; + async getAllLabelAttachments( + parameters: Parameters.GetLabelAttachments, + callback?: Callback, + ): Promise { + try { + const { getAll: getAllAttachments } = await this.getLabelAttachments(parameters); + + const attachments = await getAllAttachments(); + + const responseHandler = this.client.getResponseHandler(callback); + + return responseHandler(attachments as T); + } catch (e: any) { + const errorHandler = this.client.getErrorHandler(callback); + + return errorHandler(e); + } + } + /** * Returns the attachments of specified label. The number of results is limited by the `limit` parameter and * additional results (if available) will be available through the `next` URL present in the `Link` response header. @@ -191,7 +284,10 @@ export class Attachment { try { const attachments = await this.client.sendRequest>(config); - const paginatedAttachments = this.paginationService.buildPaginatedResult(attachments, this.getLabelAttachments.bind(this)); + const paginatedAttachments = this.paginationService.buildPaginatedResult( + attachments, + this.getLabelAttachments.bind(this), + ); const responseHandler = this.client.getResponseHandler(callback); @@ -203,6 +299,35 @@ export class Attachment { } } + /** Fetches all attachments of a page. */ + async getAllPageAttachments( + parameters: Parameters.GetPageAttachments, + callback: Callback, + ): Promise; + /** Fetches all attachments of a page. */ + async getAllPageAttachments( + parameters: Parameters.GetPageAttachments, + callback?: never, + ): Promise; + async getAllPageAttachments( + parameters: Parameters.GetPageAttachments, + callback?: Callback, + ): Promise { + try { + const { getAll: getAllAttachments } = await this.getPageAttachments(parameters); + + const attachments = await getAllAttachments(); + + const responseHandler = this.client.getResponseHandler(callback); + + return responseHandler(attachments as T); + } catch (e: any) { + const errorHandler = this.client.getErrorHandler(callback); + + return errorHandler(e); + } + } + /** * Returns the attachments of specific page. The number of results is limited by the `limit` parameter and additional * results (if available) will be available through the `next` URL present in the `Link` response header. @@ -244,7 +369,10 @@ export class Attachment { try { const attachments = await this.client.sendRequest>(config); - const paginatedAttachments = this.paginationService.buildPaginatedResult(attachments, this.getPageAttachments.bind(this)); + const paginatedAttachments = this.paginationService.buildPaginatedResult( + attachments, + this.getPageAttachments.bind(this), + ); const responseHandler = this.client.getResponseHandler(callback); diff --git a/src/version2/blogPost.ts b/src/version2/blogPost.ts index dd5053b9..dc7be75a 100644 --- a/src/version2/blogPost.ts +++ b/src/version2/blogPost.ts @@ -10,6 +10,32 @@ export class BlogPost { constructor(private client: Client) {} + /** Fetches all blog posts. */ + async getAllBlogPosts( + parameters: Parameters.GetBlogPosts | undefined, + callback: Callback, + ): Promise; + /** Fetches all blog posts. */ + async getAllBlogPosts(parameters?: Parameters.GetBlogPosts, callback?: never): Promise; + async getAllBlogPosts( + parameters?: Parameters.GetBlogPosts, + callback?: Callback, + ): Promise { + try { + const { getAll: getAllBlogPosts } = await this.getBlogPosts(parameters); + + const blogPosts = await getAllBlogPosts(); + + const responseHandler = this.client.getResponseHandler(callback); + + return responseHandler(blogPosts as T); + } catch (e: any) { + const errorHandler = this.client.getErrorHandler(callback); + + return errorHandler(e); + } + } + /** * Returns all blog posts. The number of results is limited by the `limit` parameter and additional results (if * available) will be available through the `next` URL present in the `Link` response header. @@ -189,6 +215,35 @@ export class BlogPost { return this.client.sendRequest(config, callback); } + /** Fetches all blog posts of specified label. */ + async getAllLabelBlogPosts( + parameters: Parameters.GetLabelBlogPosts, + callback: Callback, + ): Promise; + /** Fetches all blog posts of specified label. */ + async getAllLabelBlogPosts( + parameters: Parameters.GetLabelBlogPosts, + callback?: never, + ): Promise; + async getAllLabelBlogPosts( + parameters: Parameters.GetLabelBlogPosts, + callback?: Callback, + ): Promise { + try { + const { getAll: getAllBlogPosts } = await this.getLabelBlogPosts(parameters); + + const blogPosts = await getAllBlogPosts(); + + const responseHandler = this.client.getResponseHandler(callback); + + return responseHandler(blogPosts as T); + } catch (e: any) { + const errorHandler = this.client.getErrorHandler(callback); + + return errorHandler(e); + } + } + /** * Returns the blogposts of specified label. The number of results is limited by the `limit` parameter and additional * results (if available) will be available through the `next` URL present in the `Link` response header. @@ -229,7 +284,10 @@ export class BlogPost { try { const blogPosts = await this.client.sendRequest>(config); - const paginatedBlogPosts = this.paginationService.buildPaginatedResult(blogPosts, this.getLabelBlogPosts.bind(this)); + const paginatedBlogPosts = this.paginationService.buildPaginatedResult( + blogPosts, + this.getLabelBlogPosts.bind(this), + ); const responseHandler = this.client.getResponseHandler(callback); @@ -241,6 +299,35 @@ export class BlogPost { } } + /** Fetches all blog posts in a space. */ + async getAllBlogPostsInSpace( + parameters: Parameters.GetLabelBlogPosts, + callback: Callback, + ): Promise; + /** Fetches all blog posts in a space. */ + async getAllBlogPostsInSpace( + parameters: Parameters.GetLabelBlogPosts, + callback?: never, + ): Promise; + async getAllBlogPostsInSpace( + parameters: Parameters.GetLabelBlogPosts, + callback?: Callback, + ): Promise { + try { + const { getAll: getAllBlogPosts } = await this.getBlogPostsInSpace(parameters); + + const blogPosts = await getAllBlogPosts(); + + const responseHandler = this.client.getResponseHandler(callback); + + return responseHandler(blogPosts as T); + } catch (e: any) { + const errorHandler = this.client.getErrorHandler(callback); + + return errorHandler(e); + } + } + /** * Returns all blog posts in a space. The number of results is limited by the `limit` parameter and additional results * (if available) will be available through the `next` URL present in the `Link` response header. @@ -283,7 +370,10 @@ export class BlogPost { try { const blogPosts = await this.client.sendRequest>(config); - const paginatedBlogPosts = this.paginationService.buildPaginatedResult(blogPosts, this.getBlogPostsInSpace.bind(this)); + const paginatedBlogPosts = this.paginationService.buildPaginatedResult( + blogPosts, + this.getBlogPostsInSpace.bind(this), + ); const responseHandler = this.client.getResponseHandler(callback); diff --git a/src/version2/children.ts b/src/version2/children.ts index c150e746..6881787b 100644 --- a/src/version2/children.ts +++ b/src/version2/children.ts @@ -10,6 +10,32 @@ export class Children { constructor(private client: Client) {} + /** Fetches all child pages. */ + async getAllChildPages( + parameters: Parameters.GetChildPages, + callback: Callback, + ): Promise; + /** Fetches all child pages. */ + async getAllChildPages(parameters: Parameters.GetChildPages, callback?: never): Promise; + async getAllChildPages( + parameters: Parameters.GetChildPages, + callback?: Callback, + ): Promise { + try { + const { getAll: getAllChildPages } = await this.getChildPages(parameters); + + const childPages = await getAllChildPages(); + + const responseHandler = this.client.getResponseHandler(callback); + + return responseHandler(childPages as T); + } catch (e: any) { + const errorHandler = this.client.getErrorHandler(callback); + + return errorHandler(e); + } + } + /** * Returns all child pages for given page id. The number of results is limited by the `limit` parameter and additional * results (if available) will be available through the `next` URL present in the `Link` response header. @@ -49,7 +75,10 @@ export class Children { try { const childPages = await this.client.sendRequest>(config); - const paginatedChildPages = this.paginationService.buildPaginatedResult(childPages, this.getChildPages.bind(this)); + const paginatedChildPages = this.paginationService.buildPaginatedResult( + childPages, + this.getChildPages.bind(this), + ); const responseHandler = this.client.getResponseHandler(callback); @@ -61,6 +90,35 @@ export class Children { } } + /** Fetches all child custom content. */ + async getAllChildCustomContent( + parameters: Parameters.GetChildCustomContent, + callback: Callback, + ): Promise; + /** Fetches all child custom content. */ + async getAllChildCustomContent( + parameters: Parameters.GetChildCustomContent, + callback?: never, + ): Promise; + async getAllChildCustomContent( + parameters: Parameters.GetChildCustomContent, + callback?: Callback, + ): Promise { + try { + const { getAll: getAllChildCustomContent } = await this.getChildCustomContent(parameters); + + const childCustomContents = await getAllChildCustomContent(); + + const responseHandler = this.client.getResponseHandler(callback); + + return responseHandler(childCustomContents as T); + } catch (e: any) { + const errorHandler = this.client.getErrorHandler(callback); + + return errorHandler(e); + } + } + /** * Returns all child custom content for given custom content id. The number of results is limited by the `limit` * parameter and additional results (if available) will be available through the `next` URL present in the `Link` @@ -102,7 +160,10 @@ export class Children { try { const childCustomContents = await this.client.sendRequest>(config); - const paginatedChildCustomContents = this.paginationService.buildPaginatedResult(childCustomContents, this.getChildCustomContent.bind(this)); + const paginatedChildCustomContents = this.paginationService.buildPaginatedResult( + childCustomContents, + this.getChildCustomContent.bind(this), + ); const responseHandler = this.client.getResponseHandler(callback); diff --git a/src/version2/comment.ts b/src/version2/comment.ts index 1acbe369..86811200 100644 --- a/src/version2/comment.ts +++ b/src/version2/comment.ts @@ -10,6 +10,35 @@ export class Comment { constructor(private client: Client) {} + /** Fetches all footer comments of a page. */ + async getAllPageFooterComments( + parameters: Parameters.GetPageFooterComments, + callback: Callback, + ): Promise; + /** Fetches all footer comments of a page. */ + async getAllPageFooterComments( + parameters: Parameters.GetPageFooterComments, + callback?: never, + ): Promise; + async getAllPageFooterComments( + parameters: Parameters.GetPageFooterComments, + callback?: Callback, + ): Promise { + try { + const { getAll: getAllPageFooterComments } = await this.getPageFooterComments(parameters); + + const pageFooterComments = await getAllPageFooterComments(); + + const responseHandler = this.client.getResponseHandler(callback); + + return responseHandler(pageFooterComments as T); + } catch (e: any) { + const errorHandler = this.client.getErrorHandler(callback); + + return errorHandler(e); + } + } + /** * Returns the root footer comments of specific page. The number of results is limited by the `limit` parameter and * additional results (if available) will be available through the `next` URL present in the `Link` response header. @@ -50,7 +79,10 @@ export class Comment { try { const pageComments = await this.client.sendRequest>(config); - const paginatedPageComments = this.paginationService.buildPaginatedResult(pageComments, this.getPageFooterComments.bind(this)); + const paginatedPageComments = this.paginationService.buildPaginatedResult( + pageComments, + this.getPageFooterComments.bind(this), + ); const responseHandler = this.client.getResponseHandler(callback); @@ -62,6 +94,35 @@ export class Comment { } } + /** Fetches all inline comments of a page. */ + async getAllPageInlineComments( + parameters: Parameters.GetPageInlineComments, + callback: Callback, + ): Promise; + /** Fetches all inline comments of a page. */ + async getAllPageInlineComments( + parameters: Parameters.GetPageInlineComments, + callback?: never, + ): Promise; + async getAllPageInlineComments( + parameters: Parameters.GetPageInlineComments, + callback?: Callback, + ): Promise { + try { + const { getAll: getAllPageInlineComments } = await this.getPageInlineComments(parameters); + + const pageInlineComments = await getAllPageInlineComments(); + + const responseHandler = this.client.getResponseHandler(callback); + + return responseHandler(pageInlineComments as T); + } catch (e: any) { + const errorHandler = this.client.getErrorHandler(callback); + + return errorHandler(e); + } + } + /** * Returns the root inline comments of specific page. The number of results is limited by the `limit` parameter and * additional results (if available) will be available through the `next` URL present in the `Link` response header. @@ -102,7 +163,10 @@ export class Comment { try { const pageInlineComments = await this.client.sendRequest>(config); - const paginatedPageInlineComments = this.paginationService.buildPaginatedResult(pageInlineComments, this.getPageInlineComments.bind(this)); + const paginatedPageInlineComments = this.paginationService.buildPaginatedResult( + pageInlineComments, + this.getPageInlineComments.bind(this), + ); const responseHandler = this.client.getResponseHandler(callback); @@ -114,6 +178,35 @@ export class Comment { } } + /** Fetches all footer comments of a blog post. */ + async getAllBlogPostFooterComments( + parameters: Parameters.GetBlogPostFooterComments, + callback: Callback, + ): Promise; + /** Fetches all footer comments of a blog post. */ + async getAllBlogPostFooterComments( + parameters: Parameters.GetBlogPostFooterComments, + callback?: never, + ): Promise; + async getAllBlogPostFooterComments( + parameters: Parameters.GetBlogPostFooterComments, + callback?: Callback, + ): Promise { + try { + const { getAll: getAllBlogPostFooterComments } = await this.getBlogPostFooterComments(parameters); + + const blogPostFooterComments = await getAllBlogPostFooterComments(); + + const responseHandler = this.client.getResponseHandler(callback); + + return responseHandler(blogPostFooterComments as T); + } catch (e: any) { + const errorHandler = this.client.getErrorHandler(callback); + + return errorHandler(e); + } + } + /** * Returns the root footer comments of specific blog post. The number of results is limited by the `limit` parameter * and additional results (if available) will be available through the `next` URL present in the `Link` response @@ -156,7 +249,10 @@ export class Comment { try { const blogPostComments = await this.client.sendRequest>(config); - const paginatedBlogPostComments = this.paginationService.buildPaginatedResult(blogPostComments, this.getBlogPostFooterComments.bind(this)); + const paginatedBlogPostComments = this.paginationService.buildPaginatedResult( + blogPostComments, + this.getBlogPostFooterComments.bind(this), + ); const responseHandler = this.client.getResponseHandler(callback); @@ -168,6 +264,35 @@ export class Comment { } } + /** Fetches all inline comments of a blog post. */ + async getAllBlogPostInlineComments( + parameters: Parameters.GetBlogPostInlineComments, + callback: Callback, + ): Promise; + /** Fetches all inline comments of a blog post. */ + async getAllBlogPostInlineComments( + parameters: Parameters.GetBlogPostInlineComments, + callback?: never, + ): Promise; + async getAllBlogPostInlineComments( + parameters: Parameters.GetBlogPostInlineComments, + callback?: Callback, + ): Promise { + try { + const { getAll: getAllBlogPostInlineComments } = await this.getBlogPostInlineComments(parameters); + + const blogPostInlineComments = await getAllBlogPostInlineComments(); + + const responseHandler = this.client.getResponseHandler(callback); + + return responseHandler(blogPostInlineComments as T); + } catch (e: any) { + const errorHandler = this.client.getErrorHandler(callback); + + return errorHandler(e); + } + } + /** * Returns the root inline comments of specific blog post. The number of results is limited by the `limit` parameter * and additional results (if available) will be available through the `next` URL present in the `Link` response @@ -209,8 +334,13 @@ export class Comment { }; try { - const blogPostInlineComments = await this.client.sendRequest>(config); - const paginatedBlogPostInlineComments = this.paginationService.buildPaginatedResult(blogPostInlineComments, this.getBlogPostInlineComments.bind(this)); + const blogPostInlineComments = await this.client.sendRequest>( + config, + ); + const paginatedBlogPostInlineComments = this.paginationService.buildPaginatedResult( + blogPostInlineComments, + this.getBlogPostInlineComments.bind(this), + ); const responseHandler = this.client.getResponseHandler(callback); @@ -367,6 +497,35 @@ export class Comment { return this.client.sendRequest(config, callback); } + /** Fetches all children of a footer comment. */ + async getAllFooterCommentChildren( + parameters: Parameters.GetFooterCommentChildren, + callback: Callback, + ): Promise; + /** Fetches all children of a footer comment. */ + async getAllFooterCommentChildren( + parameters: Parameters.GetFooterCommentChildren, + callback?: never, + ): Promise; + async getAllFooterCommentChildren( + parameters: Parameters.GetFooterCommentChildren, + callback?: Callback, + ): Promise { + try { + const { getAll: getAllFooterCommentChildren } = await this.getFooterCommentChildren(parameters); + + const footerCommentChildren = await getAllFooterCommentChildren(); + + const responseHandler = this.client.getResponseHandler(callback); + + return responseHandler(footerCommentChildren as T); + } catch (e: any) { + const errorHandler = this.client.getErrorHandler(callback); + + return errorHandler(e); + } + } + /** * Returns the children footer comments of specific comment. The number of results is limited by the `limit` parameter * and additional results (if available) will be available through the `next` URL present in the `Link` response @@ -409,7 +568,10 @@ export class Comment { try { const childrenComments = await this.client.sendRequest>(config); - const paginatedChildrenComments = this.paginationService.buildPaginatedResult(childrenComments, this.getFooterCommentChildren.bind(this)); + const paginatedChildrenComments = this.paginationService.buildPaginatedResult( + childrenComments, + this.getFooterCommentChildren.bind(this), + ); const responseHandler = this.client.getResponseHandler(callback); @@ -572,6 +734,35 @@ export class Comment { return this.client.sendRequest(config, callback); } + /** Fetches all children of an inline comment. */ + async getAllInlineCommentChildren( + parameters: Parameters.GetInlineCommentChildren, + callback: Callback, + ): Promise; + /** Fetches all children of an inline comment. */ + async getAllInlineCommentChildren( + parameters: Parameters.GetInlineCommentChildren, + callback?: never, + ): Promise; + async getAllInlineCommentChildren( + parameters: Parameters.GetInlineCommentChildren, + callback?: Callback, + ): Promise { + try { + const { getAll: getAllInlineCommentChildren } = await this.getInlineCommentChildren(parameters); + + const inlineCommentChildren = await getAllInlineCommentChildren(); + + const responseHandler = this.client.getResponseHandler(callback); + + return responseHandler(inlineCommentChildren as T); + } catch (e: any) { + const errorHandler = this.client.getErrorHandler(callback); + + return errorHandler(e); + } + } + /** * Returns the children inline comments of specific comment. The number of results is limited by the `limit` parameter * and additional results (if available) will be available through the `next` URL present in the `Link` response @@ -613,8 +804,13 @@ export class Comment { }; try { - const inlineCommentChildren = await this.client.sendRequest>(config); - const paginatedInlineCommentChildren = this.paginationService.buildPaginatedResult(inlineCommentChildren, this.getInlineCommentChildren.bind(this)); + const inlineCommentChildren = await this.client.sendRequest>( + config, + ); + const paginatedInlineCommentChildren = this.paginationService.buildPaginatedResult( + inlineCommentChildren, + this.getInlineCommentChildren.bind(this), + ); const responseHandler = this.client.getResponseHandler(callback); diff --git a/src/version2/space.ts b/src/version2/space.ts index 2b5ba231..3f4c3e28 100644 --- a/src/version2/space.ts +++ b/src/version2/space.ts @@ -10,6 +10,29 @@ export class Space { constructor(private client: Client) {} + /** Fetches all spaces. */ + async getAllSpaces( + parameters: Parameters.GetSpaces | undefined, + callback: Callback, + ): Promise; + /** Fetches all spaces. */ + async getAllSpaces(parameters?: Parameters.GetSpaces, callback?: never): Promise; + async getAllSpaces(parameters?: Parameters.GetSpaces, callback?: Callback): Promise { + try { + const { getAll: getAllSpaces } = await this.getSpaces(parameters); + + const spaces = await getAllSpaces(); + + const responseHandler = this.client.getResponseHandler(callback); + + return responseHandler(spaces as T); + } catch (e: any) { + const errorHandler = this.client.getErrorHandler(callback); + + return errorHandler(e); + } + } + /** * Returns all spaces. The results will be sorted by id ascending. The number of results is limited by the `limit` * parameter and additional results (if available) will be available through the `next` URL present in the `Link` diff --git a/tests/integration/getSpacesPagination.test.ts b/tests/integration/getSpacesPagination.test.ts index 5f31825a..3283dc1a 100644 --- a/tests/integration/getSpacesPagination.test.ts +++ b/tests/integration/getSpacesPagination.test.ts @@ -43,3 +43,9 @@ test.serial('`next()` function should works', async t => { t.is(secondSpaceBatch.results.length, 1); t.is(secondSpaceBatch.results[0].description.view.representation, 'view'); }); + +test.serial('`getAllSpaces()` function should works', async t => { + const allSpaces = await version2Client.space.getAllSpaces({ limit: 1, descriptionFormat: 'plain' }); + + t.truthy(allSpaces.length > 1); +}); diff --git a/tests/unit/version2/attachment.test.ts b/tests/unit/version2/attachment.test.ts new file mode 100644 index 00000000..924c3239 --- /dev/null +++ b/tests/unit/version2/attachment.test.ts @@ -0,0 +1,20 @@ +import test from 'ava'; +import { Version2Client } from '../../../src'; + +const version2Client = new Version2Client({ host: '' }); + +test('`getAllBlogPostAttachments` should be defined', t => { + t.truthy(!!version2Client.attachment.getAllBlogPostAttachments); +}); + +test('`getAllCustomContentAttachments` should be defined', t => { + t.truthy(!!version2Client.attachment.getAllBlogPostAttachments); +}); + +test('`getAllLabelAttachments` should be defined', t => { + t.truthy(!!version2Client.attachment.getAllLabelAttachments); +}); + +test('`getAllPageAttachments` should be defined', t => { + t.truthy(!!version2Client.attachment.getAllPageAttachments); +}); diff --git a/tests/unit/version2/blogPost.test.ts b/tests/unit/version2/blogPost.test.ts new file mode 100644 index 00000000..b5b0a913 --- /dev/null +++ b/tests/unit/version2/blogPost.test.ts @@ -0,0 +1,16 @@ +import test from 'ava'; +import { Version2Client } from '../../../src'; + +const version2Client = new Version2Client({ host: '' }); + +test('`getAllBlogPosts` should be defined', t => { + t.truthy(!!version2Client.blogPost.getAllBlogPosts); +}); + +test('`getAllLabelBlogPosts` should be defined', t => { + t.truthy(!!version2Client.blogPost.getAllLabelBlogPosts); +}); + +test('`getAllBlogPostsInSpace` should be defined', t => { + t.truthy(!!version2Client.blogPost.getAllBlogPostsInSpace); +}); diff --git a/tests/unit/version2/children.test.ts b/tests/unit/version2/children.test.ts new file mode 100644 index 00000000..c52b9c21 --- /dev/null +++ b/tests/unit/version2/children.test.ts @@ -0,0 +1,12 @@ +import test from 'ava'; +import { Version2Client } from '../../../src'; + +const version2Client = new Version2Client({ host: '' }); + +test('`getAllChildPages` should be defined', t => { + t.truthy(!!version2Client.children.getAllChildPages); +}); + +test('`getAllChildCustomContent` should be defined', t => { + t.truthy(!!version2Client.children.getAllChildCustomContent); +}); diff --git a/tests/unit/version2/comment.test.ts b/tests/unit/version2/comment.test.ts new file mode 100644 index 00000000..44b37a40 --- /dev/null +++ b/tests/unit/version2/comment.test.ts @@ -0,0 +1,28 @@ +import test from 'ava'; +import { Version2Client } from '../../../src'; + +const version2Client = new Version2Client({ host: '' }); + +test('`getAllPageFooterComments` should be defined', t => { + t.truthy(!!version2Client.comment.getAllPageFooterComments); +}); + +test('`getAllPageInlineComments` should be defined', t => { + t.truthy(!!version2Client.comment.getAllPageInlineComments); +}); + +test('`getAllBlogPostFooterComments` should be defined', t => { + t.truthy(!!version2Client.comment.getAllBlogPostFooterComments); +}); + +test('`getAllBlogPostInlineComments` should be defined', t => { + t.truthy(!!version2Client.comment.getAllBlogPostInlineComments); +}); + +test('`getAllFooterCommentChildren` should be defined', t => { + t.truthy(!!version2Client.comment.getAllFooterCommentChildren); +}); + +test('`getAllInlineCommentChildren` should be defined', t => { + t.truthy(!!version2Client.comment.getAllInlineCommentChildren); +}); diff --git a/tests/unit/version2/space.test.ts b/tests/unit/version2/space.test.ts new file mode 100644 index 00000000..2e5a4a8b --- /dev/null +++ b/tests/unit/version2/space.test.ts @@ -0,0 +1,8 @@ +import test from 'ava'; +import { Version2Client } from '../../../src'; + +const version2Client = new Version2Client({ host: '' }); + +test('`getAllSpaces` should be defined', t => { + t.truthy(!!version2Client.space.getAllSpaces); +});