confluence.js 2.0.0-dev20250512123346 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/api/{analytics.js → analytics.cjs} +1 -1
- package/dist/cjs/api/analytics.cjs.map +1 -0
- package/dist/cjs/api/{audit.js → audit.cjs} +1 -1
- package/dist/cjs/api/audit.cjs.map +1 -0
- package/dist/cjs/api/{content.js → content.cjs} +1 -1
- package/dist/cjs/api/content.cjs.map +1 -0
- package/dist/cjs/api/{contentAttachments.js → contentAttachments.cjs} +1 -1
- package/dist/cjs/api/contentAttachments.cjs.map +1 -0
- package/dist/cjs/api/{contentBody.js → contentBody.cjs} +1 -1
- package/dist/cjs/api/contentBody.cjs.map +1 -0
- package/dist/cjs/api/{contentChildrenAndDescendants.js → contentChildrenAndDescendants.cjs} +1 -1
- package/dist/cjs/api/contentChildrenAndDescendants.cjs.map +1 -0
- package/dist/cjs/api/{contentComments.js → contentComments.cjs} +1 -1
- package/dist/cjs/api/contentComments.cjs.map +1 -0
- package/dist/cjs/api/{contentLabels.js → contentLabels.cjs} +1 -1
- package/dist/cjs/api/contentLabels.cjs.map +1 -0
- package/dist/cjs/api/{contentMacroBody.js → contentMacroBody.cjs} +1 -1
- package/dist/cjs/api/contentMacroBody.cjs.map +1 -0
- package/dist/cjs/api/{contentPermissions.js → contentPermissions.cjs} +1 -1
- package/dist/cjs/api/contentPermissions.cjs.map +1 -0
- package/dist/cjs/api/{contentProperties.js → contentProperties.cjs} +1 -1
- package/dist/cjs/api/contentProperties.cjs.map +1 -0
- package/dist/cjs/api/{contentRestrictions.js → contentRestrictions.cjs} +1 -1
- package/dist/cjs/api/contentRestrictions.cjs.map +1 -0
- package/dist/cjs/api/{contentStates.js → contentStates.cjs} +1 -1
- package/dist/cjs/api/contentStates.cjs.map +1 -0
- package/dist/cjs/api/{contentVersions.js → contentVersions.cjs} +1 -1
- package/dist/cjs/api/contentVersions.cjs.map +1 -0
- package/dist/cjs/api/{contentWatches.js → contentWatches.cjs} +1 -1
- package/dist/cjs/api/contentWatches.cjs.map +1 -0
- package/dist/cjs/api/{dynamicModules.js → dynamicModules.cjs} +1 -1
- package/dist/cjs/api/dynamicModules.cjs.map +1 -0
- package/dist/cjs/api/{experimental.js → experimental.cjs} +1 -1
- package/dist/cjs/api/experimental.cjs.map +1 -0
- package/dist/cjs/api/{group.js → group.cjs} +1 -1
- package/dist/cjs/api/group.cjs.map +1 -0
- package/dist/cjs/api/{index.js → index.cjs} +32 -32
- package/dist/cjs/api/index.cjs.map +1 -0
- package/dist/cjs/api/{inlineTasks.js → inlineTasks.cjs} +1 -1
- package/dist/cjs/api/inlineTasks.cjs.map +1 -0
- package/dist/cjs/api/{labelInfo.js → labelInfo.cjs} +1 -1
- package/dist/cjs/api/labelInfo.cjs.map +1 -0
- package/dist/cjs/api/{longRunningTask.js → longRunningTask.cjs} +1 -1
- package/dist/cjs/api/longRunningTask.cjs.map +1 -0
- package/dist/cjs/api/models/{index.js → index.cjs} +2 -2
- package/dist/cjs/api/models/index.cjs.map +1 -0
- package/dist/cjs/api/models/{labeledContentType.js → labeledContentType.cjs} +1 -1
- package/dist/cjs/api/models/labeledContentType.cjs.map +1 -0
- package/dist/cjs/api/parameters/index.cjs +3 -0
- package/dist/cjs/api/parameters/index.cjs.map +1 -0
- package/dist/cjs/api/{relation.js → relation.cjs} +1 -1
- package/dist/cjs/api/relation.cjs.map +1 -0
- package/dist/cjs/api/{search.js → search.cjs} +1 -1
- package/dist/cjs/api/search.cjs.map +1 -0
- package/dist/cjs/api/{settings.js → settings.cjs} +1 -1
- package/dist/cjs/api/settings.cjs.map +1 -0
- package/dist/cjs/api/{space.js → space.cjs} +2 -2
- package/dist/cjs/api/space.cjs.map +1 -0
- package/dist/cjs/api/{spacePermissions.js → spacePermissions.cjs} +1 -1
- package/dist/cjs/api/spacePermissions.cjs.map +1 -0
- package/dist/cjs/api/{spaceProperties.js → spaceProperties.cjs} +1 -1
- package/dist/cjs/api/spaceProperties.cjs.map +1 -0
- package/dist/cjs/api/{spaceSettings.js → spaceSettings.cjs} +1 -1
- package/dist/cjs/api/spaceSettings.cjs.map +1 -0
- package/dist/cjs/api/{template.js → template.cjs} +1 -1
- package/dist/cjs/api/template.cjs.map +1 -0
- package/dist/cjs/api/{themes.js → themes.cjs} +1 -1
- package/dist/cjs/api/themes.cjs.map +1 -0
- package/dist/cjs/api/{users.js → users.cjs} +1 -1
- package/dist/cjs/api/users.cjs.map +1 -0
- package/dist/cjs/clients/{baseClient.js → baseClient.cjs} +3 -3
- package/dist/cjs/clients/baseClient.cjs.map +1 -0
- package/dist/cjs/clients/{confluenceClient.js → confluenceClient.cjs} +33 -33
- package/dist/cjs/clients/confluenceClient.cjs.map +1 -0
- package/dist/cjs/{config.js → config.cjs} +1 -1
- package/dist/cjs/config.cjs.map +1 -0
- package/dist/cjs/{index.js → index.cjs} +8 -8
- package/dist/cjs/index.cjs.map +1 -0
- package/dist/cjs/{paramSerializer.js → paramSerializer.cjs} +1 -1
- package/dist/cjs/paramSerializer.cjs.map +1 -0
- package/dist/cjs/services/authenticationService/{authenticationService.js → authenticationService.cjs} +4 -4
- package/dist/cjs/services/authenticationService/authenticationService.cjs.map +1 -0
- package/dist/cjs/services/authenticationService/authentications/{createBasicAuthenticationToken.js → createBasicAuthenticationToken.cjs} +2 -2
- package/dist/cjs/services/authenticationService/authentications/createBasicAuthenticationToken.cjs.map +1 -0
- package/dist/cjs/services/authenticationService/authentications/{createJWTAuthentication.js → createJWTAuthentication.cjs} +1 -1
- package/dist/cjs/services/authenticationService/authentications/createJWTAuthentication.cjs.map +1 -0
- package/dist/cjs/services/authenticationService/authentications/{createOAuth2AuthenticationToken.js → createOAuth2AuthenticationToken.cjs} +1 -1
- package/dist/cjs/services/authenticationService/authentications/createOAuth2AuthenticationToken.cjs.map +1 -0
- package/dist/cjs/services/authenticationService/{base64Encoder.js → base64Encoder.cjs} +1 -1
- package/dist/cjs/services/authenticationService/base64Encoder.cjs.map +1 -0
- package/dist/esm/api/{analytics.js → analytics.mjs} +1 -1
- package/dist/esm/api/analytics.mjs.map +1 -0
- package/dist/esm/api/{audit.js → audit.mjs} +1 -1
- package/dist/esm/api/audit.mjs.map +1 -0
- package/dist/esm/api/{content.js → content.mjs} +1 -1
- package/dist/esm/api/content.mjs.map +1 -0
- package/dist/esm/api/{contentAttachments.js → contentAttachments.mjs} +1 -1
- package/dist/esm/api/contentAttachments.mjs.map +1 -0
- package/dist/esm/api/{contentBody.js → contentBody.mjs} +1 -1
- package/dist/esm/api/contentBody.mjs.map +1 -0
- package/dist/esm/api/{contentChildrenAndDescendants.js → contentChildrenAndDescendants.mjs} +1 -1
- package/dist/esm/api/contentChildrenAndDescendants.mjs.map +1 -0
- package/dist/esm/api/{contentComments.js → contentComments.mjs} +1 -1
- package/dist/esm/api/contentComments.mjs.map +1 -0
- package/dist/esm/api/{contentLabels.js → contentLabels.mjs} +1 -1
- package/dist/esm/api/contentLabels.mjs.map +1 -0
- package/dist/esm/api/{contentMacroBody.js → contentMacroBody.mjs} +1 -1
- package/dist/esm/api/contentMacroBody.mjs.map +1 -0
- package/dist/esm/api/{contentPermissions.js → contentPermissions.mjs} +1 -1
- package/dist/esm/api/contentPermissions.mjs.map +1 -0
- package/dist/esm/api/{contentProperties.js → contentProperties.mjs} +1 -1
- package/dist/esm/api/contentProperties.mjs.map +1 -0
- package/dist/esm/api/{contentRestrictions.js → contentRestrictions.mjs} +1 -1
- package/dist/esm/api/contentRestrictions.mjs.map +1 -0
- package/dist/esm/api/{contentStates.js → contentStates.mjs} +1 -1
- package/dist/esm/api/contentStates.mjs.map +1 -0
- package/dist/esm/api/{contentVersions.js → contentVersions.mjs} +1 -1
- package/dist/esm/api/contentVersions.mjs.map +1 -0
- package/dist/esm/api/{contentWatches.js → contentWatches.mjs} +1 -1
- package/dist/esm/api/contentWatches.mjs.map +1 -0
- package/dist/esm/api/{dynamicModules.js → dynamicModules.mjs} +1 -1
- package/dist/esm/api/dynamicModules.mjs.map +1 -0
- package/dist/esm/api/{experimental.js → experimental.mjs} +1 -1
- package/dist/esm/api/experimental.mjs.map +1 -0
- package/dist/esm/api/{group.js → group.mjs} +1 -1
- package/dist/esm/api/group.mjs.map +1 -0
- package/dist/esm/api/index.mjs +32 -0
- package/dist/esm/api/index.mjs.map +1 -0
- package/dist/esm/api/{inlineTasks.js → inlineTasks.mjs} +1 -1
- package/dist/esm/api/inlineTasks.mjs.map +1 -0
- package/dist/esm/api/{labelInfo.js → labelInfo.mjs} +1 -1
- package/dist/esm/api/labelInfo.mjs.map +1 -0
- package/dist/esm/api/{longRunningTask.js → longRunningTask.mjs} +1 -1
- package/dist/esm/api/longRunningTask.mjs.map +1 -0
- package/dist/esm/api/models/index.mjs +2 -0
- package/dist/esm/api/models/index.mjs.map +1 -0
- package/dist/esm/api/models/{labeledContentType.js → labeledContentType.mjs} +1 -1
- package/dist/esm/api/models/labeledContentType.mjs.map +1 -0
- package/dist/esm/api/parameters/index.mjs +2 -0
- package/dist/esm/api/parameters/index.mjs.map +1 -0
- package/dist/esm/api/{relation.js → relation.mjs} +1 -1
- package/dist/esm/api/relation.mjs.map +1 -0
- package/dist/esm/api/{search.js → search.mjs} +1 -1
- package/dist/esm/api/search.mjs.map +1 -0
- package/dist/esm/api/{settings.js → settings.mjs} +1 -1
- package/dist/esm/api/settings.mjs.map +1 -0
- package/dist/esm/api/{space.js → space.mjs} +2 -2
- package/dist/esm/api/space.mjs.map +1 -0
- package/dist/esm/api/{spacePermissions.js → spacePermissions.mjs} +1 -1
- package/dist/esm/api/spacePermissions.mjs.map +1 -0
- package/dist/esm/api/{spaceProperties.js → spaceProperties.mjs} +1 -1
- package/dist/esm/api/spaceProperties.mjs.map +1 -0
- package/dist/esm/api/{spaceSettings.js → spaceSettings.mjs} +1 -1
- package/dist/esm/api/spaceSettings.mjs.map +1 -0
- package/dist/esm/api/{template.js → template.mjs} +1 -1
- package/dist/esm/api/template.mjs.map +1 -0
- package/dist/esm/api/{themes.js → themes.mjs} +1 -1
- package/dist/esm/api/themes.mjs.map +1 -0
- package/dist/esm/api/{users.js → users.mjs} +1 -1
- package/dist/esm/api/users.mjs.map +1 -0
- package/dist/esm/clients/{baseClient.js → baseClient.mjs} +3 -3
- package/dist/esm/clients/baseClient.mjs.map +1 -0
- package/dist/esm/clients/confluenceClient.mjs +75 -0
- package/dist/esm/clients/confluenceClient.mjs.map +1 -0
- package/dist/esm/{config.js → config.mjs} +1 -1
- package/dist/esm/config.mjs.map +1 -0
- package/dist/esm/index.mjs +11 -0
- package/dist/esm/index.mjs.map +1 -0
- package/dist/esm/{paramSerializer.js → paramSerializer.mjs} +1 -1
- package/dist/esm/paramSerializer.mjs.map +1 -0
- package/dist/esm/services/authenticationService/{authenticationService.js → authenticationService.mjs} +4 -4
- package/dist/esm/services/authenticationService/authenticationService.mjs.map +1 -0
- package/dist/esm/services/authenticationService/authentications/{createBasicAuthenticationToken.js → createBasicAuthenticationToken.mjs} +2 -2
- package/dist/esm/services/authenticationService/authentications/createBasicAuthenticationToken.mjs.map +1 -0
- package/dist/esm/services/authenticationService/authentications/{createJWTAuthentication.js → createJWTAuthentication.mjs} +1 -1
- package/dist/esm/services/authenticationService/authentications/createJWTAuthentication.mjs.map +1 -0
- package/dist/esm/services/authenticationService/authentications/{createOAuth2AuthenticationToken.js → createOAuth2AuthenticationToken.mjs} +1 -1
- package/dist/esm/services/authenticationService/authentications/createOAuth2AuthenticationToken.mjs.map +1 -0
- package/dist/esm/services/authenticationService/{base64Encoder.js → base64Encoder.mjs} +1 -1
- package/dist/esm/services/authenticationService/base64Encoder.mjs.map +1 -0
- package/package.json +8 -8
- package/rollup.config.ts +2 -0
- package/dist/cjs/api/analytics.js.map +0 -1
- package/dist/cjs/api/audit.js.map +0 -1
- package/dist/cjs/api/content.js.map +0 -1
- package/dist/cjs/api/contentAttachments.js.map +0 -1
- package/dist/cjs/api/contentBody.js.map +0 -1
- package/dist/cjs/api/contentChildrenAndDescendants.js.map +0 -1
- package/dist/cjs/api/contentComments.js.map +0 -1
- package/dist/cjs/api/contentLabels.js.map +0 -1
- package/dist/cjs/api/contentMacroBody.js.map +0 -1
- package/dist/cjs/api/contentPermissions.js.map +0 -1
- package/dist/cjs/api/contentProperties.js.map +0 -1
- package/dist/cjs/api/contentRestrictions.js.map +0 -1
- package/dist/cjs/api/contentStates.js.map +0 -1
- package/dist/cjs/api/contentVersions.js.map +0 -1
- package/dist/cjs/api/contentWatches.js.map +0 -1
- package/dist/cjs/api/dynamicModules.js.map +0 -1
- package/dist/cjs/api/experimental.js.map +0 -1
- package/dist/cjs/api/group.js.map +0 -1
- package/dist/cjs/api/index.js.map +0 -1
- package/dist/cjs/api/inlineTasks.js.map +0 -1
- package/dist/cjs/api/labelInfo.js.map +0 -1
- package/dist/cjs/api/longRunningTask.js.map +0 -1
- package/dist/cjs/api/models/index.js.map +0 -1
- package/dist/cjs/api/models/labeledContentType.js.map +0 -1
- package/dist/cjs/api/parameters/index.js +0 -3
- package/dist/cjs/api/parameters/index.js.map +0 -1
- package/dist/cjs/api/relation.js.map +0 -1
- package/dist/cjs/api/search.js.map +0 -1
- package/dist/cjs/api/settings.js.map +0 -1
- package/dist/cjs/api/space.js.map +0 -1
- package/dist/cjs/api/spacePermissions.js.map +0 -1
- package/dist/cjs/api/spaceProperties.js.map +0 -1
- package/dist/cjs/api/spaceSettings.js.map +0 -1
- package/dist/cjs/api/template.js.map +0 -1
- package/dist/cjs/api/themes.js.map +0 -1
- package/dist/cjs/api/users.js.map +0 -1
- package/dist/cjs/clients/baseClient.js.map +0 -1
- package/dist/cjs/clients/confluenceClient.js.map +0 -1
- package/dist/cjs/config.js.map +0 -1
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/paramSerializer.js.map +0 -1
- package/dist/cjs/services/authenticationService/authenticationService.js.map +0 -1
- package/dist/cjs/services/authenticationService/authentications/createBasicAuthenticationToken.js.map +0 -1
- package/dist/cjs/services/authenticationService/authentications/createJWTAuthentication.js.map +0 -1
- package/dist/cjs/services/authenticationService/authentications/createOAuth2AuthenticationToken.js.map +0 -1
- package/dist/cjs/services/authenticationService/base64Encoder.js.map +0 -1
- package/dist/esm/api/analytics.js.map +0 -1
- package/dist/esm/api/audit.js.map +0 -1
- package/dist/esm/api/content.js.map +0 -1
- package/dist/esm/api/contentAttachments.js.map +0 -1
- package/dist/esm/api/contentBody.js.map +0 -1
- package/dist/esm/api/contentChildrenAndDescendants.js.map +0 -1
- package/dist/esm/api/contentComments.js.map +0 -1
- package/dist/esm/api/contentLabels.js.map +0 -1
- package/dist/esm/api/contentMacroBody.js.map +0 -1
- package/dist/esm/api/contentPermissions.js.map +0 -1
- package/dist/esm/api/contentProperties.js.map +0 -1
- package/dist/esm/api/contentRestrictions.js.map +0 -1
- package/dist/esm/api/contentStates.js.map +0 -1
- package/dist/esm/api/contentVersions.js.map +0 -1
- package/dist/esm/api/contentWatches.js.map +0 -1
- package/dist/esm/api/dynamicModules.js.map +0 -1
- package/dist/esm/api/experimental.js.map +0 -1
- package/dist/esm/api/group.js.map +0 -1
- package/dist/esm/api/index.js +0 -32
- package/dist/esm/api/index.js.map +0 -1
- package/dist/esm/api/inlineTasks.js.map +0 -1
- package/dist/esm/api/labelInfo.js.map +0 -1
- package/dist/esm/api/longRunningTask.js.map +0 -1
- package/dist/esm/api/models/index.js +0 -2
- package/dist/esm/api/models/index.js.map +0 -1
- package/dist/esm/api/models/labeledContentType.js.map +0 -1
- package/dist/esm/api/parameters/index.js +0 -2
- package/dist/esm/api/parameters/index.js.map +0 -1
- package/dist/esm/api/relation.js.map +0 -1
- package/dist/esm/api/search.js.map +0 -1
- package/dist/esm/api/settings.js.map +0 -1
- package/dist/esm/api/space.js.map +0 -1
- package/dist/esm/api/spacePermissions.js.map +0 -1
- package/dist/esm/api/spaceProperties.js.map +0 -1
- package/dist/esm/api/spaceSettings.js.map +0 -1
- package/dist/esm/api/template.js.map +0 -1
- package/dist/esm/api/themes.js.map +0 -1
- package/dist/esm/api/users.js.map +0 -1
- package/dist/esm/clients/baseClient.js.map +0 -1
- package/dist/esm/clients/confluenceClient.js +0 -75
- package/dist/esm/clients/confluenceClient.js.map +0 -1
- package/dist/esm/config.js.map +0 -1
- package/dist/esm/index.js +0 -11
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/paramSerializer.js.map +0 -1
- package/dist/esm/services/authenticationService/authenticationService.js.map +0 -1
- package/dist/esm/services/authenticationService/authentications/createBasicAuthenticationToken.js.map +0 -1
- package/dist/esm/services/authenticationService/authentications/createJWTAuthentication.js.map +0 -1
- package/dist/esm/services/authenticationService/authentications/createOAuth2AuthenticationToken.js.map +0 -1
- package/dist/esm/services/authenticationService/base64Encoder.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"contentRestrictions.js","sources":["../../../../src/api/contentRestrictions.ts"],"sourcesContent":["import type * as Models from './models';\nimport type * as Parameters from './parameters';\nimport type { Callback } from '../callback';\nimport type { Client } from '../clients';\nimport type { RequestConfig } from '../requestConfig';\n\nexport class ContentRestrictions {\n constructor(private client: Client) {}\n\n /**\n * Returns the restrictions on a piece of content.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content.\n */\n async getRestrictions<T = Models.ContentRestrictionArray>(\n parameters: Parameters.GetRestrictions,\n callback: Callback<T>,\n ): Promise<void>;\n /**\n * Returns the restrictions on a piece of content.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content.\n */\n async getRestrictions<T = Models.ContentRestrictionArray>(\n parameters: Parameters.GetRestrictions,\n callback?: never,\n ): Promise<T>;\n async getRestrictions<T = Models.ContentRestrictionArray>(\n parameters: Parameters.GetRestrictions,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: `/api/content/${parameters.id}/restriction`,\n method: 'GET',\n params: {\n expand: parameters.expand,\n start: parameters.start,\n limit: parameters.limit,\n },\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Adds restrictions to a piece of content. Note, this does not change any existing restrictions on the content.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the content.\n */\n async addRestrictions<T = Models.ContentRestrictionArray>(\n parameters: Parameters.AddRestrictions,\n callback: Callback<T>,\n ): Promise<void>;\n /**\n * Adds restrictions to a piece of content. Note, this does not change any existing restrictions on the content.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the content.\n */\n async addRestrictions<T = Models.ContentRestrictionArray>(\n parameters: Parameters.AddRestrictions,\n callback?: never,\n ): Promise<T>;\n async addRestrictions<T = Models.ContentRestrictionArray>(\n parameters: Parameters.AddRestrictions,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: `/api/content/${parameters.id}/restriction`,\n method: 'POST',\n params: {\n expand: parameters.expand,\n },\n data: parameters.body,\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Updates restrictions for a piece of content. This removes the existing restrictions and replaces them with the\n * restrictions in the request.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the content.\n */\n async updateRestrictions<T = Models.ContentRestrictionArray>(\n parameters: Parameters.UpdateRestrictions,\n callback: Callback<T>,\n ): Promise<void>;\n /**\n * Updates restrictions for a piece of content. This removes the existing restrictions and replaces them with the\n * restrictions in the request.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the content.\n */\n async updateRestrictions<T = Models.ContentRestrictionArray>(\n parameters: Parameters.UpdateRestrictions,\n callback?: never,\n ): Promise<T>;\n async updateRestrictions<T = Models.ContentRestrictionArray>(\n parameters: Parameters.UpdateRestrictions,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: `/api/content/${parameters.id}/restriction`,\n method: 'PUT',\n params: {\n expand: parameters.expand,\n },\n data: parameters.body,\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Removes all restrictions (read and update) on a piece of content.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the content.\n */\n async deleteRestrictions<T = Models.ContentRestrictionArray>(\n parameters: Parameters.DeleteRestrictions,\n callback: Callback<T>,\n ): Promise<void>;\n /**\n * Removes all restrictions (read and update) on a piece of content.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the content.\n */\n async deleteRestrictions<T = Models.ContentRestrictionArray>(\n parameters: Parameters.DeleteRestrictions,\n callback?: never,\n ): Promise<T>;\n async deleteRestrictions<T = Models.ContentRestrictionArray>(\n parameters: Parameters.DeleteRestrictions,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: `/api/content/${parameters.id}/restriction`,\n method: 'DELETE',\n params: {\n expand: parameters.expand,\n },\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Returns restrictions on a piece of content by operation. This method is similar to [Get\n * restrictions](#api-content-id-restriction-get) except that the operations are properties of the return object,\n * rather than items in a results array.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content.\n */\n async getRestrictionsByOperation<T = Models.GetRestrictionsByOperation>(\n parameters: Parameters.GetRestrictionsByOperation,\n callback: Callback<T>,\n ): Promise<void>;\n /**\n * Returns restrictions on a piece of content by operation. This method is similar to [Get\n * restrictions](#api-content-id-restriction-get) except that the operations are properties of the return object,\n * rather than items in a results array.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content.\n */\n async getRestrictionsByOperation<T = Models.GetRestrictionsByOperation>(\n parameters: Parameters.GetRestrictionsByOperation,\n callback?: never,\n ): Promise<T>;\n async getRestrictionsByOperation<T = Models.GetRestrictionsByOperation>(\n parameters: Parameters.GetRestrictionsByOperation,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: `/api/content/${parameters.id}/restriction/byOperation`,\n method: 'GET',\n params: {\n expand: parameters.expand,\n },\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Returns the restictions on a piece of content for a given operation (read or update).\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content.\n */\n async getRestrictionsForOperation<T = Models.ContentRestriction>(\n parameters: Parameters.GetRestrictionsForOperation,\n callback: Callback<T>,\n ): Promise<void>;\n /**\n * Returns the restictions on a piece of content for a given operation (read or update).\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content.\n */\n async getRestrictionsForOperation<T = Models.ContentRestriction>(\n parameters: Parameters.GetRestrictionsForOperation,\n callback?: never,\n ): Promise<T>;\n async getRestrictionsForOperation<T = Models.ContentRestriction>(\n parameters: Parameters.GetRestrictionsForOperation,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: `/api/content/${parameters.id}/restriction/byOperation/${parameters.operationKey}`,\n method: 'GET',\n params: {\n expand: parameters.expand,\n start: parameters.start,\n limit: parameters.limit,\n },\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Returns whether the specified content restriction applies to a group. For example, if a page with `id=123` has a\n * `read` restriction for the `admins` group, the following request will return `true`:\n *\n * `https://your-domain.atlassian.net/wiki/rest/api/content/123/restriction/byOperation/read/group/admins`\n *\n * Note that a response of `true` does not guarantee that the group can view the page, as it does not account for\n * account-inherited restrictions, space permissions, or even product access. For more information, see [Confluence\n * permissions](https://confluence.atlassian.com/x/_AozKw).\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content.\n */\n async getContentRestrictionStatusForGroup<T = unknown>(\n parameters: Parameters.GetContentRestrictionStatusForGroup,\n callback: Callback<T>,\n ): Promise<void>;\n /**\n * Returns whether the specified content restriction applies to a group. For example, if a page with `id=123` has a\n * `read` restriction for the `admins` group, the following request will return `true`:\n *\n * `https://your-domain.atlassian.net/wiki/rest/api/content/123/restriction/byOperation/read/group/admins`\n *\n * Note that a response of `true` does not guarantee that the group can view the page, as it does not account for\n * account-inherited restrictions, space permissions, or even product access. For more information, see [Confluence\n * permissions](https://confluence.atlassian.com/x/_AozKw).\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content.\n */\n async getContentRestrictionStatusForGroup<T = unknown>(\n parameters: Parameters.GetContentRestrictionStatusForGroup,\n callback?: never,\n ): Promise<T>;\n async getContentRestrictionStatusForGroup<T = unknown>(\n parameters: Parameters.GetContentRestrictionStatusForGroup,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: `/api/content/${parameters.id}/restriction/byOperation/${parameters.operationKey}/group/${parameters.groupName}`,\n method: 'GET',\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Adds a group to a content restriction. That is, grant read or update permission to the group for a piece of\n * content.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the content.\n */\n async addGroupToContentRestriction<T = unknown>(\n parameters: Parameters.AddGroupToContentRestriction,\n callback: Callback<T>,\n ): Promise<void>;\n /**\n * Adds a group to a content restriction. That is, grant read or update permission to the group for a piece of\n * content.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the content.\n */\n async addGroupToContentRestriction<T = unknown>(\n parameters: Parameters.AddGroupToContentRestriction,\n callback?: never,\n ): Promise<T>;\n async addGroupToContentRestriction<T = unknown>(\n parameters: Parameters.AddGroupToContentRestriction,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: `/api/content/${parameters.id}/restriction/byOperation/${parameters.operationKey}/group/${parameters.groupName}`,\n method: 'PUT',\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Removes a group from a content restriction. That is, remove read or update permission for the group for a piece of\n * content.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the content.\n */\n async removeGroupByName<T = unknown>(parameters: Parameters.RemoveGroupByName, callback: Callback<T>): Promise<void>;\n /**\n * Removes a group from a content restriction. That is, remove read or update permission for the group for a piece of\n * content.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the content.\n */\n async removeGroupByName<T = unknown>(parameters: Parameters.RemoveGroupByName, callback?: never): Promise<T>;\n async removeGroupByName<T = unknown>(\n parameters: Parameters.RemoveGroupByName,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: `/api/content/${parameters.id}/restriction/byOperation/${parameters.operationKey}/group/${parameters.groupName}`,\n method: 'DELETE',\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Returns whether the specified content restriction applies to a group. For example, if a page with `id=123` has a\n * `read` restriction for the `123456` group id, the following request will return `true`:\n *\n * `https://your-domain.atlassian.net/wiki/rest/api/content/123/restriction/byOperation/read/byGroupId/123456`\n *\n * Note that a response of `true` does not guarantee that the group can view the page, as it does not account for\n * account-inherited restrictions, space permissions, or even product access. For more information, see [Confluence\n * permissions](https://confluence.atlassian.com/x/_AozKw).\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content.\n */\n async getIndividualGroupRestrictionStatusByGroupId<T = unknown>(\n parameters: Parameters.GetIndividualGroupRestrictionStatusByGroupId,\n callback: Callback<T>,\n ): Promise<void>;\n /**\n * Returns whether the specified content restriction applies to a group. For example, if a page with `id=123` has a\n * `read` restriction for the `123456` group id, the following request will return `true`:\n *\n * `https://your-domain.atlassian.net/wiki/rest/api/content/123/restriction/byOperation/read/byGroupId/123456`\n *\n * Note that a response of `true` does not guarantee that the group can view the page, as it does not account for\n * account-inherited restrictions, space permissions, or even product access. For more information, see [Confluence\n * permissions](https://confluence.atlassian.com/x/_AozKw).\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content.\n */\n async getIndividualGroupRestrictionStatusByGroupId<T = unknown>(\n parameters: Parameters.GetIndividualGroupRestrictionStatusByGroupId,\n callback?: never,\n ): Promise<T>;\n async getIndividualGroupRestrictionStatusByGroupId<T = unknown>(\n parameters: Parameters.GetIndividualGroupRestrictionStatusByGroupId,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: `/api/content/${parameters.id}/restriction/byOperation/${parameters.operationKey}/byGroupId/${parameters.groupId}`,\n method: 'GET',\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Adds a group to a content restriction by Group Id. That is, grant read or update permission to the group for a\n * piece of content.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the content.\n */\n async addGroupToContentRestrictionByGroupId<T = unknown>(\n parameters: Parameters.AddGroupToContentRestrictionByGroupId,\n callback: Callback<T>,\n ): Promise<void>;\n /**\n * Adds a group to a content restriction by Group Id. That is, grant read or update permission to the group for a\n * piece of content.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the content.\n */\n async addGroupToContentRestrictionByGroupId<T = unknown>(\n parameters: Parameters.AddGroupToContentRestrictionByGroupId,\n callback?: never,\n ): Promise<T>;\n async addGroupToContentRestrictionByGroupId<T = unknown>(\n parameters: Parameters.AddGroupToContentRestrictionByGroupId,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: `/api/content/${parameters.id}/restriction/byOperation/${parameters.operationKey}/byGroupId/${parameters.groupId}`,\n method: 'PUT',\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Removes a group from a content restriction. That is, remove read or update permission for the group for a piece of\n * content.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the content.\n */\n async removeGroupById<T = unknown>(parameters: Parameters.RemoveGroupById, callback: Callback<T>): Promise<void>;\n /**\n * Removes a group from a content restriction. That is, remove read or update permission for the group for a piece of\n * content.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the content.\n */\n async removeGroupById<T = unknown>(parameters: Parameters.RemoveGroupById, callback?: never): Promise<T>;\n async removeGroupById<T = unknown>(\n parameters: Parameters.RemoveGroupById,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: `/api/content/${parameters.id}/restriction/byOperation/${parameters.operationKey}/byGroupId/${parameters.groupId}`,\n method: 'DELETE',\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Returns whether the specified content restriction applies to a user. For example, if a page with `id=123` has a\n * `read` restriction for a user with an account ID of `384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192`, the following\n * request will return `true`:\n *\n * `https://your-domain.atlassian.net/wiki/rest/api/content/123/restriction/byOperation/read/user?accountId=384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192`\n *\n * Note that a response of `true` does not guarantee that the user can view the page, as it does not account for\n * account-inherited restrictions, space permissions, or even product access. For more information, see [Confluence\n * permissions](https://confluence.atlassian.com/x/_AozKw).\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content.\n */\n async getContentRestrictionStatusForUser<T = unknown>(\n parameters: Parameters.GetContentRestrictionStatusForUser,\n callback: Callback<T>,\n ): Promise<void>;\n /**\n * Returns whether the specified content restriction applies to a user. For example, if a page with `id=123` has a\n * `read` restriction for a user with an account ID of `384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192`, the following\n * request will return `true`:\n *\n * `https://your-domain.atlassian.net/wiki/rest/api/content/123/restriction/byOperation/read/user?accountId=384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192`\n *\n * Note that a response of `true` does not guarantee that the user can view the page, as it does not account for\n * account-inherited restrictions, space permissions, or even product access. For more information, see [Confluence\n * permissions](https://confluence.atlassian.com/x/_AozKw).\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content.\n */\n async getContentRestrictionStatusForUser<T = unknown>(\n parameters: Parameters.GetContentRestrictionStatusForUser,\n callback?: never,\n ): Promise<T>;\n async getContentRestrictionStatusForUser<T = unknown>(\n parameters: Parameters.GetContentRestrictionStatusForUser,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: `/api/content/${parameters.id}/restriction/byOperation/${parameters.operationKey}/user`,\n method: 'GET',\n params: {\n key: parameters.key,\n userName: parameters.userName,\n accountId: parameters.accountId,\n },\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Adds a user to a content restriction. That is, grant read or update permission to the user for a piece of content.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the content.\n */\n async addUserToContentRestriction<T = unknown>(\n parameters: Parameters.AddUserToContentRestriction,\n callback: Callback<T>,\n ): Promise<void>;\n /**\n * Adds a user to a content restriction. That is, grant read or update permission to the user for a piece of content.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the content.\n */\n async addUserToContentRestriction<T = unknown>(\n parameters: Parameters.AddUserToContentRestriction,\n callback?: never,\n ): Promise<T>;\n async addUserToContentRestriction<T = unknown>(\n parameters: Parameters.AddUserToContentRestriction,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: `/api/content/${parameters.id}/restriction/byOperation/${parameters.operationKey}/user`,\n method: 'PUT',\n params: {\n key: parameters.key,\n userName: parameters.userName,\n accountId: parameters.accountId,\n },\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Removes a group from a content restriction. That is, remove read or update permission for the group for a piece of\n * content.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the content.\n */\n async removeUserFromContentRestriction<T = unknown>(\n parameters: Parameters.RemoveUserFromContentRestriction,\n callback: Callback<T>,\n ): Promise<void>;\n /**\n * Removes a group from a content restriction. That is, remove read or update permission for the group for a piece of\n * content.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the content.\n */\n async removeUserFromContentRestriction<T = unknown>(\n parameters: Parameters.RemoveUserFromContentRestriction,\n callback?: never,\n ): Promise<T>;\n async removeUserFromContentRestriction<T = unknown>(\n parameters: Parameters.RemoveUserFromContentRestriction,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: `/api/content/${parameters.id}/restriction/byOperation/${parameters.operationKey}/user`,\n method: 'DELETE',\n params: {\n key: parameters.key,\n userName: parameters.userName,\n accountId: parameters.accountId,\n },\n };\n\n return this.client.sendRequest(config, callback);\n }\n}\n"],"names":[],"mappings":"MAMa,mBAAmB,CAAA;AACV,IAAA,MAAA;AAApB,IAAA,WAAA,CAAoB,MAAc,EAAA;QAAd,IAAM,CAAA,MAAA,GAAN,MAAM;;AAoB1B,IAAA,MAAM,eAAe,CACnB,UAAsC,EACtC,QAAsB,EAAA;AAEtB,QAAA,MAAM,MAAM,GAAkB;AAC5B,YAAA,GAAG,EAAE,CAAA,aAAA,EAAgB,UAAU,CAAC,EAAE,CAAc,YAAA,CAAA;AAChD,YAAA,MAAM,EAAE,KAAK;AACb,YAAA,MAAM,EAAE;gBACN,MAAM,EAAE,UAAU,CAAC,MAAM;gBACzB,KAAK,EAAE,UAAU,CAAC,KAAK;gBACvB,KAAK,EAAE,UAAU,CAAC,KAAK;AACxB,aAAA;SACF;QAED,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC;;AAqBlD,IAAA,MAAM,eAAe,CACnB,UAAsC,EACtC,QAAsB,EAAA;AAEtB,QAAA,MAAM,MAAM,GAAkB;AAC5B,YAAA,GAAG,EAAE,CAAA,aAAA,EAAgB,UAAU,CAAC,EAAE,CAAc,YAAA,CAAA;AAChD,YAAA,MAAM,EAAE,MAAM;AACd,YAAA,MAAM,EAAE;gBACN,MAAM,EAAE,UAAU,CAAC,MAAM;AAC1B,aAAA;YACD,IAAI,EAAE,UAAU,CAAC,IAAI;SACtB;QAED,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC;;AAuBlD,IAAA,MAAM,kBAAkB,CACtB,UAAyC,EACzC,QAAsB,EAAA;AAEtB,QAAA,MAAM,MAAM,GAAkB;AAC5B,YAAA,GAAG,EAAE,CAAA,aAA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+0,0 @@
|
|
|
1
|
-
{"version":3,"file":"contentStates.js","sources":["../../../../src/api/contentStates.ts"],"sourcesContent":["import type * as Models from './models';\nimport type * as Parameters from './parameters';\nimport type { Callback } from '../callback';\nimport type { Client } from '../clients';\nimport type { RequestConfig } from '../requestConfig';\n\nexport class ContentStates {\n constructor(private client: Client) {}\n\n /**\n * Gets the current content state of the draft or current version of content. To specify the draft version, set the\n * parameter status to draft, otherwise archived or current will get the relevant published state.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content.\n */\n async getContentState<T = Models.ContentStateResponse>(\n parameters: Parameters.GetContentState,\n callback: Callback<T>,\n ): Promise<void>;\n /**\n * Gets the current content state of the draft or current version of content. To specify the draft version, set the\n * parameter status to draft, otherwise archived or current will get the relevant published state.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content.\n */\n async getContentState<T = Models.ContentStateResponse>(\n parameters: Parameters.GetContentState,\n callback?: never,\n ): Promise<T>;\n async getContentState<T = Models.ContentStateResponse>(\n parameters: Parameters.GetContentState,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: `/api/content/${parameters.id}/state`,\n method: 'GET',\n params: {\n status: parameters.status,\n },\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Sets the content state of the content specified and creates a new version (publishes the content without changing\n * the body) of the content with the new state.\n *\n * You may pass in either an id of a state, or the name and color of a desired new state. If all 3 are passed in, id\n * will be used. If the name and color passed in already exist under the current user's existing custom states, the\n * existing state will be reused. If custom states are disabled in the space of the content (which can be determined\n * by getting the content state space settings of the content's space) then this set will fail.\n *\n * You may not remove a content state via this PUT request. You must use the DELETE method. A specified state is\n * required in the body of this request.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the content.\n */\n async setContentState<T = Models.ContentStateResponse>(\n parameters: Parameters.SetContentState,\n callback: Callback<T>,\n ): Promise<void>;\n /**\n * Sets the content state of the content specified and creates a new version (publishes the content without changing\n * the body) of the content with the new state.\n *\n * You may pass in either an id of a state, or the name and color of a desired new state. If all 3 are passed in, id\n * will be used. If the name and color passed in already exist under the current user's existing custom states, the\n * existing state will be reused. If custom states are disabled in the space of the content (which can be determined\n * by getting the content state space settings of the content's space) then this set will fail.\n *\n * You may not remove a content state via this PUT request. You must use the DELETE method. A specified state is\n * required in the body of this request.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the content.\n */\n async setContentState<T = Models.ContentStateResponse>(\n parameters: Parameters.SetContentState,\n callback?: never,\n ): Promise<T>;\n async setContentState<T = Models.ContentStateResponse>(\n parameters: Parameters.SetContentState,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: `/api/content/${parameters.id}/state`,\n method: 'PUT',\n params: {\n status: parameters.status,\n },\n data: {\n name: parameters.name,\n color: parameters.color,\n id: parameters.stateId,\n },\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Removes the content state of the content specified and creates a new version (publishes the content without\n * changing the body) of the content with the new status.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the content.\n */\n async removeContentState<T = Models.ContentStateResponse>(\n parameters: Parameters.RemoveContentState,\n callback: Callback<T>,\n ): Promise<void>;\n /**\n * Removes the content state of the content specified and creates a new version (publishes the content without\n * changing the body) of the content with the new status.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the content.\n */\n async removeContentState<T = Models.ContentStateResponse>(\n parameters: Parameters.RemoveContentState,\n callback?: never,\n ): Promise<T>;\n async removeContentState<T = Models.ContentStateResponse>(\n parameters: Parameters.RemoveContentState,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: `/api/content/${parameters.id}/state`,\n method: 'DELETE',\n params: {\n status: parameters.status,\n },\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Gets content states that are available for the content to be set as. Will return all enabled Space Content States.\n * Will only return most the 3 most recently published custom content states to match UI editor list. To get all\n * custom content states, use the /content-states endpoint.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the content.\n */\n async getAvailableContentStates<T = Models.AvailableContentStates>(\n parameters: Parameters.GetAvailableContentStates,\n callback: Callback<T>,\n ): Promise<void>;\n /**\n * Gets content states that are available for the content to be set as. Will return all enabled Space Content States.\n * Will only return most the 3 most recently published custom content states to match UI editor list. To get all\n * custom content states, use the /content-states endpoint.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to edit the content.\n */\n async getAvailableContentStates<T = Models.AvailableContentStates>(\n parameters: Parameters.GetAvailableContentStates,\n callback?: never,\n ): Promise<T>;\n async getAvailableContentStates<T = Models.AvailableContentStates>(\n parameters: Parameters.GetAvailableContentStates,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: `/api/content/${parameters.id}/state/available`,\n method: 'GET',\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Get custom content states that authenticated user has created.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required** Must have user authentication.\n */\n async getCustomContentStates<T = Models.ContentState[]>(callback: Callback<T>): Promise<void>;\n /**\n * Get custom content states that authenticated user has created.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required** Must have user authentication.\n */\n async getCustomContentStates<T = Models.ContentState[]>(callback?: never): Promise<T>;\n async getCustomContentStates<T = Models.ContentState[]>(callback?: Callback<T>): Promise<void | T> {\n const config: RequestConfig = {\n url: '/api/content-states',\n method: 'GET',\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Get content states that are suggested in the space.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Space view permission\n */\n async getSpaceContentStates<T = Models.ContentState[]>(\n parameters: Parameters.GetSpaceContentStates,\n callback: Callback<T>,\n ): Promise<void>;\n /**\n * Get content states that are suggested in the space.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Space view permission\n */\n async getSpaceContentStates<T = Models.ContentState[]>(\n parameters: Parameters.GetSpaceContentStates,\n callback?: never,\n ): Promise<T>;\n async getSpaceContentStates<T = Models.ContentState[]>(\n parameters: Parameters.GetSpaceContentStates,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: `/api/space/${parameters.spaceKey}/state`,\n method: 'GET',\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Get object describing whether content states are allowed at all, if custom content states or space content states\n * are restricted, and a list of space content states allowed for the space if they are not restricted.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Space admin permission\n */\n async getContentStateSettings<T = Models.ContentStateSettings>(\n parameters: Parameters.GetContentStateSettings,\n callback: Callback<T>,\n ): Promise<void>;\n /**\n * Get object describing whether content states are allowed at all, if custom content states or space content states\n * are restricted, and a list of space content states allowed for the space if they are not restricted.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Space admin permission\n */\n async getContentStateSettings<T = Models.ContentStateSettings>(\n parameters: Parameters.GetContentStateSettings,\n callback?: never,\n ): Promise<T>;\n async getContentStateSettings<T = Models.ContentStateSettings>(\n parameters: Parameters.GetContentStateSettings,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: `/api/space/${parameters.spaceKey}/state/settings`,\n method: 'GET',\n };\n\n return this.client.sendRequest(config, callback);\n }\n}\n"],"names":[],"mappings":"MAMa,aAAa,CAAA;AACJ,IAAA,MAAA;AAApB,IAAA,WAAA,CAAoB,MAAc,EAAA;QAAd,IAAM,CAAA,MAAA,GAAN,MAAM;;AAsB1B,IAAA,MAAM,eAAe,CACnB,UAAsC,EACtC,QAAsB,EAAA;AAEtB,QAAA,MAAM,MAAM,GAAkB;AAC5B,YAAA,GAAG,EAAE,CAAA,aAAA,EAAgB,UAAU,CAAC,EAAE,CAAQ,MAAA,CAAA;AAC1C,YAAA,MAAM,EAAE,KAAK;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O,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC;;IAelD,MAAM,sBAAsB,CAA4B,QAAsB,EAAA;AAC5E,QAAA,MAAM,MAAM,GAAkB;AAC5B,YAAA,GAAG,EAAE,qBAAqB;AAC1B,YAAA,MAAM,EAAE,KAAK;SACd;QAED,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC;;AAqBlD,IAAA,MAAM,qBAAqB,CACzB,UAA4C,EAC5C,QAAsB,EAAA;AAEtB,QAAA,MAAM,MAAM,GAAkB;AAC5B,YAAA,GAAG,EAAE,CAAA,WAAA,EAAc,UAAU,CAAC,QAAQ,CAAQ,MAAA,CAAA;AAC9C,YAAA,MAAM,EAAE,KAAK;SACd;QAED,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC;;AAuBlD,IAAA,MAAM,uBAAuB,CAC3B,UAA8C,EAC9C,QAAsB,EAAA;AAEtB,QAAA,MAAM,MAAM,GAAkB;AAC5B,YAAA,GAAG,EAAE,CAAA,WAAA,EAAc,UAAU,CAAC,QAAQ,CAAiB,eAAA,CAAA;AACvD,YAAA,MAAM,EAAE,KAAK;SACd;QAED,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC;;AAEnD;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"contentVersions.js","sources":["../../../../src/api/contentVersions.ts"],"sourcesContent":["import type * as Models from './models';\nimport type * as Parameters from './parameters';\nimport type { Callback } from '../callback';\nimport type { Client } from '../clients';\nimport type { RequestConfig } from '../requestConfig';\n\nexport class ContentVersions {\n constructor(private client: Client) {}\n\n /**\n * Returns the versions for a piece of content in descending order.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content. If the\n * content is a blog post, 'View' permission for the space is required.\n */\n async getContentVersions<T = Models.VersionArray>(\n parameters: Parameters.GetContentVersions,\n callback: Callback<T>,\n ): Promise<void>;\n /**\n * Returns the versions for a piece of content in descending order.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content. If the\n * content is a blog post, 'View' permission for the space is required.\n */\n async getContentVersions<T = Models.VersionArray>(\n parameters: Parameters.GetContentVersions,\n callback?: never,\n ): Promise<T>;\n async getContentVersions<T = Models.VersionArray>(\n parameters: Parameters.GetContentVersions,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: `/api/content/${parameters.id}/version`,\n method: 'GET',\n params: {\n start: parameters.start,\n limit: parameters.limit,\n expand: parameters.expand,\n },\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Restores a historical version to be the latest version. That is, a new version is created with the content of the\n * historical version.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to update the content.\n */\n async restoreContentVersion<T = Models.Version>(\n parameters: Parameters.RestoreContentVersion,\n callback: Callback<T>,\n ): Promise<void>;\n /**\n * Restores a historical version to be the latest version. That is, a new version is created with the content of the\n * historical version.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to update the content.\n */\n async restoreContentVersion<T = Models.Version>(\n parameters: Parameters.RestoreContentVersion,\n callback?: never,\n ): Promise<T>;\n async restoreContentVersion<T = Models.Version>(\n parameters: Parameters.RestoreContentVersion,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: `/api/content/${parameters.id}/version`,\n method: 'POST',\n params: {\n expand: parameters.expand,\n },\n data: {\n operationKey: parameters.operationKey,\n params: parameters.params,\n },\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Returns a version for a piece of content.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content. If the\n * content is a blog post, 'View' permission for the space is required.\n */\n async getContentVersion<T = Models.Version>(\n parameters: Parameters.GetContentVersion,\n callback: Callback<T>,\n ): Promise<void>;\n /**\n * Returns a version for a piece of content.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content. If the\n * content is a blog post, 'View' permission for the space is required.\n */\n async getContentVersion<T = Models.Version>(parameters: Parameters.GetContentVersion, callback?: never): Promise<T>;\n async getContentVersion<T = Models.Version>(\n parameters: Parameters.GetContentVersion,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: `/api/content/${parameters.id}/version/${parameters.versionNumber}`,\n method: 'GET',\n params: {\n expand: parameters.expand,\n },\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Delete a historical version. This does not delete the changes made to the content in that version, rather the\n * changes for the deleted version are rolled up into the next version. Note, you cannot delete the current version.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to update the content.\n */\n async deleteContentVersion<T = void>(\n parameters: Parameters.DeleteContentVersion,\n callback: Callback<T>,\n ): Promise<void>;\n /**\n * Delete a historical version. This does not delete the changes made to the content in that version, rather the\n * changes for the deleted version are rolled up into the next version. Note, you cannot delete the current version.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to update the content.\n */\n async deleteContentVersion<T = void>(parameters: Parameters.DeleteContentVersion, callback?: never): Promise<T>;\n async deleteContentVersion<T = void>(\n parameters: Parameters.DeleteContentVersion,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: `/api/content/${parameters.id}/version/${parameters.versionNumber}`,\n method: 'DELETE',\n };\n\n return this.client.sendRequest(config, callback);\n }\n}\n"],"names":[],"mappings":"MAMa,eAAe,CAAA;AACN,IAAA,MAAA;AAApB,IAAA,WAAA,CAAoB,MAAc,EAAA;QAAd,IAAM,CAAA,MAAA,GAAN,MAAM;;AAsB1B,IAAA,MAAM,kBAAkB,CACtB,UAAyC,EACzC,QAAsB,EAAA;AAEtB,QAAA,MAAM,MAAM,GAAkB;AAC5B,YAAA,GAAG,EAAE,CAAA,aAAA,EA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5B,GAAG,EAAE,gBAAgB,UAAU,CAAC,EAAE,CAAY,SAAA,EAAA,UAAU,CAAC,aAAa,CAAE,CAAA;AACxE,YAAA,MAAM,EAAE,QAAQ;SACjB;QAED,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC;;AAEnD;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"contentWatches.js","sources":["../../../../src/api/contentWatches.ts"],"sourcesContent":["import type * as Models from './models';\nimport type * as Parameters from './parameters';\nimport type { Callback } from '../callback';\nimport type { Client } from '../clients';\nimport type { RequestConfig } from '../requestConfig';\n\nexport class ContentWatches {\n constructor(private client: Client) {}\n\n /**\n * Returns the watches for a page. A user that watches a page will receive receive notifications when the page is\n * updated.\n *\n * If you want to manage watches for a page, use the following `user` methods:\n *\n * - [Get content watch status for user](#api-user-watch-content-contentId-get)\n * - [Add content watch](#api-user-watch-content-contentId-post)\n * - [Remove content watch](#api-user-watch-content-contentId-delete)\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site\n * ('Can use' global permission).\n */\n async getWatchesForPage<T = Models.WatchArray>(\n parameters: Parameters.GetWatchesForPage,\n callback: Callback<T>,\n ): Promise<void>;\n /**\n * Returns the watches for a page. A user that watches a page will receive receive notifications when the page is\n * updated.\n *\n * If you want to manage watches for a page, use the following `user` methods:\n *\n * - [Get content watch status for user](#api-user-watch-content-contentId-get)\n * - [Add content watch](#api-user-watch-content-contentId-post)\n * - [Remove content watch](#api-user-watch-content-contentId-delete)\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site\n * ('Can use' global permission).\n */\n async getWatchesForPage<T = Models.WatchArray>(\n parameters: Parameters.GetWatchesForPage,\n callback?: never,\n ): Promise<T>;\n async getWatchesForPage<T = Models.WatchArray>(\n parameters: Parameters.GetWatchesForPage,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: `/api/content/${parameters.id}/notification/child-created`,\n method: 'GET',\n params: {\n start: parameters.start,\n limit: parameters.limit,\n },\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Returns all space watches for the space that the content is in. A user that watches a space will receive receive\n * notifications when any content in the space is updated.\n *\n * If you want to manage watches for a space, use the following `user` methods:\n *\n * - [Get space watch status for user](#api-user-watch-space-spaceKey-get)\n * - [Add space watch](#api-user-watch-space-spaceKey-post)\n * - [Remove space watch](#api-user-watch-space-spaceKey-delete)\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site\n * ('Can use' global permission).\n */\n async getWatchesForSpace<T = Models.SpaceWatchArray>(\n parameters: Parameters.GetWatchesForSpace,\n callback: Callback<T>,\n ): Promise<void>;\n /**\n * Returns all space watches for the space that the content is in. A user that watches a space will receive receive\n * notifications when any content in the space is updated.\n *\n * If you want to manage watches for a space, use the following `user` methods:\n *\n * - [Get space watch status for user](#api-user-watch-space-spaceKey-get)\n * - [Add space watch](#api-user-watch-space-spaceKey-post)\n * - [Remove space watch](#api-user-watch-space-spaceKey-delete)\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site\n * ('Can use' global permission).\n */\n async getWatchesForSpace<T = Models.SpaceWatchArray>(\n parameters: Parameters.GetWatchesForSpace,\n callback?: never,\n ): Promise<T>;\n async getWatchesForSpace<T = Models.SpaceWatchArray>(\n parameters: Parameters.GetWatchesForSpace,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: `/api/content/${parameters.id}/notification/created`,\n method: 'GET',\n params: {\n start: parameters.start,\n limit: parameters.limit,\n },\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /** Returns a list of watchers of a space */\n async getWatchersForSpace<T = Models.SpaceWatchArray>(\n parameters: Parameters.GetWatchersForSpace,\n callback: Callback<T>,\n ): Promise<void>;\n /** Returns a list of watchers of a space */\n async getWatchersForSpace<T = Models.SpaceWatchArray>(\n parameters: Parameters.GetWatchersForSpace,\n callback?: never,\n ): Promise<T>;\n async getWatchersForSpace<T = Models.SpaceWatchArray>(\n parameters: Parameters.GetWatchersForSpace,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: `/api/space/${parameters.spaceKey}/watch`,\n method: 'GET',\n params: {\n start: parameters.start,\n limit: parameters.limit,\n },\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Returns whether a user is watching a piece of content. Choose the user by doing one of the following:\n *\n * - Specify a user via a query parameter: Use the `accountId` to identify the user.\n * - Do not specify a user: The currently logged-in user will be used.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Confluence Administrator' global permission\n * if specifying a user, otherwise permission to access the Confluence site ('Can use' global permission).\n */\n async getContentWatchStatus<T = Models.UserWatch>(\n parameters: Parameters.GetContentWatchStatus,\n callback: Callback<T>,\n ): Promise<void>;\n /**\n * Returns whether a user is watching a piece of content. Choose the user by doing one of the following:\n *\n * - Specify a user via a query parameter: Use the `accountId` to identify the user.\n * - Do not specify a user: The currently logged-in user will be used.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Confluence Administrator' global permission\n * if specifying a user, otherwise permission to access the Confluence site ('Can use' global permission).\n */\n async getContentWatchStatus<T = Models.UserWatch>(\n parameters: Parameters.GetContentWatchStatus,\n callback?: never,\n ): Promise<T>;\n async getContentWatchStatus<T = Models.UserWatch>(\n parameters: Parameters.GetContentWatchStatus,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: `/api/user/watch/content/${parameters.contentId}`,\n method: 'GET',\n params: {\n key: parameters.key,\n username: parameters.username,\n accountId: parameters.accountId,\n },\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Adds a user as a watcher to a piece of content. Choose the user by doing one of the following:\n *\n * - Specify a user via a query parameter: Use the `accountId` to identify the user.\n * - Do not specify a user: The currently logged-in user will be used.\n *\n * Note, you must add the `X-Atlassian-Token: no-check` header when making a request, as this operation has XSRF\n * protection.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Confluence Administrator' global permission\n * if specifying a user, otherwise permission to access the Confluence site ('Can use' global permission).\n */\n async addContentWatcher<T = void>(parameters: Parameters.AddContentWatcher, callback: Callback<T>): Promise<void>;\n /**\n * Adds a user as a watcher to a piece of content. Choose the user by doing one of the following:\n *\n * - Specify a user via a query parameter: Use the `accountId` to identify the user.\n * - Do not specify a user: The currently logged-in user will be used.\n *\n * Note, you must add the `X-Atlassian-Token: no-check` header when making a request, as this operation has XSRF\n * protection.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Confluence Administrator' global permission\n * if specifying a user, otherwise permission to access the Confluence site ('Can use' global permission).\n */\n async addContentWatcher<T = void>(parameters: Parameters.AddContentWatcher, callback?: never): Promise<T>;\n async addContentWatcher<T = void>(\n parameters: Parameters.AddContentWatcher,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: `/api/user/watch/content/${parameters.contentId}`,\n method: 'POST',\n params: {\n key: parameters.key,\n username: parameters.username,\n accountId: parameters.accountId,\n },\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Removes a user as a watcher from a piece of content. Choose the user by doing one of the following:\n *\n * - Specify a user via a query parameter: Use the `accountId` to identify the user.\n * - Do not specify a user: The currently logged-in user will be used.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Confluence Administrator' global permission\n * if specifying a user, otherwise permission to access the Confluence site ('Can use' global permission).\n */\n async removeContentWatcher<T = void>(\n parameters: Parameters.RemoveContentWatcher,\n callback: Callback<T>,\n ): Promise<void>;\n /**\n * Removes a user as a watcher from a piece of content. Choose the user by doing one of the following:\n *\n * - Specify a user via a query parameter: Use the `accountId` to identify the user.\n * - Do not specify a user: The currently logged-in user will be used.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Confluence Administrator' global permission\n * if specifying a user, otherwise permission to access the Confluence site ('Can use' global permission).\n */\n async removeContentWatcher<T = void>(parameters: Parameters.RemoveContentWatcher, callback?: never): Promise<T>;\n async removeContentWatcher<T = void>(\n parameters: Parameters.RemoveContentWatcher,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: `/api/user/watch/content/${parameters.contentId}`,\n method: 'DELETE',\n headers: {\n 'X-Atlassian-Token': parameters['X-Atlassian-Token'],\n },\n params: {\n key: parameters.key,\n username: parameters.username,\n accountId: parameters.accountId,\n },\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Returns whether a user is watching a label. Choose the user by doing one of the following:\n *\n * - Specify a user via a query parameter: Use the `accountId` to identify the user.\n * - Do not specify a user: The currently logged-in user will be used.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Confluence Administrator' global permission\n * if specifying a user, otherwise permission to access the Confluence site ('Can use' global permission).\n */\n async isWatchingLabel<T = Models.UserWatch>(\n parameters: Parameters.IsWatchingLabel,\n callback: Callback<T>,\n ): Promise<void>;\n /**\n * Returns whether a user is watching a label. Choose the user by doing one of the following:\n *\n * - Specify a user via a query parameter: Use the `accountId` to identify the user.\n * - Do not specify a user: The currently logged-in user will be used.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Confluence Administrator' global permission\n * if specifying a user, otherwise permission to access the Confluence site ('Can use' global permission).\n */\n async isWatchingLabel<T = Models.UserWatch>(parameters: Parameters.IsWatchingLabel, callback?: never): Promise<T>;\n async isWatchingLabel<T = Models.UserWatch>(\n parameters: Parameters.IsWatchingLabel,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: `/api/user/watch/label/${parameters.labelName}`,\n method: 'GET',\n params: {\n key: parameters.key,\n username: parameters.username,\n accountId: parameters.accountId,\n },\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Adds a user as a watcher to a label. Choose the user by doing one of the following:\n *\n * - Specify a user via a query parameter: Use the `accountId` to identify the user.\n * - Do not specify a user: The currently logged-in user will be used.\n *\n * Note, you must add the `X-Atlassian-Token: no-check` header when making a request, as this operation has XSRF\n * protection.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Confluence Administrator' global permission\n * if specifying a user, otherwise permission to access the Confluence site ('Can use' global permission).\n */\n async addLabelWatcher<T = void>(parameters: Parameters.AddLabelWatcher, callback: Callback<T>): Promise<void>;\n /**\n * Adds a user as a watcher to a label. Choose the user by doing one of the following:\n *\n * - Specify a user via a query parameter: Use the `accountId` to identify the user.\n * - Do not specify a user: The currently logged-in user will be used.\n *\n * Note, you must add the `X-Atlassian-Token: no-check` header when making a request, as this operation has XSRF\n * protection.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Confluence Administrator' global permission\n * if specifying a user, otherwise permission to access the Confluence site ('Can use' global permission).\n */\n async addLabelWatcher<T = void>(parameters: Parameters.AddLabelWatcher, callback?: never): Promise<T>;\n async addLabelWatcher<T = void>(parameters: Parameters.AddLabelWatcher, callback?: Callback<T>): Promise<void | T> {\n const config: RequestConfig = {\n url: `/api/user/watch/label/${parameters.labelName}`,\n method: 'POST',\n headers: {\n 'X-Atlassian-Token': parameters['X-Atlassian-Token'],\n },\n params: {\n key: parameters.key,\n username: parameters.username,\n accountId: parameters.accountId,\n },\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Removes a user as a watcher from a label. Choose the user by doing one of the following:\n *\n * - Specify a user via a query parameter: Use the `accountId` to identify the user.\n * - Do not specify a user: The currently logged-in user will be used.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Confluence Administrator' global permission\n * if specifying a user, otherwise permission to access the Confluence site ('Can use' global permission).\n */\n async removeLabelWatcher<T = void>(parameters: Parameters.RemoveLabelWatcher, callback: Callback<T>): Promise<void>;\n /**\n * Removes a user as a watcher from a label. Choose the user by doing one of the following:\n *\n * - Specify a user via a query parameter: Use the `accountId` to identify the user.\n * - Do not specify a user: The currently logged-in user will be used.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Confluence Administrator' global permission\n * if specifying a user, otherwise permission to access the Confluence site ('Can use' global permission).\n */\n async removeLabelWatcher<T = void>(parameters: Parameters.RemoveLabelWatcher, callback?: never): Promise<T>;\n async removeLabelWatcher<T = void>(\n parameters: Parameters.RemoveLabelWatcher,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: `/api/user/watch/label/${parameters.labelName}`,\n method: 'DELETE',\n params: {\n key: parameters.key,\n username: parameters.username,\n accountId: parameters.accountId,\n },\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Returns whether a user is watching a space. Choose the user by doing one of the following:\n *\n * - Specify a user via a query parameter: Use the `accountId` to identify the user.\n * - Do not specify a user: The currently logged-in user will be used.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Confluence Administrator' global permission\n * if specifying a user, otherwise permission to access the Confluence site ('Can use' global permission).\n */\n async isWatchingSpace<T = Models.UserWatch>(\n parameters: Parameters.IsWatchingSpace,\n callback: Callback<T>,\n ): Promise<void>;\n /**\n * Returns whether a user is watching a space. Choose the user by doing one of the following:\n *\n * - Specify a user via a query parameter: Use the `accountId` to identify the user.\n * - Do not specify a user: The currently logged-in user will be used.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Confluence Administrator' global permission\n * if specifying a user, otherwise permission to access the Confluence site ('Can use' global permission).\n */\n async isWatchingSpace<T = Models.UserWatch>(parameters: Parameters.IsWatchingSpace, callback?: never): Promise<T>;\n async isWatchingSpace<T = Models.UserWatch>(\n parameters: Parameters.IsWatchingSpace,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: `/api/user/watch/space/${parameters.spaceKey}`,\n method: 'GET',\n params: {\n key: parameters.key,\n username: parameters.username,\n accountId: parameters.accountId,\n },\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Adds a user as a watcher to a space. Choose the user by doing one of the following:\n *\n * - Specify a user via a query parameter: Use the `accountId` to identify the user.\n * - Do not specify a user: The currently logged-in user will be used.\n *\n * Note, you must add the `X-Atlassian-Token: no-check` header when making a request, as this operation has XSRF\n * protection.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Confluence Administrator' global permission\n * if specifying a user, otherwise permission to access the Confluence site ('Can use' global permission).\n */\n async addSpaceWatcher<T = void>(parameters: Parameters.AddSpaceWatcher, callback: Callback<T>): Promise<void>;\n /**\n * Adds a user as a watcher to a space. Choose the user by doing one of the following:\n *\n * - Specify a user via a query parameter: Use the `accountId` to identify the user.\n * - Do not specify a user: The currently logged-in user will be used.\n *\n * Note, you must add the `X-Atlassian-Token: no-check` header when making a request, as this operation has XSRF\n * protection.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Confluence Administrator' global permission\n * if specifying a user, otherwise permission to access the Confluence site ('Can use' global permission).\n */\n async addSpaceWatcher<T = void>(parameters: Parameters.AddSpaceWatcher, callback?: never): Promise<T>;\n async addSpaceWatcher<T = void>(parameters: Parameters.AddSpaceWatcher, callback?: Callback<T>): Promise<void | T> {\n const config: RequestConfig = {\n url: `/api/user/watch/space/${parameters.spaceKey}`,\n method: 'POST',\n headers: {\n 'X-Atlassian-Token': parameters['X-Atlassian-Token'],\n },\n params: {\n key: parameters.key,\n username: parameters.username,\n accountId: parameters.accountId,\n },\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Removes a user as a watcher from a space. Choose the user by doing one of the following:\n *\n * - Specify a user via a query parameter: Use the `accountId` to identify the user.\n * - Do not specify a user: The currently logged-in user will be used.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Confluence Administrator' global permission\n * if specifying a user, otherwise permission to access the Confluence site ('Can use' global permission).\n */\n async removeSpaceWatch<T = void>(parameters: Parameters.RemoveSpaceWatch, callback: Callback<T>): Promise<void>;\n /**\n * Removes a user as a watcher from a space. Choose the user by doing one of the following:\n *\n * - Specify a user via a query parameter: Use the `accountId` to identify the user.\n * - Do not specify a user: The currently logged-in user will be used.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Confluence Administrator' global permission\n * if specifying a user, otherwise permission to access the Confluence site ('Can use' global permission).\n */\n async removeSpaceWatch<T = void>(parameters: Parameters.RemoveSpaceWatch, callback?: never): Promise<T>;\n async removeSpaceWatch<T = void>(parameters: Parameters.RemoveSpaceWatch, callback?: Callback<T>): Promise<void | T> {\n const config: RequestConfig = {\n url: `/api/user/watch/space/${parameters.spaceKey}`,\n method: 'DELETE',\n params: {\n key: parameters.key,\n username: parameters.username,\n accountId: parameters.accountId,\n },\n };\n\n return this.client.sendRequest(config, callback);\n }\n}\n"],"names":[],"mappings":"MAMa,cAAc,CAAA;AACL,IAAA,MAAA;AAApB,IAAA,WAAA,CAAoB,MAAc,EAAA;QAAd,IAAM,CAAA,MAAA,GAAN,MAAM;;AAoC1B,IAAA,MAAM,iBAAiB,CACrB,UAAwC,EACxC,QAAsB,EAAA;AAEtB,QAAA,MAAM,MAAM,GAAkB;AAC5B,YAAA,GAAG,EAAE,CAAA,aAAA,EAAgB,UAAU,CAAC,EAAE,CAA6B,2BAAA,CAAA;AAC/D,YAAA,MAAM,EAAE,KAAK;AACb,YAAA,MAAM,EAAE;gBACN,KAAK,EAAE,UAAU,CAAC,KAAK;gBACvB,KAAK,EAAE,UAAU,CAAC,KAAK;AACxB,aAAA;SACF;QAED,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC;;AAqClD,IAAA,MAAM,kBAAkB,CACtB,UAAyC,EACzC,QAAsB,EAAA;AAEtB,QAAA,MAAM,MAAM,GAAkB;AAC5B,YAAA,GAAG,EAAE,CAAA,aAAA,EAAgB,UAAU,CAAC,EAAE,CAAuB,qBAAA,CAAA;AACzD,YAAA,MAAM,EAAE,KAAK;A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AM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC;;AA6BlD,IAAA,MAAM,eAAe,CAAW,UAAsC,EAAE,QAAsB,EAAA;AAC5F,QAAA,MAAM,MAAM,GAAkB;AAC5B,YAAA,GAAG,EAAE,CAAA,sBAAA,EAAyB,UAAU,CAAC,QAAQ,CAAE,CAAA;AACnD,YAAA,MAAM,EAAE,MAAM;AACd,YAAA,OAAO,EAAE;AACP,gBAAA,mBAAmB,EAAE,UAAU,CAAC,mBAAmB,CAAC;AACrD,aAAA;AACD,YAAA,MAAM,EAAE;gBACN,GAAG,EAAE,UAAU,CAAC,GAAG;gBACnB,QAAQ,EAAE,UAAU,CAAC,QAAQ;gBAC7B,SAAS,EAAE,UAAU,CAAC,SAAS;AAChC,aAAA;SACF;QAED,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC;;AAuBlD,IAAA,MAAM,gBAAgB,CAAW,UAAuC,EAAE,QAAsB,EAAA;AAC9F,QAAA,MAAM,MAAM,GAAkB;AAC5B,YAAA,GAAG,EAAE,CAAA,sBAAA,EAAyB,UAAU,CAAC,QAAQ,CAAE,CAAA;AACnD,YAAA,MAAM,EAAE,QAAQ;AAChB,YAAA,MAAM,EAAE;gBACN,GAAG,EAAE,UAAU,CAAC,GAAG;gBACnB,QAAQ,EAAE,UAAU,CAAC,QAAQ;gBAC7B,SAAS,EAAE,UAAU,CAAC,SAAS;AAChC,aAAA;SACF;QAED,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC;;AAEnD;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dynamicModules.js","sources":["../../../../src/api/dynamicModules.ts"],"sourcesContent":["import type * as Parameters from './parameters';\nimport type { Callback } from '../callback';\nimport type { Client } from '../clients';\nimport type { RequestConfig } from '../requestConfig';\n\nexport class DynamicModules {\n constructor(private client: Client) {}\n\n /**\n * Returns all modules registered dynamically by the calling app.\n *\n * **[Permissions](#permissions) required:** Only Connect apps can make this request.\n */\n async getModules<T = unknown>(callback: Callback<T>): Promise<void>;\n /**\n * Returns all modules registered dynamically by the calling app.\n *\n * **[Permissions](#permissions) required:** Only Connect apps can make this request.\n */\n async getModules<T = unknown>(callback?: never): Promise<T>;\n async getModules<T = unknown>(callback?: Callback<T>): Promise<void | T> {\n const config: RequestConfig = {\n url: '/atlassian-connect/1/app/module/dynamic',\n method: 'GET',\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Registers a list of modules. For the list of modules that support dynamic registration, see [Dynamic\n * modules](https://developer.atlassian.com/cloud/confluence/dynamic-modules/).\n *\n * **[Permissions](#permissions) required:** Only Connect apps can make this request.\n */\n async registerModules<T = unknown>(\n parameters: Parameters.RegisterModules | undefined,\n callback: Callback<T>,\n ): Promise<void>;\n /**\n * Registers a list of modules. For the list of modules that support dynamic registration, see [Dynamic\n * modules](https://developer.atlassian.com/cloud/confluence/dynamic-modules/).\n *\n * **[Permissions](#permissions) required:** Only Connect apps can make this request.\n */\n async registerModules<T = unknown>(parameters?: Parameters.RegisterModules, callback?: never): Promise<T>;\n async registerModules<T = unknown>(\n parameters?: Parameters.RegisterModules,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: '/atlassian-connect/1/app/module/dynamic',\n method: 'POST',\n data: parameters,\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Remove all or a list of modules registered by the calling app.\n *\n * **[Permissions](#permissions) required:** Only Connect apps can make this request.\n */\n async removeModules<T = void>(parameters: Parameters.RemoveModules, callback: Callback<T>): Promise<void>;\n /**\n * Remove all or a list of modules registered by the calling app.\n *\n * **[Permissions](#permissions) required:** Only Connect apps can make this request.\n */\n async removeModules<T = void>(parameters: Parameters.RemoveModules, callback?: never): Promise<T>;\n async removeModules<T = void>(parameters: Parameters.RemoveModules, callback?: Callback<T>): Promise<void | T> {\n const config: RequestConfig = {\n url: '/atlassian-connect/1/app/module/dynamic',\n method: 'DELETE',\n params: {\n moduleKey: parameters.moduleKey,\n },\n };\n\n return this.client.sendRequest(config, callback);\n }\n}\n"],"names":[],"mappings":"MAKa,cAAc,CAAA;AACL,IAAA,MAAA;AAApB,IAAA,WAAA,CAAoB,MAAc,EAAA;QAAd,IAAM,CAAA,MAAA,GAAN,MAAM;;IAc1B,MAAM,UAAU,CAAc,QAAsB,EAAA;AAClD,QAAA,MAAM,MAAM,GAAkB;AAC5B,YAAA,GAAG,EAAE,yCAAyC;AAC9C,YAAA,MAAM,EAAE,KAAK;SACd;QAED,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC;;AAoBlD,IAAA,MAAM,eAAe,CACnB,UAAuC,EACvC,QAAsB,EAAA;AAEtB,QAAA,MAAM,MAAM,GAAkB;AAC5B,YAAA,GAAG,EAAE,yCAAyC;AAC9C,YAAA,MAAM,EAAE,MAAM;AACd,YAAA,IAAI,EAAE,UAAU;SACjB;QAED,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC;;AAelD,IAAA,MAAM,aAAa,CAAW,UAAoC,EAAE,QAAsB,EAAA;AACxF,QAAA,MAAM,MAAM,GAAkB;AAC5B,YAAA,GAAG,EAAE,yCAAyC;AAC9C,YAAA,MAAM,EAAE,QAAQ;AAChB,YAAA,MAAM,EAAE;gBACN,SAAS,EAAE,UAAU,CAAC,SAAS;AAChC,aAAA;SACF;QAED,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC;;AAEnD;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"experimental.js","sources":["../../../../src/api/experimental.ts"],"sourcesContent":["import type * as Models from './models';\nimport type * as Parameters from './parameters';\nimport type { Callback } from '../callback';\nimport type { Client } from '../clients';\nimport type { RequestConfig } from '../requestConfig';\n\nexport class Experimental {\n constructor(private client: Client) {}\n\n /**\n * Moves a pagetree rooted at a page to the space's trash:\n *\n * - If the content's type is `page` and its status is `current`, it will be trashed including all its descendants.\n * - For every other combination of content type and status, this API is not supported.\n *\n * This API accepts the pageTree delete request and returns a task ID. The delete process happens asynchronously.\n *\n * Use the `/longtask/<taskId>` REST API to get the copy task status.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Delete' permission for the space that the\n * content is in.\n */\n async deletePageTree<T = Models.LongTask>(\n parameters: Parameters.DeletePageTree,\n callback: Callback<T>,\n ): Promise<void>;\n /**\n * Moves a pagetree rooted at a page to the space's trash:\n *\n * - If the content's type is `page` and its status is `current`, it will be trashed including all its descendants.\n * - For every other combination of content type and status, this API is not supported.\n *\n * This API accepts the pageTree delete request and returns a task ID. The delete process happens asynchronously.\n *\n * Use the `/longtask/<taskId>` REST API to get the copy task status.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Delete' permission for the space that the\n * content is in.\n */\n async deletePageTree<T = Models.LongTask>(parameters: Parameters.DeletePageTree, callback?: never): Promise<T>;\n async deletePageTree<T = Models.LongTask>(\n parameters: Parameters.DeletePageTree,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: `/api/content/${parameters.id}/pageTree`,\n method: 'DELETE',\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Returns a list of labels associated with a space. Can provide a prefix as well as other filters to select different\n * types of labels.\n */\n async getLabelsForSpace<T = Models.LabelArray>(\n parameters: Parameters.GetLabelsForSpace,\n callback: Callback<T>,\n ): Promise<void>;\n /**\n * Returns a list of labels associated with a space. Can provide a prefix as well as other filters to select different\n * types of labels.\n */\n async getLabelsForSpace<T = Models.LabelArray>(\n parameters: Parameters.GetLabelsForSpace,\n callback?: never,\n ): Promise<T>;\n async getLabelsForSpace<T = Models.LabelArray>(\n parameters: Parameters.GetLabelsForSpace,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: `/api/space/${parameters.spaceKey}/label`,\n method: 'GET',\n params: {\n prefix: parameters.prefix,\n start: parameters.start,\n limit: parameters.limit,\n },\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Adds labels to a piece of content. Does not modify the existing labels.\n *\n * Notes:\n *\n * - Labels can also be added when creating content ([Create content](#api-content-post)).\n * - Labels can be updated when updating content ([Update content](#api-content-id-put)). This will delete the existing\n * labels and replace them with the labels in the request.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to update the content.\n */\n async addLabelsToSpace<T = Models.LabelArray>(\n parameters: Parameters.AddLabelsToSpace,\n callback: Callback<T>,\n ): Promise<void>;\n /**\n * Adds labels to a piece of content. Does not modify the existing labels.\n *\n * Notes:\n *\n * - Labels can also be added when creating content ([Create content](#api-content-post)).\n * - Labels can be updated when updating content ([Update content](#api-content-id-put)). This will delete the existing\n * labels and replace them with the labels in the request.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to update the content.\n */\n async addLabelsToSpace<T = Models.LabelArray>(parameters: Parameters.AddLabelsToSpace, callback?: never): Promise<T>;\n async addLabelsToSpace<T = Models.LabelArray>(\n parameters: Parameters.AddLabelsToSpace,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: `/api/space/${parameters.spaceKey}/label`,\n method: 'POST',\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n async deleteLabelFromSpace<T = void>(\n parameters: Parameters.DeleteLabelFromSpace,\n callback: Callback<T>,\n ): Promise<void>;\n async deleteLabelFromSpace<T = void>(parameters: Parameters.DeleteLabelFromSpace, callback?: never): Promise<T>;\n async deleteLabelFromSpace<T = void>(\n parameters: Parameters.DeleteLabelFromSpace,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: `/api/space/${parameters.spaceKey}/label`,\n method: 'DELETE',\n params: {\n name: parameters.name,\n prefix: parameters.prefix,\n },\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Returns the properties for a user as list of property keys. For more information about user properties, see\n * [Confluence entity properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/).\n * `Note`, these properties stored against a user are on a Confluence site level and not space/content level.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site\n * ('Can use' global permission).\n */\n async getUserProperties<T = Models.UserPropertyKeyArray>(\n parameters: Parameters.GetUserProperties,\n callback: Callback<T>,\n ): Promise<void>;\n /**\n * Returns the properties for a user as list of property keys. For more information about user properties, see\n * [Confluence entity properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/).\n * `Note`, these properties stored against a user are on a Confluence site level and not space/content level.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site\n * ('Can use' global permission).\n */\n async getUserProperties<T = Models.UserPropertyKeyArray>(\n parameters: Parameters.GetUserProperties,\n callback?: never,\n ): Promise<T>;\n async getUserProperties<T = Models.UserPropertyKeyArray>(\n parameters: Parameters.GetUserProperties,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: `/api/user/${parameters.userId}/property`,\n method: 'GET',\n params: {\n start: parameters.start,\n limit: parameters.limit,\n },\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Returns the property corresponding to `key` for a user. For more information about user properties, see [Confluence\n * entity properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/). `Note`, these\n * properties stored against a user are on a Confluence site level and not space/content level.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site\n * ('Can use' global permission).\n */\n async getUserProperty<T = Models.UserProperty>(\n parameters: Parameters.GetUserProperty,\n callback: Callback<T>,\n ): Promise<void>;\n /**\n * Returns the property corresponding to `key` for a user. For more information about user properties, see [Confluence\n * entity properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/). `Note`, these\n * properties stored against a user are on a Confluence site level and not space/content level.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site\n * ('Can use' global permission).\n */\n async getUserProperty<T = Models.UserProperty>(parameters: Parameters.GetUserProperty, callback?: never): Promise<T>;\n async getUserProperty<T = Models.UserProperty>(\n parameters: Parameters.GetUserProperty,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: `/api/user/${parameters.userId}/property/${parameters.key}`,\n method: 'GET',\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Creates a property for a user. For more information about user properties, see [Confluence entity properties]\n * (https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/). `Note`, these properties stored\n * against a user are on a Confluence site level and not space/content level.\n *\n * `Note:` the number of properties which could be created per app in a tenant for each user might be restricted by\n * fixed system limits. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access\n * the Confluence site ('Can use' global permission).\n */\n async createUserProperty<T = unknown>(\n parameters: Parameters.CreateUserProperty,\n callback: Callback<T>,\n ): Promise<void>;\n /**\n * Creates a property for a user. For more information about user properties, see [Confluence entity properties]\n * (https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/). `Note`, these properties stored\n * against a user are on a Confluence site level and not space/content level.\n *\n * `Note:` the number of properties which could be created per app in a tenant for each user might be restricted by\n * fixed system limits. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access\n * the Confluence site ('Can use' global permission).\n */\n async createUserProperty<T = unknown>(parameters: Parameters.CreateUserProperty, callback?: never): Promise<T>;\n async createUserProperty<T = unknown>(\n parameters: Parameters.CreateUserProperty,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: `/api/user/${parameters.userId}/property/${parameters.key}`,\n method: 'POST',\n data: {\n value: parameters.value,\n },\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Updates a property for the given user. Note, you cannot update the key of a user property, only the value. For more\n * information about user properties, see [Confluence entity\n * properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/). `Note`, these\n * properties stored against a user are on a Confluence site level and not space/content level.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site\n * ('Can use' global permission).\n */\n async updateUserProperty<T = void>(parameters: Parameters.UpdateUserProperty, callback: Callback<T>): Promise<void>;\n /**\n * Updates a property for the given user. Note, you cannot update the key of a user property, only the value. For more\n * information about user properties, see [Confluence entity\n * properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/). `Note`, these\n * properties stored against a user are on a Confluence site level and not space/content level.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site\n * ('Can use' global permission).\n */\n async updateUserProperty<T = void>(parameters: Parameters.UpdateUserProperty, callback?: never): Promise<T>;\n async updateUserProperty<T = void>(\n parameters: Parameters.UpdateUserProperty,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: `/api/user/${parameters.userId}/property/${parameters.key}`,\n method: 'PUT',\n data: {\n value: parameters.value,\n },\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Deletes a property for the given user. For more information about user properties, see [Confluence entity\n * properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/). `Note`, these\n * properties stored against a user are on a Confluence site level and not space/content level.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site\n * ('Can use' global permission).\n */\n async deleteUserProperty<T = void>(parameters: Parameters.DeleteUserProperty, callback: Callback<T>): Promise<void>;\n /**\n * Deletes a property for the given user. For more information about user properties, see [Confluence entity\n * properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/). `Note`, these\n * properties stored against a user are on a Confluence site level and not space/content level.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site\n * ('Can use' global permission).\n */\n async deleteUserProperty<T = void>(parameters: Parameters.DeleteUserProperty, callback?: never): Promise<T>;\n async deleteUserProperty<T = void>(\n parameters: Parameters.DeleteUserProperty,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: `/api/user/${parameters.userId}/property/${parameters.key}`,\n method: 'DELETE',\n };\n\n return this.client.sendRequest(config, callback);\n }\n}\n"],"names":[],"mappings":"MAMa,YAAY,CAAA;AACH,IAAA,MAAA;AAApB,IAAA,WAAA,CAAoB,MAAc,EAAA;QAAd,IAAM,CAAA,MAAA,GAAN,MAAM;;AAiC1B,IAAA,MAAM,cAAc,CAClB,UAAqC,EACrC,QAAsB,EAAA;AAEtB,QAAA,MAAM,MAAM,GAAkB;AAC5B,YAAA,GAAG,EAAE,CAAA,aAAA,EAAgB,UAAU,CAAC,EAAE,CAAW,SAAA,CAAA;AAC7C,YAAA,MAAM,EAAE,QAAQ;SACjB;QAED,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC;;AAmBlD,IAAA,MAAM,iBAAiB,CACrB,UAAwC,EACxC,QAAsB,EAAA;AAEtB,QAAA,MAAM,MAAM,GAAkB;AAC5B,YAAA,GAAG,EAAE,CAAA,WAAA,EAAc,UAAU,CAAC,QAAQ,CAAQ,MAAA,CAAA;AAC9C,YAAA,MAAM,EAAE,KAAK;AACb,YAAA,MAAM,EAAE;gBACN,MAAM,EAAE,UAAU,CAAC,MAAM;gBACzB,KAAK,EAAE,UAAU,CAAC,KAAK;gBACvB,KAAK,EAAE,UAAU,CAAC,KAAK;AACxB,aAAA;SACF;QAED,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC;;AA8BlD,IAAA,MAAM,gBAAgB,CACpB,UAAuC,EACvC,QAAsB,EAAA;AAEtB,QAAA,MAAM,MAAM,GAAkB;AAC5B,YAAA,GAAG,EAAE,CAAA,WAAA,EAAc,UAAU,CAAC,QAAQ,CAAQ,MAAA,CAAA;AAC9C,YAAA,MAAM,EAAE,MAAM;SACf;QAED,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,E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AM,CAAa,UAAA,EAAA,UAAU,CAAC,GAAG,CAAE,CAAA;AAChE,YAAA,MAAM,EAAE,MAAM;AACd,YAAA,IAAI,EAAE;gBACJ,KAAK,EAAE,UAAU,CAAC,KAAK;AACxB,aAAA;SACF;QAED,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC;;AAuBlD,IAAA,MAAM,kBAAkB,CACtB,UAAyC,EACzC,QAAsB,EAAA;AAEtB,QAAA,MAAM,MAAM,GAAkB;YAC5B,GAAG,EAAE,aAAa,UAAU,CAAC,MAAM,CAAa,UAAA,EAAA,UAAU,CAAC,GAAG,CAAE,CAAA;AAChE,YAAA,MAAM,EAAE,KAAK;AACb,YAAA,IAAI,EAAE;gBACJ,KAAK,EAAE,UAAU,CAAC,KAAK;AACxB,aAAA;SACF;QAED,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC;;AAqBlD,IAAA,MAAM,kBAAkB,CACtB,UAAyC,EACzC,QAAsB,EAAA;AAEtB,QAAA,MAAM,MAAM,GAAkB;YAC5B,GAAG,EAAE,aAAa,UAAU,CAAC,MAAM,CAAa,UAAA,EAAA,UAAU,CAAC,GAAG,CAAE,CAAA;AAChE,YAAA,MAAM,EAAE,QAAQ;SACjB;QAED,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC;;AAEnD;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"group.js","sources":["../../../../src/api/group.ts"],"sourcesContent":["import type * as Models from './models';\nimport type * as Parameters from './parameters';\nimport type { Callback } from '../callback';\nimport type { Client } from '../clients';\nimport type { RequestConfig } from '../requestConfig';\n\nexport class Group {\n constructor(private client: Client) {}\n\n /**\n * Returns all user groups. The returned groups are ordered alphabetically in ascending order by group name.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site\n * ('Can use' global permission).\n */\n async getGroups<T = Models.GroupArrayWithLinks>(\n parameters: Parameters.GetGroups | undefined,\n callback: Callback<T>,\n ): Promise<void>;\n /**\n * Returns all user groups. The returned groups are ordered alphabetically in ascending order by group name.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site\n * ('Can use' global permission).\n */\n async getGroups<T = Models.GroupArrayWithLinks>(parameters?: Parameters.GetGroups, callback?: never): Promise<T>;\n async getGroups<T = Models.GroupArrayWithLinks>(\n parameters?: Parameters.GetGroups,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: '/api/group',\n method: 'GET',\n params: {\n start: parameters?.start,\n limit: parameters?.limit,\n accessType: parameters?.accessType,\n },\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Creates a new user group.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: User must be a site admin.\n */\n async createGroup<T = Models.Group>(\n parameters: Parameters.CreateGroup | undefined,\n callback: Callback<T>,\n ): Promise<void>;\n /**\n * Creates a new user group.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: User must be a site admin.\n */\n async createGroup<T = Models.Group>(parameters?: Parameters.CreateGroup, callback?: never): Promise<T>;\n async createGroup<T = Models.Group>(parameters?: Parameters.CreateGroup, callback?: Callback<T>): Promise<void | T> {\n const config: RequestConfig = {\n url: '/api/group',\n method: 'POST',\n data: {\n name: parameters?.name,\n },\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Delete user group.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: User must be a site admin.\n */\n async removeGroup<T = void>(parameters: Parameters.RemoveGroup, callback: Callback<T>): Promise<void>;\n /**\n * Delete user group.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: User must be a site admin.\n */\n async removeGroup<T = void>(parameters: Parameters.RemoveGroup, callback?: never): Promise<T>;\n async removeGroup<T = void>(parameters: Parameters.RemoveGroup, callback?: Callback<T>): Promise<void | T> {\n const config: RequestConfig = {\n url: '/api/group',\n method: 'DELETE',\n params: {\n name: parameters.name,\n },\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Returns a user group for a given group name.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site\n * ('Can use' global permission).\n */\n async getGroupByQueryParam<T = Models.Group>(\n parameters: Parameters.GetGroupByQueryParam,\n callback: Callback<T>,\n ): Promise<void>;\n /**\n * Returns a user group for a given group name.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site\n * ('Can use' global permission).\n */\n async getGroupByQueryParam<T = Models.Group>(\n parameters: Parameters.GetGroupByQueryParam,\n callback?: never,\n ): Promise<T>;\n async getGroupByQueryParam<T = Models.Group>(\n parameters: Parameters.GetGroupByQueryParam,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: '/api/group/by-name',\n method: 'GET',\n params: {\n name: parameters.name,\n },\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Returns a user group for a given group id.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site\n * ('Can use' global permission).\n */\n async getGroupByGroupId<T = Models.Group>(\n parameters: Parameters.GetGroupByGroupId,\n callback: Callback<T>,\n ): Promise<void>;\n /**\n * Returns a user group for a given group id.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site\n * ('Can use' global permission).\n */\n async getGroupByGroupId<T = Models.Group>(parameters: Parameters.GetGroupByGroupId, callback?: never): Promise<T>;\n async getGroupByGroupId<T = Models.Group>(\n parameters: Parameters.GetGroupByGroupId,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: '/api/group/by-id',\n method: 'GET',\n params: {\n id: parameters.id,\n },\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Delete user group.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: User must be a site admin.\n */\n async removeGroupById<T = void>(parameters: Parameters.RemoveGroupById, callback: Callback<T>): Promise<void>;\n /**\n * Delete user group.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: User must be a site admin.\n */\n async removeGroupById<T = void>(parameters: Parameters.RemoveGroupById, callback?: never): Promise<T>;\n async removeGroupById<T = void>(parameters: Parameters.RemoveGroupById, callback?: Callback<T>): Promise<void | T> {\n const config: RequestConfig = {\n url: '/api/group/by-id',\n method: 'DELETE',\n params: {\n id: parameters.id,\n },\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Returns a user group for a given group name.\n *\n * Use updated Get group API\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site\n * ('Can use' global permission).\n */\n async getGroupByName<T = Models.Group>(parameters: Parameters.GetGroupByName, callback: Callback<T>): Promise<void>;\n /**\n * Returns a user group for a given group name.\n *\n * Use updated Get group API\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site\n * ('Can use' global permission).\n */\n async getGroupByName<T = Models.Group>(parameters: Parameters.GetGroupByName, callback?: never): Promise<T>;\n async getGroupByName<T = Models.Group>(\n parameters: Parameters.GetGroupByName,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: `/api/group/${parameters.groupName}`,\n method: 'GET',\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Returns the users that are members of a group.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site\n * ('Can use' global permission).\n */\n async getMembersByQueryParam<T = Models.UserArray>(\n parameters: Parameters.GetMembersByQueryParam,\n callback: Callback<T>,\n ): Promise<void>;\n /**\n * Returns the users that are members of a group.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site\n * ('Can use' global permission).\n */\n async getMembersByQueryParam<T = Models.UserArray>(\n parameters: Parameters.GetMembersByQueryParam,\n callback?: never,\n ): Promise<T>;\n async getMembersByQueryParam<T = Models.UserArray>(\n parameters: Parameters.GetMembersByQueryParam,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: '/api/group/member',\n method: 'GET',\n params: {\n name: parameters.name,\n start: parameters.start,\n limit: parameters.limit,\n shouldReturnTotalSize: parameters.shouldReturnTotalSize,\n },\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Returns the users that are members of a group.\n *\n * Use updated Get group API\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site\n * ('Can use' global permission).\n */\n async getGroupMembers<T = Models.UserArray>(\n parameters: Parameters.GetGroupMembers,\n callback: Callback<T>,\n ): Promise<void>;\n /**\n * Returns the users that are members of a group.\n *\n * Use updated Get group API\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site\n * ('Can use' global permission).\n */\n async getGroupMembers<T = Models.UserArray>(parameters: Parameters.GetGroupMembers, callback?: never): Promise<T>;\n async getGroupMembers<T = Models.UserArray>(\n parameters: Parameters.GetGroupMembers,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: `/api/group/${parameters.groupName}/member`,\n method: 'GET',\n params: {\n start: parameters.start,\n limit: parameters.limit,\n },\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /** Get search results of groups by partial query provided. */\n async searchGroups<T = Models.GroupArrayWithLinks>(\n parameters: Parameters.SearchGroups,\n callback: Callback<T>,\n ): Promise<void>;\n /** Get search results of groups by partial query provided. */\n async searchGroups<T = Models.GroupArrayWithLinks>(parameters: Parameters.SearchGroups, callback?: never): Promise<T>;\n async searchGroups<T = Models.GroupArrayWithLinks>(\n parameters: Parameters.SearchGroups,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: '/api/group/picker',\n method: 'GET',\n params: {\n query: parameters.query,\n start: parameters.start,\n limit: parameters.limit,\n shouldReturnTotalSize: parameters.shouldReturnTotalSize,\n },\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Adds a user as a member in a group represented by its groupId\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: User must be a site admin.\n */\n async addUserToGroupByGroupId<T = unknown>(\n parameters: Parameters.AddUserToGroupByGroupId,\n callback: Callback<T>,\n ): Promise<void>;\n /**\n * Adds a user as a member in a group represented by its groupId\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: User must be a site admin.\n */\n async addUserToGroupByGroupId<T = unknown>(\n parameters: Parameters.AddUserToGroupByGroupId,\n callback?: never,\n ): Promise<T>;\n async addUserToGroupByGroupId<T = unknown>(\n parameters: Parameters.AddUserToGroupByGroupId,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: '/api/group/userByGroupId',\n method: 'POST',\n params: {\n groupId: parameters.groupId,\n },\n data: {\n accountId: parameters.accountId,\n },\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Remove user as a member from a group.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: User must be a site admin.\n */\n async removeMemberFromGroupByGroupId<T = void>(\n parameters: Parameters.RemoveMemberFromGroupByGroupId,\n callback: Callback<T>,\n ): Promise<void>;\n /**\n * Remove user as a member from a group.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: User must be a site admin.\n */\n async removeMemberFromGroupByGroupId<T = void>(\n parameters: Parameters.RemoveMemberFromGroupByGroupId,\n callback?: never,\n ): Promise<T>;\n async removeMemberFromGroupByGroupId<T = void>(\n parameters: Parameters.RemoveMemberFromGroupByGroupId,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: '/api/group/userByGroupId',\n method: 'DELETE',\n params: {\n groupId: parameters.groupId,\n accountId: parameters.accountId,\n },\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Returns the users that are members of a group.\n *\n * Use updated Get group API\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site\n * ('Can use' global permission).\n */\n async getGroupMembersByGroupId<T = Models.UserArray>(\n parameters: Parameters.GetGroupMembersByGroupId,\n callback: Callback<T>,\n ): Promise<void>;\n /**\n * Returns the users that are members of a group.\n *\n * Use updated Get group API\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site\n * ('Can use' global permission).\n */\n async getGroupMembersByGroupId<T = Models.UserArray>(\n parameters: Parameters.GetGroupMembersByGroupId,\n callback?: never,\n ): Promise<T>;\n async getGroupMembersByGroupId<T = Models.UserArray>(\n parameters: Parameters.GetGroupMembersByGroupId,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: `/api/group/${parameters.groupId}/membersByGroupId`,\n method: 'GET',\n params: {\n start: parameters.start,\n limit: parameters.limit,\n shouldReturnTotalSize: parameters.shouldReturnTotalSize,\n },\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Adds a user as a member in a group.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: User must be a site admin.\n */\n async addUserToGroup<T = unknown>(parameters: Parameters.AddUserToGroup, callback: Callback<T>): Promise<void>;\n /**\n * Adds a user as a member in a group.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: User must be a site admin.\n */\n async addUserToGroup<T = unknown>(parameters: Parameters.AddUserToGroup, callback?: never): Promise<T>;\n async addUserToGroup<T = unknown>(parameters: Parameters.AddUserToGroup, callback?: Callback<T>): Promise<void | T> {\n const config: RequestConfig = {\n url: '/api/group/user',\n method: 'POST',\n params: {\n name: parameters.name,\n },\n data: {\n accountId: parameters.accountId,\n },\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Remove user as a member from a group.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: User must be a site admin.\n */\n async removeMemberFromGroup<T = void>(\n parameters: Parameters.RemoveMemberFromGroup,\n callback: Callback<T>,\n ): Promise<void>;\n /**\n * Remove user as a member from a group.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: User must be a site admin.\n */\n async removeMemberFromGroup<T = void>(parameters: Parameters.RemoveMemberFromGroup, callback?: never): Promise<T>;\n async removeMemberFromGroup<T = void>(\n parameters: Parameters.RemoveMemberFromGroup,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: '/api/group/user',\n method: 'DELETE',\n params: {\n name: parameters.name,\n accountId: parameters.accountId,\n },\n };\n\n return this.client.sendRequest(config, callback);\n }\n}\n"],"names":[],"mappings":"MAMa,KAAK,CAAA;AACI,IAAA,MAAA;AAApB,IAAA,WAAA,CAAoB,MAAc,EAAA;QAAd,IAAM,CAAA,MAAA,GAAN,MAAM;;AAmB1B,IAAA,MAAM,SAAS,CACb,UAAiC,EACjC,QAAsB,EAAA;AAEtB,QAAA,MAAM,MAAM,GAAkB;AAC5B,YAAA,GAAG,EAAE,YAAY;AACjB,YAAA,MAAM,EAAE,KAAK;AACb,YAAA,MAAM,EAAE;gBACN,KAAK,EAAE,UAAU,EAAE,KAAK;gBACxB,KAAK,EAAE,UAAU,EAAE,KAAK;gBACxB,UAAU,EAAE,UAAU,EAAE,UAAU;AACnC,aAAA;SACF;QAED,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC;;AAkBlD,IAAA,MAAM,WAAW,CAAmB,UAAmC,EAAE,QAAsB,EAAA;AAC7F,QAAA,MAAM,MAAM,GAAkB;AAC5B,YAAA,GAAG,EAAE,YAAY;AACjB,YAAA,MAAM,EAAE,MAAM;AACd,YAAA,IAAI,EAAE;gBACJ,IAAI,EAAE,UAAU,EAAE,IAAI;AACvB,aAAA;SACF;QAED,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC;;AAelD,IAAA,MAAM,WAAW,CAAW,UAAk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B,KAAK,EAAE,UAAU,CAAC,KAAK;gBACvB,qBAAqB,EAAE,UAAU,CAAC,qBAAqB;AACxD,aAAA;SACF;QAED,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC;;AAelD,IAAA,MAAM,cAAc,CAAc,UAAqC,EAAE,QAAsB,EAAA;AAC7F,QAAA,MAAM,MAAM,GAAkB;AAC5B,YAAA,GAAG,EAAE,iBAAiB;AACtB,YAAA,MAAM,EAAE,MAAM;AACd,YAAA,MAAM,EAAE;gBACN,IAAI,EAAE,UAAU,CAAC,IAAI;AACtB,aAAA;AACD,YAAA,IAAI,EAAE;gBACJ,SAAS,EAAE,UAAU,CAAC,SAAS;AAChC,aAAA;SACF;QAED,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC;;AAkBlD,IAAA,MAAM,qBAAqB,CACzB,UAA4C,EAC5C,QAAsB,EAAA;AAEtB,QAAA,MAAM,MAAM,GAAkB;AAC5B,YAAA,GAAG,EAAE,iBAAiB;AACtB,YAAA,MAAM,EAAE,QAAQ;AAChB,YAAA,MAAM,EAAE;gBACN,IAAI,EAAE,UAAU,CAAC,IAAI;gBACrB,SAAS,EAAE,UAAU,CAAC,SAAS;AAChC,aAAA;SACF;QAED,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC;;AAEnD;;;;"}
|
package/dist/esm/api/index.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
export { Analytics } from './analytics.js';
|
|
2
|
-
export { Audit } from './audit.js';
|
|
3
|
-
export { Content } from './content.js';
|
|
4
|
-
export { ContentAttachments } from './contentAttachments.js';
|
|
5
|
-
export { ContentBody } from './contentBody.js';
|
|
6
|
-
export { ContentChildrenAndDescendants } from './contentChildrenAndDescendants.js';
|
|
7
|
-
export { ContentComments } from './contentComments.js';
|
|
8
|
-
export { ContentLabels } from './contentLabels.js';
|
|
9
|
-
export { ContentMacroBody } from './contentMacroBody.js';
|
|
10
|
-
export { ContentPermissions } from './contentPermissions.js';
|
|
11
|
-
export { ContentProperties } from './contentProperties.js';
|
|
12
|
-
export { ContentRestrictions } from './contentRestrictions.js';
|
|
13
|
-
export { ContentStates } from './contentStates.js';
|
|
14
|
-
export { ContentVersions } from './contentVersions.js';
|
|
15
|
-
export { ContentWatches } from './contentWatches.js';
|
|
16
|
-
export { DynamicModules } from './dynamicModules.js';
|
|
17
|
-
export { Experimental } from './experimental.js';
|
|
18
|
-
export { Group } from './group.js';
|
|
19
|
-
export { InlineTasks } from './inlineTasks.js';
|
|
20
|
-
export { LabelInfo } from './labelInfo.js';
|
|
21
|
-
export { LongRunningTask } from './longRunningTask.js';
|
|
22
|
-
export { Relation } from './relation.js';
|
|
23
|
-
export { Search } from './search.js';
|
|
24
|
-
export { Settings } from './settings.js';
|
|
25
|
-
export { Space } from './space.js';
|
|
26
|
-
export { SpacePermissions } from './spacePermissions.js';
|
|
27
|
-
export { SpaceProperties } from './spaceProperties.js';
|
|
28
|
-
export { SpaceSettings } from './spaceSettings.js';
|
|
29
|
-
export { Template } from './template.js';
|
|
30
|
-
export { Themes } from './themes.js';
|
|
31
|
-
export { Users } from './users.js';
|
|
32
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"inlineTasks.js","sources":["../../../../src/api/inlineTasks.ts"],"sourcesContent":["import type * as Models from './models';\nimport type * as Parameters from './parameters';\nimport type { Callback } from '../callback';\nimport type { Client } from '../clients';\nimport type { RequestConfig } from '../requestConfig';\n\nexport class InlineTasks {\n constructor(private client: Client) {}\n\n /**\n * Returns inline tasks based on the search query.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site\n * ('Can use' global permission). Only tasks in contents that the user has permission to view are returned.\n */\n async searchTasks<T = Models.TaskPageResponse>(\n parameters: Parameters.SearchTasks | undefined,\n callback: Callback<T>,\n ): Promise<void>;\n /**\n * Returns inline tasks based on the search query.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site\n * ('Can use' global permission). Only tasks in contents that the user has permission to view are returned.\n */\n async searchTasks<T = Models.TaskPageResponse>(parameters?: Parameters.SearchTasks, callback?: never): Promise<T>;\n async searchTasks<T = Models.TaskPageResponse>(\n parameters?: Parameters.SearchTasks,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: '/api/inlinetasks/search',\n method: 'GET',\n params: {\n start: parameters?.start,\n limit: parameters?.limit,\n spaceKey: parameters?.spaceKey,\n pageId: parameters?.pageId,\n assignee: parameters?.assignee,\n creator: parameters?.creator,\n completedUser: parameters?.completedUser,\n duedateFrom: parameters?.duedateFrom,\n duedateTo: parameters?.duedateTo,\n createdateFrom: parameters?.createdateFrom,\n createdateTo: parameters?.createdateTo,\n completedateFrom: parameters?.completedateFrom,\n completedateTo: parameters?.completedateTo,\n status: parameters?.status,\n },\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Returns inline task based on the global ID.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content associated\n * with the task.\n */\n async getTaskById<T = Models.Task>(parameters: Parameters.GetTaskById, callback: Callback<T>): Promise<void>;\n /**\n * Returns inline task based on the global ID.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content associated\n * with the task.\n */\n async getTaskById<T = Models.Task>(parameters: Parameters.GetTaskById, callback?: never): Promise<T>;\n async getTaskById<T = Models.Task>(parameters: Parameters.GetTaskById, callback?: Callback<T>): Promise<void | T> {\n const config: RequestConfig = {\n url: `/api/inlinetasks/${parameters.inlineTaskId}`,\n method: 'GET',\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Updates an inline tasks status given its global ID\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to update the content associated\n * with the task.\n */\n async updateTaskById<T = Models.Task>(parameters: Parameters.UpdateTaskById, callback: Callback<T>): Promise<void>;\n /**\n * Updates an inline tasks status given its global ID\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to update the content associated\n * with the task.\n */\n async updateTaskById<T = Models.Task>(parameters: Parameters.UpdateTaskById, callback?: never): Promise<T>;\n async updateTaskById<T = Models.Task>(\n parameters: Parameters.UpdateTaskById,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: `/api/inlinetasks/${parameters.inlineTaskId}`,\n method: 'PUT',\n data: {\n status: parameters.status,\n },\n };\n\n return this.client.sendRequest(config, callback);\n }\n}\n"],"names":[],"mappings":"MAMa,WAAW,CAAA;AACF,IAAA,MAAA;AAApB,IAAA,WAAA,CAAoB,MAAc,EAAA;QAAd,IAAM,CAAA,MAAA,GAAN,MAAM;;AAmB1B,IAAA,MAAM,WAAW,CACf,UAAmC,EACnC,QAAsB,EAAA;AAEtB,QAAA,MAAM,MAAM,GAAkB;AAC5B,YAAA,GAAG,EAAE,yBAAyB;AAC9B,YAAA,MAAM,EAAE,KAAK;AACb,YAAA,MAAM,EAAE;gBACN,KAAK,EAAE,UAAU,EAAE,KAAK;gBACxB,KAAK,EAAE,UAAU,EAAE,KAAK;gBACxB,QAAQ,EAAE,UAAU,EAAE,QAAQ;gBAC9B,MAAM,EAAE,UAAU,EAAE,MAAM;gBAC1B,QAAQ,EAAE,UAAU,EAAE,QAAQ;gBAC9B,OAAO,EAAE,UAAU,EAAE,OAAO;gBAC5B,aAAa,EAAE,UAAU,EAAE,aAAa;gBACxC,WAAW,EAAE,UAAU,EAAE,WAAW;gBACpC,SAAS,EAAE,UAAU,EAAE,SAAS;gBAChC,cAAc,EAAE,UAAU,EAAE,cAAc;gBAC1C,YAAY,EAAE,UAAU,EAAE,YAAY;gBACtC,gBAAgB,EAAE,UAAU,EAAE,gBAAgB;gBAC9C,cAAc,EAAE,UAAU,EAAE,cAAc;gBAC1C,MAAM,EAAE,UAAU,EAAE,MAAM;AAC3B,aAAA;SACF;QAED,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC;;AAiBlD,IAAA,MAAM,WAAW,CAAkB,UAAkC,EAAE,QAAsB,EAAA;AAC3F,QAAA,MAAM,MAAM,GAAkB;AAC5B,YAAA,GAAG,EAAE,CAAA,iBAAA,EAAoB,UAAU,CAAC,YAAY,CAAE,CAAA;AAClD,YAAA,MAAM,EAAE,KAAK;SACd;QAED,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC;;AAiBlD,IAAA,MAAM,cAAc,CAClB,UAAqC,EACrC,QAAsB,EAAA;AAEtB,QAAA,MAAM,MAAM,GAAkB;AAC5B,YAAA,GAAG,EAAE,CAAA,iBAAA,EAAoB,UAAU,CAAC,YAAY,CAAE,CAAA;AAClD,YAAA,MAAM,EAAE,KAAK;AACb,YAAA,IAAI,EAAE;gBACJ,MAAM,EAAE,UAAU,CAAC,MAAM;AAC1B,aAAA;SACF;QAED,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC;;AAEnD;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"labelInfo.js","sources":["../../../../src/api/labelInfo.ts"],"sourcesContent":["import type * as Models from './models';\nimport type * as Parameters from './parameters';\nimport type { Callback } from '../callback';\nimport type { Client } from '../clients';\nimport type { RequestConfig } from '../requestConfig';\n\nexport class LabelInfo {\n constructor(private client: Client) {}\n\n /**\n * Returns label information and a list of contents associated with the label.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site\n * ('Can use' global permission). Only contents that the user is permitted to view is returned.\n */\n async getAllLabelContent<T = Models.LabelDetails>(\n parameters: Parameters.GetAllLabelContent,\n callback: Callback<T>,\n ): Promise<void>;\n /**\n * Returns label information and a list of contents associated with the label.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site\n * ('Can use' global permission). Only contents that the user is permitted to view is returned.\n */\n async getAllLabelContent<T = Models.LabelDetails>(\n parameters: Parameters.GetAllLabelContent,\n callback?: never,\n ): Promise<T>;\n async getAllLabelContent<T = Models.LabelDetails>(\n parameters: Parameters.GetAllLabelContent,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: '/api/label',\n method: 'GET',\n params: {\n name: parameters.name,\n type: parameters.type,\n start: parameters.start,\n limit: parameters.limit,\n },\n };\n\n return this.client.sendRequest(config, callback);\n }\n}\n"],"names":[],"mappings":"MAMa,SAAS,CAAA;AACA,IAAA,MAAA;AAApB,IAAA,WAAA,CAAoB,MAAc,EAAA;QAAd,IAAM,CAAA,MAAA,GAAN,MAAM;;AAsB1B,IAAA,MAAM,kBAAkB,CACtB,UAAyC,EACzC,QAAsB,EAAA;AAEtB,QAAA,MAAM,MAAM,GAAkB;AAC5B,YAAA,GAAG,EAAE,YAAY;AACjB,YAAA,MAAM,EAAE,KAAK;AACb,YAAA,MAAM,EAAE;gBACN,IAAI,EAAE,UAAU,CAAC,IAAI;gBACrB,IAAI,EAAE,UAAU,CAAC,IAAI;gBACrB,KAAK,EAAE,UAAU,CAAC,KAAK;gBACvB,KAAK,EAAE,UAAU,CAAC,KAAK;AACxB,aAAA;SACF;QAED,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC;;AAEnD;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"longRunningTask.js","sources":["../../../../src/api/longRunningTask.ts"],"sourcesContent":["import type * as Models from './models';\nimport type * as Parameters from './parameters';\nimport type { Callback } from '../callback';\nimport type { Client } from '../clients';\nimport type { RequestConfig } from '../requestConfig';\n\nexport class LongRunningTask {\n constructor(private client: Client) {}\n\n /**\n * Returns information about all active long-running tasks (e.g. space export), such as how long each task has been\n * running and the percentage of each task that has completed.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site\n * ('Can use' global permission).\n */\n async getTasks<T = Models.LongTaskStatusArray>(\n parameters: Parameters.GetTasks | undefined,\n callback: Callback<T>,\n ): Promise<void>;\n /**\n * Returns information about all active long-running tasks (e.g. space export), such as how long each task has been\n * running and the percentage of each task that has completed.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site\n * ('Can use' global permission).\n */\n async getTasks<T = Models.LongTaskStatusArray>(parameters?: Parameters.GetTasks, callback?: never): Promise<T>;\n async getTasks<T = Models.LongTaskStatusArray>(\n parameters?: Parameters.GetTasks,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: '/api/longtask',\n method: 'GET',\n params: {\n start: parameters?.start,\n limit: parameters?.limit,\n },\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Returns information about an active long-running task (e.g. space export), such as how long it has been running and\n * the percentage of the task that has completed.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site\n * ('Can use' global permission).\n */\n async getTask<T = Models.LongTaskStatusWithLinks>(\n parameters: Parameters.GetTask,\n callback: Callback<T>,\n ): Promise<void>;\n /**\n * Returns information about an active long-running task (e.g. space export), such as how long it has been running and\n * the percentage of the task that has completed.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site\n * ('Can use' global permission).\n */\n async getTask<T = Models.LongTaskStatusWithLinks>(parameters: Parameters.GetTask, callback?: never): Promise<T>;\n async getTask<T = Models.LongTaskStatusWithLinks>(\n parameters: Parameters.GetTask,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: `/api/longtask/${parameters.id}`,\n method: 'GET',\n };\n\n return this.client.sendRequest(config, callback);\n }\n}\n"],"names":[],"mappings":"MAMa,eAAe,CAAA;AACN,IAAA,MAAA;AAApB,IAAA,WAAA,CAAoB,MAAc,EAAA;QAAd,IAAM,CAAA,MAAA,GAAN,MAAM;;AAqB1B,IAAA,MAAM,QAAQ,CACZ,UAAgC,EAChC,QAAsB,EAAA;AAEtB,QAAA,MAAM,MAAM,GAAkB;AAC5B,YAAA,GAAG,EAAE,eAAe;AACpB,YAAA,MAAM,EAAE,KAAK;AACb,YAAA,MAAM,EAAE;gBACN,KAAK,EAAE,UAAU,EAAE,KAAK;gBACxB,KAAK,EAAE,UAAU,EAAE,KAAK;AACzB,aAAA;SACF;QAED,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC;;AAsBlD,IAAA,MAAM,OAAO,CACX,UAA8B,EAC9B,QAAsB,EAAA;AAEtB,QAAA,MAAM,MAAM,GAAkB;AAC5B,YAAA,GAAG,EAAE,CAAA,cAAA,EAAiB,UAAU,CAAC,EAAE,CAAE,CAAA;AACrC,YAAA,MAAM,EAAE,KAAK;SACd;QAED,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC;;AAEnD;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"labeledContentType.js","sources":["../../../../../src/api/models/labeledContentType.ts"],"sourcesContent":["export enum LabeledContentType {\n Page = 'page',\n Blogpost = 'blogpost',\n Attachment = 'attachment',\n PageTemplate = 'page_template',\n}\n"],"names":[],"mappings":"IAAY;AAAZ,CAAA,UAAY,kBAAkB,EAAA;AAC5B,IAAA,kBAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACb,IAAA,kBAAA,CAAA,UAAA,CAAA,GAAA,UAAqB;AACrB,IAAA,kBAAA,CAAA,YAAA,CAAA,GAAA,YAAyB;AACzB,IAAA,kBAAA,CAAA,cAAA,CAAA,GAAA,eAA8B;AAChC,CAAC,EALW,kBAAkB,KAAlB,kBAAkB,GAK7B,EAAA,CAAA,CAAA;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"relation.js","sources":["../../../../src/api/relation.ts"],"sourcesContent":["import type * as Models from './models';\nimport type * as Parameters from './parameters';\nimport type { Callback } from '../callback';\nimport type { Client } from '../clients';\nimport type { RequestConfig } from '../requestConfig';\n\nexport class Relation {\n constructor(private client: Client) {}\n\n /**\n * Returns all target entities that have a particular relationship to the source entity. Note, relationships are one\n * way.\n *\n * For example, the following method finds all content that the current user has an 'ignore' relationship with: `GET\n * https://your-domain.atlassian.net/wiki/rest/api/relation/ignore/from/user/current/to/content` Note, 'ignore' is an\n * example custom relationship type.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view both the target entity\n * and source entity.\n */\n async findTargetFromSource<T = Models.RelationArray>(\n parameters: Parameters.FindTargetFromSource,\n callback: Callback<T>,\n ): Promise<void>;\n /**\n * Returns all target entities that have a particular relationship to the source entity. Note, relationships are one\n * way.\n *\n * For example, the following method finds all content that the current user has an 'ignore' relationship with: `GET\n * https://your-domain.atlassian.net/wiki/rest/api/relation/ignore/from/user/current/to/content` Note, 'ignore' is an\n * example custom relationship type.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view both the target entity\n * and source entity.\n */\n async findTargetFromSource<T = Models.RelationArray>(\n parameters: Parameters.FindTargetFromSource,\n callback?: never,\n ): Promise<T>;\n async findTargetFromSource<T = Models.RelationArray>(\n parameters: Parameters.FindTargetFromSource,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: `/api/relation/${parameters.relationName}/from/${parameters.sourceType}/${parameters.sourceKey}/to/${parameters.targetType}`,\n method: 'GET',\n params: {\n sourceStatus: parameters.sourceStatus,\n targetStatus: parameters.targetStatus,\n sourceVersion: parameters.sourceVersion,\n targetVersion: parameters.targetVersion,\n expand: parameters.expand,\n start: parameters.start,\n limit: parameters.limit,\n },\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Find whether a particular type of relationship exists from a source entity to a target entity. Note, relationships\n * are one way.\n *\n * For example, you can use this method to find whether the current user has selected a particular page as a favorite\n * (i.e. 'save for later'): `GET\n * https://your-domain.atlassian.net/wiki/rest/api/relation/favourite/from/user/current/to/content/123`\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view both the target entity\n * and source entity.\n */\n async getRelationship<T = Models.Relation>(\n parameters: Parameters.GetRelationship,\n callback: Callback<T>,\n ): Promise<void>;\n /**\n * Find whether a particular type of relationship exists from a source entity to a target entity. Note, relationships\n * are one way.\n *\n * For example, you can use this method to find whether the current user has selected a particular page as a favorite\n * (i.e. 'save for later'): `GET\n * https://your-domain.atlassian.net/wiki/rest/api/relation/favourite/from/user/current/to/content/123`\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view both the target entity\n * and source entity.\n */\n async getRelationship<T = Models.Relation>(parameters: Parameters.GetRelationship, callback?: never): Promise<T>;\n async getRelationship<T = Models.Relation>(\n parameters: Parameters.GetRelationship,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: `/api/relation/${parameters.relationName}/from/${parameters.sourceType}/${parameters.sourceKey}/to/${parameters.targetType}/${parameters.targetKey}`,\n method: 'GET',\n params: {\n sourceStatus: parameters.sourceStatus,\n targetStatus: parameters.targetStatus,\n sourceVersion: parameters.sourceVersion,\n targetVersion: parameters.targetVersion,\n expand: parameters.expand,\n },\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Creates a relationship between two entities (user, space, content). The 'favourite' relationship is supported by\n * default, but you can use this method to create any type of relationship between two entities.\n *\n * For example, the following method creates a 'sibling' relationship between two pieces of content: `GET\n * https://your-domain.atlassian.net/wiki/rest/api/relation/sibling/from/content/123/to/content/456`\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site\n * ('Can use' global permission).\n */\n async createRelationship<T = Models.Relation>(\n parameters: Parameters.CreateRelationship,\n callback: Callback<T>,\n ): Promise<void>;\n /**\n * Creates a relationship between two entities (user, space, content). The 'favourite' relationship is supported by\n * default, but you can use this method to create any type of relationship between two entities.\n *\n * For example, the following method creates a 'sibling' relationship between two pieces of content: `GET\n * https://your-domain.atlassian.net/wiki/rest/api/relation/sibling/from/content/123/to/content/456`\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site\n * ('Can use' global permission).\n */\n async createRelationship<T = Models.Relation>(\n parameters: Parameters.CreateRelationship,\n callback?: never,\n ): Promise<T>;\n async createRelationship<T = Models.Relation>(\n parameters: Parameters.CreateRelationship,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: `/api/relation/${parameters.relationName}/from/${parameters.sourceType}/${parameters.sourceKey}/to/${parameters.targetType}/${parameters.targetKey}`,\n method: 'PUT',\n params: {\n sourceStatus: parameters.sourceStatus,\n targetStatus: parameters.targetStatus,\n sourceVersion: parameters.sourceVersion,\n targetVersion: parameters.targetVersion,\n },\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Deletes a relationship between two entities (user, space, content).\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site\n * ('Can use' global permission). For favourite relationships, the current user can only delete their own favourite\n * relationships. A space administrator can delete favourite relationships for any user.\n */\n async deleteRelationship<T = void>(parameters: Parameters.DeleteRelationship, callback: Callback<T>): Promise<void>;\n /**\n * Deletes a relationship between two entities (user, space, content).\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site\n * ('Can use' global permission). For favourite relationships, the current user can only delete their own favourite\n * relationships. A space administrator can delete favourite relationships for any user.\n */\n async deleteRelationship<T = void>(parameters: Parameters.DeleteRelationship, callback?: never): Promise<T>;\n async deleteRelationship<T = void>(\n parameters: Parameters.DeleteRelationship,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: `/api/relation/${parameters.relationName}/from/${parameters.sourceType}/${parameters.sourceKey}/to/${parameters.targetType}/${parameters.targetKey}`,\n method: 'DELETE',\n params: {\n sourceStatus: parameters.sourceStatus,\n targetStatus: parameters.targetStatus,\n sourceVersion: parameters.sourceVersion,\n targetVersion: parameters.targetVersion,\n },\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Returns all target entities that have a particular relationship to the source entity. Note, relationships are one\n * way.\n *\n * For example, the following method finds all users that have a 'collaborator' relationship to a piece of content\n * with an ID of '1234': `GET\n * https://your-domain.atlassian.net/wiki/rest/api/relation/collaborator/to/content/1234/from/user` Note,\n * 'collaborator' is an example custom relationship type.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view both the target entity\n * and source entity.\n */\n async findSourcesForTarget<T = Models.RelationArray>(\n parameters: Parameters.FindSourcesForTarget,\n callback: Callback<T>,\n ): Promise<void>;\n /**\n * Returns all target entities that have a particular relationship to the source entity. Note, relationships are one\n * way.\n *\n * For example, the following method finds all users that have a 'collaborator' relationship to a piece of content\n * with an ID of '1234': `GET\n * https://your-domain.atlassian.net/wiki/rest/api/relation/collaborator/to/content/1234/from/user` Note,\n * 'collaborator' is an example custom relationship type.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view both the target entity\n * and source entity.\n */\n async findSourcesForTarget<T = Models.RelationArray>(\n parameters: Parameters.FindSourcesForTarget,\n callback?: never,\n ): Promise<T>;\n async findSourcesForTarget<T = Models.RelationArray>(\n parameters: Parameters.FindSourcesForTarget,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: `/api/relation/${parameters.relationName}/to/${parameters.targetType}/${parameters.targetKey}/from/${parameters.sourceType}`,\n method: 'GET',\n params: {\n sourceStatus: parameters.sourceStatus,\n targetStatus: parameters.targetStatus,\n sourceVersion: parameters.sourceVersion,\n targetVersion: parameters.targetVersion,\n expand: parameters.expand,\n start: parameters.start,\n limit: parameters.limit,\n },\n };\n\n return this.client.sendRequest(config, callback);\n }\n}\n"],"names":[],"mappings":"MAMa,QAAQ,CAAA;AACC,IAAA,MAAA;AAApB,IAAA,WAAA,CAAoB,MAAc,EAAA;QAAd,IAAM,CAAA,MAAA,GAAN,MAAM;;AAgC1B,IAAA,MAAM,oBAAoB,CACxB,UAA2C,EAC3C,QAAsB,EAAA;AAEtB,QAAA,MAAM,MAAM,GAAkB;AAC5B,YAAA,GAAG,EAAE,CAAiB,cAAA,EAAA,UAAU,CAAC,YAAY,SAAS,UAAU,CAAC,UAAU,CAAA,CAAA,EAAI,UAAU,CAAC,SAAS,OAAO,UAAU,CAAC,UAAU,CAAE,CAAA;AACjI,YAAA,MAAM,EAAE,KAAK;AACb,YAAA,MAAM,EAAE;gBACN,YAAY,EAAE,UAAU,CAAC,YAAY;gBACrC,YAAY,EAAE,UAAU,CAAC,YAAY;gBACrC,aAAa,EAAE,UAAU,CAAC,aAAa;gBACvC,aAAa,EAAE,UAAU,CAAC,aAAa;gBACvC,MAAM,EAAE,UAAU,CAAC,MAAM;gBACzB,KAAK,EAAE,UAAU,CAAC,KAAK;gBACvB,KAAK,EAAE,UAAU,CAAC,KAAK;AACxB,aAAA;SACF;QAED,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC;;AA8BlD,IAAA,MAAM,eAAe,CACnB,UAAsC,EACtC,QAAsB,EAAA;AAEtB,QAAA,MAAM,MAAM,GAAkB;YAC5B,GAAG,EAAE,iBAAiB,UAAU,CAAC,YAAY,CAAS,MAAA,EAAA,UAAU,CAAC,UAAU,CAAA,CAAA,EAA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AU,CAAI,CAAA,EAAA,UAAU,CAAC,SAAS,CAAE,CAAA;AACzJ,YAAA,MAAM,EAAE,QAAQ;AAChB,YAAA,MAAM,EAAE;gBACN,YAAY,EAAE,UAAU,CAAC,YAAY;gBACrC,YAAY,EAAE,UAAU,CAAC,YAAY;gBACrC,aAAa,EAAE,UAAU,CAAC,aAAa;gBACvC,aAAa,EAAE,UAAU,CAAC,aAAa;AACxC,aAAA;SACF;QAED,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC;;AAmClD,IAAA,MAAM,oBAAoB,CACxB,UAA2C,EAC3C,QAAsB,EAAA;AAEtB,QAAA,MAAM,MAAM,GAAkB;AAC5B,YAAA,GAAG,EAAE,CAAiB,cAAA,EAAA,UAAU,CAAC,YAAY,OAAO,UAAU,CAAC,UAAU,CAAA,CAAA,EAAI,UAAU,CAAC,SAAS,SAAS,UAAU,CAAC,UAAU,CAAE,CAAA;AACjI,YAAA,MAAM,EAAE,KAAK;AACb,YAAA,MAAM,EAAE;gBACN,YAAY,EAAE,UAAU,CAAC,YAAY;gBACrC,YAAY,EAAE,UAAU,CAAC,YAAY;gBACrC,aAAa,EAAE,UAAU,CAAC,aAAa;gBACvC,aAAa,EAAE,UAAU,CAAC,aAAa;gBACvC,MAAM,EAAE,UAAU,CAAC,MAAM;gBACzB,KAAK,EAAE,UAAU,CAAC,KAAK;gBACvB,KAAK,EAAE,UAAU,CAAC,KAAK;AACxB,aAAA;SACF;QAED,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC;;AAEnD;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"search.js","sources":["../../../../src/api/search.ts"],"sourcesContent":["import type * as Models from './models';\nimport type * as Parameters from './parameters';\nimport type { Callback } from '../callback';\nimport type { Client } from '../clients';\nimport type { RequestConfig } from '../requestConfig';\n\nexport class Search {\n constructor(private client: Client) {}\n\n /**\n * Searches for content using the [Confluence Query Language\n * (CQL)](https://developer.atlassian.com/cloud/confluence/advanced-searching-using-cql/)\n *\n * When additional results are available, returns `next` and `prev` URLs to retrieve them in subsequent calls. The\n * URLs each contain a cursor that points to the appropriate set of results. Use `limit` to specify the number of\n * results returned in each call.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the entities. Note, only\n * entities that the user has permission to view will be returned.\n */\n async searchByCQL<T = Models.SearchPageResponseSearchResult>(\n parameters: Parameters.SearchByCQL,\n callback: Callback<T>,\n ): Promise<void>;\n /**\n * Searches for content using the [Confluence Query Language\n * (CQL)](https://developer.atlassian.com/cloud/confluence/advanced-searching-using-cql/)\n *\n * When additional results are available, returns `next` and `prev` URLs to retrieve them in subsequent calls. The\n * URLs each contain a cursor that points to the appropriate set of results. Use `limit` to specify the number of\n * results returned in each call.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the entities. Note, only\n * entities that the user has permission to view will be returned.\n */\n async searchByCQL<T = Models.SearchPageResponseSearchResult>(\n parameters: Parameters.SearchByCQL,\n callback?: never,\n ): Promise<T>;\n async searchByCQL<T = Models.SearchPageResponseSearchResult>(\n parameters: Parameters.SearchByCQL,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: '/api/search',\n method: 'GET',\n params: {\n cql: parameters.cql,\n cqlcontext: parameters.cqlcontext,\n cursor: parameters.cursor,\n next: parameters.next,\n prev: parameters.prev,\n limit: parameters.limit,\n start: parameters.start,\n includeArchivedSpaces: parameters.includeArchivedSpaces,\n excludeCurrentSpaces: parameters.excludeCurrentSpaces,\n excerpt: parameters.excerpt,\n sitePermissionTypeFilter: parameters.sitePermissionTypeFilter,\n expand: parameters.expand,\n },\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Searches for users using user-specific queries from the [Confluence Query Language\n * (CQL)](https://developer.atlassian.com/cloud/confluence/advanced-searching-using-cql/).\n *\n * Note that some user fields may be set to null depending on the user's privacy settings. These are: email,\n * profilePicture, displayName, and timeZone.\n */\n async searchUser<T = Models.SearchPageResponseSearchResult>(\n parameters: Parameters.SearchUser,\n callback: Callback<T>,\n ): Promise<void>;\n /**\n * Searches for users using user-specific queries from the [Confluence Query Language\n * (CQL)](https://developer.atlassian.com/cloud/confluence/advanced-searching-using-cql/).\n *\n * Note that some user fields may be set to null depending on the user's privacy settings. These are: email,\n * profilePicture, displayName, and timeZone.\n */\n async searchUser<T = Models.SearchPageResponseSearchResult>(\n parameters: Parameters.SearchUser,\n callback?: never,\n ): Promise<T>;\n async searchUser<T = Models.SearchPageResponseSearchResult>(\n parameters: Parameters.SearchUser,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: '/api/search/user',\n method: 'GET',\n params: {\n cql: parameters.cql,\n start: parameters.start,\n limit: parameters.limit,\n expand: parameters.expand,\n },\n };\n\n return this.client.sendRequest(config, callback);\n }\n}\n"],"names":[],"mappings":"MAMa,MAAM,CAAA;AACG,IAAA,MAAA;AAApB,IAAA,WAAA,CAAoB,MAAc,EAAA;QAAd,IAAM,CAAA,MAAA,GAAN,MAAM;;AAgC1B,IAAA,MAAM,WAAW,CACf,UAAkC,EAClC,QAAsB,EAAA;AAEtB,QAAA,MAAM,MAAM,GAAkB;AAC5B,YAAA,GAAG,EAAE,aAAa;AAClB,YAAA,MAAM,EAAE,KAAK;AACb,YAAA,MAAM,EAAE;gBACN,GAAG,EAAE,UAAU,CAAC,GAAG;gBACnB,UAAU,EAAE,UAAU,CAAC,UAAU;gBACjC,MAAM,EAAE,UAAU,CAAC,MAAM;gBACzB,IAAI,EAAE,UAAU,CAAC,IAAI;gBACrB,IAAI,EAAE,UAAU,CAAC,IAAI;gBACrB,KAAK,EAAE,UAAU,CAAC,KAAK;gBACvB,KAAK,EAAE,UAAU,CAAC,KAAK;gBACvB,qBAAqB,EAAE,UAAU,CAAC,qBAAqB;gBACvD,oBAAoB,EAAE,UAAU,CAAC,oBAAoB;gBACrD,OAAO,EAAE,UAAU,CAAC,OAAO;gBAC3B,wBAAwB,EAAE,UAAU,CAAC,wBAAwB;gBAC7D,MAAM,EAAE,UAAU,CAAC,MAAM;AAC1B,aAAA;SACF;QAED,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC;;AAyBlD,IAAA,MAAM,UAAU,CACd,UAAiC,EACjC,QAAsB,EAAA;AAEtB,QAAA,MAAM,MAAM,GAAkB;AAC5B,YAAA,GAAG,EAAE,kBAAkB;AACvB,YAAA,MAAM,EAAE,KAAK;AACb,YAAA,MAAM,EAAE;gBACN,GAAG,EAAE,UAAU,CAAC,GAAG;gBACnB,KAAK,EAAE,UAAU,CAAC,KAAK;gBACvB,KAAK,EAAE,UAAU,CAAC,KAAK;gBACvB,MAAM,EAAE,UAAU,CAAC,MAAM;AAC1B,aAAA;SACF;QAED,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC;;AAEnD;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"settings.js","sources":["../../../../src/api/settings.ts"],"sourcesContent":["import type * as Models from './models';\nimport type * as Parameters from './parameters';\nimport type { Callback } from '../callback';\nimport type { Client } from '../clients';\nimport type { RequestConfig } from '../requestConfig';\n\nexport class Settings {\n constructor(private client: Client) {}\n\n /**\n * Returns the look and feel settings for the site or a single space. This includes attributes such as the color\n * scheme, padding, and border radius.\n *\n * The look and feel settings for a space can be inherited from the global look and feel settings or provided by a\n * theme.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: None\n */\n async getLookAndFeelSettings<T = Models.LookAndFeelSettings>(\n parameters: Parameters.GetLookAndFeelSettings | undefined,\n callback: Callback<T>,\n ): Promise<void>;\n /**\n * Returns the look and feel settings for the site or a single space. This includes attributes such as the color\n * scheme, padding, and border radius.\n *\n * The look and feel settings for a space can be inherited from the global look and feel settings or provided by a\n * theme.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: None\n */\n async getLookAndFeelSettings<T = Models.LookAndFeelSettings>(\n parameters?: Parameters.GetLookAndFeelSettings,\n callback?: never,\n ): Promise<T>;\n async getLookAndFeelSettings<T = Models.LookAndFeelSettings>(\n parameters?: Parameters.GetLookAndFeelSettings,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: '/api/settings/lookandfeel',\n method: 'GET',\n params: {\n spaceKey: parameters?.spaceKey,\n },\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Sets the look and feel settings to the default (global) settings, the custom settings, or the current theme's\n * settings for a space. The custom and theme settings can only be selected if there is already a theme set for a\n * space. Note, the default space settings are inherited from the current global settings.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Admin' permission for the space.\n */\n async updateLookAndFeel<T = Models.LookAndFeelSelection>(\n parameters: Parameters.UpdateLookAndFeel | undefined,\n callback: Callback<T>,\n ): Promise<void>;\n /**\n * Sets the look and feel settings to the default (global) settings, the custom settings, or the current theme's\n * settings for a space. The custom and theme settings can only be selected if there is already a theme set for a\n * space. Note, the default space settings are inherited from the current global settings.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Admin' permission for the space.\n */\n async updateLookAndFeel<T = Models.LookAndFeelSelection>(\n parameters?: Parameters.UpdateLookAndFeel,\n callback?: never,\n ): Promise<T>;\n async updateLookAndFeel<T = Models.LookAndFeelSelection>(\n parameters?: Parameters.UpdateLookAndFeel,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: '/api/settings/lookandfeel',\n method: 'PUT',\n data: {\n spaceKey: parameters?.spaceKey,\n lookAndFeelType: parameters?.lookAndFeelType,\n },\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Updates the look and feel settings for the site or for a single space. If custom settings exist, they are updated.\n * If no custom settings exist, then a set of custom settings is created.\n *\n * Note, if a theme is selected for a space, the space look and feel settings are provided by the theme and cannot be\n * overridden.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Admin' permission for the space.\n */\n async updateLookAndFeelSettings<T = Models.LookAndFeel>(\n parameters: Parameters.UpdateLookAndFeelSettings | undefined,\n callback: Callback<T>,\n ): Promise<void>;\n /**\n * Updates the look and feel settings for the site or for a single space. If custom settings exist, they are updated.\n * If no custom settings exist, then a set of custom settings is created.\n *\n * Note, if a theme is selected for a space, the space look and feel settings are provided by the theme and cannot be\n * overridden.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Admin' permission for the space.\n */\n async updateLookAndFeelSettings<T = Models.LookAndFeel>(\n parameters?: Parameters.UpdateLookAndFeelSettings,\n callback?: never,\n ): Promise<T>;\n async updateLookAndFeelSettings<T = Models.LookAndFeel>(\n parameters?: Parameters.UpdateLookAndFeelSettings,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: '/api/settings/lookandfeel/custom',\n method: 'POST',\n params: {\n spaceKey: parameters?.spaceKey,\n },\n data: {\n headings: parameters?.headings,\n links: parameters?.links,\n menus: parameters?.menus,\n header: parameters?.header,\n horizontalHeader: parameters?.horizontalHeader,\n content: parameters?.content,\n bordersAndDividers: parameters?.bordersAndDividers,\n spaceReference: parameters?.spaceReference,\n _links: parameters?.links,\n },\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Resets the custom look and feel settings for the site or a single space. This changes the values of the custom\n * settings to be the same as the default settings. It does not change which settings (default or custom) are\n * selected. Note, the default space settings are inherited from the current global settings.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Admin' permission for the space.\n */\n async resetLookAndFeelSettings<T = void>(\n parameters: Parameters.ResetLookAndFeelSettings | undefined,\n callback: Callback<T>,\n ): Promise<void>;\n /**\n * Resets the custom look and feel settings for the site or a single space. This changes the values of the custom\n * settings to be the same as the default settings. It does not change which settings (default or custom) are\n * selected. Note, the default space settings are inherited from the current global settings.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Admin' permission for the space.\n */\n async resetLookAndFeelSettings<T = void>(\n parameters?: Parameters.ResetLookAndFeelSettings,\n callback?: never,\n ): Promise<T>;\n async resetLookAndFeelSettings<T = void>(\n parameters?: Parameters.ResetLookAndFeelSettings,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: '/api/settings/lookandfeel/custom',\n method: 'DELETE',\n params: {\n spaceKey: parameters?.spaceKey,\n },\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Sets the look and feel settings to either the default settings or the custom settings, for the site or a single\n * space. Note, the default space settings are inherited from the current global settings.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Admin' permission for the space.\n */\n async setLookAndFeelSettings<T = unknown>(\n parameters: Parameters.SetLookAndFeelSettings | undefined,\n callback: Callback<T>,\n ): Promise<void>;\n /**\n * Sets the look and feel settings to either the default settings or the custom settings, for the site or a single\n * space. Note, the default space settings are inherited from the current global settings.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Admin' permission for the space.\n */\n async setLookAndFeelSettings<T = unknown>(\n parameters?: Parameters.SetLookAndFeelSettings,\n callback?: never,\n ): Promise<T>;\n async setLookAndFeelSettings<T = unknown>(\n parameters?: Parameters.SetLookAndFeelSettings,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: '/api/settings/lookandfeel/selected',\n method: 'PUT',\n params: {\n spaceKey: parameters?.spaceKey,\n },\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Returns the system information for the Confluence Cloud tenant. This information is used by Atlassian.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site\n * ('Can use' global permission).\n */\n async getSystemInfo<T = Models.SystemInfoEntity>(callback: Callback<T>): Promise<void>;\n /**\n * Returns the system information for the Confluence Cloud tenant. This information is used by Atlassian.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site\n * ('Can use' global permission).\n */\n async getSystemInfo<T = Models.SystemInfoEntity>(callback?: never): Promise<T>;\n async getSystemInfo<T = Models.SystemInfoEntity>(callback?: Callback<T>): Promise<void | T> {\n const config: RequestConfig = {\n url: '/api/settings/systemInfo',\n method: 'GET',\n };\n\n return this.client.sendRequest(config, callback);\n }\n}\n"],"names":[],"mappings":"MAMa,QAAQ,CAAA;AACC,IAAA,MAAA;AAApB,IAAA,WAAA,CAAoB,MAAc,EAAA;QAAd,IAAM,CAAA,MAAA,GAAN,MAAM;;AA4B1B,IAAA,MAAM,sBAAsB,CAC1B,UAA8C,EAC9C,QAAsB,EAAA;AAEtB,QAAA,MAAM,MAAM,GAAkB;AAC5B,YAAA,GAAG,EAAE,2BAA2B;AAChC,YAAA,MAAM,EAAE,KAAK;AACb,YAAA,MAAM,EAAE;gBACN,QAAQ,EAAE,UAAU,EAAE,QAAQ;AAC/B,aAAA;SACF;QAED,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC;;AAyBlD,IAAA,MAAM,iBAAiB,CACrB,UAAyC,EACzC,QAAsB,EAAA;AAEtB,QAAA,MAAM,MAAM,GAAkB;AAC5B,YAAA,GAAG,EAAE,2BAA2B;AAChC,YAAA,MAAM,EAAE,KAAK;AACb,YAAA,IAAI,EAAE;gBACJ,QAAQ,EAAE,UAAU,EAAE,QAAQ;gBAC9B,eAAe,EAAE,UAAU,EAAE,eAAe;AAC7C,aAAA;SACF;QAED,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC;;AA6BlD,IAAA,MAAM,yBAAyB,CAC7B,UAAiD,EACjD,QAAsB,EAAA;AAEtB,QAAA,MAAM,MAAM,GAAkB;AAC5B,YAAA,GAAG,EAAE,kCAAkC;AACvC,YAAA,MAAM,EAAE,MAAM;AACd,YAAA,MAAM,EAAE;gBACN,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EAAE,0BAA0B;AAC/B,YAAA,MAAM,EAAE,KAAK;SACd;QAED,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC;;AAEnD;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"space.js","sources":["../../../../src/api/space.ts"],"sourcesContent":["import type * as Models from './models';\nimport type * as Parameters from './parameters';\nimport type { Callback } from '../callback';\nimport type { Client } from '../clients';\nimport { paramSerializer } from '../paramSerializer';\nimport type { RequestConfig } from '../requestConfig';\n\nexport class Space {\n constructor(private client: Client) {}\n\n /**\n * Returns all spaces. The returned spaces are ordered alphabetically in ascending order by space key.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site\n * ('Can use' global permission). Note, the returned list will only contain spaces that the current user has\n * permission to view.\n */\n async getSpaces<T = Models.SpaceArray>(\n parameters: Parameters.GetSpaces | undefined,\n callback: Callback<T>,\n ): Promise<void>;\n /**\n * Returns all spaces. The returned spaces are ordered alphabetically in ascending order by space key.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to access the Confluence site\n * ('Can use' global permission). Note, the returned list will only contain spaces that the current user has\n * permission to view.\n */\n async getSpaces<T = Models.SpaceArray>(parameters?: Parameters.GetSpaces, callback?: never): Promise<T>;\n async getSpaces<T = Models.SpaceArray>(parameters?: Parameters.GetSpaces, callback?: Callback<T>): Promise<void | T> {\n const config: RequestConfig = {\n url: '/api/space',\n method: 'GET',\n params: {\n spaceKey: paramSerializer('spaceKey', parameters?.spaceKey),\n spaceId: parameters?.spaceId,\n type: parameters?.type,\n status: parameters?.status,\n label: parameters?.label,\n favourite: parameters?.favourite,\n favouriteUserKey: parameters?.favouriteUserKey,\n start: parameters?.start,\n limit: parameters?.limit,\n expand: parameters?.expand,\n },\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Creates a new space. Note, currently you cannot set space labels when creating a space.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Create Space(s)' global permission.\n */\n async createSpace<T = Models.Space>(\n parameters: Parameters.CreateSpace | undefined,\n callback: Callback<T>,\n ): Promise<void>;\n /**\n * Creates a new space. Note, currently you cannot set space labels when creating a space.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Create Space(s)' global permission.\n */\n async createSpace<T = Models.Space>(parameters?: Parameters.CreateSpace, callback?: never): Promise<T>;\n async createSpace<T = Models.Space>(parameters?: Parameters.CreateSpace, callback?: Callback<T>): Promise<void | T> {\n const config: RequestConfig = {\n url: '/api/space',\n method: 'POST',\n data: {\n key: parameters?.key,\n name: parameters?.name,\n description: parameters?.description,\n permissions: parameters?.permissions,\n },\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Creates a new space that is only visible to the creator. This method is the same as the [Create\n * space](#api-space-post) method with permissions set to the current user only. Note, currently you cannot set space\n * labels when creating a space.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Create Space(s)' global permission.\n */\n async createPrivateSpace<T = Models.Space>(\n parameters: Parameters.CreatePrivateSpace | undefined,\n callback: Callback<T>,\n ): Promise<void>;\n /**\n * Creates a new space that is only visible to the creator. This method is the same as the [Create\n * space](#api-space-post) method with permissions set to the current user only. Note, currently you cannot set space\n * labels when creating a space.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Create Space(s)' global permission.\n */\n async createPrivateSpace<T = Models.Space>(parameters?: Parameters.CreatePrivateSpace, callback?: never): Promise<T>;\n async createPrivateSpace<T = Models.Space>(\n parameters?: Parameters.CreatePrivateSpace,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: '/api/space/_private',\n method: 'POST',\n data: {\n key: parameters?.key,\n name: parameters?.name,\n description: parameters?.description,\n permissions: parameters?.permissions,\n },\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Returns a space. This includes information like the name, description, and permissions, but not the content in the\n * space.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'View' permission for the space.\n */\n async getSpace<T = Models.Space>(parameters: Parameters.GetSpace, callback: Callback<T>): Promise<void>;\n /**\n * Returns a space. This includes information like the name, description, and permissions, but not the content in the\n * space.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'View' permission for the space.\n */\n async getSpace<T = Models.Space>(parameters: Parameters.GetSpace, callback?: never): Promise<T>;\n async getSpace<T = Models.Space>(parameters: Parameters.GetSpace, callback?: Callback<T>): Promise<void | T> {\n const config: RequestConfig = {\n url: `/api/space/${parameters.spaceKey}`,\n method: 'GET',\n params: {\n expand: parameters.expand,\n },\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Updates the name, description, or homepage of a space.\n *\n * - For security reasons, permissions cannot be updated via the API and must be changed via the user interface instead.\n * - Currently you cannot set space labels when updating a space.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Admin' permission for the space.\n */\n async updateSpace<T = Models.Space>(parameters: Parameters.UpdateSpace, callback: Callback<T>): Promise<void>;\n /**\n * Updates the name, description, or homepage of a space.\n *\n * - For security reasons, permissions cannot be updated via the API and must be changed via the user interface instead.\n * - Currently you cannot set space labels when updating a space.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Admin' permission for the space.\n */\n async updateSpace<T = Models.Space>(parameters: Parameters.UpdateSpace, callback?: never): Promise<T>;\n async updateSpace<T = Models.Space>(parameters: Parameters.UpdateSpace, callback?: Callback<T>): Promise<void | T> {\n const config: RequestConfig = {\n url: `/api/space/${parameters.spaceKey}`,\n method: 'PUT',\n data: {\n name: parameters.name,\n description: parameters.description,\n homepage: parameters.homepage,\n type: parameters.type,\n status: parameters.status,\n },\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Deletes a space. Note, the space will be deleted in a long running task. Therefore, the space may not be deleted\n * yet when this method has returned. Clients should poll the status link that is returned in the response until the\n * task completes.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Admin' permission for the space.\n */\n async deleteSpace<T = Models.LongTask>(parameters: Parameters.DeleteSpace, callback: Callback<T>): Promise<void>;\n /**\n * Deletes a space. Note, the space will be deleted in a long running task. Therefore, the space may not be deleted\n * yet when this method has returned. Clients should poll the status link that is returned in the response until the\n * task completes.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Admin' permission for the space.\n */\n async deleteSpace<T = Models.LongTask>(parameters: Parameters.DeleteSpace, callback?: never): Promise<T>;\n async deleteSpace<T = Models.LongTask>(\n parameters: Parameters.DeleteSpace,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: `/api/space/${parameters.spaceKey}`,\n method: 'DELETE',\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Returns all content in a space. The returned content is grouped by type (pages then blogposts), then ordered by\n * content ID in ascending order.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'View' permission for the space. Note, the\n * returned list will only contain content that the current user has permission to view.\n */\n async getContentForSpace<T = Models.ContentArray>(\n parameters: Parameters.GetContentForSpace,\n callback: Callback<T>,\n ): Promise<void>;\n /**\n * Returns all content in a space. The returned content is grouped by type (pages then blogposts), then ordered by\n * content ID in ascending order.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'View' permission for the space. Note, the\n * returned list will only contain content that the current user has permission to view.\n */\n async getContentForSpace<T = Models.ContentArray>(\n parameters: Parameters.GetContentForSpace,\n callback?: never,\n ): Promise<T>;\n async getContentForSpace<T = Models.ContentArray>(\n parameters: Parameters.GetContentForSpace,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: `/api/space/${parameters.spaceKey}/content`,\n method: 'GET',\n params: {\n depth: parameters.depth,\n expand: parameters.expand,\n start: parameters.start,\n limit: parameters.limit,\n },\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Returns all content of a given type, in a space. The returned content is ordered by content ID in ascending order.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'View' permission for the space. Note, the\n * returned list will only contain content that the current user has permission to view.\n */\n async getContentByTypeForSpace<T = Models.ContentArray>(\n parameters: Parameters.GetContentByTypeForSpace,\n callback: Callback<T>,\n ): Promise<void>;\n /**\n * Returns all content of a given type, in a space. The returned content is ordered by content ID in ascending order.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'View' permission for the space. Note, the\n * returned list will only contain content that the current user has permission to view.\n */\n async getContentByTypeForSpace<T = Models.ContentArray>(\n parameters: Parameters.GetContentByTypeForSpace,\n callback?: never,\n ): Promise<T>;\n async getContentByTypeForSpace<T = Models.ContentArray>(\n parameters: Parameters.GetContentByTypeForSpace,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: `/api/space/${parameters.spaceKey}/content/${parameters.type}`,\n method: 'GET',\n params: {\n depth: parameters.depth,\n expand: parameters.expand,\n start: parameters.start,\n limit: parameters.limit,\n },\n };\n\n return this.client.sendRequest(config, callback);\n }\n}\n"],"names":[],"mappings":";;MAOa,KAAK,CAAA;AACI,IAAA,MAAA;AAApB,IAAA,WAAA,CAAoB,MAAc,EAAA;QAAd,IAAM,CAAA,MAAA,GAAN,MAAM;;AAqB1B,IAAA,MAAM,SAAS,CAAwB,UAAiC,EAAE,QAAsB,EAAA;AAC9F,QAAA,MAAM,MAAM,GAAkB;AAC5B,YAAA,GAAG,EAAE,YAAY;AACjB,YAAA,MAAM,EAAE,KAAK;AACb,YAAA,MAAM,EAAE;gBACN,QAAQ,EAAE,eAAe,CAAC,UAAU,EAAE,UAAU,EAAE,QAAQ,CAAC;gBAC3D,OAAO,EAAE,UAAU,EAAE,OAAO;gBAC5B,IAAI,EAAE,UAAU,EAAE,IAAI;gBACtB,MAAM,EAAE,UAAU,EAAE,MAAM;gBAC1B,KAAK,EAAE,UAAU,EAAE,KAAK;gBACxB,SAAS,EAAE,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AK,EAAE,UAAU,CAAC,KAAK;gBACvB,MAAM,EAAE,UAAU,CAAC,MAAM;gBACzB,KAAK,EAAE,UAAU,CAAC,KAAK;gBACvB,KAAK,EAAE,UAAU,CAAC,KAAK;AACxB,aAAA;SACF;QAED,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC;;AAuBlD,IAAA,MAAM,wBAAwB,CAC5B,UAA+C,EAC/C,QAAsB,EAAA;AAEtB,QAAA,MAAM,MAAM,GAAkB;YAC5B,GAAG,EAAE,cAAc,UAAU,CAAC,QAAQ,CAAY,SAAA,EAAA,UAAU,CAAC,IAAI,CAAE,CAAA;AACnE,YAAA,MAAM,EAAE,KAAK;AACb,YAAA,MAAM,EAAE;gBACN,KAAK,EAAE,UAAU,CAAC,KAAK;gBACvB,MAAM,EAAE,UAAU,CAAC,MAAM;gBACzB,KAAK,EAAE,UAAU,CAAC,KAAK;gBACvB,KAAK,EAAE,UAAU,CAAC,KAAK;AACxB,aAAA;SACF;QAED,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC;;AAEnD;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"spacePermissions.js","sources":["../../../../src/api/spacePermissions.ts"],"sourcesContent":["import type * as Models from './models';\nimport type * as Parameters from './parameters';\nimport type { Callback } from '../callback';\nimport type { Client } from '../clients';\nimport type { RequestConfig } from '../requestConfig';\n\nexport class SpacePermissions {\n constructor(private client: Client) {}\n\n /**\n * Adds new permission to space.\n *\n * If the permission to be added is a group permission, the group can be identified by its group name or group id.\n *\n * Note: Apps cannot access this REST resource - including when utilizing user impersonation.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Admin' permission for the space.\n */\n async addPermissionToSpace<T = Models.SpacePermissionV2>(\n parameters: Parameters.AddPermissionToSpace,\n callback: Callback<T>,\n ): Promise<void>;\n /**\n * Adds new permission to space.\n *\n * If the permission to be added is a group permission, the group can be identified by its group name or group id.\n *\n * Note: Apps cannot access this REST resource - including when utilizing user impersonation.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Admin' permission for the space.\n */\n async addPermissionToSpace<T = Models.SpacePermissionV2>(\n parameters: Parameters.AddPermissionToSpace,\n callback?: never,\n ): Promise<T>;\n async addPermissionToSpace<T = Models.SpacePermissionV2>(\n parameters: Parameters.AddPermissionToSpace,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: `/api/space/${parameters.spaceKey}/permission`,\n method: 'POST',\n data: {\n subject: parameters.subject,\n operation: parameters.operation,\n _links: parameters.links,\n },\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Adds new custom content permission to space.\n *\n * If the permission to be added is a group permission, the group can be identified by its group name or group id.\n *\n * Note: Only apps can access this REST resource and only make changes to the respective app permissions.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Admin' permission for the space.\n */\n async addCustomContentPermissions<T = unknown>(\n parameters: Parameters.AddCustomContentPermissions,\n callback: Callback<T>,\n ): Promise<void>;\n /**\n * Adds new custom content permission to space.\n *\n * If the permission to be added is a group permission, the group can be identified by its group name or group id.\n *\n * Note: Only apps can access this REST resource and only make changes to the respective app permissions.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Admin' permission for the space.\n */\n async addCustomContentPermissions<T = unknown>(\n parameters: Parameters.AddCustomContentPermissions,\n callback?: never,\n ): Promise<T>;\n async addCustomContentPermissions<T = unknown>(\n parameters: Parameters.AddCustomContentPermissions,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: `/api/space/${parameters.spaceKey}/permission/custom-content`,\n method: 'POST',\n data: {\n subject: parameters.subject,\n operations: parameters.operations,\n },\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Removes a space permission. Note that removing Read Space permission for a user or group will remove all the space\n * permissions for that user or group.\n *\n * Note: Apps cannot access this REST resource - including when utilizing user impersonation.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Admin' permission for the space.\n */\n async removePermission<T = void>(parameters: Parameters.RemovePermission, callback: Callback<T>): Promise<void>;\n /**\n * Removes a space permission. Note that removing Read Space permission for a user or group will remove all the space\n * permissions for that user or group.\n *\n * Note: Apps cannot access this REST resource - including when utilizing user impersonation.\n *\n * **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Admin' permission for the space.\n */\n async removePermission<T = void>(parameters: Parameters.RemovePermission, callback?: never): Promise<T>;\n async removePermission<T = void>(parameters: Parameters.RemovePermission, callback?: Callback<T>): Promise<void | T> {\n const config: RequestConfig = {\n url: `/api/space/${parameters.spaceKey}/permission/${parameters.id}`,\n method: 'DELETE',\n };\n\n return this.client.sendRequest(config, callback);\n }\n}\n"],"names":[],"mappings":"MAMa,gBAAgB,CAAA;AACP,IAAA,MAAA;AAApB,IAAA,WAAA,CAAoB,MAAc,EAAA;QAAd,IAAM,CAAA,MAAA,GAAN,MAAM;;AA4B1B,IAAA,MAAM,oBAAoB,CACxB,UAA2C,EAC3C,QAAsB,EAAA;AAEtB,QAAA,MAAM,MAAM,GAAkB;AAC5B,YAAA,GAAG,EAAE,CAAA,WAAA,EAAc,UAAU,CAAC,QAAQ,CAAa,WAAA,CAAA;AACnD,YAAA,MAAM,EAAE,MAAM;AACd,YAAA,IAAI,EAAE;gBACJ,OAAO,EAAE,UAAU,CAAC,OAAO;gBAC3B,SAAS,EAAE,UAAU,CAAC,SAAS;gBAC/B,MAAM,EAAE,UAAU,CAAC,KAAK;AACzB,aAAA;SACF;QAED,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC;;AA6BlD,IAAA,MAAM,2BAA2B,CAC/B,UAAkD,EAClD,QAAsB,EAAA;AAEtB,QAAA,MAAM,MAAM,GAAkB;AAC5B,YAAA,GAAG,EAAE,CAAA,WAAA,EAAc,UAAU,CAAC,QAAQ,CAA4B,0BAAA,CAAA;AAClE,YAAA,MAAM,EAAE,MAAM;AACd,YAAA,IAAI,EAAE;gBACJ,OAAO,EAAE,UAAU,CAAC,OAAO;gBAC3B,UAAU,EAAE,UAAU,CAAC,UAAU;AAClC,aAAA;SACF;QAED,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC;;AAqBlD,IAAA,MAAM,gBAAgB,CAAW,UAAuC,EAAE,QAAsB,EAAA;AAC9F,QAAA,MAAM,MAAM,GAAkB;YAC5B,GAAG,EAAE,cAAc,UAAU,CAAC,QAAQ,CAAe,YAAA,EAAA,UAAU,CAAC,EAAE,CAAE,CAAA;AACpE,YAAA,MAAM,EAAE,QAAQ;SACjB;QAED,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC;;AAEnD;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"spaceProperties.js","sources":["../../../../src/api/spaceProperties.ts"],"sourcesContent":["import type * as Models from './models';\nimport type * as Parameters from './parameters';\nimport type { Callback } from '../callback';\nimport type { Client } from '../clients';\nimport type { RequestConfig } from '../requestConfig';\n\nexport class SpaceProperties {\n constructor(private client: Client) {}\n\n /**\n * Returns all properties for the given space. Space properties are a key-value storage associated with a space.\n *\n * **[Permissions required](https://confluence.atlassian.com/x/_AozKw)**: ‘View’ permission for the space.\n */\n async getSpaceProperties<T = Models.SpacePropertyArray>(\n parameters: Parameters.GetSpaceProperties,\n callback: Callback<T>,\n ): Promise<void>;\n /**\n * Returns all properties for the given space. Space properties are a key-value storage associated with a space.\n *\n * **[Permissions required](https://confluence.atlassian.com/x/_AozKw)**: ‘View’ permission for the space.\n */\n async getSpaceProperties<T = Models.SpacePropertyArray>(\n parameters: Parameters.GetSpaceProperties,\n callback?: never,\n ): Promise<T>;\n async getSpaceProperties<T = Models.SpacePropertyArray>(\n parameters: Parameters.GetSpaceProperties,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: `/api/space/${parameters.spaceKey}/property`,\n method: 'GET',\n params: {\n expand: parameters.expand,\n start: parameters.start,\n limit: parameters.limit,\n },\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Creates a new space property.\n *\n * **[Permissions required](https://confluence.atlassian.com/x/_AozKw)**: ‘Admin’ permission for the space.\n */\n async createSpaceProperty<T = Models.SpaceProperty>(\n parameters: Parameters.CreateSpaceProperty,\n callback: Callback<T>,\n ): Promise<void>;\n /**\n * Creates a new space property.\n *\n * **[Permissions required](https://confluence.atlassian.com/x/_AozKw)**: ‘Admin’ permission for the space.\n */\n async createSpaceProperty<T = Models.SpaceProperty>(\n parameters: Parameters.CreateSpaceProperty,\n callback?: never,\n ): Promise<T>;\n async createSpaceProperty<T = Models.SpaceProperty>(\n parameters: Parameters.CreateSpaceProperty,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: `/api/space/${parameters.spaceKey}/property`,\n method: 'POST',\n data: {\n key: parameters.key,\n value: parameters.value,\n space: parameters.space,\n },\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Returns a space property.\n *\n * **[Permissions required](https://confluence.atlassian.com/x/_AozKw)**: ‘View’ permission for the space.\n */\n async getSpaceProperty<T = Models.SpaceProperty>(\n parameters: Parameters.GetSpaceProperty,\n callback: Callback<T>,\n ): Promise<void>;\n /**\n * Returns a space property.\n *\n * **[Permissions required](https://confluence.atlassian.com/x/_AozKw)**: ‘View’ permission for the space.\n */\n async getSpaceProperty<T = Models.SpaceProperty>(\n parameters: Parameters.GetSpaceProperty,\n callback?: never,\n ): Promise<T>;\n async getSpaceProperty<T = Models.SpaceProperty>(\n parameters: Parameters.GetSpaceProperty,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: `/api/space/${parameters.spaceKey}/property/${parameters.key}`,\n method: 'GET',\n params: {\n expand: parameters.expand,\n },\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Creates a new space property. This is the same as `POST /api/space/{spaceKey}/property` but the key for the\n * property is passed as a path parameter, rather than in the request body.\n *\n * **[Permissions required](https://confluence.atlassian.com/x/_AozKw)**: ‘Admin’ permission for the space.\n */\n async createSpacePropertyForKey<T = Models.SpaceProperty>(\n parameters: Parameters.CreateSpacePropertyForKey,\n callback: Callback<T>,\n ): Promise<void>;\n /**\n * Creates a new space property. This is the same as `POST /api/space/{spaceKey}/property` but the key for the\n * property is passed as a path parameter, rather than in the request body.\n *\n * **[Permissions required](https://confluence.atlassian.com/x/_AozKw)**: ‘Admin’ permission for the space.\n */\n async createSpacePropertyForKey<T = Models.SpaceProperty>(\n parameters: Parameters.CreateSpacePropertyForKey,\n callback?: never,\n ): Promise<T>;\n async createSpacePropertyForKey<T = Models.SpaceProperty>(\n parameters: Parameters.CreateSpacePropertyForKey,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: `/api/space/${parameters.spaceKey}/property/${parameters.key}`,\n method: 'POST',\n data: {\n value: parameters.value,\n },\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Updates a space property. Note, you cannot update the key of a space property, only the value.\n *\n * **[Permissions required](https://confluence.atlassian.com/x/_AozKw)**: ‘Admin’ permission for the space.\n */\n async updateSpaceProperty<T = Models.SpaceProperty>(\n parameters: Parameters.UpdateSpaceProperty,\n callback: Callback<T>,\n ): Promise<void>;\n /**\n * Updates a space property. Note, you cannot update the key of a space property, only the value.\n *\n * **[Permissions required](https://confluence.atlassian.com/x/_AozKw)**: ‘Admin’ permission for the space.\n */\n async updateSpaceProperty<T = Models.SpaceProperty>(\n parameters: Parameters.UpdateSpaceProperty,\n callback?: never,\n ): Promise<T>;\n async updateSpaceProperty<T = Models.SpaceProperty>(\n parameters: Parameters.UpdateSpaceProperty,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: `/api/space/${parameters.spaceKey}/property/${parameters.key}`,\n method: 'PUT',\n data: {\n value: parameters.value,\n version: parameters.version,\n },\n };\n\n return this.client.sendRequest(config, callback);\n }\n\n /**\n * Deletes a space property.\n *\n * **[Permissions required](https://confluence.atlassian.com/x/_AozKw)**: ‘Admin’ permission for the space.\n */\n async deleteSpaceProperty<T = void>(parameters: Parameters.DeleteSpaceProperty, callback: Callback<T>): Promise<void>;\n /**\n * Deletes a space property.\n *\n * **[Permissions required](https://confluence.atlassian.com/x/_AozKw)**: ‘Admin’ permission for the space.\n */\n async deleteSpaceProperty<T = void>(parameters: Parameters.DeleteSpaceProperty, callback?: never): Promise<T>;\n async deleteSpaceProperty<T = void>(\n parameters: Parameters.DeleteSpaceProperty,\n callback?: Callback<T>,\n ): Promise<void | T> {\n const config: RequestConfig = {\n url: `/api/space/${parameters.spaceKey}/property/${parameters.key}`,\n method: 'DELETE',\n };\n\n return this.client.sendRequest(config, callback);\n }\n}\n"],"names":[],"mappings":"MAMa,eAAe,CAAA;AACN,IAAA,MAAA;AAApB,IAAA,WAAA,CAAoB,MAAc,EAAA;QAAd,IAAM,CAAA,MAAA,GAAN,MAAM;;AAoB1B,IAAA,MAAM,kBAAkB,CACtB,UAAyC,EACzC,QAAsB,EAAA;AAEtB,QAAA,MAAM,MAAM,GAAkB;AAC5B,YAAA,GAAG,EAAE,CAAA,WAAA,EAAc,UAAU,CAAC,QAAQ,CAAW,SAAA,CAAA;AACjD,YAAA,MAAM,EAAE,KAAK;AACb,YAAA,MAAM,EAAE;gBACN,MAAM,EAAE,UAAU,CAAC,MAAM;gBACzB,KAAK,EAAE,UAAU,CAAC,KAAK;gBACvB,KAAK,EAAE,UAAU,CAAC,KAAK;AACxB,aAAA;SACF;QAED,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC;;AAqBlD,IAAA,MAAM,mBAAmB,CACvB,UAA0C,EAC1C,QAAsB,EAAA;AAEtB,QAAA,MAAM,MAAM,GAAkB;AAC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