@connectreport/connectreport-js 2.81.0-beta.1 → 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.
- package/README.md +1 -1
- package/api.ts +442 -62
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/index.cjs +284 -26
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +252 -54
- package/dist/index.d.ts +252 -54
- package/dist/index.js +283 -26
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/api.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.
|
|
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).
|
|
@@ -165,6 +165,12 @@ export interface FilterCycle {
|
|
|
165
165
|
* @memberof FilterCycle
|
|
166
166
|
*/
|
|
167
167
|
emailBody?: string;
|
|
168
|
+
/**
|
|
169
|
+
* The ID of the OneDrive folder to publish the report to
|
|
170
|
+
* @type {string}
|
|
171
|
+
* @memberof FilterCycle
|
|
172
|
+
*/
|
|
173
|
+
onedriveParentFolderId?: string;
|
|
168
174
|
/**
|
|
169
175
|
*
|
|
170
176
|
* @type {FilterCycleAllOfFieldInfo}
|
|
@@ -178,7 +184,7 @@ export interface FilterCycle {
|
|
|
178
184
|
*/
|
|
179
185
|
fieldValues?: Array<FilterCycleAllOfFieldValues>;
|
|
180
186
|
/**
|
|
181
|
-
*
|
|
187
|
+
* This field is deprecated in favor of docId.
|
|
182
188
|
* @type {string}
|
|
183
189
|
* @memberof FilterCycle
|
|
184
190
|
*/
|
|
@@ -195,6 +201,18 @@ export interface FilterCycle {
|
|
|
195
201
|
* @memberof FilterCycle
|
|
196
202
|
*/
|
|
197
203
|
autotag?: boolean;
|
|
204
|
+
/**
|
|
205
|
+
*
|
|
206
|
+
* @type {string}
|
|
207
|
+
* @memberof FilterCycle
|
|
208
|
+
*/
|
|
209
|
+
docId?: string;
|
|
210
|
+
/**
|
|
211
|
+
*
|
|
212
|
+
* @type {string}
|
|
213
|
+
* @memberof FilterCycle
|
|
214
|
+
*/
|
|
215
|
+
connectorName?: string;
|
|
198
216
|
}
|
|
199
217
|
|
|
200
218
|
/**
|
|
@@ -240,7 +258,7 @@ export interface FilterCycleAllOf {
|
|
|
240
258
|
*/
|
|
241
259
|
fieldValues?: Array<FilterCycleAllOfFieldValues>;
|
|
242
260
|
/**
|
|
243
|
-
*
|
|
261
|
+
* This field is deprecated in favor of docId.
|
|
244
262
|
* @type {string}
|
|
245
263
|
* @memberof FilterCycleAllOf
|
|
246
264
|
*/
|
|
@@ -257,6 +275,18 @@ export interface FilterCycleAllOf {
|
|
|
257
275
|
* @memberof FilterCycleAllOf
|
|
258
276
|
*/
|
|
259
277
|
autotag?: boolean;
|
|
278
|
+
/**
|
|
279
|
+
*
|
|
280
|
+
* @type {string}
|
|
281
|
+
* @memberof FilterCycleAllOf
|
|
282
|
+
*/
|
|
283
|
+
docId?: string;
|
|
284
|
+
/**
|
|
285
|
+
*
|
|
286
|
+
* @type {string}
|
|
287
|
+
* @memberof FilterCycleAllOf
|
|
288
|
+
*/
|
|
289
|
+
connectorName?: string;
|
|
260
290
|
}
|
|
261
291
|
/**
|
|
262
292
|
*
|
|
@@ -335,10 +365,16 @@ export interface InlineResponse200 {
|
|
|
335
365
|
export interface InlineResponse2001 {
|
|
336
366
|
/**
|
|
337
367
|
*
|
|
338
|
-
* @type {
|
|
368
|
+
* @type {Array<ReportTaskResponse>}
|
|
339
369
|
* @memberof InlineResponse2001
|
|
340
370
|
*/
|
|
341
|
-
|
|
371
|
+
reportTasks?: Array<ReportTaskResponse>;
|
|
372
|
+
/**
|
|
373
|
+
*
|
|
374
|
+
* @type {number}
|
|
375
|
+
* @memberof InlineResponse2001
|
|
376
|
+
*/
|
|
377
|
+
totalPages?: number;
|
|
342
378
|
}
|
|
343
379
|
/**
|
|
344
380
|
*
|
|
@@ -348,16 +384,22 @@ export interface InlineResponse2001 {
|
|
|
348
384
|
export interface InlineResponse2002 {
|
|
349
385
|
/**
|
|
350
386
|
*
|
|
351
|
-
* @type {Array<
|
|
387
|
+
* @type {Array<Report>}
|
|
352
388
|
* @memberof InlineResponse2002
|
|
353
389
|
*/
|
|
354
|
-
|
|
390
|
+
reports?: Array<Report>;
|
|
355
391
|
/**
|
|
356
392
|
*
|
|
357
393
|
* @type {number}
|
|
358
394
|
* @memberof InlineResponse2002
|
|
359
395
|
*/
|
|
360
396
|
totalPages?: number;
|
|
397
|
+
/**
|
|
398
|
+
*
|
|
399
|
+
* @type {number}
|
|
400
|
+
* @memberof InlineResponse2002
|
|
401
|
+
*/
|
|
402
|
+
totalItems?: number;
|
|
361
403
|
}
|
|
362
404
|
/**
|
|
363
405
|
*
|
|
@@ -367,22 +409,16 @@ export interface InlineResponse2002 {
|
|
|
367
409
|
export interface InlineResponse2003 {
|
|
368
410
|
/**
|
|
369
411
|
*
|
|
370
|
-
* @type {Array<
|
|
412
|
+
* @type {Array<Template>}
|
|
371
413
|
* @memberof InlineResponse2003
|
|
372
414
|
*/
|
|
373
|
-
|
|
415
|
+
templates?: Array<Template>;
|
|
374
416
|
/**
|
|
375
417
|
*
|
|
376
418
|
* @type {number}
|
|
377
419
|
* @memberof InlineResponse2003
|
|
378
420
|
*/
|
|
379
421
|
totalPages?: number;
|
|
380
|
-
/**
|
|
381
|
-
*
|
|
382
|
-
* @type {number}
|
|
383
|
-
* @memberof InlineResponse2003
|
|
384
|
-
*/
|
|
385
|
-
totalItems?: number;
|
|
386
422
|
}
|
|
387
423
|
/**
|
|
388
424
|
*
|
|
@@ -392,16 +428,10 @@ export interface InlineResponse2003 {
|
|
|
392
428
|
export interface InlineResponse2004 {
|
|
393
429
|
/**
|
|
394
430
|
*
|
|
395
|
-
* @type {
|
|
396
|
-
* @memberof InlineResponse2004
|
|
397
|
-
*/
|
|
398
|
-
templates?: Array<Template>;
|
|
399
|
-
/**
|
|
400
|
-
*
|
|
401
|
-
* @type {number}
|
|
431
|
+
* @type {string}
|
|
402
432
|
* @memberof InlineResponse2004
|
|
403
433
|
*/
|
|
404
|
-
|
|
434
|
+
path?: string;
|
|
405
435
|
}
|
|
406
436
|
/**
|
|
407
437
|
*
|
|
@@ -556,7 +586,23 @@ export interface Report {
|
|
|
556
586
|
* @memberof Report
|
|
557
587
|
*/
|
|
558
588
|
sizeBytes?: number;
|
|
589
|
+
/**
|
|
590
|
+
* The type of report
|
|
591
|
+
* @type {string}
|
|
592
|
+
* @memberof Report
|
|
593
|
+
*/
|
|
594
|
+
type?: ReportTypeEnum;
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
/**
|
|
598
|
+
* @export
|
|
599
|
+
* @enum {string}
|
|
600
|
+
*/
|
|
601
|
+
export enum ReportTypeEnum {
|
|
602
|
+
PixelPerfect = 'pixel-perfect',
|
|
603
|
+
Excel = 'excel'
|
|
559
604
|
}
|
|
605
|
+
|
|
560
606
|
/**
|
|
561
607
|
*
|
|
562
608
|
* @export
|
|
@@ -701,6 +747,12 @@ export interface ReportTask {
|
|
|
701
747
|
* @memberof ReportTask
|
|
702
748
|
*/
|
|
703
749
|
emailBody?: string;
|
|
750
|
+
/**
|
|
751
|
+
* The ID of the OneDrive folder to publish the report to
|
|
752
|
+
* @type {string}
|
|
753
|
+
* @memberof ReportTask
|
|
754
|
+
*/
|
|
755
|
+
onedriveParentFolderId?: string;
|
|
704
756
|
}
|
|
705
757
|
|
|
706
758
|
/**
|
|
@@ -972,6 +1024,12 @@ export interface ReportTaskRequest {
|
|
|
972
1024
|
* @memberof ReportTaskRequest
|
|
973
1025
|
*/
|
|
974
1026
|
emailBody?: string;
|
|
1027
|
+
/**
|
|
1028
|
+
* The ID of the OneDrive folder to publish the report to
|
|
1029
|
+
* @type {string}
|
|
1030
|
+
* @memberof ReportTaskRequest
|
|
1031
|
+
*/
|
|
1032
|
+
onedriveParentFolderId?: string;
|
|
975
1033
|
/**
|
|
976
1034
|
* Emails to send the report to. This is only allowed if \"Allow reports to be shared with any email\" is to true.
|
|
977
1035
|
* @type {Array<string>}
|
|
@@ -1204,6 +1262,12 @@ export interface ReportTaskResponse {
|
|
|
1204
1262
|
* @memberof ReportTaskResponse
|
|
1205
1263
|
*/
|
|
1206
1264
|
emailBody?: string;
|
|
1265
|
+
/**
|
|
1266
|
+
* The ID of the OneDrive folder to publish the report to
|
|
1267
|
+
* @type {string}
|
|
1268
|
+
* @memberof ReportTaskResponse
|
|
1269
|
+
*/
|
|
1270
|
+
onedriveParentFolderId?: string;
|
|
1207
1271
|
/**
|
|
1208
1272
|
* Users to share the published report with. This field will be updated entirely if provided
|
|
1209
1273
|
* @type {Array<ReportTaskResponseAllOfUsersToShareWith>}
|
|
@@ -1498,7 +1562,7 @@ export interface Template {
|
|
|
1498
1562
|
* @type {string}
|
|
1499
1563
|
* @memberof Template
|
|
1500
1564
|
*/
|
|
1501
|
-
type
|
|
1565
|
+
type?: TemplateTypeEnum;
|
|
1502
1566
|
}
|
|
1503
1567
|
|
|
1504
1568
|
/**
|
|
@@ -1618,6 +1682,50 @@ export const BaseTemplatesApiAxiosParamCreator = function (configuration?: Confi
|
|
|
1618
1682
|
|
|
1619
1683
|
|
|
1620
1684
|
|
|
1685
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
|
|
1686
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1687
|
+
let formHeaders = {};
|
|
1688
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...formHeaders, ...options.headers};
|
|
1689
|
+
|
|
1690
|
+
return {
|
|
1691
|
+
url: toPathString(localVarUrlObj),
|
|
1692
|
+
options: localVarRequestOptions,
|
|
1693
|
+
};
|
|
1694
|
+
},
|
|
1695
|
+
/**
|
|
1696
|
+
*
|
|
1697
|
+
* @summary Get base template thumbnail
|
|
1698
|
+
* @param {string} id
|
|
1699
|
+
* @param {*} [options] Override http request option.
|
|
1700
|
+
* @throws {RequiredError}
|
|
1701
|
+
*/
|
|
1702
|
+
getBaseTemplateThumbnail: async (id: string, options: any = {}): Promise<RequestArgs> => {
|
|
1703
|
+
// verify required parameter 'id' is not null or undefined
|
|
1704
|
+
assertParamExists('getBaseTemplateThumbnail', 'id', id)
|
|
1705
|
+
const localVarPath = `/base-templates/{id}/thumbnail`
|
|
1706
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1707
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1708
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1709
|
+
let baseOptions;
|
|
1710
|
+
if (configuration) {
|
|
1711
|
+
baseOptions = configuration.baseOptions;
|
|
1712
|
+
}
|
|
1713
|
+
|
|
1714
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1715
|
+
const localVarHeaderParameter = {} as any;
|
|
1716
|
+
const localVarQueryParameter = {} as any;
|
|
1717
|
+
|
|
1718
|
+
// authentication ApiKeyAuth required
|
|
1719
|
+
await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration)
|
|
1720
|
+
|
|
1721
|
+
// authentication BearerAuth required
|
|
1722
|
+
// http bearer authentication required
|
|
1723
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
1724
|
+
|
|
1725
|
+
// authentication CookieAuth required
|
|
1726
|
+
|
|
1727
|
+
|
|
1728
|
+
|
|
1621
1729
|
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
|
|
1622
1730
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1623
1731
|
let formHeaders = {};
|
|
@@ -1699,6 +1807,17 @@ export const BaseTemplatesApiFp = function(configuration?: Configuration) {
|
|
|
1699
1807
|
const localVarAxiosArgs = await localVarAxiosParamCreator.duplicateBaseTemplate(id, options);
|
|
1700
1808
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1701
1809
|
},
|
|
1810
|
+
/**
|
|
1811
|
+
*
|
|
1812
|
+
* @summary Get base template thumbnail
|
|
1813
|
+
* @param {string} id
|
|
1814
|
+
* @param {*} [options] Override http request option.
|
|
1815
|
+
* @throws {RequiredError}
|
|
1816
|
+
*/
|
|
1817
|
+
async getBaseTemplateThumbnail(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
|
|
1818
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBaseTemplateThumbnail(id, options);
|
|
1819
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1820
|
+
},
|
|
1702
1821
|
/**
|
|
1703
1822
|
*
|
|
1704
1823
|
* @summary List base templates
|
|
@@ -1731,6 +1850,16 @@ export const BaseTemplatesApiFactory = function (configuration?: Configuration,
|
|
|
1731
1850
|
duplicateBaseTemplate(id: string, options?: any): AxiosPromise<Template> {
|
|
1732
1851
|
return localVarFp.duplicateBaseTemplate(id, options).then((request) => request(axios, basePath));
|
|
1733
1852
|
},
|
|
1853
|
+
/**
|
|
1854
|
+
*
|
|
1855
|
+
* @summary Get base template thumbnail
|
|
1856
|
+
* @param {string} id
|
|
1857
|
+
* @param {*} [options] Override http request option.
|
|
1858
|
+
* @throws {RequiredError}
|
|
1859
|
+
*/
|
|
1860
|
+
getBaseTemplateThumbnail(id: string, options?: any): AxiosPromise<any> {
|
|
1861
|
+
return localVarFp.getBaseTemplateThumbnail(id, options).then((request) => request(axios, basePath));
|
|
1862
|
+
},
|
|
1734
1863
|
/**
|
|
1735
1864
|
*
|
|
1736
1865
|
* @summary List base templates
|
|
@@ -1764,6 +1893,18 @@ export class BaseTemplatesApi extends BaseAPI {
|
|
|
1764
1893
|
return BaseTemplatesApiFp(this.configuration).duplicateBaseTemplate(id, options).then((request) => request(this.axios, this.basePath));
|
|
1765
1894
|
}
|
|
1766
1895
|
|
|
1896
|
+
/**
|
|
1897
|
+
*
|
|
1898
|
+
* @summary Get base template thumbnail
|
|
1899
|
+
* @param {string} id
|
|
1900
|
+
* @param {*} [options] Override http request option.
|
|
1901
|
+
* @throws {RequiredError}
|
|
1902
|
+
* @memberof BaseTemplatesApi
|
|
1903
|
+
*/
|
|
1904
|
+
public getBaseTemplateThumbnail(id: string, options?: any) {
|
|
1905
|
+
return BaseTemplatesApiFp(this.configuration).getBaseTemplateThumbnail(id, options).then((request) => request(this.axios, this.basePath));
|
|
1906
|
+
}
|
|
1907
|
+
|
|
1767
1908
|
/**
|
|
1768
1909
|
*
|
|
1769
1910
|
* @summary List base templates
|
|
@@ -1788,19 +1929,19 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
1788
1929
|
/**
|
|
1789
1930
|
*
|
|
1790
1931
|
* @summary Retrieve a generated document
|
|
1791
|
-
* @param {string}
|
|
1932
|
+
* @param {string} id
|
|
1792
1933
|
* @param {'pdf' | 'pptx' | 'xlsx' | 'csv'} fileType
|
|
1793
1934
|
* @param {string} [attachmentName] A document file title. This value is reflected back to the client in the fileName header.
|
|
1794
1935
|
* @param {*} [options] Override http request option.
|
|
1795
1936
|
* @throws {RequiredError}
|
|
1796
1937
|
*/
|
|
1797
|
-
getDocument: async (
|
|
1798
|
-
// verify required parameter '
|
|
1799
|
-
assertParamExists('getDocument', '
|
|
1938
|
+
getDocument: async (id: string, fileType: 'pdf' | 'pptx' | 'xlsx' | 'csv', attachmentName?: string, options: any = {}): Promise<RequestArgs> => {
|
|
1939
|
+
// verify required parameter 'id' is not null or undefined
|
|
1940
|
+
assertParamExists('getDocument', 'id', id)
|
|
1800
1941
|
// verify required parameter 'fileType' is not null or undefined
|
|
1801
1942
|
assertParamExists('getDocument', 'fileType', fileType)
|
|
1802
|
-
const localVarPath = `/documents/{fileType}/{
|
|
1803
|
-
.replace(`{${"
|
|
1943
|
+
const localVarPath = `/documents/{fileType}/{id}`
|
|
1944
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
1804
1945
|
.replace(`{${"fileType"}}`, encodeURIComponent(String(fileType)));
|
|
1805
1946
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1806
1947
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1828,6 +1969,55 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
1828
1969
|
|
|
1829
1970
|
|
|
1830
1971
|
|
|
1972
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
|
|
1973
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1974
|
+
let formHeaders = {};
|
|
1975
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...formHeaders, ...options.headers};
|
|
1976
|
+
|
|
1977
|
+
return {
|
|
1978
|
+
url: toPathString(localVarUrlObj),
|
|
1979
|
+
options: localVarRequestOptions,
|
|
1980
|
+
};
|
|
1981
|
+
},
|
|
1982
|
+
/**
|
|
1983
|
+
*
|
|
1984
|
+
* @summary Retrieve a generated document
|
|
1985
|
+
* @param {string} id
|
|
1986
|
+
* @param {string} [attachmentName] A document file title. This value is reflected back to the client in the fileName header.
|
|
1987
|
+
* @param {*} [options] Override http request option.
|
|
1988
|
+
* @throws {RequiredError}
|
|
1989
|
+
*/
|
|
1990
|
+
getDocumentById: async (id: string, attachmentName?: string, options: any = {}): Promise<RequestArgs> => {
|
|
1991
|
+
// verify required parameter 'id' is not null or undefined
|
|
1992
|
+
assertParamExists('getDocumentById', 'id', id)
|
|
1993
|
+
const localVarPath = `/documents/{id}`
|
|
1994
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1995
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1996
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1997
|
+
let baseOptions;
|
|
1998
|
+
if (configuration) {
|
|
1999
|
+
baseOptions = configuration.baseOptions;
|
|
2000
|
+
}
|
|
2001
|
+
|
|
2002
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
2003
|
+
const localVarHeaderParameter = {} as any;
|
|
2004
|
+
const localVarQueryParameter = {} as any;
|
|
2005
|
+
|
|
2006
|
+
// authentication ApiKeyAuth required
|
|
2007
|
+
await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration)
|
|
2008
|
+
|
|
2009
|
+
// authentication BearerAuth required
|
|
2010
|
+
// http bearer authentication required
|
|
2011
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2012
|
+
|
|
2013
|
+
// authentication CookieAuth required
|
|
2014
|
+
|
|
2015
|
+
if (attachmentName !== undefined) {
|
|
2016
|
+
localVarQueryParameter['attachmentName'] = attachmentName;
|
|
2017
|
+
}
|
|
2018
|
+
|
|
2019
|
+
|
|
2020
|
+
|
|
1831
2021
|
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
|
|
1832
2022
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1833
2023
|
let formHeaders = {};
|
|
@@ -1851,14 +2041,26 @@ export const DocumentsApiFp = function(configuration?: Configuration) {
|
|
|
1851
2041
|
/**
|
|
1852
2042
|
*
|
|
1853
2043
|
* @summary Retrieve a generated document
|
|
1854
|
-
* @param {string}
|
|
2044
|
+
* @param {string} id
|
|
1855
2045
|
* @param {'pdf' | 'pptx' | 'xlsx' | 'csv'} fileType
|
|
1856
2046
|
* @param {string} [attachmentName] A document file title. This value is reflected back to the client in the fileName header.
|
|
1857
2047
|
* @param {*} [options] Override http request option.
|
|
1858
2048
|
* @throws {RequiredError}
|
|
1859
2049
|
*/
|
|
1860
|
-
async getDocument(
|
|
1861
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getDocument(
|
|
2050
|
+
async getDocument(id: string, fileType: 'pdf' | 'pptx' | 'xlsx' | 'csv', attachmentName?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
|
|
2051
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getDocument(id, fileType, attachmentName, options);
|
|
2052
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2053
|
+
},
|
|
2054
|
+
/**
|
|
2055
|
+
*
|
|
2056
|
+
* @summary Retrieve a generated document
|
|
2057
|
+
* @param {string} id
|
|
2058
|
+
* @param {string} [attachmentName] A document file title. This value is reflected back to the client in the fileName header.
|
|
2059
|
+
* @param {*} [options] Override http request option.
|
|
2060
|
+
* @throws {RequiredError}
|
|
2061
|
+
*/
|
|
2062
|
+
async getDocumentById(id: string, attachmentName?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
|
|
2063
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getDocumentById(id, attachmentName, options);
|
|
1862
2064
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1863
2065
|
},
|
|
1864
2066
|
}
|
|
@@ -1874,14 +2076,25 @@ export const DocumentsApiFactory = function (configuration?: Configuration, base
|
|
|
1874
2076
|
/**
|
|
1875
2077
|
*
|
|
1876
2078
|
* @summary Retrieve a generated document
|
|
1877
|
-
* @param {string}
|
|
2079
|
+
* @param {string} id
|
|
1878
2080
|
* @param {'pdf' | 'pptx' | 'xlsx' | 'csv'} fileType
|
|
1879
2081
|
* @param {string} [attachmentName] A document file title. This value is reflected back to the client in the fileName header.
|
|
1880
2082
|
* @param {*} [options] Override http request option.
|
|
1881
2083
|
* @throws {RequiredError}
|
|
1882
2084
|
*/
|
|
1883
|
-
getDocument(
|
|
1884
|
-
return localVarFp.getDocument(
|
|
2085
|
+
getDocument(id: string, fileType: 'pdf' | 'pptx' | 'xlsx' | 'csv', attachmentName?: string, options?: any): AxiosPromise<any> {
|
|
2086
|
+
return localVarFp.getDocument(id, fileType, attachmentName, options).then((request) => request(axios, basePath));
|
|
2087
|
+
},
|
|
2088
|
+
/**
|
|
2089
|
+
*
|
|
2090
|
+
* @summary Retrieve a generated document
|
|
2091
|
+
* @param {string} id
|
|
2092
|
+
* @param {string} [attachmentName] A document file title. This value is reflected back to the client in the fileName header.
|
|
2093
|
+
* @param {*} [options] Override http request option.
|
|
2094
|
+
* @throws {RequiredError}
|
|
2095
|
+
*/
|
|
2096
|
+
getDocumentById(id: string, attachmentName?: string, options?: any): AxiosPromise<any> {
|
|
2097
|
+
return localVarFp.getDocumentById(id, attachmentName, options).then((request) => request(axios, basePath));
|
|
1885
2098
|
},
|
|
1886
2099
|
};
|
|
1887
2100
|
};
|
|
@@ -1896,15 +2109,28 @@ export class DocumentsApi extends BaseAPI {
|
|
|
1896
2109
|
/**
|
|
1897
2110
|
*
|
|
1898
2111
|
* @summary Retrieve a generated document
|
|
1899
|
-
* @param {string}
|
|
2112
|
+
* @param {string} id
|
|
1900
2113
|
* @param {'pdf' | 'pptx' | 'xlsx' | 'csv'} fileType
|
|
1901
2114
|
* @param {string} [attachmentName] A document file title. This value is reflected back to the client in the fileName header.
|
|
1902
2115
|
* @param {*} [options] Override http request option.
|
|
1903
2116
|
* @throws {RequiredError}
|
|
1904
2117
|
* @memberof DocumentsApi
|
|
1905
2118
|
*/
|
|
1906
|
-
public getDocument(
|
|
1907
|
-
return DocumentsApiFp(this.configuration).getDocument(
|
|
2119
|
+
public getDocument(id: string, fileType: 'pdf' | 'pptx' | 'xlsx' | 'csv', attachmentName?: string, options?: any) {
|
|
2120
|
+
return DocumentsApiFp(this.configuration).getDocument(id, fileType, attachmentName, options).then((request) => request(this.axios, this.basePath));
|
|
2121
|
+
}
|
|
2122
|
+
|
|
2123
|
+
/**
|
|
2124
|
+
*
|
|
2125
|
+
* @summary Retrieve a generated document
|
|
2126
|
+
* @param {string} id
|
|
2127
|
+
* @param {string} [attachmentName] A document file title. This value is reflected back to the client in the fileName header.
|
|
2128
|
+
* @param {*} [options] Override http request option.
|
|
2129
|
+
* @throws {RequiredError}
|
|
2130
|
+
* @memberof DocumentsApi
|
|
2131
|
+
*/
|
|
2132
|
+
public getDocumentById(id: string, attachmentName?: string, options?: any) {
|
|
2133
|
+
return DocumentsApiFp(this.configuration).getDocumentById(id, attachmentName, options).then((request) => request(this.axios, this.basePath));
|
|
1908
2134
|
}
|
|
1909
2135
|
}
|
|
1910
2136
|
|
|
@@ -2509,15 +2735,15 @@ export const ImagesApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
2509
2735
|
/**
|
|
2510
2736
|
*
|
|
2511
2737
|
* @summary Retrieves a user uploaded image for use in a template
|
|
2512
|
-
* @param {string}
|
|
2738
|
+
* @param {string} id
|
|
2513
2739
|
* @param {*} [options] Override http request option.
|
|
2514
2740
|
* @throws {RequiredError}
|
|
2515
2741
|
*/
|
|
2516
|
-
getImage: async (
|
|
2517
|
-
// verify required parameter '
|
|
2518
|
-
assertParamExists('getImage', '
|
|
2519
|
-
const localVarPath = `/images/{
|
|
2520
|
-
.replace(`{${"
|
|
2742
|
+
getImage: async (id: string, options: any = {}): Promise<RequestArgs> => {
|
|
2743
|
+
// verify required parameter 'id' is not null or undefined
|
|
2744
|
+
assertParamExists('getImage', 'id', id)
|
|
2745
|
+
const localVarPath = `/images/{id}`
|
|
2746
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2521
2747
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2522
2748
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2523
2749
|
let baseOptions;
|
|
@@ -2615,12 +2841,12 @@ export const ImagesApiFp = function(configuration?: Configuration) {
|
|
|
2615
2841
|
/**
|
|
2616
2842
|
*
|
|
2617
2843
|
* @summary Retrieves a user uploaded image for use in a template
|
|
2618
|
-
* @param {string}
|
|
2844
|
+
* @param {string} id
|
|
2619
2845
|
* @param {*} [options] Override http request option.
|
|
2620
2846
|
* @throws {RequiredError}
|
|
2621
2847
|
*/
|
|
2622
|
-
async getImage(
|
|
2623
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getImage(
|
|
2848
|
+
async getImage(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
|
|
2849
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getImage(id, options);
|
|
2624
2850
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2625
2851
|
},
|
|
2626
2852
|
/**
|
|
@@ -2630,7 +2856,7 @@ export const ImagesApiFp = function(configuration?: Configuration) {
|
|
|
2630
2856
|
* @param {*} [options] Override http request option.
|
|
2631
2857
|
* @throws {RequiredError}
|
|
2632
2858
|
*/
|
|
2633
|
-
async uploadImage(image?: any, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
2859
|
+
async uploadImage(image?: any, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse2004>> {
|
|
2634
2860
|
const localVarAxiosArgs = await localVarAxiosParamCreator.uploadImage(image, options);
|
|
2635
2861
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2636
2862
|
},
|
|
@@ -2647,12 +2873,12 @@ export const ImagesApiFactory = function (configuration?: Configuration, basePat
|
|
|
2647
2873
|
/**
|
|
2648
2874
|
*
|
|
2649
2875
|
* @summary Retrieves a user uploaded image for use in a template
|
|
2650
|
-
* @param {string}
|
|
2876
|
+
* @param {string} id
|
|
2651
2877
|
* @param {*} [options] Override http request option.
|
|
2652
2878
|
* @throws {RequiredError}
|
|
2653
2879
|
*/
|
|
2654
|
-
getImage(
|
|
2655
|
-
return localVarFp.getImage(
|
|
2880
|
+
getImage(id: string, options?: any): AxiosPromise<any> {
|
|
2881
|
+
return localVarFp.getImage(id, options).then((request) => request(axios, basePath));
|
|
2656
2882
|
},
|
|
2657
2883
|
/**
|
|
2658
2884
|
* Uploads an image to the server for use in templates
|
|
@@ -2661,7 +2887,7 @@ export const ImagesApiFactory = function (configuration?: Configuration, basePat
|
|
|
2661
2887
|
* @param {*} [options] Override http request option.
|
|
2662
2888
|
* @throws {RequiredError}
|
|
2663
2889
|
*/
|
|
2664
|
-
uploadImage(image?: any, options?: any): AxiosPromise<
|
|
2890
|
+
uploadImage(image?: any, options?: any): AxiosPromise<InlineResponse2004> {
|
|
2665
2891
|
return localVarFp.uploadImage(image, options).then((request) => request(axios, basePath));
|
|
2666
2892
|
},
|
|
2667
2893
|
};
|
|
@@ -2677,13 +2903,13 @@ export class ImagesApi extends BaseAPI {
|
|
|
2677
2903
|
/**
|
|
2678
2904
|
*
|
|
2679
2905
|
* @summary Retrieves a user uploaded image for use in a template
|
|
2680
|
-
* @param {string}
|
|
2906
|
+
* @param {string} id
|
|
2681
2907
|
* @param {*} [options] Override http request option.
|
|
2682
2908
|
* @throws {RequiredError}
|
|
2683
2909
|
* @memberof ImagesApi
|
|
2684
2910
|
*/
|
|
2685
|
-
public getImage(
|
|
2686
|
-
return ImagesApiFp(this.configuration).getImage(
|
|
2911
|
+
public getImage(id: string, options?: any) {
|
|
2912
|
+
return ImagesApiFp(this.configuration).getImage(id, options).then((request) => request(this.axios, this.basePath));
|
|
2687
2913
|
}
|
|
2688
2914
|
|
|
2689
2915
|
/**
|
|
@@ -3186,7 +3412,7 @@ export const ReportTasksApiFp = function(configuration?: Configuration) {
|
|
|
3186
3412
|
* @param {*} [options] Override http request option.
|
|
3187
3413
|
* @throws {RequiredError}
|
|
3188
3414
|
*/
|
|
3189
|
-
async getReportTasks(pageNum?: number, meta?: { [key: string]: string; }, templateId?: string, perPage?: number, orderBy?: 'title' | 'startOn' | 'endOn' | 'enabled' | 'username' | 'frequency' | 'scheduledJobs.lastFinishedAt' | 'scheduledJobs.nextRunAt' | 'scheduledJobs.lastRunAt' | 'averageTimeToGenerate' | 'id' | 'templateId' | 'report.createdAt', order?: 'asc' | 'desc', filter?: object, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
3415
|
+
async getReportTasks(pageNum?: number, meta?: { [key: string]: string; }, templateId?: string, perPage?: number, orderBy?: 'title' | 'startOn' | 'endOn' | 'enabled' | 'username' | 'frequency' | 'scheduledJobs.lastFinishedAt' | 'scheduledJobs.nextRunAt' | 'scheduledJobs.lastRunAt' | 'averageTimeToGenerate' | 'id' | 'templateId' | 'report.createdAt', order?: 'asc' | 'desc', filter?: object, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse2001>> {
|
|
3190
3416
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getReportTasks(pageNum, meta, templateId, perPage, orderBy, order, filter, options);
|
|
3191
3417
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
3192
3418
|
},
|
|
@@ -3267,7 +3493,7 @@ export const ReportTasksApiFactory = function (configuration?: Configuration, ba
|
|
|
3267
3493
|
* @param {*} [options] Override http request option.
|
|
3268
3494
|
* @throws {RequiredError}
|
|
3269
3495
|
*/
|
|
3270
|
-
getReportTasks(pageNum?: number, meta?: { [key: string]: string; }, templateId?: string, perPage?: number, orderBy?: 'title' | 'startOn' | 'endOn' | 'enabled' | 'username' | 'frequency' | 'scheduledJobs.lastFinishedAt' | 'scheduledJobs.nextRunAt' | 'scheduledJobs.lastRunAt' | 'averageTimeToGenerate' | 'id' | 'templateId' | 'report.createdAt', order?: 'asc' | 'desc', filter?: object, options?: any): AxiosPromise<
|
|
3496
|
+
getReportTasks(pageNum?: number, meta?: { [key: string]: string; }, templateId?: string, perPage?: number, orderBy?: 'title' | 'startOn' | 'endOn' | 'enabled' | 'username' | 'frequency' | 'scheduledJobs.lastFinishedAt' | 'scheduledJobs.nextRunAt' | 'scheduledJobs.lastRunAt' | 'averageTimeToGenerate' | 'id' | 'templateId' | 'report.createdAt', order?: 'asc' | 'desc', filter?: object, options?: any): AxiosPromise<InlineResponse2001> {
|
|
3271
3497
|
return localVarFp.getReportTasks(pageNum, meta, templateId, perPage, orderBy, order, filter, options).then((request) => request(axios, basePath));
|
|
3272
3498
|
},
|
|
3273
3499
|
/**
|
|
@@ -3467,6 +3693,50 @@ export const ReportsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
3467
3693
|
|
|
3468
3694
|
|
|
3469
3695
|
|
|
3696
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
|
|
3697
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3698
|
+
let formHeaders = {};
|
|
3699
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...formHeaders, ...options.headers};
|
|
3700
|
+
|
|
3701
|
+
return {
|
|
3702
|
+
url: toPathString(localVarUrlObj),
|
|
3703
|
+
options: localVarRequestOptions,
|
|
3704
|
+
};
|
|
3705
|
+
},
|
|
3706
|
+
/**
|
|
3707
|
+
*
|
|
3708
|
+
* @summary Get report thumbnail
|
|
3709
|
+
* @param {string} id
|
|
3710
|
+
* @param {*} [options] Override http request option.
|
|
3711
|
+
* @throws {RequiredError}
|
|
3712
|
+
*/
|
|
3713
|
+
getReportThumbnail: async (id: string, options: any = {}): Promise<RequestArgs> => {
|
|
3714
|
+
// verify required parameter 'id' is not null or undefined
|
|
3715
|
+
assertParamExists('getReportThumbnail', 'id', id)
|
|
3716
|
+
const localVarPath = `/reports/{id}/thumbnail`
|
|
3717
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
3718
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3719
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3720
|
+
let baseOptions;
|
|
3721
|
+
if (configuration) {
|
|
3722
|
+
baseOptions = configuration.baseOptions;
|
|
3723
|
+
}
|
|
3724
|
+
|
|
3725
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
3726
|
+
const localVarHeaderParameter = {} as any;
|
|
3727
|
+
const localVarQueryParameter = {} as any;
|
|
3728
|
+
|
|
3729
|
+
// authentication ApiKeyAuth required
|
|
3730
|
+
await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration)
|
|
3731
|
+
|
|
3732
|
+
// authentication BearerAuth required
|
|
3733
|
+
// http bearer authentication required
|
|
3734
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
3735
|
+
|
|
3736
|
+
// authentication CookieAuth required
|
|
3737
|
+
|
|
3738
|
+
|
|
3739
|
+
|
|
3470
3740
|
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
|
|
3471
3741
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3472
3742
|
let formHeaders = {};
|
|
@@ -3630,6 +3900,17 @@ export const ReportsApiFp = function(configuration?: Configuration) {
|
|
|
3630
3900
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getReport(id, options);
|
|
3631
3901
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
3632
3902
|
},
|
|
3903
|
+
/**
|
|
3904
|
+
*
|
|
3905
|
+
* @summary Get report thumbnail
|
|
3906
|
+
* @param {string} id
|
|
3907
|
+
* @param {*} [options] Override http request option.
|
|
3908
|
+
* @throws {RequiredError}
|
|
3909
|
+
*/
|
|
3910
|
+
async getReportThumbnail(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
|
|
3911
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getReportThumbnail(id, options);
|
|
3912
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
3913
|
+
},
|
|
3633
3914
|
/**
|
|
3634
3915
|
*
|
|
3635
3916
|
* @summary List reports
|
|
@@ -3642,7 +3923,7 @@ export const ReportsApiFp = function(configuration?: Configuration) {
|
|
|
3642
3923
|
* @param {*} [options] Override http request option.
|
|
3643
3924
|
* @throws {RequiredError}
|
|
3644
3925
|
*/
|
|
3645
|
-
async getReports(pageNum?: number, perPage?: number, orderBy?: 'title' | 'createdAt', order?: 'asc' | 'desc', tagId?: string, reportTaskId?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
3926
|
+
async getReports(pageNum?: number, perPage?: number, orderBy?: 'title' | 'createdAt', order?: 'asc' | 'desc', tagId?: string, reportTaskId?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse2002>> {
|
|
3646
3927
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getReports(pageNum, perPage, orderBy, order, tagId, reportTaskId, options);
|
|
3647
3928
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
3648
3929
|
},
|
|
@@ -3688,6 +3969,16 @@ export const ReportsApiFactory = function (configuration?: Configuration, basePa
|
|
|
3688
3969
|
getReport(id: string, options?: any): AxiosPromise<Report> {
|
|
3689
3970
|
return localVarFp.getReport(id, options).then((request) => request(axios, basePath));
|
|
3690
3971
|
},
|
|
3972
|
+
/**
|
|
3973
|
+
*
|
|
3974
|
+
* @summary Get report thumbnail
|
|
3975
|
+
* @param {string} id
|
|
3976
|
+
* @param {*} [options] Override http request option.
|
|
3977
|
+
* @throws {RequiredError}
|
|
3978
|
+
*/
|
|
3979
|
+
getReportThumbnail(id: string, options?: any): AxiosPromise<any> {
|
|
3980
|
+
return localVarFp.getReportThumbnail(id, options).then((request) => request(axios, basePath));
|
|
3981
|
+
},
|
|
3691
3982
|
/**
|
|
3692
3983
|
*
|
|
3693
3984
|
* @summary List reports
|
|
@@ -3700,7 +3991,7 @@ export const ReportsApiFactory = function (configuration?: Configuration, basePa
|
|
|
3700
3991
|
* @param {*} [options] Override http request option.
|
|
3701
3992
|
* @throws {RequiredError}
|
|
3702
3993
|
*/
|
|
3703
|
-
getReports(pageNum?: number, perPage?: number, orderBy?: 'title' | 'createdAt', order?: 'asc' | 'desc', tagId?: string, reportTaskId?: string, options?: any): AxiosPromise<
|
|
3994
|
+
getReports(pageNum?: number, perPage?: number, orderBy?: 'title' | 'createdAt', order?: 'asc' | 'desc', tagId?: string, reportTaskId?: string, options?: any): AxiosPromise<InlineResponse2002> {
|
|
3704
3995
|
return localVarFp.getReports(pageNum, perPage, orderBy, order, tagId, reportTaskId, options).then((request) => request(axios, basePath));
|
|
3705
3996
|
},
|
|
3706
3997
|
/**
|
|
@@ -3748,6 +4039,18 @@ export class ReportsApi extends BaseAPI {
|
|
|
3748
4039
|
return ReportsApiFp(this.configuration).getReport(id, options).then((request) => request(this.axios, this.basePath));
|
|
3749
4040
|
}
|
|
3750
4041
|
|
|
4042
|
+
/**
|
|
4043
|
+
*
|
|
4044
|
+
* @summary Get report thumbnail
|
|
4045
|
+
* @param {string} id
|
|
4046
|
+
* @param {*} [options] Override http request option.
|
|
4047
|
+
* @throws {RequiredError}
|
|
4048
|
+
* @memberof ReportsApi
|
|
4049
|
+
*/
|
|
4050
|
+
public getReportThumbnail(id: string, options?: any) {
|
|
4051
|
+
return ReportsApiFp(this.configuration).getReportThumbnail(id, options).then((request) => request(this.axios, this.basePath));
|
|
4052
|
+
}
|
|
4053
|
+
|
|
3751
4054
|
/**
|
|
3752
4055
|
*
|
|
3753
4056
|
* @summary List reports
|
|
@@ -3998,6 +4301,50 @@ export const TemplatesApiAxiosParamCreator = function (configuration?: Configura
|
|
|
3998
4301
|
|
|
3999
4302
|
|
|
4000
4303
|
|
|
4304
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
|
|
4305
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4306
|
+
let formHeaders = {};
|
|
4307
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...formHeaders, ...options.headers};
|
|
4308
|
+
|
|
4309
|
+
return {
|
|
4310
|
+
url: toPathString(localVarUrlObj),
|
|
4311
|
+
options: localVarRequestOptions,
|
|
4312
|
+
};
|
|
4313
|
+
},
|
|
4314
|
+
/**
|
|
4315
|
+
*
|
|
4316
|
+
* @summary Get template thumbnail
|
|
4317
|
+
* @param {string} id
|
|
4318
|
+
* @param {*} [options] Override http request option.
|
|
4319
|
+
* @throws {RequiredError}
|
|
4320
|
+
*/
|
|
4321
|
+
getTemplateThumbnail: async (id: string, options: any = {}): Promise<RequestArgs> => {
|
|
4322
|
+
// verify required parameter 'id' is not null or undefined
|
|
4323
|
+
assertParamExists('getTemplateThumbnail', 'id', id)
|
|
4324
|
+
const localVarPath = `/templates/{id}/thumbnail`
|
|
4325
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4326
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4327
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4328
|
+
let baseOptions;
|
|
4329
|
+
if (configuration) {
|
|
4330
|
+
baseOptions = configuration.baseOptions;
|
|
4331
|
+
}
|
|
4332
|
+
|
|
4333
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
4334
|
+
const localVarHeaderParameter = {} as any;
|
|
4335
|
+
const localVarQueryParameter = {} as any;
|
|
4336
|
+
|
|
4337
|
+
// authentication ApiKeyAuth required
|
|
4338
|
+
await setApiKeyToObject(localVarHeaderParameter, "X-API-KEY", configuration)
|
|
4339
|
+
|
|
4340
|
+
// authentication BearerAuth required
|
|
4341
|
+
// http bearer authentication required
|
|
4342
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
4343
|
+
|
|
4344
|
+
// authentication CookieAuth required
|
|
4345
|
+
|
|
4346
|
+
|
|
4347
|
+
|
|
4001
4348
|
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
|
|
4002
4349
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4003
4350
|
let formHeaders = {};
|
|
@@ -4271,6 +4618,17 @@ export const TemplatesApiFp = function(configuration?: Configuration) {
|
|
|
4271
4618
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getTemplate(id, options);
|
|
4272
4619
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4273
4620
|
},
|
|
4621
|
+
/**
|
|
4622
|
+
*
|
|
4623
|
+
* @summary Get template thumbnail
|
|
4624
|
+
* @param {string} id
|
|
4625
|
+
* @param {*} [options] Override http request option.
|
|
4626
|
+
* @throws {RequiredError}
|
|
4627
|
+
*/
|
|
4628
|
+
async getTemplateThumbnail(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
|
|
4629
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getTemplateThumbnail(id, options);
|
|
4630
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4631
|
+
},
|
|
4274
4632
|
/**
|
|
4275
4633
|
*
|
|
4276
4634
|
* @summary List report templates
|
|
@@ -4278,7 +4636,7 @@ export const TemplatesApiFp = function(configuration?: Configuration) {
|
|
|
4278
4636
|
* @param {*} [options] Override http request option.
|
|
4279
4637
|
* @throws {RequiredError}
|
|
4280
4638
|
*/
|
|
4281
|
-
async getTemplates(pageNum?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
4639
|
+
async getTemplates(pageNum?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse2003>> {
|
|
4282
4640
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getTemplates(pageNum, options);
|
|
4283
4641
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4284
4642
|
},
|
|
@@ -4377,6 +4735,16 @@ export const TemplatesApiFactory = function (configuration?: Configuration, base
|
|
|
4377
4735
|
getTemplate(id: string, options?: any): AxiosPromise<Template> {
|
|
4378
4736
|
return localVarFp.getTemplate(id, options).then((request) => request(axios, basePath));
|
|
4379
4737
|
},
|
|
4738
|
+
/**
|
|
4739
|
+
*
|
|
4740
|
+
* @summary Get template thumbnail
|
|
4741
|
+
* @param {string} id
|
|
4742
|
+
* @param {*} [options] Override http request option.
|
|
4743
|
+
* @throws {RequiredError}
|
|
4744
|
+
*/
|
|
4745
|
+
getTemplateThumbnail(id: string, options?: any): AxiosPromise<any> {
|
|
4746
|
+
return localVarFp.getTemplateThumbnail(id, options).then((request) => request(axios, basePath));
|
|
4747
|
+
},
|
|
4380
4748
|
/**
|
|
4381
4749
|
*
|
|
4382
4750
|
* @summary List report templates
|
|
@@ -4384,7 +4752,7 @@ export const TemplatesApiFactory = function (configuration?: Configuration, base
|
|
|
4384
4752
|
* @param {*} [options] Override http request option.
|
|
4385
4753
|
* @throws {RequiredError}
|
|
4386
4754
|
*/
|
|
4387
|
-
getTemplates(pageNum?: number, options?: any): AxiosPromise<
|
|
4755
|
+
getTemplates(pageNum?: number, options?: any): AxiosPromise<InlineResponse2003> {
|
|
4388
4756
|
return localVarFp.getTemplates(pageNum, options).then((request) => request(axios, basePath));
|
|
4389
4757
|
},
|
|
4390
4758
|
/**
|
|
@@ -4489,6 +4857,18 @@ export class TemplatesApi extends BaseAPI {
|
|
|
4489
4857
|
return TemplatesApiFp(this.configuration).getTemplate(id, options).then((request) => request(this.axios, this.basePath));
|
|
4490
4858
|
}
|
|
4491
4859
|
|
|
4860
|
+
/**
|
|
4861
|
+
*
|
|
4862
|
+
* @summary Get template thumbnail
|
|
4863
|
+
* @param {string} id
|
|
4864
|
+
* @param {*} [options] Override http request option.
|
|
4865
|
+
* @throws {RequiredError}
|
|
4866
|
+
* @memberof TemplatesApi
|
|
4867
|
+
*/
|
|
4868
|
+
public getTemplateThumbnail(id: string, options?: any) {
|
|
4869
|
+
return TemplatesApiFp(this.configuration).getTemplateThumbnail(id, options).then((request) => request(this.axios, this.basePath));
|
|
4870
|
+
}
|
|
4871
|
+
|
|
4492
4872
|
/**
|
|
4493
4873
|
*
|
|
4494
4874
|
* @summary List report templates
|