@connectedxm/admin-sdk 13.1.0 → 13.2.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.
@@ -7,11 +7,13 @@ All URIs are relative to *https://admin-api.connected.dev*
7
7
  |[**createCustomReport**](#createcustomreport) | **POST** /reports/{standard} | Create a custom report from a standard report|
8
8
  |[**deleteCustomReport**](#deletecustomreport) | **DELETE** /reports/custom/{reportId} | Delete a custom report|
9
9
  |[**deleteCustomReportSchedule**](#deletecustomreportschedule) | **DELETE** /reports/custom/{reportId}/schedule | Delete a custom report\'s schedule|
10
+ |[**downloadReport**](#downloadreport) | **POST** /reports/{standard}/download | Build a standard report as a downloadable CSV|
10
11
  |[**exportCustomReport**](#exportcustomreport) | **POST** /reports/custom/{reportId}/export | Export a custom report|
11
12
  |[**getCustomReport**](#getcustomreport) | **GET** /reports/custom/{reportId} | Get a custom report\'s configuration|
12
13
  |[**getCustomReportSchedule**](#getcustomreportschedule) | **GET** /reports/custom/{reportId}/schedule | Get a custom report\'s send schedule|
13
14
  |[**getCustomReports**](#getcustomreports) | **GET** /reports/custom | List an organization\'s custom reports|
14
15
  |[**getReport**](#getreport) | **GET** /reports/{standard} | Run a standard report and fetch all its rows|
16
+ |[**getReportExport**](#getreportexport) | **GET** /reports/exports/{exportId} | Get the status of a report download|
15
17
  |[**getReports**](#getreports) | **GET** /reports | List available standard reports|
16
18
  |[**updateCustomReport**](#updatecustomreport) | **PUT** /reports/custom/{reportId} | Update a custom report|
17
19
  |[**upsertCustomReportSchedule**](#upsertcustomreportschedule) | **POST** /reports/custom/{reportId}/schedule | Create or update a custom report\'s schedule|
@@ -166,6 +168,61 @@ const { status, data } = await apiInstance.deleteCustomReportSchedule(
166
168
  - **Accept**: application/json
167
169
 
168
170
 
171
+ ### HTTP response details
172
+ | Status code | Description | Response headers |
173
+ |-------------|-------------|------------------|
174
+ |**200** | Successful response | - |
175
+
176
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
177
+
178
+ # **downloadReport**
179
+ > DownloadReport200Response downloadReport(reportFilters)
180
+
181
+ Starts an asynchronous server-side build of every row and column of a standard report and returns a pending export; poll the export by ID until it resolves with a signed CSV download link valid for 24 hours. Requires read permission on the reports resource plus the domain permissions declared by the standard report.
182
+
183
+ ### Example
184
+
185
+ ```typescript
186
+ import {
187
+ ReportsApi,
188
+ Configuration,
189
+ ReportFilters
190
+ } from '@connectedxm/admin-sdk';
191
+
192
+ const configuration = new Configuration();
193
+ const apiInstance = new ReportsApi(configuration);
194
+
195
+ let standard: string; //The standard identifier (default to undefined)
196
+ let reportFilters: ReportFilters; //
197
+
198
+ const { status, data } = await apiInstance.downloadReport(
199
+ standard,
200
+ reportFilters
201
+ );
202
+ ```
203
+
204
+ ### Parameters
205
+
206
+ |Name | Type | Description | Notes|
207
+ |------------- | ------------- | ------------- | -------------|
208
+ | **reportFilters** | **ReportFilters**| | |
209
+ | **standard** | [**string**] | The standard identifier | defaults to undefined|
210
+
211
+
212
+ ### Return type
213
+
214
+ **DownloadReport200Response**
215
+
216
+ ### Authorization
217
+
218
+ [ApiKeyAuth](../README.md#ApiKeyAuth), [OrganizationId](../README.md#OrganizationId)
219
+
220
+ ### HTTP request headers
221
+
222
+ - **Content-Type**: application/json
223
+ - **Accept**: application/json
224
+
225
+
169
226
  ### HTTP response details
170
227
  | Status code | Description | Response headers |
171
228
  |-------------|-------------|------------------|
@@ -500,6 +557,57 @@ const { status, data } = await apiInstance.getReport(
500
557
  - **Accept**: application/json
501
558
 
502
559
 
560
+ ### HTTP response details
561
+ | Status code | Description | Response headers |
562
+ |-------------|-------------|------------------|
563
+ |**200** | Successful response | - |
564
+
565
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
566
+
567
+ # **getReportExport**
568
+ > GetReportExport200Response getReportExport()
569
+
570
+ Retrieves a report download started with DownloadReport: its status (pending, resolved or failed), the signed CSV download link and its expiration once resolved, or the reason it failed. Requires read permission on the reports resource plus the domain permissions declared by the standard report.
571
+
572
+ ### Example
573
+
574
+ ```typescript
575
+ import {
576
+ ReportsApi,
577
+ Configuration
578
+ } from '@connectedxm/admin-sdk';
579
+
580
+ const configuration = new Configuration();
581
+ const apiInstance = new ReportsApi(configuration);
582
+
583
+ let exportId: string; //The export identifier (default to undefined)
584
+
585
+ const { status, data } = await apiInstance.getReportExport(
586
+ exportId
587
+ );
588
+ ```
589
+
590
+ ### Parameters
591
+
592
+ |Name | Type | Description | Notes|
593
+ |------------- | ------------- | ------------- | -------------|
594
+ | **exportId** | [**string**] | The export identifier | defaults to undefined|
595
+
596
+
597
+ ### Return type
598
+
599
+ **GetReportExport200Response**
600
+
601
+ ### Authorization
602
+
603
+ [ApiKeyAuth](../README.md#ApiKeyAuth), [OrganizationId](../README.md#OrganizationId)
604
+
605
+ ### HTTP request headers
606
+
607
+ - **Content-Type**: Not defined
608
+ - **Accept**: application/json
609
+
610
+
503
611
  ### HTTP response details
504
612
  | Status code | Description | Response headers |
505
613
  |-------------|-------------|------------------|
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@connectedxm/admin-sdk",
3
- "version": "13.1.0",
3
+ "version": "13.2.0",
4
4
  "description": "OpenAPI client for @connectedxm/admin-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {