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
@@ -41,7 +41,7 @@ export class ContentVersions {
41
41
  },
42
42
  };
43
43
 
44
- return this.client.sendRequest(config, callback, { methodName: 'getContentVersions' });
44
+ return this.client.sendRequest(config, callback);
45
45
  }
46
46
 
47
47
  /**
@@ -80,7 +80,7 @@ export class ContentVersions {
80
80
  },
81
81
  };
82
82
 
83
- return this.client.sendRequest(config, callback, { methodName: 'restoreContentVersion' });
83
+ return this.client.sendRequest(config, callback);
84
84
  }
85
85
 
86
86
  /**
@@ -112,7 +112,7 @@ export class ContentVersions {
112
112
  },
113
113
  };
114
114
 
115
- return this.client.sendRequest(config, callback, { methodName: 'getContentVersion' });
115
+ return this.client.sendRequest(config, callback);
116
116
  }
117
117
 
118
118
  /**
@@ -141,6 +141,6 @@ export class ContentVersions {
141
141
  method: 'DELETE',
142
142
  };
143
143
 
144
- return this.client.sendRequest(config, callback, { methodName: 'deleteContentVersion' });
144
+ return this.client.sendRequest(config, callback);
145
145
  }
146
146
  }
@@ -52,7 +52,7 @@ export class ContentWatches {
52
52
  },
53
53
  };
54
54
 
55
- return this.client.sendRequest(config, callback, { methodName: 'getWatchesForPage' });
55
+ return this.client.sendRequest(config, callback);
56
56
  }
57
57
 
58
58
  /**
@@ -102,7 +102,7 @@ export class ContentWatches {
102
102
  },
103
103
  };
104
104
 
105
- return this.client.sendRequest(config, callback, { methodName: 'getWatchesForSpace' });
105
+ return this.client.sendRequest(config, callback);
106
106
  }
107
107
 
108
108
  /** Returns a list of watchers of a space */
@@ -128,7 +128,7 @@ export class ContentWatches {
128
128
  },
129
129
  };
130
130
 
131
- return this.client.sendRequest(config, callback, { methodName: 'getWatchersForSpace' });
131
+ return this.client.sendRequest(config, callback);
132
132
  }
133
133
 
134
134
  /**
@@ -171,7 +171,7 @@ export class ContentWatches {
171
171
  },
172
172
  };
173
173
 
174
- return this.client.sendRequest(config, callback, { methodName: 'getContentWatchStatus' });
174
+ return this.client.sendRequest(config, callback);
175
175
  }
176
176
 
177
177
  /**
@@ -212,7 +212,7 @@ export class ContentWatches {
212
212
  },
213
213
  };
214
214
 
215
- return this.client.sendRequest(config, callback, { methodName: 'addContentWatcher' });
215
+ return this.client.sendRequest(config, callback);
216
216
  }
217
217
 
218
218
  /**
@@ -255,7 +255,7 @@ export class ContentWatches {
255
255
  },
256
256
  };
257
257
 
258
- return this.client.sendRequest(config, callback, { methodName: 'removeContentWatcher' });
258
+ return this.client.sendRequest(config, callback);
259
259
  }
260
260
 
261
261
  /**
@@ -295,7 +295,7 @@ export class ContentWatches {
295
295
  },
296
296
  };
297
297
 
298
- return this.client.sendRequest(config, callback, { methodName: 'isWatchingLabel' });
298
+ return this.client.sendRequest(config, callback);
299
299
  }
300
300
 
301
301
  /**
@@ -336,7 +336,7 @@ export class ContentWatches {
336
336
  },
337
337
  };
338
338
 
339
- return this.client.sendRequest(config, callback, { methodName: 'addLabelWatcher' });
339
+ return this.client.sendRequest(config, callback);
340
340
  }
341
341
 
342
342
  /**
@@ -373,7 +373,7 @@ export class ContentWatches {
373
373
  },
374
374
  };
375
375
 
376
- return this.client.sendRequest(config, callback, { methodName: 'removeLabelWatcher' });
376
+ return this.client.sendRequest(config, callback);
377
377
  }
378
378
 
379
379
  /**
@@ -413,7 +413,7 @@ export class ContentWatches {
413
413
  },
414
414
  };
415
415
 
416
- return this.client.sendRequest(config, callback, { methodName: 'isWatchingSpace' });
416
+ return this.client.sendRequest(config, callback);
417
417
  }
418
418
 
419
419
  /**
@@ -454,7 +454,7 @@ export class ContentWatches {
454
454
  },
455
455
  };
456
456
 
457
- return this.client.sendRequest(config, callback, { methodName: 'addSpaceWatcher' });
457
+ return this.client.sendRequest(config, callback);
458
458
  }
459
459
 
460
460
  /**
@@ -488,6 +488,6 @@ export class ContentWatches {
488
488
  },
489
489
  };
490
490
 
491
- return this.client.sendRequest(config, callback, { methodName: 'removeSpaceWatch' });
491
+ return this.client.sendRequest(config, callback);
492
492
  }
493
493
  }
@@ -24,7 +24,7 @@ export class DynamicModules {
24
24
  method: 'GET',
25
25
  };
26
26
 
27
- return this.client.sendRequest(config, callback, { methodName: 'getModules' });
27
+ return this.client.sendRequest(config, callback);
28
28
  }
29
29
 
30
30
  /**
@@ -53,7 +53,7 @@ export class DynamicModules {
53
53
  method: 'POST',
54
54
  };
55
55
 
56
- return this.client.sendRequest(config, callback, { methodName: 'registerModules' });
56
+ return this.client.sendRequest(config, callback);
57
57
  }
58
58
 
59
59
  /**
@@ -77,6 +77,6 @@ export class DynamicModules {
77
77
  },
78
78
  };
79
79
 
80
- return this.client.sendRequest(config, callback, { methodName: 'removeModules' });
80
+ return this.client.sendRequest(config, callback);
81
81
  }
82
82
  }
@@ -37,7 +37,7 @@ export class Experimental {
37
37
  },
38
38
  };
39
39
 
40
- return this.client.sendRequest(config, callback, { methodName: 'getLabelsForSpace' });
40
+ return this.client.sendRequest(config, callback);
41
41
  }
42
42
 
43
43
  /**
@@ -76,7 +76,7 @@ export class Experimental {
76
76
  method: 'POST',
77
77
  };
78
78
 
79
- return this.client.sendRequest(config, callback, { methodName: 'addLabelsToSpace' });
79
+ return this.client.sendRequest(config, callback);
80
80
  }
81
81
 
82
82
  async deleteLabelFromSpace<T = void>(
@@ -97,7 +97,7 @@ export class Experimental {
97
97
  },
98
98
  };
99
99
 
100
- return this.client.sendRequest(config, callback, { methodName: 'deleteLabelFromSpace' });
100
+ return this.client.sendRequest(config, callback);
101
101
  }
102
102
 
103
103
  /** Get the total number of views a piece of content has. */
@@ -113,7 +113,7 @@ export class Experimental {
113
113
  },
114
114
  };
115
115
 
116
- return this.client.sendRequest(config, callback, { methodName: 'getViews' });
116
+ return this.client.sendRequest(config, callback);
117
117
  }
118
118
 
119
119
  /** Get the total number of distinct viewers a piece of content has. */
@@ -132,6 +132,6 @@ export class Experimental {
132
132
  },
133
133
  };
134
134
 
135
- return this.client.sendRequest(config, callback, { methodName: 'getViewers' });
135
+ return this.client.sendRequest(config, callback);
136
136
  }
137
137
  }
package/src/api/group.ts CHANGED
@@ -38,7 +38,7 @@ export class Group {
38
38
  },
39
39
  };
40
40
 
41
- return this.client.sendRequest(config, callback, { methodName: 'getGroups' });
41
+ return this.client.sendRequest(config, callback);
42
42
  }
43
43
 
44
44
  /**
@@ -65,7 +65,7 @@ export class Group {
65
65
  },
66
66
  };
67
67
 
68
- return this.client.sendRequest(config, callback, { methodName: 'createGroup' });
68
+ return this.client.sendRequest(config, callback);
69
69
  }
70
70
 
71
71
  /**
@@ -89,7 +89,7 @@ export class Group {
89
89
  },
90
90
  };
91
91
 
92
- return this.client.sendRequest(config, callback, { methodName: 'removeGroup' });
92
+ return this.client.sendRequest(config, callback);
93
93
  }
94
94
 
95
95
  /**
@@ -124,7 +124,7 @@ export class Group {
124
124
  },
125
125
  };
126
126
 
127
- return this.client.sendRequest(config, callback, { methodName: 'getGroupByQueryParam' });
127
+ return this.client.sendRequest(config, callback);
128
128
  }
129
129
 
130
130
  /**
@@ -156,7 +156,7 @@ export class Group {
156
156
  },
157
157
  };
158
158
 
159
- return this.client.sendRequest(config, callback, { methodName: 'getGroupByGroupId' });
159
+ return this.client.sendRequest(config, callback);
160
160
  }
161
161
 
162
162
  /**
@@ -180,7 +180,7 @@ export class Group {
180
180
  },
181
181
  };
182
182
 
183
- return this.client.sendRequest(config, callback, { methodName: 'removeGroupById' });
183
+ return this.client.sendRequest(config, callback);
184
184
  }
185
185
 
186
186
  /** @deprecated Will be removed in the next major version. Use `getGroupByName` instead. */
@@ -190,6 +190,7 @@ export class Group {
190
190
  async getGroup<T = Models.Group>(parameters: Parameters.GetGroup, callback?: Callback<T>): Promise<void | T> {
191
191
  return this.getGroupByName(parameters, callback!);
192
192
  }
193
+
193
194
  /**
194
195
  * Returns a user group for a given group name.
195
196
  *
@@ -217,7 +218,7 @@ export class Group {
217
218
  method: 'GET',
218
219
  };
219
220
 
220
- return this.client.sendRequest(config, callback, { methodName: 'getGroupByName' });
221
+ return this.client.sendRequest(config, callback);
221
222
  }
222
223
 
223
224
  /**
@@ -254,7 +255,7 @@ export class Group {
254
255
  },
255
256
  };
256
257
 
257
- return this.client.sendRequest(config, callback, { methodName: 'getMembersByQueryParam' });
258
+ return this.client.sendRequest(config, callback);
258
259
  }
259
260
 
260
261
  /**
@@ -291,7 +292,7 @@ export class Group {
291
292
  },
292
293
  };
293
294
 
294
- return this.client.sendRequest(config, callback, { methodName: 'getGroupMembers' });
295
+ return this.client.sendRequest(config, callback);
295
296
  }
296
297
 
297
298
  /** @deprecated Will be removed in the next major version. Use `searchGroups` instead. */
@@ -332,7 +333,7 @@ export class Group {
332
333
  },
333
334
  };
334
335
 
335
- return this.client.sendRequest(config, callback, { methodName: 'searchGroups' });
336
+ return this.client.sendRequest(config, callback);
336
337
  }
337
338
 
338
339
  /**
@@ -368,7 +369,7 @@ export class Group {
368
369
  },
369
370
  };
370
371
 
371
- return this.client.sendRequest(config, callback, { methodName: 'addUserToGroupByGroupId' });
372
+ return this.client.sendRequest(config, callback);
372
373
  }
373
374
 
374
375
  /**
@@ -402,7 +403,7 @@ export class Group {
402
403
  },
403
404
  };
404
405
 
405
- return this.client.sendRequest(config, callback, { methodName: 'removeMemberFromGroupByGroupId' });
406
+ return this.client.sendRequest(config, callback);
406
407
  }
407
408
 
408
409
  /**
@@ -442,7 +443,7 @@ export class Group {
442
443
  },
443
444
  };
444
445
 
445
- return this.client.sendRequest(config, callback, { methodName: 'getGroupMembersByGroupId' });
446
+ return this.client.sendRequest(config, callback);
446
447
  }
447
448
 
448
449
  /**
@@ -469,7 +470,7 @@ export class Group {
469
470
  },
470
471
  };
471
472
 
472
- return this.client.sendRequest(config, callback, { methodName: 'addUserToGroup' });
473
+ return this.client.sendRequest(config, callback);
473
474
  }
474
475
 
475
476
  /**
@@ -500,6 +501,6 @@ export class Group {
500
501
  },
501
502
  };
502
503
 
503
- return this.client.sendRequest(config, callback, { methodName: 'removeMemberFromGroup' });
504
+ return this.client.sendRequest(config, callback);
504
505
  }
505
506
  }
@@ -49,7 +49,7 @@ export class InlineTasks {
49
49
  },
50
50
  };
51
51
 
52
- return this.client.sendRequest(config, callback, { methodName: 'searchTasks' });
52
+ return this.client.sendRequest(config, callback);
53
53
  }
54
54
 
55
55
  /**
@@ -72,7 +72,7 @@ export class InlineTasks {
72
72
  method: 'GET',
73
73
  };
74
74
 
75
- return this.client.sendRequest(config, callback, { methodName: 'getTaskById' });
75
+ return this.client.sendRequest(config, callback);
76
76
  }
77
77
 
78
78
  /**
@@ -101,6 +101,6 @@ export class InlineTasks {
101
101
  },
102
102
  };
103
103
 
104
- return this.client.sendRequest(config, callback, { methodName: 'updateTaskById' });
104
+ return this.client.sendRequest(config, callback);
105
105
  }
106
106
  }
@@ -42,6 +42,6 @@ export class LabelInfo {
42
42
  },
43
43
  };
44
44
 
45
- return this.client.sendRequest(config, callback, { methodName: 'getAllLabelContent' });
45
+ return this.client.sendRequest(config, callback);
46
46
  }
47
47
  }
@@ -39,7 +39,7 @@ export class LongRunningTask {
39
39
  },
40
40
  };
41
41
 
42
- return this.client.sendRequest(config, callback, { methodName: 'getTasks' });
42
+ return this.client.sendRequest(config, callback);
43
43
  }
44
44
 
45
45
  /**
@@ -70,6 +70,6 @@ export class LongRunningTask {
70
70
  method: 'GET',
71
71
  };
72
72
 
73
- return this.client.sendRequest(config, callback, { methodName: 'getTask' });
73
+ return this.client.sendRequest(config, callback);
74
74
  }
75
75
  }
@@ -53,7 +53,7 @@ export class Relation {
53
53
  },
54
54
  };
55
55
 
56
- return this.client.sendRequest(config, callback, { methodName: 'findTargetFromSource' });
56
+ return this.client.sendRequest(config, callback);
57
57
  }
58
58
 
59
59
  /** @deprecated Will be removed in the next major version. Use `getRelationship` instead. */
@@ -113,7 +113,7 @@ export class Relation {
113
113
  },
114
114
  };
115
115
 
116
- return this.client.sendRequest(config, callback, { methodName: 'getRelationship' });
116
+ return this.client.sendRequest(config, callback);
117
117
  }
118
118
 
119
119
  /**
@@ -159,7 +159,7 @@ export class Relation {
159
159
  },
160
160
  };
161
161
 
162
- return this.client.sendRequest(config, callback, { methodName: 'createRelationship' });
162
+ return this.client.sendRequest(config, callback);
163
163
  }
164
164
 
165
165
  /** @deprecated Will be removed in the next major version. Use `deleteRelationship` instead. */
@@ -201,7 +201,7 @@ export class Relation {
201
201
  },
202
202
  };
203
203
 
204
- return this.client.sendRequest(config, callback, { methodName: 'deleteRelationship' });
204
+ return this.client.sendRequest(config, callback);
205
205
  }
206
206
 
207
207
  /**
@@ -252,6 +252,6 @@ export class Relation {
252
252
  },
253
253
  };
254
254
 
255
- return this.client.sendRequest(config, callback, { methodName: 'findSourcesForTarget' });
255
+ return this.client.sendRequest(config, callback);
256
256
  }
257
257
  }
package/src/api/search.ts CHANGED
@@ -74,7 +74,7 @@ export class Search {
74
74
  },
75
75
  };
76
76
 
77
- return this.client.sendRequest(config, callback, { methodName: 'searchByCQL' });
77
+ return this.client.sendRequest(config, callback);
78
78
  }
79
79
 
80
80
  /** @deprecated Will be removed in the next major version. Use `searchUser` instead. */
@@ -93,12 +93,13 @@ export class Search {
93
93
  ): Promise<void | T> {
94
94
  return this.searchUser(parameters, callback!);
95
95
  }
96
+
96
97
  /**
97
98
  * Searches for users using user-specific queries from the [Confluence Query Language
98
99
  * (CQL)](https://developer.atlassian.com/cloud/confluence/advanced-searching-using-cql/).
99
100
  *
100
101
  * Note that some user fields may be set to null depending on the user's privacy settings. These are: email,
101
- * profilePicture, and displayName.
102
+ * profilePicture, displayName, and timeZone.
102
103
  */
103
104
  async searchUser<T = Models.SearchPageResponseSearchResult>(
104
105
  parameters: Parameters.SearchUser,
@@ -109,7 +110,7 @@ export class Search {
109
110
  * (CQL)](https://developer.atlassian.com/cloud/confluence/advanced-searching-using-cql/).
110
111
  *
111
112
  * Note that some user fields may be set to null depending on the user's privacy settings. These are: email,
112
- * profilePicture, and displayName.
113
+ * profilePicture, displayName, and timeZone.
113
114
  */
114
115
  async searchUser<T = Models.SearchPageResponseSearchResult>(
115
116
  parameters: Parameters.SearchUser,
@@ -126,9 +127,10 @@ export class Search {
126
127
  cql: parameters.cql,
127
128
  start: parameters.start,
128
129
  limit: parameters.limit,
130
+ expand: parameters.expand,
129
131
  },
130
132
  };
131
133
 
132
- return this.client.sendRequest(config, callback, { methodName: 'searchUser' });
134
+ return this.client.sendRequest(config, callback);
133
135
  }
134
136
  }
@@ -43,7 +43,7 @@ export class Settings {
43
43
  },
44
44
  };
45
45
 
46
- return this.client.sendRequest(config, callback, { methodName: 'getLookAndFeelSettings' });
46
+ return this.client.sendRequest(config, callback);
47
47
  }
48
48
 
49
49
  /**
@@ -81,7 +81,7 @@ export class Settings {
81
81
  },
82
82
  };
83
83
 
84
- return this.client.sendRequest(config, callback, { methodName: 'updateLookAndFeel' });
84
+ return this.client.sendRequest(config, callback);
85
85
  }
86
86
 
87
87
  /**
@@ -133,7 +133,7 @@ export class Settings {
133
133
  },
134
134
  };
135
135
 
136
- return this.client.sendRequest(config, callback, { methodName: 'updateLookAndFeelSettings' });
136
+ return this.client.sendRequest(config, callback);
137
137
  }
138
138
 
139
139
  /**
@@ -170,7 +170,7 @@ export class Settings {
170
170
  },
171
171
  };
172
172
 
173
- return this.client.sendRequest(config, callback, { methodName: 'resetLookAndFeelSettings' });
173
+ return this.client.sendRequest(config, callback);
174
174
  }
175
175
 
176
176
  /**
@@ -205,7 +205,7 @@ export class Settings {
205
205
  },
206
206
  };
207
207
 
208
- return this.client.sendRequest(config, callback, { methodName: 'setLookAndFeelSettings' });
208
+ return this.client.sendRequest(config, callback);
209
209
  }
210
210
 
211
211
  /**
@@ -228,6 +228,6 @@ export class Settings {
228
228
  method: 'GET',
229
229
  };
230
230
 
231
- return this.client.sendRequest(config, callback, { methodName: 'getSystemInfo' });
231
+ return this.client.sendRequest(config, callback);
232
232
  }
233
233
  }
package/src/api/space.ts CHANGED
@@ -31,7 +31,7 @@ export class Space {
31
31
  url: '/api/space',
32
32
  method: 'GET',
33
33
  params: {
34
- spaceKey: parameters?.spaceKey?.map((key, index) => index ? `&spaceKey=${key}` : key),
34
+ spaceKey: () => parameters?.spaceKey?.map((key) => `spaceKey=${key}`).join('&'),
35
35
  spaceId: parameters?.spaceId,
36
36
  type: parameters?.type,
37
37
  status: parameters?.status,
@@ -43,7 +43,7 @@ export class Space {
43
43
  },
44
44
  };
45
45
 
46
- return this.client.sendRequest(config, callback, { methodName: 'getSpaces' });
46
+ return this.client.sendRequest(config, callback);
47
47
  }
48
48
 
49
49
  /**
@@ -73,7 +73,7 @@ export class Space {
73
73
  },
74
74
  };
75
75
 
76
- return this.client.sendRequest(config, callback, { methodName: 'createSpace' });
76
+ return this.client.sendRequest(config, callback);
77
77
  }
78
78
 
79
79
  /**
@@ -110,7 +110,7 @@ export class Space {
110
110
  },
111
111
  };
112
112
 
113
- return this.client.sendRequest(config, callback, { methodName: 'createPrivateSpace' });
113
+ return this.client.sendRequest(config, callback);
114
114
  }
115
115
 
116
116
  /**
@@ -131,7 +131,7 @@ export class Space {
131
131
  method: 'GET',
132
132
  };
133
133
 
134
- return this.client.sendRequest(config, callback, { methodName: 'getSpace' });
134
+ return this.client.sendRequest(config, callback);
135
135
  }
136
136
 
137
137
  /**
@@ -165,7 +165,7 @@ export class Space {
165
165
  },
166
166
  };
167
167
 
168
- return this.client.sendRequest(config, callback, { methodName: 'updateSpace' });
168
+ return this.client.sendRequest(config, callback);
169
169
  }
170
170
 
171
171
  /**
@@ -193,7 +193,7 @@ export class Space {
193
193
  method: 'DELETE',
194
194
  };
195
195
 
196
- return this.client.sendRequest(config, callback, { methodName: 'deleteSpace' });
196
+ return this.client.sendRequest(config, callback);
197
197
  }
198
198
 
199
199
  /**
@@ -232,7 +232,7 @@ export class Space {
232
232
  },
233
233
  };
234
234
 
235
- return this.client.sendRequest(config, callback, { methodName: 'getContentForSpace' });
235
+ return this.client.sendRequest(config, callback);
236
236
  }
237
237
 
238
238
  /**
@@ -269,6 +269,6 @@ export class Space {
269
269
  },
270
270
  };
271
271
 
272
- return this.client.sendRequest(config, callback, { methodName: 'getContentByTypeForSpace' });
272
+ return this.client.sendRequest(config, callback);
273
273
  }
274
274
  }
@@ -61,7 +61,7 @@ export class SpacePermissions {
61
61
  },
62
62
  };
63
63
 
64
- return this.client.sendRequest(config, callback, { methodName: 'addPermissionToSpace' });
64
+ return this.client.sendRequest(config, callback);
65
65
  }
66
66
 
67
67
  /**
@@ -103,7 +103,7 @@ export class SpacePermissions {
103
103
  },
104
104
  };
105
105
 
106
- return this.client.sendRequest(config, callback, { methodName: 'addCustomContentPermissions' });
106
+ return this.client.sendRequest(config, callback);
107
107
  }
108
108
 
109
109
  /**
@@ -130,6 +130,6 @@ export class SpacePermissions {
130
130
  method: 'DELETE',
131
131
  };
132
132
 
133
- return this.client.sendRequest(config, callback, { methodName: 'removePermission' });
133
+ return this.client.sendRequest(config, callback);
134
134
  }
135
135
  }
@@ -39,7 +39,7 @@ export class SpaceProperties {
39
39
  },
40
40
  };
41
41
 
42
- return this.client.sendRequest(config, callback, { methodName: 'getSpaceProperties' });
42
+ return this.client.sendRequest(config, callback);
43
43
  }
44
44
 
45
45
  /**
@@ -74,7 +74,7 @@ export class SpaceProperties {
74
74
  },
75
75
  };
76
76
 
77
- return this.client.sendRequest(config, callback, { methodName: 'createSpaceProperty' });
77
+ return this.client.sendRequest(config, callback);
78
78
  }
79
79
 
80
80
  /**
@@ -107,7 +107,7 @@ export class SpaceProperties {
107
107
  },
108
108
  };
109
109
 
110
- return this.client.sendRequest(config, callback, { methodName: 'getSpaceProperty' });
110
+ return this.client.sendRequest(config, callback);
111
111
  }
112
112
 
113
113
  /**
@@ -142,7 +142,7 @@ export class SpaceProperties {
142
142
  },
143
143
  };
144
144
 
145
- return this.client.sendRequest(config, callback, { methodName: 'createSpacePropertyForKey' });
145
+ return this.client.sendRequest(config, callback);
146
146
  }
147
147
 
148
148
  /**
@@ -176,7 +176,7 @@ export class SpaceProperties {
176
176
  },
177
177
  };
178
178
 
179
- return this.client.sendRequest(config, callback, { methodName: 'updateSpaceProperty' });
179
+ return this.client.sendRequest(config, callback);
180
180
  }
181
181
 
182
182
  /**
@@ -200,6 +200,6 @@ export class SpaceProperties {
200
200
  method: 'DELETE',
201
201
  };
202
202
 
203
- return this.client.sendRequest(config, callback, { methodName: 'deleteSpaceProperty' });
203
+ return this.client.sendRequest(config, callback);
204
204
  }
205
205
  }