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/.openapi-generator/VERSION +1 -1
- package/apis/ClientApi.js +286 -114
- package/apis/ClientApi.js.map +1 -1
- package/apis/ClientApi.ts +328 -112
- package/docs/ClientApi.md +22 -2
- package/package.json +1 -1
- package/runtime.js +23 -2
- package/runtime.js.map +1 -1
- package/runtime.ts +25 -3
package/apis/ClientApi.js
CHANGED
|
@@ -46,18 +46,29 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
46
46
|
};
|
|
47
47
|
})();
|
|
48
48
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49
|
-
exports.ClientApi = void 0;
|
|
49
|
+
exports.GetPdfTemplatesSortDirectionEnum = exports.GetPdfTemplatesSortByEnum = exports.GetApplicationsSortDirectionEnum = exports.GetApplicationsSortByEnum = exports.ClientApi = void 0;
|
|
50
50
|
const runtime = __importStar(require("../runtime"));
|
|
51
|
-
const
|
|
51
|
+
const AccountDTO_1 = require("../models/AccountDTO");
|
|
52
|
+
const ApplicationDTO_1 = require("../models/ApplicationDTO");
|
|
53
|
+
const CreateAPIKeyRequestDTO_1 = require("../models/CreateAPIKeyRequestDTO");
|
|
54
|
+
const CreateAPIKeyResponseDTO_1 = require("../models/CreateAPIKeyResponseDTO");
|
|
55
|
+
const CreateAccountDTO_1 = require("../models/CreateAccountDTO");
|
|
56
|
+
const CreateApplicationDTO_1 = require("../models/CreateApplicationDTO");
|
|
57
|
+
const CreatePdfRequestDTO_1 = require("../models/CreatePdfRequestDTO");
|
|
58
|
+
const CreatePdfResponseDTO_1 = require("../models/CreatePdfResponseDTO");
|
|
59
|
+
const GetAPIKeysResponseDTO_1 = require("../models/GetAPIKeysResponseDTO");
|
|
60
|
+
const PaginatedApplicationsDTO_1 = require("../models/PaginatedApplicationsDTO");
|
|
61
|
+
const PaginatedPdfTemplateDTO_1 = require("../models/PaginatedPdfTemplateDTO");
|
|
62
|
+
const PdfTemplateDTO_1 = require("../models/PdfTemplateDTO");
|
|
63
|
+
const UpdateApplicationDTO_1 = require("../models/UpdateApplicationDTO");
|
|
52
64
|
/**
|
|
53
65
|
*
|
|
54
66
|
*/
|
|
55
67
|
class ClientApi extends runtime.BaseAPI {
|
|
56
68
|
/**
|
|
57
|
-
*
|
|
58
|
-
* Create PDF files by template
|
|
69
|
+
* Creates request options for aPICreatePdfByTemplate without sending the request
|
|
59
70
|
*/
|
|
60
|
-
async
|
|
71
|
+
async aPICreatePdfByTemplateRequestOpts(requestParameters) {
|
|
61
72
|
if (requestParameters['applicationId'] == null) {
|
|
62
73
|
throw new runtime.RequiredError('applicationId', 'Required parameter "applicationId" was null or undefined when calling aPICreatePdfByTemplate().');
|
|
63
74
|
}
|
|
@@ -68,15 +79,23 @@ class ClientApi extends runtime.BaseAPI {
|
|
|
68
79
|
const headerParameters = {};
|
|
69
80
|
headerParameters['Content-Type'] = 'application/json';
|
|
70
81
|
let urlPath = `/api/applications/{applicationId}/pdf-files`;
|
|
71
|
-
urlPath = urlPath.replace(
|
|
72
|
-
|
|
82
|
+
urlPath = urlPath.replace('{applicationId}', encodeURIComponent(String(requestParameters['applicationId'])));
|
|
83
|
+
return {
|
|
73
84
|
path: urlPath,
|
|
74
85
|
method: 'POST',
|
|
75
86
|
headers: headerParameters,
|
|
76
87
|
query: queryParameters,
|
|
77
|
-
body: (0,
|
|
78
|
-
}
|
|
79
|
-
|
|
88
|
+
body: (0, CreatePdfRequestDTO_1.CreatePdfRequestDTOToJSON)(requestParameters['createPdfRequestDTO']),
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Create PDF files by template
|
|
93
|
+
* Create PDF files by template
|
|
94
|
+
*/
|
|
95
|
+
async aPICreatePdfByTemplateRaw(requestParameters, initOverrides) {
|
|
96
|
+
const requestOptions = await this.aPICreatePdfByTemplateRequestOpts(requestParameters);
|
|
97
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
98
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, CreatePdfResponseDTO_1.CreatePdfResponseDTOFromJSON)(jsonValue));
|
|
80
99
|
}
|
|
81
100
|
/**
|
|
82
101
|
* Create PDF files by template
|
|
@@ -87,10 +106,9 @@ class ClientApi extends runtime.BaseAPI {
|
|
|
87
106
|
return await response.value();
|
|
88
107
|
}
|
|
89
108
|
/**
|
|
90
|
-
*
|
|
91
|
-
* Get all API keys for the authenticated user
|
|
109
|
+
* Creates request options for apiKeysGet without sending the request
|
|
92
110
|
*/
|
|
93
|
-
async
|
|
111
|
+
async apiKeysGetRequestOpts(requestParameters) {
|
|
94
112
|
const queryParameters = {};
|
|
95
113
|
if (requestParameters['page'] != null) {
|
|
96
114
|
queryParameters['page'] = requestParameters['page'];
|
|
@@ -100,13 +118,21 @@ class ClientApi extends runtime.BaseAPI {
|
|
|
100
118
|
}
|
|
101
119
|
const headerParameters = {};
|
|
102
120
|
let urlPath = `/api-keys`;
|
|
103
|
-
|
|
121
|
+
return {
|
|
104
122
|
path: urlPath,
|
|
105
123
|
method: 'GET',
|
|
106
124
|
headers: headerParameters,
|
|
107
125
|
query: queryParameters,
|
|
108
|
-
}
|
|
109
|
-
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Retrieve all API keys associated with the authenticated user\'s account with pagination.
|
|
130
|
+
* Get all API keys for the authenticated user
|
|
131
|
+
*/
|
|
132
|
+
async apiKeysGetRaw(requestParameters, initOverrides) {
|
|
133
|
+
const requestOptions = await this.apiKeysGetRequestOpts(requestParameters);
|
|
134
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
135
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetAPIKeysResponseDTO_1.GetAPIKeysResponseDTOFromJSON)(jsonValue));
|
|
110
136
|
}
|
|
111
137
|
/**
|
|
112
138
|
* Retrieve all API keys associated with the authenticated user\'s account with pagination.
|
|
@@ -117,23 +143,30 @@ class ClientApi extends runtime.BaseAPI {
|
|
|
117
143
|
return await response.value();
|
|
118
144
|
}
|
|
119
145
|
/**
|
|
120
|
-
*
|
|
121
|
-
* Delete an API key
|
|
146
|
+
* Creates request options for apiKeysIdDelete without sending the request
|
|
122
147
|
*/
|
|
123
|
-
async
|
|
148
|
+
async apiKeysIdDeleteRequestOpts(requestParameters) {
|
|
124
149
|
if (requestParameters['id'] == null) {
|
|
125
150
|
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiKeysIdDelete().');
|
|
126
151
|
}
|
|
127
152
|
const queryParameters = {};
|
|
128
153
|
const headerParameters = {};
|
|
129
154
|
let urlPath = `/api-keys/{id}`;
|
|
130
|
-
urlPath = urlPath.replace(
|
|
131
|
-
|
|
155
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
156
|
+
return {
|
|
132
157
|
path: urlPath,
|
|
133
158
|
method: 'DELETE',
|
|
134
159
|
headers: headerParameters,
|
|
135
160
|
query: queryParameters,
|
|
136
|
-
}
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* Delete a specific API key belonging to the authenticated user.
|
|
165
|
+
* Delete an API key
|
|
166
|
+
*/
|
|
167
|
+
async apiKeysIdDeleteRaw(requestParameters, initOverrides) {
|
|
168
|
+
const requestOptions = await this.apiKeysIdDeleteRequestOpts(requestParameters);
|
|
169
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
137
170
|
return new runtime.VoidApiResponse(response);
|
|
138
171
|
}
|
|
139
172
|
/**
|
|
@@ -144,10 +177,9 @@ class ClientApi extends runtime.BaseAPI {
|
|
|
144
177
|
await this.apiKeysIdDeleteRaw(requestParameters, initOverrides);
|
|
145
178
|
}
|
|
146
179
|
/**
|
|
147
|
-
*
|
|
148
|
-
* Create a new API key
|
|
180
|
+
* Creates request options for apiKeysPost without sending the request
|
|
149
181
|
*/
|
|
150
|
-
async
|
|
182
|
+
async apiKeysPostRequestOpts(requestParameters) {
|
|
151
183
|
if (requestParameters['createAPIKeyRequestDTO'] == null) {
|
|
152
184
|
throw new runtime.RequiredError('createAPIKeyRequestDTO', 'Required parameter "createAPIKeyRequestDTO" was null or undefined when calling apiKeysPost().');
|
|
153
185
|
}
|
|
@@ -155,14 +187,22 @@ class ClientApi extends runtime.BaseAPI {
|
|
|
155
187
|
const headerParameters = {};
|
|
156
188
|
headerParameters['Content-Type'] = 'application/json';
|
|
157
189
|
let urlPath = `/api-keys`;
|
|
158
|
-
|
|
190
|
+
return {
|
|
159
191
|
path: urlPath,
|
|
160
192
|
method: 'POST',
|
|
161
193
|
headers: headerParameters,
|
|
162
194
|
query: queryParameters,
|
|
163
|
-
body: (0,
|
|
164
|
-
}
|
|
165
|
-
|
|
195
|
+
body: (0, CreateAPIKeyRequestDTO_1.CreateAPIKeyRequestDTOToJSON)(requestParameters['createAPIKeyRequestDTO']),
|
|
196
|
+
};
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* Create a new API key for accessing the RAG service.
|
|
200
|
+
* Create a new API key
|
|
201
|
+
*/
|
|
202
|
+
async apiKeysPostRaw(requestParameters, initOverrides) {
|
|
203
|
+
const requestOptions = await this.apiKeysPostRequestOpts(requestParameters);
|
|
204
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
205
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, CreateAPIKeyResponseDTO_1.CreateAPIKeyResponseDTOFromJSON)(jsonValue));
|
|
166
206
|
}
|
|
167
207
|
/**
|
|
168
208
|
* Create a new API key for accessing the RAG service.
|
|
@@ -173,10 +213,9 @@ class ClientApi extends runtime.BaseAPI {
|
|
|
173
213
|
return await response.value();
|
|
174
214
|
}
|
|
175
215
|
/**
|
|
176
|
-
*
|
|
177
|
-
* Creates a new account
|
|
216
|
+
* Creates request options for createAccount without sending the request
|
|
178
217
|
*/
|
|
179
|
-
async
|
|
218
|
+
async createAccountRequestOpts(requestParameters) {
|
|
180
219
|
if (requestParameters['createAccountDTO'] == null) {
|
|
181
220
|
throw new runtime.RequiredError('createAccountDTO', 'Required parameter "createAccountDTO" was null or undefined when calling createAccount().');
|
|
182
221
|
}
|
|
@@ -184,14 +223,22 @@ class ClientApi extends runtime.BaseAPI {
|
|
|
184
223
|
const headerParameters = {};
|
|
185
224
|
headerParameters['Content-Type'] = 'application/json';
|
|
186
225
|
let urlPath = `/accounts`;
|
|
187
|
-
|
|
226
|
+
return {
|
|
188
227
|
path: urlPath,
|
|
189
228
|
method: 'POST',
|
|
190
229
|
headers: headerParameters,
|
|
191
230
|
query: queryParameters,
|
|
192
|
-
body: (0,
|
|
193
|
-
}
|
|
194
|
-
|
|
231
|
+
body: (0, CreateAccountDTO_1.CreateAccountDTOToJSON)(requestParameters['createAccountDTO']),
|
|
232
|
+
};
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
* Create an account
|
|
236
|
+
* Creates a new account
|
|
237
|
+
*/
|
|
238
|
+
async createAccountRaw(requestParameters, initOverrides) {
|
|
239
|
+
const requestOptions = await this.createAccountRequestOpts(requestParameters);
|
|
240
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
241
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, AccountDTO_1.AccountDTOFromJSON)(jsonValue));
|
|
195
242
|
}
|
|
196
243
|
/**
|
|
197
244
|
* Create an account
|
|
@@ -202,10 +249,9 @@ class ClientApi extends runtime.BaseAPI {
|
|
|
202
249
|
return await response.value();
|
|
203
250
|
}
|
|
204
251
|
/**
|
|
205
|
-
*
|
|
206
|
-
* Create a new application
|
|
252
|
+
* Creates request options for createApplication without sending the request
|
|
207
253
|
*/
|
|
208
|
-
async
|
|
254
|
+
async createApplicationRequestOpts(requestParameters) {
|
|
209
255
|
if (requestParameters['createApplicationDTO'] == null) {
|
|
210
256
|
throw new runtime.RequiredError('createApplicationDTO', 'Required parameter "createApplicationDTO" was null or undefined when calling createApplication().');
|
|
211
257
|
}
|
|
@@ -213,14 +259,22 @@ class ClientApi extends runtime.BaseAPI {
|
|
|
213
259
|
const headerParameters = {};
|
|
214
260
|
headerParameters['Content-Type'] = 'application/json';
|
|
215
261
|
let urlPath = `/applications`;
|
|
216
|
-
|
|
262
|
+
return {
|
|
217
263
|
path: urlPath,
|
|
218
264
|
method: 'POST',
|
|
219
265
|
headers: headerParameters,
|
|
220
266
|
query: queryParameters,
|
|
221
|
-
body: (0,
|
|
222
|
-
}
|
|
223
|
-
|
|
267
|
+
body: (0, CreateApplicationDTO_1.CreateApplicationDTOToJSON)(requestParameters['createApplicationDTO']),
|
|
268
|
+
};
|
|
269
|
+
}
|
|
270
|
+
/**
|
|
271
|
+
* Create a new application for the authenticated account
|
|
272
|
+
* Create a new application
|
|
273
|
+
*/
|
|
274
|
+
async createApplicationRaw(requestParameters, initOverrides) {
|
|
275
|
+
const requestOptions = await this.createApplicationRequestOpts(requestParameters);
|
|
276
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
277
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ApplicationDTO_1.ApplicationDTOFromJSON)(jsonValue));
|
|
224
278
|
}
|
|
225
279
|
/**
|
|
226
280
|
* Create a new application for the authenticated account
|
|
@@ -231,10 +285,9 @@ class ClientApi extends runtime.BaseAPI {
|
|
|
231
285
|
return await response.value();
|
|
232
286
|
}
|
|
233
287
|
/**
|
|
234
|
-
*
|
|
235
|
-
* Create PDF files by template
|
|
288
|
+
* Creates request options for createPdfByTemplate without sending the request
|
|
236
289
|
*/
|
|
237
|
-
async
|
|
290
|
+
async createPdfByTemplateRequestOpts(requestParameters) {
|
|
238
291
|
if (requestParameters['applicationId'] == null) {
|
|
239
292
|
throw new runtime.RequiredError('applicationId', 'Required parameter "applicationId" was null or undefined when calling createPdfByTemplate().');
|
|
240
293
|
}
|
|
@@ -245,15 +298,23 @@ class ClientApi extends runtime.BaseAPI {
|
|
|
245
298
|
const headerParameters = {};
|
|
246
299
|
headerParameters['Content-Type'] = 'application/json';
|
|
247
300
|
let urlPath = `/applications/{applicationId}/pdf-files`;
|
|
248
|
-
urlPath = urlPath.replace(
|
|
249
|
-
|
|
301
|
+
urlPath = urlPath.replace('{applicationId}', encodeURIComponent(String(requestParameters['applicationId'])));
|
|
302
|
+
return {
|
|
250
303
|
path: urlPath,
|
|
251
304
|
method: 'POST',
|
|
252
305
|
headers: headerParameters,
|
|
253
306
|
query: queryParameters,
|
|
254
|
-
body: (0,
|
|
255
|
-
}
|
|
256
|
-
|
|
307
|
+
body: (0, CreatePdfRequestDTO_1.CreatePdfRequestDTOToJSON)(requestParameters['createPdfRequestDTO']),
|
|
308
|
+
};
|
|
309
|
+
}
|
|
310
|
+
/**
|
|
311
|
+
* Create PDF files by template
|
|
312
|
+
* Create PDF files by template
|
|
313
|
+
*/
|
|
314
|
+
async createPdfByTemplateRaw(requestParameters, initOverrides) {
|
|
315
|
+
const requestOptions = await this.createPdfByTemplateRequestOpts(requestParameters);
|
|
316
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
317
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, CreatePdfResponseDTO_1.CreatePdfResponseDTOFromJSON)(jsonValue));
|
|
257
318
|
}
|
|
258
319
|
/**
|
|
259
320
|
* Create PDF files by template
|
|
@@ -264,23 +325,30 @@ class ClientApi extends runtime.BaseAPI {
|
|
|
264
325
|
return await response.value();
|
|
265
326
|
}
|
|
266
327
|
/**
|
|
267
|
-
*
|
|
268
|
-
* Delete an application
|
|
328
|
+
* Creates request options for deleteApplication without sending the request
|
|
269
329
|
*/
|
|
270
|
-
async
|
|
330
|
+
async deleteApplicationRequestOpts(requestParameters) {
|
|
271
331
|
if (requestParameters['applicationId'] == null) {
|
|
272
332
|
throw new runtime.RequiredError('applicationId', 'Required parameter "applicationId" was null or undefined when calling deleteApplication().');
|
|
273
333
|
}
|
|
274
334
|
const queryParameters = {};
|
|
275
335
|
const headerParameters = {};
|
|
276
336
|
let urlPath = `/applications/{applicationId}`;
|
|
277
|
-
urlPath = urlPath.replace(
|
|
278
|
-
|
|
337
|
+
urlPath = urlPath.replace('{applicationId}', encodeURIComponent(String(requestParameters['applicationId'])));
|
|
338
|
+
return {
|
|
279
339
|
path: urlPath,
|
|
280
340
|
method: 'DELETE',
|
|
281
341
|
headers: headerParameters,
|
|
282
342
|
query: queryParameters,
|
|
283
|
-
}
|
|
343
|
+
};
|
|
344
|
+
}
|
|
345
|
+
/**
|
|
346
|
+
* Delete an application belonging to the authenticated account
|
|
347
|
+
* Delete an application
|
|
348
|
+
*/
|
|
349
|
+
async deleteApplicationRaw(requestParameters, initOverrides) {
|
|
350
|
+
const requestOptions = await this.deleteApplicationRequestOpts(requestParameters);
|
|
351
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
284
352
|
return new runtime.VoidApiResponse(response);
|
|
285
353
|
}
|
|
286
354
|
/**
|
|
@@ -291,10 +359,9 @@ class ClientApi extends runtime.BaseAPI {
|
|
|
291
359
|
await this.deleteApplicationRaw(requestParameters, initOverrides);
|
|
292
360
|
}
|
|
293
361
|
/**
|
|
294
|
-
*
|
|
295
|
-
* Delete a pdf template
|
|
362
|
+
* Creates request options for deletePDFTemplate without sending the request
|
|
296
363
|
*/
|
|
297
|
-
async
|
|
364
|
+
async deletePDFTemplateRequestOpts(requestParameters) {
|
|
298
365
|
if (requestParameters['id'] == null) {
|
|
299
366
|
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deletePDFTemplate().');
|
|
300
367
|
}
|
|
@@ -304,14 +371,22 @@ class ClientApi extends runtime.BaseAPI {
|
|
|
304
371
|
const queryParameters = {};
|
|
305
372
|
const headerParameters = {};
|
|
306
373
|
let urlPath = `/applications/{applicationId}/pdf-templates/{id}`;
|
|
307
|
-
urlPath = urlPath.replace(
|
|
308
|
-
urlPath = urlPath.replace(
|
|
309
|
-
|
|
374
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
375
|
+
urlPath = urlPath.replace('{applicationId}', encodeURIComponent(String(requestParameters['applicationId'])));
|
|
376
|
+
return {
|
|
310
377
|
path: urlPath,
|
|
311
378
|
method: 'DELETE',
|
|
312
379
|
headers: headerParameters,
|
|
313
380
|
query: queryParameters,
|
|
314
|
-
}
|
|
381
|
+
};
|
|
382
|
+
}
|
|
383
|
+
/**
|
|
384
|
+
* Delete a pdf template
|
|
385
|
+
* Delete a pdf template
|
|
386
|
+
*/
|
|
387
|
+
async deletePDFTemplateRaw(requestParameters, initOverrides) {
|
|
388
|
+
const requestOptions = await this.deletePDFTemplateRequestOpts(requestParameters);
|
|
389
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
315
390
|
return new runtime.VoidApiResponse(response);
|
|
316
391
|
}
|
|
317
392
|
/**
|
|
@@ -322,24 +397,31 @@ class ClientApi extends runtime.BaseAPI {
|
|
|
322
397
|
await this.deletePDFTemplateRaw(requestParameters, initOverrides);
|
|
323
398
|
}
|
|
324
399
|
/**
|
|
325
|
-
*
|
|
326
|
-
* Get an application by applicationId
|
|
400
|
+
* Creates request options for getApplicationByID without sending the request
|
|
327
401
|
*/
|
|
328
|
-
async
|
|
402
|
+
async getApplicationByIDRequestOpts(requestParameters) {
|
|
329
403
|
if (requestParameters['applicationId'] == null) {
|
|
330
404
|
throw new runtime.RequiredError('applicationId', 'Required parameter "applicationId" was null or undefined when calling getApplicationByID().');
|
|
331
405
|
}
|
|
332
406
|
const queryParameters = {};
|
|
333
407
|
const headerParameters = {};
|
|
334
408
|
let urlPath = `/applications/{applicationId}`;
|
|
335
|
-
urlPath = urlPath.replace(
|
|
336
|
-
|
|
409
|
+
urlPath = urlPath.replace('{applicationId}', encodeURIComponent(String(requestParameters['applicationId'])));
|
|
410
|
+
return {
|
|
337
411
|
path: urlPath,
|
|
338
412
|
method: 'GET',
|
|
339
413
|
headers: headerParameters,
|
|
340
414
|
query: queryParameters,
|
|
341
|
-
}
|
|
342
|
-
|
|
415
|
+
};
|
|
416
|
+
}
|
|
417
|
+
/**
|
|
418
|
+
* Get a specific application belonging to the authenticated account
|
|
419
|
+
* Get an application by applicationId
|
|
420
|
+
*/
|
|
421
|
+
async getApplicationByIDRaw(requestParameters, initOverrides) {
|
|
422
|
+
const requestOptions = await this.getApplicationByIDRequestOpts(requestParameters);
|
|
423
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
424
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ApplicationDTO_1.ApplicationDTOFromJSON)(jsonValue));
|
|
343
425
|
}
|
|
344
426
|
/**
|
|
345
427
|
* Get a specific application belonging to the authenticated account
|
|
@@ -350,10 +432,9 @@ class ClientApi extends runtime.BaseAPI {
|
|
|
350
432
|
return await response.value();
|
|
351
433
|
}
|
|
352
434
|
/**
|
|
353
|
-
*
|
|
354
|
-
* Get all applications for the account
|
|
435
|
+
* Creates request options for getApplications without sending the request
|
|
355
436
|
*/
|
|
356
|
-
async
|
|
437
|
+
async getApplicationsRequestOpts(requestParameters) {
|
|
357
438
|
const queryParameters = {};
|
|
358
439
|
if (requestParameters['page'] != null) {
|
|
359
440
|
queryParameters['page'] = requestParameters['page'];
|
|
@@ -361,15 +442,32 @@ class ClientApi extends runtime.BaseAPI {
|
|
|
361
442
|
if (requestParameters['pageSize'] != null) {
|
|
362
443
|
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
363
444
|
}
|
|
445
|
+
if (requestParameters['search'] != null) {
|
|
446
|
+
queryParameters['search'] = requestParameters['search'];
|
|
447
|
+
}
|
|
448
|
+
if (requestParameters['sortBy'] != null) {
|
|
449
|
+
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
450
|
+
}
|
|
451
|
+
if (requestParameters['sortDirection'] != null) {
|
|
452
|
+
queryParameters['sortDirection'] = requestParameters['sortDirection'];
|
|
453
|
+
}
|
|
364
454
|
const headerParameters = {};
|
|
365
455
|
let urlPath = `/applications`;
|
|
366
|
-
|
|
456
|
+
return {
|
|
367
457
|
path: urlPath,
|
|
368
458
|
method: 'GET',
|
|
369
459
|
headers: headerParameters,
|
|
370
460
|
query: queryParameters,
|
|
371
|
-
}
|
|
372
|
-
|
|
461
|
+
};
|
|
462
|
+
}
|
|
463
|
+
/**
|
|
464
|
+
* Get all applications belonging to the authenticated account
|
|
465
|
+
* Get all applications for the account
|
|
466
|
+
*/
|
|
467
|
+
async getApplicationsRaw(requestParameters, initOverrides) {
|
|
468
|
+
const requestOptions = await this.getApplicationsRequestOpts(requestParameters);
|
|
469
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
470
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, PaginatedApplicationsDTO_1.PaginatedApplicationsDTOFromJSON)(jsonValue));
|
|
373
471
|
}
|
|
374
472
|
/**
|
|
375
473
|
* Get all applications belonging to the authenticated account
|
|
@@ -380,10 +478,9 @@ class ClientApi extends runtime.BaseAPI {
|
|
|
380
478
|
return await response.value();
|
|
381
479
|
}
|
|
382
480
|
/**
|
|
383
|
-
*
|
|
384
|
-
* Get template by id
|
|
481
|
+
* Creates request options for getPdfTemplate without sending the request
|
|
385
482
|
*/
|
|
386
|
-
async
|
|
483
|
+
async getPdfTemplateRequestOpts(requestParameters) {
|
|
387
484
|
if (requestParameters['id'] == null) {
|
|
388
485
|
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getPdfTemplate().');
|
|
389
486
|
}
|
|
@@ -393,14 +490,22 @@ class ClientApi extends runtime.BaseAPI {
|
|
|
393
490
|
const queryParameters = {};
|
|
394
491
|
const headerParameters = {};
|
|
395
492
|
let urlPath = `/applications/{applicationId}/pdf-templates/{id}`;
|
|
396
|
-
urlPath = urlPath.replace(
|
|
397
|
-
urlPath = urlPath.replace(
|
|
398
|
-
|
|
493
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
494
|
+
urlPath = urlPath.replace('{applicationId}', encodeURIComponent(String(requestParameters['applicationId'])));
|
|
495
|
+
return {
|
|
399
496
|
path: urlPath,
|
|
400
497
|
method: 'GET',
|
|
401
498
|
headers: headerParameters,
|
|
402
499
|
query: queryParameters,
|
|
403
|
-
}
|
|
500
|
+
};
|
|
501
|
+
}
|
|
502
|
+
/**
|
|
503
|
+
* Get template by id
|
|
504
|
+
* Get template by id
|
|
505
|
+
*/
|
|
506
|
+
async getPdfTemplateRaw(requestParameters, initOverrides) {
|
|
507
|
+
const requestOptions = await this.getPdfTemplateRequestOpts(requestParameters);
|
|
508
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
404
509
|
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
405
510
|
return new runtime.JSONApiResponse(response);
|
|
406
511
|
}
|
|
@@ -417,10 +522,9 @@ class ClientApi extends runtime.BaseAPI {
|
|
|
417
522
|
return await response.value();
|
|
418
523
|
}
|
|
419
524
|
/**
|
|
420
|
-
*
|
|
421
|
-
* Get all templates
|
|
525
|
+
* Creates request options for getPdfTemplates without sending the request
|
|
422
526
|
*/
|
|
423
|
-
async
|
|
527
|
+
async getPdfTemplatesRequestOpts(requestParameters) {
|
|
424
528
|
if (requestParameters['applicationId'] == null) {
|
|
425
529
|
throw new runtime.RequiredError('applicationId', 'Required parameter "applicationId" was null or undefined when calling getPdfTemplates().');
|
|
426
530
|
}
|
|
@@ -431,16 +535,33 @@ class ClientApi extends runtime.BaseAPI {
|
|
|
431
535
|
if (requestParameters['pageSize'] != null) {
|
|
432
536
|
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
433
537
|
}
|
|
538
|
+
if (requestParameters['search'] != null) {
|
|
539
|
+
queryParameters['search'] = requestParameters['search'];
|
|
540
|
+
}
|
|
541
|
+
if (requestParameters['sortBy'] != null) {
|
|
542
|
+
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
543
|
+
}
|
|
544
|
+
if (requestParameters['sortDirection'] != null) {
|
|
545
|
+
queryParameters['sortDirection'] = requestParameters['sortDirection'];
|
|
546
|
+
}
|
|
434
547
|
const headerParameters = {};
|
|
435
548
|
let urlPath = `/applications/{applicationId}/pdf-templates`;
|
|
436
|
-
urlPath = urlPath.replace(
|
|
437
|
-
|
|
549
|
+
urlPath = urlPath.replace('{applicationId}', encodeURIComponent(String(requestParameters['applicationId'])));
|
|
550
|
+
return {
|
|
438
551
|
path: urlPath,
|
|
439
552
|
method: 'GET',
|
|
440
553
|
headers: headerParameters,
|
|
441
554
|
query: queryParameters,
|
|
442
|
-
}
|
|
443
|
-
|
|
555
|
+
};
|
|
556
|
+
}
|
|
557
|
+
/**
|
|
558
|
+
* Get all templates
|
|
559
|
+
* Get all templates
|
|
560
|
+
*/
|
|
561
|
+
async getPdfTemplatesRaw(requestParameters, initOverrides) {
|
|
562
|
+
const requestOptions = await this.getPdfTemplatesRequestOpts(requestParameters);
|
|
563
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
564
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, PaginatedPdfTemplateDTO_1.PaginatedPdfTemplateDTOFromJSON)(jsonValue));
|
|
444
565
|
}
|
|
445
566
|
/**
|
|
446
567
|
* Get all templates
|
|
@@ -451,10 +572,9 @@ class ClientApi extends runtime.BaseAPI {
|
|
|
451
572
|
return await response.value();
|
|
452
573
|
}
|
|
453
574
|
/**
|
|
454
|
-
*
|
|
455
|
-
* Update an application
|
|
575
|
+
* Creates request options for updateApplication without sending the request
|
|
456
576
|
*/
|
|
457
|
-
async
|
|
577
|
+
async updateApplicationRequestOpts(requestParameters) {
|
|
458
578
|
if (requestParameters['applicationId'] == null) {
|
|
459
579
|
throw new runtime.RequiredError('applicationId', 'Required parameter "applicationId" was null or undefined when calling updateApplication().');
|
|
460
580
|
}
|
|
@@ -465,15 +585,23 @@ class ClientApi extends runtime.BaseAPI {
|
|
|
465
585
|
const headerParameters = {};
|
|
466
586
|
headerParameters['Content-Type'] = 'application/json';
|
|
467
587
|
let urlPath = `/applications/{applicationId}`;
|
|
468
|
-
urlPath = urlPath.replace(
|
|
469
|
-
|
|
588
|
+
urlPath = urlPath.replace('{applicationId}', encodeURIComponent(String(requestParameters['applicationId'])));
|
|
589
|
+
return {
|
|
470
590
|
path: urlPath,
|
|
471
591
|
method: 'PATCH',
|
|
472
592
|
headers: headerParameters,
|
|
473
593
|
query: queryParameters,
|
|
474
|
-
body: (0,
|
|
475
|
-
}
|
|
476
|
-
|
|
594
|
+
body: (0, UpdateApplicationDTO_1.UpdateApplicationDTOToJSON)(requestParameters['updateApplicationDTO']),
|
|
595
|
+
};
|
|
596
|
+
}
|
|
597
|
+
/**
|
|
598
|
+
* Update an application belonging to the authenticated account
|
|
599
|
+
* Update an application
|
|
600
|
+
*/
|
|
601
|
+
async updateApplicationRaw(requestParameters, initOverrides) {
|
|
602
|
+
const requestOptions = await this.updateApplicationRequestOpts(requestParameters);
|
|
603
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
604
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ApplicationDTO_1.ApplicationDTOFromJSON)(jsonValue));
|
|
477
605
|
}
|
|
478
606
|
/**
|
|
479
607
|
* Update an application belonging to the authenticated account
|
|
@@ -484,10 +612,9 @@ class ClientApi extends runtime.BaseAPI {
|
|
|
484
612
|
return await response.value();
|
|
485
613
|
}
|
|
486
614
|
/**
|
|
487
|
-
*
|
|
488
|
-
* Update template
|
|
615
|
+
* Creates request options for updatePdfTemplate without sending the request
|
|
489
616
|
*/
|
|
490
|
-
async
|
|
617
|
+
async updatePdfTemplateRequestOpts(requestParameters) {
|
|
491
618
|
if (requestParameters['applicationId'] == null) {
|
|
492
619
|
throw new runtime.RequiredError('applicationId', 'Required parameter "applicationId" was null or undefined when calling updatePdfTemplate().');
|
|
493
620
|
}
|
|
@@ -524,16 +651,24 @@ class ClientApi extends runtime.BaseAPI {
|
|
|
524
651
|
formParams.append('name', requestParameters['name']);
|
|
525
652
|
}
|
|
526
653
|
let urlPath = `/applications/{applicationId}/pdf-templates/{id}`;
|
|
527
|
-
urlPath = urlPath.replace(
|
|
528
|
-
urlPath = urlPath.replace(
|
|
529
|
-
|
|
654
|
+
urlPath = urlPath.replace('{applicationId}', encodeURIComponent(String(requestParameters['applicationId'])));
|
|
655
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
656
|
+
return {
|
|
530
657
|
path: urlPath,
|
|
531
658
|
method: 'PATCH',
|
|
532
659
|
headers: headerParameters,
|
|
533
660
|
query: queryParameters,
|
|
534
661
|
body: formParams,
|
|
535
|
-
}
|
|
536
|
-
|
|
662
|
+
};
|
|
663
|
+
}
|
|
664
|
+
/**
|
|
665
|
+
* Update template
|
|
666
|
+
* Update template
|
|
667
|
+
*/
|
|
668
|
+
async updatePdfTemplateRaw(requestParameters, initOverrides) {
|
|
669
|
+
const requestOptions = await this.updatePdfTemplateRequestOpts(requestParameters);
|
|
670
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
671
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, PdfTemplateDTO_1.PdfTemplateDTOFromJSON)(jsonValue));
|
|
537
672
|
}
|
|
538
673
|
/**
|
|
539
674
|
* Update template
|
|
@@ -544,10 +679,9 @@ class ClientApi extends runtime.BaseAPI {
|
|
|
544
679
|
return await response.value();
|
|
545
680
|
}
|
|
546
681
|
/**
|
|
547
|
-
*
|
|
548
|
-
* Upload template
|
|
682
|
+
* Creates request options for uploadPdfTemplate without sending the request
|
|
549
683
|
*/
|
|
550
|
-
async
|
|
684
|
+
async uploadPdfTemplateRequestOpts(requestParameters) {
|
|
551
685
|
if (requestParameters['applicationId'] == null) {
|
|
552
686
|
throw new runtime.RequiredError('applicationId', 'Required parameter "applicationId" was null or undefined when calling uploadPdfTemplate().');
|
|
553
687
|
}
|
|
@@ -581,15 +715,23 @@ class ClientApi extends runtime.BaseAPI {
|
|
|
581
715
|
formParams.append('name', requestParameters['name']);
|
|
582
716
|
}
|
|
583
717
|
let urlPath = `/applications/{applicationId}/pdf-templates`;
|
|
584
|
-
urlPath = urlPath.replace(
|
|
585
|
-
|
|
718
|
+
urlPath = urlPath.replace('{applicationId}', encodeURIComponent(String(requestParameters['applicationId'])));
|
|
719
|
+
return {
|
|
586
720
|
path: urlPath,
|
|
587
721
|
method: 'POST',
|
|
588
722
|
headers: headerParameters,
|
|
589
723
|
query: queryParameters,
|
|
590
724
|
body: formParams,
|
|
591
|
-
}
|
|
592
|
-
|
|
725
|
+
};
|
|
726
|
+
}
|
|
727
|
+
/**
|
|
728
|
+
* Upload template
|
|
729
|
+
* Upload template
|
|
730
|
+
*/
|
|
731
|
+
async uploadPdfTemplateRaw(requestParameters, initOverrides) {
|
|
732
|
+
const requestOptions = await this.uploadPdfTemplateRequestOpts(requestParameters);
|
|
733
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
734
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, PdfTemplateDTO_1.PdfTemplateDTOFromJSON)(jsonValue));
|
|
593
735
|
}
|
|
594
736
|
/**
|
|
595
737
|
* Upload template
|
|
@@ -601,4 +743,34 @@ class ClientApi extends runtime.BaseAPI {
|
|
|
601
743
|
}
|
|
602
744
|
}
|
|
603
745
|
exports.ClientApi = ClientApi;
|
|
746
|
+
/**
|
|
747
|
+
* @export
|
|
748
|
+
*/
|
|
749
|
+
exports.GetApplicationsSortByEnum = {
|
|
750
|
+
Name: 'name',
|
|
751
|
+
CreatedAt: 'createdAt',
|
|
752
|
+
UpdatedAt: 'updatedAt'
|
|
753
|
+
};
|
|
754
|
+
/**
|
|
755
|
+
* @export
|
|
756
|
+
*/
|
|
757
|
+
exports.GetApplicationsSortDirectionEnum = {
|
|
758
|
+
Asc: 'asc',
|
|
759
|
+
Desc: 'desc'
|
|
760
|
+
};
|
|
761
|
+
/**
|
|
762
|
+
* @export
|
|
763
|
+
*/
|
|
764
|
+
exports.GetPdfTemplatesSortByEnum = {
|
|
765
|
+
Name: 'name',
|
|
766
|
+
UpdatedAt: 'updatedAt',
|
|
767
|
+
CreatedAt: 'createdAt'
|
|
768
|
+
};
|
|
769
|
+
/**
|
|
770
|
+
* @export
|
|
771
|
+
*/
|
|
772
|
+
exports.GetPdfTemplatesSortDirectionEnum = {
|
|
773
|
+
Asc: 'asc',
|
|
774
|
+
Desc: 'desc'
|
|
775
|
+
};
|
|
604
776
|
//# sourceMappingURL=ClientApi.js.map
|