Skip to content

Commit 8089e3c

Browse files
Fixes for #14 and removing telemetry data from endpoints (#18)
* telemetry data removed from endpoints * #14 bugfix
1 parent 21217b9 commit 8089e3c

33 files changed

+309
-294
lines changed

package-lock.json

Lines changed: 128 additions & 128 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "confluence.js",
3-
"version": "1.3.0",
3+
"version": "1.3.1",
44
"description": "confluence.js is a powerful Node.JS/Browser module that allows you to interact with the Confluence API very easily",
55
"author": "Vladislav Tupikin <[email protected]>",
66
"license": "MIT",
@@ -45,14 +45,14 @@
4545
"eslint-config-airbnb-typescript": "^16.1.0",
4646
"eslint-import-resolver-typescript": "^2.5.0",
4747
"eslint-plugin-import": "^2.25.3",
48-
"jest": "^27.4.3",
48+
"jest": "^27.4.4",
4949
"prettier": "^2.5.1",
5050
"prettier-plugin-jsdoc": "^0.3.30",
5151
"sinon": "^12.0.1",
5252
"ts-jest": "^27.1.1",
5353
"typedoc": "^0.22.10",
5454
"typedoc-plugin-extras": "^2.2.1",
55-
"typescript": "^4.5.2"
55+
"typescript": "^4.5.3"
5656
},
5757
"dependencies": {
5858
"atlassian-jwt": "^2.0.2",

src/api/audit.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export class Audit {
4545
},
4646
};
4747

48-
return this.client.sendRequest(config, callback, { methodName: 'getAuditRecords' });
48+
return this.client.sendRequest(config, callback);
4949
}
5050

5151
/**
@@ -87,7 +87,7 @@ export class Audit {
8787
},
8888
};
8989

90-
return this.client.sendRequest(config, callback, { methodName: 'createAuditRecord' });
90+
return this.client.sendRequest(config, callback);
9191
}
9292

9393
/**
@@ -120,7 +120,7 @@ export class Audit {
120120
},
121121
};
122122

123-
return this.client.sendRequest(config, callback, { methodName: 'exportAuditRecords' });
123+
return this.client.sendRequest(config, callback);
124124
}
125125

126126
/**
@@ -143,7 +143,7 @@ export class Audit {
143143
method: 'GET',
144144
};
145145

146-
return this.client.sendRequest(config, callback, { methodName: 'getRetentionPeriod' });
146+
return this.client.sendRequest(config, callback);
147147
}
148148

149149
/**
@@ -177,7 +177,7 @@ export class Audit {
177177
},
178178
};
179179

180-
return this.client.sendRequest(config, callback, { methodName: 'setRetentionPeriod' });
180+
return this.client.sendRequest(config, callback);
181181
}
182182

183183
/**
@@ -224,6 +224,6 @@ export class Audit {
224224
},
225225
};
226226

227-
return this.client.sendRequest(config, callback, { methodName: 'getAuditRecordsForTimePeriod' });
227+
return this.client.sendRequest(config, callback);
228228
}
229229
}

src/api/content.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export class Content {
4949
},
5050
};
5151

52-
return this.client.sendRequest(config, callback, { methodName: 'getContent' });
52+
return this.client.sendRequest(config, callback);
5353
}
5454

5555
/**
@@ -99,7 +99,7 @@ export class Content {
9999
},
100100
};
101101

102-
return this.client.sendRequest(config, callback, { methodName: 'createContent' });
102+
return this.client.sendRequest(config, callback);
103103
}
104104

105105
/**
@@ -138,7 +138,7 @@ export class Content {
138138
},
139139
};
140140

141-
return this.client.sendRequest(config, callback, { methodName: 'archivePages' });
141+
return this.client.sendRequest(config, callback);
142142
}
143143

144144
/**
@@ -185,7 +185,7 @@ export class Content {
185185
},
186186
};
187187

188-
return this.client.sendRequest(config, callback, { methodName: 'publishLegacyDraft' });
188+
return this.client.sendRequest(config, callback);
189189
}
190190

191191
/**
@@ -230,7 +230,7 @@ export class Content {
230230
},
231231
};
232232

233-
return this.client.sendRequest(config, callback, { methodName: 'publishSharedDraft' });
233+
return this.client.sendRequest(config, callback);
234234
}
235235

236236
/**
@@ -286,7 +286,7 @@ export class Content {
286286
},
287287
};
288288

289-
return this.client.sendRequest(config, callback, { methodName: 'searchContentByCQL' });
289+
return this.client.sendRequest(config, callback);
290290
}
291291

292292
/**
@@ -323,7 +323,7 @@ export class Content {
323323
},
324324
};
325325

326-
return this.client.sendRequest(config, callback, { methodName: 'getContentById' });
326+
return this.client.sendRequest(config, callback);
327327
}
328328

329329
/**
@@ -365,7 +365,7 @@ export class Content {
365365
},
366366
};
367367

368-
return this.client.sendRequest(config, callback, { methodName: 'updateContent' });
368+
return this.client.sendRequest(config, callback);
369369
}
370370

371371
/**
@@ -401,7 +401,7 @@ export class Content {
401401
},
402402
};
403403

404-
return this.client.sendRequest(config, callback, { methodName: 'deleteContent' });
404+
return this.client.sendRequest(config, callback);
405405
}
406406

407407
/**
@@ -434,6 +434,6 @@ export class Content {
434434
},
435435
};
436436

437-
return this.client.sendRequest(config, callback, { methodName: 'getHistoryForContent' });
437+
return this.client.sendRequest(config, callback);
438438
}
439439
}

src/api/contentAttachments.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export class ContentAttachments {
4444
},
4545
};
4646

47-
return this.client.sendRequest(config, callback, { methodName: 'getAttachments' });
47+
return this.client.sendRequest(config, callback);
4848
}
4949

5050
/**
@@ -136,7 +136,7 @@ export class ContentAttachments {
136136
},
137137
};
138138

139-
return this.client.sendRequest(config, callback, { methodName: 'createAttachments' });
139+
return this.client.sendRequest(config, callback);
140140
}
141141

142142
/**
@@ -230,7 +230,7 @@ export class ContentAttachments {
230230
},
231231
};
232232

233-
return this.client.sendRequest(config, callback, { methodName: 'createOrUpdateAttachments' });
233+
return this.client.sendRequest(config, callback);
234234
}
235235

236236
/**
@@ -263,7 +263,7 @@ export class ContentAttachments {
263263
data: parameters.body,
264264
};
265265

266-
return this.client.sendRequest(config, callback, { methodName: 'updateAttachmentProperties' });
266+
return this.client.sendRequest(config, callback);
267267
}
268268

269269
/**
@@ -358,7 +358,7 @@ export class ContentAttachments {
358358
},
359359
};
360360

361-
return this.client.sendRequest(config, callback, { methodName: 'updateAttachmentData' });
361+
return this.client.sendRequest(config, callback);
362362
}
363363

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

384-
return this.client.sendRequest(config, callback, { methodName: 'downloadAttachment' });
384+
return this.client.sendRequest(config, callback);
385385
}
386386
}

src/api/contentBody.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,6 @@ export class ContentBody {
6161
},
6262
};
6363

64-
return this.client.sendRequest(config, callback, { methodName: 'convertContentBody' });
64+
return this.client.sendRequest(config, callback);
6565
}
6666
}

src/api/contentChildrenAndDescendants.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export class ContentChildrenAndDescendants {
6464
},
6565
};
6666

67-
return this.client.sendRequest(config, callback, { methodName: 'getContentChildren' });
67+
return this.client.sendRequest(config, callback);
6868
}
6969

7070
/**
@@ -97,7 +97,7 @@ export class ContentChildrenAndDescendants {
9797
method: 'PUT',
9898
};
9999

100-
return this.client.sendRequest(config, callback, { methodName: 'movePage' });
100+
return this.client.sendRequest(config, callback);
101101
}
102102

103103
/**
@@ -156,7 +156,7 @@ export class ContentChildrenAndDescendants {
156156
},
157157
};
158158

159-
return this.client.sendRequest(config, callback, { methodName: 'getContentChildrenByType' });
159+
return this.client.sendRequest(config, callback);
160160
}
161161

162162
/**
@@ -215,7 +215,7 @@ export class ContentChildrenAndDescendants {
215215
},
216216
};
217217

218-
return this.client.sendRequest(config, callback, { methodName: 'getContentDescendants' });
218+
return this.client.sendRequest(config, callback);
219219
}
220220

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

295-
return this.client.sendRequest(config, callback, { methodName: 'descendantsOfType' });
295+
return this.client.sendRequest(config, callback);
296296
}
297297

298298
/**
@@ -329,7 +329,7 @@ export class ContentChildrenAndDescendants {
329329
},
330330
};
331331

332-
return this.client.sendRequest(config, callback, { methodName: 'copyPageHierarchy' });
332+
return this.client.sendRequest(config, callback);
333333
}
334334

335335
/**
@@ -372,6 +372,6 @@ export class ContentChildrenAndDescendants {
372372
data: parameters.bodyParameters,
373373
};
374374

375-
return this.client.sendRequest(config, callback, { methodName: 'copyPage' });
375+
return this.client.sendRequest(config, callback);
376376
}
377377
}

src/api/contentComments.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@ export class ContentComments {
4343
},
4444
};
4545

46-
return this.client.sendRequest(config, callback, { methodName: 'getContentComments' });
46+
return this.client.sendRequest(config, callback);
4747
}
4848
}

src/api/contentLabels.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export class ContentLabels {
4141
},
4242
};
4343

44-
return this.client.sendRequest(config, callback, { methodName: 'getLabelsForContent' });
44+
return this.client.sendRequest(config, callback);
4545
}
4646

4747
/**
@@ -87,7 +87,7 @@ export class ContentLabels {
8787
data: parameters.body,
8888
};
8989

90-
return this.client.sendRequest(config, callback, { methodName: 'addLabelsToContent' });
90+
return this.client.sendRequest(config, callback);
9191
}
9292

9393
/**
@@ -128,7 +128,7 @@ export class ContentLabels {
128128
},
129129
};
130130

131-
return this.client.sendRequest(config, callback, { methodName: 'removeLabelFromContentUsingQueryParameter' });
131+
return this.client.sendRequest(config, callback);
132132
}
133133

134134
/**
@@ -165,6 +165,6 @@ export class ContentLabels {
165165
method: 'DELETE',
166166
};
167167

168-
return this.client.sendRequest(config, callback, { methodName: 'removeLabelFromContent' });
168+
return this.client.sendRequest(config, callback);
169169
}
170170
}

src/api/contentMacroBody.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,6 @@ export class ContentMacroBody {
5454
method: 'GET',
5555
};
5656

57-
return this.client.sendRequest(config, callback, { methodName: 'getMacroBodyByMacroId' });
57+
return this.client.sendRequest(config, callback);
5858
}
5959
}

0 commit comments

Comments
 (0)