tuix-pdf-service-client 0.3.0 → 0.5.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 {
@@ -168,9 +197,13 @@ export class ClientApi extends runtime.BaseAPI {
168
197
 
169
198
  headerParameters['Content-Type'] = 'application/json';
170
199
 
200
+ if (this.configuration && this.configuration.apiKey) {
201
+ headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // api_key authentication
202
+ }
203
+
171
204
 
172
205
  let urlPath = `/api/applications/{applicationId}/pdf-files`;
173
- urlPath = urlPath.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters['applicationId'])));
206
+ urlPath = urlPath.replace('{applicationId}', encodeURIComponent(String(requestParameters['applicationId'])));
174
207
 
175
208
  return {
176
209
  path: urlPath,
@@ -217,6 +250,10 @@ export class ClientApi extends runtime.BaseAPI {
217
250
 
218
251
  const headerParameters: runtime.HTTPHeaders = {};
219
252
 
253
+ if (this.configuration && this.configuration.apiKey) {
254
+ headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // auth0JWT authentication
255
+ }
256
+
220
257
 
221
258
  let urlPath = `/api-keys`;
222
259
 
@@ -263,9 +300,13 @@ export class ClientApi extends runtime.BaseAPI {
263
300
 
264
301
  const headerParameters: runtime.HTTPHeaders = {};
265
302
 
303
+ if (this.configuration && this.configuration.apiKey) {
304
+ headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // auth0JWT authentication
305
+ }
306
+
266
307
 
267
308
  let urlPath = `/api-keys/{id}`;
268
- urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
309
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
269
310
 
270
311
  return {
271
312
  path: urlPath,
@@ -311,6 +352,10 @@ export class ClientApi extends runtime.BaseAPI {
311
352
 
312
353
  headerParameters['Content-Type'] = 'application/json';
313
354
 
355
+ if (this.configuration && this.configuration.apiKey) {
356
+ headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // auth0JWT authentication
357
+ }
358
+
314
359
 
315
360
  let urlPath = `/api-keys`;
316
361
 
@@ -360,6 +405,10 @@ export class ClientApi extends runtime.BaseAPI {
360
405
 
361
406
  headerParameters['Content-Type'] = 'application/json';
362
407
 
408
+ if (this.configuration && this.configuration.apiKey) {
409
+ headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // auth0JWT authentication
410
+ }
411
+
363
412
 
364
413
  let urlPath = `/accounts`;
365
414
 
@@ -409,6 +458,10 @@ export class ClientApi extends runtime.BaseAPI {
409
458
 
410
459
  headerParameters['Content-Type'] = 'application/json';
411
460
 
461
+ if (this.configuration && this.configuration.apiKey) {
462
+ headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // auth0JWT authentication
463
+ }
464
+
412
465
 
413
466
  let urlPath = `/applications`;
414
467
 
@@ -465,9 +518,13 @@ export class ClientApi extends runtime.BaseAPI {
465
518
 
466
519
  headerParameters['Content-Type'] = 'application/json';
467
520
 
521
+ if (this.configuration && this.configuration.apiKey) {
522
+ headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // auth0JWT authentication
523
+ }
524
+
468
525
 
469
526
  let urlPath = `/applications/{applicationId}/pdf-files`;
470
- urlPath = urlPath.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters['applicationId'])));
527
+ urlPath = urlPath.replace('{applicationId}', encodeURIComponent(String(requestParameters['applicationId'])));
471
528
 
472
529
  return {
473
530
  path: urlPath,
@@ -513,9 +570,13 @@ export class ClientApi extends runtime.BaseAPI {
513
570
 
514
571
  const headerParameters: runtime.HTTPHeaders = {};
515
572
 
573
+ if (this.configuration && this.configuration.apiKey) {
574
+ headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // auth0JWT authentication
575
+ }
576
+
516
577
 
517
578
  let urlPath = `/applications/{applicationId}`;
518
- urlPath = urlPath.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters['applicationId'])));
579
+ urlPath = urlPath.replace('{applicationId}', encodeURIComponent(String(requestParameters['applicationId'])));
519
580
 
520
581
  return {
521
582
  path: urlPath,
@@ -566,10 +627,14 @@ export class ClientApi extends runtime.BaseAPI {
566
627
 
567
628
  const headerParameters: runtime.HTTPHeaders = {};
568
629
 
630
+ if (this.configuration && this.configuration.apiKey) {
631
+ headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // auth0JWT authentication
632
+ }
633
+
569
634
 
570
635
  let urlPath = `/applications/{applicationId}/pdf-templates/{id}`;
571
- urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
572
- urlPath = urlPath.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters['applicationId'])));
636
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
637
+ urlPath = urlPath.replace('{applicationId}', encodeURIComponent(String(requestParameters['applicationId'])));
573
638
 
574
639
  return {
575
640
  path: urlPath,
@@ -613,9 +678,13 @@ export class ClientApi extends runtime.BaseAPI {
613
678
 
614
679
  const headerParameters: runtime.HTTPHeaders = {};
615
680
 
681
+ if (this.configuration && this.configuration.apiKey) {
682
+ headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // auth0JWT authentication
683
+ }
684
+
616
685
 
617
686
  let urlPath = `/applications/{applicationId}`;
618
- urlPath = urlPath.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters['applicationId'])));
687
+ urlPath = urlPath.replace('{applicationId}', encodeURIComponent(String(requestParameters['applicationId'])));
619
688
 
620
689
  return {
621
690
  path: urlPath,
@@ -659,8 +728,24 @@ export class ClientApi extends runtime.BaseAPI {
659
728
  queryParameters['pageSize'] = requestParameters['pageSize'];
660
729
  }
661
730
 
731
+ if (requestParameters['search'] != null) {
732
+ queryParameters['search'] = requestParameters['search'];
733
+ }
734
+
735
+ if (requestParameters['sortBy'] != null) {
736
+ queryParameters['sortBy'] = requestParameters['sortBy'];
737
+ }
738
+
739
+ if (requestParameters['sortDirection'] != null) {
740
+ queryParameters['sortDirection'] = requestParameters['sortDirection'];
741
+ }
742
+
662
743
  const headerParameters: runtime.HTTPHeaders = {};
663
744
 
745
+ if (this.configuration && this.configuration.apiKey) {
746
+ headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // auth0JWT authentication
747
+ }
748
+
664
749
 
665
750
  let urlPath = `/applications`;
666
751
 
@@ -714,10 +799,14 @@ export class ClientApi extends runtime.BaseAPI {
714
799
 
715
800
  const headerParameters: runtime.HTTPHeaders = {};
716
801
 
802
+ if (this.configuration && this.configuration.apiKey) {
803
+ headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // auth0JWT authentication
804
+ }
805
+
717
806
 
718
807
  let urlPath = `/applications/{applicationId}/pdf-templates/{id}`;
719
- urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
720
- urlPath = urlPath.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters['applicationId'])));
808
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
809
+ urlPath = urlPath.replace('{applicationId}', encodeURIComponent(String(requestParameters['applicationId'])));
721
810
 
722
811
  return {
723
812
  path: urlPath,
@@ -772,11 +861,27 @@ export class ClientApi extends runtime.BaseAPI {
772
861
  queryParameters['pageSize'] = requestParameters['pageSize'];
773
862
  }
774
863
 
864
+ if (requestParameters['search'] != null) {
865
+ queryParameters['search'] = requestParameters['search'];
866
+ }
867
+
868
+ if (requestParameters['sortBy'] != null) {
869
+ queryParameters['sortBy'] = requestParameters['sortBy'];
870
+ }
871
+
872
+ if (requestParameters['sortDirection'] != null) {
873
+ queryParameters['sortDirection'] = requestParameters['sortDirection'];
874
+ }
875
+
775
876
  const headerParameters: runtime.HTTPHeaders = {};
776
877
 
878
+ if (this.configuration && this.configuration.apiKey) {
879
+ headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // auth0JWT authentication
880
+ }
881
+
777
882
 
778
883
  let urlPath = `/applications/{applicationId}/pdf-templates`;
779
- urlPath = urlPath.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters['applicationId'])));
884
+ urlPath = urlPath.replace('{applicationId}', encodeURIComponent(String(requestParameters['applicationId'])));
780
885
 
781
886
  return {
782
887
  path: urlPath,
@@ -830,9 +935,13 @@ export class ClientApi extends runtime.BaseAPI {
830
935
 
831
936
  headerParameters['Content-Type'] = 'application/json';
832
937
 
938
+ if (this.configuration && this.configuration.apiKey) {
939
+ headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // auth0JWT authentication
940
+ }
941
+
833
942
 
834
943
  let urlPath = `/applications/{applicationId}`;
835
- urlPath = urlPath.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters['applicationId'])));
944
+ urlPath = urlPath.replace('{applicationId}', encodeURIComponent(String(requestParameters['applicationId'])));
836
945
 
837
946
  return {
838
947
  path: urlPath,
@@ -899,6 +1008,10 @@ export class ClientApi extends runtime.BaseAPI {
899
1008
 
900
1009
  const headerParameters: runtime.HTTPHeaders = {};
901
1010
 
1011
+ if (this.configuration && this.configuration.apiKey) {
1012
+ headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // auth0JWT authentication
1013
+ }
1014
+
902
1015
  const consumes: runtime.Consume[] = [
903
1016
  { contentType: 'multipart/form-data' },
904
1017
  ];
@@ -925,8 +1038,8 @@ export class ClientApi extends runtime.BaseAPI {
925
1038
 
926
1039
 
927
1040
  let urlPath = `/applications/{applicationId}/pdf-templates/{id}`;
928
- urlPath = urlPath.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters['applicationId'])));
929
- urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
1041
+ urlPath = urlPath.replace('{applicationId}', encodeURIComponent(String(requestParameters['applicationId'])));
1042
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
930
1043
 
931
1044
  return {
932
1045
  path: urlPath,
@@ -986,6 +1099,10 @@ export class ClientApi extends runtime.BaseAPI {
986
1099
 
987
1100
  const headerParameters: runtime.HTTPHeaders = {};
988
1101
 
1102
+ if (this.configuration && this.configuration.apiKey) {
1103
+ headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // auth0JWT authentication
1104
+ }
1105
+
989
1106
  const consumes: runtime.Consume[] = [
990
1107
  { contentType: 'multipart/form-data' },
991
1108
  ];
@@ -1012,7 +1129,7 @@ export class ClientApi extends runtime.BaseAPI {
1012
1129
 
1013
1130
 
1014
1131
  let urlPath = `/applications/{applicationId}/pdf-templates`;
1015
- urlPath = urlPath.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters['applicationId'])));
1132
+ urlPath = urlPath.replace('{applicationId}', encodeURIComponent(String(requestParameters['applicationId'])));
1016
1133
 
1017
1134
  return {
1018
1135
  path: urlPath,
@@ -1044,3 +1161,38 @@ export class ClientApi extends runtime.BaseAPI {
1044
1161
  }
1045
1162
 
1046
1163
  }
1164
+
1165
+ /**
1166
+ * @export
1167
+ */
1168
+ export const GetApplicationsSortByEnum = {
1169
+ Name: 'name',
1170
+ CreatedAt: 'createdAt',
1171
+ UpdatedAt: 'updatedAt'
1172
+ } as const;
1173
+ export type GetApplicationsSortByEnum = typeof GetApplicationsSortByEnum[keyof typeof GetApplicationsSortByEnum];
1174
+ /**
1175
+ * @export
1176
+ */
1177
+ export const GetApplicationsSortDirectionEnum = {
1178
+ Asc: 'asc',
1179
+ Desc: 'desc'
1180
+ } as const;
1181
+ export type GetApplicationsSortDirectionEnum = typeof GetApplicationsSortDirectionEnum[keyof typeof GetApplicationsSortDirectionEnum];
1182
+ /**
1183
+ * @export
1184
+ */
1185
+ export const GetPdfTemplatesSortByEnum = {
1186
+ Name: 'name',
1187
+ UpdatedAt: 'updatedAt',
1188
+ CreatedAt: 'createdAt'
1189
+ } as const;
1190
+ export type GetPdfTemplatesSortByEnum = typeof GetPdfTemplatesSortByEnum[keyof typeof GetPdfTemplatesSortByEnum];
1191
+ /**
1192
+ * @export
1193
+ */
1194
+ export const GetPdfTemplatesSortDirectionEnum = {
1195
+ Asc: 'asc',
1196
+ Desc: 'desc'
1197
+ } as const;
1198
+ export type GetPdfTemplatesSortDirectionEnum = typeof GetPdfTemplatesSortDirectionEnum[keyof typeof GetPdfTemplatesSortDirectionEnum];