confluence.js 1.6.2 → 1.7.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/.prettierrc +8 -3
- package/CHANGELOG.md +8 -0
- package/README.md +16 -0
- package/out/api/models/addContentRestriction.d.ts +8 -3
- package/out/api/models/appDescriptor.d.ts +6 -3
- package/out/api/models/asyncContentBody.d.ts +2 -2
- package/out/api/models/attachment.d.ts +1 -0
- package/out/api/models/attachmentUpdate.d.ts +1 -1
- package/out/api/models/auditRecordCreate.d.ts +6 -2
- package/out/api/models/content.d.ts +2 -0
- package/out/api/models/contentBlueprintDraft.d.ts +2 -1
- package/out/api/models/contentCreate.d.ts +1 -0
- package/out/api/models/contentRestrictionUpdate.d.ts +8 -3
- package/out/api/models/contentTemplateUpdate.d.ts +4 -1
- package/out/api/models/contentUpdate.d.ts +1 -0
- package/out/api/models/labeledContentType.js +1 -1
- package/out/api/models/labeledContentType.js.map +1 -1
- package/out/api/models/lifecycle.d.ts +6 -2
- package/out/api/parameters/addLabelsToContent.d.ts +2 -1
- package/out/api/parameters/createContent.d.ts +12 -3
- package/out/api/parameters/createContent.js +13 -4
- package/out/api/parameters/createContent.js.map +1 -1
- package/out/api/parameters/createRelationship.d.ts +4 -1
- package/out/api/parameters/createUserProperty.d.ts +2 -2
- package/out/api/parameters/delete.d.ts +4 -1
- package/out/api/parameters/deleteRelationship.d.ts +8 -5
- package/out/api/parameters/deleteUserProperty.d.ts +2 -2
- package/out/api/parameters/findSourcesForTarget.d.ts +2 -1
- package/out/api/parameters/findTargetFromSource.d.ts +2 -1
- package/out/api/parameters/getAttachments.d.ts +12 -3
- package/out/api/parameters/getAttachments.js +13 -4
- package/out/api/parameters/getAttachments.js.map +1 -1
- package/out/api/parameters/getAvailableContentStates.d.ts +1 -1
- package/out/api/parameters/getContent.d.ts +16 -4
- package/out/api/parameters/getContent.js +13 -4
- package/out/api/parameters/getContent.js.map +1 -1
- package/out/api/parameters/getContentById.d.ts +12 -3
- package/out/api/parameters/getContentById.js +13 -4
- package/out/api/parameters/getContentById.js.map +1 -1
- package/out/api/parameters/getContentProperties.d.ts +4 -2
- package/out/api/parameters/getContentProperty.d.ts +10 -8
- package/out/api/parameters/getContentTemplates.d.ts +4 -1
- package/out/api/parameters/getContentVersion.d.ts +2 -1
- package/out/api/parameters/getContentVersions.d.ts +2 -1
- package/out/api/parameters/getDescendantsOfType.d.ts +12 -3
- package/out/api/parameters/getDescendantsOfType.js +13 -4
- package/out/api/parameters/getDescendantsOfType.js.map +1 -1
- package/out/api/parameters/getHistoryForContent.d.ts +2 -1
- package/out/api/parameters/getLabelsForContent.d.ts +2 -1
- package/out/api/parameters/getRelationship.d.ts +6 -2
- package/out/api/parameters/getSpaces.d.ts +10 -3
- package/out/api/parameters/removeGroupById.d.ts +2 -2
- package/out/api/parameters/removeGroupByName.d.ts +2 -2
- package/out/api/parameters/removeModules.d.ts +2 -1
- package/out/api/parameters/restoreContentVersion.d.ts +2 -1
- package/out/api/parameters/search.d.ts +2 -2
- package/out/api/parameters/updateAttachmentProperties.d.ts +15 -15
- package/out/api/parameters/updateUserProperty.d.ts +2 -2
- package/out/api/space.js +1 -0
- package/out/api/space.js.map +1 -1
- package/out/clients/baseClient.d.ts +0 -1
- package/out/clients/baseClient.js +2 -2
- package/out/clients/baseClient.js.map +1 -1
- package/out/clients/confluenceClient.d.ts +2 -0
- package/out/clients/confluenceClient.js +3 -2
- package/out/clients/confluenceClient.js.map +1 -1
- package/out/clients/serverClient.d.ts +2 -1
- package/out/clients/serverClient.js +3 -3
- package/out/clients/serverClient.js.map +1 -1
- package/out/config.d.ts +7 -7
- package/out/server/models/content.d.ts +2 -0
- package/out/server/parameters/createAuditRecord.d.ts +6 -2
- package/out/server/parameters/getAttachments.d.ts +12 -3
- package/out/server/parameters/getAttachments.js +13 -4
- package/out/server/parameters/getAttachments.js.map +1 -1
- package/out/services/authenticationService/authenticationService.js +1 -1
- package/out/services/authenticationService/authenticationService.js.map +1 -1
- package/out/services/authenticationService/authentications/createJWTAuthentication.js +1 -1
- package/out/services/authenticationService/authentications/createJWTAuthentication.js.map +1 -1
- package/out/services/authenticationService/base64Encoder.d.ts +1 -3
- package/out/services/authenticationService/base64Encoder.js +3 -5
- package/out/services/authenticationService/base64Encoder.js.map +1 -1
- package/out/utilityTypes.d.ts +5 -1
- package/package.json +20 -19
- package/src/api/audit.ts +9 -9
- package/src/api/content.ts +8 -8
- package/src/api/contentAttachments.ts +10 -10
- package/src/api/contentBody.ts +6 -6
- package/src/api/contentChildrenAndDescendants.ts +11 -11
- package/src/api/contentComments.ts +2 -2
- package/src/api/contentContentState.ts +10 -10
- package/src/api/contentLabels.ts +7 -7
- package/src/api/contentMacroBody.ts +6 -6
- package/src/api/contentPermissions.ts +4 -4
- package/src/api/contentProperties.ts +11 -11
- package/src/api/contentRestrictions.ts +26 -26
- package/src/api/contentStates.ts +12 -12
- package/src/api/contentVersions.ts +6 -6
- package/src/api/contentWatches.ts +11 -11
- package/src/api/dynamicModules.ts +1 -1
- package/src/api/experimental.ts +9 -9
- package/src/api/group.ts +18 -18
- package/src/api/inlineTasks.ts +1 -1
- package/src/api/labelInfo.ts +2 -2
- package/src/api/longRunningTask.ts +2 -2
- package/src/api/models/addContentRestriction.ts +8 -3
- package/src/api/models/appDescriptor.ts +6 -3
- package/src/api/models/asyncContentBody.ts +2 -2
- package/src/api/models/attachment.ts +1 -0
- package/src/api/models/attachmentContainer.ts +1 -1
- package/src/api/models/attachmentUpdate.ts +1 -1
- package/src/api/models/auditRecordCreate.ts +6 -2
- package/src/api/models/content.ts +2 -0
- package/src/api/models/contentBlueprintDraft.ts +2 -1
- package/src/api/models/contentCreate.ts +1 -0
- package/src/api/models/contentRestrictionUpdate.ts +8 -3
- package/src/api/models/contentTemplateUpdate.ts +4 -1
- package/src/api/models/contentUpdate.ts +1 -0
- package/src/api/models/lifecycle.ts +6 -2
- package/src/api/parameters/addLabelsToContent.ts +2 -1
- package/src/api/parameters/createContent.ts +12 -3
- package/src/api/parameters/createRelationship.ts +4 -1
- package/src/api/parameters/createUserProperty.ts +2 -2
- package/src/api/parameters/delete.ts +4 -1
- package/src/api/parameters/deleteRelationship.ts +8 -5
- package/src/api/parameters/deleteUserProperty.ts +2 -2
- package/src/api/parameters/findSourcesForTarget.ts +2 -1
- package/src/api/parameters/findTargetFromSource.ts +2 -1
- package/src/api/parameters/getAttachments.ts +12 -3
- package/src/api/parameters/getAvailableContentStates.ts +1 -1
- package/src/api/parameters/getContent.ts +16 -4
- package/src/api/parameters/getContentById.ts +12 -3
- package/src/api/parameters/getContentProperties.ts +4 -2
- package/src/api/parameters/getContentProperty.ts +10 -8
- package/src/api/parameters/getContentTemplates.ts +4 -1
- package/src/api/parameters/getContentVersion.ts +2 -1
- package/src/api/parameters/getContentVersions.ts +2 -1
- package/src/api/parameters/getDescendantsOfType.ts +12 -3
- package/src/api/parameters/getHistoryForContent.ts +2 -1
- package/src/api/parameters/getLabelsForContent.ts +2 -1
- package/src/api/parameters/getRelationship.ts +6 -2
- package/src/api/parameters/getSpaces.ts +10 -3
- package/src/api/parameters/removeGroupById.ts +2 -2
- package/src/api/parameters/removeGroupByName.ts +2 -2
- package/src/api/parameters/removeModules.ts +2 -1
- package/src/api/parameters/restoreContentVersion.ts +2 -1
- package/src/api/parameters/search.ts +2 -2
- package/src/api/parameters/updateAttachmentProperties.ts +15 -15
- package/src/api/parameters/updateUserProperty.ts +2 -2
- package/src/api/relation.ts +8 -8
- package/src/api/search.ts +7 -7
- package/src/api/settings.ts +12 -12
- package/src/api/space.ts +8 -7
- package/src/api/spacePermissions.ts +5 -5
- package/src/api/spaceProperties.ts +10 -10
- package/src/api/spaceSettings.ts +4 -4
- package/src/api/template.ts +10 -10
- package/src/api/themes.ts +1 -1
- package/src/api/users.ts +13 -13
- package/src/clients/baseClient.ts +4 -4
- package/src/clients/confluenceClient.ts +8 -0
- package/src/clients/serverClient.ts +7 -1
- package/src/config.ts +19 -11
- package/src/server/audit.ts +9 -9
- package/src/server/content.ts +49 -49
- package/src/server/contentBody.ts +2 -2
- package/src/server/group.ts +2 -2
- package/src/server/longTask.ts +1 -1
- package/src/server/models/content.ts +2 -0
- package/src/server/parameters/createAuditRecord.ts +6 -2
- package/src/server/parameters/getAttachments.ts +12 -3
- package/src/server/parameters/updateAttachmentData.ts +1 -1
- package/src/server/search.ts +2 -2
- package/src/server/space.ts +16 -16
- package/src/server/user.ts +7 -7
- package/src/services/authenticationService/authentications/createJWTAuthentication.ts +1 -4
- package/src/services/authenticationService/base64Encoder.ts +5 -5
- package/src/utilityTypes.ts +7 -1
package/.prettierrc
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
### 1.7.0
|
|
4
|
+
|
|
5
|
+
- `apiPrefix` added to code for allowing to use custom API prefix for all clients. Thanks to [Petr Plenkov](https://github.com/ThePlenkov) for pull request.
|
|
6
|
+
|
|
7
|
+
### 1.6.3
|
|
8
|
+
|
|
9
|
+
- `atlas_doc_format` added to some models. Thanks to [Andrew McClenaghan](https://github.com/andymac4182) for pull request.
|
|
10
|
+
|
|
3
11
|
### 1.6.2
|
|
4
12
|
|
|
5
13
|
- Badge fixed
|
package/README.md
CHANGED
|
@@ -25,6 +25,7 @@ Usability, consistency, and performance are key focuses of confluence.js, and it
|
|
|
25
25
|
- [JWT](#jwt)
|
|
26
26
|
- [Personal access token](#personal-access-token)
|
|
27
27
|
- [Your first request and using algorithm](#your-first-request-and-using-algorithm)
|
|
28
|
+
- [`apiPrefix` config parameter](#apiprefix-config-parameter)
|
|
28
29
|
- [Decreasing Webpack bundle size](#decreasing-webpack-bundle-size)
|
|
29
30
|
- [Take a look at our other products](#take-a-look-at-our-other-products)
|
|
30
31
|
- [License](#license)
|
|
@@ -271,6 +272,21 @@ The name of the methods is the name of the endpoint in the group without spaces
|
|
|
271
272
|
|
|
272
273
|
The parameters depend on the specific endpoint. For more information, [see here](https://mrrefactoring.github.io/confluence.js/).
|
|
273
274
|
|
|
275
|
+
#### `apiPrefix` config parameter
|
|
276
|
+
|
|
277
|
+
The `apiPrefix` parameter is used to specify the prefix for the API. For example, if you use the custom domain `https://mydomain.atlassian.net/api` for API.
|
|
278
|
+
|
|
279
|
+
Example of use:
|
|
280
|
+
|
|
281
|
+
```typescript
|
|
282
|
+
import { ConfluenceClient } from 'confluence.js';
|
|
283
|
+
|
|
284
|
+
const client = new ConfluenceClient({
|
|
285
|
+
host: 'https://your-domain.atlassian.net',
|
|
286
|
+
apiPrefix: '/api',
|
|
287
|
+
});
|
|
288
|
+
```
|
|
289
|
+
|
|
274
290
|
## Decreasing Webpack bundle size
|
|
275
291
|
|
|
276
292
|
If you use Webpack and need to reduce the size of the assembly, you can create your client with only the groups you use.
|
|
@@ -6,18 +6,23 @@ export interface AddContentRestriction {
|
|
|
6
6
|
* this object.
|
|
7
7
|
*/
|
|
8
8
|
restrictions: {
|
|
9
|
-
/**
|
|
9
|
+
/**
|
|
10
|
+
* The users that the restrictions will be applied to. This array must have at least one item, otherwise it should
|
|
11
|
+
* be omitted.
|
|
12
|
+
*/
|
|
10
13
|
user?: {
|
|
11
14
|
/** Set to 'known'. */
|
|
12
15
|
type: string;
|
|
13
16
|
/**
|
|
14
17
|
* This property is no longer available and will be removed from the documentation soon. Use `accountId` instead.
|
|
15
|
-
* See the [deprecation notice](/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/) for
|
|
18
|
+
* See the [deprecation notice](/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/) for
|
|
19
|
+
* details.
|
|
16
20
|
*/
|
|
17
21
|
username?: string;
|
|
18
22
|
/**
|
|
19
23
|
* This property is no longer available and will be removed from the documentation soon. Use `accountId` instead.
|
|
20
|
-
* See the [deprecation notice](/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/) for
|
|
24
|
+
* See the [deprecation notice](/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/) for
|
|
25
|
+
* details.
|
|
21
26
|
*/
|
|
22
27
|
userKey?: string;
|
|
23
28
|
/**
|
|
@@ -8,7 +8,8 @@ export interface AppDescriptor {
|
|
|
8
8
|
/**
|
|
9
9
|
* The base url of the remote app, which is used for all communications back to the app instance.
|
|
10
10
|
*
|
|
11
|
-
* The baseUrl must start with `https://` to ensure that all data is sent securely between our cloud instances and
|
|
11
|
+
* The baseUrl must start with `https://` to ensure that all data is sent securely between our cloud instances and
|
|
12
|
+
* your app.
|
|
12
13
|
*
|
|
13
14
|
* Note: each app must have a unique baseUrl. If you would like to serve multiple apps from the same host, consider
|
|
14
15
|
* adding a path prefix into the baseUrl.
|
|
@@ -23,7 +24,8 @@ export interface AppDescriptor {
|
|
|
23
24
|
* app as a private version, and have a seamless transition for those beta customers (and existing customers) once the
|
|
24
25
|
* major revision is launched.
|
|
25
26
|
*
|
|
26
|
-
* Vendors can accomplish this by listing a new private version of their app, with a new descriptor hosted at a new
|
|
27
|
+
* Vendors can accomplish this by listing a new private version of their app, with a new descriptor hosted at a new
|
|
28
|
+
* URL.
|
|
27
29
|
*
|
|
28
30
|
* They use the Atlassian Marketplace's access token facilities to share this version with customers (or for internal
|
|
29
31
|
* use). When this version is ready to be taken live, it can be transitioned from private to public, and all customers
|
|
@@ -31,7 +33,8 @@ export interface AppDescriptor {
|
|
|
31
33
|
*
|
|
32
34
|
* It's important to note that this approach allows vendors to create new versions manually, despite the fact that in
|
|
33
35
|
* the common case, the versions are automatically created. This has a few benefits-- for example, it gives vendors
|
|
34
|
-
* the ability to change their descriptor URL if they need to (the descriptor URL will be immutable for existing
|
|
36
|
+
* the ability to change their descriptor URL if they need to (the descriptor URL will be immutable for existing
|
|
37
|
+
* versions).
|
|
35
38
|
*/
|
|
36
39
|
apiVersion?: number;
|
|
37
40
|
/**
|
|
@@ -7,8 +7,8 @@ export interface AsyncContentBody {
|
|
|
7
7
|
renderTaskId?: string;
|
|
8
8
|
error?: string;
|
|
9
9
|
/**
|
|
10
|
-
* Rerunning is reserved for when the job is working, but there is a previous run's value in the cache. You may
|
|
11
|
-
*
|
|
10
|
+
* Rerunning is reserved for when the job is working, but there is a previous run's value in the cache. You may choose
|
|
11
|
+
* to continue polling, or use the cached value.
|
|
12
12
|
*/
|
|
13
13
|
status?: string;
|
|
14
14
|
embeddedContent?: EmbeddedContent[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @deprecated
|
|
1
|
+
/** @deprecated Will be removed in second major version */
|
|
2
2
|
export interface AttachmentUpdate {
|
|
3
3
|
/**
|
|
4
4
|
* The attachment version. Set this to the current version number of the attachment. Note, the version number only
|
|
@@ -21,12 +21,16 @@ export interface AuditRecordCreate {
|
|
|
21
21
|
remoteAddress: string;
|
|
22
22
|
/**
|
|
23
23
|
* The creation date-time of the audit record, as a timestamp. This is converted to a date-time display in the
|
|
24
|
-
* Confluence UI. If the `creationDate` is not specified, then it will be set to the timestamp for the current
|
|
24
|
+
* Confluence UI. If the `creationDate` is not specified, then it will be set to the timestamp for the current
|
|
25
|
+
* date-time.
|
|
25
26
|
*/
|
|
26
27
|
creationDate?: number;
|
|
27
28
|
/** The summary of the event, which is displayed in the 'Change' column on the audit log in the Confluence UI. */
|
|
28
29
|
summary?: string;
|
|
29
|
-
/**
|
|
30
|
+
/**
|
|
31
|
+
* A long description of the event, which is displayed in the 'Description' field on the audit log in the Confluence
|
|
32
|
+
* UI.
|
|
33
|
+
*/
|
|
30
34
|
description?: string;
|
|
31
35
|
/** The category of the event, which is displayed in the 'Event type' column on the audit log in the Confluence UI. */
|
|
32
36
|
category?: string;
|
|
@@ -30,6 +30,7 @@ export interface Content {
|
|
|
30
30
|
storage?: ContentBody;
|
|
31
31
|
editor2?: ContentBody;
|
|
32
32
|
anonymous_export_view?: ContentBody;
|
|
33
|
+
atlas_doc_format?: ContentBody;
|
|
33
34
|
_expandable: {
|
|
34
35
|
editor?: string;
|
|
35
36
|
view?: string;
|
|
@@ -38,6 +39,7 @@ export interface Content {
|
|
|
38
39
|
storage?: string;
|
|
39
40
|
editor2?: string;
|
|
40
41
|
anonymous_export_view?: string;
|
|
42
|
+
atlas_doc_format?: string;
|
|
41
43
|
};
|
|
42
44
|
};
|
|
43
45
|
restrictions?: {
|
|
@@ -19,7 +19,8 @@ export interface ContentBlueprintDraft {
|
|
|
19
19
|
* The new ancestor (i.e. parent page) for the content. If you have specified an ancestor, you must also specify a
|
|
20
20
|
* `space` property in the request body for the space that the ancestor is in.
|
|
21
21
|
*
|
|
22
|
-
* Note, if you specify more than one ancestor, the last ID in the array will be selected as the parent page for the
|
|
22
|
+
* Note, if you specify more than one ancestor, the last ID in the array will be selected as the parent page for the
|
|
23
|
+
* content.
|
|
23
24
|
*/
|
|
24
25
|
ancestors?: {
|
|
25
26
|
/** The content ID of the ancestor. */
|
|
@@ -6,18 +6,23 @@ export interface ContentRestrictionUpdate {
|
|
|
6
6
|
* this object.
|
|
7
7
|
*/
|
|
8
8
|
restrictions: {
|
|
9
|
-
/**
|
|
9
|
+
/**
|
|
10
|
+
* The users that the restrictions will be applied to. This array must have at least one item, otherwise it should
|
|
11
|
+
* be omitted.
|
|
12
|
+
*/
|
|
10
13
|
user?: {
|
|
11
14
|
/** Set to 'known'. */
|
|
12
15
|
type: string;
|
|
13
16
|
/**
|
|
14
17
|
* This property is no longer available and will be removed from the documentation soon. Use `accountId` instead.
|
|
15
|
-
* See the [deprecation notice](/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/) for
|
|
18
|
+
* See the [deprecation notice](/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/) for
|
|
19
|
+
* details.
|
|
16
20
|
*/
|
|
17
21
|
username?: string;
|
|
18
22
|
/**
|
|
19
23
|
* This property is no longer available and will be removed from the documentation soon. Use `accountId` instead.
|
|
20
|
-
* See the [deprecation notice](/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/) for
|
|
24
|
+
* See the [deprecation notice](/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/) for
|
|
25
|
+
* details.
|
|
21
26
|
*/
|
|
22
27
|
userKey?: string;
|
|
23
28
|
/**
|
|
@@ -13,7 +13,10 @@ export interface ContentTemplateUpdate {
|
|
|
13
13
|
description?: string;
|
|
14
14
|
/** Labels for the template. */
|
|
15
15
|
labels?: Label[];
|
|
16
|
-
/**
|
|
16
|
+
/**
|
|
17
|
+
* The key for the space of the template. Required if the template is a space template. Set this to the current
|
|
18
|
+
* `space.key`.
|
|
19
|
+
*/
|
|
17
20
|
space?: {
|
|
18
21
|
key: string;
|
|
19
22
|
};
|
|
@@ -7,5 +7,5 @@ var LabeledContentType;
|
|
|
7
7
|
LabeledContentType["Blogpost"] = "blogpost";
|
|
8
8
|
LabeledContentType["Attachment"] = "attachment";
|
|
9
9
|
LabeledContentType["PageTemplate"] = "page_template";
|
|
10
|
-
})(LabeledContentType
|
|
10
|
+
})(LabeledContentType || (exports.LabeledContentType = LabeledContentType = {}));
|
|
11
11
|
//# sourceMappingURL=labeledContentType.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"labeledContentType.js","sourceRoot":"","sources":["../../../src/api/models/labeledContentType.ts"],"names":[],"mappings":";;;AAAA,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC5B,mCAAa,CAAA;IACb,2CAAqB,CAAA;IACrB,+CAAyB,CAAA;IACzB,oDAA8B,CAAA;AAChC,CAAC,EALW,kBAAkB,
|
|
1
|
+
{"version":3,"file":"labeledContentType.js","sourceRoot":"","sources":["../../../src/api/models/labeledContentType.ts"],"names":[],"mappings":";;;AAAA,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC5B,mCAAa,CAAA;IACb,2CAAqB,CAAA;IACrB,+CAAyB,CAAA;IACzB,oDAA8B,CAAA;AAChC,CAAC,EALW,kBAAkB,kCAAlB,kBAAkB,QAK7B"}
|
|
@@ -18,7 +18,10 @@ export interface Lifecycle {
|
|
|
18
18
|
* this situation is tracked by [AC-1528](https://ecosystem.atlassian.net/browse/AC-1528) in the Connect backlog.
|
|
19
19
|
*/
|
|
20
20
|
clientKey?: string;
|
|
21
|
-
/**
|
|
21
|
+
/**
|
|
22
|
+
* @deprecated This is the public key for this Atlassian product instance. This field is deprecated and should not be
|
|
23
|
+
* used.
|
|
24
|
+
*/
|
|
22
25
|
publicKey?: string;
|
|
23
26
|
/**
|
|
24
27
|
* The account ID for identifying users in the `sub` claim sent in JWT during calls. This is the user associated with
|
|
@@ -27,7 +30,8 @@ export interface Lifecycle {
|
|
|
27
30
|
accountId?: string;
|
|
28
31
|
/**
|
|
29
32
|
* Use this string to sign outgoing JWT tokens and validate incoming JWT tokens. Optional: and may not be present on
|
|
30
|
-
* non-JWT app installations, and is only sent on the `installed` event. All instances of your app use the same shared
|
|
33
|
+
* non-JWT app installations, and is only sent on the `installed` event. All instances of your app use the same shared
|
|
34
|
+
* secret.
|
|
31
35
|
*/
|
|
32
36
|
sharedSecret?: string;
|
|
33
37
|
/** @deprecated This is a string representation of the host product's version. Generally you should not need it. */
|
|
@@ -3,7 +3,8 @@ export interface AddLabelsToContent {
|
|
|
3
3
|
/** The ID of the content that will have labels added to it. */
|
|
4
4
|
id: string;
|
|
5
5
|
/**
|
|
6
|
-
* If true, return the new 400 error response on invalid requests. Otherwise return a server error response on invalid
|
|
6
|
+
* If true, return the new 400 error response on invalid requests. Otherwise return a server error response on invalid
|
|
7
|
+
* requests.
|
|
7
8
|
*
|
|
8
9
|
* Why does this parameter exist? Previously, our API was returning a 500 status code with a difficult-to-consume
|
|
9
10
|
* response body. We've fixed the response to have a 400 status code and a more useful body. This parameter enables a
|
|
@@ -58,7 +58,10 @@ export declare namespace CreateContent {
|
|
|
58
58
|
UpdateGroupRestriction = "restrictions.update.restrictions.group",
|
|
59
59
|
/** Returns the history of the content, including the date it was created. */
|
|
60
60
|
History = "history",
|
|
61
|
-
/**
|
|
61
|
+
/**
|
|
62
|
+
* Returns information about the most recent update of the content, including who updated it and when it was
|
|
63
|
+
* updated.
|
|
64
|
+
*/
|
|
62
65
|
LastUpdated = "history.lastUpdated",
|
|
63
66
|
/** Returns information about the update prior to the current content update. */
|
|
64
67
|
PreviousVersion = "history.previousVersion",
|
|
@@ -68,9 +71,15 @@ export declare namespace CreateContent {
|
|
|
68
71
|
NextVersion = "history.nextVersion",
|
|
69
72
|
/** Returns the parent page, if the content is a page. */
|
|
70
73
|
Ancestors = "ancestors",
|
|
71
|
-
/**
|
|
74
|
+
/**
|
|
75
|
+
* Returns the body of the content in different formats, including the editor format, view format, and export
|
|
76
|
+
* format.
|
|
77
|
+
*/
|
|
72
78
|
Body = "body",
|
|
73
|
-
/**
|
|
79
|
+
/**
|
|
80
|
+
* Returns information about the most recent update of the content, including who updated it and when it was
|
|
81
|
+
* updated.
|
|
82
|
+
*/
|
|
74
83
|
Version = "version",
|
|
75
84
|
/** Returns pages that are descendants at any level below the content. */
|
|
76
85
|
PageDescendant = "descendants.page",
|
|
@@ -56,7 +56,10 @@ var CreateContent;
|
|
|
56
56
|
Expand["UpdateGroupRestriction"] = "restrictions.update.restrictions.group";
|
|
57
57
|
/** Returns the history of the content, including the date it was created. */
|
|
58
58
|
Expand["History"] = "history";
|
|
59
|
-
/**
|
|
59
|
+
/**
|
|
60
|
+
* Returns information about the most recent update of the content, including who updated it and when it was
|
|
61
|
+
* updated.
|
|
62
|
+
*/
|
|
60
63
|
Expand["LastUpdated"] = "history.lastUpdated";
|
|
61
64
|
/** Returns information about the update prior to the current content update. */
|
|
62
65
|
Expand["PreviousVersion"] = "history.previousVersion";
|
|
@@ -66,9 +69,15 @@ var CreateContent;
|
|
|
66
69
|
Expand["NextVersion"] = "history.nextVersion";
|
|
67
70
|
/** Returns the parent page, if the content is a page. */
|
|
68
71
|
Expand["Ancestors"] = "ancestors";
|
|
69
|
-
/**
|
|
72
|
+
/**
|
|
73
|
+
* Returns the body of the content in different formats, including the editor format, view format, and export
|
|
74
|
+
* format.
|
|
75
|
+
*/
|
|
70
76
|
Expand["Body"] = "body";
|
|
71
|
-
/**
|
|
77
|
+
/**
|
|
78
|
+
* Returns information about the most recent update of the content, including who updated it and when it was
|
|
79
|
+
* updated.
|
|
80
|
+
*/
|
|
72
81
|
Expand["Version"] = "version";
|
|
73
82
|
/** Returns pages that are descendants at any level below the content. */
|
|
74
83
|
Expand["PageDescendant"] = "descendants.page";
|
|
@@ -86,5 +95,5 @@ var CreateContent;
|
|
|
86
95
|
/** Returns the resolution status of each comment. */
|
|
87
96
|
Expand["Resolution"] = "extensions.resolution";
|
|
88
97
|
})(Expand = CreateContent.Expand || (CreateContent.Expand = {}));
|
|
89
|
-
})(CreateContent
|
|
98
|
+
})(CreateContent || (exports.CreateContent = CreateContent = {}));
|
|
90
99
|
//# sourceMappingURL=createContent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createContent.js","sourceRoot":"","sources":["../../../src/api/parameters/createContent.ts"],"names":[],"mappings":";;;AASA,IAAiB,aAAa,
|
|
1
|
+
{"version":3,"file":"createContent.js","sourceRoot":"","sources":["../../../src/api/parameters/createContent.ts"],"names":[],"mappings":";;;AASA,IAAiB,aAAa,CA4F7B;AA5FD,WAAiB,aAAa;IAC5B,IAAY,MA0FX;IA1FD,WAAY,MAAM;QAChB;;;WAGG;QACH,0CAAgC,CAAA;QAChC,mDAAmD;QACnD,uDAA6C,CAAA;QAC7C,gDAAgD;QAChD,iDAAuC,CAAA;QACvC,mDAAmD;QACnD,2CAAiC,CAAA;QACjC;;;WAGG;QACH,iCAAuB,CAAA;QACvB;;;WAGG;QACH,sDAA4C,CAAA;QAC5C,iFAAiF;QACjF,oDAA0C,CAAA;QAC1C,8DAA8D;QAC9D,4CAAkC,CAAA;QAClC,+CAA+C;QAC/C,gDAAsC,CAAA;QACtC,uFAAuF;QACvF,mCAAyB,CAAA;QACzB,qFAAqF;QACrF,wCAA8B,CAAA;QAC9B,+CAA+C;QAC/C,oDAA0C,CAAA;QAC1C,2CAA2C;QAC3C,8CAAoC,CAAA;QACpC,kEAAkE;QAClE,qEAA2D,CAAA;QAC3D;;;WAGG;QACH,uEAA6D,CAAA;QAC7D,oEAAoE;QACpE,yEAA+D,CAAA;QAC/D;;;WAGG;QACH,2EAAiE,CAAA;QACjE,6EAA6E;QAC7E,6BAAmB,CAAA;QACnB;;;WAGG;QACH,6CAAmC,CAAA;QACnC,gFAAgF;QAChF,qDAA2C,CAAA;QAC3C,oEAAoE;QACpE,+CAAqC,CAAA;QACrC,gFAAgF;QAChF,6CAAmC,CAAA;QACnC,yDAAyD;QACzD,iCAAuB,CAAA;QACvB;;;WAGG;QACH,uBAAa,CAAA;QACb;;;WAGG;QACH,6BAAmB,CAAA;QACnB,yEAAyE;QACzE,6CAAmC,CAAA;QACnC,8EAA8E;QAC9E,yDAA+C,CAAA;QAC/C,uEAAuE;QACvE,mDAAyC,CAAA;QACzC;;;WAGG;QACH,yBAAe,CAAA;QACf,kDAAkD;QAClD,0DAAgD,CAAA;QAChD,qDAAqD;QACrD,8CAAoC,CAAA;IACtC,CAAC,EA1FW,MAAM,GAAN,oBAAM,KAAN,oBAAM,QA0FjB;AACH,CAAC,EA5FgB,aAAa,6BAAb,aAAa,QA4F7B"}
|
|
@@ -14,7 +14,10 @@ export interface CreateRelationship {
|
|
|
14
14
|
* - If `sourceType` is 'space', then specify the space key.
|
|
15
15
|
*/
|
|
16
16
|
sourceKey: string;
|
|
17
|
-
/**
|
|
17
|
+
/**
|
|
18
|
+
* The target entity type of the relationship. This must be 'space' or 'content', if the `relationName` is
|
|
19
|
+
* 'favourite'.
|
|
20
|
+
*/
|
|
18
21
|
targetType: string;
|
|
19
22
|
/**
|
|
20
23
|
* - The identifier for the target entity:
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { UserPropertyCreate } from '../models';
|
|
2
2
|
export interface CreateUserProperty extends UserPropertyCreate {
|
|
3
3
|
/**
|
|
4
|
-
* The account ID of the user. The accountId uniquely identifies the user across all Atlassian products. For
|
|
5
|
-
*
|
|
4
|
+
* The account ID of the user. The accountId uniquely identifies the user across all Atlassian products. For example,
|
|
5
|
+
* 384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192
|
|
6
6
|
*/
|
|
7
7
|
userId: string;
|
|
8
8
|
/** The key of the user property. */
|
|
@@ -11,7 +11,10 @@ export interface Delete {
|
|
|
11
11
|
* - If `sourceType` is 'space', then specify the space key.
|
|
12
12
|
*/
|
|
13
13
|
sourceKey: string;
|
|
14
|
-
/**
|
|
14
|
+
/**
|
|
15
|
+
* The target entity type of the relationship. This must be 'space' or 'content', if the `relationName` is
|
|
16
|
+
* 'favourite'.
|
|
17
|
+
*/
|
|
15
18
|
targetType: string;
|
|
16
19
|
/**
|
|
17
20
|
* - The identifier for the target entity:
|
|
@@ -11,7 +11,10 @@ export interface DeleteRelationship {
|
|
|
11
11
|
* - If `sourceType` is 'space', then specify the space key.
|
|
12
12
|
*/
|
|
13
13
|
sourceKey: string;
|
|
14
|
-
/**
|
|
14
|
+
/**
|
|
15
|
+
* The target entity type of the relationship. This must be 'space' or 'content', if the `relationName` is
|
|
16
|
+
* 'favourite'.
|
|
17
|
+
*/
|
|
15
18
|
targetType: string;
|
|
16
19
|
/**
|
|
17
20
|
* - The identifier for the target entity:
|
|
@@ -26,13 +29,13 @@ export interface DeleteRelationship {
|
|
|
26
29
|
/** The status of the target. This parameter is only used when the `targetType` is 'content'. */
|
|
27
30
|
targetStatus?: string;
|
|
28
31
|
/**
|
|
29
|
-
* The version of the source. This parameter is only used when the `sourceType` is 'content' and the `sourceStatus`
|
|
30
|
-
*
|
|
32
|
+
* The version of the source. This parameter is only used when the `sourceType` is 'content' and the `sourceStatus` is
|
|
33
|
+
* 'historical'.
|
|
31
34
|
*/
|
|
32
35
|
sourceVersion?: number;
|
|
33
36
|
/**
|
|
34
|
-
* The version of the target. This parameter is only used when the `targetType` is 'content' and the `targetStatus`
|
|
35
|
-
*
|
|
37
|
+
* The version of the target. This parameter is only used when the `targetType` is 'content' and the `targetStatus` is
|
|
38
|
+
* 'historical'.
|
|
36
39
|
*/
|
|
37
40
|
targetVersion?: number;
|
|
38
41
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export interface DeleteUserProperty {
|
|
2
2
|
/**
|
|
3
|
-
* The account ID of the user. The accountId uniquely identifies the user across all Atlassian products. For
|
|
4
|
-
*
|
|
3
|
+
* The account ID of the user. The accountId uniquely identifies the user across all Atlassian products. For example,
|
|
4
|
+
* 384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192
|
|
5
5
|
*/
|
|
6
6
|
userId: string;
|
|
7
7
|
/** The key of the user property. */
|
|
@@ -15,7 +15,8 @@ export interface FindSourcesForTarget {
|
|
|
15
15
|
* - If `targetType` is `user`, then specify either `current` (logged-in user), the user key of the user, or the account
|
|
16
16
|
* ID of the user. Note that the user key has been deprecated in favor of the account ID for this parameter. See the
|
|
17
17
|
* [migration
|
|
18
|
-
* guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/) for
|
|
18
|
+
* guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/) for
|
|
19
|
+
* details.
|
|
19
20
|
* - If `targetType` is 'content', then specify the content ID.
|
|
20
21
|
* - If `targetType` is 'space', then specify the space key.
|
|
21
22
|
*/
|
|
@@ -13,7 +13,8 @@ export interface FindTargetFromSource {
|
|
|
13
13
|
* - If `sourceType` is `user`, then specify either `current` (logged-in user), the user key of the user, or the account
|
|
14
14
|
* ID of the user. Note that the user key has been deprecated in favor of the account ID for this parameter. See the
|
|
15
15
|
* [migration
|
|
16
|
-
* guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/) for
|
|
16
|
+
* guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/) for
|
|
17
|
+
* details.
|
|
17
18
|
* - If `sourceType` is 'content', then specify the content ID.
|
|
18
19
|
* - If `sourceType` is 'space', then specify the space key.
|
|
19
20
|
*/
|
|
@@ -65,7 +65,10 @@ export declare namespace GetAttachments {
|
|
|
65
65
|
UpdateGroupRestriction = "restrictions.update.restrictions.group",
|
|
66
66
|
/** Returns the history of the content, including the date it was created. */
|
|
67
67
|
History = "history",
|
|
68
|
-
/**
|
|
68
|
+
/**
|
|
69
|
+
* Returns information about the most recent update of the content, including who updated it and when it was
|
|
70
|
+
* updated.
|
|
71
|
+
*/
|
|
69
72
|
LastUpdated = "history.lastUpdated",
|
|
70
73
|
/** Returns information about the update prior to the current content update. */
|
|
71
74
|
PreviousVersion = "history.previousVersion",
|
|
@@ -75,9 +78,15 @@ export declare namespace GetAttachments {
|
|
|
75
78
|
NextVersion = "history.nextVersion",
|
|
76
79
|
/** Returns the parent page, if the content is a page. */
|
|
77
80
|
Ancestors = "ancestors",
|
|
78
|
-
/**
|
|
81
|
+
/**
|
|
82
|
+
* Returns the body of the content in different formats, including the editor format, view format, and export
|
|
83
|
+
* format.
|
|
84
|
+
*/
|
|
79
85
|
Body = "body",
|
|
80
|
-
/**
|
|
86
|
+
/**
|
|
87
|
+
* Returns information about the most recent update of the content, including who updated it and when it was
|
|
88
|
+
* updated.
|
|
89
|
+
*/
|
|
81
90
|
Version = "version",
|
|
82
91
|
/** Returns pages that are descendants at any level below the content. */
|
|
83
92
|
PageDescendant = "descendants.page",
|
|
@@ -56,7 +56,10 @@ var GetAttachments;
|
|
|
56
56
|
Expand["UpdateGroupRestriction"] = "restrictions.update.restrictions.group";
|
|
57
57
|
/** Returns the history of the content, including the date it was created. */
|
|
58
58
|
Expand["History"] = "history";
|
|
59
|
-
/**
|
|
59
|
+
/**
|
|
60
|
+
* Returns information about the most recent update of the content, including who updated it and when it was
|
|
61
|
+
* updated.
|
|
62
|
+
*/
|
|
60
63
|
Expand["LastUpdated"] = "history.lastUpdated";
|
|
61
64
|
/** Returns information about the update prior to the current content update. */
|
|
62
65
|
Expand["PreviousVersion"] = "history.previousVersion";
|
|
@@ -66,9 +69,15 @@ var GetAttachments;
|
|
|
66
69
|
Expand["NextVersion"] = "history.nextVersion";
|
|
67
70
|
/** Returns the parent page, if the content is a page. */
|
|
68
71
|
Expand["Ancestors"] = "ancestors";
|
|
69
|
-
/**
|
|
72
|
+
/**
|
|
73
|
+
* Returns the body of the content in different formats, including the editor format, view format, and export
|
|
74
|
+
* format.
|
|
75
|
+
*/
|
|
70
76
|
Expand["Body"] = "body";
|
|
71
|
-
/**
|
|
77
|
+
/**
|
|
78
|
+
* Returns information about the most recent update of the content, including who updated it and when it was
|
|
79
|
+
* updated.
|
|
80
|
+
*/
|
|
72
81
|
Expand["Version"] = "version";
|
|
73
82
|
/** Returns pages that are descendants at any level below the content. */
|
|
74
83
|
Expand["PageDescendant"] = "descendants.page";
|
|
@@ -86,5 +95,5 @@ var GetAttachments;
|
|
|
86
95
|
/** Returns the resolution status of each comment. */
|
|
87
96
|
Expand["Resolution"] = "extensions.resolution";
|
|
88
97
|
})(Expand = GetAttachments.Expand || (GetAttachments.Expand = {}));
|
|
89
|
-
})(GetAttachments
|
|
98
|
+
})(GetAttachments || (exports.GetAttachments = GetAttachments = {}));
|
|
90
99
|
//# sourceMappingURL=getAttachments.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getAttachments.js","sourceRoot":"","sources":["../../../src/api/parameters/getAttachments.ts"],"names":[],"mappings":";;;AAqFA,IAAiB,cAAc,
|
|
1
|
+
{"version":3,"file":"getAttachments.js","sourceRoot":"","sources":["../../../src/api/parameters/getAttachments.ts"],"names":[],"mappings":";;;AAqFA,IAAiB,cAAc,CA4F9B;AA5FD,WAAiB,cAAc;IAC7B,IAAY,MA0FX;IA1FD,WAAY,MAAM;QAChB;;;WAGG;QACH,0CAAgC,CAAA;QAChC,mDAAmD;QACnD,uDAA6C,CAAA;QAC7C,gDAAgD;QAChD,iDAAuC,CAAA;QACvC,mDAAmD;QACnD,2CAAiC,CAAA;QACjC;;;WAGG;QACH,iCAAuB,CAAA;QACvB;;;WAGG;QACH,sDAA4C,CAAA;QAC5C,iFAAiF;QACjF,oDAA0C,CAAA;QAC1C,8DAA8D;QAC9D,4CAAkC,CAAA;QAClC,+CAA+C;QAC/C,gDAAsC,CAAA;QACtC,uFAAuF;QACvF,mCAAyB,CAAA;QACzB,qFAAqF;QACrF,wCAA8B,CAAA;QAC9B,+CAA+C;QAC/C,oDAA0C,CAAA;QAC1C,2CAA2C;QAC3C,8CAAoC,CAAA;QACpC,kEAAkE;QAClE,qEAA2D,CAAA;QAC3D;;;WAGG;QACH,uEAA6D,CAAA;QAC7D,oEAAoE;QACpE,yEAA+D,CAAA;QAC/D;;;WAGG;QACH,2EAAiE,CAAA;QACjE,6EAA6E;QAC7E,6BAAmB,CAAA;QACnB;;;WAGG;QACH,6CAAmC,CAAA;QACnC,gFAAgF;QAChF,qDAA2C,CAAA;QAC3C,oEAAoE;QACpE,+CAAqC,CAAA;QACrC,gFAAgF;QAChF,6CAAmC,CAAA;QACnC,yDAAyD;QACzD,iCAAuB,CAAA;QACvB;;;WAGG;QACH,uBAAa,CAAA;QACb;;;WAGG;QACH,6BAAmB,CAAA;QACnB,yEAAyE;QACzE,6CAAmC,CAAA;QACnC,8EAA8E;QAC9E,yDAA+C,CAAA;QAC/C,uEAAuE;QACvE,mDAAyC,CAAA;QACzC;;;WAGG;QACH,yBAAe,CAAA;QACf,kDAAkD;QAClD,0DAAgD,CAAA;QAChD,qDAAqD;QACrD,8CAAoC,CAAA;IACtC,CAAC,EA1FW,MAAM,GAAN,qBAAM,KAAN,qBAAM,QA0FjB;AACH,CAAC,EA5FgB,cAAc,8BAAd,cAAc,QA4F9B"}
|
|
@@ -10,7 +10,10 @@ export interface GetContent {
|
|
|
10
10
|
* Note, the `historical` status is currently not supported.
|
|
11
11
|
*/
|
|
12
12
|
status?: string[];
|
|
13
|
-
/**
|
|
13
|
+
/**
|
|
14
|
+
* The posting date of the blog post to be returned. Required for <code>blogpost</code> type. Format:
|
|
15
|
+
* <code>yyyy-mm-dd</code>.
|
|
16
|
+
*/
|
|
14
17
|
postingDay?: string;
|
|
15
18
|
/** A multi-value parameter indicating which properties of the content to expand. */
|
|
16
19
|
expand?: string | string[] | GetContent.Expand | GetContent.Expand[];
|
|
@@ -82,7 +85,10 @@ export declare namespace GetContent {
|
|
|
82
85
|
UpdateGroupRestriction = "restrictions.update.restrictions.group",
|
|
83
86
|
/** Returns the history of the content, including the date it was created. */
|
|
84
87
|
History = "history",
|
|
85
|
-
/**
|
|
88
|
+
/**
|
|
89
|
+
* Returns information about the most recent update of the content, including who updated it and when it was
|
|
90
|
+
* updated.
|
|
91
|
+
*/
|
|
86
92
|
LastUpdated = "history.lastUpdated",
|
|
87
93
|
/** Returns information about the update prior to the current content update. */
|
|
88
94
|
PreviousVersion = "history.previousVersion",
|
|
@@ -92,9 +98,15 @@ export declare namespace GetContent {
|
|
|
92
98
|
NextVersion = "history.nextVersion",
|
|
93
99
|
/** Returns the parent page, if the content is a page. */
|
|
94
100
|
Ancestors = "ancestors",
|
|
95
|
-
/**
|
|
101
|
+
/**
|
|
102
|
+
* Returns the body of the content in different formats, including the editor format, view format, and export
|
|
103
|
+
* format.
|
|
104
|
+
*/
|
|
96
105
|
Body = "body",
|
|
97
|
-
/**
|
|
106
|
+
/**
|
|
107
|
+
* Returns information about the most recent update of the content, including who updated it and when it was
|
|
108
|
+
* updated.
|
|
109
|
+
*/
|
|
98
110
|
Version = "version",
|
|
99
111
|
/** Returns pages that are descendants at any level below the content. */
|
|
100
112
|
PageDescendant = "descendants.page",
|