confluence.js 1.3.0 → 1.3.1

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.
Files changed (62) hide show
  1. package/out/api/audit.js +6 -6
  2. package/out/api/content.js +10 -10
  3. package/out/api/contentAttachments.js +6 -6
  4. package/out/api/contentBody.js +1 -1
  5. package/out/api/contentChildrenAndDescendants.js +7 -7
  6. package/out/api/contentComments.js +1 -1
  7. package/out/api/contentLabels.js +4 -4
  8. package/out/api/contentMacroBody.js +1 -1
  9. package/out/api/contentPermissions.js +1 -1
  10. package/out/api/contentProperties.js +6 -6
  11. package/out/api/contentRestrictions.js +15 -15
  12. package/out/api/contentVersions.js +4 -4
  13. package/out/api/contentWatches.js +12 -12
  14. package/out/api/dynamicModules.js +3 -3
  15. package/out/api/experimental.js +5 -5
  16. package/out/api/group.js +15 -15
  17. package/out/api/inlineTasks.js +3 -3
  18. package/out/api/labelInfo.js +1 -1
  19. package/out/api/longRunningTask.js +2 -2
  20. package/out/api/relation.js +5 -5
  21. package/out/api/search.d.ts +2 -2
  22. package/out/api/search.js +3 -2
  23. package/out/api/settings.js +6 -6
  24. package/out/api/space.js +9 -10
  25. package/out/api/spacePermissions.js +3 -3
  26. package/out/api/spaceProperties.js +6 -6
  27. package/out/api/spaceSettings.js +2 -2
  28. package/out/api/template.js +6 -6
  29. package/out/api/themes.js +6 -6
  30. package/out/api/users.js +8 -8
  31. package/out/clients/baseClient.js +6 -2
  32. package/package.json +3 -3
  33. package/src/api/audit.ts +6 -6
  34. package/src/api/content.ts +10 -10
  35. package/src/api/contentAttachments.ts +6 -6
  36. package/src/api/contentBody.ts +1 -1
  37. package/src/api/contentChildrenAndDescendants.ts +7 -7
  38. package/src/api/contentComments.ts +1 -1
  39. package/src/api/contentLabels.ts +4 -4
  40. package/src/api/contentMacroBody.ts +1 -1
  41. package/src/api/contentPermissions.ts +1 -1
  42. package/src/api/contentProperties.ts +6 -6
  43. package/src/api/contentRestrictions.ts +15 -15
  44. package/src/api/contentVersions.ts +4 -4
  45. package/src/api/contentWatches.ts +12 -12
  46. package/src/api/dynamicModules.ts +3 -3
  47. package/src/api/experimental.ts +5 -5
  48. package/src/api/group.ts +16 -15
  49. package/src/api/inlineTasks.ts +3 -3
  50. package/src/api/labelInfo.ts +1 -1
  51. package/src/api/longRunningTask.ts +2 -2
  52. package/src/api/relation.ts +5 -5
  53. package/src/api/search.ts +6 -4
  54. package/src/api/settings.ts +6 -6
  55. package/src/api/space.ts +9 -9
  56. package/src/api/spacePermissions.ts +3 -3
  57. package/src/api/spaceProperties.ts +6 -6
  58. package/src/api/spaceSettings.ts +2 -2
  59. package/src/api/template.ts +6 -6
  60. package/src/api/themes.ts +6 -6
  61. package/src/api/users.ts +8 -8
  62. package/src/clients/baseClient.ts +6 -2
package/out/api/themes.js CHANGED
@@ -16,7 +16,7 @@ class Themes {
16
16
  limit: parameters === null || parameters === void 0 ? void 0 : parameters.limit,
17
17
  },
18
18
  };
19
- return this.client.sendRequest(config, callback, { methodName: 'getThemes' });
19
+ return this.client.sendRequest(config, callback);
20
20
  });
21
21
  }
22
22
  getGlobalTheme(callback) {
@@ -25,7 +25,7 @@ class Themes {
25
25
  url: '/api/settings/theme/selected',
26
26
  method: 'GET',
27
27
  };
28
- return this.client.sendRequest(config, callback, { methodName: 'getGlobalTheme' });
28
+ return this.client.sendRequest(config, callback);
29
29
  });
30
30
  }
31
31
  getTheme(parameters, callback) {
@@ -34,7 +34,7 @@ class Themes {
34
34
  url: `/api/settings/theme/${parameters.themeKey}`,
35
35
  method: 'GET',
36
36
  };
37
- return this.client.sendRequest(config, callback, { methodName: 'getTheme' });
37
+ return this.client.sendRequest(config, callback);
38
38
  });
39
39
  }
40
40
  getSpaceTheme(parameters, callback) {
@@ -43,7 +43,7 @@ class Themes {
43
43
  url: `/api/space/${parameters.spaceKey}/theme`,
44
44
  method: 'GET',
45
45
  };
46
- return this.client.sendRequest(config, callback, { methodName: 'getSpaceTheme' });
46
+ return this.client.sendRequest(config, callback);
47
47
  });
48
48
  }
49
49
  setSpaceTheme(parameters, callback) {
@@ -55,7 +55,7 @@ class Themes {
55
55
  themeKey: parameters.themeKey,
56
56
  },
57
57
  };
58
- return this.client.sendRequest(config, callback, { methodName: 'setSpaceTheme' });
58
+ return this.client.sendRequest(config, callback);
59
59
  });
60
60
  }
61
61
  resetSpaceTheme(parameters, callback) {
@@ -64,7 +64,7 @@ class Themes {
64
64
  url: `/api/space/${parameters.spaceKey}/theme`,
65
65
  method: 'DELETE',
66
66
  };
67
- return this.client.sendRequest(config, callback, { methodName: 'resetSpaceTheme' });
67
+ return this.client.sendRequest(config, callback);
68
68
  });
69
69
  }
70
70
  }
package/out/api/users.js CHANGED
@@ -18,7 +18,7 @@ class Users {
18
18
  expand: parameters.expand,
19
19
  },
20
20
  };
21
- return this.client.sendRequest(config, callback, { methodName: 'getUser' });
21
+ return this.client.sendRequest(config, callback);
22
22
  });
23
23
  }
24
24
  getAnonymousUser(parameters, callback) {
@@ -30,7 +30,7 @@ class Users {
30
30
  expand: parameters === null || parameters === void 0 ? void 0 : parameters.expand,
31
31
  },
32
32
  };
33
- return this.client.sendRequest(config, callback, { methodName: 'getAnonymousUser' });
33
+ return this.client.sendRequest(config, callback);
34
34
  });
35
35
  }
36
36
  getCurrentUser(parameters, callback) {
@@ -42,7 +42,7 @@ class Users {
42
42
  expand: parameters === null || parameters === void 0 ? void 0 : parameters.expand,
43
43
  },
44
44
  };
45
- return this.client.sendRequest(config, callback, { methodName: 'getCurrentUser' });
45
+ return this.client.sendRequest(config, callback);
46
46
  });
47
47
  }
48
48
  getGroupMembershipsForUser(parameters, callback) {
@@ -58,7 +58,7 @@ class Users {
58
58
  limit: parameters.limit,
59
59
  },
60
60
  };
61
- return this.client.sendRequest(config, callback, { methodName: 'getGroupMembershipsForUser' });
61
+ return this.client.sendRequest(config, callback);
62
62
  });
63
63
  }
64
64
  getBulkUserLookup(parameters, callback) {
@@ -72,7 +72,7 @@ class Users {
72
72
  limit: parameters.limit,
73
73
  },
74
74
  };
75
- return this.client.sendRequest(config, callback, { methodName: 'getBulkUserLookup' });
75
+ return this.client.sendRequest(config, callback);
76
76
  });
77
77
  }
78
78
  getPrivacyUnsafeUserEmail(parameters, callback) {
@@ -84,7 +84,7 @@ class Users {
84
84
  accountId: parameters.accountId,
85
85
  },
86
86
  };
87
- return this.client.sendRequest(config, callback, { methodName: 'getPrivacyUnsafeUserEmail' });
87
+ return this.client.sendRequest(config, callback);
88
88
  });
89
89
  }
90
90
  getPrivacyUnsafeUserEmailBulk(parameters, callback) {
@@ -96,7 +96,7 @@ class Users {
96
96
  accountId: parameters.accountId,
97
97
  },
98
98
  };
99
- return this.client.sendRequest(config, callback, { methodName: 'getPrivacyUnsafeUserEmailBulk' });
99
+ return this.client.sendRequest(config, callback);
100
100
  });
101
101
  }
102
102
  getBulkUserMigration(parameters, callback) {
@@ -111,7 +111,7 @@ class Users {
111
111
  limit: parameters.limit,
112
112
  },
113
113
  };
114
- return this.client.sendRequest(config, callback, { methodName: 'getBulkUserMigration' });
114
+ return this.client.sendRequest(config, callback);
115
115
  });
116
116
  }
117
117
  }
@@ -17,7 +17,7 @@ class BaseClient {
17
17
  const parts = [];
18
18
  Object.entries(parameters).forEach(([key, value]) => {
19
19
  if (value === null || typeof value === 'undefined') {
20
- return undefined;
20
+ return;
21
21
  }
22
22
  if (Array.isArray(value)) {
23
23
  // eslint-disable-next-line no-param-reassign
@@ -31,8 +31,12 @@ class BaseClient {
31
31
  // eslint-disable-next-line no-param-reassign
32
32
  value = JSON.stringify(value);
33
33
  }
34
+ else if (value instanceof Function) {
35
+ const part = value();
36
+ return part && parts.push(part);
37
+ }
34
38
  parts.push(`${this.encode(key)}=${this.encode(value)}`);
35
- return undefined;
39
+ return;
36
40
  });
37
41
  return parts.join('&');
38
42
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "confluence.js",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
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",
@@ -45,14 +45,14 @@
45
45
  "eslint-config-airbnb-typescript": "^16.1.0",
46
46
  "eslint-import-resolver-typescript": "^2.5.0",
47
47
  "eslint-plugin-import": "^2.25.3",
48
- "jest": "^27.4.3",
48
+ "jest": "^27.4.4",
49
49
  "prettier": "^2.5.1",
50
50
  "prettier-plugin-jsdoc": "^0.3.30",
51
51
  "sinon": "^12.0.1",
52
52
  "ts-jest": "^27.1.1",
53
53
  "typedoc": "^0.22.10",
54
54
  "typedoc-plugin-extras": "^2.2.1",
55
- "typescript": "^4.5.2"
55
+ "typescript": "^4.5.3"
56
56
  },
57
57
  "dependencies": {
58
58
  "atlassian-jwt": "^2.0.2",
package/src/api/audit.ts CHANGED
@@ -45,7 +45,7 @@ export class Audit {
45
45
  },
46
46
  };
47
47
 
48
- return this.client.sendRequest(config, callback, { methodName: 'getAuditRecords' });
48
+ return this.client.sendRequest(config, callback);
49
49
  }
50
50
 
51
51
  /**
@@ -87,7 +87,7 @@ export class Audit {
87
87
  },
88
88
  };
89
89
 
90
- return this.client.sendRequest(config, callback, { methodName: 'createAuditRecord' });
90
+ return this.client.sendRequest(config, callback);
91
91
  }
92
92
 
93
93
  /**
@@ -120,7 +120,7 @@ export class Audit {
120
120
  },
121
121
  };
122
122
 
123
- return this.client.sendRequest(config, callback, { methodName: 'exportAuditRecords' });
123
+ return this.client.sendRequest(config, callback);
124
124
  }
125
125
 
126
126
  /**
@@ -143,7 +143,7 @@ export class Audit {
143
143
  method: 'GET',
144
144
  };
145
145
 
146
- return this.client.sendRequest(config, callback, { methodName: 'getRetentionPeriod' });
146
+ return this.client.sendRequest(config, callback);
147
147
  }
148
148
 
149
149
  /**
@@ -177,7 +177,7 @@ export class Audit {
177
177
  },
178
178
  };
179
179
 
180
- return this.client.sendRequest(config, callback, { methodName: 'setRetentionPeriod' });
180
+ return this.client.sendRequest(config, callback);
181
181
  }
182
182
 
183
183
  /**
@@ -224,6 +224,6 @@ export class Audit {
224
224
  },
225
225
  };
226
226
 
227
- return this.client.sendRequest(config, callback, { methodName: 'getAuditRecordsForTimePeriod' });
227
+ return this.client.sendRequest(config, callback);
228
228
  }
229
229
  }
@@ -49,7 +49,7 @@ export class Content {
49
49
  },
50
50
  };
51
51
 
52
- return this.client.sendRequest(config, callback, { methodName: 'getContent' });
52
+ return this.client.sendRequest(config, callback);
53
53
  }
54
54
 
55
55
  /**
@@ -99,7 +99,7 @@ export class Content {
99
99
  },
100
100
  };
101
101
 
102
- return this.client.sendRequest(config, callback, { methodName: 'createContent' });
102
+ return this.client.sendRequest(config, callback);
103
103
  }
104
104
 
105
105
  /**
@@ -138,7 +138,7 @@ export class Content {
138
138
  },
139
139
  };
140
140
 
141
- return this.client.sendRequest(config, callback, { methodName: 'archivePages' });
141
+ return this.client.sendRequest(config, callback);
142
142
  }
143
143
 
144
144
  /**
@@ -185,7 +185,7 @@ export class Content {
185
185
  },
186
186
  };
187
187
 
188
- return this.client.sendRequest(config, callback, { methodName: 'publishLegacyDraft' });
188
+ return this.client.sendRequest(config, callback);
189
189
  }
190
190
 
191
191
  /**
@@ -230,7 +230,7 @@ export class Content {
230
230
  },
231
231
  };
232
232
 
233
- return this.client.sendRequest(config, callback, { methodName: 'publishSharedDraft' });
233
+ return this.client.sendRequest(config, callback);
234
234
  }
235
235
 
236
236
  /**
@@ -286,7 +286,7 @@ export class Content {
286
286
  },
287
287
  };
288
288
 
289
- return this.client.sendRequest(config, callback, { methodName: 'searchContentByCQL' });
289
+ return this.client.sendRequest(config, callback);
290
290
  }
291
291
 
292
292
  /**
@@ -323,7 +323,7 @@ export class Content {
323
323
  },
324
324
  };
325
325
 
326
- return this.client.sendRequest(config, callback, { methodName: 'getContentById' });
326
+ return this.client.sendRequest(config, callback);
327
327
  }
328
328
 
329
329
  /**
@@ -365,7 +365,7 @@ export class Content {
365
365
  },
366
366
  };
367
367
 
368
- return this.client.sendRequest(config, callback, { methodName: 'updateContent' });
368
+ return this.client.sendRequest(config, callback);
369
369
  }
370
370
 
371
371
  /**
@@ -401,7 +401,7 @@ export class Content {
401
401
  },
402
402
  };
403
403
 
404
- return this.client.sendRequest(config, callback, { methodName: 'deleteContent' });
404
+ return this.client.sendRequest(config, callback);
405
405
  }
406
406
 
407
407
  /**
@@ -434,6 +434,6 @@ export class Content {
434
434
  },
435
435
  };
436
436
 
437
- return this.client.sendRequest(config, callback, { methodName: 'getHistoryForContent' });
437
+ return this.client.sendRequest(config, callback);
438
438
  }
439
439
  }
@@ -44,7 +44,7 @@ export class ContentAttachments {
44
44
  },
45
45
  };
46
46
 
47
- return this.client.sendRequest(config, callback, { methodName: 'getAttachments' });
47
+ return this.client.sendRequest(config, callback);
48
48
  }
49
49
 
50
50
  /**
@@ -136,7 +136,7 @@ export class ContentAttachments {
136
136
  },
137
137
  };
138
138
 
139
- return this.client.sendRequest(config, callback, { methodName: 'createAttachments' });
139
+ return this.client.sendRequest(config, callback);
140
140
  }
141
141
 
142
142
  /**
@@ -230,7 +230,7 @@ export class ContentAttachments {
230
230
  },
231
231
  };
232
232
 
233
- return this.client.sendRequest(config, callback, { methodName: 'createOrUpdateAttachments' });
233
+ return this.client.sendRequest(config, callback);
234
234
  }
235
235
 
236
236
  /**
@@ -263,7 +263,7 @@ export class ContentAttachments {
263
263
  data: parameters.body,
264
264
  };
265
265
 
266
- return this.client.sendRequest(config, callback, { methodName: 'updateAttachmentProperties' });
266
+ return this.client.sendRequest(config, callback);
267
267
  }
268
268
 
269
269
  /**
@@ -358,7 +358,7 @@ export class ContentAttachments {
358
358
  },
359
359
  };
360
360
 
361
- return this.client.sendRequest(config, callback, { methodName: 'updateAttachmentData' });
361
+ return this.client.sendRequest(config, callback);
362
362
  }
363
363
 
364
364
  /** Redirects the client to a URL that serves an attachment's binary data. */
@@ -381,6 +381,6 @@ export class ContentAttachments {
381
381
  },
382
382
  };
383
383
 
384
- return this.client.sendRequest(config, callback, { methodName: 'downloadAttachment' });
384
+ return this.client.sendRequest(config, callback);
385
385
  }
386
386
  }
@@ -61,6 +61,6 @@ export class ContentBody {
61
61
  },
62
62
  };
63
63
 
64
- return this.client.sendRequest(config, callback, { methodName: 'convertContentBody' });
64
+ return this.client.sendRequest(config, callback);
65
65
  }
66
66
  }
@@ -64,7 +64,7 @@ export class ContentChildrenAndDescendants {
64
64
  },
65
65
  };
66
66
 
67
- return this.client.sendRequest(config, callback, { methodName: 'getContentChildren' });
67
+ return this.client.sendRequest(config, callback);
68
68
  }
69
69
 
70
70
  /**
@@ -97,7 +97,7 @@ export class ContentChildrenAndDescendants {
97
97
  method: 'PUT',
98
98
  };
99
99
 
100
- return this.client.sendRequest(config, callback, { methodName: 'movePage' });
100
+ return this.client.sendRequest(config, callback);
101
101
  }
102
102
 
103
103
  /**
@@ -156,7 +156,7 @@ export class ContentChildrenAndDescendants {
156
156
  },
157
157
  };
158
158
 
159
- return this.client.sendRequest(config, callback, { methodName: 'getContentChildrenByType' });
159
+ return this.client.sendRequest(config, callback);
160
160
  }
161
161
 
162
162
  /**
@@ -215,7 +215,7 @@ export class ContentChildrenAndDescendants {
215
215
  },
216
216
  };
217
217
 
218
- return this.client.sendRequest(config, callback, { methodName: 'getContentDescendants' });
218
+ return this.client.sendRequest(config, callback);
219
219
  }
220
220
 
221
221
  /** @deprecated This API will be removed in the next major version. Use `getDescendantsOfType` method instead. */
@@ -292,7 +292,7 @@ export class ContentChildrenAndDescendants {
292
292
  },
293
293
  };
294
294
 
295
- return this.client.sendRequest(config, callback, { methodName: 'descendantsOfType' });
295
+ return this.client.sendRequest(config, callback);
296
296
  }
297
297
 
298
298
  /**
@@ -329,7 +329,7 @@ export class ContentChildrenAndDescendants {
329
329
  },
330
330
  };
331
331
 
332
- return this.client.sendRequest(config, callback, { methodName: 'copyPageHierarchy' });
332
+ return this.client.sendRequest(config, callback);
333
333
  }
334
334
 
335
335
  /**
@@ -372,6 +372,6 @@ export class ContentChildrenAndDescendants {
372
372
  data: parameters.bodyParameters,
373
373
  };
374
374
 
375
- return this.client.sendRequest(config, callback, { methodName: 'copyPage' });
375
+ return this.client.sendRequest(config, callback);
376
376
  }
377
377
  }
@@ -43,6 +43,6 @@ export class ContentComments {
43
43
  },
44
44
  };
45
45
 
46
- return this.client.sendRequest(config, callback, { methodName: 'getContentComments' });
46
+ return this.client.sendRequest(config, callback);
47
47
  }
48
48
  }
@@ -41,7 +41,7 @@ export class ContentLabels {
41
41
  },
42
42
  };
43
43
 
44
- return this.client.sendRequest(config, callback, { methodName: 'getLabelsForContent' });
44
+ return this.client.sendRequest(config, callback);
45
45
  }
46
46
 
47
47
  /**
@@ -87,7 +87,7 @@ export class ContentLabels {
87
87
  data: parameters.body,
88
88
  };
89
89
 
90
- return this.client.sendRequest(config, callback, { methodName: 'addLabelsToContent' });
90
+ return this.client.sendRequest(config, callback);
91
91
  }
92
92
 
93
93
  /**
@@ -128,7 +128,7 @@ export class ContentLabels {
128
128
  },
129
129
  };
130
130
 
131
- return this.client.sendRequest(config, callback, { methodName: 'removeLabelFromContentUsingQueryParameter' });
131
+ return this.client.sendRequest(config, callback);
132
132
  }
133
133
 
134
134
  /**
@@ -165,6 +165,6 @@ export class ContentLabels {
165
165
  method: 'DELETE',
166
166
  };
167
167
 
168
- return this.client.sendRequest(config, callback, { methodName: 'removeLabelFromContent' });
168
+ return this.client.sendRequest(config, callback);
169
169
  }
170
170
  }
@@ -54,6 +54,6 @@ export class ContentMacroBody {
54
54
  method: 'GET',
55
55
  };
56
56
 
57
- return this.client.sendRequest(config, callback, { methodName: 'getMacroBodyByMacroId' });
57
+ return this.client.sendRequest(config, callback);
58
58
  }
59
59
  }
@@ -73,6 +73,6 @@ export class ContentPermissions {
73
73
  },
74
74
  };
75
75
 
76
- return this.client.sendRequest(config, callback, { methodName: 'checkContentPermission' });
76
+ return this.client.sendRequest(config, callback);
77
77
  }
78
78
  }
@@ -44,7 +44,7 @@ export class ContentProperties {
44
44
  },
45
45
  };
46
46
 
47
- return this.client.sendRequest(config, callback, { methodName: 'getContentProperties' });
47
+ return this.client.sendRequest(config, callback);
48
48
  }
49
49
 
50
50
  /**
@@ -92,7 +92,7 @@ export class ContentProperties {
92
92
  },
93
93
  };
94
94
 
95
- return this.client.sendRequest(config, callback, { methodName: 'createContentProperty' });
95
+ return this.client.sendRequest(config, callback);
96
96
  }
97
97
 
98
98
  /**
@@ -130,7 +130,7 @@ export class ContentProperties {
130
130
  },
131
131
  };
132
132
 
133
- return this.client.sendRequest(config, callback, { methodName: 'getContentProperty' });
133
+ return this.client.sendRequest(config, callback);
134
134
  }
135
135
 
136
136
  /**
@@ -177,7 +177,7 @@ export class ContentProperties {
177
177
  },
178
178
  };
179
179
 
180
- return this.client.sendRequest(config, callback, { methodName: 'createContentPropertyForKey' });
180
+ return this.client.sendRequest(config, callback);
181
181
  }
182
182
 
183
183
  /**
@@ -215,7 +215,7 @@ export class ContentProperties {
215
215
  },
216
216
  };
217
217
 
218
- return this.client.sendRequest(config, callback, { methodName: 'updateContentProperty' });
218
+ return this.client.sendRequest(config, callback);
219
219
  }
220
220
 
221
221
  /**
@@ -244,6 +244,6 @@ export class ContentProperties {
244
244
  method: 'DELETE',
245
245
  };
246
246
 
247
- return this.client.sendRequest(config, callback, { methodName: 'deleteContentProperty' });
247
+ return this.client.sendRequest(config, callback);
248
248
  }
249
249
  }
@@ -39,7 +39,7 @@ export class ContentRestrictions {
39
39
  },
40
40
  };
41
41
 
42
- return this.client.sendRequest(config, callback, { methodName: 'getRestrictions' });
42
+ return this.client.sendRequest(config, callback);
43
43
  }
44
44
 
45
45
  /**
@@ -73,7 +73,7 @@ export class ContentRestrictions {
73
73
  data: parameters.body,
74
74
  };
75
75
 
76
- return this.client.sendRequest(config, callback, { methodName: 'addRestrictions' });
76
+ return this.client.sendRequest(config, callback);
77
77
  }
78
78
 
79
79
  /**
@@ -109,7 +109,7 @@ export class ContentRestrictions {
109
109
  data: parameters.body,
110
110
  };
111
111
 
112
- return this.client.sendRequest(config, callback, { methodName: 'updateRestrictions' });
112
+ return this.client.sendRequest(config, callback);
113
113
  }
114
114
 
115
115
  /**
@@ -142,7 +142,7 @@ export class ContentRestrictions {
142
142
  },
143
143
  };
144
144
 
145
- return this.client.sendRequest(config, callback, { methodName: 'deleteRestrictions' });
145
+ return this.client.sendRequest(config, callback);
146
146
  }
147
147
 
148
148
  /**
@@ -179,7 +179,7 @@ export class ContentRestrictions {
179
179
  },
180
180
  };
181
181
 
182
- return this.client.sendRequest(config, callback, { methodName: 'getRestrictionsByOperation' });
182
+ return this.client.sendRequest(config, callback);
183
183
  }
184
184
 
185
185
  /**
@@ -214,7 +214,7 @@ export class ContentRestrictions {
214
214
  },
215
215
  };
216
216
 
217
- return this.client.sendRequest(config, callback, { methodName: 'getRestrictionsForOperation' });
217
+ return this.client.sendRequest(config, callback);
218
218
  }
219
219
 
220
220
  /**
@@ -258,7 +258,7 @@ export class ContentRestrictions {
258
258
  method: 'GET',
259
259
  };
260
260
 
261
- return this.client.sendRequest(config, callback, { methodName: 'getContentRestrictionStatusForGroup' });
261
+ return this.client.sendRequest(config, callback);
262
262
  }
263
263
 
264
264
  /**
@@ -288,7 +288,7 @@ export class ContentRestrictions {
288
288
  method: 'PUT',
289
289
  };
290
290
 
291
- return this.client.sendRequest(config, callback, { methodName: 'addGroupToContentRestriction' });
291
+ return this.client.sendRequest(config, callback);
292
292
  }
293
293
 
294
294
  /**
@@ -312,7 +312,7 @@ export class ContentRestrictions {
312
312
  method: 'DELETE',
313
313
  };
314
314
 
315
- return this.client.sendRequest(config, callback, { methodName: 'removeGroupByName' });
315
+ return this.client.sendRequest(config, callback);
316
316
  }
317
317
 
318
318
  /**
@@ -356,7 +356,7 @@ export class ContentRestrictions {
356
356
  method: 'GET',
357
357
  };
358
358
 
359
- return this.client.sendRequest(config, callback, { methodName: 'getIndividualGroupRestrictionStatusByGroupId' });
359
+ return this.client.sendRequest(config, callback);
360
360
  }
361
361
 
362
362
  /**
@@ -388,7 +388,7 @@ export class ContentRestrictions {
388
388
  method: 'PUT',
389
389
  };
390
390
 
391
- return this.client.sendRequest(config, callback, { methodName: 'addGroupToContentRestrictionByGroupId' });
391
+ return this.client.sendRequest(config, callback);
392
392
  }
393
393
 
394
394
  /**
@@ -412,7 +412,7 @@ export class ContentRestrictions {
412
412
  method: 'DELETE',
413
413
  };
414
414
 
415
- return this.client.sendRequest(config, callback, { methodName: 'removeGroupById' });
415
+ return this.client.sendRequest(config, callback);
416
416
  }
417
417
 
418
418
  /**
@@ -463,7 +463,7 @@ export class ContentRestrictions {
463
463
  },
464
464
  };
465
465
 
466
- return this.client.sendRequest(config, callback, { methodName: 'getContentRestrictionStatusForUser' });
466
+ return this.client.sendRequest(config, callback);
467
467
  }
468
468
 
469
469
  /**
@@ -498,7 +498,7 @@ export class ContentRestrictions {
498
498
  },
499
499
  };
500
500
 
501
- return this.client.sendRequest(config, callback, { methodName: 'addUserToContentRestriction' });
501
+ return this.client.sendRequest(config, callback);
502
502
  }
503
503
 
504
504
  /**
@@ -533,6 +533,6 @@ export class ContentRestrictions {
533
533
  },
534
534
  };
535
535
 
536
- return this.client.sendRequest(config, callback, { methodName: 'removeUserFromContentRestriction' });
536
+ return this.client.sendRequest(config, callback);
537
537
  }
538
538
  }