bmlt-server-client 2.0.4 → 2.0.5

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.
@@ -21,16 +21,38 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { ErrorTestFromJSON, ErrorTestToJSON, FormatFromJSON, FormatCreateToJSON, FormatPartialUpdateToJSON, FormatUpdateToJSON, MeetingFromJSON, MeetingChangeResourceFromJSON, MeetingCreateToJSON, MeetingPartialUpdateToJSON, MeetingUpdateToJSON, RootServerFromJSON, ServiceBodyFromJSON, ServiceBodyCreateToJSON, ServiceBodyPartialUpdateToJSON, ServiceBodyUpdateToJSON, SettingsObjectFromJSON, SettingsUpdateToJSON, TokenFromJSON, TokenCredentialsToJSON, UserFromJSON, UserCreateToJSON, UserPartialUpdateToJSON, UserUpdateToJSON, } from '../models/index';
24
+ import { ErrorTestFromJSON, ErrorTestToJSON, } from '../models/ErrorTest';
25
+ import { FormatFromJSON, } from '../models/Format';
26
+ import { FormatCreateToJSON, } from '../models/FormatCreate';
27
+ import { FormatPartialUpdateToJSON, } from '../models/FormatPartialUpdate';
28
+ import { FormatUpdateToJSON, } from '../models/FormatUpdate';
29
+ import { MeetingFromJSON, } from '../models/Meeting';
30
+ import { MeetingChangeResourceFromJSON, } from '../models/MeetingChangeResource';
31
+ import { MeetingCreateToJSON, } from '../models/MeetingCreate';
32
+ import { MeetingPartialUpdateToJSON, } from '../models/MeetingPartialUpdate';
33
+ import { MeetingUpdateToJSON, } from '../models/MeetingUpdate';
34
+ import { RootServerFromJSON, } from '../models/RootServer';
35
+ import { ServiceBodyFromJSON, } from '../models/ServiceBody';
36
+ import { ServiceBodyCreateToJSON, } from '../models/ServiceBodyCreate';
37
+ import { ServiceBodyEditorFromJSON, } from '../models/ServiceBodyEditor';
38
+ import { ServiceBodyPartialUpdateToJSON, } from '../models/ServiceBodyPartialUpdate';
39
+ import { ServiceBodyUpdateToJSON, } from '../models/ServiceBodyUpdate';
40
+ import { SettingsObjectFromJSON, } from '../models/SettingsObject';
41
+ import { SettingsUpdateToJSON, } from '../models/SettingsUpdate';
42
+ import { TokenFromJSON, } from '../models/Token';
43
+ import { TokenCredentialsToJSON, } from '../models/TokenCredentials';
44
+ import { UserFromJSON, } from '../models/User';
45
+ import { UserCreateToJSON, } from '../models/UserCreate';
46
+ import { UserPartialUpdateToJSON, } from '../models/UserPartialUpdate';
47
+ import { UserUpdateToJSON, } from '../models/UserUpdate';
25
48
  /**
26
49
  *
27
50
  */
28
51
  export class RootServerApi extends runtime.BaseAPI {
29
52
  /**
30
- * Revoke token and logout.
31
- * Revokes a token
53
+ * Creates request options for authLogout without sending the request
32
54
  */
33
- authLogoutRaw(initOverrides) {
55
+ authLogoutRequestOpts() {
34
56
  return __awaiter(this, void 0, void 0, function* () {
35
57
  const queryParameters = {};
36
58
  const headerParameters = {};
@@ -39,12 +61,22 @@ export class RootServerApi extends runtime.BaseAPI {
39
61
  headerParameters["Authorization"] = yield this.configuration.accessToken("bmltToken", []);
40
62
  }
41
63
  let urlPath = `/api/v1/auth/logout`;
42
- const response = yield this.request({
64
+ return {
43
65
  path: urlPath,
44
66
  method: 'POST',
45
67
  headers: headerParameters,
46
68
  query: queryParameters,
47
- }, initOverrides);
69
+ };
70
+ });
71
+ }
72
+ /**
73
+ * Revoke token and logout.
74
+ * Revokes a token
75
+ */
76
+ authLogoutRaw(initOverrides) {
77
+ return __awaiter(this, void 0, void 0, function* () {
78
+ const requestOptions = yield this.authLogoutRequestOpts();
79
+ const response = yield this.request(requestOptions, initOverrides);
48
80
  return new runtime.VoidApiResponse(response);
49
81
  });
50
82
  }
@@ -58,10 +90,9 @@ export class RootServerApi extends runtime.BaseAPI {
58
90
  });
59
91
  }
60
92
  /**
61
- * Refresh token.
62
- * Revokes and issues a new token
93
+ * Creates request options for authRefresh without sending the request
63
94
  */
64
- authRefreshRaw(initOverrides) {
95
+ authRefreshRequestOpts() {
65
96
  return __awaiter(this, void 0, void 0, function* () {
66
97
  const queryParameters = {};
67
98
  const headerParameters = {};
@@ -70,12 +101,22 @@ export class RootServerApi extends runtime.BaseAPI {
70
101
  headerParameters["Authorization"] = yield this.configuration.accessToken("bmltToken", []);
71
102
  }
72
103
  let urlPath = `/api/v1/auth/refresh`;
73
- const response = yield this.request({
104
+ return {
74
105
  path: urlPath,
75
106
  method: 'POST',
76
107
  headers: headerParameters,
77
108
  query: queryParameters,
78
- }, initOverrides);
109
+ };
110
+ });
111
+ }
112
+ /**
113
+ * Refresh token.
114
+ * Revokes and issues a new token
115
+ */
116
+ authRefreshRaw(initOverrides) {
117
+ return __awaiter(this, void 0, void 0, function* () {
118
+ const requestOptions = yield this.authRefreshRequestOpts();
119
+ const response = yield this.request(requestOptions, initOverrides);
79
120
  return new runtime.JSONApiResponse(response, (jsonValue) => TokenFromJSON(jsonValue));
80
121
  });
81
122
  }
@@ -90,10 +131,9 @@ export class RootServerApi extends runtime.BaseAPI {
90
131
  });
91
132
  }
92
133
  /**
93
- * Exchange credentials for a new token
94
- * Creates a token
134
+ * Creates request options for authToken without sending the request
95
135
  */
96
- authTokenRaw(requestParameters, initOverrides) {
136
+ authTokenRequestOpts(requestParameters) {
97
137
  return __awaiter(this, void 0, void 0, function* () {
98
138
  if (requestParameters['tokenCredentials'] == null) {
99
139
  throw new runtime.RequiredError('tokenCredentials', 'Required parameter "tokenCredentials" was null or undefined when calling authToken().');
@@ -102,13 +142,23 @@ export class RootServerApi extends runtime.BaseAPI {
102
142
  const headerParameters = {};
103
143
  headerParameters['Content-Type'] = 'application/json';
104
144
  let urlPath = `/api/v1/auth/token`;
105
- const response = yield this.request({
145
+ return {
106
146
  path: urlPath,
107
147
  method: 'POST',
108
148
  headers: headerParameters,
109
149
  query: queryParameters,
110
150
  body: TokenCredentialsToJSON(requestParameters['tokenCredentials']),
111
- }, initOverrides);
151
+ };
152
+ });
153
+ }
154
+ /**
155
+ * Exchange credentials for a new token
156
+ * Creates a token
157
+ */
158
+ authTokenRaw(requestParameters, initOverrides) {
159
+ return __awaiter(this, void 0, void 0, function* () {
160
+ const requestOptions = yield this.authTokenRequestOpts(requestParameters);
161
+ const response = yield this.request(requestOptions, initOverrides);
112
162
  return new runtime.JSONApiResponse(response, (jsonValue) => TokenFromJSON(jsonValue));
113
163
  });
114
164
  }
@@ -123,10 +173,9 @@ export class RootServerApi extends runtime.BaseAPI {
123
173
  });
124
174
  }
125
175
  /**
126
- * Tests some errors.
127
- * Tests some errors
176
+ * Creates request options for createErrorTest without sending the request
128
177
  */
129
- createErrorTestRaw(requestParameters, initOverrides) {
178
+ createErrorTestRequestOpts(requestParameters) {
130
179
  return __awaiter(this, void 0, void 0, function* () {
131
180
  if (requestParameters['errorTest'] == null) {
132
181
  throw new runtime.RequiredError('errorTest', 'Required parameter "errorTest" was null or undefined when calling createErrorTest().');
@@ -139,13 +188,23 @@ export class RootServerApi extends runtime.BaseAPI {
139
188
  headerParameters["Authorization"] = yield this.configuration.accessToken("bmltToken", []);
140
189
  }
141
190
  let urlPath = `/api/v1/errortest`;
142
- const response = yield this.request({
191
+ return {
143
192
  path: urlPath,
144
193
  method: 'POST',
145
194
  headers: headerParameters,
146
195
  query: queryParameters,
147
196
  body: ErrorTestToJSON(requestParameters['errorTest']),
148
- }, initOverrides);
197
+ };
198
+ });
199
+ }
200
+ /**
201
+ * Tests some errors.
202
+ * Tests some errors
203
+ */
204
+ createErrorTestRaw(requestParameters, initOverrides) {
205
+ return __awaiter(this, void 0, void 0, function* () {
206
+ const requestOptions = yield this.createErrorTestRequestOpts(requestParameters);
207
+ const response = yield this.request(requestOptions, initOverrides);
149
208
  return new runtime.JSONApiResponse(response, (jsonValue) => ErrorTestFromJSON(jsonValue));
150
209
  });
151
210
  }
@@ -160,10 +219,9 @@ export class RootServerApi extends runtime.BaseAPI {
160
219
  });
161
220
  }
162
221
  /**
163
- * Creates a format.
164
- * Creates a format
222
+ * Creates request options for createFormat without sending the request
165
223
  */
166
- createFormatRaw(requestParameters, initOverrides) {
224
+ createFormatRequestOpts(requestParameters) {
167
225
  return __awaiter(this, void 0, void 0, function* () {
168
226
  if (requestParameters['formatCreate'] == null) {
169
227
  throw new runtime.RequiredError('formatCreate', 'Required parameter "formatCreate" was null or undefined when calling createFormat().');
@@ -176,13 +234,23 @@ export class RootServerApi extends runtime.BaseAPI {
176
234
  headerParameters["Authorization"] = yield this.configuration.accessToken("bmltToken", []);
177
235
  }
178
236
  let urlPath = `/api/v1/formats`;
179
- const response = yield this.request({
237
+ return {
180
238
  path: urlPath,
181
239
  method: 'POST',
182
240
  headers: headerParameters,
183
241
  query: queryParameters,
184
242
  body: FormatCreateToJSON(requestParameters['formatCreate']),
185
- }, initOverrides);
243
+ };
244
+ });
245
+ }
246
+ /**
247
+ * Creates a format.
248
+ * Creates a format
249
+ */
250
+ createFormatRaw(requestParameters, initOverrides) {
251
+ return __awaiter(this, void 0, void 0, function* () {
252
+ const requestOptions = yield this.createFormatRequestOpts(requestParameters);
253
+ const response = yield this.request(requestOptions, initOverrides);
186
254
  return new runtime.JSONApiResponse(response, (jsonValue) => FormatFromJSON(jsonValue));
187
255
  });
188
256
  }
@@ -197,10 +265,9 @@ export class RootServerApi extends runtime.BaseAPI {
197
265
  });
198
266
  }
199
267
  /**
200
- * Creates a meeting.
201
- * Creates a meeting
268
+ * Creates request options for createMeeting without sending the request
202
269
  */
203
- createMeetingRaw(requestParameters, initOverrides) {
270
+ createMeetingRequestOpts(requestParameters) {
204
271
  return __awaiter(this, void 0, void 0, function* () {
205
272
  if (requestParameters['meetingCreate'] == null) {
206
273
  throw new runtime.RequiredError('meetingCreate', 'Required parameter "meetingCreate" was null or undefined when calling createMeeting().');
@@ -213,13 +280,23 @@ export class RootServerApi extends runtime.BaseAPI {
213
280
  headerParameters["Authorization"] = yield this.configuration.accessToken("bmltToken", []);
214
281
  }
215
282
  let urlPath = `/api/v1/meetings`;
216
- const response = yield this.request({
283
+ return {
217
284
  path: urlPath,
218
285
  method: 'POST',
219
286
  headers: headerParameters,
220
287
  query: queryParameters,
221
288
  body: MeetingCreateToJSON(requestParameters['meetingCreate']),
222
- }, initOverrides);
289
+ };
290
+ });
291
+ }
292
+ /**
293
+ * Creates a meeting.
294
+ * Creates a meeting
295
+ */
296
+ createMeetingRaw(requestParameters, initOverrides) {
297
+ return __awaiter(this, void 0, void 0, function* () {
298
+ const requestOptions = yield this.createMeetingRequestOpts(requestParameters);
299
+ const response = yield this.request(requestOptions, initOverrides);
223
300
  return new runtime.JSONApiResponse(response, (jsonValue) => MeetingFromJSON(jsonValue));
224
301
  });
225
302
  }
@@ -234,10 +311,9 @@ export class RootServerApi extends runtime.BaseAPI {
234
311
  });
235
312
  }
236
313
  /**
237
- * Creates a service body.
238
- * Creates a service body
314
+ * Creates request options for createServiceBody without sending the request
239
315
  */
240
- createServiceBodyRaw(requestParameters, initOverrides) {
316
+ createServiceBodyRequestOpts(requestParameters) {
241
317
  return __awaiter(this, void 0, void 0, function* () {
242
318
  if (requestParameters['serviceBodyCreate'] == null) {
243
319
  throw new runtime.RequiredError('serviceBodyCreate', 'Required parameter "serviceBodyCreate" was null or undefined when calling createServiceBody().');
@@ -250,13 +326,23 @@ export class RootServerApi extends runtime.BaseAPI {
250
326
  headerParameters["Authorization"] = yield this.configuration.accessToken("bmltToken", []);
251
327
  }
252
328
  let urlPath = `/api/v1/servicebodies`;
253
- const response = yield this.request({
329
+ return {
254
330
  path: urlPath,
255
331
  method: 'POST',
256
332
  headers: headerParameters,
257
333
  query: queryParameters,
258
334
  body: ServiceBodyCreateToJSON(requestParameters['serviceBodyCreate']),
259
- }, initOverrides);
335
+ };
336
+ });
337
+ }
338
+ /**
339
+ * Creates a service body.
340
+ * Creates a service body
341
+ */
342
+ createServiceBodyRaw(requestParameters, initOverrides) {
343
+ return __awaiter(this, void 0, void 0, function* () {
344
+ const requestOptions = yield this.createServiceBodyRequestOpts(requestParameters);
345
+ const response = yield this.request(requestOptions, initOverrides);
260
346
  return new runtime.JSONApiResponse(response, (jsonValue) => ServiceBodyFromJSON(jsonValue));
261
347
  });
262
348
  }
@@ -271,10 +357,9 @@ export class RootServerApi extends runtime.BaseAPI {
271
357
  });
272
358
  }
273
359
  /**
274
- * Creates a user.
275
- * Creates a user
360
+ * Creates request options for createUser without sending the request
276
361
  */
277
- createUserRaw(requestParameters, initOverrides) {
362
+ createUserRequestOpts(requestParameters) {
278
363
  return __awaiter(this, void 0, void 0, function* () {
279
364
  if (requestParameters['userCreate'] == null) {
280
365
  throw new runtime.RequiredError('userCreate', 'Required parameter "userCreate" was null or undefined when calling createUser().');
@@ -287,13 +372,23 @@ export class RootServerApi extends runtime.BaseAPI {
287
372
  headerParameters["Authorization"] = yield this.configuration.accessToken("bmltToken", []);
288
373
  }
289
374
  let urlPath = `/api/v1/users`;
290
- const response = yield this.request({
375
+ return {
291
376
  path: urlPath,
292
377
  method: 'POST',
293
378
  headers: headerParameters,
294
379
  query: queryParameters,
295
380
  body: UserCreateToJSON(requestParameters['userCreate']),
296
- }, initOverrides);
381
+ };
382
+ });
383
+ }
384
+ /**
385
+ * Creates a user.
386
+ * Creates a user
387
+ */
388
+ createUserRaw(requestParameters, initOverrides) {
389
+ return __awaiter(this, void 0, void 0, function* () {
390
+ const requestOptions = yield this.createUserRequestOpts(requestParameters);
391
+ const response = yield this.request(requestOptions, initOverrides);
297
392
  return new runtime.JSONApiResponse(response, (jsonValue) => UserFromJSON(jsonValue));
298
393
  });
299
394
  }
@@ -308,10 +403,9 @@ export class RootServerApi extends runtime.BaseAPI {
308
403
  });
309
404
  }
310
405
  /**
311
- * Deletes a format by id.
312
- * Deletes a format
406
+ * Creates request options for deleteFormat without sending the request
313
407
  */
314
- deleteFormatRaw(requestParameters, initOverrides) {
408
+ deleteFormatRequestOpts(requestParameters) {
315
409
  return __awaiter(this, void 0, void 0, function* () {
316
410
  if (requestParameters['formatId'] == null) {
317
411
  throw new runtime.RequiredError('formatId', 'Required parameter "formatId" was null or undefined when calling deleteFormat().');
@@ -323,13 +417,23 @@ export class RootServerApi extends runtime.BaseAPI {
323
417
  headerParameters["Authorization"] = yield this.configuration.accessToken("bmltToken", []);
324
418
  }
325
419
  let urlPath = `/api/v1/formats/{formatId}`;
326
- urlPath = urlPath.replace(`{${"formatId"}}`, encodeURIComponent(String(requestParameters['formatId'])));
327
- const response = yield this.request({
420
+ urlPath = urlPath.replace('{formatId}', encodeURIComponent(String(requestParameters['formatId'])));
421
+ return {
328
422
  path: urlPath,
329
423
  method: 'DELETE',
330
424
  headers: headerParameters,
331
425
  query: queryParameters,
332
- }, initOverrides);
426
+ };
427
+ });
428
+ }
429
+ /**
430
+ * Deletes a format by id.
431
+ * Deletes a format
432
+ */
433
+ deleteFormatRaw(requestParameters, initOverrides) {
434
+ return __awaiter(this, void 0, void 0, function* () {
435
+ const requestOptions = yield this.deleteFormatRequestOpts(requestParameters);
436
+ const response = yield this.request(requestOptions, initOverrides);
333
437
  return new runtime.VoidApiResponse(response);
334
438
  });
335
439
  }
@@ -343,10 +447,9 @@ export class RootServerApi extends runtime.BaseAPI {
343
447
  });
344
448
  }
345
449
  /**
346
- * Deletes a meeting by id.
347
- * Deletes a meeting
450
+ * Creates request options for deleteMeeting without sending the request
348
451
  */
349
- deleteMeetingRaw(requestParameters, initOverrides) {
452
+ deleteMeetingRequestOpts(requestParameters) {
350
453
  return __awaiter(this, void 0, void 0, function* () {
351
454
  if (requestParameters['meetingId'] == null) {
352
455
  throw new runtime.RequiredError('meetingId', 'Required parameter "meetingId" was null or undefined when calling deleteMeeting().');
@@ -358,13 +461,23 @@ export class RootServerApi extends runtime.BaseAPI {
358
461
  headerParameters["Authorization"] = yield this.configuration.accessToken("bmltToken", []);
359
462
  }
360
463
  let urlPath = `/api/v1/meetings/{meetingId}`;
361
- urlPath = urlPath.replace(`{${"meetingId"}}`, encodeURIComponent(String(requestParameters['meetingId'])));
362
- const response = yield this.request({
464
+ urlPath = urlPath.replace('{meetingId}', encodeURIComponent(String(requestParameters['meetingId'])));
465
+ return {
363
466
  path: urlPath,
364
467
  method: 'DELETE',
365
468
  headers: headerParameters,
366
469
  query: queryParameters,
367
- }, initOverrides);
470
+ };
471
+ });
472
+ }
473
+ /**
474
+ * Deletes a meeting by id.
475
+ * Deletes a meeting
476
+ */
477
+ deleteMeetingRaw(requestParameters, initOverrides) {
478
+ return __awaiter(this, void 0, void 0, function* () {
479
+ const requestOptions = yield this.deleteMeetingRequestOpts(requestParameters);
480
+ const response = yield this.request(requestOptions, initOverrides);
368
481
  return new runtime.VoidApiResponse(response);
369
482
  });
370
483
  }
@@ -378,10 +491,9 @@ export class RootServerApi extends runtime.BaseAPI {
378
491
  });
379
492
  }
380
493
  /**
381
- * Deletes a service body by id. If the service body has meetings, use force=true to delete them as well.
382
- * Deletes a service body
494
+ * Creates request options for deleteServiceBody without sending the request
383
495
  */
384
- deleteServiceBodyRaw(requestParameters, initOverrides) {
496
+ deleteServiceBodyRequestOpts(requestParameters) {
385
497
  return __awaiter(this, void 0, void 0, function* () {
386
498
  if (requestParameters['serviceBodyId'] == null) {
387
499
  throw new runtime.RequiredError('serviceBodyId', 'Required parameter "serviceBodyId" was null or undefined when calling deleteServiceBody().');
@@ -396,13 +508,23 @@ export class RootServerApi extends runtime.BaseAPI {
396
508
  headerParameters["Authorization"] = yield this.configuration.accessToken("bmltToken", []);
397
509
  }
398
510
  let urlPath = `/api/v1/servicebodies/{serviceBodyId}`;
399
- urlPath = urlPath.replace(`{${"serviceBodyId"}}`, encodeURIComponent(String(requestParameters['serviceBodyId'])));
400
- const response = yield this.request({
511
+ urlPath = urlPath.replace('{serviceBodyId}', encodeURIComponent(String(requestParameters['serviceBodyId'])));
512
+ return {
401
513
  path: urlPath,
402
514
  method: 'DELETE',
403
515
  headers: headerParameters,
404
516
  query: queryParameters,
405
- }, initOverrides);
517
+ };
518
+ });
519
+ }
520
+ /**
521
+ * Deletes a service body by id. If the service body has meetings, use force=true to delete them as well.
522
+ * Deletes a service body
523
+ */
524
+ deleteServiceBodyRaw(requestParameters, initOverrides) {
525
+ return __awaiter(this, void 0, void 0, function* () {
526
+ const requestOptions = yield this.deleteServiceBodyRequestOpts(requestParameters);
527
+ const response = yield this.request(requestOptions, initOverrides);
406
528
  return new runtime.VoidApiResponse(response);
407
529
  });
408
530
  }
@@ -416,10 +538,9 @@ export class RootServerApi extends runtime.BaseAPI {
416
538
  });
417
539
  }
418
540
  /**
419
- * Deletes a user by id
420
- * Deletes a user
541
+ * Creates request options for deleteUser without sending the request
421
542
  */
422
- deleteUserRaw(requestParameters, initOverrides) {
543
+ deleteUserRequestOpts(requestParameters) {
423
544
  return __awaiter(this, void 0, void 0, function* () {
424
545
  if (requestParameters['userId'] == null) {
425
546
  throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling deleteUser().');
@@ -431,13 +552,23 @@ export class RootServerApi extends runtime.BaseAPI {
431
552
  headerParameters["Authorization"] = yield this.configuration.accessToken("bmltToken", []);
432
553
  }
433
554
  let urlPath = `/api/v1/users/{userId}`;
434
- urlPath = urlPath.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId'])));
435
- const response = yield this.request({
555
+ urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
556
+ return {
436
557
  path: urlPath,
437
558
  method: 'DELETE',
438
559
  headers: headerParameters,
439
560
  query: queryParameters,
440
- }, initOverrides);
561
+ };
562
+ });
563
+ }
564
+ /**
565
+ * Deletes a user by id
566
+ * Deletes a user
567
+ */
568
+ deleteUserRaw(requestParameters, initOverrides) {
569
+ return __awaiter(this, void 0, void 0, function* () {
570
+ const requestOptions = yield this.deleteUserRequestOpts(requestParameters);
571
+ const response = yield this.request(requestOptions, initOverrides);
441
572
  return new runtime.VoidApiResponse(response);
442
573
  });
443
574
  }
@@ -451,10 +582,9 @@ export class RootServerApi extends runtime.BaseAPI {
451
582
  });
452
583
  }
453
584
  /**
454
- * Retrieve a format
455
- * Retrieves a format
585
+ * Creates request options for getFormat without sending the request
456
586
  */
457
- getFormatRaw(requestParameters, initOverrides) {
587
+ getFormatRequestOpts(requestParameters) {
458
588
  return __awaiter(this, void 0, void 0, function* () {
459
589
  if (requestParameters['formatId'] == null) {
460
590
  throw new runtime.RequiredError('formatId', 'Required parameter "formatId" was null or undefined when calling getFormat().');
@@ -466,13 +596,23 @@ export class RootServerApi extends runtime.BaseAPI {
466
596
  headerParameters["Authorization"] = yield this.configuration.accessToken("bmltToken", []);
467
597
  }
468
598
  let urlPath = `/api/v1/formats/{formatId}`;
469
- urlPath = urlPath.replace(`{${"formatId"}}`, encodeURIComponent(String(requestParameters['formatId'])));
470
- const response = yield this.request({
599
+ urlPath = urlPath.replace('{formatId}', encodeURIComponent(String(requestParameters['formatId'])));
600
+ return {
471
601
  path: urlPath,
472
602
  method: 'GET',
473
603
  headers: headerParameters,
474
604
  query: queryParameters,
475
- }, initOverrides);
605
+ };
606
+ });
607
+ }
608
+ /**
609
+ * Retrieve a format
610
+ * Retrieves a format
611
+ */
612
+ getFormatRaw(requestParameters, initOverrides) {
613
+ return __awaiter(this, void 0, void 0, function* () {
614
+ const requestOptions = yield this.getFormatRequestOpts(requestParameters);
615
+ const response = yield this.request(requestOptions, initOverrides);
476
616
  return new runtime.JSONApiResponse(response, (jsonValue) => FormatFromJSON(jsonValue));
477
617
  });
478
618
  }
@@ -487,10 +627,9 @@ export class RootServerApi extends runtime.BaseAPI {
487
627
  });
488
628
  }
489
629
  /**
490
- * Retrieve formats
491
- * Retrieves formats
630
+ * Creates request options for getFormats without sending the request
492
631
  */
493
- getFormatsRaw(initOverrides) {
632
+ getFormatsRequestOpts() {
494
633
  return __awaiter(this, void 0, void 0, function* () {
495
634
  const queryParameters = {};
496
635
  const headerParameters = {};
@@ -499,12 +638,22 @@ export class RootServerApi extends runtime.BaseAPI {
499
638
  headerParameters["Authorization"] = yield this.configuration.accessToken("bmltToken", []);
500
639
  }
501
640
  let urlPath = `/api/v1/formats`;
502
- const response = yield this.request({
641
+ return {
503
642
  path: urlPath,
504
643
  method: 'GET',
505
644
  headers: headerParameters,
506
645
  query: queryParameters,
507
- }, initOverrides);
646
+ };
647
+ });
648
+ }
649
+ /**
650
+ * Retrieve formats
651
+ * Retrieves formats
652
+ */
653
+ getFormatsRaw(initOverrides) {
654
+ return __awaiter(this, void 0, void 0, function* () {
655
+ const requestOptions = yield this.getFormatsRequestOpts();
656
+ const response = yield this.request(requestOptions, initOverrides);
508
657
  return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(FormatFromJSON));
509
658
  });
510
659
  }
@@ -519,10 +668,9 @@ export class RootServerApi extends runtime.BaseAPI {
519
668
  });
520
669
  }
521
670
  /**
522
- * Retrieve the laravel log if it exists.
523
- * Retrieves laravel log
671
+ * Creates request options for getLaravelLog without sending the request
524
672
  */
525
- getLaravelLogRaw(initOverrides) {
673
+ getLaravelLogRequestOpts() {
526
674
  return __awaiter(this, void 0, void 0, function* () {
527
675
  const queryParameters = {};
528
676
  const headerParameters = {};
@@ -531,12 +679,22 @@ export class RootServerApi extends runtime.BaseAPI {
531
679
  headerParameters["Authorization"] = yield this.configuration.accessToken("bmltToken", []);
532
680
  }
533
681
  let urlPath = `/api/v1/logs/laravel`;
534
- const response = yield this.request({
682
+ return {
535
683
  path: urlPath,
536
684
  method: 'GET',
537
685
  headers: headerParameters,
538
686
  query: queryParameters,
539
- }, initOverrides);
687
+ };
688
+ });
689
+ }
690
+ /**
691
+ * Retrieve the laravel log if it exists.
692
+ * Retrieves laravel log
693
+ */
694
+ getLaravelLogRaw(initOverrides) {
695
+ return __awaiter(this, void 0, void 0, function* () {
696
+ const requestOptions = yield this.getLaravelLogRequestOpts();
697
+ const response = yield this.request(requestOptions, initOverrides);
540
698
  return new runtime.BlobApiResponse(response);
541
699
  });
542
700
  }
@@ -551,10 +709,9 @@ export class RootServerApi extends runtime.BaseAPI {
551
709
  });
552
710
  }
553
711
  /**
554
- * Retrieve a meeting.
555
- * Retrieves a meeting
712
+ * Creates request options for getMeeting without sending the request
556
713
  */
557
- getMeetingRaw(requestParameters, initOverrides) {
714
+ getMeetingRequestOpts(requestParameters) {
558
715
  return __awaiter(this, void 0, void 0, function* () {
559
716
  if (requestParameters['meetingId'] == null) {
560
717
  throw new runtime.RequiredError('meetingId', 'Required parameter "meetingId" was null or undefined when calling getMeeting().');
@@ -566,13 +723,23 @@ export class RootServerApi extends runtime.BaseAPI {
566
723
  headerParameters["Authorization"] = yield this.configuration.accessToken("bmltToken", []);
567
724
  }
568
725
  let urlPath = `/api/v1/meetings/{meetingId}`;
569
- urlPath = urlPath.replace(`{${"meetingId"}}`, encodeURIComponent(String(requestParameters['meetingId'])));
570
- const response = yield this.request({
726
+ urlPath = urlPath.replace('{meetingId}', encodeURIComponent(String(requestParameters['meetingId'])));
727
+ return {
571
728
  path: urlPath,
572
729
  method: 'GET',
573
730
  headers: headerParameters,
574
731
  query: queryParameters,
575
- }, initOverrides);
732
+ };
733
+ });
734
+ }
735
+ /**
736
+ * Retrieve a meeting.
737
+ * Retrieves a meeting
738
+ */
739
+ getMeetingRaw(requestParameters, initOverrides) {
740
+ return __awaiter(this, void 0, void 0, function* () {
741
+ const requestOptions = yield this.getMeetingRequestOpts(requestParameters);
742
+ const response = yield this.request(requestOptions, initOverrides);
576
743
  return new runtime.JSONApiResponse(response, (jsonValue) => MeetingFromJSON(jsonValue));
577
744
  });
578
745
  }
@@ -587,10 +754,9 @@ export class RootServerApi extends runtime.BaseAPI {
587
754
  });
588
755
  }
589
756
  /**
590
- * Retrieve all changes made to a specific meeting.
591
- * Retrieve changes for a meeting
757
+ * Creates request options for getMeetingChanges without sending the request
592
758
  */
593
- getMeetingChangesRaw(requestParameters, initOverrides) {
759
+ getMeetingChangesRequestOpts(requestParameters) {
594
760
  return __awaiter(this, void 0, void 0, function* () {
595
761
  if (requestParameters['meetingId'] == null) {
596
762
  throw new runtime.RequiredError('meetingId', 'Required parameter "meetingId" was null or undefined when calling getMeetingChanges().');
@@ -602,13 +768,23 @@ export class RootServerApi extends runtime.BaseAPI {
602
768
  headerParameters["Authorization"] = yield this.configuration.accessToken("bmltToken", []);
603
769
  }
604
770
  let urlPath = `/api/v1/meetings/{meetingId}/changes`;
605
- urlPath = urlPath.replace(`{${"meetingId"}}`, encodeURIComponent(String(requestParameters['meetingId'])));
606
- const response = yield this.request({
771
+ urlPath = urlPath.replace('{meetingId}', encodeURIComponent(String(requestParameters['meetingId'])));
772
+ return {
607
773
  path: urlPath,
608
774
  method: 'GET',
609
775
  headers: headerParameters,
610
776
  query: queryParameters,
611
- }, initOverrides);
777
+ };
778
+ });
779
+ }
780
+ /**
781
+ * Retrieve all changes made to a specific meeting.
782
+ * Retrieve changes for a meeting
783
+ */
784
+ getMeetingChangesRaw(requestParameters, initOverrides) {
785
+ return __awaiter(this, void 0, void 0, function* () {
786
+ const requestOptions = yield this.getMeetingChangesRequestOpts(requestParameters);
787
+ const response = yield this.request(requestOptions, initOverrides);
612
788
  return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(MeetingChangeResourceFromJSON));
613
789
  });
614
790
  }
@@ -623,10 +799,9 @@ export class RootServerApi extends runtime.BaseAPI {
623
799
  });
624
800
  }
625
801
  /**
626
- * Retrieve meetings for authenticated user.
627
- * Retrieves meetings
802
+ * Creates request options for getMeetings without sending the request
628
803
  */
629
- getMeetingsRaw(requestParameters, initOverrides) {
804
+ getMeetingsRequestOpts(requestParameters) {
630
805
  return __awaiter(this, void 0, void 0, function* () {
631
806
  const queryParameters = {};
632
807
  if (requestParameters['meetingIds'] != null) {
@@ -647,12 +822,22 @@ export class RootServerApi extends runtime.BaseAPI {
647
822
  headerParameters["Authorization"] = yield this.configuration.accessToken("bmltToken", []);
648
823
  }
649
824
  let urlPath = `/api/v1/meetings`;
650
- const response = yield this.request({
825
+ return {
651
826
  path: urlPath,
652
827
  method: 'GET',
653
828
  headers: headerParameters,
654
829
  query: queryParameters,
655
- }, initOverrides);
830
+ };
831
+ });
832
+ }
833
+ /**
834
+ * Retrieve meetings for authenticated user.
835
+ * Retrieves meetings
836
+ */
837
+ getMeetingsRaw(requestParameters, initOverrides) {
838
+ return __awaiter(this, void 0, void 0, function* () {
839
+ const requestOptions = yield this.getMeetingsRequestOpts(requestParameters);
840
+ const response = yield this.request(requestOptions, initOverrides);
656
841
  return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(MeetingFromJSON));
657
842
  });
658
843
  }
@@ -667,10 +852,9 @@ export class RootServerApi extends runtime.BaseAPI {
667
852
  });
668
853
  }
669
854
  /**
670
- * Retrieve a single root server id.
671
- * Retrieves a root server
855
+ * Creates request options for getRootServer without sending the request
672
856
  */
673
- getRootServerRaw(requestParameters, initOverrides) {
857
+ getRootServerRequestOpts(requestParameters) {
674
858
  return __awaiter(this, void 0, void 0, function* () {
675
859
  if (requestParameters['rootServerId'] == null) {
676
860
  throw new runtime.RequiredError('rootServerId', 'Required parameter "rootServerId" was null or undefined when calling getRootServer().');
@@ -678,13 +862,23 @@ export class RootServerApi extends runtime.BaseAPI {
678
862
  const queryParameters = {};
679
863
  const headerParameters = {};
680
864
  let urlPath = `/api/v1/rootservers/{rootServerId}`;
681
- urlPath = urlPath.replace(`{${"rootServerId"}}`, encodeURIComponent(String(requestParameters['rootServerId'])));
682
- const response = yield this.request({
865
+ urlPath = urlPath.replace('{rootServerId}', encodeURIComponent(String(requestParameters['rootServerId'])));
866
+ return {
683
867
  path: urlPath,
684
868
  method: 'GET',
685
869
  headers: headerParameters,
686
870
  query: queryParameters,
687
- }, initOverrides);
871
+ };
872
+ });
873
+ }
874
+ /**
875
+ * Retrieve a single root server id.
876
+ * Retrieves a root server
877
+ */
878
+ getRootServerRaw(requestParameters, initOverrides) {
879
+ return __awaiter(this, void 0, void 0, function* () {
880
+ const requestOptions = yield this.getRootServerRequestOpts(requestParameters);
881
+ const response = yield this.request(requestOptions, initOverrides);
688
882
  return new runtime.JSONApiResponse(response, (jsonValue) => RootServerFromJSON(jsonValue));
689
883
  });
690
884
  }
@@ -699,20 +893,29 @@ export class RootServerApi extends runtime.BaseAPI {
699
893
  });
700
894
  }
701
895
  /**
702
- * Retrieve root servers.
703
- * Retrieves root servers
896
+ * Creates request options for getRootServers without sending the request
704
897
  */
705
- getRootServersRaw(initOverrides) {
898
+ getRootServersRequestOpts() {
706
899
  return __awaiter(this, void 0, void 0, function* () {
707
900
  const queryParameters = {};
708
901
  const headerParameters = {};
709
902
  let urlPath = `/api/v1/rootservers`;
710
- const response = yield this.request({
903
+ return {
711
904
  path: urlPath,
712
905
  method: 'GET',
713
906
  headers: headerParameters,
714
907
  query: queryParameters,
715
- }, initOverrides);
908
+ };
909
+ });
910
+ }
911
+ /**
912
+ * Retrieve root servers.
913
+ * Retrieves root servers
914
+ */
915
+ getRootServersRaw(initOverrides) {
916
+ return __awaiter(this, void 0, void 0, function* () {
917
+ const requestOptions = yield this.getRootServersRequestOpts();
918
+ const response = yield this.request(requestOptions, initOverrides);
716
919
  return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(RootServerFromJSON));
717
920
  });
718
921
  }
@@ -727,10 +930,9 @@ export class RootServerApi extends runtime.BaseAPI {
727
930
  });
728
931
  }
729
932
  /**
730
- * Retrieve service bodies for authenticated user.
731
- * Retrieves service bodies
933
+ * Creates request options for getServiceBodies without sending the request
732
934
  */
733
- getServiceBodiesRaw(initOverrides) {
935
+ getServiceBodiesRequestOpts() {
734
936
  return __awaiter(this, void 0, void 0, function* () {
735
937
  const queryParameters = {};
736
938
  const headerParameters = {};
@@ -739,12 +941,22 @@ export class RootServerApi extends runtime.BaseAPI {
739
941
  headerParameters["Authorization"] = yield this.configuration.accessToken("bmltToken", []);
740
942
  }
741
943
  let urlPath = `/api/v1/servicebodies`;
742
- const response = yield this.request({
944
+ return {
743
945
  path: urlPath,
744
946
  method: 'GET',
745
947
  headers: headerParameters,
746
948
  query: queryParameters,
747
- }, initOverrides);
949
+ };
950
+ });
951
+ }
952
+ /**
953
+ * Retrieve service bodies for authenticated user.
954
+ * Retrieves service bodies
955
+ */
956
+ getServiceBodiesRaw(initOverrides) {
957
+ return __awaiter(this, void 0, void 0, function* () {
958
+ const requestOptions = yield this.getServiceBodiesRequestOpts();
959
+ const response = yield this.request(requestOptions, initOverrides);
748
960
  return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ServiceBodyFromJSON));
749
961
  });
750
962
  }
@@ -759,10 +971,9 @@ export class RootServerApi extends runtime.BaseAPI {
759
971
  });
760
972
  }
761
973
  /**
762
- * Retrieve a single service body by id.
763
- * Retrieves a service body
974
+ * Creates request options for getServiceBody without sending the request
764
975
  */
765
- getServiceBodyRaw(requestParameters, initOverrides) {
976
+ getServiceBodyRequestOpts(requestParameters) {
766
977
  return __awaiter(this, void 0, void 0, function* () {
767
978
  if (requestParameters['serviceBodyId'] == null) {
768
979
  throw new runtime.RequiredError('serviceBodyId', 'Required parameter "serviceBodyId" was null or undefined when calling getServiceBody().');
@@ -774,13 +985,23 @@ export class RootServerApi extends runtime.BaseAPI {
774
985
  headerParameters["Authorization"] = yield this.configuration.accessToken("bmltToken", []);
775
986
  }
776
987
  let urlPath = `/api/v1/servicebodies/{serviceBodyId}`;
777
- urlPath = urlPath.replace(`{${"serviceBodyId"}}`, encodeURIComponent(String(requestParameters['serviceBodyId'])));
778
- const response = yield this.request({
988
+ urlPath = urlPath.replace('{serviceBodyId}', encodeURIComponent(String(requestParameters['serviceBodyId'])));
989
+ return {
779
990
  path: urlPath,
780
991
  method: 'GET',
781
992
  headers: headerParameters,
782
993
  query: queryParameters,
783
- }, initOverrides);
994
+ };
995
+ });
996
+ }
997
+ /**
998
+ * Retrieve a single service body by id.
999
+ * Retrieves a service body
1000
+ */
1001
+ getServiceBodyRaw(requestParameters, initOverrides) {
1002
+ return __awaiter(this, void 0, void 0, function* () {
1003
+ const requestOptions = yield this.getServiceBodyRequestOpts(requestParameters);
1004
+ const response = yield this.request(requestOptions, initOverrides);
784
1005
  return new runtime.JSONApiResponse(response, (jsonValue) => ServiceBodyFromJSON(jsonValue));
785
1006
  });
786
1007
  }
@@ -795,10 +1016,54 @@ export class RootServerApi extends runtime.BaseAPI {
795
1016
  });
796
1017
  }
797
1018
  /**
798
- * Retrieve all server settings. Only accessible to server administrators.
799
- * Retrieves all settings
1019
+ * Creates request options for getServiceBodyEditors without sending the request
800
1020
  */
801
- getSettingsRaw(initOverrides) {
1021
+ getServiceBodyEditorsRequestOpts(requestParameters) {
1022
+ return __awaiter(this, void 0, void 0, function* () {
1023
+ if (requestParameters['serviceBodyId'] == null) {
1024
+ throw new runtime.RequiredError('serviceBodyId', 'Required parameter "serviceBodyId" was null or undefined when calling getServiceBodyEditors().');
1025
+ }
1026
+ const queryParameters = {};
1027
+ const headerParameters = {};
1028
+ if (this.configuration && this.configuration.accessToken) {
1029
+ // oauth required
1030
+ headerParameters["Authorization"] = yield this.configuration.accessToken("bmltToken", []);
1031
+ }
1032
+ let urlPath = `/api/v1/servicebodies/{serviceBodyId}/editors`;
1033
+ urlPath = urlPath.replace('{serviceBodyId}', encodeURIComponent(String(requestParameters['serviceBodyId'])));
1034
+ return {
1035
+ path: urlPath,
1036
+ method: 'GET',
1037
+ headers: headerParameters,
1038
+ query: queryParameters,
1039
+ };
1040
+ });
1041
+ }
1042
+ /**
1043
+ * Retrieve the meeting list editors assigned to a service body. Each editor includes a readOnly flag that is true when the calling user does not otherwise have access to manage that user via the users API.
1044
+ * Retrieves the editors assigned to a service body
1045
+ */
1046
+ getServiceBodyEditorsRaw(requestParameters, initOverrides) {
1047
+ return __awaiter(this, void 0, void 0, function* () {
1048
+ const requestOptions = yield this.getServiceBodyEditorsRequestOpts(requestParameters);
1049
+ const response = yield this.request(requestOptions, initOverrides);
1050
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ServiceBodyEditorFromJSON));
1051
+ });
1052
+ }
1053
+ /**
1054
+ * Retrieve the meeting list editors assigned to a service body. Each editor includes a readOnly flag that is true when the calling user does not otherwise have access to manage that user via the users API.
1055
+ * Retrieves the editors assigned to a service body
1056
+ */
1057
+ getServiceBodyEditors(requestParameters, initOverrides) {
1058
+ return __awaiter(this, void 0, void 0, function* () {
1059
+ const response = yield this.getServiceBodyEditorsRaw(requestParameters, initOverrides);
1060
+ return yield response.value();
1061
+ });
1062
+ }
1063
+ /**
1064
+ * Creates request options for getSettings without sending the request
1065
+ */
1066
+ getSettingsRequestOpts() {
802
1067
  return __awaiter(this, void 0, void 0, function* () {
803
1068
  const queryParameters = {};
804
1069
  const headerParameters = {};
@@ -807,12 +1072,22 @@ export class RootServerApi extends runtime.BaseAPI {
807
1072
  headerParameters["Authorization"] = yield this.configuration.accessToken("bmltToken", []);
808
1073
  }
809
1074
  let urlPath = `/api/v1/settings`;
810
- const response = yield this.request({
1075
+ return {
811
1076
  path: urlPath,
812
1077
  method: 'GET',
813
1078
  headers: headerParameters,
814
1079
  query: queryParameters,
815
- }, initOverrides);
1080
+ };
1081
+ });
1082
+ }
1083
+ /**
1084
+ * Retrieve all server settings. Only accessible to server administrators.
1085
+ * Retrieves all settings
1086
+ */
1087
+ getSettingsRaw(initOverrides) {
1088
+ return __awaiter(this, void 0, void 0, function* () {
1089
+ const requestOptions = yield this.getSettingsRequestOpts();
1090
+ const response = yield this.request(requestOptions, initOverrides);
816
1091
  return new runtime.JSONApiResponse(response, (jsonValue) => SettingsObjectFromJSON(jsonValue));
817
1092
  });
818
1093
  }
@@ -827,10 +1102,9 @@ export class RootServerApi extends runtime.BaseAPI {
827
1102
  });
828
1103
  }
829
1104
  /**
830
- * Retrieve single user.
831
- * Retrieves a single user
1105
+ * Creates request options for getUser without sending the request
832
1106
  */
833
- getUserRaw(requestParameters, initOverrides) {
1107
+ getUserRequestOpts(requestParameters) {
834
1108
  return __awaiter(this, void 0, void 0, function* () {
835
1109
  if (requestParameters['userId'] == null) {
836
1110
  throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling getUser().');
@@ -842,13 +1116,23 @@ export class RootServerApi extends runtime.BaseAPI {
842
1116
  headerParameters["Authorization"] = yield this.configuration.accessToken("bmltToken", []);
843
1117
  }
844
1118
  let urlPath = `/api/v1/users/{userId}`;
845
- urlPath = urlPath.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId'])));
846
- const response = yield this.request({
1119
+ urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
1120
+ return {
847
1121
  path: urlPath,
848
1122
  method: 'GET',
849
1123
  headers: headerParameters,
850
1124
  query: queryParameters,
851
- }, initOverrides);
1125
+ };
1126
+ });
1127
+ }
1128
+ /**
1129
+ * Retrieve single user.
1130
+ * Retrieves a single user
1131
+ */
1132
+ getUserRaw(requestParameters, initOverrides) {
1133
+ return __awaiter(this, void 0, void 0, function* () {
1134
+ const requestOptions = yield this.getUserRequestOpts(requestParameters);
1135
+ const response = yield this.request(requestOptions, initOverrides);
852
1136
  return new runtime.JSONApiResponse(response, (jsonValue) => UserFromJSON(jsonValue));
853
1137
  });
854
1138
  }
@@ -863,10 +1147,9 @@ export class RootServerApi extends runtime.BaseAPI {
863
1147
  });
864
1148
  }
865
1149
  /**
866
- * Retrieve users for authenticated user.
867
- * Retrieves users
1150
+ * Creates request options for getUsers without sending the request
868
1151
  */
869
- getUsersRaw(initOverrides) {
1152
+ getUsersRequestOpts() {
870
1153
  return __awaiter(this, void 0, void 0, function* () {
871
1154
  const queryParameters = {};
872
1155
  const headerParameters = {};
@@ -875,12 +1158,22 @@ export class RootServerApi extends runtime.BaseAPI {
875
1158
  headerParameters["Authorization"] = yield this.configuration.accessToken("bmltToken", []);
876
1159
  }
877
1160
  let urlPath = `/api/v1/users`;
878
- const response = yield this.request({
1161
+ return {
879
1162
  path: urlPath,
880
1163
  method: 'GET',
881
1164
  headers: headerParameters,
882
1165
  query: queryParameters,
883
- }, initOverrides);
1166
+ };
1167
+ });
1168
+ }
1169
+ /**
1170
+ * Retrieve users for authenticated user.
1171
+ * Retrieves users
1172
+ */
1173
+ getUsersRaw(initOverrides) {
1174
+ return __awaiter(this, void 0, void 0, function* () {
1175
+ const requestOptions = yield this.getUsersRequestOpts();
1176
+ const response = yield this.request(requestOptions, initOverrides);
884
1177
  return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(UserFromJSON));
885
1178
  });
886
1179
  }
@@ -895,10 +1188,9 @@ export class RootServerApi extends runtime.BaseAPI {
895
1188
  });
896
1189
  }
897
1190
  /**
898
- * Patches a user by id.
899
- * Patches a user
1191
+ * Creates request options for partialUpdateUser without sending the request
900
1192
  */
901
- partialUpdateUserRaw(requestParameters, initOverrides) {
1193
+ partialUpdateUserRequestOpts(requestParameters) {
902
1194
  return __awaiter(this, void 0, void 0, function* () {
903
1195
  if (requestParameters['userId'] == null) {
904
1196
  throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling partialUpdateUser().');
@@ -914,14 +1206,24 @@ export class RootServerApi extends runtime.BaseAPI {
914
1206
  headerParameters["Authorization"] = yield this.configuration.accessToken("bmltToken", []);
915
1207
  }
916
1208
  let urlPath = `/api/v1/users/{userId}`;
917
- urlPath = urlPath.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId'])));
918
- const response = yield this.request({
1209
+ urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
1210
+ return {
919
1211
  path: urlPath,
920
1212
  method: 'PATCH',
921
1213
  headers: headerParameters,
922
1214
  query: queryParameters,
923
1215
  body: UserPartialUpdateToJSON(requestParameters['userPartialUpdate']),
924
- }, initOverrides);
1216
+ };
1217
+ });
1218
+ }
1219
+ /**
1220
+ * Patches a user by id.
1221
+ * Patches a user
1222
+ */
1223
+ partialUpdateUserRaw(requestParameters, initOverrides) {
1224
+ return __awaiter(this, void 0, void 0, function* () {
1225
+ const requestOptions = yield this.partialUpdateUserRequestOpts(requestParameters);
1226
+ const response = yield this.request(requestOptions, initOverrides);
925
1227
  return new runtime.VoidApiResponse(response);
926
1228
  });
927
1229
  }
@@ -935,10 +1237,9 @@ export class RootServerApi extends runtime.BaseAPI {
935
1237
  });
936
1238
  }
937
1239
  /**
938
- * Patches a single format by id.
939
- * Patches a format
1240
+ * Creates request options for patchFormat without sending the request
940
1241
  */
941
- patchFormatRaw(requestParameters, initOverrides) {
1242
+ patchFormatRequestOpts(requestParameters) {
942
1243
  return __awaiter(this, void 0, void 0, function* () {
943
1244
  if (requestParameters['formatId'] == null) {
944
1245
  throw new runtime.RequiredError('formatId', 'Required parameter "formatId" was null or undefined when calling patchFormat().');
@@ -954,14 +1255,24 @@ export class RootServerApi extends runtime.BaseAPI {
954
1255
  headerParameters["Authorization"] = yield this.configuration.accessToken("bmltToken", []);
955
1256
  }
956
1257
  let urlPath = `/api/v1/formats/{formatId}`;
957
- urlPath = urlPath.replace(`{${"formatId"}}`, encodeURIComponent(String(requestParameters['formatId'])));
958
- const response = yield this.request({
1258
+ urlPath = urlPath.replace('{formatId}', encodeURIComponent(String(requestParameters['formatId'])));
1259
+ return {
959
1260
  path: urlPath,
960
1261
  method: 'PATCH',
961
1262
  headers: headerParameters,
962
1263
  query: queryParameters,
963
1264
  body: FormatPartialUpdateToJSON(requestParameters['formatPartialUpdate']),
964
- }, initOverrides);
1265
+ };
1266
+ });
1267
+ }
1268
+ /**
1269
+ * Patches a single format by id.
1270
+ * Patches a format
1271
+ */
1272
+ patchFormatRaw(requestParameters, initOverrides) {
1273
+ return __awaiter(this, void 0, void 0, function* () {
1274
+ const requestOptions = yield this.patchFormatRequestOpts(requestParameters);
1275
+ const response = yield this.request(requestOptions, initOverrides);
965
1276
  return new runtime.VoidApiResponse(response);
966
1277
  });
967
1278
  }
@@ -975,10 +1286,9 @@ export class RootServerApi extends runtime.BaseAPI {
975
1286
  });
976
1287
  }
977
1288
  /**
978
- * Patches a meeting by id
979
- * Patches a meeting
1289
+ * Creates request options for patchMeeting without sending the request
980
1290
  */
981
- patchMeetingRaw(requestParameters, initOverrides) {
1291
+ patchMeetingRequestOpts(requestParameters) {
982
1292
  return __awaiter(this, void 0, void 0, function* () {
983
1293
  if (requestParameters['meetingId'] == null) {
984
1294
  throw new runtime.RequiredError('meetingId', 'Required parameter "meetingId" was null or undefined when calling patchMeeting().');
@@ -997,14 +1307,24 @@ export class RootServerApi extends runtime.BaseAPI {
997
1307
  headerParameters["Authorization"] = yield this.configuration.accessToken("bmltToken", []);
998
1308
  }
999
1309
  let urlPath = `/api/v1/meetings/{meetingId}`;
1000
- urlPath = urlPath.replace(`{${"meetingId"}}`, encodeURIComponent(String(requestParameters['meetingId'])));
1001
- const response = yield this.request({
1310
+ urlPath = urlPath.replace('{meetingId}', encodeURIComponent(String(requestParameters['meetingId'])));
1311
+ return {
1002
1312
  path: urlPath,
1003
1313
  method: 'PATCH',
1004
1314
  headers: headerParameters,
1005
1315
  query: queryParameters,
1006
1316
  body: MeetingPartialUpdateToJSON(requestParameters['meetingPartialUpdate']),
1007
- }, initOverrides);
1317
+ };
1318
+ });
1319
+ }
1320
+ /**
1321
+ * Patches a meeting by id
1322
+ * Patches a meeting
1323
+ */
1324
+ patchMeetingRaw(requestParameters, initOverrides) {
1325
+ return __awaiter(this, void 0, void 0, function* () {
1326
+ const requestOptions = yield this.patchMeetingRequestOpts(requestParameters);
1327
+ const response = yield this.request(requestOptions, initOverrides);
1008
1328
  return new runtime.VoidApiResponse(response);
1009
1329
  });
1010
1330
  }
@@ -1018,10 +1338,9 @@ export class RootServerApi extends runtime.BaseAPI {
1018
1338
  });
1019
1339
  }
1020
1340
  /**
1021
- * Patches a single service body by id.
1022
- * Patches a service body
1341
+ * Creates request options for patchServiceBody without sending the request
1023
1342
  */
1024
- patchServiceBodyRaw(requestParameters, initOverrides) {
1343
+ patchServiceBodyRequestOpts(requestParameters) {
1025
1344
  return __awaiter(this, void 0, void 0, function* () {
1026
1345
  if (requestParameters['serviceBodyId'] == null) {
1027
1346
  throw new runtime.RequiredError('serviceBodyId', 'Required parameter "serviceBodyId" was null or undefined when calling patchServiceBody().');
@@ -1037,14 +1356,24 @@ export class RootServerApi extends runtime.BaseAPI {
1037
1356
  headerParameters["Authorization"] = yield this.configuration.accessToken("bmltToken", []);
1038
1357
  }
1039
1358
  let urlPath = `/api/v1/servicebodies/{serviceBodyId}`;
1040
- urlPath = urlPath.replace(`{${"serviceBodyId"}}`, encodeURIComponent(String(requestParameters['serviceBodyId'])));
1041
- const response = yield this.request({
1359
+ urlPath = urlPath.replace('{serviceBodyId}', encodeURIComponent(String(requestParameters['serviceBodyId'])));
1360
+ return {
1042
1361
  path: urlPath,
1043
1362
  method: 'PATCH',
1044
1363
  headers: headerParameters,
1045
1364
  query: queryParameters,
1046
1365
  body: ServiceBodyPartialUpdateToJSON(requestParameters['serviceBodyPartialUpdate']),
1047
- }, initOverrides);
1366
+ };
1367
+ });
1368
+ }
1369
+ /**
1370
+ * Patches a single service body by id.
1371
+ * Patches a service body
1372
+ */
1373
+ patchServiceBodyRaw(requestParameters, initOverrides) {
1374
+ return __awaiter(this, void 0, void 0, function* () {
1375
+ const requestOptions = yield this.patchServiceBodyRequestOpts(requestParameters);
1376
+ const response = yield this.request(requestOptions, initOverrides);
1048
1377
  return new runtime.VoidApiResponse(response);
1049
1378
  });
1050
1379
  }
@@ -1058,10 +1387,9 @@ export class RootServerApi extends runtime.BaseAPI {
1058
1387
  });
1059
1388
  }
1060
1389
  /**
1061
- * Updates a format.
1062
- * Updates a format
1390
+ * Creates request options for updateFormat without sending the request
1063
1391
  */
1064
- updateFormatRaw(requestParameters, initOverrides) {
1392
+ updateFormatRequestOpts(requestParameters) {
1065
1393
  return __awaiter(this, void 0, void 0, function* () {
1066
1394
  if (requestParameters['formatId'] == null) {
1067
1395
  throw new runtime.RequiredError('formatId', 'Required parameter "formatId" was null or undefined when calling updateFormat().');
@@ -1077,14 +1405,24 @@ export class RootServerApi extends runtime.BaseAPI {
1077
1405
  headerParameters["Authorization"] = yield this.configuration.accessToken("bmltToken", []);
1078
1406
  }
1079
1407
  let urlPath = `/api/v1/formats/{formatId}`;
1080
- urlPath = urlPath.replace(`{${"formatId"}}`, encodeURIComponent(String(requestParameters['formatId'])));
1081
- const response = yield this.request({
1408
+ urlPath = urlPath.replace('{formatId}', encodeURIComponent(String(requestParameters['formatId'])));
1409
+ return {
1082
1410
  path: urlPath,
1083
1411
  method: 'PUT',
1084
1412
  headers: headerParameters,
1085
1413
  query: queryParameters,
1086
1414
  body: FormatUpdateToJSON(requestParameters['formatUpdate']),
1087
- }, initOverrides);
1415
+ };
1416
+ });
1417
+ }
1418
+ /**
1419
+ * Updates a format.
1420
+ * Updates a format
1421
+ */
1422
+ updateFormatRaw(requestParameters, initOverrides) {
1423
+ return __awaiter(this, void 0, void 0, function* () {
1424
+ const requestOptions = yield this.updateFormatRequestOpts(requestParameters);
1425
+ const response = yield this.request(requestOptions, initOverrides);
1088
1426
  return new runtime.VoidApiResponse(response);
1089
1427
  });
1090
1428
  }
@@ -1098,10 +1436,9 @@ export class RootServerApi extends runtime.BaseAPI {
1098
1436
  });
1099
1437
  }
1100
1438
  /**
1101
- * Updates a meeting.
1102
- * Updates a meeting
1439
+ * Creates request options for updateMeeting without sending the request
1103
1440
  */
1104
- updateMeetingRaw(requestParameters, initOverrides) {
1441
+ updateMeetingRequestOpts(requestParameters) {
1105
1442
  return __awaiter(this, void 0, void 0, function* () {
1106
1443
  if (requestParameters['meetingId'] == null) {
1107
1444
  throw new runtime.RequiredError('meetingId', 'Required parameter "meetingId" was null or undefined when calling updateMeeting().');
@@ -1117,14 +1454,24 @@ export class RootServerApi extends runtime.BaseAPI {
1117
1454
  headerParameters["Authorization"] = yield this.configuration.accessToken("bmltToken", []);
1118
1455
  }
1119
1456
  let urlPath = `/api/v1/meetings/{meetingId}`;
1120
- urlPath = urlPath.replace(`{${"meetingId"}}`, encodeURIComponent(String(requestParameters['meetingId'])));
1121
- const response = yield this.request({
1457
+ urlPath = urlPath.replace('{meetingId}', encodeURIComponent(String(requestParameters['meetingId'])));
1458
+ return {
1122
1459
  path: urlPath,
1123
1460
  method: 'PUT',
1124
1461
  headers: headerParameters,
1125
1462
  query: queryParameters,
1126
1463
  body: MeetingUpdateToJSON(requestParameters['meetingUpdate']),
1127
- }, initOverrides);
1464
+ };
1465
+ });
1466
+ }
1467
+ /**
1468
+ * Updates a meeting.
1469
+ * Updates a meeting
1470
+ */
1471
+ updateMeetingRaw(requestParameters, initOverrides) {
1472
+ return __awaiter(this, void 0, void 0, function* () {
1473
+ const requestOptions = yield this.updateMeetingRequestOpts(requestParameters);
1474
+ const response = yield this.request(requestOptions, initOverrides);
1128
1475
  return new runtime.VoidApiResponse(response);
1129
1476
  });
1130
1477
  }
@@ -1138,10 +1485,9 @@ export class RootServerApi extends runtime.BaseAPI {
1138
1485
  });
1139
1486
  }
1140
1487
  /**
1141
- * Updates a single service body.
1142
- * Updates a Service Body
1488
+ * Creates request options for updateServiceBody without sending the request
1143
1489
  */
1144
- updateServiceBodyRaw(requestParameters, initOverrides) {
1490
+ updateServiceBodyRequestOpts(requestParameters) {
1145
1491
  return __awaiter(this, void 0, void 0, function* () {
1146
1492
  if (requestParameters['serviceBodyId'] == null) {
1147
1493
  throw new runtime.RequiredError('serviceBodyId', 'Required parameter "serviceBodyId" was null or undefined when calling updateServiceBody().');
@@ -1157,14 +1503,24 @@ export class RootServerApi extends runtime.BaseAPI {
1157
1503
  headerParameters["Authorization"] = yield this.configuration.accessToken("bmltToken", []);
1158
1504
  }
1159
1505
  let urlPath = `/api/v1/servicebodies/{serviceBodyId}`;
1160
- urlPath = urlPath.replace(`{${"serviceBodyId"}}`, encodeURIComponent(String(requestParameters['serviceBodyId'])));
1161
- const response = yield this.request({
1506
+ urlPath = urlPath.replace('{serviceBodyId}', encodeURIComponent(String(requestParameters['serviceBodyId'])));
1507
+ return {
1162
1508
  path: urlPath,
1163
1509
  method: 'PUT',
1164
1510
  headers: headerParameters,
1165
1511
  query: queryParameters,
1166
1512
  body: ServiceBodyUpdateToJSON(requestParameters['serviceBodyUpdate']),
1167
- }, initOverrides);
1513
+ };
1514
+ });
1515
+ }
1516
+ /**
1517
+ * Updates a single service body.
1518
+ * Updates a Service Body
1519
+ */
1520
+ updateServiceBodyRaw(requestParameters, initOverrides) {
1521
+ return __awaiter(this, void 0, void 0, function* () {
1522
+ const requestOptions = yield this.updateServiceBodyRequestOpts(requestParameters);
1523
+ const response = yield this.request(requestOptions, initOverrides);
1168
1524
  return new runtime.VoidApiResponse(response);
1169
1525
  });
1170
1526
  }
@@ -1178,10 +1534,9 @@ export class RootServerApi extends runtime.BaseAPI {
1178
1534
  });
1179
1535
  }
1180
1536
  /**
1181
- * Updates one or more server settings. Only accessible to server administrators.
1182
- * Update settings
1537
+ * Creates request options for updateSettings without sending the request
1183
1538
  */
1184
- updateSettingsRaw(requestParameters, initOverrides) {
1539
+ updateSettingsRequestOpts(requestParameters) {
1185
1540
  return __awaiter(this, void 0, void 0, function* () {
1186
1541
  if (requestParameters['settingsUpdate'] == null) {
1187
1542
  throw new runtime.RequiredError('settingsUpdate', 'Required parameter "settingsUpdate" was null or undefined when calling updateSettings().');
@@ -1194,13 +1549,23 @@ export class RootServerApi extends runtime.BaseAPI {
1194
1549
  headerParameters["Authorization"] = yield this.configuration.accessToken("bmltToken", []);
1195
1550
  }
1196
1551
  let urlPath = `/api/v1/settings`;
1197
- const response = yield this.request({
1552
+ return {
1198
1553
  path: urlPath,
1199
1554
  method: 'PATCH',
1200
1555
  headers: headerParameters,
1201
1556
  query: queryParameters,
1202
1557
  body: SettingsUpdateToJSON(requestParameters['settingsUpdate']),
1203
- }, initOverrides);
1558
+ };
1559
+ });
1560
+ }
1561
+ /**
1562
+ * Updates one or more server settings. Only accessible to server administrators.
1563
+ * Update settings
1564
+ */
1565
+ updateSettingsRaw(requestParameters, initOverrides) {
1566
+ return __awaiter(this, void 0, void 0, function* () {
1567
+ const requestOptions = yield this.updateSettingsRequestOpts(requestParameters);
1568
+ const response = yield this.request(requestOptions, initOverrides);
1204
1569
  return new runtime.VoidApiResponse(response);
1205
1570
  });
1206
1571
  }
@@ -1214,10 +1579,9 @@ export class RootServerApi extends runtime.BaseAPI {
1214
1579
  });
1215
1580
  }
1216
1581
  /**
1217
- * Updates a user.
1218
- * Update single user
1582
+ * Creates request options for updateUser without sending the request
1219
1583
  */
1220
- updateUserRaw(requestParameters, initOverrides) {
1584
+ updateUserRequestOpts(requestParameters) {
1221
1585
  return __awaiter(this, void 0, void 0, function* () {
1222
1586
  if (requestParameters['userId'] == null) {
1223
1587
  throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling updateUser().');
@@ -1233,14 +1597,24 @@ export class RootServerApi extends runtime.BaseAPI {
1233
1597
  headerParameters["Authorization"] = yield this.configuration.accessToken("bmltToken", []);
1234
1598
  }
1235
1599
  let urlPath = `/api/v1/users/{userId}`;
1236
- urlPath = urlPath.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId'])));
1237
- const response = yield this.request({
1600
+ urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
1601
+ return {
1238
1602
  path: urlPath,
1239
1603
  method: 'PUT',
1240
1604
  headers: headerParameters,
1241
1605
  query: queryParameters,
1242
1606
  body: UserUpdateToJSON(requestParameters['userUpdate']),
1243
- }, initOverrides);
1607
+ };
1608
+ });
1609
+ }
1610
+ /**
1611
+ * Updates a user.
1612
+ * Update single user
1613
+ */
1614
+ updateUserRaw(requestParameters, initOverrides) {
1615
+ return __awaiter(this, void 0, void 0, function* () {
1616
+ const requestOptions = yield this.updateUserRequestOpts(requestParameters);
1617
+ const response = yield this.request(requestOptions, initOverrides);
1244
1618
  return new runtime.VoidApiResponse(response);
1245
1619
  });
1246
1620
  }