@emilgroup/tenant-sdk 1.31.1-beta.3 → 1.32.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.
@@ -93,64 +93,13 @@ var DashboardApiAxiosParamCreator = function (configuration) {
93
93
  var _this = this;
94
94
  return {
95
95
  /**
96
- * Creates a new dashboard using the preconfigured analysis id **Required Permissions** \"reporting.dashboards.create\"
97
- * @summary Creates a new dashboard
98
- * @param {CreateDashboardV2RequestDto} createDashboardV2RequestDto
99
- * @param {string} [authorization] Bearer Token
100
- * @param {*} [options] Override http request option.
101
- * @throws {RequiredError}
102
- */
103
- createDashboard: function (createDashboardV2RequestDto, authorization, options) {
104
- if (options === void 0) { options = {}; }
105
- return __awaiter(_this, void 0, void 0, function () {
106
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
107
- return __generator(this, function (_a) {
108
- switch (_a.label) {
109
- case 0:
110
- // verify required parameter 'createDashboardV2RequestDto' is not null or undefined
111
- (0, common_1.assertParamExists)('createDashboard', 'createDashboardV2RequestDto', createDashboardV2RequestDto);
112
- localVarPath = "/tenantservice/v1/dashboards";
113
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
114
- if (configuration) {
115
- baseOptions = configuration.baseOptions;
116
- baseAccessToken = configuration.accessToken;
117
- }
118
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
119
- localVarHeaderParameter = {};
120
- localVarQueryParameter = {};
121
- // authentication bearer required
122
- // http bearer authentication required
123
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
124
- case 1:
125
- // authentication bearer required
126
- // http bearer authentication required
127
- _a.sent();
128
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
129
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
130
- }
131
- localVarHeaderParameter['Content-Type'] = 'application/json';
132
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
133
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
134
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
135
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createDashboardV2RequestDto, localVarRequestOptions, configuration);
136
- return [2 /*return*/, {
137
- url: (0, common_1.toPathString)(localVarUrlObj),
138
- options: localVarRequestOptions,
139
- }];
140
- }
141
- });
142
- });
143
- },
144
- /**
145
- * Creates a new dashboard from a preconfigured analysis id and dashboard id. Use POST /tenantservice/v1/dashboards instead. **Required Permissions** \"reporting.dashboards.create\"
146
- * @summary Creates a new dashboard (DEPRECATED)
96
+ * undefined **Required Permissions** \"reporting.dashboards.create\"
147
97
  * @param {CreateDashboardRequestDto} createDashboardRequestDto
148
98
  * @param {string} [authorization] Bearer Token
149
99
  * @param {*} [options] Override http request option.
150
- * @deprecated
151
100
  * @throws {RequiredError}
152
101
  */
153
- createDashboardLegacy: function (createDashboardRequestDto, authorization, options) {
102
+ createDashboard: function (createDashboardRequestDto, authorization, options) {
154
103
  if (options === void 0) { options = {}; }
155
104
  return __awaiter(_this, void 0, void 0, function () {
156
105
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -158,8 +107,8 @@ var DashboardApiAxiosParamCreator = function (configuration) {
158
107
  switch (_a.label) {
159
108
  case 0:
160
109
  // verify required parameter 'createDashboardRequestDto' is not null or undefined
161
- (0, common_1.assertParamExists)('createDashboardLegacy', 'createDashboardRequestDto', createDashboardRequestDto);
162
- localVarPath = "/tenantservice/v1/dashboards/legacy";
110
+ (0, common_1.assertParamExists)('createDashboard', 'createDashboardRequestDto', createDashboardRequestDto);
111
+ localVarPath = "/tenantservice/v1/dashboards";
163
112
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
164
113
  if (configuration) {
165
114
  baseOptions = configuration.baseOptions;
@@ -192,8 +141,7 @@ var DashboardApiAxiosParamCreator = function (configuration) {
192
141
  });
193
142
  },
194
143
  /**
195
- * Permanently removes a dashboard and all associated data by dashboard code. **Required Permissions** \"reporting.dashboards.delete\"
196
- * @summary Deletes an existing dashboard
144
+ * undefined **Required Permissions** \"reporting.dashboards.delete\"
197
145
  * @param {string} code
198
146
  * @param {string} [authorization] Bearer Token
199
147
  * @param {*} [options] Override http request option.
@@ -240,56 +188,7 @@ var DashboardApiAxiosParamCreator = function (configuration) {
240
188
  });
241
189
  },
242
190
  /**
243
- * Creates a copy of the specified dashboard with all its configurations and settings. **Required Permissions** \"reporting.dashboards.create\"
244
- * @summary Creates a duplicate of an existing dashboard
245
- * @param {string} code
246
- * @param {string} [authorization] Bearer Token
247
- * @param {*} [options] Override http request option.
248
- * @throws {RequiredError}
249
- */
250
- duplicateDashboard: function (code, authorization, options) {
251
- if (options === void 0) { options = {}; }
252
- return __awaiter(_this, void 0, void 0, function () {
253
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
254
- return __generator(this, function (_a) {
255
- switch (_a.label) {
256
- case 0:
257
- // verify required parameter 'code' is not null or undefined
258
- (0, common_1.assertParamExists)('duplicateDashboard', 'code', code);
259
- localVarPath = "/tenantservice/v1/dashboards/{code}/duplicate"
260
- .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
261
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
262
- if (configuration) {
263
- baseOptions = configuration.baseOptions;
264
- baseAccessToken = configuration.accessToken;
265
- }
266
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
267
- localVarHeaderParameter = {};
268
- localVarQueryParameter = {};
269
- // authentication bearer required
270
- // http bearer authentication required
271
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
272
- case 1:
273
- // authentication bearer required
274
- // http bearer authentication required
275
- _a.sent();
276
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
277
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
278
- }
279
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
280
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
281
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
282
- return [2 /*return*/, {
283
- url: (0, common_1.toPathString)(localVarUrlObj),
284
- options: localVarRequestOptions,
285
- }];
286
- }
287
- });
288
- });
289
- },
290
- /**
291
- * Creates a secure embedded URL that allows dashboard analysis and editing within external applications. **Required Permissions** \"reporting.dashboards.update\"
292
- * @summary Generates an embedded URL for dashboard editing
191
+ * undefined **Required Permissions** \"reporting.dashboards.update\"
293
192
  * @param {string} providerDashboardId
294
193
  * @param {string} [authorization] Bearer Token
295
194
  * @param {*} [options] Override http request option.
@@ -336,8 +235,7 @@ var DashboardApiAxiosParamCreator = function (configuration) {
336
235
  });
337
236
  },
338
237
  /**
339
- * Fetches dashboard details by code including configuration and metadata. **Required Permissions** \"reporting.dashboards.view\"
340
- * @summary Retrieves a specific dashboard
238
+ * undefined **Required Permissions** \"reporting.dashboards.view\"
341
239
  * @param {string} code
342
240
  * @param {string} [authorization] Bearer Token
343
241
  * @param {*} [options] Override http request option.
@@ -384,8 +282,7 @@ var DashboardApiAxiosParamCreator = function (configuration) {
384
282
  });
385
283
  },
386
284
  /**
387
- * Creates a secure embedded URL that allows dashboard content to be displayed within external applications. **Required Permissions** \"reporting.dashboards.view\"
388
- * @summary Generates an embedded URL for dashboard viewing
285
+ * undefined **Required Permissions** \"reporting.dashboards.view\"
389
286
  * @param {string} providerDashboardId
390
287
  * @param {string} [authorization] Bearer Token
391
288
  * @param {*} [options] Override http request option.
@@ -432,8 +329,7 @@ var DashboardApiAxiosParamCreator = function (configuration) {
432
329
  });
433
330
  },
434
331
  /**
435
- * Fetches a paginated list of dashboards with optional filtering and sorting capabilities. **Required Permissions** \"reporting.dashboards.view\"
436
- * @summary Retrieves a list of dashboards
332
+ * undefined **Required Permissions** \"reporting.dashboards.view\"
437
333
  * @param {string} [authorization] Bearer Token
438
334
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
439
335
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
@@ -504,8 +400,7 @@ var DashboardApiAxiosParamCreator = function (configuration) {
504
400
  });
505
401
  },
506
402
  /**
507
- * Makes a dashboard publicly available by publishing it from draft or analysis state. **Required Permissions** \"reporting.dashboards.update\"
508
- * @summary Publishes a dashboard for general access
403
+ * undefined **Required Permissions** \"reporting.dashboards.update\"
509
404
  * @param {PublishDashboardRequestDto} publishDashboardRequestDto
510
405
  * @param {string} [authorization] Bearer Token
511
406
  * @param {*} [options] Override http request option.
@@ -553,8 +448,7 @@ var DashboardApiAxiosParamCreator = function (configuration) {
553
448
  });
554
449
  },
555
450
  /**
556
- * Rolls back dashboard analysis changes to restore the previous version or state. **Required Permissions** \"reporting.dashboards.update\"
557
- * @summary Reverts dashboard analysis to previous state
451
+ * undefined **Required Permissions** \"reporting.dashboards.update\"
558
452
  * @param {RevertAnalysisRequestDto} revertAnalysisRequestDto
559
453
  * @param {string} [authorization] Bearer Token
560
454
  * @param {*} [options] Override http request option.
@@ -602,8 +496,7 @@ var DashboardApiAxiosParamCreator = function (configuration) {
602
496
  });
603
497
  },
604
498
  /**
605
- * Modifies dashboard properties, configuration, or metadata by dashboard code. **Required Permissions** \"reporting.dashboards.update\"
606
- * @summary Updates an existing dashboard
499
+ * undefined **Required Permissions** \"reporting.dashboards.update\"
607
500
  * @param {string} code
608
501
  * @param {UpdateDashboardRequestDto} updateDashboardRequestDto
609
502
  * @param {string} [authorization] Bearer Token
@@ -665,41 +558,18 @@ var DashboardApiFp = function (configuration) {
665
558
  var localVarAxiosParamCreator = (0, exports.DashboardApiAxiosParamCreator)(configuration);
666
559
  return {
667
560
  /**
668
- * Creates a new dashboard using the preconfigured analysis id **Required Permissions** \"reporting.dashboards.create\"
669
- * @summary Creates a new dashboard
670
- * @param {CreateDashboardV2RequestDto} createDashboardV2RequestDto
671
- * @param {string} [authorization] Bearer Token
672
- * @param {*} [options] Override http request option.
673
- * @throws {RequiredError}
674
- */
675
- createDashboard: function (createDashboardV2RequestDto, authorization, options) {
676
- return __awaiter(this, void 0, void 0, function () {
677
- var localVarAxiosArgs;
678
- return __generator(this, function (_a) {
679
- switch (_a.label) {
680
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.createDashboard(createDashboardV2RequestDto, authorization, options)];
681
- case 1:
682
- localVarAxiosArgs = _a.sent();
683
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
684
- }
685
- });
686
- });
687
- },
688
- /**
689
- * Creates a new dashboard from a preconfigured analysis id and dashboard id. Use POST /tenantservice/v1/dashboards instead. **Required Permissions** \"reporting.dashboards.create\"
690
- * @summary Creates a new dashboard (DEPRECATED)
561
+ * undefined **Required Permissions** \"reporting.dashboards.create\"
691
562
  * @param {CreateDashboardRequestDto} createDashboardRequestDto
692
563
  * @param {string} [authorization] Bearer Token
693
564
  * @param {*} [options] Override http request option.
694
- * @deprecated
695
565
  * @throws {RequiredError}
696
566
  */
697
- createDashboardLegacy: function (createDashboardRequestDto, authorization, options) {
567
+ createDashboard: function (createDashboardRequestDto, authorization, options) {
698
568
  return __awaiter(this, void 0, void 0, function () {
699
569
  var localVarAxiosArgs;
700
570
  return __generator(this, function (_a) {
701
571
  switch (_a.label) {
702
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.createDashboardLegacy(createDashboardRequestDto, authorization, options)];
572
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createDashboard(createDashboardRequestDto, authorization, options)];
703
573
  case 1:
704
574
  localVarAxiosArgs = _a.sent();
705
575
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -708,8 +578,7 @@ var DashboardApiFp = function (configuration) {
708
578
  });
709
579
  },
710
580
  /**
711
- * Permanently removes a dashboard and all associated data by dashboard code. **Required Permissions** \"reporting.dashboards.delete\"
712
- * @summary Deletes an existing dashboard
581
+ * undefined **Required Permissions** \"reporting.dashboards.delete\"
713
582
  * @param {string} code
714
583
  * @param {string} [authorization] Bearer Token
715
584
  * @param {*} [options] Override http request option.
@@ -729,29 +598,7 @@ var DashboardApiFp = function (configuration) {
729
598
  });
730
599
  },
731
600
  /**
732
- * Creates a copy of the specified dashboard with all its configurations and settings. **Required Permissions** \"reporting.dashboards.create\"
733
- * @summary Creates a duplicate of an existing dashboard
734
- * @param {string} code
735
- * @param {string} [authorization] Bearer Token
736
- * @param {*} [options] Override http request option.
737
- * @throws {RequiredError}
738
- */
739
- duplicateDashboard: function (code, authorization, options) {
740
- return __awaiter(this, void 0, void 0, function () {
741
- var localVarAxiosArgs;
742
- return __generator(this, function (_a) {
743
- switch (_a.label) {
744
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.duplicateDashboard(code, authorization, options)];
745
- case 1:
746
- localVarAxiosArgs = _a.sent();
747
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
748
- }
749
- });
750
- });
751
- },
752
- /**
753
- * Creates a secure embedded URL that allows dashboard analysis and editing within external applications. **Required Permissions** \"reporting.dashboards.update\"
754
- * @summary Generates an embedded URL for dashboard editing
601
+ * undefined **Required Permissions** \"reporting.dashboards.update\"
755
602
  * @param {string} providerDashboardId
756
603
  * @param {string} [authorization] Bearer Token
757
604
  * @param {*} [options] Override http request option.
@@ -771,8 +618,7 @@ var DashboardApiFp = function (configuration) {
771
618
  });
772
619
  },
773
620
  /**
774
- * Fetches dashboard details by code including configuration and metadata. **Required Permissions** \"reporting.dashboards.view\"
775
- * @summary Retrieves a specific dashboard
621
+ * undefined **Required Permissions** \"reporting.dashboards.view\"
776
622
  * @param {string} code
777
623
  * @param {string} [authorization] Bearer Token
778
624
  * @param {*} [options] Override http request option.
@@ -792,8 +638,7 @@ var DashboardApiFp = function (configuration) {
792
638
  });
793
639
  },
794
640
  /**
795
- * Creates a secure embedded URL that allows dashboard content to be displayed within external applications. **Required Permissions** \"reporting.dashboards.view\"
796
- * @summary Generates an embedded URL for dashboard viewing
641
+ * undefined **Required Permissions** \"reporting.dashboards.view\"
797
642
  * @param {string} providerDashboardId
798
643
  * @param {string} [authorization] Bearer Token
799
644
  * @param {*} [options] Override http request option.
@@ -813,8 +658,7 @@ var DashboardApiFp = function (configuration) {
813
658
  });
814
659
  },
815
660
  /**
816
- * Fetches a paginated list of dashboards with optional filtering and sorting capabilities. **Required Permissions** \"reporting.dashboards.view\"
817
- * @summary Retrieves a list of dashboards
661
+ * undefined **Required Permissions** \"reporting.dashboards.view\"
818
662
  * @param {string} [authorization] Bearer Token
819
663
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
820
664
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
@@ -840,8 +684,7 @@ var DashboardApiFp = function (configuration) {
840
684
  });
841
685
  },
842
686
  /**
843
- * Makes a dashboard publicly available by publishing it from draft or analysis state. **Required Permissions** \"reporting.dashboards.update\"
844
- * @summary Publishes a dashboard for general access
687
+ * undefined **Required Permissions** \"reporting.dashboards.update\"
845
688
  * @param {PublishDashboardRequestDto} publishDashboardRequestDto
846
689
  * @param {string} [authorization] Bearer Token
847
690
  * @param {*} [options] Override http request option.
@@ -861,8 +704,7 @@ var DashboardApiFp = function (configuration) {
861
704
  });
862
705
  },
863
706
  /**
864
- * Rolls back dashboard analysis changes to restore the previous version or state. **Required Permissions** \"reporting.dashboards.update\"
865
- * @summary Reverts dashboard analysis to previous state
707
+ * undefined **Required Permissions** \"reporting.dashboards.update\"
866
708
  * @param {RevertAnalysisRequestDto} revertAnalysisRequestDto
867
709
  * @param {string} [authorization] Bearer Token
868
710
  * @param {*} [options] Override http request option.
@@ -882,8 +724,7 @@ var DashboardApiFp = function (configuration) {
882
724
  });
883
725
  },
884
726
  /**
885
- * Modifies dashboard properties, configuration, or metadata by dashboard code. **Required Permissions** \"reporting.dashboards.update\"
886
- * @summary Updates an existing dashboard
727
+ * undefined **Required Permissions** \"reporting.dashboards.update\"
887
728
  * @param {string} code
888
729
  * @param {UpdateDashboardRequestDto} updateDashboardRequestDto
889
730
  * @param {string} [authorization] Bearer Token
@@ -914,31 +755,17 @@ var DashboardApiFactory = function (configuration, basePath, axios) {
914
755
  var localVarFp = (0, exports.DashboardApiFp)(configuration);
915
756
  return {
916
757
  /**
917
- * Creates a new dashboard using the preconfigured analysis id **Required Permissions** \"reporting.dashboards.create\"
918
- * @summary Creates a new dashboard
919
- * @param {CreateDashboardV2RequestDto} createDashboardV2RequestDto
920
- * @param {string} [authorization] Bearer Token
921
- * @param {*} [options] Override http request option.
922
- * @throws {RequiredError}
923
- */
924
- createDashboard: function (createDashboardV2RequestDto, authorization, options) {
925
- return localVarFp.createDashboard(createDashboardV2RequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
926
- },
927
- /**
928
- * Creates a new dashboard from a preconfigured analysis id and dashboard id. Use POST /tenantservice/v1/dashboards instead. **Required Permissions** \"reporting.dashboards.create\"
929
- * @summary Creates a new dashboard (DEPRECATED)
758
+ * undefined **Required Permissions** \"reporting.dashboards.create\"
930
759
  * @param {CreateDashboardRequestDto} createDashboardRequestDto
931
760
  * @param {string} [authorization] Bearer Token
932
761
  * @param {*} [options] Override http request option.
933
- * @deprecated
934
762
  * @throws {RequiredError}
935
763
  */
936
- createDashboardLegacy: function (createDashboardRequestDto, authorization, options) {
937
- return localVarFp.createDashboardLegacy(createDashboardRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
764
+ createDashboard: function (createDashboardRequestDto, authorization, options) {
765
+ return localVarFp.createDashboard(createDashboardRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
938
766
  },
939
767
  /**
940
- * Permanently removes a dashboard and all associated data by dashboard code. **Required Permissions** \"reporting.dashboards.delete\"
941
- * @summary Deletes an existing dashboard
768
+ * undefined **Required Permissions** \"reporting.dashboards.delete\"
942
769
  * @param {string} code
943
770
  * @param {string} [authorization] Bearer Token
944
771
  * @param {*} [options] Override http request option.
@@ -948,19 +775,7 @@ var DashboardApiFactory = function (configuration, basePath, axios) {
948
775
  return localVarFp.deleteDashboard(code, authorization, options).then(function (request) { return request(axios, basePath); });
949
776
  },
950
777
  /**
951
- * Creates a copy of the specified dashboard with all its configurations and settings. **Required Permissions** \"reporting.dashboards.create\"
952
- * @summary Creates a duplicate of an existing dashboard
953
- * @param {string} code
954
- * @param {string} [authorization] Bearer Token
955
- * @param {*} [options] Override http request option.
956
- * @throws {RequiredError}
957
- */
958
- duplicateDashboard: function (code, authorization, options) {
959
- return localVarFp.duplicateDashboard(code, authorization, options).then(function (request) { return request(axios, basePath); });
960
- },
961
- /**
962
- * Creates a secure embedded URL that allows dashboard analysis and editing within external applications. **Required Permissions** \"reporting.dashboards.update\"
963
- * @summary Generates an embedded URL for dashboard editing
778
+ * undefined **Required Permissions** \"reporting.dashboards.update\"
964
779
  * @param {string} providerDashboardId
965
780
  * @param {string} [authorization] Bearer Token
966
781
  * @param {*} [options] Override http request option.
@@ -970,8 +785,7 @@ var DashboardApiFactory = function (configuration, basePath, axios) {
970
785
  return localVarFp.getAnalysisEmbeddedUrl(providerDashboardId, authorization, options).then(function (request) { return request(axios, basePath); });
971
786
  },
972
787
  /**
973
- * Fetches dashboard details by code including configuration and metadata. **Required Permissions** \"reporting.dashboards.view\"
974
- * @summary Retrieves a specific dashboard
788
+ * undefined **Required Permissions** \"reporting.dashboards.view\"
975
789
  * @param {string} code
976
790
  * @param {string} [authorization] Bearer Token
977
791
  * @param {*} [options] Override http request option.
@@ -981,8 +795,7 @@ var DashboardApiFactory = function (configuration, basePath, axios) {
981
795
  return localVarFp.getDashboard(code, authorization, options).then(function (request) { return request(axios, basePath); });
982
796
  },
983
797
  /**
984
- * Creates a secure embedded URL that allows dashboard content to be displayed within external applications. **Required Permissions** \"reporting.dashboards.view\"
985
- * @summary Generates an embedded URL for dashboard viewing
798
+ * undefined **Required Permissions** \"reporting.dashboards.view\"
986
799
  * @param {string} providerDashboardId
987
800
  * @param {string} [authorization] Bearer Token
988
801
  * @param {*} [options] Override http request option.
@@ -992,8 +805,7 @@ var DashboardApiFactory = function (configuration, basePath, axios) {
992
805
  return localVarFp.getDashboardEmbeddedUrl(providerDashboardId, authorization, options).then(function (request) { return request(axios, basePath); });
993
806
  },
994
807
  /**
995
- * Fetches a paginated list of dashboards with optional filtering and sorting capabilities. **Required Permissions** \"reporting.dashboards.view\"
996
- * @summary Retrieves a list of dashboards
808
+ * undefined **Required Permissions** \"reporting.dashboards.view\"
997
809
  * @param {string} [authorization] Bearer Token
998
810
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
999
811
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
@@ -1009,8 +821,7 @@ var DashboardApiFactory = function (configuration, basePath, axios) {
1009
821
  return localVarFp.listDashboards(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
1010
822
  },
1011
823
  /**
1012
- * Makes a dashboard publicly available by publishing it from draft or analysis state. **Required Permissions** \"reporting.dashboards.update\"
1013
- * @summary Publishes a dashboard for general access
824
+ * undefined **Required Permissions** \"reporting.dashboards.update\"
1014
825
  * @param {PublishDashboardRequestDto} publishDashboardRequestDto
1015
826
  * @param {string} [authorization] Bearer Token
1016
827
  * @param {*} [options] Override http request option.
@@ -1020,8 +831,7 @@ var DashboardApiFactory = function (configuration, basePath, axios) {
1020
831
  return localVarFp.publishDashboard(publishDashboardRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
1021
832
  },
1022
833
  /**
1023
- * Rolls back dashboard analysis changes to restore the previous version or state. **Required Permissions** \"reporting.dashboards.update\"
1024
- * @summary Reverts dashboard analysis to previous state
834
+ * undefined **Required Permissions** \"reporting.dashboards.update\"
1025
835
  * @param {RevertAnalysisRequestDto} revertAnalysisRequestDto
1026
836
  * @param {string} [authorization] Bearer Token
1027
837
  * @param {*} [options] Override http request option.
@@ -1031,8 +841,7 @@ var DashboardApiFactory = function (configuration, basePath, axios) {
1031
841
  return localVarFp.revertAnalysis(revertAnalysisRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
1032
842
  },
1033
843
  /**
1034
- * Modifies dashboard properties, configuration, or metadata by dashboard code. **Required Permissions** \"reporting.dashboards.update\"
1035
- * @summary Updates an existing dashboard
844
+ * undefined **Required Permissions** \"reporting.dashboards.update\"
1036
845
  * @param {string} code
1037
846
  * @param {UpdateDashboardRequestDto} updateDashboardRequestDto
1038
847
  * @param {string} [authorization] Bearer Token
@@ -1057,8 +866,7 @@ var DashboardApi = /** @class */ (function (_super) {
1057
866
  return _super !== null && _super.apply(this, arguments) || this;
1058
867
  }
1059
868
  /**
1060
- * Creates a new dashboard using the preconfigured analysis id **Required Permissions** \"reporting.dashboards.create\"
1061
- * @summary Creates a new dashboard
869
+ * undefined **Required Permissions** \"reporting.dashboards.create\"
1062
870
  * @param {DashboardApiCreateDashboardRequest} requestParameters Request parameters.
1063
871
  * @param {*} [options] Override http request option.
1064
872
  * @throws {RequiredError}
@@ -1066,24 +874,10 @@ var DashboardApi = /** @class */ (function (_super) {
1066
874
  */
1067
875
  DashboardApi.prototype.createDashboard = function (requestParameters, options) {
1068
876
  var _this = this;
1069
- return (0, exports.DashboardApiFp)(this.configuration).createDashboard(requestParameters.createDashboardV2RequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1070
- };
1071
- /**
1072
- * Creates a new dashboard from a preconfigured analysis id and dashboard id. Use POST /tenantservice/v1/dashboards instead. **Required Permissions** \"reporting.dashboards.create\"
1073
- * @summary Creates a new dashboard (DEPRECATED)
1074
- * @param {DashboardApiCreateDashboardLegacyRequest} requestParameters Request parameters.
1075
- * @param {*} [options] Override http request option.
1076
- * @deprecated
1077
- * @throws {RequiredError}
1078
- * @memberof DashboardApi
1079
- */
1080
- DashboardApi.prototype.createDashboardLegacy = function (requestParameters, options) {
1081
- var _this = this;
1082
- return (0, exports.DashboardApiFp)(this.configuration).createDashboardLegacy(requestParameters.createDashboardRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
877
+ return (0, exports.DashboardApiFp)(this.configuration).createDashboard(requestParameters.createDashboardRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1083
878
  };
1084
879
  /**
1085
- * Permanently removes a dashboard and all associated data by dashboard code. **Required Permissions** \"reporting.dashboards.delete\"
1086
- * @summary Deletes an existing dashboard
880
+ * undefined **Required Permissions** \"reporting.dashboards.delete\"
1087
881
  * @param {DashboardApiDeleteDashboardRequest} requestParameters Request parameters.
1088
882
  * @param {*} [options] Override http request option.
1089
883
  * @throws {RequiredError}
@@ -1094,20 +888,7 @@ var DashboardApi = /** @class */ (function (_super) {
1094
888
  return (0, exports.DashboardApiFp)(this.configuration).deleteDashboard(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1095
889
  };
1096
890
  /**
1097
- * Creates a copy of the specified dashboard with all its configurations and settings. **Required Permissions** \"reporting.dashboards.create\"
1098
- * @summary Creates a duplicate of an existing dashboard
1099
- * @param {DashboardApiDuplicateDashboardRequest} requestParameters Request parameters.
1100
- * @param {*} [options] Override http request option.
1101
- * @throws {RequiredError}
1102
- * @memberof DashboardApi
1103
- */
1104
- DashboardApi.prototype.duplicateDashboard = function (requestParameters, options) {
1105
- var _this = this;
1106
- return (0, exports.DashboardApiFp)(this.configuration).duplicateDashboard(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1107
- };
1108
- /**
1109
- * Creates a secure embedded URL that allows dashboard analysis and editing within external applications. **Required Permissions** \"reporting.dashboards.update\"
1110
- * @summary Generates an embedded URL for dashboard editing
891
+ * undefined **Required Permissions** \"reporting.dashboards.update\"
1111
892
  * @param {DashboardApiGetAnalysisEmbeddedUrlRequest} requestParameters Request parameters.
1112
893
  * @param {*} [options] Override http request option.
1113
894
  * @throws {RequiredError}
@@ -1118,8 +899,7 @@ var DashboardApi = /** @class */ (function (_super) {
1118
899
  return (0, exports.DashboardApiFp)(this.configuration).getAnalysisEmbeddedUrl(requestParameters.providerDashboardId, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1119
900
  };
1120
901
  /**
1121
- * Fetches dashboard details by code including configuration and metadata. **Required Permissions** \"reporting.dashboards.view\"
1122
- * @summary Retrieves a specific dashboard
902
+ * undefined **Required Permissions** \"reporting.dashboards.view\"
1123
903
  * @param {DashboardApiGetDashboardRequest} requestParameters Request parameters.
1124
904
  * @param {*} [options] Override http request option.
1125
905
  * @throws {RequiredError}
@@ -1130,8 +910,7 @@ var DashboardApi = /** @class */ (function (_super) {
1130
910
  return (0, exports.DashboardApiFp)(this.configuration).getDashboard(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1131
911
  };
1132
912
  /**
1133
- * Creates a secure embedded URL that allows dashboard content to be displayed within external applications. **Required Permissions** \"reporting.dashboards.view\"
1134
- * @summary Generates an embedded URL for dashboard viewing
913
+ * undefined **Required Permissions** \"reporting.dashboards.view\"
1135
914
  * @param {DashboardApiGetDashboardEmbeddedUrlRequest} requestParameters Request parameters.
1136
915
  * @param {*} [options] Override http request option.
1137
916
  * @throws {RequiredError}
@@ -1142,8 +921,7 @@ var DashboardApi = /** @class */ (function (_super) {
1142
921
  return (0, exports.DashboardApiFp)(this.configuration).getDashboardEmbeddedUrl(requestParameters.providerDashboardId, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1143
922
  };
1144
923
  /**
1145
- * Fetches a paginated list of dashboards with optional filtering and sorting capabilities. **Required Permissions** \"reporting.dashboards.view\"
1146
- * @summary Retrieves a list of dashboards
924
+ * undefined **Required Permissions** \"reporting.dashboards.view\"
1147
925
  * @param {DashboardApiListDashboardsRequest} requestParameters Request parameters.
1148
926
  * @param {*} [options] Override http request option.
1149
927
  * @throws {RequiredError}
@@ -1155,8 +933,7 @@ var DashboardApi = /** @class */ (function (_super) {
1155
933
  return (0, exports.DashboardApiFp)(this.configuration).listDashboards(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
1156
934
  };
1157
935
  /**
1158
- * Makes a dashboard publicly available by publishing it from draft or analysis state. **Required Permissions** \"reporting.dashboards.update\"
1159
- * @summary Publishes a dashboard for general access
936
+ * undefined **Required Permissions** \"reporting.dashboards.update\"
1160
937
  * @param {DashboardApiPublishDashboardRequest} requestParameters Request parameters.
1161
938
  * @param {*} [options] Override http request option.
1162
939
  * @throws {RequiredError}
@@ -1167,8 +944,7 @@ var DashboardApi = /** @class */ (function (_super) {
1167
944
  return (0, exports.DashboardApiFp)(this.configuration).publishDashboard(requestParameters.publishDashboardRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1168
945
  };
1169
946
  /**
1170
- * Rolls back dashboard analysis changes to restore the previous version or state. **Required Permissions** \"reporting.dashboards.update\"
1171
- * @summary Reverts dashboard analysis to previous state
947
+ * undefined **Required Permissions** \"reporting.dashboards.update\"
1172
948
  * @param {DashboardApiRevertAnalysisRequest} requestParameters Request parameters.
1173
949
  * @param {*} [options] Override http request option.
1174
950
  * @throws {RequiredError}
@@ -1179,8 +955,7 @@ var DashboardApi = /** @class */ (function (_super) {
1179
955
  return (0, exports.DashboardApiFp)(this.configuration).revertAnalysis(requestParameters.revertAnalysisRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1180
956
  };
1181
957
  /**
1182
- * Modifies dashboard properties, configuration, or metadata by dashboard code. **Required Permissions** \"reporting.dashboards.update\"
1183
- * @summary Updates an existing dashboard
958
+ * undefined **Required Permissions** \"reporting.dashboards.update\"
1184
959
  * @param {DashboardApiUpdateDashboardRequest} requestParameters Request parameters.
1185
960
  * @param {*} [options] Override http request option.
1186
961
  * @throws {RequiredError}
package/dist/base.js CHANGED
@@ -124,9 +124,13 @@ var BaseAPI = /** @class */ (function () {
124
124
  this.axios = axios;
125
125
  this.loadTokenData();
126
126
  if (configuration) {
127
+ var accessToken = this.tokenData.accessToken;
127
128
  this.configuration = configuration;
128
129
  this.basePath = configuration.basePath || this.basePath;
129
- this.configuration.accessToken = this.tokenData.accessToken ? "Bearer ".concat(this.tokenData.accessToken) : '';
130
+ // Use config token if provided, otherwise use tokenData token
131
+ var configToken = this.configuration.accessToken;
132
+ var storedToken = accessToken ? "Bearer ".concat(accessToken) : '';
133
+ this.configuration.accessToken = configToken || storedToken;
130
134
  }
131
135
  else {
132
136
  var _a = this.tokenData, accessToken = _a.accessToken, username = _a.username;
@@ -39,10 +39,4 @@ export interface CreateOrganizationMigrationRequestDto {
39
39
  * @memberof CreateOrganizationMigrationRequestDto
40
40
  */
41
41
  'onlySubtenants'?: boolean;
42
- /**
43
- *
44
- * @type {string}
45
- * @memberof CreateOrganizationMigrationRequestDto
46
- */
47
- 'startTime'?: string;
48
42
  }
@@ -8,8 +8,6 @@ export * from './create-dashboard-group-request-dto';
8
8
  export * from './create-dashboard-group-response-class';
9
9
  export * from './create-dashboard-request-dto';
10
10
  export * from './create-dashboard-response-class';
11
- export * from './create-dashboard-v2-request-dto';
12
- export * from './create-dashboard-v2-response-class';
13
11
  export * from './create-data-report-request-dto';
14
12
  export * from './create-data-report-response-class';
15
13
  export * from './create-organization-migration-request-dto';
@@ -29,7 +27,6 @@ export * from './data-report-filter-value-dto';
29
27
  export * from './delete-response-class';
30
28
  export * from './disable-users-request-dto';
31
29
  export * from './disable-users-response-class';
32
- export * from './duplicate-dashboard-response-class';
33
30
  export * from './enable-users-request-dto';
34
31
  export * from './enable-users-response-class';
35
32
  export * from './format-tenant-settings-class';
@@ -24,8 +24,6 @@ __exportStar(require("./create-dashboard-group-request-dto"), exports);
24
24
  __exportStar(require("./create-dashboard-group-response-class"), exports);
25
25
  __exportStar(require("./create-dashboard-request-dto"), exports);
26
26
  __exportStar(require("./create-dashboard-response-class"), exports);
27
- __exportStar(require("./create-dashboard-v2-request-dto"), exports);
28
- __exportStar(require("./create-dashboard-v2-response-class"), exports);
29
27
  __exportStar(require("./create-data-report-request-dto"), exports);
30
28
  __exportStar(require("./create-data-report-response-class"), exports);
31
29
  __exportStar(require("./create-organization-migration-request-dto"), exports);
@@ -45,7 +43,6 @@ __exportStar(require("./data-report-filter-value-dto"), exports);
45
43
  __exportStar(require("./delete-response-class"), exports);
46
44
  __exportStar(require("./disable-users-request-dto"), exports);
47
45
  __exportStar(require("./disable-users-response-class"), exports);
48
- __exportStar(require("./duplicate-dashboard-response-class"), exports);
49
46
  __exportStar(require("./enable-users-request-dto"), exports);
50
47
  __exportStar(require("./enable-users-response-class"), exports);
51
48
  __exportStar(require("./format-tenant-settings-class"), exports);