confluence.js 1.6.3 → 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 +4 -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/attachmentUpdate.d.ts +1 -1
- package/out/api/models/auditRecordCreate.d.ts +6 -2
- package/out/api/models/contentBlueprintDraft.d.ts +2 -1
- package/out/api/models/contentRestrictionUpdate.d.ts +8 -3
- package/out/api/models/contentTemplateUpdate.d.ts +4 -1
- 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/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/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 +18 -18
- 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/attachmentContainer.ts +1 -1
- package/src/api/models/attachmentUpdate.ts +1 -1
- package/src/api/models/auditRecordCreate.ts +6 -2
- package/src/api/models/contentBlueprintDraft.ts +2 -1
- package/src/api/models/contentRestrictionUpdate.ts +8 -3
- package/src/api/models/contentTemplateUpdate.ts +4 -1
- 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 +7 -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/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
|
@@ -64,7 +64,10 @@ export declare namespace GetAttachments {
|
|
|
64
64
|
UpdateGroupRestriction = "restrictions.update.restrictions.group",
|
|
65
65
|
/** Returns the history of the content, including the date it was created. */
|
|
66
66
|
History = "history",
|
|
67
|
-
/**
|
|
67
|
+
/**
|
|
68
|
+
* Returns information about the most recent update of the content, including who updated it and when it was
|
|
69
|
+
* updated.
|
|
70
|
+
*/
|
|
68
71
|
LastUpdated = "history.lastUpdated",
|
|
69
72
|
/** Returns information about the update prior to the current content update. */
|
|
70
73
|
PreviousVersion = "history.previousVersion",
|
|
@@ -74,9 +77,15 @@ export declare namespace GetAttachments {
|
|
|
74
77
|
NextVersion = "history.nextVersion",
|
|
75
78
|
/** Returns the parent page, if the content is a page. */
|
|
76
79
|
Ancestors = "ancestors",
|
|
77
|
-
/**
|
|
80
|
+
/**
|
|
81
|
+
* Returns the body of the content in different formats, including the editor format, view format, and export
|
|
82
|
+
* format.
|
|
83
|
+
*/
|
|
78
84
|
Body = "body",
|
|
79
|
-
/**
|
|
85
|
+
/**
|
|
86
|
+
* Returns information about the most recent update of the content, including who updated it and when it was
|
|
87
|
+
* updated.
|
|
88
|
+
*/
|
|
80
89
|
Version = "version",
|
|
81
90
|
/** Returns pages that are descendants at any level below the content. */
|
|
82
91
|
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/server/parameters/getAttachments.ts"],"names":[],"mappings":";;;AAcA,IAAiB,cAAc,
|
|
1
|
+
{"version":3,"file":"getAttachments.js","sourceRoot":"","sources":["../../../src/server/parameters/getAttachments.ts"],"names":[],"mappings":";;;AAcA,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"}
|
|
@@ -26,5 +26,5 @@ var AuthenticationService;
|
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
28
|
AuthenticationService.getAuthenticationToken = getAuthenticationToken;
|
|
29
|
-
})(AuthenticationService
|
|
29
|
+
})(AuthenticationService || (exports.AuthenticationService = AuthenticationService = {}));
|
|
30
30
|
//# sourceMappingURL=authenticationService.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authenticationService.js","sourceRoot":"","sources":["../../../src/services/authenticationService/authenticationService.ts"],"names":[],"mappings":";;;;AACA,uDAK2B;AAE3B,IAAiB,qBAAqB,CA+BrC;AA/BD,WAAiB,qBAAqB;IACpC,SAAsB,sBAAsB,CAC1C,cAAiD,EACjD,WAIC;;YAED,IAAI,CAAC,cAAc,EAAE;gBACnB,OAAO,SAAS,CAAC;aAClB;YAED,IAAI,cAAc,CAAC,KAAK,EAAE;gBACxB,OAAO,IAAA,gDAA8B,EAAC,cAAc,CAAC,KAAK,CAAC,CAAC;aAC7D;YAED,IAAI,cAAc,CAAC,MAAM,EAAE;gBACzB,OAAO,IAAA,iDAA+B,EAAC,cAAc,CAAC,MAAM,CAAC,CAAC;aAC/D;YAED,IAAI,cAAc,CAAC,GAAG,EAAE;gBACtB,OAAO,IAAA,yCAAuB,EAAC,cAAc,CAAC,GAAG,EAAE,WAAY,CAAC,CAAC;aAClE;YAED,IAAI,cAAc,CAAC,mBAAmB,EAAE;gBACtC,OAAO,IAAA,8CAA4B,EAAC,cAAc,CAAC,mBAAmB,CAAC,CAAC;aACzE;YAED,OAAO,SAAS,CAAC;QACnB,CAAC;KAAA;IA7BqB,4CAAsB,yBA6B3C,CAAA;AACH,CAAC,EA/BgB,qBAAqB,
|
|
1
|
+
{"version":3,"file":"authenticationService.js","sourceRoot":"","sources":["../../../src/services/authenticationService/authenticationService.ts"],"names":[],"mappings":";;;;AACA,uDAK2B;AAE3B,IAAiB,qBAAqB,CA+BrC;AA/BD,WAAiB,qBAAqB;IACpC,SAAsB,sBAAsB,CAC1C,cAAiD,EACjD,WAIC;;YAED,IAAI,CAAC,cAAc,EAAE;gBACnB,OAAO,SAAS,CAAC;aAClB;YAED,IAAI,cAAc,CAAC,KAAK,EAAE;gBACxB,OAAO,IAAA,gDAA8B,EAAC,cAAc,CAAC,KAAK,CAAC,CAAC;aAC7D;YAED,IAAI,cAAc,CAAC,MAAM,EAAE;gBACzB,OAAO,IAAA,iDAA+B,EAAC,cAAc,CAAC,MAAM,CAAC,CAAC;aAC/D;YAED,IAAI,cAAc,CAAC,GAAG,EAAE;gBACtB,OAAO,IAAA,yCAAuB,EAAC,cAAc,CAAC,GAAG,EAAE,WAAY,CAAC,CAAC;aAClE;YAED,IAAI,cAAc,CAAC,mBAAmB,EAAE;gBACtC,OAAO,IAAA,8CAA4B,EAAC,cAAc,CAAC,mBAAmB,CAAC,CAAC;aACzE;YAED,OAAO,SAAS,CAAC;QACnB,CAAC;KAAA;IA7BqB,4CAAsB,yBA6B3C,CAAA;AACH,CAAC,EA/BgB,qBAAqB,qCAArB,qBAAqB,QA+BrC"}
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.createJWTAuthentication = void 0;
|
|
4
4
|
const jwt = require("atlassian-jwt");
|
|
5
5
|
function createJWTAuthentication(authenticationData, requestData) {
|
|
6
|
-
const { method, url
|
|
6
|
+
const { method, url } = requestData;
|
|
7
7
|
const now = Math.floor(Date.now() / 1000);
|
|
8
8
|
const expire = now + 180;
|
|
9
9
|
const request = jwt.fromMethodAndUrl(method, url);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createJWTAuthentication.js","sourceRoot":"","sources":["../../../../src/services/authenticationService/authentications/createJWTAuthentication.ts"],"names":[],"mappings":";;;AAAA,qCAAqC;AAGrC,SAAgB,uBAAuB,CACrC,kBAA6C,EAC7C,WAGC;IAED,MAAM,
|
|
1
|
+
{"version":3,"file":"createJWTAuthentication.js","sourceRoot":"","sources":["../../../../src/services/authenticationService/authentications/createJWTAuthentication.ts"],"names":[],"mappings":";;;AAAA,qCAAqC;AAGrC,SAAgB,uBAAuB,CACrC,kBAA6C,EAC7C,WAGC;IAED,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,WAAW,CAAC;IAEpC,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC;IAC1C,MAAM,MAAM,GAAG,GAAG,GAAG,GAAG,CAAC;IAEzB,MAAM,OAAO,GAAG,GAAG,CAAC,gBAAgB,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAClD,MAAM,SAAS,GAAG;QAChB,GAAG,EAAE,kBAAkB,CAAC,MAAM;QAC9B,GAAG,EAAE,GAAG,CAAC,qBAAqB,CAAC,OAAO,CAAC;QACvC,GAAG,EAAE,GAAG;QACR,GAAG,EAAE,MAAM;KACZ,CAAC;IAEF,MAAM,KAAK,GAAG,GAAG,CAAC,eAAe,CAAC,SAAS,EAAE,kBAAkB,CAAC,MAAM,CAAC,CAAC;IAExE,OAAO,OAAO,KAAK,EAAE,CAAC;AACxB,CAAC;AAvBD,0DAuBC"}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @copyright The code was taken from the portal http://www.webtoolkit.info/javascript-base64.html
|
|
3
|
-
*/
|
|
1
|
+
/** @copyright The code was taken from the portal http://www.webtoolkit.info/javascript-base64.html */
|
|
4
2
|
export declare namespace Base64Encoder {
|
|
5
3
|
const encode: (input: string) => string;
|
|
6
4
|
}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* @copyright The code was taken from the portal http://www.webtoolkit.info/javascript-base64.html
|
|
5
|
-
*/
|
|
3
|
+
/** @copyright The code was taken from the portal http://www.webtoolkit.info/javascript-base64.html */
|
|
6
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
5
|
exports.Base64Encoder = void 0;
|
|
8
6
|
var Base64Encoder;
|
|
@@ -16,7 +14,7 @@ var Base64Encoder;
|
|
|
16
14
|
if (c < 128) {
|
|
17
15
|
utftext += String.fromCharCode(c);
|
|
18
16
|
}
|
|
19
|
-
else if (
|
|
17
|
+
else if (c > 127 && c < 2048) {
|
|
20
18
|
utftext += String.fromCharCode((c >> 6) | 192);
|
|
21
19
|
utftext += String.fromCharCode((c & 63) | 128);
|
|
22
20
|
}
|
|
@@ -57,5 +55,5 @@ var Base64Encoder;
|
|
|
57
55
|
}
|
|
58
56
|
return output;
|
|
59
57
|
};
|
|
60
|
-
})(Base64Encoder
|
|
58
|
+
})(Base64Encoder || (exports.Base64Encoder = Base64Encoder = {}));
|
|
61
59
|
//# sourceMappingURL=base64Encoder.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base64Encoder.js","sourceRoot":"","sources":["../../../src/services/authenticationService/base64Encoder.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB
|
|
1
|
+
{"version":3,"file":"base64Encoder.js","sourceRoot":"","sources":["../../../src/services/authenticationService/base64Encoder.ts"],"names":[],"mappings":"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"}
|
package/out/utilityTypes.d.ts
CHANGED
|
@@ -3,6 +3,10 @@ export declare namespace UtilityTypes {
|
|
|
3
3
|
type Without<T, U> = {
|
|
4
4
|
[P in Exclude<keyof T, keyof U>]?: never;
|
|
5
5
|
};
|
|
6
|
-
/**
|
|
6
|
+
/** Get the XOR type which could make 2 types exclude each other */
|
|
7
7
|
type XOR<T, U> = T | U extends object ? (Without<T, U> & U) | (Without<U, T> & T) : T | U;
|
|
8
|
+
/** Get the XOR type which could make 3 types exclude each other */
|
|
9
|
+
type XOR3<T, U, V> = XOR<T, XOR<U, V>>;
|
|
10
|
+
/** Get the XOR type which could make 4 types exclude each other */
|
|
11
|
+
type XOR4<T, U, V, W> = XOR<T, XOR3<U, V, W>>;
|
|
8
12
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "confluence.js",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.0",
|
|
4
4
|
"description": "confluence.js is a powerful Node.JS/Browser module that allows you to interact with the Confluence API very easily",
|
|
5
5
|
"author": "Vladislav Tupikin <mrrefactoring@yandex.ru>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"build": "tsc",
|
|
13
13
|
"prepublishOnly": "npm run build && npm run test && npm run lint",
|
|
14
14
|
"test": "npm run test:unit && npm run test:e2e",
|
|
15
|
-
"prettier": "prettier --write src
|
|
15
|
+
"prettier": "prettier --write src",
|
|
16
16
|
"doc": "typedoc --name \"Confluence.js - Cloud and Server API library\" --out docs ./src/index.ts --plugin typedoc-plugin-extras --footerDate --footerTime --footerTypedocVersion --favicon https://svgshare.com/i/bVi.svg",
|
|
17
17
|
"lint": "eslint src tests --ext .ts",
|
|
18
18
|
"lint:fix": "npm run lint -- --fix",
|
|
@@ -42,32 +42,32 @@
|
|
|
42
42
|
"atlassian"
|
|
43
43
|
],
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@swc-node/register": "1.5
|
|
46
|
-
"@swc/helpers": "^0.
|
|
45
|
+
"@swc-node/register": "^1.6.5",
|
|
46
|
+
"@swc/helpers": "^0.5.1",
|
|
47
47
|
"@types/express": "^4.17.17",
|
|
48
48
|
"@types/oauth": "^0.9.1",
|
|
49
|
-
"@types/sinon": "^10.0.
|
|
50
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
51
|
-
"@typescript-eslint/parser": "^5.
|
|
52
|
-
"ava": "^5.
|
|
53
|
-
"dotenv": "^16.
|
|
54
|
-
"eslint": "^8.
|
|
49
|
+
"@types/sinon": "^10.0.15",
|
|
50
|
+
"@typescript-eslint/eslint-plugin": "^5.59.8",
|
|
51
|
+
"@typescript-eslint/parser": "^5.59.8",
|
|
52
|
+
"ava": "^5.3.0",
|
|
53
|
+
"dotenv": "^16.1.3",
|
|
54
|
+
"eslint": "^8.41.0",
|
|
55
55
|
"eslint-config-airbnb": "^19.0.4",
|
|
56
56
|
"eslint-config-airbnb-typescript": "^17.0.0",
|
|
57
|
-
"eslint-import-resolver-typescript": "^3.5.
|
|
57
|
+
"eslint-import-resolver-typescript": "^3.5.5",
|
|
58
58
|
"eslint-plugin-import": "^2.27.5",
|
|
59
|
-
"prettier": "^2.8.
|
|
59
|
+
"prettier": "^2.8.8",
|
|
60
60
|
"prettier-plugin-jsdoc": "^0.4.2",
|
|
61
|
-
"sinon": "^15.0
|
|
62
|
-
"typedoc": "^0.
|
|
63
|
-
"typedoc-plugin-extras": "^2.3.
|
|
64
|
-
"typescript": "^5.
|
|
61
|
+
"sinon": "^15.1.0",
|
|
62
|
+
"typedoc": "^0.24.7",
|
|
63
|
+
"typedoc-plugin-extras": "^2.3.3",
|
|
64
|
+
"typescript": "^5.1.3"
|
|
65
65
|
},
|
|
66
66
|
"dependencies": {
|
|
67
67
|
"atlassian-jwt": "^2.0.2",
|
|
68
|
-
"axios": "^
|
|
68
|
+
"axios": "^1.4.0",
|
|
69
69
|
"form-data": "^4.0.0",
|
|
70
70
|
"oauth": "^0.10.0",
|
|
71
|
-
"tslib": "^2.5.
|
|
71
|
+
"tslib": "^2.5.2"
|
|
72
72
|
}
|
|
73
73
|
}
|
package/src/api/audit.ts
CHANGED
|
@@ -17,7 +17,7 @@ export class Audit {
|
|
|
17
17
|
*/
|
|
18
18
|
async getAuditRecords<T = Models.AuditRecordArray>(
|
|
19
19
|
parameters: Parameters.GetAuditRecords | undefined,
|
|
20
|
-
callback: Callback<T
|
|
20
|
+
callback: Callback<T>,
|
|
21
21
|
): Promise<void>;
|
|
22
22
|
/**
|
|
23
23
|
* Returns all records in the audit log, optionally for a certain date range. This contains information about events
|
|
@@ -29,7 +29,7 @@ export class Audit {
|
|
|
29
29
|
*/
|
|
30
30
|
async getAuditRecords<T = Models.AuditRecordArray>(
|
|
31
31
|
parameters?: Parameters.GetAuditRecords,
|
|
32
|
-
callback?: never
|
|
32
|
+
callback?: never,
|
|
33
33
|
): Promise<T>;
|
|
34
34
|
async getAuditRecords<T = Models.AuditRecordArray>(
|
|
35
35
|
parameters?: Parameters.GetAuditRecords,
|
|
@@ -58,7 +58,7 @@ export class Audit {
|
|
|
58
58
|
*/
|
|
59
59
|
async createAuditRecord<T = Models.AuditRecord>(
|
|
60
60
|
parameters: Parameters.CreateAuditRecord | undefined,
|
|
61
|
-
callback: Callback<T
|
|
61
|
+
callback: Callback<T>,
|
|
62
62
|
): Promise<void>;
|
|
63
63
|
/**
|
|
64
64
|
* Creates a record in the audit log.
|
|
@@ -68,7 +68,7 @@ export class Audit {
|
|
|
68
68
|
*/
|
|
69
69
|
async createAuditRecord<T = Models.AuditRecord>(
|
|
70
70
|
parameters?: Parameters.CreateAuditRecord,
|
|
71
|
-
callback?: never
|
|
71
|
+
callback?: never,
|
|
72
72
|
): Promise<T>;
|
|
73
73
|
async createAuditRecord<T = Models.AuditRecord>(
|
|
74
74
|
parameters?: Parameters.CreateAuditRecord,
|
|
@@ -102,7 +102,7 @@ export class Audit {
|
|
|
102
102
|
*/
|
|
103
103
|
async exportAuditRecords<T = unknown>(
|
|
104
104
|
parameters: Parameters.ExportAuditRecords | undefined,
|
|
105
|
-
callback: Callback<T
|
|
105
|
+
callback: Callback<T>,
|
|
106
106
|
): Promise<void>;
|
|
107
107
|
/**
|
|
108
108
|
* Exports audit records as a CSV file or ZIP file.
|
|
@@ -162,7 +162,7 @@ export class Audit {
|
|
|
162
162
|
*/
|
|
163
163
|
async setRetentionPeriod<T = Models.RetentionPeriod>(
|
|
164
164
|
parameters: Parameters.SetRetentionPeriod | undefined,
|
|
165
|
-
callback: Callback<T
|
|
165
|
+
callback: Callback<T>,
|
|
166
166
|
): Promise<void>;
|
|
167
167
|
/**
|
|
168
168
|
* Sets the retention period for records in the audit log. The retention period can be set to a maximum of 20 years.
|
|
@@ -172,7 +172,7 @@ export class Audit {
|
|
|
172
172
|
*/
|
|
173
173
|
async setRetentionPeriod<T = Models.RetentionPeriod>(
|
|
174
174
|
parameters?: Parameters.SetRetentionPeriod,
|
|
175
|
-
callback?: never
|
|
175
|
+
callback?: never,
|
|
176
176
|
): Promise<T>;
|
|
177
177
|
async setRetentionPeriod<T = Models.RetentionPeriod>(
|
|
178
178
|
parameters?: Parameters.SetRetentionPeriod,
|
|
@@ -203,7 +203,7 @@ export class Audit {
|
|
|
203
203
|
*/
|
|
204
204
|
async getAuditRecordsForTimePeriod<T = Models.AuditRecordArray>(
|
|
205
205
|
parameters: Parameters.GetAuditRecordsForTimePeriod | undefined,
|
|
206
|
-
callback: Callback<T
|
|
206
|
+
callback: Callback<T>,
|
|
207
207
|
): Promise<void>;
|
|
208
208
|
/**
|
|
209
209
|
* Returns records from the audit log, for a time period back from the current date. For example, you can use this
|
|
@@ -218,7 +218,7 @@ export class Audit {
|
|
|
218
218
|
*/
|
|
219
219
|
async getAuditRecordsForTimePeriod<T = Models.AuditRecordArray>(
|
|
220
220
|
parameters?: Parameters.GetAuditRecordsForTimePeriod,
|
|
221
|
-
callback?: never
|
|
221
|
+
callback?: never,
|
|
222
222
|
): Promise<T>;
|
|
223
223
|
async getAuditRecordsForTimePeriod<T = Models.AuditRecordArray>(
|
|
224
224
|
parameters?: Parameters.GetAuditRecordsForTimePeriod,
|
package/src/api/content.ts
CHANGED
|
@@ -17,7 +17,7 @@ export class Content {
|
|
|
17
17
|
*/
|
|
18
18
|
async getContent<T = Models.ContentArray>(
|
|
19
19
|
parameters: Parameters.GetContent | undefined,
|
|
20
|
-
callback: Callback<T
|
|
20
|
+
callback: Callback<T>,
|
|
21
21
|
): Promise<void>;
|
|
22
22
|
/**
|
|
23
23
|
* Returns all content in a Confluence instance.
|
|
@@ -66,7 +66,7 @@ export class Content {
|
|
|
66
66
|
*/
|
|
67
67
|
async createContent<T = Models.Content>(
|
|
68
68
|
parameters: Parameters.CreateContent | undefined,
|
|
69
|
-
callback: Callback<T
|
|
69
|
+
callback: Callback<T>,
|
|
70
70
|
): Promise<void>;
|
|
71
71
|
/**
|
|
72
72
|
* Creates a new piece of content or publishes an existing draft.
|
|
@@ -153,7 +153,7 @@ export class Content {
|
|
|
153
153
|
*/
|
|
154
154
|
async publishLegacyDraft<T = Models.Content>(
|
|
155
155
|
parameters: Parameters.PublishLegacyDraft,
|
|
156
|
-
callback: Callback<T
|
|
156
|
+
callback: Callback<T>,
|
|
157
157
|
): Promise<void>;
|
|
158
158
|
/**
|
|
159
159
|
* Publishes a legacy draft of a page created from a blueprint. Legacy drafts will eventually be removed in favor of
|
|
@@ -200,7 +200,7 @@ export class Content {
|
|
|
200
200
|
*/
|
|
201
201
|
async publishSharedDraft<T = Models.Content>(
|
|
202
202
|
parameters: Parameters.PublishSharedDraft,
|
|
203
|
-
callback: Callback<T
|
|
203
|
+
callback: Callback<T>,
|
|
204
204
|
): Promise<void>;
|
|
205
205
|
/**
|
|
206
206
|
* Publishes a shared draft of a page created from a blueprint.
|
|
@@ -252,7 +252,7 @@ export class Content {
|
|
|
252
252
|
*/
|
|
253
253
|
async searchContentByCQL<T = Models.ContentArray>(
|
|
254
254
|
parameters: Parameters.SearchContentByCQL,
|
|
255
|
-
callback: Callback<T
|
|
255
|
+
callback: Callback<T>,
|
|
256
256
|
): Promise<void>;
|
|
257
257
|
/**
|
|
258
258
|
* Returns the list of content that matches a Confluence Query Language (CQL) query. For information on CQL, see:
|
|
@@ -271,7 +271,7 @@ export class Content {
|
|
|
271
271
|
*/
|
|
272
272
|
async searchContentByCQL<T = Models.ContentArray>(
|
|
273
273
|
parameters: Parameters.SearchContentByCQL,
|
|
274
|
-
callback?: never
|
|
274
|
+
callback?: never,
|
|
275
275
|
): Promise<T>;
|
|
276
276
|
async searchContentByCQL<T = Models.ContentArray>(
|
|
277
277
|
parameters: Parameters.SearchContentByCQL,
|
|
@@ -417,7 +417,7 @@ export class Content {
|
|
|
417
417
|
*/
|
|
418
418
|
async getHistoryForContent<T = Models.ContentHistory>(
|
|
419
419
|
parameters: Parameters.GetHistoryForContent,
|
|
420
|
-
callback: Callback<T
|
|
420
|
+
callback: Callback<T>,
|
|
421
421
|
): Promise<void>;
|
|
422
422
|
/**
|
|
423
423
|
* Returns the most recent update for a piece of content.
|
|
@@ -426,7 +426,7 @@ export class Content {
|
|
|
426
426
|
*/
|
|
427
427
|
async getHistoryForContent<T = Models.ContentHistory>(
|
|
428
428
|
parameters: Parameters.GetHistoryForContent,
|
|
429
|
-
callback?: never
|
|
429
|
+
callback?: never,
|
|
430
430
|
): Promise<T>;
|
|
431
431
|
async getHistoryForContent<T = Models.ContentHistory>(
|
|
432
432
|
parameters: Parameters.GetHistoryForContent,
|
|
@@ -18,7 +18,7 @@ export class ContentAttachments {
|
|
|
18
18
|
*/
|
|
19
19
|
async getAttachments<T = Models.ContentArray<Models.Attachment>>(
|
|
20
20
|
parameters: Parameters.GetAttachments,
|
|
21
|
-
callback: Callback<T
|
|
21
|
+
callback: Callback<T>,
|
|
22
22
|
): Promise<void>;
|
|
23
23
|
/**
|
|
24
24
|
* Returns the attachments for a piece of content.
|
|
@@ -30,7 +30,7 @@ export class ContentAttachments {
|
|
|
30
30
|
*/
|
|
31
31
|
async getAttachments<T = Models.ContentArray<Models.Attachment>>(
|
|
32
32
|
parameters: Parameters.GetAttachments,
|
|
33
|
-
callback?: never
|
|
33
|
+
callback?: never,
|
|
34
34
|
): Promise<T>;
|
|
35
35
|
async getAttachments<T = Models.ContentArray<Models.Attachment>>(
|
|
36
36
|
parameters: Parameters.GetAttachments,
|
|
@@ -60,7 +60,7 @@ export class ContentAttachments {
|
|
|
60
60
|
*/
|
|
61
61
|
async createAttachments<T = Models.ContentArray<Models.CreatedAttachment>>(
|
|
62
62
|
parameters: Parameters.CreateAttachments,
|
|
63
|
-
callback: Callback<T
|
|
63
|
+
callback: Callback<T>,
|
|
64
64
|
): Promise<void>;
|
|
65
65
|
/**
|
|
66
66
|
* Adds an attachment to a piece of content. This method only adds a new attachment. If you want to update an existing
|
|
@@ -71,7 +71,7 @@ export class ContentAttachments {
|
|
|
71
71
|
*/
|
|
72
72
|
async createAttachments<T = Models.ContentArray<Models.CreatedAttachment>>(
|
|
73
73
|
parameters: Parameters.CreateAttachments,
|
|
74
|
-
callback?: never
|
|
74
|
+
callback?: never,
|
|
75
75
|
): Promise<T>;
|
|
76
76
|
async createAttachments<T = Models.ContentArray<Models.CreatedAttachment>>(
|
|
77
77
|
parameters: Parameters.CreateAttachments,
|
|
@@ -117,7 +117,7 @@ export class ContentAttachments {
|
|
|
117
117
|
*/
|
|
118
118
|
async createOrUpdateAttachments<T = Models.ContentArray<Models.CreatedAttachment>>(
|
|
119
119
|
parameters: Parameters.CreateOrUpdateAttachments,
|
|
120
|
-
callback: Callback<T
|
|
120
|
+
callback: Callback<T>,
|
|
121
121
|
): Promise<void>;
|
|
122
122
|
/**
|
|
123
123
|
* Adds an attachment to a piece of content. If the attachment already exists for the content, then the attachment is
|
|
@@ -127,7 +127,7 @@ export class ContentAttachments {
|
|
|
127
127
|
*/
|
|
128
128
|
async createOrUpdateAttachments<T = Models.ContentArray<Models.CreatedAttachment>>(
|
|
129
129
|
parameters: Parameters.CreateOrUpdateAttachments,
|
|
130
|
-
callback?: never
|
|
130
|
+
callback?: never,
|
|
131
131
|
): Promise<T>;
|
|
132
132
|
async createOrUpdateAttachments<T = Models.ContentArray<Models.CreatedAttachment>>(
|
|
133
133
|
parameters: Parameters.CreateOrUpdateAttachments,
|
|
@@ -173,7 +173,7 @@ export class ContentAttachments {
|
|
|
173
173
|
*/
|
|
174
174
|
async updateAttachmentProperties<T = Models.CreatedAttachment>(
|
|
175
175
|
parameters: Parameters.UpdateAttachmentProperties,
|
|
176
|
-
callback: Callback<T
|
|
176
|
+
callback: Callback<T>,
|
|
177
177
|
): Promise<void>;
|
|
178
178
|
/**
|
|
179
179
|
* Updates the attachment properties, i.e. the non-binary data of an attachment like the filename, media-type,
|
|
@@ -183,7 +183,7 @@ export class ContentAttachments {
|
|
|
183
183
|
*/
|
|
184
184
|
async updateAttachmentProperties<T = Models.CreatedAttachment>(
|
|
185
185
|
parameters: Parameters.UpdateAttachmentProperties,
|
|
186
|
-
callback?: never
|
|
186
|
+
callback?: never,
|
|
187
187
|
): Promise<T>;
|
|
188
188
|
async updateAttachmentProperties<T = Models.CreatedAttachment>(
|
|
189
189
|
parameters: Parameters.UpdateAttachmentProperties,
|
|
@@ -210,7 +210,7 @@ export class ContentAttachments {
|
|
|
210
210
|
*/
|
|
211
211
|
async updateAttachmentData<T = Models.CreatedAttachment>(
|
|
212
212
|
parameters: Parameters.UpdateAttachmentData,
|
|
213
|
-
callback: Callback<T
|
|
213
|
+
callback: Callback<T>,
|
|
214
214
|
): Promise<void>;
|
|
215
215
|
/**
|
|
216
216
|
* Updates the binary data of an attachment, given the attachment ID, and optionally the comment and the minor edit
|
|
@@ -224,7 +224,7 @@ export class ContentAttachments {
|
|
|
224
224
|
*/
|
|
225
225
|
async updateAttachmentData<T = Models.CreatedAttachment>(
|
|
226
226
|
parameters: Parameters.UpdateAttachmentData,
|
|
227
|
-
callback?: never
|
|
227
|
+
callback?: never,
|
|
228
228
|
): Promise<T>;
|
|
229
229
|
async updateAttachmentData<T = Models.CreatedAttachment>(
|
|
230
230
|
parameters: Parameters.UpdateAttachmentData,
|
package/src/api/contentBody.ts
CHANGED
|
@@ -23,7 +23,7 @@ export class ContentBody {
|
|
|
23
23
|
*/
|
|
24
24
|
async convertContentBody<T = Models.ContentBody>(
|
|
25
25
|
parameters: Parameters.ConvertContentBody,
|
|
26
|
-
callback: Callback<T
|
|
26
|
+
callback: Callback<T>,
|
|
27
27
|
): Promise<void>;
|
|
28
28
|
/**
|
|
29
29
|
* Converts a content body from one format to another format.
|
|
@@ -41,7 +41,7 @@ export class ContentBody {
|
|
|
41
41
|
*/
|
|
42
42
|
async convertContentBody<T = Models.ContentBody>(
|
|
43
43
|
parameters: Parameters.ConvertContentBody,
|
|
44
|
-
callback?: never
|
|
44
|
+
callback?: never,
|
|
45
45
|
): Promise<T>;
|
|
46
46
|
async convertContentBody<T = Models.ContentBody>(
|
|
47
47
|
parameters: Parameters.ConvertContentBody,
|
|
@@ -82,7 +82,7 @@ export class ContentBody {
|
|
|
82
82
|
*/
|
|
83
83
|
async asyncConvertContentBodyRequest<T = Models.AsyncId>(
|
|
84
84
|
parameters: Parameters.AsyncConvertContentBodyRequest,
|
|
85
|
-
callback: Callback<T
|
|
85
|
+
callback: Callback<T>,
|
|
86
86
|
): Promise<void>;
|
|
87
87
|
/**
|
|
88
88
|
* Converts a content body from one format to another format asynchronously. Returns the asyncId for the asynchronous
|
|
@@ -100,7 +100,7 @@ export class ContentBody {
|
|
|
100
100
|
*/
|
|
101
101
|
async asyncConvertContentBodyRequest<T = Models.AsyncId>(
|
|
102
102
|
parameters: Parameters.AsyncConvertContentBodyRequest,
|
|
103
|
-
callback?: never
|
|
103
|
+
callback?: never,
|
|
104
104
|
): Promise<T>;
|
|
105
105
|
async asyncConvertContentBodyRequest<T = Models.AsyncId>(
|
|
106
106
|
parameters: Parameters.AsyncConvertContentBodyRequest,
|
|
@@ -138,7 +138,7 @@ export class ContentBody {
|
|
|
138
138
|
*/
|
|
139
139
|
async asyncConvertContentBodyResponse<T = Models.AsyncContentBody>(
|
|
140
140
|
parameters: Parameters.AsyncConvertContentBodyResponse,
|
|
141
|
-
callback: Callback<T
|
|
141
|
+
callback: Callback<T>,
|
|
142
142
|
): Promise<void>;
|
|
143
143
|
/**
|
|
144
144
|
* Returns the Asynchronous Content Body for the corresponding asyncId if the task is complete or returns the status
|
|
@@ -152,7 +152,7 @@ export class ContentBody {
|
|
|
152
152
|
*/
|
|
153
153
|
async asyncConvertContentBodyResponse<T = Models.AsyncContentBody>(
|
|
154
154
|
parameters: Parameters.AsyncConvertContentBodyResponse,
|
|
155
|
-
callback?: never
|
|
155
|
+
callback?: never,
|
|
156
156
|
): Promise<T>;
|
|
157
157
|
async asyncConvertContentBodyResponse<T = Models.AsyncContentBody>(
|
|
158
158
|
parameters: Parameters.AsyncConvertContentBodyResponse,
|
|
@@ -27,7 +27,7 @@ export class ContentChildrenAndDescendants {
|
|
|
27
27
|
*/
|
|
28
28
|
async getContentChildren<T = Models.ContentChildren>(
|
|
29
29
|
parameters: Parameters.GetContentChildren,
|
|
30
|
-
callback: Callback<T
|
|
30
|
+
callback: Callback<T>,
|
|
31
31
|
): Promise<void>;
|
|
32
32
|
/**
|
|
33
33
|
* Returns a map of the direct children of a piece of content. A piece of content has different types of child
|
|
@@ -49,7 +49,7 @@ export class ContentChildrenAndDescendants {
|
|
|
49
49
|
*/
|
|
50
50
|
async getContentChildren<T = Models.ContentChildren>(
|
|
51
51
|
parameters: Parameters.GetContentChildren,
|
|
52
|
-
callback?: never
|
|
52
|
+
callback?: never,
|
|
53
53
|
): Promise<T>;
|
|
54
54
|
async getContentChildren<T = Models.ContentChildren>(
|
|
55
55
|
parameters: Parameters.GetContentChildren,
|
|
@@ -121,7 +121,7 @@ export class ContentChildrenAndDescendants {
|
|
|
121
121
|
*/
|
|
122
122
|
async getContentChildrenByType<T = Models.ContentArray>(
|
|
123
123
|
parameters: Parameters.GetContentChildrenByType,
|
|
124
|
-
callback: Callback<T
|
|
124
|
+
callback: Callback<T>,
|
|
125
125
|
): Promise<void>;
|
|
126
126
|
/**
|
|
127
127
|
* Returns all children of a given type, for a piece of content. A piece of content has different types of child
|
|
@@ -142,7 +142,7 @@ export class ContentChildrenAndDescendants {
|
|
|
142
142
|
*/
|
|
143
143
|
async getContentChildrenByType<T = Models.ContentArray>(
|
|
144
144
|
parameters: Parameters.GetContentChildrenByType,
|
|
145
|
-
callback?: never
|
|
145
|
+
callback?: never,
|
|
146
146
|
): Promise<T>;
|
|
147
147
|
async getContentChildrenByType<T = Models.ContentArray>(
|
|
148
148
|
parameters: Parameters.GetContentChildrenByType,
|
|
@@ -181,7 +181,7 @@ export class ContentChildrenAndDescendants {
|
|
|
181
181
|
*/
|
|
182
182
|
async getContentDescendants<T = Models.ContentChildren>(
|
|
183
183
|
parameters: Parameters.GetContentDescendants,
|
|
184
|
-
callback: Callback<T
|
|
184
|
+
callback: Callback<T>,
|
|
185
185
|
): Promise<void>;
|
|
186
186
|
/**
|
|
187
187
|
* Returns a map of the descendants of a piece of content. This is similar to [Get content
|
|
@@ -203,7 +203,7 @@ export class ContentChildrenAndDescendants {
|
|
|
203
203
|
*/
|
|
204
204
|
async getContentDescendants<T = Models.ContentChildren>(
|
|
205
205
|
parameters: Parameters.GetContentDescendants,
|
|
206
|
-
callback?: never
|
|
206
|
+
callback?: never,
|
|
207
207
|
): Promise<T>;
|
|
208
208
|
async getContentDescendants<T = Models.ContentChildren>(
|
|
209
209
|
parameters: Parameters.GetContentDescendants,
|
|
@@ -223,12 +223,12 @@ export class ContentChildrenAndDescendants {
|
|
|
223
223
|
/** @deprecated This API will be removed in the next major version. Use `getDescendantsOfType` method instead. */
|
|
224
224
|
async descendantsOfType<T = Models.ContentArray>(
|
|
225
225
|
parameters: Parameters.DescendantsOfType,
|
|
226
|
-
callback: Callback<T
|
|
226
|
+
callback: Callback<T>,
|
|
227
227
|
): Promise<void>;
|
|
228
228
|
/** @deprecated This API will be removed in the next major version. Use `getDescendantsOfType` method instead. */
|
|
229
229
|
async descendantsOfType<T = Models.ContentArray>(
|
|
230
230
|
parameters: Parameters.DescendantsOfType,
|
|
231
|
-
callback?: never
|
|
231
|
+
callback?: never,
|
|
232
232
|
): Promise<T>;
|
|
233
233
|
async descendantsOfType<T = Models.ContentArray>(
|
|
234
234
|
parameters: Parameters.DescendantsOfType,
|
|
@@ -256,7 +256,7 @@ export class ContentChildrenAndDescendants {
|
|
|
256
256
|
*/
|
|
257
257
|
async getDescendantsOfType<T = Models.ContentArray>(
|
|
258
258
|
parameters: Parameters.GetDescendantsOfType,
|
|
259
|
-
callback: Callback<T
|
|
259
|
+
callback: Callback<T>,
|
|
260
260
|
): Promise<void>;
|
|
261
261
|
/**
|
|
262
262
|
* Returns all descendants of a given type, for a piece of content. This is similar to [Get content children by
|
|
@@ -277,7 +277,7 @@ export class ContentChildrenAndDescendants {
|
|
|
277
277
|
*/
|
|
278
278
|
async getDescendantsOfType<T = Models.ContentArray>(
|
|
279
279
|
parameters: Parameters.GetDescendantsOfType,
|
|
280
|
-
callback?: never
|
|
280
|
+
callback?: never,
|
|
281
281
|
): Promise<T>;
|
|
282
282
|
async getDescendantsOfType<T = Models.ContentArray>(
|
|
283
283
|
parameters: Parameters.GetDescendantsOfType,
|
|
@@ -306,7 +306,7 @@ export class ContentChildrenAndDescendants {
|
|
|
306
306
|
*/
|
|
307
307
|
async copyPageHierarchy<T = Models.LongTask>(
|
|
308
308
|
parameters: Parameters.CopyPageHierarchy,
|
|
309
|
-
callback: Callback<T
|
|
309
|
+
callback: Callback<T>,
|
|
310
310
|
): Promise<void>;
|
|
311
311
|
/**
|
|
312
312
|
* Copy page hierarchy allows the copying of an entire hierarchy of pages and their associated properties, permissions
|
|
@@ -15,7 +15,7 @@ export class ContentComments {
|
|
|
15
15
|
*/
|
|
16
16
|
async getContentComments<T = Models.ContentArray>(
|
|
17
17
|
parameters: Parameters.GetContentComments,
|
|
18
|
-
callback: Callback<T
|
|
18
|
+
callback: Callback<T>,
|
|
19
19
|
): Promise<void>;
|
|
20
20
|
/**
|
|
21
21
|
* Returns the comments on a piece of content.
|
|
@@ -25,7 +25,7 @@ export class ContentComments {
|
|
|
25
25
|
*/
|
|
26
26
|
async getContentComments<T = Models.ContentArray>(
|
|
27
27
|
parameters: Parameters.GetContentComments,
|
|
28
|
-
callback?: never
|
|
28
|
+
callback?: never,
|
|
29
29
|
): Promise<T>;
|
|
30
30
|
async getContentComments<T = Models.ContentArray>(
|
|
31
31
|
parameters: Parameters.GetContentComments,
|