@connectedxm/admin-sdk 13.1.0 → 13.3.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/dist/esm/api.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Connected Admin API
5
5
  * The Admin API allows you to manage your Connected community programmatically.
6
6
  *
7
- * The version of the OpenAPI document: 13.1.0
7
+ * The version of the OpenAPI document: 13.3.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -652,6 +652,10 @@ export var DelegateRole;
652
652
  DelegateRole["Manager"] = "manager";
653
653
  DelegateRole["Member"] = "member";
654
654
  })(DelegateRole || (DelegateRole = {}));
655
+ export var DownloadReport200ResponseStatusEnum;
656
+ (function (DownloadReport200ResponseStatusEnum) {
657
+ DownloadReport200ResponseStatusEnum["Ok"] = "ok";
658
+ })(DownloadReport200ResponseStatusEnum || (DownloadReport200ResponseStatusEnum = {}));
655
659
  export var EmailCodeAuth;
656
660
  (function (EmailCodeAuth) {
657
661
  EmailCodeAuth["Disabled"] = "disabled";
@@ -1602,6 +1606,14 @@ export var GetEvents200ResponseStatusEnum;
1602
1606
  (function (GetEvents200ResponseStatusEnum) {
1603
1607
  GetEvents200ResponseStatusEnum["Ok"] = "ok";
1604
1608
  })(GetEvents200ResponseStatusEnum || (GetEvents200ResponseStatusEnum = {}));
1609
+ export var GetExport200ResponseStatusEnum;
1610
+ (function (GetExport200ResponseStatusEnum) {
1611
+ GetExport200ResponseStatusEnum["Ok"] = "ok";
1612
+ })(GetExport200ResponseStatusEnum || (GetExport200ResponseStatusEnum = {}));
1613
+ export var GetExports200ResponseStatusEnum;
1614
+ (function (GetExports200ResponseStatusEnum) {
1615
+ GetExports200ResponseStatusEnum["Ok"] = "ok";
1616
+ })(GetExports200ResponseStatusEnum || (GetExports200ResponseStatusEnum = {}));
1605
1617
  export var GetFiles200ResponseStatusEnum;
1606
1618
  (function (GetFiles200ResponseStatusEnum) {
1607
1619
  GetFiles200ResponseStatusEnum["Ok"] = "ok";
@@ -1874,6 +1886,10 @@ export var GetReport200ResponseStatusEnum;
1874
1886
  (function (GetReport200ResponseStatusEnum) {
1875
1887
  GetReport200ResponseStatusEnum["Ok"] = "ok";
1876
1888
  })(GetReport200ResponseStatusEnum || (GetReport200ResponseStatusEnum = {}));
1889
+ export var GetReportExport200ResponseStatusEnum;
1890
+ (function (GetReportExport200ResponseStatusEnum) {
1891
+ GetReportExport200ResponseStatusEnum["Ok"] = "ok";
1892
+ })(GetReportExport200ResponseStatusEnum || (GetReportExport200ResponseStatusEnum = {}));
1877
1893
  export var GetReports200ResponseStatusEnum;
1878
1894
  (function (GetReports200ResponseStatusEnum) {
1879
1895
  GetReports200ResponseStatusEnum["Ok"] = "ok";
@@ -75427,6 +75443,194 @@ export class EventsTranslationsApi extends BaseAPI {
75427
75443
  return EventsTranslationsApiFp(this.configuration).updateEventTranslation(requestParameters.eventId, requestParameters.locale, requestParameters.eventTranslationUpdateInputs, options).then((request) => request(this.axios, this.basePath));
75428
75444
  }
75429
75445
  }
75446
+ /**
75447
+ * ExportsApi - axios parameter creator
75448
+ */
75449
+ export const ExportsApiAxiosParamCreator = function (configuration) {
75450
+ return {
75451
+ /**
75452
+ * Returns the status, message and download link of a single data export job by its ID; requires organization-level read access. A report export\'s download link is null unless the caller can read that report.
75453
+ * @summary Get a single export
75454
+ * @param {string} exportId The export identifier
75455
+ * @param {*} [options] Override http request option.
75456
+ * @throws {RequiredError}
75457
+ */
75458
+ getExport: (exportId_1, ...args_1) => __awaiter(this, [exportId_1, ...args_1], void 0, function* (exportId, options = {}) {
75459
+ // verify required parameter 'exportId' is not null or undefined
75460
+ assertParamExists('getExport', 'exportId', exportId);
75461
+ const localVarPath = `/exports/{exportId}`
75462
+ .replace('{exportId}', encodeURIComponent(String(exportId)));
75463
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
75464
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
75465
+ let baseOptions;
75466
+ if (configuration) {
75467
+ baseOptions = configuration.baseOptions;
75468
+ }
75469
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
75470
+ const localVarHeaderParameter = {};
75471
+ const localVarQueryParameter = {};
75472
+ // authentication ApiKeyAuth required
75473
+ yield setApiKeyToObject(localVarHeaderParameter, "api-key", configuration);
75474
+ // authentication OrganizationId required
75475
+ yield setApiKeyToObject(localVarHeaderParameter, "organization", configuration);
75476
+ localVarHeaderParameter['Accept'] = 'application/json';
75477
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
75478
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
75479
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
75480
+ return {
75481
+ url: toPathString(localVarUrlObj),
75482
+ options: localVarRequestOptions,
75483
+ };
75484
+ }),
75485
+ /**
75486
+ * Returns a paginated list of the organization\'s data export jobs, newest first, optionally filtered by status and searchable by export type; requires organization-level read access. A report export\'s download link is null unless the caller can read that report.
75487
+ * @summary List data exports
75488
+ * @param {ExportStatus} [status] Filter by status
75489
+ * @param {number} [page] Page number
75490
+ * @param {number} [pageSize] Number of items per page
75491
+ * @param {string} [orderBy] Field to order by
75492
+ * @param {string} [search] Search query
75493
+ * @param {*} [options] Override http request option.
75494
+ * @throws {RequiredError}
75495
+ */
75496
+ getExports: (status_1, page_1, pageSize_1, orderBy_1, search_1, ...args_1) => __awaiter(this, [status_1, page_1, pageSize_1, orderBy_1, search_1, ...args_1], void 0, function* (status, page, pageSize, orderBy, search, options = {}) {
75497
+ const localVarPath = `/exports`;
75498
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
75499
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
75500
+ let baseOptions;
75501
+ if (configuration) {
75502
+ baseOptions = configuration.baseOptions;
75503
+ }
75504
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
75505
+ const localVarHeaderParameter = {};
75506
+ const localVarQueryParameter = {};
75507
+ // authentication ApiKeyAuth required
75508
+ yield setApiKeyToObject(localVarHeaderParameter, "api-key", configuration);
75509
+ // authentication OrganizationId required
75510
+ yield setApiKeyToObject(localVarHeaderParameter, "organization", configuration);
75511
+ if (status !== undefined) {
75512
+ localVarQueryParameter['status'] = status;
75513
+ }
75514
+ if (page !== undefined) {
75515
+ localVarQueryParameter['page'] = page;
75516
+ }
75517
+ if (pageSize !== undefined) {
75518
+ localVarQueryParameter['pageSize'] = pageSize;
75519
+ }
75520
+ if (orderBy !== undefined) {
75521
+ localVarQueryParameter['orderBy'] = orderBy;
75522
+ }
75523
+ if (search !== undefined) {
75524
+ localVarQueryParameter['search'] = search;
75525
+ }
75526
+ localVarHeaderParameter['Accept'] = 'application/json';
75527
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
75528
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
75529
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
75530
+ return {
75531
+ url: toPathString(localVarUrlObj),
75532
+ options: localVarRequestOptions,
75533
+ };
75534
+ }),
75535
+ };
75536
+ };
75537
+ /**
75538
+ * ExportsApi - functional programming interface
75539
+ */
75540
+ export const ExportsApiFp = function (configuration) {
75541
+ const localVarAxiosParamCreator = ExportsApiAxiosParamCreator(configuration);
75542
+ return {
75543
+ /**
75544
+ * Returns the status, message and download link of a single data export job by its ID; requires organization-level read access. A report export\'s download link is null unless the caller can read that report.
75545
+ * @summary Get a single export
75546
+ * @param {string} exportId The export identifier
75547
+ * @param {*} [options] Override http request option.
75548
+ * @throws {RequiredError}
75549
+ */
75550
+ getExport(exportId, options) {
75551
+ return __awaiter(this, void 0, void 0, function* () {
75552
+ var _a, _b, _c;
75553
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getExport(exportId, options);
75554
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
75555
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ExportsApi.getExport']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
75556
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
75557
+ });
75558
+ },
75559
+ /**
75560
+ * Returns a paginated list of the organization\'s data export jobs, newest first, optionally filtered by status and searchable by export type; requires organization-level read access. A report export\'s download link is null unless the caller can read that report.
75561
+ * @summary List data exports
75562
+ * @param {ExportStatus} [status] Filter by status
75563
+ * @param {number} [page] Page number
75564
+ * @param {number} [pageSize] Number of items per page
75565
+ * @param {string} [orderBy] Field to order by
75566
+ * @param {string} [search] Search query
75567
+ * @param {*} [options] Override http request option.
75568
+ * @throws {RequiredError}
75569
+ */
75570
+ getExports(status, page, pageSize, orderBy, search, options) {
75571
+ return __awaiter(this, void 0, void 0, function* () {
75572
+ var _a, _b, _c;
75573
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getExports(status, page, pageSize, orderBy, search, options);
75574
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
75575
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ExportsApi.getExports']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
75576
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
75577
+ });
75578
+ },
75579
+ };
75580
+ };
75581
+ /**
75582
+ * ExportsApi - factory interface
75583
+ */
75584
+ export const ExportsApiFactory = function (configuration, basePath, axios) {
75585
+ const localVarFp = ExportsApiFp(configuration);
75586
+ return {
75587
+ /**
75588
+ * Returns the status, message and download link of a single data export job by its ID; requires organization-level read access. A report export\'s download link is null unless the caller can read that report.
75589
+ * @summary Get a single export
75590
+ * @param {ExportsApiGetExportRequest} requestParameters Request parameters.
75591
+ * @param {*} [options] Override http request option.
75592
+ * @throws {RequiredError}
75593
+ */
75594
+ getExport(requestParameters, options) {
75595
+ return localVarFp.getExport(requestParameters.exportId, options).then((request) => request(axios, basePath));
75596
+ },
75597
+ /**
75598
+ * Returns a paginated list of the organization\'s data export jobs, newest first, optionally filtered by status and searchable by export type; requires organization-level read access. A report export\'s download link is null unless the caller can read that report.
75599
+ * @summary List data exports
75600
+ * @param {ExportsApiGetExportsRequest} requestParameters Request parameters.
75601
+ * @param {*} [options] Override http request option.
75602
+ * @throws {RequiredError}
75603
+ */
75604
+ getExports(requestParameters = {}, options) {
75605
+ return localVarFp.getExports(requestParameters.status, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
75606
+ },
75607
+ };
75608
+ };
75609
+ /**
75610
+ * ExportsApi - object-oriented interface
75611
+ */
75612
+ export class ExportsApi extends BaseAPI {
75613
+ /**
75614
+ * Returns the status, message and download link of a single data export job by its ID; requires organization-level read access. A report export\'s download link is null unless the caller can read that report.
75615
+ * @summary Get a single export
75616
+ * @param {ExportsApiGetExportRequest} requestParameters Request parameters.
75617
+ * @param {*} [options] Override http request option.
75618
+ * @throws {RequiredError}
75619
+ */
75620
+ getExport(requestParameters, options) {
75621
+ return ExportsApiFp(this.configuration).getExport(requestParameters.exportId, options).then((request) => request(this.axios, this.basePath));
75622
+ }
75623
+ /**
75624
+ * Returns a paginated list of the organization\'s data export jobs, newest first, optionally filtered by status and searchable by export type; requires organization-level read access. A report export\'s download link is null unless the caller can read that report.
75625
+ * @summary List data exports
75626
+ * @param {ExportsApiGetExportsRequest} requestParameters Request parameters.
75627
+ * @param {*} [options] Override http request option.
75628
+ * @throws {RequiredError}
75629
+ */
75630
+ getExports(requestParameters = {}, options) {
75631
+ return ExportsApiFp(this.configuration).getExports(requestParameters.status, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
75632
+ }
75633
+ }
75430
75634
  /**
75431
75635
  * FilesApi - axios parameter creator
75432
75636
  */
@@ -94923,6 +95127,45 @@ export const ReportsApiAxiosParamCreator = function (configuration) {
94923
95127
  options: localVarRequestOptions,
94924
95128
  };
94925
95129
  }),
95130
+ /**
95131
+ * 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.
95132
+ * @summary Build a standard report as a downloadable CSV
95133
+ * @param {string} standard The standard identifier
95134
+ * @param {ReportFilters} reportFilters
95135
+ * @param {*} [options] Override http request option.
95136
+ * @throws {RequiredError}
95137
+ */
95138
+ downloadReport: (standard_1, reportFilters_1, ...args_1) => __awaiter(this, [standard_1, reportFilters_1, ...args_1], void 0, function* (standard, reportFilters, options = {}) {
95139
+ // verify required parameter 'standard' is not null or undefined
95140
+ assertParamExists('downloadReport', 'standard', standard);
95141
+ // verify required parameter 'reportFilters' is not null or undefined
95142
+ assertParamExists('downloadReport', 'reportFilters', reportFilters);
95143
+ const localVarPath = `/reports/{standard}/download`
95144
+ .replace('{standard}', encodeURIComponent(String(standard)));
95145
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
95146
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
95147
+ let baseOptions;
95148
+ if (configuration) {
95149
+ baseOptions = configuration.baseOptions;
95150
+ }
95151
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
95152
+ const localVarHeaderParameter = {};
95153
+ const localVarQueryParameter = {};
95154
+ // authentication ApiKeyAuth required
95155
+ yield setApiKeyToObject(localVarHeaderParameter, "api-key", configuration);
95156
+ // authentication OrganizationId required
95157
+ yield setApiKeyToObject(localVarHeaderParameter, "organization", configuration);
95158
+ localVarHeaderParameter['Content-Type'] = 'application/json';
95159
+ localVarHeaderParameter['Accept'] = 'application/json';
95160
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
95161
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
95162
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
95163
+ localVarRequestOptions.data = serializeDataIfNeeded(reportFilters, localVarRequestOptions, configuration);
95164
+ return {
95165
+ url: toPathString(localVarUrlObj),
95166
+ options: localVarRequestOptions,
95167
+ };
95168
+ }),
94926
95169
  /**
94927
95170
  * Kicks off an asynchronous export of a custom report\'s data, optionally emailing the resulting file to a specified address in addition to the requesting user, and requires read permission on the reports domain plus any domains associated with the report\'s standard type.
94928
95171
  * @summary Export a custom report
@@ -95198,6 +95441,40 @@ export const ReportsApiAxiosParamCreator = function (configuration) {
95198
95441
  options: localVarRequestOptions,
95199
95442
  };
95200
95443
  }),
95444
+ /**
95445
+ * 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.
95446
+ * @summary Get the status of a report download
95447
+ * @param {string} exportId The export identifier
95448
+ * @param {*} [options] Override http request option.
95449
+ * @throws {RequiredError}
95450
+ */
95451
+ getReportExport: (exportId_1, ...args_1) => __awaiter(this, [exportId_1, ...args_1], void 0, function* (exportId, options = {}) {
95452
+ // verify required parameter 'exportId' is not null or undefined
95453
+ assertParamExists('getReportExport', 'exportId', exportId);
95454
+ const localVarPath = `/reports/exports/{exportId}`
95455
+ .replace('{exportId}', encodeURIComponent(String(exportId)));
95456
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
95457
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
95458
+ let baseOptions;
95459
+ if (configuration) {
95460
+ baseOptions = configuration.baseOptions;
95461
+ }
95462
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
95463
+ const localVarHeaderParameter = {};
95464
+ const localVarQueryParameter = {};
95465
+ // authentication ApiKeyAuth required
95466
+ yield setApiKeyToObject(localVarHeaderParameter, "api-key", configuration);
95467
+ // authentication OrganizationId required
95468
+ yield setApiKeyToObject(localVarHeaderParameter, "organization", configuration);
95469
+ localVarHeaderParameter['Accept'] = 'application/json';
95470
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
95471
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
95472
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
95473
+ return {
95474
+ url: toPathString(localVarUrlObj),
95475
+ options: localVarRequestOptions,
95476
+ };
95477
+ }),
95201
95478
  /**
95202
95479
  * Returns the list of standard reports available to the organization, filtered by report type and further filtered to only those reports whose required permission domains the caller can read; requires the `read:reports` permission.
95203
95480
  * @summary List available standard reports
@@ -95369,6 +95646,23 @@ export const ReportsApiFp = function (configuration) {
95369
95646
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
95370
95647
  });
95371
95648
  },
95649
+ /**
95650
+ * 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.
95651
+ * @summary Build a standard report as a downloadable CSV
95652
+ * @param {string} standard The standard identifier
95653
+ * @param {ReportFilters} reportFilters
95654
+ * @param {*} [options] Override http request option.
95655
+ * @throws {RequiredError}
95656
+ */
95657
+ downloadReport(standard, reportFilters, options) {
95658
+ return __awaiter(this, void 0, void 0, function* () {
95659
+ var _a, _b, _c;
95660
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.downloadReport(standard, reportFilters, options);
95661
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
95662
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ReportsApi.downloadReport']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
95663
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
95664
+ });
95665
+ },
95372
95666
  /**
95373
95667
  * Kicks off an asynchronous export of a custom report\'s data, optionally emailing the resulting file to a specified address in addition to the requesting user, and requires read permission on the reports domain plus any domains associated with the report\'s standard type.
95374
95668
  * @summary Export a custom report
@@ -95475,6 +95769,22 @@ export const ReportsApiFp = function (configuration) {
95475
95769
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
95476
95770
  });
95477
95771
  },
95772
+ /**
95773
+ * 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.
95774
+ * @summary Get the status of a report download
95775
+ * @param {string} exportId The export identifier
95776
+ * @param {*} [options] Override http request option.
95777
+ * @throws {RequiredError}
95778
+ */
95779
+ getReportExport(exportId, options) {
95780
+ return __awaiter(this, void 0, void 0, function* () {
95781
+ var _a, _b, _c;
95782
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getReportExport(exportId, options);
95783
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
95784
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ReportsApi.getReportExport']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
95785
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
95786
+ });
95787
+ },
95478
95788
  /**
95479
95789
  * Returns the list of standard reports available to the organization, filtered by report type and further filtered to only those reports whose required permission domains the caller can read; requires the `read:reports` permission.
95480
95790
  * @summary List available standard reports
@@ -95563,6 +95873,16 @@ export const ReportsApiFactory = function (configuration, basePath, axios) {
95563
95873
  deleteCustomReportSchedule(requestParameters, options) {
95564
95874
  return localVarFp.deleteCustomReportSchedule(requestParameters.reportId, options).then((request) => request(axios, basePath));
95565
95875
  },
95876
+ /**
95877
+ * 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.
95878
+ * @summary Build a standard report as a downloadable CSV
95879
+ * @param {ReportsApiDownloadReportRequest} requestParameters Request parameters.
95880
+ * @param {*} [options] Override http request option.
95881
+ * @throws {RequiredError}
95882
+ */
95883
+ downloadReport(requestParameters, options) {
95884
+ return localVarFp.downloadReport(requestParameters.standard, requestParameters.reportFilters, options).then((request) => request(axios, basePath));
95885
+ },
95566
95886
  /**
95567
95887
  * Kicks off an asynchronous export of a custom report\'s data, optionally emailing the resulting file to a specified address in addition to the requesting user, and requires read permission on the reports domain plus any domains associated with the report\'s standard type.
95568
95888
  * @summary Export a custom report
@@ -95613,6 +95933,16 @@ export const ReportsApiFactory = function (configuration, basePath, axios) {
95613
95933
  getReport(requestParameters, options) {
95614
95934
  return localVarFp.getReport(requestParameters.standard, requestParameters.eventId, requestParameters.placeId, requestParameters.groupId, requestParameters.channelId, requestParameters.accountId, requestParameters.surveyId, requestParameters.sessionId, requestParameters.seriesId, requestParameters.spaceId, requestParameters.entityId, requestParameters.since, options).then((request) => request(axios, basePath));
95615
95935
  },
95936
+ /**
95937
+ * 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.
95938
+ * @summary Get the status of a report download
95939
+ * @param {ReportsApiGetReportExportRequest} requestParameters Request parameters.
95940
+ * @param {*} [options] Override http request option.
95941
+ * @throws {RequiredError}
95942
+ */
95943
+ getReportExport(requestParameters, options) {
95944
+ return localVarFp.getReportExport(requestParameters.exportId, options).then((request) => request(axios, basePath));
95945
+ },
95616
95946
  /**
95617
95947
  * Returns the list of standard reports available to the organization, filtered by report type and further filtered to only those reports whose required permission domains the caller can read; requires the `read:reports` permission.
95618
95948
  * @summary List available standard reports
@@ -95679,6 +96009,16 @@ export class ReportsApi extends BaseAPI {
95679
96009
  deleteCustomReportSchedule(requestParameters, options) {
95680
96010
  return ReportsApiFp(this.configuration).deleteCustomReportSchedule(requestParameters.reportId, options).then((request) => request(this.axios, this.basePath));
95681
96011
  }
96012
+ /**
96013
+ * 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.
96014
+ * @summary Build a standard report as a downloadable CSV
96015
+ * @param {ReportsApiDownloadReportRequest} requestParameters Request parameters.
96016
+ * @param {*} [options] Override http request option.
96017
+ * @throws {RequiredError}
96018
+ */
96019
+ downloadReport(requestParameters, options) {
96020
+ return ReportsApiFp(this.configuration).downloadReport(requestParameters.standard, requestParameters.reportFilters, options).then((request) => request(this.axios, this.basePath));
96021
+ }
95682
96022
  /**
95683
96023
  * Kicks off an asynchronous export of a custom report\'s data, optionally emailing the resulting file to a specified address in addition to the requesting user, and requires read permission on the reports domain plus any domains associated with the report\'s standard type.
95684
96024
  * @summary Export a custom report
@@ -95729,6 +96069,16 @@ export class ReportsApi extends BaseAPI {
95729
96069
  getReport(requestParameters, options) {
95730
96070
  return ReportsApiFp(this.configuration).getReport(requestParameters.standard, requestParameters.eventId, requestParameters.placeId, requestParameters.groupId, requestParameters.channelId, requestParameters.accountId, requestParameters.surveyId, requestParameters.sessionId, requestParameters.seriesId, requestParameters.spaceId, requestParameters.entityId, requestParameters.since, options).then((request) => request(this.axios, this.basePath));
95731
96071
  }
96072
+ /**
96073
+ * 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.
96074
+ * @summary Get the status of a report download
96075
+ * @param {ReportsApiGetReportExportRequest} requestParameters Request parameters.
96076
+ * @param {*} [options] Override http request option.
96077
+ * @throws {RequiredError}
96078
+ */
96079
+ getReportExport(requestParameters, options) {
96080
+ return ReportsApiFp(this.configuration).getReportExport(requestParameters.exportId, options).then((request) => request(this.axios, this.basePath));
96081
+ }
95732
96082
  /**
95733
96083
  * Returns the list of standard reports available to the organization, filtered by report type and further filtered to only those reports whose required permission domains the caller can read; requires the `read:reports` permission.
95734
96084
  * @summary List available standard reports
@@ -2,7 +2,7 @@
2
2
  * Connected Admin API
3
3
  * The Admin API allows you to manage your Connected community programmatically.
4
4
  *
5
- * The version of the OpenAPI document: 13.1.0
5
+ * The version of the OpenAPI document: 13.3.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/base.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Connected Admin API
5
5
  * The Admin API allows you to manage your Connected community programmatically.
6
6
  *
7
- * The version of the OpenAPI document: 13.1.0
7
+ * The version of the OpenAPI document: 13.3.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Connected Admin API
3
3
  * The Admin API allows you to manage your Connected community programmatically.
4
4
  *
5
- * The version of the OpenAPI document: 13.1.0
5
+ * The version of the OpenAPI document: 13.3.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Connected Admin API
5
5
  * The Admin API allows you to manage your Connected community programmatically.
6
6
  *
7
- * The version of the OpenAPI document: 13.1.0
7
+ * The version of the OpenAPI document: 13.3.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Connected Admin API
3
3
  * The Admin API allows you to manage your Connected community programmatically.
4
4
  *
5
- * The version of the OpenAPI document: 13.1.0
5
+ * The version of the OpenAPI document: 13.3.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -3,7 +3,7 @@
3
3
  * Connected Admin API
4
4
  * The Admin API allows you to manage your Connected community programmatically.
5
5
  *
6
- * The version of the OpenAPI document: 13.1.0
6
+ * The version of the OpenAPI document: 13.3.0
7
7
  *
8
8
  *
9
9
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -0,0 +1,38 @@
1
+ # BaseExport
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | | [default to undefined]
9
+ **type** | **string** | | [default to undefined]
10
+ **status** | [**ExportStatus**](ExportStatus.md) | | [default to undefined]
11
+ **message** | **string** | | [default to undefined]
12
+ **eventId** | **string** | | [default to undefined]
13
+ **userId** | **string** | | [default to undefined]
14
+ **expiration** | **string** | | [default to undefined]
15
+ **downloadUrl** | **string** | | [default to undefined]
16
+ **createdAt** | **string** | | [default to undefined]
17
+ **updatedAt** | **string** | | [default to undefined]
18
+
19
+ ## Example
20
+
21
+ ```typescript
22
+ import { BaseExport } from '@connectedxm/admin-sdk';
23
+
24
+ const instance: BaseExport = {
25
+ id,
26
+ type,
27
+ status,
28
+ message,
29
+ eventId,
30
+ userId,
31
+ expiration,
32
+ downloadUrl,
33
+ createdAt,
34
+ updatedAt,
35
+ };
36
+ ```
37
+
38
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,22 @@
1
+ # BaseReportExport
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | | [default to undefined]
9
+ **status** | [**ExportStatus**](ExportStatus.md) | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { BaseReportExport } from '@connectedxm/admin-sdk';
15
+
16
+ const instance: BaseReportExport = {
17
+ id,
18
+ status,
19
+ };
20
+ ```
21
+
22
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,24 @@
1
+ # DownloadReport200Response
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **status** | **string** | | [default to undefined]
9
+ **message** | **string** | | [default to undefined]
10
+ **data** | [**BaseReportExport**](BaseReportExport.md) | | [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { DownloadReport200Response } from '@connectedxm/admin-sdk';
16
+
17
+ const instance: DownloadReport200Response = {
18
+ status,
19
+ message,
20
+ data,
21
+ };
22
+ ```
23
+
24
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
package/docs/Export.md ADDED
@@ -0,0 +1,40 @@
1
+ # Export
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | | [default to undefined]
9
+ **type** | **string** | | [default to undefined]
10
+ **status** | [**ExportStatus**](ExportStatus.md) | | [default to undefined]
11
+ **message** | **string** | | [default to undefined]
12
+ **eventId** | **string** | | [default to undefined]
13
+ **userId** | **string** | | [default to undefined]
14
+ **expiration** | **string** | | [default to undefined]
15
+ **downloadUrl** | **string** | | [default to undefined]
16
+ **createdAt** | **string** | | [default to undefined]
17
+ **updatedAt** | **string** | | [default to undefined]
18
+ **user** | [**BaseUser**](BaseUser.md) | | [default to undefined]
19
+
20
+ ## Example
21
+
22
+ ```typescript
23
+ import { Export } from '@connectedxm/admin-sdk';
24
+
25
+ const instance: Export = {
26
+ id,
27
+ type,
28
+ status,
29
+ message,
30
+ eventId,
31
+ userId,
32
+ expiration,
33
+ downloadUrl,
34
+ createdAt,
35
+ updatedAt,
36
+ user,
37
+ };
38
+ ```
39
+
40
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)