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.
- package/.openapi-generator/VERSION +1 -1
- package/apis/ClientApi.js +192 -80
- package/apis/ClientApi.js.map +1 -1
- package/apis/ClientApi.ts +208 -80
- package/package.json +1 -1
- package/runtime.js +15 -0
- package/runtime.js.map +1 -1
- package/runtime.ts +18 -0
package/apis/ClientApi.ts
CHANGED
|
@@ -145,10 +145,9 @@ export interface UploadPdfTemplateRequest {
|
|
|
145
145
|
export class ClientApi extends runtime.BaseAPI {
|
|
146
146
|
|
|
147
147
|
/**
|
|
148
|
-
*
|
|
149
|
-
* Create PDF files by template
|
|
148
|
+
* Creates request options for aPICreatePdfByTemplate without sending the request
|
|
150
149
|
*/
|
|
151
|
-
async
|
|
150
|
+
async aPICreatePdfByTemplateRequestOpts(requestParameters: APICreatePdfByTemplateRequest): Promise<runtime.RequestOpts> {
|
|
152
151
|
if (requestParameters['applicationId'] == null) {
|
|
153
152
|
throw new runtime.RequiredError(
|
|
154
153
|
'applicationId',
|
|
@@ -173,13 +172,22 @@ export class ClientApi extends runtime.BaseAPI {
|
|
|
173
172
|
let urlPath = `/api/applications/{applicationId}/pdf-files`;
|
|
174
173
|
urlPath = urlPath.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters['applicationId'])));
|
|
175
174
|
|
|
176
|
-
|
|
175
|
+
return {
|
|
177
176
|
path: urlPath,
|
|
178
177
|
method: 'POST',
|
|
179
178
|
headers: headerParameters,
|
|
180
179
|
query: queryParameters,
|
|
181
180
|
body: CreatePdfRequestDTOToJSON(requestParameters['createPdfRequestDTO']),
|
|
182
|
-
}
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Create PDF files by template
|
|
186
|
+
* Create PDF files by template
|
|
187
|
+
*/
|
|
188
|
+
async aPICreatePdfByTemplateRaw(requestParameters: APICreatePdfByTemplateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreatePdfResponseDTO>> {
|
|
189
|
+
const requestOptions = await this.aPICreatePdfByTemplateRequestOpts(requestParameters);
|
|
190
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
183
191
|
|
|
184
192
|
return new runtime.JSONApiResponse(response, (jsonValue) => CreatePdfResponseDTOFromJSON(jsonValue));
|
|
185
193
|
}
|
|
@@ -194,10 +202,9 @@ export class ClientApi extends runtime.BaseAPI {
|
|
|
194
202
|
}
|
|
195
203
|
|
|
196
204
|
/**
|
|
197
|
-
*
|
|
198
|
-
* Get all API keys for the authenticated user
|
|
205
|
+
* Creates request options for apiKeysGet without sending the request
|
|
199
206
|
*/
|
|
200
|
-
async
|
|
207
|
+
async apiKeysGetRequestOpts(requestParameters: ApiKeysGetRequest): Promise<runtime.RequestOpts> {
|
|
201
208
|
const queryParameters: any = {};
|
|
202
209
|
|
|
203
210
|
if (requestParameters['page'] != null) {
|
|
@@ -213,12 +220,21 @@ export class ClientApi extends runtime.BaseAPI {
|
|
|
213
220
|
|
|
214
221
|
let urlPath = `/api-keys`;
|
|
215
222
|
|
|
216
|
-
|
|
223
|
+
return {
|
|
217
224
|
path: urlPath,
|
|
218
225
|
method: 'GET',
|
|
219
226
|
headers: headerParameters,
|
|
220
227
|
query: queryParameters,
|
|
221
|
-
}
|
|
228
|
+
};
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* Retrieve all API keys associated with the authenticated user\'s account with pagination.
|
|
233
|
+
* Get all API keys for the authenticated user
|
|
234
|
+
*/
|
|
235
|
+
async apiKeysGetRaw(requestParameters: ApiKeysGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAPIKeysResponseDTO>> {
|
|
236
|
+
const requestOptions = await this.apiKeysGetRequestOpts(requestParameters);
|
|
237
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
222
238
|
|
|
223
239
|
return new runtime.JSONApiResponse(response, (jsonValue) => GetAPIKeysResponseDTOFromJSON(jsonValue));
|
|
224
240
|
}
|
|
@@ -233,10 +249,9 @@ export class ClientApi extends runtime.BaseAPI {
|
|
|
233
249
|
}
|
|
234
250
|
|
|
235
251
|
/**
|
|
236
|
-
*
|
|
237
|
-
* Delete an API key
|
|
252
|
+
* Creates request options for apiKeysIdDelete without sending the request
|
|
238
253
|
*/
|
|
239
|
-
async
|
|
254
|
+
async apiKeysIdDeleteRequestOpts(requestParameters: ApiKeysIdDeleteRequest): Promise<runtime.RequestOpts> {
|
|
240
255
|
if (requestParameters['id'] == null) {
|
|
241
256
|
throw new runtime.RequiredError(
|
|
242
257
|
'id',
|
|
@@ -252,12 +267,21 @@ export class ClientApi extends runtime.BaseAPI {
|
|
|
252
267
|
let urlPath = `/api-keys/{id}`;
|
|
253
268
|
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
254
269
|
|
|
255
|
-
|
|
270
|
+
return {
|
|
256
271
|
path: urlPath,
|
|
257
272
|
method: 'DELETE',
|
|
258
273
|
headers: headerParameters,
|
|
259
274
|
query: queryParameters,
|
|
260
|
-
}
|
|
275
|
+
};
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* Delete a specific API key belonging to the authenticated user.
|
|
280
|
+
* Delete an API key
|
|
281
|
+
*/
|
|
282
|
+
async apiKeysIdDeleteRaw(requestParameters: ApiKeysIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
283
|
+
const requestOptions = await this.apiKeysIdDeleteRequestOpts(requestParameters);
|
|
284
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
261
285
|
|
|
262
286
|
return new runtime.VoidApiResponse(response);
|
|
263
287
|
}
|
|
@@ -271,10 +295,9 @@ export class ClientApi extends runtime.BaseAPI {
|
|
|
271
295
|
}
|
|
272
296
|
|
|
273
297
|
/**
|
|
274
|
-
*
|
|
275
|
-
* Create a new API key
|
|
298
|
+
* Creates request options for apiKeysPost without sending the request
|
|
276
299
|
*/
|
|
277
|
-
async
|
|
300
|
+
async apiKeysPostRequestOpts(requestParameters: ApiKeysPostRequest): Promise<runtime.RequestOpts> {
|
|
278
301
|
if (requestParameters['createAPIKeyRequestDTO'] == null) {
|
|
279
302
|
throw new runtime.RequiredError(
|
|
280
303
|
'createAPIKeyRequestDTO',
|
|
@@ -291,13 +314,22 @@ export class ClientApi extends runtime.BaseAPI {
|
|
|
291
314
|
|
|
292
315
|
let urlPath = `/api-keys`;
|
|
293
316
|
|
|
294
|
-
|
|
317
|
+
return {
|
|
295
318
|
path: urlPath,
|
|
296
319
|
method: 'POST',
|
|
297
320
|
headers: headerParameters,
|
|
298
321
|
query: queryParameters,
|
|
299
322
|
body: CreateAPIKeyRequestDTOToJSON(requestParameters['createAPIKeyRequestDTO']),
|
|
300
|
-
}
|
|
323
|
+
};
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
/**
|
|
327
|
+
* Create a new API key for accessing the RAG service.
|
|
328
|
+
* Create a new API key
|
|
329
|
+
*/
|
|
330
|
+
async apiKeysPostRaw(requestParameters: ApiKeysPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateAPIKeyResponseDTO>> {
|
|
331
|
+
const requestOptions = await this.apiKeysPostRequestOpts(requestParameters);
|
|
332
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
301
333
|
|
|
302
334
|
return new runtime.JSONApiResponse(response, (jsonValue) => CreateAPIKeyResponseDTOFromJSON(jsonValue));
|
|
303
335
|
}
|
|
@@ -312,10 +344,9 @@ export class ClientApi extends runtime.BaseAPI {
|
|
|
312
344
|
}
|
|
313
345
|
|
|
314
346
|
/**
|
|
315
|
-
*
|
|
316
|
-
* Creates a new account
|
|
347
|
+
* Creates request options for createAccount without sending the request
|
|
317
348
|
*/
|
|
318
|
-
async
|
|
349
|
+
async createAccountRequestOpts(requestParameters: CreateAccountRequest): Promise<runtime.RequestOpts> {
|
|
319
350
|
if (requestParameters['createAccountDTO'] == null) {
|
|
320
351
|
throw new runtime.RequiredError(
|
|
321
352
|
'createAccountDTO',
|
|
@@ -332,13 +363,22 @@ export class ClientApi extends runtime.BaseAPI {
|
|
|
332
363
|
|
|
333
364
|
let urlPath = `/accounts`;
|
|
334
365
|
|
|
335
|
-
|
|
366
|
+
return {
|
|
336
367
|
path: urlPath,
|
|
337
368
|
method: 'POST',
|
|
338
369
|
headers: headerParameters,
|
|
339
370
|
query: queryParameters,
|
|
340
371
|
body: CreateAccountDTOToJSON(requestParameters['createAccountDTO']),
|
|
341
|
-
}
|
|
372
|
+
};
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
/**
|
|
376
|
+
* Create an account
|
|
377
|
+
* Creates a new account
|
|
378
|
+
*/
|
|
379
|
+
async createAccountRaw(requestParameters: CreateAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountDTO>> {
|
|
380
|
+
const requestOptions = await this.createAccountRequestOpts(requestParameters);
|
|
381
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
342
382
|
|
|
343
383
|
return new runtime.JSONApiResponse(response, (jsonValue) => AccountDTOFromJSON(jsonValue));
|
|
344
384
|
}
|
|
@@ -353,10 +393,9 @@ export class ClientApi extends runtime.BaseAPI {
|
|
|
353
393
|
}
|
|
354
394
|
|
|
355
395
|
/**
|
|
356
|
-
*
|
|
357
|
-
* Create a new application
|
|
396
|
+
* Creates request options for createApplication without sending the request
|
|
358
397
|
*/
|
|
359
|
-
async
|
|
398
|
+
async createApplicationRequestOpts(requestParameters: CreateApplicationRequest): Promise<runtime.RequestOpts> {
|
|
360
399
|
if (requestParameters['createApplicationDTO'] == null) {
|
|
361
400
|
throw new runtime.RequiredError(
|
|
362
401
|
'createApplicationDTO',
|
|
@@ -373,13 +412,22 @@ export class ClientApi extends runtime.BaseAPI {
|
|
|
373
412
|
|
|
374
413
|
let urlPath = `/applications`;
|
|
375
414
|
|
|
376
|
-
|
|
415
|
+
return {
|
|
377
416
|
path: urlPath,
|
|
378
417
|
method: 'POST',
|
|
379
418
|
headers: headerParameters,
|
|
380
419
|
query: queryParameters,
|
|
381
420
|
body: CreateApplicationDTOToJSON(requestParameters['createApplicationDTO']),
|
|
382
|
-
}
|
|
421
|
+
};
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
/**
|
|
425
|
+
* Create a new application for the authenticated account
|
|
426
|
+
* Create a new application
|
|
427
|
+
*/
|
|
428
|
+
async createApplicationRaw(requestParameters: CreateApplicationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplicationDTO>> {
|
|
429
|
+
const requestOptions = await this.createApplicationRequestOpts(requestParameters);
|
|
430
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
383
431
|
|
|
384
432
|
return new runtime.JSONApiResponse(response, (jsonValue) => ApplicationDTOFromJSON(jsonValue));
|
|
385
433
|
}
|
|
@@ -394,10 +442,9 @@ export class ClientApi extends runtime.BaseAPI {
|
|
|
394
442
|
}
|
|
395
443
|
|
|
396
444
|
/**
|
|
397
|
-
*
|
|
398
|
-
* Create PDF files by template
|
|
445
|
+
* Creates request options for createPdfByTemplate without sending the request
|
|
399
446
|
*/
|
|
400
|
-
async
|
|
447
|
+
async createPdfByTemplateRequestOpts(requestParameters: CreatePdfByTemplateRequest): Promise<runtime.RequestOpts> {
|
|
401
448
|
if (requestParameters['applicationId'] == null) {
|
|
402
449
|
throw new runtime.RequiredError(
|
|
403
450
|
'applicationId',
|
|
@@ -422,13 +469,22 @@ export class ClientApi extends runtime.BaseAPI {
|
|
|
422
469
|
let urlPath = `/applications/{applicationId}/pdf-files`;
|
|
423
470
|
urlPath = urlPath.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters['applicationId'])));
|
|
424
471
|
|
|
425
|
-
|
|
472
|
+
return {
|
|
426
473
|
path: urlPath,
|
|
427
474
|
method: 'POST',
|
|
428
475
|
headers: headerParameters,
|
|
429
476
|
query: queryParameters,
|
|
430
477
|
body: CreatePdfRequestDTOToJSON(requestParameters['createPdfRequestDTO']),
|
|
431
|
-
}
|
|
478
|
+
};
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
/**
|
|
482
|
+
* Create PDF files by template
|
|
483
|
+
* Create PDF files by template
|
|
484
|
+
*/
|
|
485
|
+
async createPdfByTemplateRaw(requestParameters: CreatePdfByTemplateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreatePdfResponseDTO>> {
|
|
486
|
+
const requestOptions = await this.createPdfByTemplateRequestOpts(requestParameters);
|
|
487
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
432
488
|
|
|
433
489
|
return new runtime.JSONApiResponse(response, (jsonValue) => CreatePdfResponseDTOFromJSON(jsonValue));
|
|
434
490
|
}
|
|
@@ -443,10 +499,9 @@ export class ClientApi extends runtime.BaseAPI {
|
|
|
443
499
|
}
|
|
444
500
|
|
|
445
501
|
/**
|
|
446
|
-
*
|
|
447
|
-
* Delete an application
|
|
502
|
+
* Creates request options for deleteApplication without sending the request
|
|
448
503
|
*/
|
|
449
|
-
async
|
|
504
|
+
async deleteApplicationRequestOpts(requestParameters: DeleteApplicationRequest): Promise<runtime.RequestOpts> {
|
|
450
505
|
if (requestParameters['applicationId'] == null) {
|
|
451
506
|
throw new runtime.RequiredError(
|
|
452
507
|
'applicationId',
|
|
@@ -462,12 +517,21 @@ export class ClientApi extends runtime.BaseAPI {
|
|
|
462
517
|
let urlPath = `/applications/{applicationId}`;
|
|
463
518
|
urlPath = urlPath.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters['applicationId'])));
|
|
464
519
|
|
|
465
|
-
|
|
520
|
+
return {
|
|
466
521
|
path: urlPath,
|
|
467
522
|
method: 'DELETE',
|
|
468
523
|
headers: headerParameters,
|
|
469
524
|
query: queryParameters,
|
|
470
|
-
}
|
|
525
|
+
};
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
/**
|
|
529
|
+
* Delete an application belonging to the authenticated account
|
|
530
|
+
* Delete an application
|
|
531
|
+
*/
|
|
532
|
+
async deleteApplicationRaw(requestParameters: DeleteApplicationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
533
|
+
const requestOptions = await this.deleteApplicationRequestOpts(requestParameters);
|
|
534
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
471
535
|
|
|
472
536
|
return new runtime.VoidApiResponse(response);
|
|
473
537
|
}
|
|
@@ -481,10 +545,9 @@ export class ClientApi extends runtime.BaseAPI {
|
|
|
481
545
|
}
|
|
482
546
|
|
|
483
547
|
/**
|
|
484
|
-
*
|
|
485
|
-
* Delete a pdf template
|
|
548
|
+
* Creates request options for deletePDFTemplate without sending the request
|
|
486
549
|
*/
|
|
487
|
-
async
|
|
550
|
+
async deletePDFTemplateRequestOpts(requestParameters: DeletePDFTemplateRequest): Promise<runtime.RequestOpts> {
|
|
488
551
|
if (requestParameters['id'] == null) {
|
|
489
552
|
throw new runtime.RequiredError(
|
|
490
553
|
'id',
|
|
@@ -508,12 +571,21 @@ export class ClientApi extends runtime.BaseAPI {
|
|
|
508
571
|
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
509
572
|
urlPath = urlPath.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters['applicationId'])));
|
|
510
573
|
|
|
511
|
-
|
|
574
|
+
return {
|
|
512
575
|
path: urlPath,
|
|
513
576
|
method: 'DELETE',
|
|
514
577
|
headers: headerParameters,
|
|
515
578
|
query: queryParameters,
|
|
516
|
-
}
|
|
579
|
+
};
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
/**
|
|
583
|
+
* Delete a pdf template
|
|
584
|
+
* Delete a pdf template
|
|
585
|
+
*/
|
|
586
|
+
async deletePDFTemplateRaw(requestParameters: DeletePDFTemplateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
587
|
+
const requestOptions = await this.deletePDFTemplateRequestOpts(requestParameters);
|
|
588
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
517
589
|
|
|
518
590
|
return new runtime.VoidApiResponse(response);
|
|
519
591
|
}
|
|
@@ -527,10 +599,9 @@ export class ClientApi extends runtime.BaseAPI {
|
|
|
527
599
|
}
|
|
528
600
|
|
|
529
601
|
/**
|
|
530
|
-
*
|
|
531
|
-
* Get an application by applicationId
|
|
602
|
+
* Creates request options for getApplicationByID without sending the request
|
|
532
603
|
*/
|
|
533
|
-
async
|
|
604
|
+
async getApplicationByIDRequestOpts(requestParameters: GetApplicationByIDRequest): Promise<runtime.RequestOpts> {
|
|
534
605
|
if (requestParameters['applicationId'] == null) {
|
|
535
606
|
throw new runtime.RequiredError(
|
|
536
607
|
'applicationId',
|
|
@@ -546,12 +617,21 @@ export class ClientApi extends runtime.BaseAPI {
|
|
|
546
617
|
let urlPath = `/applications/{applicationId}`;
|
|
547
618
|
urlPath = urlPath.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters['applicationId'])));
|
|
548
619
|
|
|
549
|
-
|
|
620
|
+
return {
|
|
550
621
|
path: urlPath,
|
|
551
622
|
method: 'GET',
|
|
552
623
|
headers: headerParameters,
|
|
553
624
|
query: queryParameters,
|
|
554
|
-
}
|
|
625
|
+
};
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
/**
|
|
629
|
+
* Get a specific application belonging to the authenticated account
|
|
630
|
+
* Get an application by applicationId
|
|
631
|
+
*/
|
|
632
|
+
async getApplicationByIDRaw(requestParameters: GetApplicationByIDRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplicationDTO>> {
|
|
633
|
+
const requestOptions = await this.getApplicationByIDRequestOpts(requestParameters);
|
|
634
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
555
635
|
|
|
556
636
|
return new runtime.JSONApiResponse(response, (jsonValue) => ApplicationDTOFromJSON(jsonValue));
|
|
557
637
|
}
|
|
@@ -566,10 +646,9 @@ export class ClientApi extends runtime.BaseAPI {
|
|
|
566
646
|
}
|
|
567
647
|
|
|
568
648
|
/**
|
|
569
|
-
*
|
|
570
|
-
* Get all applications for the account
|
|
649
|
+
* Creates request options for getApplications without sending the request
|
|
571
650
|
*/
|
|
572
|
-
async
|
|
651
|
+
async getApplicationsRequestOpts(requestParameters: GetApplicationsRequest): Promise<runtime.RequestOpts> {
|
|
573
652
|
const queryParameters: any = {};
|
|
574
653
|
|
|
575
654
|
if (requestParameters['page'] != null) {
|
|
@@ -585,12 +664,21 @@ export class ClientApi extends runtime.BaseAPI {
|
|
|
585
664
|
|
|
586
665
|
let urlPath = `/applications`;
|
|
587
666
|
|
|
588
|
-
|
|
667
|
+
return {
|
|
589
668
|
path: urlPath,
|
|
590
669
|
method: 'GET',
|
|
591
670
|
headers: headerParameters,
|
|
592
671
|
query: queryParameters,
|
|
593
|
-
}
|
|
672
|
+
};
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
/**
|
|
676
|
+
* Get all applications belonging to the authenticated account
|
|
677
|
+
* Get all applications for the account
|
|
678
|
+
*/
|
|
679
|
+
async getApplicationsRaw(requestParameters: GetApplicationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedApplicationsDTO>> {
|
|
680
|
+
const requestOptions = await this.getApplicationsRequestOpts(requestParameters);
|
|
681
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
594
682
|
|
|
595
683
|
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedApplicationsDTOFromJSON(jsonValue));
|
|
596
684
|
}
|
|
@@ -605,10 +693,9 @@ export class ClientApi extends runtime.BaseAPI {
|
|
|
605
693
|
}
|
|
606
694
|
|
|
607
695
|
/**
|
|
608
|
-
*
|
|
609
|
-
* Get template by id
|
|
696
|
+
* Creates request options for getPdfTemplate without sending the request
|
|
610
697
|
*/
|
|
611
|
-
async
|
|
698
|
+
async getPdfTemplateRequestOpts(requestParameters: GetPdfTemplateRequest): Promise<runtime.RequestOpts> {
|
|
612
699
|
if (requestParameters['id'] == null) {
|
|
613
700
|
throw new runtime.RequiredError(
|
|
614
701
|
'id',
|
|
@@ -632,12 +719,21 @@ export class ClientApi extends runtime.BaseAPI {
|
|
|
632
719
|
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
633
720
|
urlPath = urlPath.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters['applicationId'])));
|
|
634
721
|
|
|
635
|
-
|
|
722
|
+
return {
|
|
636
723
|
path: urlPath,
|
|
637
724
|
method: 'GET',
|
|
638
725
|
headers: headerParameters,
|
|
639
726
|
query: queryParameters,
|
|
640
|
-
}
|
|
727
|
+
};
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
/**
|
|
731
|
+
* Get template by id
|
|
732
|
+
* Get template by id
|
|
733
|
+
*/
|
|
734
|
+
async getPdfTemplateRaw(requestParameters: GetPdfTemplateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>> {
|
|
735
|
+
const requestOptions = await this.getPdfTemplateRequestOpts(requestParameters);
|
|
736
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
641
737
|
|
|
642
738
|
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
643
739
|
return new runtime.JSONApiResponse<string>(response);
|
|
@@ -656,10 +752,9 @@ export class ClientApi extends runtime.BaseAPI {
|
|
|
656
752
|
}
|
|
657
753
|
|
|
658
754
|
/**
|
|
659
|
-
*
|
|
660
|
-
* Get all templates
|
|
755
|
+
* Creates request options for getPdfTemplates without sending the request
|
|
661
756
|
*/
|
|
662
|
-
async
|
|
757
|
+
async getPdfTemplatesRequestOpts(requestParameters: GetPdfTemplatesRequest): Promise<runtime.RequestOpts> {
|
|
663
758
|
if (requestParameters['applicationId'] == null) {
|
|
664
759
|
throw new runtime.RequiredError(
|
|
665
760
|
'applicationId',
|
|
@@ -683,12 +778,21 @@ export class ClientApi extends runtime.BaseAPI {
|
|
|
683
778
|
let urlPath = `/applications/{applicationId}/pdf-templates`;
|
|
684
779
|
urlPath = urlPath.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters['applicationId'])));
|
|
685
780
|
|
|
686
|
-
|
|
781
|
+
return {
|
|
687
782
|
path: urlPath,
|
|
688
783
|
method: 'GET',
|
|
689
784
|
headers: headerParameters,
|
|
690
785
|
query: queryParameters,
|
|
691
|
-
}
|
|
786
|
+
};
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
/**
|
|
790
|
+
* Get all templates
|
|
791
|
+
* Get all templates
|
|
792
|
+
*/
|
|
793
|
+
async getPdfTemplatesRaw(requestParameters: GetPdfTemplatesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedPdfTemplateDTO>> {
|
|
794
|
+
const requestOptions = await this.getPdfTemplatesRequestOpts(requestParameters);
|
|
795
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
692
796
|
|
|
693
797
|
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedPdfTemplateDTOFromJSON(jsonValue));
|
|
694
798
|
}
|
|
@@ -703,10 +807,9 @@ export class ClientApi extends runtime.BaseAPI {
|
|
|
703
807
|
}
|
|
704
808
|
|
|
705
809
|
/**
|
|
706
|
-
*
|
|
707
|
-
* Update an application
|
|
810
|
+
* Creates request options for updateApplication without sending the request
|
|
708
811
|
*/
|
|
709
|
-
async
|
|
812
|
+
async updateApplicationRequestOpts(requestParameters: UpdateApplicationRequest): Promise<runtime.RequestOpts> {
|
|
710
813
|
if (requestParameters['applicationId'] == null) {
|
|
711
814
|
throw new runtime.RequiredError(
|
|
712
815
|
'applicationId',
|
|
@@ -731,13 +834,22 @@ export class ClientApi extends runtime.BaseAPI {
|
|
|
731
834
|
let urlPath = `/applications/{applicationId}`;
|
|
732
835
|
urlPath = urlPath.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters['applicationId'])));
|
|
733
836
|
|
|
734
|
-
|
|
837
|
+
return {
|
|
735
838
|
path: urlPath,
|
|
736
839
|
method: 'PATCH',
|
|
737
840
|
headers: headerParameters,
|
|
738
841
|
query: queryParameters,
|
|
739
842
|
body: UpdateApplicationDTOToJSON(requestParameters['updateApplicationDTO']),
|
|
740
|
-
}
|
|
843
|
+
};
|
|
844
|
+
}
|
|
845
|
+
|
|
846
|
+
/**
|
|
847
|
+
* Update an application belonging to the authenticated account
|
|
848
|
+
* Update an application
|
|
849
|
+
*/
|
|
850
|
+
async updateApplicationRaw(requestParameters: UpdateApplicationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplicationDTO>> {
|
|
851
|
+
const requestOptions = await this.updateApplicationRequestOpts(requestParameters);
|
|
852
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
741
853
|
|
|
742
854
|
return new runtime.JSONApiResponse(response, (jsonValue) => ApplicationDTOFromJSON(jsonValue));
|
|
743
855
|
}
|
|
@@ -752,10 +864,9 @@ export class ClientApi extends runtime.BaseAPI {
|
|
|
752
864
|
}
|
|
753
865
|
|
|
754
866
|
/**
|
|
755
|
-
*
|
|
756
|
-
* Update template
|
|
867
|
+
* Creates request options for updatePdfTemplate without sending the request
|
|
757
868
|
*/
|
|
758
|
-
async
|
|
869
|
+
async updatePdfTemplateRequestOpts(requestParameters: UpdatePdfTemplateRequest): Promise<runtime.RequestOpts> {
|
|
759
870
|
if (requestParameters['applicationId'] == null) {
|
|
760
871
|
throw new runtime.RequiredError(
|
|
761
872
|
'applicationId',
|
|
@@ -817,13 +928,22 @@ export class ClientApi extends runtime.BaseAPI {
|
|
|
817
928
|
urlPath = urlPath.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters['applicationId'])));
|
|
818
929
|
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
819
930
|
|
|
820
|
-
|
|
931
|
+
return {
|
|
821
932
|
path: urlPath,
|
|
822
933
|
method: 'PATCH',
|
|
823
934
|
headers: headerParameters,
|
|
824
935
|
query: queryParameters,
|
|
825
936
|
body: formParams,
|
|
826
|
-
}
|
|
937
|
+
};
|
|
938
|
+
}
|
|
939
|
+
|
|
940
|
+
/**
|
|
941
|
+
* Update template
|
|
942
|
+
* Update template
|
|
943
|
+
*/
|
|
944
|
+
async updatePdfTemplateRaw(requestParameters: UpdatePdfTemplateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PdfTemplateDTO>> {
|
|
945
|
+
const requestOptions = await this.updatePdfTemplateRequestOpts(requestParameters);
|
|
946
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
827
947
|
|
|
828
948
|
return new runtime.JSONApiResponse(response, (jsonValue) => PdfTemplateDTOFromJSON(jsonValue));
|
|
829
949
|
}
|
|
@@ -838,10 +958,9 @@ export class ClientApi extends runtime.BaseAPI {
|
|
|
838
958
|
}
|
|
839
959
|
|
|
840
960
|
/**
|
|
841
|
-
*
|
|
842
|
-
* Upload template
|
|
961
|
+
* Creates request options for uploadPdfTemplate without sending the request
|
|
843
962
|
*/
|
|
844
|
-
async
|
|
963
|
+
async uploadPdfTemplateRequestOpts(requestParameters: UploadPdfTemplateRequest): Promise<runtime.RequestOpts> {
|
|
845
964
|
if (requestParameters['applicationId'] == null) {
|
|
846
965
|
throw new runtime.RequiredError(
|
|
847
966
|
'applicationId',
|
|
@@ -895,13 +1014,22 @@ export class ClientApi extends runtime.BaseAPI {
|
|
|
895
1014
|
let urlPath = `/applications/{applicationId}/pdf-templates`;
|
|
896
1015
|
urlPath = urlPath.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters['applicationId'])));
|
|
897
1016
|
|
|
898
|
-
|
|
1017
|
+
return {
|
|
899
1018
|
path: urlPath,
|
|
900
1019
|
method: 'POST',
|
|
901
1020
|
headers: headerParameters,
|
|
902
1021
|
query: queryParameters,
|
|
903
1022
|
body: formParams,
|
|
904
|
-
}
|
|
1023
|
+
};
|
|
1024
|
+
}
|
|
1025
|
+
|
|
1026
|
+
/**
|
|
1027
|
+
* Upload template
|
|
1028
|
+
* Upload template
|
|
1029
|
+
*/
|
|
1030
|
+
async uploadPdfTemplateRaw(requestParameters: UploadPdfTemplateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PdfTemplateDTO>> {
|
|
1031
|
+
const requestOptions = await this.uploadPdfTemplateRequestOpts(requestParameters);
|
|
1032
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
905
1033
|
|
|
906
1034
|
return new runtime.JSONApiResponse(response, (jsonValue) => PdfTemplateDTOFromJSON(jsonValue));
|
|
907
1035
|
}
|
package/package.json
CHANGED
package/runtime.js
CHANGED
|
@@ -219,6 +219,11 @@ class ResponseError extends Error {
|
|
|
219
219
|
super(msg);
|
|
220
220
|
this.response = response;
|
|
221
221
|
this.name = "ResponseError";
|
|
222
|
+
// restore prototype chain
|
|
223
|
+
const actualProto = new.target.prototype;
|
|
224
|
+
if (Object.setPrototypeOf) {
|
|
225
|
+
Object.setPrototypeOf(this, actualProto);
|
|
226
|
+
}
|
|
222
227
|
}
|
|
223
228
|
}
|
|
224
229
|
exports.ResponseError = ResponseError;
|
|
@@ -227,6 +232,11 @@ class FetchError extends Error {
|
|
|
227
232
|
super(msg);
|
|
228
233
|
this.cause = cause;
|
|
229
234
|
this.name = "FetchError";
|
|
235
|
+
// restore prototype chain
|
|
236
|
+
const actualProto = new.target.prototype;
|
|
237
|
+
if (Object.setPrototypeOf) {
|
|
238
|
+
Object.setPrototypeOf(this, actualProto);
|
|
239
|
+
}
|
|
230
240
|
}
|
|
231
241
|
}
|
|
232
242
|
exports.FetchError = FetchError;
|
|
@@ -235,6 +245,11 @@ class RequiredError extends Error {
|
|
|
235
245
|
super(msg);
|
|
236
246
|
this.field = field;
|
|
237
247
|
this.name = "RequiredError";
|
|
248
|
+
// restore prototype chain
|
|
249
|
+
const actualProto = new.target.prototype;
|
|
250
|
+
if (Object.setPrototypeOf) {
|
|
251
|
+
Object.setPrototypeOf(this, actualProto);
|
|
252
|
+
}
|
|
238
253
|
}
|
|
239
254
|
}
|
|
240
255
|
exports.RequiredError = RequiredError;
|