@connectreport/connectreport-js 2.80.4 → 2.81.0-beta.2

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.
Files changed (63) hide show
  1. package/.openapi-generator/FILES +0 -1
  2. package/README.md +1 -1
  3. package/api.ts +670 -92
  4. package/base.ts +2 -2
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/index.cjs +296 -31
  8. package/dist/index.cjs.map +1 -1
  9. package/dist/index.d.cts +465 -71
  10. package/dist/index.d.ts +465 -71
  11. package/dist/index.js +294 -31
  12. package/dist/index.js.map +1 -1
  13. package/docs/assets/css/main.css +2679 -0
  14. package/docs/assets/images/icons.png +0 -0
  15. package/docs/assets/images/icons@2x.png +0 -0
  16. package/docs/assets/images/widgets.png +0 -0
  17. package/docs/assets/images/widgets@2x.png +0 -0
  18. package/docs/assets/js/main.js +1 -0
  19. package/docs/assets/js/search.json +1 -0
  20. package/docs/classes/_api_.basetemplatesapi.html +351 -0
  21. package/docs/classes/_api_.documentsapi.html +314 -0
  22. package/docs/classes/_api_.filtercyclesapi.html +483 -0
  23. package/docs/classes/_api_.imagesapi.html +354 -0
  24. package/docs/classes/_api_.jobsapi.html +311 -0
  25. package/docs/classes/_api_.reportsapi.html +400 -0
  26. package/docs/classes/_api_.reporttasksapi.html +503 -0
  27. package/docs/classes/_api_.templatesapi.html +676 -0
  28. package/docs/classes/_base_.baseapi.html +283 -0
  29. package/docs/classes/_base_.requirederror.html +291 -0
  30. package/docs/classes/_configuration_.configuration.html +345 -0
  31. package/docs/classes/_index_.connectreport.html +317 -0
  32. package/docs/enums/_api_.filtercycleemailenum.html +196 -0
  33. package/docs/enums/_api_.filtercyclefrequencyenum.html +238 -0
  34. package/docs/enums/_api_.reporttaskemailenum.html +196 -0
  35. package/docs/enums/_api_.reporttaskfrequencyenum.html +238 -0
  36. package/docs/enums/_api_.templateplatformenum.html +182 -0
  37. package/docs/globals.html +132 -0
  38. package/docs/index.html +145 -0
  39. package/docs/interfaces/_api_.filtercycle.html +791 -0
  40. package/docs/interfaces/_api_.filtercycleallof.html +273 -0
  41. package/docs/interfaces/_api_.filtercyclealloffieldinfo.html +228 -0
  42. package/docs/interfaces/_api_.filtercyclealloffieldvalues.html +228 -0
  43. package/docs/interfaces/_api_.inlineresponse200.html +186 -0
  44. package/docs/interfaces/_api_.inlineresponse2001.html +207 -0
  45. package/docs/interfaces/_api_.job.html +270 -0
  46. package/docs/interfaces/_api_.modelerror.html +207 -0
  47. package/docs/interfaces/_api_.report.html +348 -0
  48. package/docs/interfaces/_api_.reporttask.html +683 -0
  49. package/docs/interfaces/_api_.reporttaskcustomselection.html +234 -0
  50. package/docs/interfaces/_api_.reporttaskfieldvalues.html +207 -0
  51. package/docs/interfaces/_api_.reporttaskfiltersets.html +207 -0
  52. package/docs/interfaces/_api_.reporttaskgroupstosharewith.html +186 -0
  53. package/docs/interfaces/_api_.reporttasktags.html +207 -0
  54. package/docs/interfaces/_api_.reporttaskuserstosharewith.html +186 -0
  55. package/docs/interfaces/_api_.reporttaskvariables.html +207 -0
  56. package/docs/interfaces/_api_.template.html +291 -0
  57. package/docs/interfaces/_base_.requestargs.html +205 -0
  58. package/docs/interfaces/_configuration_.configurationparameters.html +253 -0
  59. package/docs/modules/_api_.html +4377 -0
  60. package/docs/modules/_base_.html +238 -0
  61. package/docs/modules/_configuration_.html +144 -0
  62. package/docs/modules/_index_.html +135 -0
  63. package/package.json +1 -1
package/base.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * ConnectReport Core API
5
5
  * Leverage core reporting, templating, and document automation capabilities of ConnectReport Server.
6
6
  *
7
- * The version of the OpenAPI document: 2.80.4
7
+ * The version of the OpenAPI document: 2.80.5
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -18,7 +18,7 @@ import { Configuration } from "./configuration";
18
18
  // @ts-ignore
19
19
  import globalAxios, { AxiosPromise, AxiosInstance } from 'axios';
20
20
 
21
- export const BASE_PATH = "https://connectreport.s3.us-east-2.amazonaws.com/api/v1".replace(/\/+$/, "");
21
+ export const BASE_PATH = "http://localhost/api/v1".replace(/\/+$/, "");
22
22
 
23
23
  /**
24
24
  *
package/common.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * ConnectReport Core API
5
5
  * Leverage core reporting, templating, and document automation capabilities of ConnectReport Server.
6
6
  *
7
- * The version of the OpenAPI document: 2.80.4
7
+ * The version of the OpenAPI document: 2.80.5
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/configuration.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * ConnectReport Core API
5
5
  * Leverage core reporting, templating, and document automation capabilities of ConnectReport Server.
6
6
  *
7
- * The version of the OpenAPI document: 2.80.4
7
+ * The version of the OpenAPI document: 2.80.5
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.cjs CHANGED
@@ -106,10 +106,12 @@ __export(index_exports, {
106
106
  ReportTasksApiAxiosParamCreator: () => ReportTasksApiAxiosParamCreator,
107
107
  ReportTasksApiFactory: () => ReportTasksApiFactory,
108
108
  ReportTasksApiFp: () => ReportTasksApiFp,
109
+ ReportTypeEnum: () => ReportTypeEnum,
109
110
  ReportsApi: () => ReportsApi,
110
111
  ReportsApiAxiosParamCreator: () => ReportsApiAxiosParamCreator,
111
112
  ReportsApiFactory: () => ReportsApiFactory,
112
113
  ReportsApiFp: () => ReportsApiFp,
114
+ TemplateTypeEnum: () => TemplateTypeEnum,
113
115
  TemplatesApi: () => TemplatesApi,
114
116
  TemplatesApiAxiosParamCreator: () => TemplatesApiAxiosParamCreator,
115
117
  TemplatesApiFactory: () => TemplatesApiFactory,
@@ -126,7 +128,7 @@ var import_axios2 = __toESM(require("axios"), 1);
126
128
 
127
129
  // base.ts
128
130
  var import_axios = __toESM(require("axios"), 1);
129
- var BASE_PATH = "https://connectreport.s3.us-east-2.amazonaws.com/api/v1".replace(/\/+$/, "");
131
+ var BASE_PATH = "http://localhost/api/v1".replace(/\/+$/, "");
130
132
  var BaseAPI = class {
131
133
  constructor(configuration, basePath = BASE_PATH, axios2 = import_axios.default) {
132
134
  this.basePath = basePath;
@@ -213,6 +215,11 @@ var FilterCycleEmailEnum = /* @__PURE__ */ ((FilterCycleEmailEnum2) => {
213
215
  FilterCycleEmailEnum2["Csv"] = "csv";
214
216
  return FilterCycleEmailEnum2;
215
217
  })(FilterCycleEmailEnum || {});
218
+ var ReportTypeEnum = /* @__PURE__ */ ((ReportTypeEnum2) => {
219
+ ReportTypeEnum2["PixelPerfect"] = "pixel-perfect";
220
+ ReportTypeEnum2["Excel"] = "excel";
221
+ return ReportTypeEnum2;
222
+ })(ReportTypeEnum || {});
216
223
  var ReportTaskFrequencyEnum = /* @__PURE__ */ ((ReportTaskFrequencyEnum2) => {
217
224
  ReportTaskFrequencyEnum2["Monthly"] = "Monthly";
218
225
  ReportTaskFrequencyEnum2["OnceNow"] = "Once - now";
@@ -264,6 +271,11 @@ var ReportTaskResponseEmailEnum = /* @__PURE__ */ ((ReportTaskResponseEmailEnum2
264
271
  ReportTaskResponseEmailEnum2["Csv"] = "csv";
265
272
  return ReportTaskResponseEmailEnum2;
266
273
  })(ReportTaskResponseEmailEnum || {});
274
+ var TemplateTypeEnum = /* @__PURE__ */ ((TemplateTypeEnum2) => {
275
+ TemplateTypeEnum2["PixelPerfect"] = "pixel-perfect";
276
+ TemplateTypeEnum2["Excel"] = "excel";
277
+ return TemplateTypeEnum2;
278
+ })(TemplateTypeEnum || {});
267
279
  var BaseTemplatesApiAxiosParamCreator = function(configuration) {
268
280
  return {
269
281
  /**
@@ -295,6 +307,35 @@ var BaseTemplatesApiAxiosParamCreator = function(configuration) {
295
307
  options: localVarRequestOptions
296
308
  };
297
309
  },
310
+ /**
311
+ *
312
+ * @summary Get base template thumbnail
313
+ * @param {string} id
314
+ * @param {*} [options] Override http request option.
315
+ * @throws {RequiredError}
316
+ */
317
+ getBaseTemplateThumbnail: async (id, options = {}) => {
318
+ assertParamExists("getBaseTemplateThumbnail", "id", id);
319
+ const localVarPath = `/base-templates/{id}/thumbnail`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
320
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
321
+ let baseOptions;
322
+ if (configuration) {
323
+ baseOptions = configuration.baseOptions;
324
+ }
325
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
326
+ const localVarHeaderParameter = {};
327
+ const localVarQueryParameter = {};
328
+ await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration);
329
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
330
+ setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
331
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
332
+ let formHeaders = {};
333
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...formHeaders, ...options.headers };
334
+ return {
335
+ url: toPathString(localVarUrlObj),
336
+ options: localVarRequestOptions
337
+ };
338
+ },
298
339
  /**
299
340
  *
300
341
  * @summary List base templates
@@ -346,6 +387,17 @@ var BaseTemplatesApiFp = function(configuration) {
346
387
  const localVarAxiosArgs = await localVarAxiosParamCreator.duplicateBaseTemplate(id, options);
347
388
  return createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration);
348
389
  },
390
+ /**
391
+ *
392
+ * @summary Get base template thumbnail
393
+ * @param {string} id
394
+ * @param {*} [options] Override http request option.
395
+ * @throws {RequiredError}
396
+ */
397
+ async getBaseTemplateThumbnail(id, options) {
398
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getBaseTemplateThumbnail(id, options);
399
+ return createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration);
400
+ },
349
401
  /**
350
402
  *
351
403
  * @summary List base templates
@@ -373,6 +425,16 @@ var BaseTemplatesApiFactory = function(configuration, basePath, axios2) {
373
425
  duplicateBaseTemplate(id, options) {
374
426
  return localVarFp.duplicateBaseTemplate(id, options).then((request) => request(axios2, basePath));
375
427
  },
428
+ /**
429
+ *
430
+ * @summary Get base template thumbnail
431
+ * @param {string} id
432
+ * @param {*} [options] Override http request option.
433
+ * @throws {RequiredError}
434
+ */
435
+ getBaseTemplateThumbnail(id, options) {
436
+ return localVarFp.getBaseTemplateThumbnail(id, options).then((request) => request(axios2, basePath));
437
+ },
376
438
  /**
377
439
  *
378
440
  * @summary List base templates
@@ -398,6 +460,17 @@ var BaseTemplatesApi = class extends BaseAPI {
398
460
  duplicateBaseTemplate(id, options) {
399
461
  return BaseTemplatesApiFp(this.configuration).duplicateBaseTemplate(id, options).then((request) => request(this.axios, this.basePath));
400
462
  }
463
+ /**
464
+ *
465
+ * @summary Get base template thumbnail
466
+ * @param {string} id
467
+ * @param {*} [options] Override http request option.
468
+ * @throws {RequiredError}
469
+ * @memberof BaseTemplatesApi
470
+ */
471
+ getBaseTemplateThumbnail(id, options) {
472
+ return BaseTemplatesApiFp(this.configuration).getBaseTemplateThumbnail(id, options).then((request) => request(this.axios, this.basePath));
473
+ }
401
474
  /**
402
475
  *
403
476
  * @summary List base templates
@@ -416,16 +489,49 @@ var DocumentsApiAxiosParamCreator = function(configuration) {
416
489
  /**
417
490
  *
418
491
  * @summary Retrieve a generated document
419
- * @param {string} fileName
492
+ * @param {string} id
420
493
  * @param {'pdf' | 'pptx' | 'xlsx' | 'csv'} fileType
421
494
  * @param {string} [attachmentName] A document file title. This value is reflected back to the client in the fileName header.
422
495
  * @param {*} [options] Override http request option.
423
496
  * @throws {RequiredError}
424
497
  */
425
- getDocument: async (fileName, fileType, attachmentName, options = {}) => {
426
- assertParamExists("getDocument", "fileName", fileName);
498
+ getDocument: async (id, fileType, attachmentName, options = {}) => {
499
+ assertParamExists("getDocument", "id", id);
427
500
  assertParamExists("getDocument", "fileType", fileType);
428
- const localVarPath = `/documents/{fileType}/{fileName}`.replace(`{${"fileName"}}`, encodeURIComponent(String(fileName))).replace(`{${"fileType"}}`, encodeURIComponent(String(fileType)));
501
+ const localVarPath = `/documents/{fileType}/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id))).replace(`{${"fileType"}}`, encodeURIComponent(String(fileType)));
502
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
503
+ let baseOptions;
504
+ if (configuration) {
505
+ baseOptions = configuration.baseOptions;
506
+ }
507
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
508
+ const localVarHeaderParameter = {};
509
+ const localVarQueryParameter = {};
510
+ await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration);
511
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
512
+ if (attachmentName !== void 0) {
513
+ localVarQueryParameter["attachmentName"] = attachmentName;
514
+ }
515
+ setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
516
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
517
+ let formHeaders = {};
518
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...formHeaders, ...options.headers };
519
+ return {
520
+ url: toPathString(localVarUrlObj),
521
+ options: localVarRequestOptions
522
+ };
523
+ },
524
+ /**
525
+ *
526
+ * @summary Retrieve a generated document
527
+ * @param {string} id
528
+ * @param {string} [attachmentName] A document file title. This value is reflected back to the client in the fileName header.
529
+ * @param {*} [options] Override http request option.
530
+ * @throws {RequiredError}
531
+ */
532
+ getDocumentById: async (id, attachmentName, options = {}) => {
533
+ assertParamExists("getDocumentById", "id", id);
534
+ const localVarPath = `/documents/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
429
535
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
430
536
  let baseOptions;
431
537
  if (configuration) {
@@ -456,14 +562,26 @@ var DocumentsApiFp = function(configuration) {
456
562
  /**
457
563
  *
458
564
  * @summary Retrieve a generated document
459
- * @param {string} fileName
565
+ * @param {string} id
460
566
  * @param {'pdf' | 'pptx' | 'xlsx' | 'csv'} fileType
461
567
  * @param {string} [attachmentName] A document file title. This value is reflected back to the client in the fileName header.
462
568
  * @param {*} [options] Override http request option.
463
569
  * @throws {RequiredError}
464
570
  */
465
- async getDocument(fileName, fileType, attachmentName, options) {
466
- const localVarAxiosArgs = await localVarAxiosParamCreator.getDocument(fileName, fileType, attachmentName, options);
571
+ async getDocument(id, fileType, attachmentName, options) {
572
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getDocument(id, fileType, attachmentName, options);
573
+ return createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration);
574
+ },
575
+ /**
576
+ *
577
+ * @summary Retrieve a generated document
578
+ * @param {string} id
579
+ * @param {string} [attachmentName] A document file title. This value is reflected back to the client in the fileName header.
580
+ * @param {*} [options] Override http request option.
581
+ * @throws {RequiredError}
582
+ */
583
+ async getDocumentById(id, attachmentName, options) {
584
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getDocumentById(id, attachmentName, options);
467
585
  return createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration);
468
586
  }
469
587
  };
@@ -474,14 +592,25 @@ var DocumentsApiFactory = function(configuration, basePath, axios2) {
474
592
  /**
475
593
  *
476
594
  * @summary Retrieve a generated document
477
- * @param {string} fileName
595
+ * @param {string} id
478
596
  * @param {'pdf' | 'pptx' | 'xlsx' | 'csv'} fileType
479
597
  * @param {string} [attachmentName] A document file title. This value is reflected back to the client in the fileName header.
480
598
  * @param {*} [options] Override http request option.
481
599
  * @throws {RequiredError}
482
600
  */
483
- getDocument(fileName, fileType, attachmentName, options) {
484
- return localVarFp.getDocument(fileName, fileType, attachmentName, options).then((request) => request(axios2, basePath));
601
+ getDocument(id, fileType, attachmentName, options) {
602
+ return localVarFp.getDocument(id, fileType, attachmentName, options).then((request) => request(axios2, basePath));
603
+ },
604
+ /**
605
+ *
606
+ * @summary Retrieve a generated document
607
+ * @param {string} id
608
+ * @param {string} [attachmentName] A document file title. This value is reflected back to the client in the fileName header.
609
+ * @param {*} [options] Override http request option.
610
+ * @throws {RequiredError}
611
+ */
612
+ getDocumentById(id, attachmentName, options) {
613
+ return localVarFp.getDocumentById(id, attachmentName, options).then((request) => request(axios2, basePath));
485
614
  }
486
615
  };
487
616
  };
@@ -489,15 +618,27 @@ var DocumentsApi = class extends BaseAPI {
489
618
  /**
490
619
  *
491
620
  * @summary Retrieve a generated document
492
- * @param {string} fileName
621
+ * @param {string} id
493
622
  * @param {'pdf' | 'pptx' | 'xlsx' | 'csv'} fileType
494
623
  * @param {string} [attachmentName] A document file title. This value is reflected back to the client in the fileName header.
495
624
  * @param {*} [options] Override http request option.
496
625
  * @throws {RequiredError}
497
626
  * @memberof DocumentsApi
498
627
  */
499
- getDocument(fileName, fileType, attachmentName, options) {
500
- return DocumentsApiFp(this.configuration).getDocument(fileName, fileType, attachmentName, options).then((request) => request(this.axios, this.basePath));
628
+ getDocument(id, fileType, attachmentName, options) {
629
+ return DocumentsApiFp(this.configuration).getDocument(id, fileType, attachmentName, options).then((request) => request(this.axios, this.basePath));
630
+ }
631
+ /**
632
+ *
633
+ * @summary Retrieve a generated document
634
+ * @param {string} id
635
+ * @param {string} [attachmentName] A document file title. This value is reflected back to the client in the fileName header.
636
+ * @param {*} [options] Override http request option.
637
+ * @throws {RequiredError}
638
+ * @memberof DocumentsApi
639
+ */
640
+ getDocumentById(id, attachmentName, options) {
641
+ return DocumentsApiFp(this.configuration).getDocumentById(id, attachmentName, options).then((request) => request(this.axios, this.basePath));
501
642
  }
502
643
  };
503
644
  var FilterCyclesApiAxiosParamCreator = function(configuration) {
@@ -960,13 +1101,13 @@ var ImagesApiAxiosParamCreator = function(configuration) {
960
1101
  /**
961
1102
  *
962
1103
  * @summary Retrieves a user uploaded image for use in a template
963
- * @param {string} title
1104
+ * @param {string} id
964
1105
  * @param {*} [options] Override http request option.
965
1106
  * @throws {RequiredError}
966
1107
  */
967
- getImage: async (title, options = {}) => {
968
- assertParamExists("getImage", "title", title);
969
- const localVarPath = `/images/{title}`.replace(`{${"title"}}`, encodeURIComponent(String(title)));
1108
+ getImage: async (id, options = {}) => {
1109
+ assertParamExists("getImage", "id", id);
1110
+ const localVarPath = `/images/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
970
1111
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
971
1112
  let baseOptions;
972
1113
  if (configuration) {
@@ -1031,12 +1172,12 @@ var ImagesApiFp = function(configuration) {
1031
1172
  /**
1032
1173
  *
1033
1174
  * @summary Retrieves a user uploaded image for use in a template
1034
- * @param {string} title
1175
+ * @param {string} id
1035
1176
  * @param {*} [options] Override http request option.
1036
1177
  * @throws {RequiredError}
1037
1178
  */
1038
- async getImage(title, options) {
1039
- const localVarAxiosArgs = await localVarAxiosParamCreator.getImage(title, options);
1179
+ async getImage(id, options) {
1180
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getImage(id, options);
1040
1181
  return createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration);
1041
1182
  },
1042
1183
  /**
@@ -1058,12 +1199,12 @@ var ImagesApiFactory = function(configuration, basePath, axios2) {
1058
1199
  /**
1059
1200
  *
1060
1201
  * @summary Retrieves a user uploaded image for use in a template
1061
- * @param {string} title
1202
+ * @param {string} id
1062
1203
  * @param {*} [options] Override http request option.
1063
1204
  * @throws {RequiredError}
1064
1205
  */
1065
- getImage(title, options) {
1066
- return localVarFp.getImage(title, options).then((request) => request(axios2, basePath));
1206
+ getImage(id, options) {
1207
+ return localVarFp.getImage(id, options).then((request) => request(axios2, basePath));
1067
1208
  },
1068
1209
  /**
1069
1210
  * Uploads an image to the server for use in templates
@@ -1081,13 +1222,13 @@ var ImagesApi = class extends BaseAPI {
1081
1222
  /**
1082
1223
  *
1083
1224
  * @summary Retrieves a user uploaded image for use in a template
1084
- * @param {string} title
1225
+ * @param {string} id
1085
1226
  * @param {*} [options] Override http request option.
1086
1227
  * @throws {RequiredError}
1087
1228
  * @memberof ImagesApi
1088
1229
  */
1089
- getImage(title, options) {
1090
- return ImagesApiFp(this.configuration).getImage(title, options).then((request) => request(this.axios, this.basePath));
1230
+ getImage(id, options) {
1231
+ return ImagesApiFp(this.configuration).getImage(id, options).then((request) => request(this.axios, this.basePath));
1091
1232
  }
1092
1233
  /**
1093
1234
  * Uploads an image to the server for use in templates
@@ -1280,7 +1421,7 @@ var ReportTasksApiAxiosParamCreator = function(configuration) {
1280
1421
  * @param {{ [key: string]: string; }} [meta] When you list report tasks you can filter the list given one or metadata key/value pairs. Only items that contain all of the given metadata properties are returned.
1281
1422
  * @param {string} [templateId]
1282
1423
  * @param {number} [perPage]
1283
- * @param {'title' | 'startOn' | 'endOn' | 'enabled' | 'username' | 'frequency' | 'scheduledJobs.lastFinishedAt' | 'scheduledJobs.nextRunAt' | 'scheduledJobs.lastRunAt' | 'averageTimeToGenerate' | 'id' | 'templateId'} [orderBy]
1424
+ * @param {'title' | 'startOn' | 'endOn' | 'enabled' | 'username' | 'frequency' | 'scheduledJobs.lastFinishedAt' | 'scheduledJobs.nextRunAt' | 'scheduledJobs.lastRunAt' | 'averageTimeToGenerate' | 'id' | 'templateId' | 'report.createdAt'} [orderBy]
1284
1425
  * @param {'asc' | 'desc'} [order] The order to retrieve the logs in
1285
1426
  * @param {object} [filter] Filters for report tasks. JSON encoded object in the form of `{ field: string, query: string}`, or for date range fields (including \"startOn\" and \"endOn\"), `{ field: string, query: { start: Date, end: Date }}`. ### Examples: Filter on \"startOn\": ``` { \"field\": \"startOn\", \"query\": { \"start\": \"2020-01-01T00:00:00.000Z\", \"end\": \"2020-01-02T00:00:00.000Z\" } } ``` Filter on \"enabled\" ``` { \"field\": \"enabled\", \"query\": \"True\" } ``` Filter on \"frequency\": ``` { \"field\": \"frequency\", \"query\": \"Monthly\" } ```
1286
1427
  * @param {*} [options] Override http request option.
@@ -1436,7 +1577,7 @@ var ReportTasksApiFp = function(configuration) {
1436
1577
  * @param {{ [key: string]: string; }} [meta] When you list report tasks you can filter the list given one or metadata key/value pairs. Only items that contain all of the given metadata properties are returned.
1437
1578
  * @param {string} [templateId]
1438
1579
  * @param {number} [perPage]
1439
- * @param {'title' | 'startOn' | 'endOn' | 'enabled' | 'username' | 'frequency' | 'scheduledJobs.lastFinishedAt' | 'scheduledJobs.nextRunAt' | 'scheduledJobs.lastRunAt' | 'averageTimeToGenerate' | 'id' | 'templateId'} [orderBy]
1580
+ * @param {'title' | 'startOn' | 'endOn' | 'enabled' | 'username' | 'frequency' | 'scheduledJobs.lastFinishedAt' | 'scheduledJobs.nextRunAt' | 'scheduledJobs.lastRunAt' | 'averageTimeToGenerate' | 'id' | 'templateId' | 'report.createdAt'} [orderBy]
1440
1581
  * @param {'asc' | 'desc'} [order] The order to retrieve the logs in
1441
1582
  * @param {object} [filter] Filters for report tasks. JSON encoded object in the form of `{ field: string, query: string}`, or for date range fields (including \"startOn\" and \"endOn\"), `{ field: string, query: { start: Date, end: Date }}`. ### Examples: Filter on \"startOn\": ``` { \"field\": \"startOn\", \"query\": { \"start\": \"2020-01-01T00:00:00.000Z\", \"end\": \"2020-01-02T00:00:00.000Z\" } } ``` Filter on \"enabled\" ``` { \"field\": \"enabled\", \"query\": \"True\" } ``` Filter on \"frequency\": ``` { \"field\": \"frequency\", \"query\": \"Monthly\" } ```
1442
1583
  * @param {*} [options] Override http request option.
@@ -1512,7 +1653,7 @@ var ReportTasksApiFactory = function(configuration, basePath, axios2) {
1512
1653
  * @param {{ [key: string]: string; }} [meta] When you list report tasks you can filter the list given one or metadata key/value pairs. Only items that contain all of the given metadata properties are returned.
1513
1654
  * @param {string} [templateId]
1514
1655
  * @param {number} [perPage]
1515
- * @param {'title' | 'startOn' | 'endOn' | 'enabled' | 'username' | 'frequency' | 'scheduledJobs.lastFinishedAt' | 'scheduledJobs.nextRunAt' | 'scheduledJobs.lastRunAt' | 'averageTimeToGenerate' | 'id' | 'templateId'} [orderBy]
1656
+ * @param {'title' | 'startOn' | 'endOn' | 'enabled' | 'username' | 'frequency' | 'scheduledJobs.lastFinishedAt' | 'scheduledJobs.nextRunAt' | 'scheduledJobs.lastRunAt' | 'averageTimeToGenerate' | 'id' | 'templateId' | 'report.createdAt'} [orderBy]
1516
1657
  * @param {'asc' | 'desc'} [order] The order to retrieve the logs in
1517
1658
  * @param {object} [filter] Filters for report tasks. JSON encoded object in the form of `{ field: string, query: string}`, or for date range fields (including \"startOn\" and \"endOn\"), `{ field: string, query: { start: Date, end: Date }}`. ### Examples: Filter on \"startOn\": ``` { \"field\": \"startOn\", \"query\": { \"start\": \"2020-01-01T00:00:00.000Z\", \"end\": \"2020-01-02T00:00:00.000Z\" } } ``` Filter on \"enabled\" ``` { \"field\": \"enabled\", \"query\": \"True\" } ``` Filter on \"frequency\": ``` { \"field\": \"frequency\", \"query\": \"Monthly\" } ```
1518
1659
  * @param {*} [options] Override http request option.
@@ -1586,7 +1727,7 @@ var ReportTasksApi = class extends BaseAPI {
1586
1727
  * @param {{ [key: string]: string; }} [meta] When you list report tasks you can filter the list given one or metadata key/value pairs. Only items that contain all of the given metadata properties are returned.
1587
1728
  * @param {string} [templateId]
1588
1729
  * @param {number} [perPage]
1589
- * @param {'title' | 'startOn' | 'endOn' | 'enabled' | 'username' | 'frequency' | 'scheduledJobs.lastFinishedAt' | 'scheduledJobs.nextRunAt' | 'scheduledJobs.lastRunAt' | 'averageTimeToGenerate' | 'id' | 'templateId'} [orderBy]
1730
+ * @param {'title' | 'startOn' | 'endOn' | 'enabled' | 'username' | 'frequency' | 'scheduledJobs.lastFinishedAt' | 'scheduledJobs.nextRunAt' | 'scheduledJobs.lastRunAt' | 'averageTimeToGenerate' | 'id' | 'templateId' | 'report.createdAt'} [orderBy]
1590
1731
  * @param {'asc' | 'desc'} [order] The order to retrieve the logs in
1591
1732
  * @param {object} [filter] Filters for report tasks. JSON encoded object in the form of `{ field: string, query: string}`, or for date range fields (including \"startOn\" and \"endOn\"), `{ field: string, query: { start: Date, end: Date }}`. ### Examples: Filter on \"startOn\": ``` { \"field\": \"startOn\", \"query\": { \"start\": \"2020-01-01T00:00:00.000Z\", \"end\": \"2020-01-02T00:00:00.000Z\" } } ``` Filter on \"enabled\" ``` { \"field\": \"enabled\", \"query\": \"True\" } ``` Filter on \"frequency\": ``` { \"field\": \"frequency\", \"query\": \"Monthly\" } ```
1592
1733
  * @param {*} [options] Override http request option.
@@ -1680,6 +1821,35 @@ var ReportsApiAxiosParamCreator = function(configuration) {
1680
1821
  options: localVarRequestOptions
1681
1822
  };
1682
1823
  },
1824
+ /**
1825
+ *
1826
+ * @summary Get report thumbnail
1827
+ * @param {string} id
1828
+ * @param {*} [options] Override http request option.
1829
+ * @throws {RequiredError}
1830
+ */
1831
+ getReportThumbnail: async (id, options = {}) => {
1832
+ assertParamExists("getReportThumbnail", "id", id);
1833
+ const localVarPath = `/reports/{id}/thumbnail`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
1834
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1835
+ let baseOptions;
1836
+ if (configuration) {
1837
+ baseOptions = configuration.baseOptions;
1838
+ }
1839
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
1840
+ const localVarHeaderParameter = {};
1841
+ const localVarQueryParameter = {};
1842
+ await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration);
1843
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
1844
+ setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
1845
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1846
+ let formHeaders = {};
1847
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...formHeaders, ...options.headers };
1848
+ return {
1849
+ url: toPathString(localVarUrlObj),
1850
+ options: localVarRequestOptions
1851
+ };
1852
+ },
1683
1853
  /**
1684
1854
  *
1685
1855
  * @summary List reports
@@ -1792,6 +1962,17 @@ var ReportsApiFp = function(configuration) {
1792
1962
  const localVarAxiosArgs = await localVarAxiosParamCreator.getReport(id, options);
1793
1963
  return createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration);
1794
1964
  },
1965
+ /**
1966
+ *
1967
+ * @summary Get report thumbnail
1968
+ * @param {string} id
1969
+ * @param {*} [options] Override http request option.
1970
+ * @throws {RequiredError}
1971
+ */
1972
+ async getReportThumbnail(id, options) {
1973
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getReportThumbnail(id, options);
1974
+ return createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration);
1975
+ },
1795
1976
  /**
1796
1977
  *
1797
1978
  * @summary List reports
@@ -1845,6 +2026,16 @@ var ReportsApiFactory = function(configuration, basePath, axios2) {
1845
2026
  getReport(id, options) {
1846
2027
  return localVarFp.getReport(id, options).then((request) => request(axios2, basePath));
1847
2028
  },
2029
+ /**
2030
+ *
2031
+ * @summary Get report thumbnail
2032
+ * @param {string} id
2033
+ * @param {*} [options] Override http request option.
2034
+ * @throws {RequiredError}
2035
+ */
2036
+ getReportThumbnail(id, options) {
2037
+ return localVarFp.getReportThumbnail(id, options).then((request) => request(axios2, basePath));
2038
+ },
1848
2039
  /**
1849
2040
  *
1850
2041
  * @summary List reports
@@ -1896,6 +2087,17 @@ var ReportsApi = class extends BaseAPI {
1896
2087
  getReport(id, options) {
1897
2088
  return ReportsApiFp(this.configuration).getReport(id, options).then((request) => request(this.axios, this.basePath));
1898
2089
  }
2090
+ /**
2091
+ *
2092
+ * @summary Get report thumbnail
2093
+ * @param {string} id
2094
+ * @param {*} [options] Override http request option.
2095
+ * @throws {RequiredError}
2096
+ * @memberof ReportsApi
2097
+ */
2098
+ getReportThumbnail(id, options) {
2099
+ return ReportsApiFp(this.configuration).getReportThumbnail(id, options).then((request) => request(this.axios, this.basePath));
2100
+ }
1899
2101
  /**
1900
2102
  *
1901
2103
  * @summary List reports
@@ -2074,6 +2276,35 @@ var TemplatesApiAxiosParamCreator = function(configuration) {
2074
2276
  options: localVarRequestOptions
2075
2277
  };
2076
2278
  },
2279
+ /**
2280
+ *
2281
+ * @summary Get template thumbnail
2282
+ * @param {string} id
2283
+ * @param {*} [options] Override http request option.
2284
+ * @throws {RequiredError}
2285
+ */
2286
+ getTemplateThumbnail: async (id, options = {}) => {
2287
+ assertParamExists("getTemplateThumbnail", "id", id);
2288
+ const localVarPath = `/templates/{id}/thumbnail`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
2289
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2290
+ let baseOptions;
2291
+ if (configuration) {
2292
+ baseOptions = configuration.baseOptions;
2293
+ }
2294
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
2295
+ const localVarHeaderParameter = {};
2296
+ const localVarQueryParameter = {};
2297
+ await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration);
2298
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
2299
+ setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
2300
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2301
+ let formHeaders = {};
2302
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...formHeaders, ...options.headers };
2303
+ return {
2304
+ url: toPathString(localVarUrlObj),
2305
+ options: localVarRequestOptions
2306
+ };
2307
+ },
2077
2308
  /**
2078
2309
  *
2079
2310
  * @summary List report templates
@@ -2269,6 +2500,17 @@ var TemplatesApiFp = function(configuration) {
2269
2500
  const localVarAxiosArgs = await localVarAxiosParamCreator.getTemplate(id, options);
2270
2501
  return createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration);
2271
2502
  },
2503
+ /**
2504
+ *
2505
+ * @summary Get template thumbnail
2506
+ * @param {string} id
2507
+ * @param {*} [options] Override http request option.
2508
+ * @throws {RequiredError}
2509
+ */
2510
+ async getTemplateThumbnail(id, options) {
2511
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getTemplateThumbnail(id, options);
2512
+ return createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration);
2513
+ },
2272
2514
  /**
2273
2515
  *
2274
2516
  * @summary List report templates
@@ -2370,6 +2612,16 @@ var TemplatesApiFactory = function(configuration, basePath, axios2) {
2370
2612
  getTemplate(id, options) {
2371
2613
  return localVarFp.getTemplate(id, options).then((request) => request(axios2, basePath));
2372
2614
  },
2615
+ /**
2616
+ *
2617
+ * @summary Get template thumbnail
2618
+ * @param {string} id
2619
+ * @param {*} [options] Override http request option.
2620
+ * @throws {RequiredError}
2621
+ */
2622
+ getTemplateThumbnail(id, options) {
2623
+ return localVarFp.getTemplateThumbnail(id, options).then((request) => request(axios2, basePath));
2624
+ },
2373
2625
  /**
2374
2626
  *
2375
2627
  * @summary List report templates
@@ -2470,6 +2722,17 @@ var TemplatesApi = class extends BaseAPI {
2470
2722
  getTemplate(id, options) {
2471
2723
  return TemplatesApiFp(this.configuration).getTemplate(id, options).then((request) => request(this.axios, this.basePath));
2472
2724
  }
2725
+ /**
2726
+ *
2727
+ * @summary Get template thumbnail
2728
+ * @param {string} id
2729
+ * @param {*} [options] Override http request option.
2730
+ * @throws {RequiredError}
2731
+ * @memberof TemplatesApi
2732
+ */
2733
+ getTemplateThumbnail(id, options) {
2734
+ return TemplatesApiFp(this.configuration).getTemplateThumbnail(id, options).then((request) => request(this.axios, this.basePath));
2735
+ }
2473
2736
  /**
2474
2737
  *
2475
2738
  * @summary List report templates
@@ -2892,10 +3155,12 @@ globalThis.ConnectReport = ConnectReport;
2892
3155
  ReportTasksApiAxiosParamCreator,
2893
3156
  ReportTasksApiFactory,
2894
3157
  ReportTasksApiFp,
3158
+ ReportTypeEnum,
2895
3159
  ReportsApi,
2896
3160
  ReportsApiAxiosParamCreator,
2897
3161
  ReportsApiFactory,
2898
3162
  ReportsApiFp,
3163
+ TemplateTypeEnum,
2899
3164
  TemplatesApi,
2900
3165
  TemplatesApiAxiosParamCreator,
2901
3166
  TemplatesApiFactory,