Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
256 changes: 128 additions & 128 deletions package-lock.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "confluence.js",
"version": "1.3.0",
"version": "1.3.1",
"description": "confluence.js is a powerful Node.JS/Browser module that allows you to interact with the Confluence API very easily",
"author": "Vladislav Tupikin <mrrefactoring@yandex.ru>",
"license": "MIT",
Expand Down Expand Up @@ -45,14 +45,14 @@
"eslint-config-airbnb-typescript": "^16.1.0",
"eslint-import-resolver-typescript": "^2.5.0",
"eslint-plugin-import": "^2.25.3",
"jest": "^27.4.3",
"jest": "^27.4.4",
"prettier": "^2.5.1",
"prettier-plugin-jsdoc": "^0.3.30",
"sinon": "^12.0.1",
"ts-jest": "^27.1.1",
"typedoc": "^0.22.10",
"typedoc-plugin-extras": "^2.2.1",
"typescript": "^4.5.2"
"typescript": "^4.5.3"
},
"dependencies": {
"atlassian-jwt": "^2.0.2",
Expand Down
12 changes: 6 additions & 6 deletions src/api/audit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export class Audit {
},
};

return this.client.sendRequest(config, callback, { methodName: 'getAuditRecords' });
return this.client.sendRequest(config, callback);
}

/**
Expand Down Expand Up @@ -87,7 +87,7 @@ export class Audit {
},
};

return this.client.sendRequest(config, callback, { methodName: 'createAuditRecord' });
return this.client.sendRequest(config, callback);
}

/**
Expand Down Expand Up @@ -120,7 +120,7 @@ export class Audit {
},
};

return this.client.sendRequest(config, callback, { methodName: 'exportAuditRecords' });
return this.client.sendRequest(config, callback);
}

/**
Expand All @@ -143,7 +143,7 @@ export class Audit {
method: 'GET',
};

return this.client.sendRequest(config, callback, { methodName: 'getRetentionPeriod' });
return this.client.sendRequest(config, callback);
}

/**
Expand Down Expand Up @@ -177,7 +177,7 @@ export class Audit {
},
};

return this.client.sendRequest(config, callback, { methodName: 'setRetentionPeriod' });
return this.client.sendRequest(config, callback);
}

/**
Expand Down Expand Up @@ -224,6 +224,6 @@ export class Audit {
},
};

return this.client.sendRequest(config, callback, { methodName: 'getAuditRecordsForTimePeriod' });
return this.client.sendRequest(config, callback);
}
}
20 changes: 10 additions & 10 deletions src/api/content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export class Content {
},
};

return this.client.sendRequest(config, callback, { methodName: 'getContent' });
return this.client.sendRequest(config, callback);
}

/**
Expand Down Expand Up @@ -99,7 +99,7 @@ export class Content {
},
};

return this.client.sendRequest(config, callback, { methodName: 'createContent' });
return this.client.sendRequest(config, callback);
}

/**
Expand Down Expand Up @@ -138,7 +138,7 @@ export class Content {
},
};

return this.client.sendRequest(config, callback, { methodName: 'archivePages' });
return this.client.sendRequest(config, callback);
}

/**
Expand Down Expand Up @@ -185,7 +185,7 @@ export class Content {
},
};

return this.client.sendRequest(config, callback, { methodName: 'publishLegacyDraft' });
return this.client.sendRequest(config, callback);
}

/**
Expand Down Expand Up @@ -230,7 +230,7 @@ export class Content {
},
};

return this.client.sendRequest(config, callback, { methodName: 'publishSharedDraft' });
return this.client.sendRequest(config, callback);
}

/**
Expand Down Expand Up @@ -286,7 +286,7 @@ export class Content {
},
};

return this.client.sendRequest(config, callback, { methodName: 'searchContentByCQL' });
return this.client.sendRequest(config, callback);
}

/**
Expand Down Expand Up @@ -323,7 +323,7 @@ export class Content {
},
};

return this.client.sendRequest(config, callback, { methodName: 'getContentById' });
return this.client.sendRequest(config, callback);
}

/**
Expand Down Expand Up @@ -365,7 +365,7 @@ export class Content {
},
};

return this.client.sendRequest(config, callback, { methodName: 'updateContent' });
return this.client.sendRequest(config, callback);
}

/**
Expand Down Expand Up @@ -401,7 +401,7 @@ export class Content {
},
};

return this.client.sendRequest(config, callback, { methodName: 'deleteContent' });
return this.client.sendRequest(config, callback);
}

/**
Expand Down Expand Up @@ -434,6 +434,6 @@ export class Content {
},
};

return this.client.sendRequest(config, callback, { methodName: 'getHistoryForContent' });
return this.client.sendRequest(config, callback);
}
}
12 changes: 6 additions & 6 deletions src/api/contentAttachments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export class ContentAttachments {
},
};

return this.client.sendRequest(config, callback, { methodName: 'getAttachments' });
return this.client.sendRequest(config, callback);
}

/**
Expand Down Expand Up @@ -136,7 +136,7 @@ export class ContentAttachments {
},
};

return this.client.sendRequest(config, callback, { methodName: 'createAttachments' });
return this.client.sendRequest(config, callback);
}

/**
Expand Down Expand Up @@ -230,7 +230,7 @@ export class ContentAttachments {
},
};

return this.client.sendRequest(config, callback, { methodName: 'createOrUpdateAttachments' });
return this.client.sendRequest(config, callback);
}

/**
Expand Down Expand Up @@ -263,7 +263,7 @@ export class ContentAttachments {
data: parameters.body,
};

return this.client.sendRequest(config, callback, { methodName: 'updateAttachmentProperties' });
return this.client.sendRequest(config, callback);
}

/**
Expand Down Expand Up @@ -358,7 +358,7 @@ export class ContentAttachments {
},
};

return this.client.sendRequest(config, callback, { methodName: 'updateAttachmentData' });
return this.client.sendRequest(config, callback);
}

/** Redirects the client to a URL that serves an attachment's binary data. */
Expand All @@ -381,6 +381,6 @@ export class ContentAttachments {
},
};

return this.client.sendRequest(config, callback, { methodName: 'downloadAttachment' });
return this.client.sendRequest(config, callback);
}
}
2 changes: 1 addition & 1 deletion src/api/contentBody.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,6 @@ export class ContentBody {
},
};

return this.client.sendRequest(config, callback, { methodName: 'convertContentBody' });
return this.client.sendRequest(config, callback);
}
}
14 changes: 7 additions & 7 deletions src/api/contentChildrenAndDescendants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export class ContentChildrenAndDescendants {
},
};

return this.client.sendRequest(config, callback, { methodName: 'getContentChildren' });
return this.client.sendRequest(config, callback);
}

/**
Expand Down Expand Up @@ -97,7 +97,7 @@ export class ContentChildrenAndDescendants {
method: 'PUT',
};

return this.client.sendRequest(config, callback, { methodName: 'movePage' });
return this.client.sendRequest(config, callback);
}

/**
Expand Down Expand Up @@ -156,7 +156,7 @@ export class ContentChildrenAndDescendants {
},
};

return this.client.sendRequest(config, callback, { methodName: 'getContentChildrenByType' });
return this.client.sendRequest(config, callback);
}

/**
Expand Down Expand Up @@ -215,7 +215,7 @@ export class ContentChildrenAndDescendants {
},
};

return this.client.sendRequest(config, callback, { methodName: 'getContentDescendants' });
return this.client.sendRequest(config, callback);
}

/** @deprecated This API will be removed in the next major version. Use `getDescendantsOfType` method instead. */
Expand Down Expand Up @@ -292,7 +292,7 @@ export class ContentChildrenAndDescendants {
},
};

return this.client.sendRequest(config, callback, { methodName: 'descendantsOfType' });
return this.client.sendRequest(config, callback);
}

/**
Expand Down Expand Up @@ -329,7 +329,7 @@ export class ContentChildrenAndDescendants {
},
};

return this.client.sendRequest(config, callback, { methodName: 'copyPageHierarchy' });
return this.client.sendRequest(config, callback);
}

/**
Expand Down Expand Up @@ -372,6 +372,6 @@ export class ContentChildrenAndDescendants {
data: parameters.bodyParameters,
};

return this.client.sendRequest(config, callback, { methodName: 'copyPage' });
return this.client.sendRequest(config, callback);
}
}
2 changes: 1 addition & 1 deletion src/api/contentComments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@ export class ContentComments {
},
};

return this.client.sendRequest(config, callback, { methodName: 'getContentComments' });
return this.client.sendRequest(config, callback);
}
}
8 changes: 4 additions & 4 deletions src/api/contentLabels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export class ContentLabels {
},
};

return this.client.sendRequest(config, callback, { methodName: 'getLabelsForContent' });
return this.client.sendRequest(config, callback);
}

/**
Expand Down Expand Up @@ -87,7 +87,7 @@ export class ContentLabels {
data: parameters.body,
};

return this.client.sendRequest(config, callback, { methodName: 'addLabelsToContent' });
return this.client.sendRequest(config, callback);
}

/**
Expand Down Expand Up @@ -128,7 +128,7 @@ export class ContentLabels {
},
};

return this.client.sendRequest(config, callback, { methodName: 'removeLabelFromContentUsingQueryParameter' });
return this.client.sendRequest(config, callback);
}

/**
Expand Down Expand Up @@ -165,6 +165,6 @@ export class ContentLabels {
method: 'DELETE',
};

return this.client.sendRequest(config, callback, { methodName: 'removeLabelFromContent' });
return this.client.sendRequest(config, callback);
}
}
2 changes: 1 addition & 1 deletion src/api/contentMacroBody.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,6 @@ export class ContentMacroBody {
method: 'GET',
};

return this.client.sendRequest(config, callback, { methodName: 'getMacroBodyByMacroId' });
return this.client.sendRequest(config, callback);
}
}
2 changes: 1 addition & 1 deletion src/api/contentPermissions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,6 @@ export class ContentPermissions {
},
};

return this.client.sendRequest(config, callback, { methodName: 'checkContentPermission' });
return this.client.sendRequest(config, callback);
}
}
Loading