@resolution/confluence-api-client 0.16.1 → 0.16.2
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/lib/openapi/v2/BaseConfluenceApiV2Client.d.ts +2 -2
- package/lib/openapi/v2/models/redactions.d.ts +0 -5
- package/lib/openapi/v2/models/redactions.js +0 -3
- package/lib/openapi/v2/models/redactions.js.map +1 -1
- package/lib/openapi/v2/services/RedactionsService.d.ts +31 -7
- package/lib/openapi/v2/services/RedactionsService.js.map +1 -1
- package/package.json +3 -3
|
@@ -18,7 +18,7 @@ import type { Principal } from "./models/eap";
|
|
|
18
18
|
import type { FolderLinks, FolderSingle } from "./models/folder";
|
|
19
19
|
import type { PermittedOperationsResponse } from "./models/operation";
|
|
20
20
|
import type { PageBodyWrite, PageBulk, PageNestedBodyWrite, PageSingle, PageSortOrder } from "./models/page";
|
|
21
|
-
import type {
|
|
21
|
+
import type { RedactionPointer, RedactionPointerResponse, RedactionResponse, RedactionSectionResponse } from "./models/redactions";
|
|
22
22
|
import type { SmartLinkLinks, SmartLinkSingle } from "./models/smartLink";
|
|
23
23
|
import type { SpaceDescriptionBodyRepresentation, SpaceSingle } from "./models/space";
|
|
24
24
|
import type { SpacePropertyCreateRequest, SpacePropertyUpdateRequest } from "./models/spaceProperties";
|
|
@@ -234,4 +234,4 @@ export declare class BaseConfluenceApiV2Client extends CommonHttpService {
|
|
|
234
234
|
get whiteboard(): WhiteboardService;
|
|
235
235
|
constructor(options?: BaseConfluenceApiV2ClientOptions);
|
|
236
236
|
}
|
|
237
|
-
export type { AbstractPageLinks, BodyBulk, BodySingle, BodyType, ContentProperty, ContentStatus, CustomContentBodyRepresentation, Label, Like, MultiEntityLinks, OnlyArchivedAndCurrentContentStatus, Operation, OptionalFieldLinks, OptionalFieldMeta, ParentContentType, PrimaryBodyRepresentation, PrimaryBodyRepresentationSingle, PrincipalType, RoleType, SpaceBulk, SpaceDescription, SpaceIcon, SpaceLinks, SpacePermission, SpacePermissionAssignment, SpaceProperty, SpaceRole, SpaceRoleAssignment, SpaceSortOrder, SpaceStatus, SpaceType, Version, AccountStatus, AccountType, Icon, User, AdminKeyResponse, Ancestor, AncestorType, AttachmentBulk, AttachmentLinks, AttachmentSingle, AttachmentSortOrder, AttachmentCommentModel, BlogPostCommentModel, BlogPostInlineCommentModel, ChildrenCommentModel, CommentBodyWrite, CommentLinks, CommentNestedBodyWrite, CommentSortOrder, CreateFooterCommentModel, CreateInlineCommentModel, CustomContentCommentModel, FooterCommentModel, InlineCommentChildrenModel, InlineCommentModel, InlineCommentProperties, InlineCommentResolutionStatus, PageCommentModel, PageInlineCommentModel, UpdateFooterCommentModel, UpdateInlineCommentModel, AttachmentVersion, BlogPostVersion, CommentVersion, CustomContentVersion, DetailedVersion, PageVersion, VersionedEntity, VersionSortOrder, BlogPostBodyWrite, BlogPostBulk, BlogPostContentStatus, BlogPostNestedBodyWrite, BlogPostSingle, BlogPostSortOrder, ChildCustomContent, ChildPage, ChildrenResponse, ClassificationLevel, ClassificationLevelColor, ClassificationLevelStatus, ContentIdToContentTypeResponse, ContentPropertyCreateRequest, ContentPropertySortOrder, ContentPropertyUpdateRequest, CustomContentBodyBulk, CustomContentBodyRepresentationSingle, CustomContentBodySingle, CustomContentBodyWrite, CustomContentBulk, CustomContentLinks, CustomContentNestedBodyWrite, CustomContentSingle, CustomContentSortOrder, DatabaseLinks, DatabaseSingle, DataPolicyMetadata, DataPolicySpace, DeleteSpaceRoleResponse, UpdateSpaceRoleResponse, DescendantsResponse, FolderLinks, FolderSingle, PageBodyWrite, PageBulk, PageNestedBodyWrite, PageSingle, PageSortOrder, PermittedOperationsResponse, Principal,
|
|
237
|
+
export type { AbstractPageLinks, BodyBulk, BodySingle, BodyType, ContentProperty, ContentStatus, CustomContentBodyRepresentation, Label, Like, MultiEntityLinks, OnlyArchivedAndCurrentContentStatus, Operation, OptionalFieldLinks, OptionalFieldMeta, ParentContentType, PrimaryBodyRepresentation, PrimaryBodyRepresentationSingle, PrincipalType, RoleType, SpaceBulk, SpaceDescription, SpaceIcon, SpaceLinks, SpacePermission, SpacePermissionAssignment, SpaceProperty, SpaceRole, SpaceRoleAssignment, SpaceSortOrder, SpaceStatus, SpaceType, Version, AccountStatus, AccountType, Icon, User, AdminKeyResponse, Ancestor, AncestorType, AttachmentBulk, AttachmentLinks, AttachmentSingle, AttachmentSortOrder, AttachmentCommentModel, BlogPostCommentModel, BlogPostInlineCommentModel, ChildrenCommentModel, CommentBodyWrite, CommentLinks, CommentNestedBodyWrite, CommentSortOrder, CreateFooterCommentModel, CreateInlineCommentModel, CustomContentCommentModel, FooterCommentModel, InlineCommentChildrenModel, InlineCommentModel, InlineCommentProperties, InlineCommentResolutionStatus, PageCommentModel, PageInlineCommentModel, UpdateFooterCommentModel, UpdateInlineCommentModel, AttachmentVersion, BlogPostVersion, CommentVersion, CustomContentVersion, DetailedVersion, PageVersion, VersionedEntity, VersionSortOrder, BlogPostBodyWrite, BlogPostBulk, BlogPostContentStatus, BlogPostNestedBodyWrite, BlogPostSingle, BlogPostSortOrder, ChildCustomContent, ChildPage, ChildrenResponse, ClassificationLevel, ClassificationLevelColor, ClassificationLevelStatus, ContentIdToContentTypeResponse, ContentPropertyCreateRequest, ContentPropertySortOrder, ContentPropertyUpdateRequest, CustomContentBodyBulk, CustomContentBodyRepresentationSingle, CustomContentBodySingle, CustomContentBodyWrite, CustomContentBulk, CustomContentLinks, CustomContentNestedBodyWrite, CustomContentSingle, CustomContentSortOrder, DatabaseLinks, DatabaseSingle, DataPolicyMetadata, DataPolicySpace, DeleteSpaceRoleResponse, UpdateSpaceRoleResponse, DescendantsResponse, FolderLinks, FolderSingle, PageBodyWrite, PageBulk, PageNestedBodyWrite, PageSingle, PageSortOrder, PermittedOperationsResponse, Principal, RedactionPointer, RedactionPointerResponse, RedactionResponse, RedactionSectionResponse, SmartLinkLinks, SmartLinkSingle, SpaceDescriptionBodyRepresentation, SpaceSingle, SpacePropertyCreateRequest, SpacePropertyUpdateRequest, Task, TaskBodySingle, WhiteboardLinks, WhiteboardSingle };
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import type { CommonValidationSchemaStorage } from "../../core/CommonValidationSchemaStorage";
|
|
2
2
|
import { type ZodTypeAny } from "zod";
|
|
3
3
|
/** @category Models */
|
|
4
|
-
export interface Redaction extends Record<string, unknown> {
|
|
5
|
-
/** List of specific text ranges to redact within this section */
|
|
6
|
-
redactions?: RedactionPointer[];
|
|
7
|
-
}
|
|
8
|
-
/** @category Models */
|
|
9
4
|
export interface RedactionPointer extends Record<string, unknown> {
|
|
10
5
|
/**
|
|
11
6
|
* JSON pointer indicating the exact location within the content structure
|
|
@@ -3,9 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.registerRedactionsValidationSchemas = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
function registerRedactionsValidationSchemas(validationSchemaStorage) {
|
|
6
|
-
validationSchemaStorage.register("Redaction", zod_1.z.object({
|
|
7
|
-
redactions: zod_1.z.array(validationSchemaStorage.lazy("RedactionPointer")).optional()
|
|
8
|
-
}).catchall(zod_1.z.unknown()).describe("Redaction"));
|
|
9
6
|
validationSchemaStorage.register("RedactionPointer", zod_1.z.object({
|
|
10
7
|
pointer: zod_1.z.string(),
|
|
11
8
|
from: zod_1.z.number().int().min(0).optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"redactions.js","sourceRoot":"","sources":["../../../../src/openapi/v2/models/redactions.ts"],"names":[],"mappings":";;;AAIA,6BAAyC;
|
|
1
|
+
{"version":3,"file":"redactions.js","sourceRoot":"","sources":["../../../../src/openapi/v2/models/redactions.ts"],"names":[],"mappings":";;;AAIA,6BAAyC;AA0DzC,SAAgB,mCAAmC,CAAC,uBAAkE;IACpH,uBAAuB,CAAC,QAAQ,CAAC,kBAAkB,EAAE,OAAC,CAAC,MAAM,CAAC;QAC5D,OAAO,EAAE,OAAC,CAAC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C,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,mBAAmB,CAAC,CAAC,CAAC;IACxD,uBAAuB,CAAC,QAAQ,CAAC,0BAA0B,EAAE,OAAC,CAAC,MAAM,CAAC;QACpE,UAAU,EAAE,OAAC,CAAC,KAAK,CAAC,uBAAuB,CAAC,IAAI,CAAC,0BAA0B,CAAC,CAAC,CAAC,QAAQ,EAAE;KACzF,CAAC,CAAC,QAAQ,CAAC,OAAC,CAAC,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,0BAA0B,CAAC,CAAC,CAAC;AACjE,CAAC;AArBD,kFAqBC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CommonHttpService } from "../../core/CommonHttpService";
|
|
2
|
-
import { type
|
|
2
|
+
import { type RedactionPointer, type RedactionResponse } from "../models/redactions";
|
|
3
3
|
/**
|
|
4
4
|
* @see https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-redactions
|
|
5
5
|
* @category Services
|
|
@@ -33,14 +33,26 @@ export declare class RedactionsService extends CommonHttpService {
|
|
|
33
33
|
* historical versions of the content that contain the redacted text will be
|
|
34
34
|
* squashed.
|
|
35
35
|
*/
|
|
36
|
-
cleanHistory
|
|
36
|
+
cleanHistory?: boolean | null | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* Optional version number of the content to redact. When specified, the redaction
|
|
39
|
+
* will target
|
|
40
|
+
* a specific historical version of the content rather than the current version.
|
|
41
|
+
*
|
|
42
|
+
* - If omitted or null, the redaction applies to the current (latest) version of
|
|
43
|
+
* the content.
|
|
44
|
+
* - When provided, must be a valid version number that exists for the content.
|
|
45
|
+
*
|
|
46
|
+
* **Note**: Version numbers start at 1 and increment with each content update.
|
|
47
|
+
*/
|
|
48
|
+
versionNumber?: number | null | undefined;
|
|
37
49
|
body?: ({
|
|
38
|
-
redactions?:
|
|
50
|
+
redactions?: RedactionPointer[] | undefined;
|
|
39
51
|
} & {
|
|
40
52
|
[key: string]: unknown;
|
|
41
53
|
}) | undefined;
|
|
42
54
|
title?: ({
|
|
43
|
-
redactions?:
|
|
55
|
+
redactions?: RedactionPointer[] | undefined;
|
|
44
56
|
} & {
|
|
45
57
|
[key: string]: unknown;
|
|
46
58
|
}) | undefined;
|
|
@@ -76,14 +88,26 @@ export declare class RedactionsService extends CommonHttpService {
|
|
|
76
88
|
* historical versions of the content that contain the redacted text will be
|
|
77
89
|
* squashed.
|
|
78
90
|
*/
|
|
79
|
-
cleanHistory
|
|
91
|
+
cleanHistory?: boolean | null | undefined;
|
|
92
|
+
/**
|
|
93
|
+
* Optional version number of the content to redact. When specified, the redaction
|
|
94
|
+
* will target
|
|
95
|
+
* a specific historical version of the content rather than the current version.
|
|
96
|
+
*
|
|
97
|
+
* - If omitted or null, the redaction applies to the current (latest) version of
|
|
98
|
+
* the content.
|
|
99
|
+
* - When provided, must be a valid version number that exists for the content.
|
|
100
|
+
*
|
|
101
|
+
* **Note**: Version numbers start at 1 and increment with each content update.
|
|
102
|
+
*/
|
|
103
|
+
versionNumber?: number | null | undefined;
|
|
80
104
|
body?: ({
|
|
81
|
-
redactions?:
|
|
105
|
+
redactions?: RedactionPointer[] | undefined;
|
|
82
106
|
} & {
|
|
83
107
|
[key: string]: unknown;
|
|
84
108
|
}) | undefined;
|
|
85
109
|
title?: ({
|
|
86
|
-
redactions?:
|
|
110
|
+
redactions?: RedactionPointer[] | undefined;
|
|
87
111
|
} & {
|
|
88
112
|
[key: string]: unknown;
|
|
89
113
|
}) | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RedactionsService.js","sourceRoot":"","sources":["../../../../src/openapi/v2/services/RedactionsService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,wDAAwD;AACxD,gDAAgD;AAChD,gEAAgE;AAChE,oEAAiE;AACjE,
|
|
1
|
+
{"version":3,"file":"RedactionsService.js","sourceRoot":"","sources":["../../../../src/openapi/v2/services/RedactionsService.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACf,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confluence API Client based on OpenAPI Schema from Atlassian.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
},
|
|
39
39
|
"homepage": "https://bitbucket.org/resolutiongmbh/atlassian-api-clients#readme",
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@resolution/atlassian-api-common": "^0.16.
|
|
41
|
+
"@resolution/atlassian-api-common": "^0.16.2"
|
|
42
42
|
},
|
|
43
43
|
"publishConfig": {
|
|
44
44
|
"access": "public"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "c2038bcc20f22b4d7123c6f6368f90061777f564"
|
|
47
47
|
}
|