tuix-pdf-service-client 0.2.0 → 0.4.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.
package/apis/ClientApi.ts CHANGED
@@ -12,54 +12,77 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
-
16
15
  import * as runtime from '../runtime';
17
- import type {
18
- AccountDTO,
19
- ApplicationDTO,
20
- CreateAPIKeyRequestDTO,
21
- CreateAPIKeyResponseDTO,
22
- CreateAccountDTO,
23
- CreateApplicationDTO,
24
- CreatePdfRequestDTO,
25
- CreatePdfResponseDTO,
26
- ErrorDTO,
27
- GetAPIKeysResponseDTO,
28
- PaginatedApplicationsDTO,
29
- PaginatedPdfTemplateDTO,
30
- PdfTemplateDTO,
31
- UpdateApplicationDTO,
32
- } from '../models/index';
33
16
  import {
17
+ type AccountDTO,
34
18
  AccountDTOFromJSON,
35
19
  AccountDTOToJSON,
20
+ } from '../models/AccountDTO';
21
+ import {
22
+ type ApplicationDTO,
36
23
  ApplicationDTOFromJSON,
37
24
  ApplicationDTOToJSON,
25
+ } from '../models/ApplicationDTO';
26
+ import {
27
+ type CreateAPIKeyRequestDTO,
38
28
  CreateAPIKeyRequestDTOFromJSON,
39
29
  CreateAPIKeyRequestDTOToJSON,
30
+ } from '../models/CreateAPIKeyRequestDTO';
31
+ import {
32
+ type CreateAPIKeyResponseDTO,
40
33
  CreateAPIKeyResponseDTOFromJSON,
41
34
  CreateAPIKeyResponseDTOToJSON,
35
+ } from '../models/CreateAPIKeyResponseDTO';
36
+ import {
37
+ type CreateAccountDTO,
42
38
  CreateAccountDTOFromJSON,
43
39
  CreateAccountDTOToJSON,
40
+ } from '../models/CreateAccountDTO';
41
+ import {
42
+ type CreateApplicationDTO,
44
43
  CreateApplicationDTOFromJSON,
45
44
  CreateApplicationDTOToJSON,
45
+ } from '../models/CreateApplicationDTO';
46
+ import {
47
+ type CreatePdfRequestDTO,
46
48
  CreatePdfRequestDTOFromJSON,
47
49
  CreatePdfRequestDTOToJSON,
50
+ } from '../models/CreatePdfRequestDTO';
51
+ import {
52
+ type CreatePdfResponseDTO,
48
53
  CreatePdfResponseDTOFromJSON,
49
54
  CreatePdfResponseDTOToJSON,
55
+ } from '../models/CreatePdfResponseDTO';
56
+ import {
57
+ type ErrorDTO,
50
58
  ErrorDTOFromJSON,
51
59
  ErrorDTOToJSON,
60
+ } from '../models/ErrorDTO';
61
+ import {
62
+ type GetAPIKeysResponseDTO,
52
63
  GetAPIKeysResponseDTOFromJSON,
53
64
  GetAPIKeysResponseDTOToJSON,
65
+ } from '../models/GetAPIKeysResponseDTO';
66
+ import {
67
+ type PaginatedApplicationsDTO,
54
68
  PaginatedApplicationsDTOFromJSON,
55
69
  PaginatedApplicationsDTOToJSON,
70
+ } from '../models/PaginatedApplicationsDTO';
71
+ import {
72
+ type PaginatedPdfTemplateDTO,
56
73
  PaginatedPdfTemplateDTOFromJSON,
57
74
  PaginatedPdfTemplateDTOToJSON,
75
+ } from '../models/PaginatedPdfTemplateDTO';
76
+ import {
77
+ type PdfTemplateDTO,
58
78
  PdfTemplateDTOFromJSON,
59
79
  PdfTemplateDTOToJSON,
80
+ } from '../models/PdfTemplateDTO';
81
+ import {
82
+ type UpdateApplicationDTO,
60
83
  UpdateApplicationDTOFromJSON,
61
84
  UpdateApplicationDTOToJSON,
62
- } from '../models/index';
85
+ } from '../models/UpdateApplicationDTO';
63
86
 
64
87
  export interface APICreatePdfByTemplateRequest {
65
88
  applicationId: string;
@@ -108,6 +131,9 @@ export interface GetApplicationByIDRequest {
108
131
  export interface GetApplicationsRequest {
109
132
  page?: number;
110
133
  pageSize?: number;
134
+ search?: string;
135
+ sortBy?: GetApplicationsSortByEnum;
136
+ sortDirection?: GetApplicationsSortDirectionEnum;
111
137
  }
112
138
 
113
139
  export interface GetPdfTemplateRequest {
@@ -119,6 +145,9 @@ export interface GetPdfTemplatesRequest {
119
145
  applicationId: string;
120
146
  page?: number;
121
147
  pageSize?: number;
148
+ search?: string;
149
+ sortBy?: GetPdfTemplatesSortByEnum;
150
+ sortDirection?: GetPdfTemplatesSortDirectionEnum;
122
151
  }
123
152
 
124
153
  export interface UpdateApplicationRequest {
@@ -145,10 +174,9 @@ export interface UploadPdfTemplateRequest {
145
174
  export class ClientApi extends runtime.BaseAPI {
146
175
 
147
176
  /**
148
- * Create PDF files by template
149
- * Create PDF files by template
177
+ * Creates request options for aPICreatePdfByTemplate without sending the request
150
178
  */
151
- async aPICreatePdfByTemplateRaw(requestParameters: APICreatePdfByTemplateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreatePdfResponseDTO>> {
179
+ async aPICreatePdfByTemplateRequestOpts(requestParameters: APICreatePdfByTemplateRequest): Promise<runtime.RequestOpts> {
152
180
  if (requestParameters['applicationId'] == null) {
153
181
  throw new runtime.RequiredError(
154
182
  'applicationId',
@@ -171,15 +199,24 @@ export class ClientApi extends runtime.BaseAPI {
171
199
 
172
200
 
173
201
  let urlPath = `/api/applications/{applicationId}/pdf-files`;
174
- urlPath = urlPath.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters['applicationId'])));
202
+ urlPath = urlPath.replace('{applicationId}', encodeURIComponent(String(requestParameters['applicationId'])));
175
203
 
176
- const response = await this.request({
204
+ return {
177
205
  path: urlPath,
178
206
  method: 'POST',
179
207
  headers: headerParameters,
180
208
  query: queryParameters,
181
209
  body: CreatePdfRequestDTOToJSON(requestParameters['createPdfRequestDTO']),
182
- }, initOverrides);
210
+ };
211
+ }
212
+
213
+ /**
214
+ * Create PDF files by template
215
+ * Create PDF files by template
216
+ */
217
+ async aPICreatePdfByTemplateRaw(requestParameters: APICreatePdfByTemplateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreatePdfResponseDTO>> {
218
+ const requestOptions = await this.aPICreatePdfByTemplateRequestOpts(requestParameters);
219
+ const response = await this.request(requestOptions, initOverrides);
183
220
 
184
221
  return new runtime.JSONApiResponse(response, (jsonValue) => CreatePdfResponseDTOFromJSON(jsonValue));
185
222
  }
@@ -194,10 +231,9 @@ export class ClientApi extends runtime.BaseAPI {
194
231
  }
195
232
 
196
233
  /**
197
- * Retrieve all API keys associated with the authenticated user\'s account with pagination.
198
- * Get all API keys for the authenticated user
234
+ * Creates request options for apiKeysGet without sending the request
199
235
  */
200
- async apiKeysGetRaw(requestParameters: ApiKeysGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAPIKeysResponseDTO>> {
236
+ async apiKeysGetRequestOpts(requestParameters: ApiKeysGetRequest): Promise<runtime.RequestOpts> {
201
237
  const queryParameters: any = {};
202
238
 
203
239
  if (requestParameters['page'] != null) {
@@ -213,12 +249,21 @@ export class ClientApi extends runtime.BaseAPI {
213
249
 
214
250
  let urlPath = `/api-keys`;
215
251
 
216
- const response = await this.request({
252
+ return {
217
253
  path: urlPath,
218
254
  method: 'GET',
219
255
  headers: headerParameters,
220
256
  query: queryParameters,
221
- }, initOverrides);
257
+ };
258
+ }
259
+
260
+ /**
261
+ * Retrieve all API keys associated with the authenticated user\'s account with pagination.
262
+ * Get all API keys for the authenticated user
263
+ */
264
+ async apiKeysGetRaw(requestParameters: ApiKeysGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAPIKeysResponseDTO>> {
265
+ const requestOptions = await this.apiKeysGetRequestOpts(requestParameters);
266
+ const response = await this.request(requestOptions, initOverrides);
222
267
 
223
268
  return new runtime.JSONApiResponse(response, (jsonValue) => GetAPIKeysResponseDTOFromJSON(jsonValue));
224
269
  }
@@ -233,10 +278,9 @@ export class ClientApi extends runtime.BaseAPI {
233
278
  }
234
279
 
235
280
  /**
236
- * Delete a specific API key belonging to the authenticated user.
237
- * Delete an API key
281
+ * Creates request options for apiKeysIdDelete without sending the request
238
282
  */
239
- async apiKeysIdDeleteRaw(requestParameters: ApiKeysIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
283
+ async apiKeysIdDeleteRequestOpts(requestParameters: ApiKeysIdDeleteRequest): Promise<runtime.RequestOpts> {
240
284
  if (requestParameters['id'] == null) {
241
285
  throw new runtime.RequiredError(
242
286
  'id',
@@ -250,14 +294,23 @@ export class ClientApi extends runtime.BaseAPI {
250
294
 
251
295
 
252
296
  let urlPath = `/api-keys/{id}`;
253
- urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
297
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
254
298
 
255
- const response = await this.request({
299
+ return {
256
300
  path: urlPath,
257
301
  method: 'DELETE',
258
302
  headers: headerParameters,
259
303
  query: queryParameters,
260
- }, initOverrides);
304
+ };
305
+ }
306
+
307
+ /**
308
+ * Delete a specific API key belonging to the authenticated user.
309
+ * Delete an API key
310
+ */
311
+ async apiKeysIdDeleteRaw(requestParameters: ApiKeysIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
312
+ const requestOptions = await this.apiKeysIdDeleteRequestOpts(requestParameters);
313
+ const response = await this.request(requestOptions, initOverrides);
261
314
 
262
315
  return new runtime.VoidApiResponse(response);
263
316
  }
@@ -271,10 +324,9 @@ export class ClientApi extends runtime.BaseAPI {
271
324
  }
272
325
 
273
326
  /**
274
- * Create a new API key for accessing the RAG service.
275
- * Create a new API key
327
+ * Creates request options for apiKeysPost without sending the request
276
328
  */
277
- async apiKeysPostRaw(requestParameters: ApiKeysPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateAPIKeyResponseDTO>> {
329
+ async apiKeysPostRequestOpts(requestParameters: ApiKeysPostRequest): Promise<runtime.RequestOpts> {
278
330
  if (requestParameters['createAPIKeyRequestDTO'] == null) {
279
331
  throw new runtime.RequiredError(
280
332
  'createAPIKeyRequestDTO',
@@ -291,13 +343,22 @@ export class ClientApi extends runtime.BaseAPI {
291
343
 
292
344
  let urlPath = `/api-keys`;
293
345
 
294
- const response = await this.request({
346
+ return {
295
347
  path: urlPath,
296
348
  method: 'POST',
297
349
  headers: headerParameters,
298
350
  query: queryParameters,
299
351
  body: CreateAPIKeyRequestDTOToJSON(requestParameters['createAPIKeyRequestDTO']),
300
- }, initOverrides);
352
+ };
353
+ }
354
+
355
+ /**
356
+ * Create a new API key for accessing the RAG service.
357
+ * Create a new API key
358
+ */
359
+ async apiKeysPostRaw(requestParameters: ApiKeysPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateAPIKeyResponseDTO>> {
360
+ const requestOptions = await this.apiKeysPostRequestOpts(requestParameters);
361
+ const response = await this.request(requestOptions, initOverrides);
301
362
 
302
363
  return new runtime.JSONApiResponse(response, (jsonValue) => CreateAPIKeyResponseDTOFromJSON(jsonValue));
303
364
  }
@@ -312,10 +373,9 @@ export class ClientApi extends runtime.BaseAPI {
312
373
  }
313
374
 
314
375
  /**
315
- * Create an account
316
- * Creates a new account
376
+ * Creates request options for createAccount without sending the request
317
377
  */
318
- async createAccountRaw(requestParameters: CreateAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountDTO>> {
378
+ async createAccountRequestOpts(requestParameters: CreateAccountRequest): Promise<runtime.RequestOpts> {
319
379
  if (requestParameters['createAccountDTO'] == null) {
320
380
  throw new runtime.RequiredError(
321
381
  'createAccountDTO',
@@ -332,13 +392,22 @@ export class ClientApi extends runtime.BaseAPI {
332
392
 
333
393
  let urlPath = `/accounts`;
334
394
 
335
- const response = await this.request({
395
+ return {
336
396
  path: urlPath,
337
397
  method: 'POST',
338
398
  headers: headerParameters,
339
399
  query: queryParameters,
340
400
  body: CreateAccountDTOToJSON(requestParameters['createAccountDTO']),
341
- }, initOverrides);
401
+ };
402
+ }
403
+
404
+ /**
405
+ * Create an account
406
+ * Creates a new account
407
+ */
408
+ async createAccountRaw(requestParameters: CreateAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountDTO>> {
409
+ const requestOptions = await this.createAccountRequestOpts(requestParameters);
410
+ const response = await this.request(requestOptions, initOverrides);
342
411
 
343
412
  return new runtime.JSONApiResponse(response, (jsonValue) => AccountDTOFromJSON(jsonValue));
344
413
  }
@@ -353,10 +422,9 @@ export class ClientApi extends runtime.BaseAPI {
353
422
  }
354
423
 
355
424
  /**
356
- * Create a new application for the authenticated account
357
- * Create a new application
425
+ * Creates request options for createApplication without sending the request
358
426
  */
359
- async createApplicationRaw(requestParameters: CreateApplicationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplicationDTO>> {
427
+ async createApplicationRequestOpts(requestParameters: CreateApplicationRequest): Promise<runtime.RequestOpts> {
360
428
  if (requestParameters['createApplicationDTO'] == null) {
361
429
  throw new runtime.RequiredError(
362
430
  'createApplicationDTO',
@@ -373,13 +441,22 @@ export class ClientApi extends runtime.BaseAPI {
373
441
 
374
442
  let urlPath = `/applications`;
375
443
 
376
- const response = await this.request({
444
+ return {
377
445
  path: urlPath,
378
446
  method: 'POST',
379
447
  headers: headerParameters,
380
448
  query: queryParameters,
381
449
  body: CreateApplicationDTOToJSON(requestParameters['createApplicationDTO']),
382
- }, initOverrides);
450
+ };
451
+ }
452
+
453
+ /**
454
+ * Create a new application for the authenticated account
455
+ * Create a new application
456
+ */
457
+ async createApplicationRaw(requestParameters: CreateApplicationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplicationDTO>> {
458
+ const requestOptions = await this.createApplicationRequestOpts(requestParameters);
459
+ const response = await this.request(requestOptions, initOverrides);
383
460
 
384
461
  return new runtime.JSONApiResponse(response, (jsonValue) => ApplicationDTOFromJSON(jsonValue));
385
462
  }
@@ -394,10 +471,9 @@ export class ClientApi extends runtime.BaseAPI {
394
471
  }
395
472
 
396
473
  /**
397
- * Create PDF files by template
398
- * Create PDF files by template
474
+ * Creates request options for createPdfByTemplate without sending the request
399
475
  */
400
- async createPdfByTemplateRaw(requestParameters: CreatePdfByTemplateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreatePdfResponseDTO>> {
476
+ async createPdfByTemplateRequestOpts(requestParameters: CreatePdfByTemplateRequest): Promise<runtime.RequestOpts> {
401
477
  if (requestParameters['applicationId'] == null) {
402
478
  throw new runtime.RequiredError(
403
479
  'applicationId',
@@ -420,15 +496,24 @@ export class ClientApi extends runtime.BaseAPI {
420
496
 
421
497
 
422
498
  let urlPath = `/applications/{applicationId}/pdf-files`;
423
- urlPath = urlPath.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters['applicationId'])));
499
+ urlPath = urlPath.replace('{applicationId}', encodeURIComponent(String(requestParameters['applicationId'])));
424
500
 
425
- const response = await this.request({
501
+ return {
426
502
  path: urlPath,
427
503
  method: 'POST',
428
504
  headers: headerParameters,
429
505
  query: queryParameters,
430
506
  body: CreatePdfRequestDTOToJSON(requestParameters['createPdfRequestDTO']),
431
- }, initOverrides);
507
+ };
508
+ }
509
+
510
+ /**
511
+ * Create PDF files by template
512
+ * Create PDF files by template
513
+ */
514
+ async createPdfByTemplateRaw(requestParameters: CreatePdfByTemplateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreatePdfResponseDTO>> {
515
+ const requestOptions = await this.createPdfByTemplateRequestOpts(requestParameters);
516
+ const response = await this.request(requestOptions, initOverrides);
432
517
 
433
518
  return new runtime.JSONApiResponse(response, (jsonValue) => CreatePdfResponseDTOFromJSON(jsonValue));
434
519
  }
@@ -443,10 +528,9 @@ export class ClientApi extends runtime.BaseAPI {
443
528
  }
444
529
 
445
530
  /**
446
- * Delete an application belonging to the authenticated account
447
- * Delete an application
531
+ * Creates request options for deleteApplication without sending the request
448
532
  */
449
- async deleteApplicationRaw(requestParameters: DeleteApplicationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
533
+ async deleteApplicationRequestOpts(requestParameters: DeleteApplicationRequest): Promise<runtime.RequestOpts> {
450
534
  if (requestParameters['applicationId'] == null) {
451
535
  throw new runtime.RequiredError(
452
536
  'applicationId',
@@ -460,14 +544,23 @@ export class ClientApi extends runtime.BaseAPI {
460
544
 
461
545
 
462
546
  let urlPath = `/applications/{applicationId}`;
463
- urlPath = urlPath.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters['applicationId'])));
547
+ urlPath = urlPath.replace('{applicationId}', encodeURIComponent(String(requestParameters['applicationId'])));
464
548
 
465
- const response = await this.request({
549
+ return {
466
550
  path: urlPath,
467
551
  method: 'DELETE',
468
552
  headers: headerParameters,
469
553
  query: queryParameters,
470
- }, initOverrides);
554
+ };
555
+ }
556
+
557
+ /**
558
+ * Delete an application belonging to the authenticated account
559
+ * Delete an application
560
+ */
561
+ async deleteApplicationRaw(requestParameters: DeleteApplicationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
562
+ const requestOptions = await this.deleteApplicationRequestOpts(requestParameters);
563
+ const response = await this.request(requestOptions, initOverrides);
471
564
 
472
565
  return new runtime.VoidApiResponse(response);
473
566
  }
@@ -481,10 +574,9 @@ export class ClientApi extends runtime.BaseAPI {
481
574
  }
482
575
 
483
576
  /**
484
- * Delete a pdf template
485
- * Delete a pdf template
577
+ * Creates request options for deletePDFTemplate without sending the request
486
578
  */
487
- async deletePDFTemplateRaw(requestParameters: DeletePDFTemplateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
579
+ async deletePDFTemplateRequestOpts(requestParameters: DeletePDFTemplateRequest): Promise<runtime.RequestOpts> {
488
580
  if (requestParameters['id'] == null) {
489
581
  throw new runtime.RequiredError(
490
582
  'id',
@@ -505,15 +597,24 @@ export class ClientApi extends runtime.BaseAPI {
505
597
 
506
598
 
507
599
  let urlPath = `/applications/{applicationId}/pdf-templates/{id}`;
508
- urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
509
- urlPath = urlPath.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters['applicationId'])));
600
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
601
+ urlPath = urlPath.replace('{applicationId}', encodeURIComponent(String(requestParameters['applicationId'])));
510
602
 
511
- const response = await this.request({
603
+ return {
512
604
  path: urlPath,
513
605
  method: 'DELETE',
514
606
  headers: headerParameters,
515
607
  query: queryParameters,
516
- }, initOverrides);
608
+ };
609
+ }
610
+
611
+ /**
612
+ * Delete a pdf template
613
+ * Delete a pdf template
614
+ */
615
+ async deletePDFTemplateRaw(requestParameters: DeletePDFTemplateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
616
+ const requestOptions = await this.deletePDFTemplateRequestOpts(requestParameters);
617
+ const response = await this.request(requestOptions, initOverrides);
517
618
 
518
619
  return new runtime.VoidApiResponse(response);
519
620
  }
@@ -527,10 +628,9 @@ export class ClientApi extends runtime.BaseAPI {
527
628
  }
528
629
 
529
630
  /**
530
- * Get a specific application belonging to the authenticated account
531
- * Get an application by applicationId
631
+ * Creates request options for getApplicationByID without sending the request
532
632
  */
533
- async getApplicationByIDRaw(requestParameters: GetApplicationByIDRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplicationDTO>> {
633
+ async getApplicationByIDRequestOpts(requestParameters: GetApplicationByIDRequest): Promise<runtime.RequestOpts> {
534
634
  if (requestParameters['applicationId'] == null) {
535
635
  throw new runtime.RequiredError(
536
636
  'applicationId',
@@ -544,14 +644,23 @@ export class ClientApi extends runtime.BaseAPI {
544
644
 
545
645
 
546
646
  let urlPath = `/applications/{applicationId}`;
547
- urlPath = urlPath.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters['applicationId'])));
647
+ urlPath = urlPath.replace('{applicationId}', encodeURIComponent(String(requestParameters['applicationId'])));
548
648
 
549
- const response = await this.request({
649
+ return {
550
650
  path: urlPath,
551
651
  method: 'GET',
552
652
  headers: headerParameters,
553
653
  query: queryParameters,
554
- }, initOverrides);
654
+ };
655
+ }
656
+
657
+ /**
658
+ * Get a specific application belonging to the authenticated account
659
+ * Get an application by applicationId
660
+ */
661
+ async getApplicationByIDRaw(requestParameters: GetApplicationByIDRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplicationDTO>> {
662
+ const requestOptions = await this.getApplicationByIDRequestOpts(requestParameters);
663
+ const response = await this.request(requestOptions, initOverrides);
555
664
 
556
665
  return new runtime.JSONApiResponse(response, (jsonValue) => ApplicationDTOFromJSON(jsonValue));
557
666
  }
@@ -566,10 +675,9 @@ export class ClientApi extends runtime.BaseAPI {
566
675
  }
567
676
 
568
677
  /**
569
- * Get all applications belonging to the authenticated account
570
- * Get all applications for the account
678
+ * Creates request options for getApplications without sending the request
571
679
  */
572
- async getApplicationsRaw(requestParameters: GetApplicationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedApplicationsDTO>> {
680
+ async getApplicationsRequestOpts(requestParameters: GetApplicationsRequest): Promise<runtime.RequestOpts> {
573
681
  const queryParameters: any = {};
574
682
 
575
683
  if (requestParameters['page'] != null) {
@@ -580,17 +688,38 @@ export class ClientApi extends runtime.BaseAPI {
580
688
  queryParameters['pageSize'] = requestParameters['pageSize'];
581
689
  }
582
690
 
691
+ if (requestParameters['search'] != null) {
692
+ queryParameters['search'] = requestParameters['search'];
693
+ }
694
+
695
+ if (requestParameters['sortBy'] != null) {
696
+ queryParameters['sortBy'] = requestParameters['sortBy'];
697
+ }
698
+
699
+ if (requestParameters['sortDirection'] != null) {
700
+ queryParameters['sortDirection'] = requestParameters['sortDirection'];
701
+ }
702
+
583
703
  const headerParameters: runtime.HTTPHeaders = {};
584
704
 
585
705
 
586
706
  let urlPath = `/applications`;
587
707
 
588
- const response = await this.request({
708
+ return {
589
709
  path: urlPath,
590
710
  method: 'GET',
591
711
  headers: headerParameters,
592
712
  query: queryParameters,
593
- }, initOverrides);
713
+ };
714
+ }
715
+
716
+ /**
717
+ * Get all applications belonging to the authenticated account
718
+ * Get all applications for the account
719
+ */
720
+ async getApplicationsRaw(requestParameters: GetApplicationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedApplicationsDTO>> {
721
+ const requestOptions = await this.getApplicationsRequestOpts(requestParameters);
722
+ const response = await this.request(requestOptions, initOverrides);
594
723
 
595
724
  return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedApplicationsDTOFromJSON(jsonValue));
596
725
  }
@@ -605,10 +734,9 @@ export class ClientApi extends runtime.BaseAPI {
605
734
  }
606
735
 
607
736
  /**
608
- * Get template by id
609
- * Get template by id
737
+ * Creates request options for getPdfTemplate without sending the request
610
738
  */
611
- async getPdfTemplateRaw(requestParameters: GetPdfTemplateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>> {
739
+ async getPdfTemplateRequestOpts(requestParameters: GetPdfTemplateRequest): Promise<runtime.RequestOpts> {
612
740
  if (requestParameters['id'] == null) {
613
741
  throw new runtime.RequiredError(
614
742
  'id',
@@ -629,15 +757,24 @@ export class ClientApi extends runtime.BaseAPI {
629
757
 
630
758
 
631
759
  let urlPath = `/applications/{applicationId}/pdf-templates/{id}`;
632
- urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
633
- urlPath = urlPath.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters['applicationId'])));
760
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
761
+ urlPath = urlPath.replace('{applicationId}', encodeURIComponent(String(requestParameters['applicationId'])));
634
762
 
635
- const response = await this.request({
763
+ return {
636
764
  path: urlPath,
637
765
  method: 'GET',
638
766
  headers: headerParameters,
639
767
  query: queryParameters,
640
- }, initOverrides);
768
+ };
769
+ }
770
+
771
+ /**
772
+ * Get template by id
773
+ * Get template by id
774
+ */
775
+ async getPdfTemplateRaw(requestParameters: GetPdfTemplateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>> {
776
+ const requestOptions = await this.getPdfTemplateRequestOpts(requestParameters);
777
+ const response = await this.request(requestOptions, initOverrides);
641
778
 
642
779
  if (this.isJsonMime(response.headers.get('content-type'))) {
643
780
  return new runtime.JSONApiResponse<string>(response);
@@ -656,10 +793,9 @@ export class ClientApi extends runtime.BaseAPI {
656
793
  }
657
794
 
658
795
  /**
659
- * Get all templates
660
- * Get all templates
796
+ * Creates request options for getPdfTemplates without sending the request
661
797
  */
662
- async getPdfTemplatesRaw(requestParameters: GetPdfTemplatesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedPdfTemplateDTO>> {
798
+ async getPdfTemplatesRequestOpts(requestParameters: GetPdfTemplatesRequest): Promise<runtime.RequestOpts> {
663
799
  if (requestParameters['applicationId'] == null) {
664
800
  throw new runtime.RequiredError(
665
801
  'applicationId',
@@ -677,18 +813,39 @@ export class ClientApi extends runtime.BaseAPI {
677
813
  queryParameters['pageSize'] = requestParameters['pageSize'];
678
814
  }
679
815
 
816
+ if (requestParameters['search'] != null) {
817
+ queryParameters['search'] = requestParameters['search'];
818
+ }
819
+
820
+ if (requestParameters['sortBy'] != null) {
821
+ queryParameters['sortBy'] = requestParameters['sortBy'];
822
+ }
823
+
824
+ if (requestParameters['sortDirection'] != null) {
825
+ queryParameters['sortDirection'] = requestParameters['sortDirection'];
826
+ }
827
+
680
828
  const headerParameters: runtime.HTTPHeaders = {};
681
829
 
682
830
 
683
831
  let urlPath = `/applications/{applicationId}/pdf-templates`;
684
- urlPath = urlPath.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters['applicationId'])));
832
+ urlPath = urlPath.replace('{applicationId}', encodeURIComponent(String(requestParameters['applicationId'])));
685
833
 
686
- const response = await this.request({
834
+ return {
687
835
  path: urlPath,
688
836
  method: 'GET',
689
837
  headers: headerParameters,
690
838
  query: queryParameters,
691
- }, initOverrides);
839
+ };
840
+ }
841
+
842
+ /**
843
+ * Get all templates
844
+ * Get all templates
845
+ */
846
+ async getPdfTemplatesRaw(requestParameters: GetPdfTemplatesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedPdfTemplateDTO>> {
847
+ const requestOptions = await this.getPdfTemplatesRequestOpts(requestParameters);
848
+ const response = await this.request(requestOptions, initOverrides);
692
849
 
693
850
  return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedPdfTemplateDTOFromJSON(jsonValue));
694
851
  }
@@ -703,10 +860,9 @@ export class ClientApi extends runtime.BaseAPI {
703
860
  }
704
861
 
705
862
  /**
706
- * Update an application belonging to the authenticated account
707
- * Update an application
863
+ * Creates request options for updateApplication without sending the request
708
864
  */
709
- async updateApplicationRaw(requestParameters: UpdateApplicationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplicationDTO>> {
865
+ async updateApplicationRequestOpts(requestParameters: UpdateApplicationRequest): Promise<runtime.RequestOpts> {
710
866
  if (requestParameters['applicationId'] == null) {
711
867
  throw new runtime.RequiredError(
712
868
  'applicationId',
@@ -729,15 +885,24 @@ export class ClientApi extends runtime.BaseAPI {
729
885
 
730
886
 
731
887
  let urlPath = `/applications/{applicationId}`;
732
- urlPath = urlPath.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters['applicationId'])));
888
+ urlPath = urlPath.replace('{applicationId}', encodeURIComponent(String(requestParameters['applicationId'])));
733
889
 
734
- const response = await this.request({
890
+ return {
735
891
  path: urlPath,
736
892
  method: 'PATCH',
737
893
  headers: headerParameters,
738
894
  query: queryParameters,
739
895
  body: UpdateApplicationDTOToJSON(requestParameters['updateApplicationDTO']),
740
- }, initOverrides);
896
+ };
897
+ }
898
+
899
+ /**
900
+ * Update an application belonging to the authenticated account
901
+ * Update an application
902
+ */
903
+ async updateApplicationRaw(requestParameters: UpdateApplicationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplicationDTO>> {
904
+ const requestOptions = await this.updateApplicationRequestOpts(requestParameters);
905
+ const response = await this.request(requestOptions, initOverrides);
741
906
 
742
907
  return new runtime.JSONApiResponse(response, (jsonValue) => ApplicationDTOFromJSON(jsonValue));
743
908
  }
@@ -752,10 +917,9 @@ export class ClientApi extends runtime.BaseAPI {
752
917
  }
753
918
 
754
919
  /**
755
- * Update template
756
- * Update template
920
+ * Creates request options for updatePdfTemplate without sending the request
757
921
  */
758
- async updatePdfTemplateRaw(requestParameters: UpdatePdfTemplateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PdfTemplateDTO>> {
922
+ async updatePdfTemplateRequestOpts(requestParameters: UpdatePdfTemplateRequest): Promise<runtime.RequestOpts> {
759
923
  if (requestParameters['applicationId'] == null) {
760
924
  throw new runtime.RequiredError(
761
925
  'applicationId',
@@ -814,16 +978,25 @@ export class ClientApi extends runtime.BaseAPI {
814
978
 
815
979
 
816
980
  let urlPath = `/applications/{applicationId}/pdf-templates/{id}`;
817
- urlPath = urlPath.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters['applicationId'])));
818
- urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
981
+ urlPath = urlPath.replace('{applicationId}', encodeURIComponent(String(requestParameters['applicationId'])));
982
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
819
983
 
820
- const response = await this.request({
984
+ return {
821
985
  path: urlPath,
822
986
  method: 'PATCH',
823
987
  headers: headerParameters,
824
988
  query: queryParameters,
825
989
  body: formParams,
826
- }, initOverrides);
990
+ };
991
+ }
992
+
993
+ /**
994
+ * Update template
995
+ * Update template
996
+ */
997
+ async updatePdfTemplateRaw(requestParameters: UpdatePdfTemplateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PdfTemplateDTO>> {
998
+ const requestOptions = await this.updatePdfTemplateRequestOpts(requestParameters);
999
+ const response = await this.request(requestOptions, initOverrides);
827
1000
 
828
1001
  return new runtime.JSONApiResponse(response, (jsonValue) => PdfTemplateDTOFromJSON(jsonValue));
829
1002
  }
@@ -838,10 +1011,9 @@ export class ClientApi extends runtime.BaseAPI {
838
1011
  }
839
1012
 
840
1013
  /**
841
- * Upload template
842
- * Upload template
1014
+ * Creates request options for uploadPdfTemplate without sending the request
843
1015
  */
844
- async uploadPdfTemplateRaw(requestParameters: UploadPdfTemplateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PdfTemplateDTO>> {
1016
+ async uploadPdfTemplateRequestOpts(requestParameters: UploadPdfTemplateRequest): Promise<runtime.RequestOpts> {
845
1017
  if (requestParameters['applicationId'] == null) {
846
1018
  throw new runtime.RequiredError(
847
1019
  'applicationId',
@@ -893,15 +1065,24 @@ export class ClientApi extends runtime.BaseAPI {
893
1065
 
894
1066
 
895
1067
  let urlPath = `/applications/{applicationId}/pdf-templates`;
896
- urlPath = urlPath.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters['applicationId'])));
1068
+ urlPath = urlPath.replace('{applicationId}', encodeURIComponent(String(requestParameters['applicationId'])));
897
1069
 
898
- const response = await this.request({
1070
+ return {
899
1071
  path: urlPath,
900
1072
  method: 'POST',
901
1073
  headers: headerParameters,
902
1074
  query: queryParameters,
903
1075
  body: formParams,
904
- }, initOverrides);
1076
+ };
1077
+ }
1078
+
1079
+ /**
1080
+ * Upload template
1081
+ * Upload template
1082
+ */
1083
+ async uploadPdfTemplateRaw(requestParameters: UploadPdfTemplateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PdfTemplateDTO>> {
1084
+ const requestOptions = await this.uploadPdfTemplateRequestOpts(requestParameters);
1085
+ const response = await this.request(requestOptions, initOverrides);
905
1086
 
906
1087
  return new runtime.JSONApiResponse(response, (jsonValue) => PdfTemplateDTOFromJSON(jsonValue));
907
1088
  }
@@ -916,3 +1097,38 @@ export class ClientApi extends runtime.BaseAPI {
916
1097
  }
917
1098
 
918
1099
  }
1100
+
1101
+ /**
1102
+ * @export
1103
+ */
1104
+ export const GetApplicationsSortByEnum = {
1105
+ Name: 'name',
1106
+ CreatedAt: 'createdAt',
1107
+ UpdatedAt: 'updatedAt'
1108
+ } as const;
1109
+ export type GetApplicationsSortByEnum = typeof GetApplicationsSortByEnum[keyof typeof GetApplicationsSortByEnum];
1110
+ /**
1111
+ * @export
1112
+ */
1113
+ export const GetApplicationsSortDirectionEnum = {
1114
+ Asc: 'asc',
1115
+ Desc: 'desc'
1116
+ } as const;
1117
+ export type GetApplicationsSortDirectionEnum = typeof GetApplicationsSortDirectionEnum[keyof typeof GetApplicationsSortDirectionEnum];
1118
+ /**
1119
+ * @export
1120
+ */
1121
+ export const GetPdfTemplatesSortByEnum = {
1122
+ Name: 'name',
1123
+ UpdatedAt: 'updatedAt',
1124
+ CreatedAt: 'createdAt'
1125
+ } as const;
1126
+ export type GetPdfTemplatesSortByEnum = typeof GetPdfTemplatesSortByEnum[keyof typeof GetPdfTemplatesSortByEnum];
1127
+ /**
1128
+ * @export
1129
+ */
1130
+ export const GetPdfTemplatesSortDirectionEnum = {
1131
+ Asc: 'asc',
1132
+ Desc: 'desc'
1133
+ } as const;
1134
+ export type GetPdfTemplatesSortDirectionEnum = typeof GetPdfTemplatesSortDirectionEnum[keyof typeof GetPdfTemplatesSortDirectionEnum];