tuix-pdf-service-client 0.2.0 → 0.3.0

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.
@@ -1 +1 @@
1
- 7.19.0
1
+ 7.21.0
package/apis/ClientApi.js CHANGED
@@ -54,10 +54,9 @@ const index_1 = require("../models/index");
54
54
  */
55
55
  class ClientApi extends runtime.BaseAPI {
56
56
  /**
57
- * Create PDF files by template
58
- * Create PDF files by template
57
+ * Creates request options for aPICreatePdfByTemplate without sending the request
59
58
  */
60
- async aPICreatePdfByTemplateRaw(requestParameters, initOverrides) {
59
+ async aPICreatePdfByTemplateRequestOpts(requestParameters) {
61
60
  if (requestParameters['applicationId'] == null) {
62
61
  throw new runtime.RequiredError('applicationId', 'Required parameter "applicationId" was null or undefined when calling aPICreatePdfByTemplate().');
63
62
  }
@@ -69,13 +68,21 @@ class ClientApi extends runtime.BaseAPI {
69
68
  headerParameters['Content-Type'] = 'application/json';
70
69
  let urlPath = `/api/applications/{applicationId}/pdf-files`;
71
70
  urlPath = urlPath.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters['applicationId'])));
72
- const response = await this.request({
71
+ return {
73
72
  path: urlPath,
74
73
  method: 'POST',
75
74
  headers: headerParameters,
76
75
  query: queryParameters,
77
76
  body: (0, index_1.CreatePdfRequestDTOToJSON)(requestParameters['createPdfRequestDTO']),
78
- }, initOverrides);
77
+ };
78
+ }
79
+ /**
80
+ * Create PDF files by template
81
+ * Create PDF files by template
82
+ */
83
+ async aPICreatePdfByTemplateRaw(requestParameters, initOverrides) {
84
+ const requestOptions = await this.aPICreatePdfByTemplateRequestOpts(requestParameters);
85
+ const response = await this.request(requestOptions, initOverrides);
79
86
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CreatePdfResponseDTOFromJSON)(jsonValue));
80
87
  }
81
88
  /**
@@ -87,10 +94,9 @@ class ClientApi extends runtime.BaseAPI {
87
94
  return await response.value();
88
95
  }
89
96
  /**
90
- * Retrieve all API keys associated with the authenticated user\'s account with pagination.
91
- * Get all API keys for the authenticated user
97
+ * Creates request options for apiKeysGet without sending the request
92
98
  */
93
- async apiKeysGetRaw(requestParameters, initOverrides) {
99
+ async apiKeysGetRequestOpts(requestParameters) {
94
100
  const queryParameters = {};
95
101
  if (requestParameters['page'] != null) {
96
102
  queryParameters['page'] = requestParameters['page'];
@@ -100,12 +106,20 @@ class ClientApi extends runtime.BaseAPI {
100
106
  }
101
107
  const headerParameters = {};
102
108
  let urlPath = `/api-keys`;
103
- const response = await this.request({
109
+ return {
104
110
  path: urlPath,
105
111
  method: 'GET',
106
112
  headers: headerParameters,
107
113
  query: queryParameters,
108
- }, initOverrides);
114
+ };
115
+ }
116
+ /**
117
+ * Retrieve all API keys associated with the authenticated user\'s account with pagination.
118
+ * Get all API keys for the authenticated user
119
+ */
120
+ async apiKeysGetRaw(requestParameters, initOverrides) {
121
+ const requestOptions = await this.apiKeysGetRequestOpts(requestParameters);
122
+ const response = await this.request(requestOptions, initOverrides);
109
123
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetAPIKeysResponseDTOFromJSON)(jsonValue));
110
124
  }
111
125
  /**
@@ -117,10 +131,9 @@ class ClientApi extends runtime.BaseAPI {
117
131
  return await response.value();
118
132
  }
119
133
  /**
120
- * Delete a specific API key belonging to the authenticated user.
121
- * Delete an API key
134
+ * Creates request options for apiKeysIdDelete without sending the request
122
135
  */
123
- async apiKeysIdDeleteRaw(requestParameters, initOverrides) {
136
+ async apiKeysIdDeleteRequestOpts(requestParameters) {
124
137
  if (requestParameters['id'] == null) {
125
138
  throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiKeysIdDelete().');
126
139
  }
@@ -128,12 +141,20 @@ class ClientApi extends runtime.BaseAPI {
128
141
  const headerParameters = {};
129
142
  let urlPath = `/api-keys/{id}`;
130
143
  urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
131
- const response = await this.request({
144
+ return {
132
145
  path: urlPath,
133
146
  method: 'DELETE',
134
147
  headers: headerParameters,
135
148
  query: queryParameters,
136
- }, initOverrides);
149
+ };
150
+ }
151
+ /**
152
+ * Delete a specific API key belonging to the authenticated user.
153
+ * Delete an API key
154
+ */
155
+ async apiKeysIdDeleteRaw(requestParameters, initOverrides) {
156
+ const requestOptions = await this.apiKeysIdDeleteRequestOpts(requestParameters);
157
+ const response = await this.request(requestOptions, initOverrides);
137
158
  return new runtime.VoidApiResponse(response);
138
159
  }
139
160
  /**
@@ -144,10 +165,9 @@ class ClientApi extends runtime.BaseAPI {
144
165
  await this.apiKeysIdDeleteRaw(requestParameters, initOverrides);
145
166
  }
146
167
  /**
147
- * Create a new API key for accessing the RAG service.
148
- * Create a new API key
168
+ * Creates request options for apiKeysPost without sending the request
149
169
  */
150
- async apiKeysPostRaw(requestParameters, initOverrides) {
170
+ async apiKeysPostRequestOpts(requestParameters) {
151
171
  if (requestParameters['createAPIKeyRequestDTO'] == null) {
152
172
  throw new runtime.RequiredError('createAPIKeyRequestDTO', 'Required parameter "createAPIKeyRequestDTO" was null or undefined when calling apiKeysPost().');
153
173
  }
@@ -155,13 +175,21 @@ class ClientApi extends runtime.BaseAPI {
155
175
  const headerParameters = {};
156
176
  headerParameters['Content-Type'] = 'application/json';
157
177
  let urlPath = `/api-keys`;
158
- const response = await this.request({
178
+ return {
159
179
  path: urlPath,
160
180
  method: 'POST',
161
181
  headers: headerParameters,
162
182
  query: queryParameters,
163
183
  body: (0, index_1.CreateAPIKeyRequestDTOToJSON)(requestParameters['createAPIKeyRequestDTO']),
164
- }, initOverrides);
184
+ };
185
+ }
186
+ /**
187
+ * Create a new API key for accessing the RAG service.
188
+ * Create a new API key
189
+ */
190
+ async apiKeysPostRaw(requestParameters, initOverrides) {
191
+ const requestOptions = await this.apiKeysPostRequestOpts(requestParameters);
192
+ const response = await this.request(requestOptions, initOverrides);
165
193
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CreateAPIKeyResponseDTOFromJSON)(jsonValue));
166
194
  }
167
195
  /**
@@ -173,10 +201,9 @@ class ClientApi extends runtime.BaseAPI {
173
201
  return await response.value();
174
202
  }
175
203
  /**
176
- * Create an account
177
- * Creates a new account
204
+ * Creates request options for createAccount without sending the request
178
205
  */
179
- async createAccountRaw(requestParameters, initOverrides) {
206
+ async createAccountRequestOpts(requestParameters) {
180
207
  if (requestParameters['createAccountDTO'] == null) {
181
208
  throw new runtime.RequiredError('createAccountDTO', 'Required parameter "createAccountDTO" was null or undefined when calling createAccount().');
182
209
  }
@@ -184,13 +211,21 @@ class ClientApi extends runtime.BaseAPI {
184
211
  const headerParameters = {};
185
212
  headerParameters['Content-Type'] = 'application/json';
186
213
  let urlPath = `/accounts`;
187
- const response = await this.request({
214
+ return {
188
215
  path: urlPath,
189
216
  method: 'POST',
190
217
  headers: headerParameters,
191
218
  query: queryParameters,
192
219
  body: (0, index_1.CreateAccountDTOToJSON)(requestParameters['createAccountDTO']),
193
- }, initOverrides);
220
+ };
221
+ }
222
+ /**
223
+ * Create an account
224
+ * Creates a new account
225
+ */
226
+ async createAccountRaw(requestParameters, initOverrides) {
227
+ const requestOptions = await this.createAccountRequestOpts(requestParameters);
228
+ const response = await this.request(requestOptions, initOverrides);
194
229
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AccountDTOFromJSON)(jsonValue));
195
230
  }
196
231
  /**
@@ -202,10 +237,9 @@ class ClientApi extends runtime.BaseAPI {
202
237
  return await response.value();
203
238
  }
204
239
  /**
205
- * Create a new application for the authenticated account
206
- * Create a new application
240
+ * Creates request options for createApplication without sending the request
207
241
  */
208
- async createApplicationRaw(requestParameters, initOverrides) {
242
+ async createApplicationRequestOpts(requestParameters) {
209
243
  if (requestParameters['createApplicationDTO'] == null) {
210
244
  throw new runtime.RequiredError('createApplicationDTO', 'Required parameter "createApplicationDTO" was null or undefined when calling createApplication().');
211
245
  }
@@ -213,13 +247,21 @@ class ClientApi extends runtime.BaseAPI {
213
247
  const headerParameters = {};
214
248
  headerParameters['Content-Type'] = 'application/json';
215
249
  let urlPath = `/applications`;
216
- const response = await this.request({
250
+ return {
217
251
  path: urlPath,
218
252
  method: 'POST',
219
253
  headers: headerParameters,
220
254
  query: queryParameters,
221
255
  body: (0, index_1.CreateApplicationDTOToJSON)(requestParameters['createApplicationDTO']),
222
- }, initOverrides);
256
+ };
257
+ }
258
+ /**
259
+ * Create a new application for the authenticated account
260
+ * Create a new application
261
+ */
262
+ async createApplicationRaw(requestParameters, initOverrides) {
263
+ const requestOptions = await this.createApplicationRequestOpts(requestParameters);
264
+ const response = await this.request(requestOptions, initOverrides);
223
265
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApplicationDTOFromJSON)(jsonValue));
224
266
  }
225
267
  /**
@@ -231,10 +273,9 @@ class ClientApi extends runtime.BaseAPI {
231
273
  return await response.value();
232
274
  }
233
275
  /**
234
- * Create PDF files by template
235
- * Create PDF files by template
276
+ * Creates request options for createPdfByTemplate without sending the request
236
277
  */
237
- async createPdfByTemplateRaw(requestParameters, initOverrides) {
278
+ async createPdfByTemplateRequestOpts(requestParameters) {
238
279
  if (requestParameters['applicationId'] == null) {
239
280
  throw new runtime.RequiredError('applicationId', 'Required parameter "applicationId" was null or undefined when calling createPdfByTemplate().');
240
281
  }
@@ -246,13 +287,21 @@ class ClientApi extends runtime.BaseAPI {
246
287
  headerParameters['Content-Type'] = 'application/json';
247
288
  let urlPath = `/applications/{applicationId}/pdf-files`;
248
289
  urlPath = urlPath.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters['applicationId'])));
249
- const response = await this.request({
290
+ return {
250
291
  path: urlPath,
251
292
  method: 'POST',
252
293
  headers: headerParameters,
253
294
  query: queryParameters,
254
295
  body: (0, index_1.CreatePdfRequestDTOToJSON)(requestParameters['createPdfRequestDTO']),
255
- }, initOverrides);
296
+ };
297
+ }
298
+ /**
299
+ * Create PDF files by template
300
+ * Create PDF files by template
301
+ */
302
+ async createPdfByTemplateRaw(requestParameters, initOverrides) {
303
+ const requestOptions = await this.createPdfByTemplateRequestOpts(requestParameters);
304
+ const response = await this.request(requestOptions, initOverrides);
256
305
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CreatePdfResponseDTOFromJSON)(jsonValue));
257
306
  }
258
307
  /**
@@ -264,10 +313,9 @@ class ClientApi extends runtime.BaseAPI {
264
313
  return await response.value();
265
314
  }
266
315
  /**
267
- * Delete an application belonging to the authenticated account
268
- * Delete an application
316
+ * Creates request options for deleteApplication without sending the request
269
317
  */
270
- async deleteApplicationRaw(requestParameters, initOverrides) {
318
+ async deleteApplicationRequestOpts(requestParameters) {
271
319
  if (requestParameters['applicationId'] == null) {
272
320
  throw new runtime.RequiredError('applicationId', 'Required parameter "applicationId" was null or undefined when calling deleteApplication().');
273
321
  }
@@ -275,12 +323,20 @@ class ClientApi extends runtime.BaseAPI {
275
323
  const headerParameters = {};
276
324
  let urlPath = `/applications/{applicationId}`;
277
325
  urlPath = urlPath.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters['applicationId'])));
278
- const response = await this.request({
326
+ return {
279
327
  path: urlPath,
280
328
  method: 'DELETE',
281
329
  headers: headerParameters,
282
330
  query: queryParameters,
283
- }, initOverrides);
331
+ };
332
+ }
333
+ /**
334
+ * Delete an application belonging to the authenticated account
335
+ * Delete an application
336
+ */
337
+ async deleteApplicationRaw(requestParameters, initOverrides) {
338
+ const requestOptions = await this.deleteApplicationRequestOpts(requestParameters);
339
+ const response = await this.request(requestOptions, initOverrides);
284
340
  return new runtime.VoidApiResponse(response);
285
341
  }
286
342
  /**
@@ -291,10 +347,9 @@ class ClientApi extends runtime.BaseAPI {
291
347
  await this.deleteApplicationRaw(requestParameters, initOverrides);
292
348
  }
293
349
  /**
294
- * Delete a pdf template
295
- * Delete a pdf template
350
+ * Creates request options for deletePDFTemplate without sending the request
296
351
  */
297
- async deletePDFTemplateRaw(requestParameters, initOverrides) {
352
+ async deletePDFTemplateRequestOpts(requestParameters) {
298
353
  if (requestParameters['id'] == null) {
299
354
  throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deletePDFTemplate().');
300
355
  }
@@ -306,12 +361,20 @@ class ClientApi extends runtime.BaseAPI {
306
361
  let urlPath = `/applications/{applicationId}/pdf-templates/{id}`;
307
362
  urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
308
363
  urlPath = urlPath.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters['applicationId'])));
309
- const response = await this.request({
364
+ return {
310
365
  path: urlPath,
311
366
  method: 'DELETE',
312
367
  headers: headerParameters,
313
368
  query: queryParameters,
314
- }, initOverrides);
369
+ };
370
+ }
371
+ /**
372
+ * Delete a pdf template
373
+ * Delete a pdf template
374
+ */
375
+ async deletePDFTemplateRaw(requestParameters, initOverrides) {
376
+ const requestOptions = await this.deletePDFTemplateRequestOpts(requestParameters);
377
+ const response = await this.request(requestOptions, initOverrides);
315
378
  return new runtime.VoidApiResponse(response);
316
379
  }
317
380
  /**
@@ -322,10 +385,9 @@ class ClientApi extends runtime.BaseAPI {
322
385
  await this.deletePDFTemplateRaw(requestParameters, initOverrides);
323
386
  }
324
387
  /**
325
- * Get a specific application belonging to the authenticated account
326
- * Get an application by applicationId
388
+ * Creates request options for getApplicationByID without sending the request
327
389
  */
328
- async getApplicationByIDRaw(requestParameters, initOverrides) {
390
+ async getApplicationByIDRequestOpts(requestParameters) {
329
391
  if (requestParameters['applicationId'] == null) {
330
392
  throw new runtime.RequiredError('applicationId', 'Required parameter "applicationId" was null or undefined when calling getApplicationByID().');
331
393
  }
@@ -333,12 +395,20 @@ class ClientApi extends runtime.BaseAPI {
333
395
  const headerParameters = {};
334
396
  let urlPath = `/applications/{applicationId}`;
335
397
  urlPath = urlPath.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters['applicationId'])));
336
- const response = await this.request({
398
+ return {
337
399
  path: urlPath,
338
400
  method: 'GET',
339
401
  headers: headerParameters,
340
402
  query: queryParameters,
341
- }, initOverrides);
403
+ };
404
+ }
405
+ /**
406
+ * Get a specific application belonging to the authenticated account
407
+ * Get an application by applicationId
408
+ */
409
+ async getApplicationByIDRaw(requestParameters, initOverrides) {
410
+ const requestOptions = await this.getApplicationByIDRequestOpts(requestParameters);
411
+ const response = await this.request(requestOptions, initOverrides);
342
412
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApplicationDTOFromJSON)(jsonValue));
343
413
  }
344
414
  /**
@@ -350,10 +420,9 @@ class ClientApi extends runtime.BaseAPI {
350
420
  return await response.value();
351
421
  }
352
422
  /**
353
- * Get all applications belonging to the authenticated account
354
- * Get all applications for the account
423
+ * Creates request options for getApplications without sending the request
355
424
  */
356
- async getApplicationsRaw(requestParameters, initOverrides) {
425
+ async getApplicationsRequestOpts(requestParameters) {
357
426
  const queryParameters = {};
358
427
  if (requestParameters['page'] != null) {
359
428
  queryParameters['page'] = requestParameters['page'];
@@ -363,12 +432,20 @@ class ClientApi extends runtime.BaseAPI {
363
432
  }
364
433
  const headerParameters = {};
365
434
  let urlPath = `/applications`;
366
- const response = await this.request({
435
+ return {
367
436
  path: urlPath,
368
437
  method: 'GET',
369
438
  headers: headerParameters,
370
439
  query: queryParameters,
371
- }, initOverrides);
440
+ };
441
+ }
442
+ /**
443
+ * Get all applications belonging to the authenticated account
444
+ * Get all applications for the account
445
+ */
446
+ async getApplicationsRaw(requestParameters, initOverrides) {
447
+ const requestOptions = await this.getApplicationsRequestOpts(requestParameters);
448
+ const response = await this.request(requestOptions, initOverrides);
372
449
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PaginatedApplicationsDTOFromJSON)(jsonValue));
373
450
  }
374
451
  /**
@@ -380,10 +457,9 @@ class ClientApi extends runtime.BaseAPI {
380
457
  return await response.value();
381
458
  }
382
459
  /**
383
- * Get template by id
384
- * Get template by id
460
+ * Creates request options for getPdfTemplate without sending the request
385
461
  */
386
- async getPdfTemplateRaw(requestParameters, initOverrides) {
462
+ async getPdfTemplateRequestOpts(requestParameters) {
387
463
  if (requestParameters['id'] == null) {
388
464
  throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getPdfTemplate().');
389
465
  }
@@ -395,12 +471,20 @@ class ClientApi extends runtime.BaseAPI {
395
471
  let urlPath = `/applications/{applicationId}/pdf-templates/{id}`;
396
472
  urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
397
473
  urlPath = urlPath.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters['applicationId'])));
398
- const response = await this.request({
474
+ return {
399
475
  path: urlPath,
400
476
  method: 'GET',
401
477
  headers: headerParameters,
402
478
  query: queryParameters,
403
- }, initOverrides);
479
+ };
480
+ }
481
+ /**
482
+ * Get template by id
483
+ * Get template by id
484
+ */
485
+ async getPdfTemplateRaw(requestParameters, initOverrides) {
486
+ const requestOptions = await this.getPdfTemplateRequestOpts(requestParameters);
487
+ const response = await this.request(requestOptions, initOverrides);
404
488
  if (this.isJsonMime(response.headers.get('content-type'))) {
405
489
  return new runtime.JSONApiResponse(response);
406
490
  }
@@ -417,10 +501,9 @@ class ClientApi extends runtime.BaseAPI {
417
501
  return await response.value();
418
502
  }
419
503
  /**
420
- * Get all templates
421
- * Get all templates
504
+ * Creates request options for getPdfTemplates without sending the request
422
505
  */
423
- async getPdfTemplatesRaw(requestParameters, initOverrides) {
506
+ async getPdfTemplatesRequestOpts(requestParameters) {
424
507
  if (requestParameters['applicationId'] == null) {
425
508
  throw new runtime.RequiredError('applicationId', 'Required parameter "applicationId" was null or undefined when calling getPdfTemplates().');
426
509
  }
@@ -434,12 +517,20 @@ class ClientApi extends runtime.BaseAPI {
434
517
  const headerParameters = {};
435
518
  let urlPath = `/applications/{applicationId}/pdf-templates`;
436
519
  urlPath = urlPath.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters['applicationId'])));
437
- const response = await this.request({
520
+ return {
438
521
  path: urlPath,
439
522
  method: 'GET',
440
523
  headers: headerParameters,
441
524
  query: queryParameters,
442
- }, initOverrides);
525
+ };
526
+ }
527
+ /**
528
+ * Get all templates
529
+ * Get all templates
530
+ */
531
+ async getPdfTemplatesRaw(requestParameters, initOverrides) {
532
+ const requestOptions = await this.getPdfTemplatesRequestOpts(requestParameters);
533
+ const response = await this.request(requestOptions, initOverrides);
443
534
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PaginatedPdfTemplateDTOFromJSON)(jsonValue));
444
535
  }
445
536
  /**
@@ -451,10 +542,9 @@ class ClientApi extends runtime.BaseAPI {
451
542
  return await response.value();
452
543
  }
453
544
  /**
454
- * Update an application belonging to the authenticated account
455
- * Update an application
545
+ * Creates request options for updateApplication without sending the request
456
546
  */
457
- async updateApplicationRaw(requestParameters, initOverrides) {
547
+ async updateApplicationRequestOpts(requestParameters) {
458
548
  if (requestParameters['applicationId'] == null) {
459
549
  throw new runtime.RequiredError('applicationId', 'Required parameter "applicationId" was null or undefined when calling updateApplication().');
460
550
  }
@@ -466,13 +556,21 @@ class ClientApi extends runtime.BaseAPI {
466
556
  headerParameters['Content-Type'] = 'application/json';
467
557
  let urlPath = `/applications/{applicationId}`;
468
558
  urlPath = urlPath.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters['applicationId'])));
469
- const response = await this.request({
559
+ return {
470
560
  path: urlPath,
471
561
  method: 'PATCH',
472
562
  headers: headerParameters,
473
563
  query: queryParameters,
474
564
  body: (0, index_1.UpdateApplicationDTOToJSON)(requestParameters['updateApplicationDTO']),
475
- }, initOverrides);
565
+ };
566
+ }
567
+ /**
568
+ * Update an application belonging to the authenticated account
569
+ * Update an application
570
+ */
571
+ async updateApplicationRaw(requestParameters, initOverrides) {
572
+ const requestOptions = await this.updateApplicationRequestOpts(requestParameters);
573
+ const response = await this.request(requestOptions, initOverrides);
476
574
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApplicationDTOFromJSON)(jsonValue));
477
575
  }
478
576
  /**
@@ -484,10 +582,9 @@ class ClientApi extends runtime.BaseAPI {
484
582
  return await response.value();
485
583
  }
486
584
  /**
487
- * Update template
488
- * Update template
585
+ * Creates request options for updatePdfTemplate without sending the request
489
586
  */
490
- async updatePdfTemplateRaw(requestParameters, initOverrides) {
587
+ async updatePdfTemplateRequestOpts(requestParameters) {
491
588
  if (requestParameters['applicationId'] == null) {
492
589
  throw new runtime.RequiredError('applicationId', 'Required parameter "applicationId" was null or undefined when calling updatePdfTemplate().');
493
590
  }
@@ -526,13 +623,21 @@ class ClientApi extends runtime.BaseAPI {
526
623
  let urlPath = `/applications/{applicationId}/pdf-templates/{id}`;
527
624
  urlPath = urlPath.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters['applicationId'])));
528
625
  urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
529
- const response = await this.request({
626
+ return {
530
627
  path: urlPath,
531
628
  method: 'PATCH',
532
629
  headers: headerParameters,
533
630
  query: queryParameters,
534
631
  body: formParams,
535
- }, initOverrides);
632
+ };
633
+ }
634
+ /**
635
+ * Update template
636
+ * Update template
637
+ */
638
+ async updatePdfTemplateRaw(requestParameters, initOverrides) {
639
+ const requestOptions = await this.updatePdfTemplateRequestOpts(requestParameters);
640
+ const response = await this.request(requestOptions, initOverrides);
536
641
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PdfTemplateDTOFromJSON)(jsonValue));
537
642
  }
538
643
  /**
@@ -544,10 +649,9 @@ class ClientApi extends runtime.BaseAPI {
544
649
  return await response.value();
545
650
  }
546
651
  /**
547
- * Upload template
548
- * Upload template
652
+ * Creates request options for uploadPdfTemplate without sending the request
549
653
  */
550
- async uploadPdfTemplateRaw(requestParameters, initOverrides) {
654
+ async uploadPdfTemplateRequestOpts(requestParameters) {
551
655
  if (requestParameters['applicationId'] == null) {
552
656
  throw new runtime.RequiredError('applicationId', 'Required parameter "applicationId" was null or undefined when calling uploadPdfTemplate().');
553
657
  }
@@ -582,13 +686,21 @@ class ClientApi extends runtime.BaseAPI {
582
686
  }
583
687
  let urlPath = `/applications/{applicationId}/pdf-templates`;
584
688
  urlPath = urlPath.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters['applicationId'])));
585
- const response = await this.request({
689
+ return {
586
690
  path: urlPath,
587
691
  method: 'POST',
588
692
  headers: headerParameters,
589
693
  query: queryParameters,
590
694
  body: formParams,
591
- }, initOverrides);
695
+ };
696
+ }
697
+ /**
698
+ * Upload template
699
+ * Upload template
700
+ */
701
+ async uploadPdfTemplateRaw(requestParameters, initOverrides) {
702
+ const requestOptions = await this.uploadPdfTemplateRequestOpts(requestParameters);
703
+ const response = await this.request(requestOptions, initOverrides);
592
704
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PdfTemplateDTOFromJSON)(jsonValue));
593
705
  }
594
706
  /**