@emilgroup/tenant-sdk 1.0.1 → 1.1.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.
Files changed (223) hide show
  1. package/.openapi-generator/FILES +14 -57
  2. package/README.md +2 -2
  3. package/api/custom-schema-api.ts +52 -60
  4. package/api/data-report-api.ts +65 -75
  5. package/api/data-report-executor-api.ts +10 -26
  6. package/api/{user-subscription-api.ts → invite-organizations-api.ts} +139 -161
  7. package/api/invite-users-api.ts +75 -79
  8. package/api/organizations-api.ts +455 -0
  9. package/api/users-api.ts +138 -148
  10. package/api.ts +4 -14
  11. package/dist/api/custom-schema-api.d.ts +42 -42
  12. package/dist/api/custom-schema-api.js +31 -38
  13. package/dist/api/data-report-api.d.ts +52 -52
  14. package/dist/api/data-report-api.js +40 -49
  15. package/dist/api/data-report-executor-api.d.ts +7 -16
  16. package/dist/api/data-report-executor-api.js +9 -17
  17. package/dist/api/{user-subscription-api.d.ts → invite-organizations-api.d.ts} +89 -103
  18. package/dist/api/{user-subscription-api.js → invite-organizations-api.js} +106 -114
  19. package/dist/api/invite-users-api.d.ts +63 -60
  20. package/dist/api/invite-users-api.js +40 -49
  21. package/dist/api/organizations-api.d.ts +261 -0
  22. package/dist/api/{settings-api.js → organizations-api.js} +135 -195
  23. package/dist/api/users-api.d.ts +113 -109
  24. package/dist/api/users-api.js +76 -93
  25. package/dist/api.d.ts +2 -7
  26. package/dist/api.js +2 -7
  27. package/dist/models/assign-user-roles-request-dto.d.ts +2 -2
  28. package/dist/models/{manage-subscription-request-dto.d.ts → batch-delete-response-class.d.ts} +5 -5
  29. package/dist/models/create-custom-schema-request-dto.d.ts +1 -0
  30. package/dist/models/create-custom-schema-request-dto.js +2 -1
  31. package/dist/models/{insurance-response-class.d.ts → delete-response-class.d.ts} +6 -6
  32. package/dist/models/{get-embedded-url-response-class.d.ts → disable-users-response-class.d.ts} +6 -6
  33. package/dist/models/{insurance-company-response-class.d.ts → enable-users-response-class.d.ts} +6 -6
  34. package/dist/models/{create-alert-response-class.d.ts → get-organization-response-class.d.ts} +7 -7
  35. package/dist/models/index.d.ts +12 -50
  36. package/dist/models/index.js +12 -50
  37. package/dist/models/invite-org-request-dto.d.ts +78 -0
  38. package/dist/models/invite-user-request-dto.d.ts +8 -2
  39. package/dist/models/invite-users-request-dto.d.ts +2 -2
  40. package/dist/models/invite-users-response-class.d.ts +24 -0
  41. package/dist/models/{list-user-subscriptions-response-class.d.ts → list-org-invitations-response-class.d.ts} +8 -8
  42. package/dist/models/{list-alert-history-response-class.d.ts → list-organizations-response-class.d.ts} +9 -9
  43. package/dist/models/org-invitation-class.d.ts +103 -0
  44. package/dist/models/{create-dashboard-response-class.d.ts → org-invitation-response-class.d.ts} +7 -7
  45. package/dist/models/organization-class.d.ts +84 -0
  46. package/dist/models/set-setting-request-dto.d.ts +10 -4
  47. package/dist/models/subscription-class.d.ts +9 -2
  48. package/dist/models/update-custom-schema-request-dto.d.ts +1 -0
  49. package/dist/models/update-custom-schema-request-dto.js +2 -1
  50. package/dist/models/user-class.d.ts +13 -5
  51. package/models/assign-user-roles-request-dto.ts +2 -2
  52. package/models/{manage-subscription-request-dto.ts → batch-delete-response-class.ts} +5 -5
  53. package/models/create-custom-schema-request-dto.ts +2 -1
  54. package/models/{insurance-response-class.ts → delete-response-class.ts} +6 -6
  55. package/models/{get-embedded-url-response-class.ts → disable-users-response-class.ts} +6 -6
  56. package/models/{insurance-company-response-class.ts → enable-users-response-class.ts} +6 -6
  57. package/models/{channel-response-class.ts → get-organization-response-class.ts} +7 -12
  58. package/models/index.ts +12 -50
  59. package/models/invite-org-request-dto.ts +84 -0
  60. package/models/invite-user-request-dto.ts +8 -2
  61. package/models/invite-users-request-dto.ts +2 -2
  62. package/models/invite-users-response-class.ts +30 -0
  63. package/models/{list-user-subscriptions-response-class.ts → list-org-invitations-response-class.ts} +8 -8
  64. package/models/{list-alert-history-response-class.ts → list-organizations-response-class.ts} +9 -9
  65. package/models/org-invitation-class.ts +109 -0
  66. package/models/{create-alert-response-class.ts → org-invitation-response-class.ts} +7 -7
  67. package/models/organization-class.ts +90 -0
  68. package/models/set-setting-request-dto.ts +10 -4
  69. package/models/subscription-class.ts +9 -2
  70. package/models/update-custom-schema-request-dto.ts +2 -1
  71. package/models/user-class.ts +13 -5
  72. package/package.json +1 -1
  73. package/api/alerts-api.ts +0 -860
  74. package/api/dashboard-api.ts +0 -792
  75. package/api/reports-api.ts +0 -860
  76. package/api/scenario-analysis-api.ts +0 -977
  77. package/api/settings-api.ts +0 -484
  78. package/api/tariff-comparisons-api.ts +0 -381
  79. package/dist/api/alerts-api.d.ts +0 -479
  80. package/dist/api/alerts-api.js +0 -752
  81. package/dist/api/dashboard-api.d.ts +0 -434
  82. package/dist/api/dashboard-api.js +0 -724
  83. package/dist/api/reports-api.d.ts +0 -479
  84. package/dist/api/reports-api.js +0 -752
  85. package/dist/api/scenario-analysis-api.d.ts +0 -529
  86. package/dist/api/scenario-analysis-api.js +0 -895
  87. package/dist/api/settings-api.d.ts +0 -264
  88. package/dist/api/tariff-comparisons-api.d.ts +0 -206
  89. package/dist/api/tariff-comparisons-api.js +0 -409
  90. package/dist/models/alert-class.d.ts +0 -90
  91. package/dist/models/alert-history-class.d.ts +0 -108
  92. package/dist/models/channel-response-class.d.ts +0 -30
  93. package/dist/models/compare-tariffs-request-dto.d.ts +0 -37
  94. package/dist/models/compare-tariffs-request-dto.js +0 -22
  95. package/dist/models/compare-tariffs-response-class.d.ts +0 -31
  96. package/dist/models/condition-dto.d.ts +0 -43
  97. package/dist/models/condition-dto.js +0 -22
  98. package/dist/models/create-alert-request-dto.d.ts +0 -79
  99. package/dist/models/create-alert-request-dto.js +0 -27
  100. package/dist/models/create-dashboard-request-dto.d.ts +0 -70
  101. package/dist/models/create-dashboard-request-dto.js +0 -29
  102. package/dist/models/create-report-request-dto.d.ts +0 -49
  103. package/dist/models/create-report-request-dto.js +0 -22
  104. package/dist/models/create-report-response-class.d.ts +0 -25
  105. package/dist/models/create-scenario-analysis-request-dto.d.ts +0 -74
  106. package/dist/models/create-scenario-analysis-request-dto.js +0 -22
  107. package/dist/models/create-scenario-analysis-response-class.d.ts +0 -25
  108. package/dist/models/dashboard-class.d.ts +0 -78
  109. package/dist/models/get-alert-response-class.d.ts +0 -25
  110. package/dist/models/get-dashboard-response-class.d.ts +0 -25
  111. package/dist/models/get-report-response-class.d.ts +0 -25
  112. package/dist/models/get-report-response-class.js +0 -15
  113. package/dist/models/get-scenario-analysis-response-class.d.ts +0 -25
  114. package/dist/models/get-scenario-analysis-response-class.js +0 -15
  115. package/dist/models/grouped-tariff-class.d.ts +0 -30
  116. package/dist/models/grouped-tariff-class.js +0 -15
  117. package/dist/models/insurance-company-response-class.js +0 -15
  118. package/dist/models/insurance-response-class.js +0 -15
  119. package/dist/models/list-alert-history-response-class.js +0 -15
  120. package/dist/models/list-alerts-response-class.d.ts +0 -31
  121. package/dist/models/list-alerts-response-class.js +0 -15
  122. package/dist/models/list-channels-response-class.d.ts +0 -25
  123. package/dist/models/list-channels-response-class.js +0 -15
  124. package/dist/models/list-dashboards-response-class.d.ts +0 -31
  125. package/dist/models/list-dashboards-response-class.js +0 -15
  126. package/dist/models/list-insurance-companies-response-class.d.ts +0 -25
  127. package/dist/models/list-insurance-companies-response-class.js +0 -15
  128. package/dist/models/list-report-history-response-class.d.ts +0 -31
  129. package/dist/models/list-report-history-response-class.js +0 -15
  130. package/dist/models/list-reports-response-class.d.ts +0 -31
  131. package/dist/models/list-reports-response-class.js +0 -15
  132. package/dist/models/list-scenario-analyses-response-class.d.ts +0 -31
  133. package/dist/models/list-scenario-analyses-response-class.js +0 -15
  134. package/dist/models/list-scenario-analysis-dates-response-class.d.ts +0 -25
  135. package/dist/models/list-scenario-analysis-dates-response-class.js +0 -15
  136. package/dist/models/list-tariff-insurance-companies-response-class.d.ts +0 -25
  137. package/dist/models/list-tariff-insurance-companies-response-class.js +0 -15
  138. package/dist/models/list-tariffs-response-class.d.ts +0 -25
  139. package/dist/models/list-tariffs-response-class.js +0 -15
  140. package/dist/models/list-user-subscriptions-response-class.js +0 -15
  141. package/dist/models/manage-subscription-request-dto.js +0 -15
  142. package/dist/models/manage-subscription-response-class.d.ts +0 -25
  143. package/dist/models/manage-subscription-response-class.js +0 -15
  144. package/dist/models/report-class.d.ts +0 -66
  145. package/dist/models/report-class.js +0 -15
  146. package/dist/models/report-history-class.d.ts +0 -48
  147. package/dist/models/report-history-class.js +0 -15
  148. package/dist/models/scenario-analysis-class.d.ts +0 -108
  149. package/dist/models/scenario-analysis-class.js +0 -15
  150. package/dist/models/scenario-analysis-date-response-class.d.ts +0 -36
  151. package/dist/models/scenario-analysis-date-response-class.js +0 -15
  152. package/dist/models/set-tenant-setting-response-class.d.ts +0 -36
  153. package/dist/models/set-tenant-setting-response-class.js +0 -15
  154. package/dist/models/update-alert-request-dto.d.ts +0 -72
  155. package/dist/models/update-alert-request-dto.js +0 -21
  156. package/dist/models/update-alert-response-class.d.ts +0 -25
  157. package/dist/models/update-alert-response-class.js +0 -15
  158. package/dist/models/update-dashboard-request-dto.d.ts +0 -76
  159. package/dist/models/update-dashboard-request-dto.js +0 -29
  160. package/dist/models/update-dashboard-response-class.d.ts +0 -25
  161. package/dist/models/update-dashboard-response-class.js +0 -15
  162. package/dist/models/update-report-request-dto.d.ts +0 -55
  163. package/dist/models/update-report-request-dto.js +0 -22
  164. package/dist/models/update-report-response-class.d.ts +0 -25
  165. package/dist/models/update-report-response-class.js +0 -15
  166. package/dist/models/update-scenario-analysis-request-dto.d.ts +0 -74
  167. package/dist/models/update-scenario-analysis-request-dto.js +0 -22
  168. package/dist/models/update-scenario-analysis-response-class.d.ts +0 -25
  169. package/dist/models/update-scenario-analysis-response-class.js +0 -15
  170. package/models/alert-class.ts +0 -96
  171. package/models/alert-history-class.ts +0 -114
  172. package/models/compare-tariffs-request-dto.ts +0 -46
  173. package/models/compare-tariffs-response-class.ts +0 -37
  174. package/models/condition-dto.ts +0 -52
  175. package/models/create-alert-request-dto.ts +0 -89
  176. package/models/create-dashboard-request-dto.ts +0 -81
  177. package/models/create-dashboard-response-class.ts +0 -31
  178. package/models/create-report-request-dto.ts +0 -58
  179. package/models/create-report-response-class.ts +0 -31
  180. package/models/create-scenario-analysis-request-dto.ts +0 -83
  181. package/models/create-scenario-analysis-response-class.ts +0 -31
  182. package/models/dashboard-class.ts +0 -84
  183. package/models/get-alert-response-class.ts +0 -31
  184. package/models/get-dashboard-response-class.ts +0 -31
  185. package/models/get-report-response-class.ts +0 -31
  186. package/models/get-scenario-analysis-response-class.ts +0 -31
  187. package/models/grouped-tariff-class.ts +0 -36
  188. package/models/list-alerts-response-class.ts +0 -37
  189. package/models/list-channels-response-class.ts +0 -31
  190. package/models/list-dashboards-response-class.ts +0 -37
  191. package/models/list-insurance-companies-response-class.ts +0 -31
  192. package/models/list-report-history-response-class.ts +0 -37
  193. package/models/list-reports-response-class.ts +0 -37
  194. package/models/list-scenario-analyses-response-class.ts +0 -37
  195. package/models/list-scenario-analysis-dates-response-class.ts +0 -31
  196. package/models/list-tariff-insurance-companies-response-class.ts +0 -31
  197. package/models/list-tariffs-response-class.ts +0 -31
  198. package/models/manage-subscription-response-class.ts +0 -31
  199. package/models/report-class.ts +0 -72
  200. package/models/report-history-class.ts +0 -54
  201. package/models/scenario-analysis-class.ts +0 -114
  202. package/models/scenario-analysis-date-response-class.ts +0 -42
  203. package/models/set-tenant-setting-response-class.ts +0 -42
  204. package/models/update-alert-request-dto.ts +0 -81
  205. package/models/update-alert-response-class.ts +0 -31
  206. package/models/update-dashboard-request-dto.ts +0 -87
  207. package/models/update-dashboard-response-class.ts +0 -31
  208. package/models/update-report-request-dto.ts +0 -64
  209. package/models/update-report-response-class.ts +0 -31
  210. package/models/update-scenario-analysis-request-dto.ts +0 -83
  211. package/models/update-scenario-analysis-response-class.ts +0 -31
  212. /package/dist/models/{alert-class.js → batch-delete-response-class.js} +0 -0
  213. /package/dist/models/{alert-history-class.js → delete-response-class.js} +0 -0
  214. /package/dist/models/{channel-response-class.js → disable-users-response-class.js} +0 -0
  215. /package/dist/models/{compare-tariffs-response-class.js → enable-users-response-class.js} +0 -0
  216. /package/dist/models/{create-alert-response-class.js → get-organization-response-class.js} +0 -0
  217. /package/dist/models/{create-dashboard-response-class.js → invite-org-request-dto.js} +0 -0
  218. /package/dist/models/{create-report-response-class.js → invite-users-response-class.js} +0 -0
  219. /package/dist/models/{create-scenario-analysis-response-class.js → list-org-invitations-response-class.js} +0 -0
  220. /package/dist/models/{dashboard-class.js → list-organizations-response-class.js} +0 -0
  221. /package/dist/models/{get-alert-response-class.js → org-invitation-class.js} +0 -0
  222. /package/dist/models/{get-dashboard-response-class.js → org-invitation-response-class.js} +0 -0
  223. /package/dist/models/{get-embedded-url-response-class.js → organization-class.js} +0 -0
@@ -1,724 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * EMIL Tenant Service
6
- * The EMIL TenantService API description
7
- *
8
- * The version of the OpenAPI document: 1.0
9
- * Contact: kontakt@emil.de
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- var __extends = (this && this.__extends) || (function () {
16
- var extendStatics = function (d, b) {
17
- extendStatics = Object.setPrototypeOf ||
18
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
- return extendStatics(d, b);
21
- };
22
- return function (d, b) {
23
- if (typeof b !== "function" && b !== null)
24
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
- extendStatics(d, b);
26
- function __() { this.constructor = d; }
27
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
- };
29
- })();
30
- var __assign = (this && this.__assign) || function () {
31
- __assign = Object.assign || function(t) {
32
- for (var s, i = 1, n = arguments.length; i < n; i++) {
33
- s = arguments[i];
34
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
35
- t[p] = s[p];
36
- }
37
- return t;
38
- };
39
- return __assign.apply(this, arguments);
40
- };
41
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
42
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
43
- return new (P || (P = Promise))(function (resolve, reject) {
44
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
45
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
46
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
47
- step((generator = generator.apply(thisArg, _arguments || [])).next());
48
- });
49
- };
50
- var __generator = (this && this.__generator) || function (thisArg, body) {
51
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
52
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
- function verb(n) { return function (v) { return step([n, v]); }; }
54
- function step(op) {
55
- if (f) throw new TypeError("Generator is already executing.");
56
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
57
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
58
- if (y = 0, t) op = [op[0] & 2, t.value];
59
- switch (op[0]) {
60
- case 0: case 1: t = op; break;
61
- case 4: _.label++; return { value: op[1], done: false };
62
- case 5: _.label++; y = op[1]; op = [0]; continue;
63
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
64
- default:
65
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
66
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
67
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
68
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
69
- if (t[2]) _.ops.pop();
70
- _.trys.pop(); continue;
71
- }
72
- op = body.call(thisArg, _);
73
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
74
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
- }
76
- };
77
- var __importDefault = (this && this.__importDefault) || function (mod) {
78
- return (mod && mod.__esModule) ? mod : { "default": mod };
79
- };
80
- Object.defineProperty(exports, "__esModule", { value: true });
81
- exports.DashboardApi = exports.DashboardApiFactory = exports.DashboardApiFp = exports.DashboardApiAxiosParamCreator = void 0;
82
- var axios_1 = __importDefault(require("axios"));
83
- // Some imports not used depending on template conditions
84
- // @ts-ignore
85
- var common_1 = require("../common");
86
- // @ts-ignore
87
- var base_1 = require("../base");
88
- // URLSearchParams not necessarily used
89
- // @ts-ignore
90
- var url_1 = require("url");
91
- var FormData = require('form-data');
92
- /**
93
- * DashboardApi - axios parameter creator
94
- * @export
95
- */
96
- var DashboardApiAxiosParamCreator = function (configuration) {
97
- var _this = this;
98
- return {
99
- /**
100
- *
101
- * @param {CreateDashboardRequestDto} createDashboardRequestDto
102
- * @param {string} [authorization] Bearer Token
103
- * @param {*} [options] Override http request option.
104
- * @throws {RequiredError}
105
- */
106
- createDashboard: function (createDashboardRequestDto, authorization, options) {
107
- if (options === void 0) { options = {}; }
108
- return __awaiter(_this, void 0, void 0, function () {
109
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
110
- return __generator(this, function (_a) {
111
- switch (_a.label) {
112
- case 0:
113
- // verify required parameter 'createDashboardRequestDto' is not null or undefined
114
- (0, common_1.assertParamExists)('createDashboard', 'createDashboardRequestDto', createDashboardRequestDto);
115
- localVarPath = "/tenantservice/v1/dashboards";
116
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
117
- if (configuration) {
118
- baseOptions = configuration.baseOptions;
119
- baseAccessToken = configuration.accessToken;
120
- }
121
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
122
- localVarHeaderParameter = {};
123
- localVarQueryParameter = {};
124
- // authentication bearer required
125
- // http bearer authentication required
126
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
127
- case 1:
128
- // authentication bearer required
129
- // http bearer authentication required
130
- _a.sent();
131
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
132
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
133
- }
134
- localVarHeaderParameter['Content-Type'] = 'application/json';
135
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
136
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
137
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
138
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createDashboardRequestDto, localVarRequestOptions, configuration);
139
- return [2 /*return*/, {
140
- url: (0, common_1.toPathString)(localVarUrlObj),
141
- options: localVarRequestOptions,
142
- }];
143
- }
144
- });
145
- });
146
- },
147
- /**
148
- *
149
- * @param {string} id
150
- * @param {string} [authorization] Bearer Token
151
- * @param {*} [options] Override http request option.
152
- * @throws {RequiredError}
153
- */
154
- deleteDashboard: function (id, authorization, options) {
155
- if (options === void 0) { options = {}; }
156
- return __awaiter(_this, void 0, void 0, function () {
157
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
158
- return __generator(this, function (_a) {
159
- switch (_a.label) {
160
- case 0:
161
- // verify required parameter 'id' is not null or undefined
162
- (0, common_1.assertParamExists)('deleteDashboard', 'id', id);
163
- localVarPath = "/tenantservice/v1/dashboards/{id}"
164
- .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
165
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
166
- if (configuration) {
167
- baseOptions = configuration.baseOptions;
168
- baseAccessToken = configuration.accessToken;
169
- }
170
- localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
171
- localVarHeaderParameter = {};
172
- localVarQueryParameter = {};
173
- // authentication bearer required
174
- // http bearer authentication required
175
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
176
- case 1:
177
- // authentication bearer required
178
- // http bearer authentication required
179
- _a.sent();
180
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
181
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
182
- }
183
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
184
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
185
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
186
- return [2 /*return*/, {
187
- url: (0, common_1.toPathString)(localVarUrlObj),
188
- options: localVarRequestOptions,
189
- }];
190
- }
191
- });
192
- });
193
- },
194
- /**
195
- *
196
- * @param {string} code
197
- * @param {string} code2 Dashboard code
198
- * @param {string} [authorization] Bearer Token
199
- * @param {string} [expand] Fields to expand response by
200
- * @param {*} [options] Override http request option.
201
- * @throws {RequiredError}
202
- */
203
- getDashboard: function (code, code2, authorization, expand, options) {
204
- if (options === void 0) { options = {}; }
205
- return __awaiter(_this, void 0, void 0, function () {
206
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
207
- return __generator(this, function (_a) {
208
- switch (_a.label) {
209
- case 0:
210
- // verify required parameter 'code' is not null or undefined
211
- (0, common_1.assertParamExists)('getDashboard', 'code', code);
212
- // verify required parameter 'code2' is not null or undefined
213
- (0, common_1.assertParamExists)('getDashboard', 'code2', code2);
214
- localVarPath = "/tenantservice/v1/dashboards/{code}"
215
- .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
216
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
217
- if (configuration) {
218
- baseOptions = configuration.baseOptions;
219
- baseAccessToken = configuration.accessToken;
220
- }
221
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
222
- localVarHeaderParameter = {};
223
- localVarQueryParameter = {};
224
- // authentication bearer required
225
- // http bearer authentication required
226
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
227
- case 1:
228
- // authentication bearer required
229
- // http bearer authentication required
230
- _a.sent();
231
- if (code2 !== undefined) {
232
- localVarQueryParameter['code'] = code2;
233
- }
234
- if (expand !== undefined) {
235
- localVarQueryParameter['expand'] = expand;
236
- }
237
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
238
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
239
- }
240
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
241
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
242
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
243
- return [2 /*return*/, {
244
- url: (0, common_1.toPathString)(localVarUrlObj),
245
- options: localVarRequestOptions,
246
- }];
247
- }
248
- });
249
- });
250
- },
251
- /**
252
- *
253
- * @param {string} providerDashboardId
254
- * @param {string} providerName
255
- * @param {string} [authorization] Bearer Token
256
- * @param {*} [options] Override http request option.
257
- * @throws {RequiredError}
258
- */
259
- getEmbeddedUrl: function (providerDashboardId, providerName, authorization, options) {
260
- if (options === void 0) { options = {}; }
261
- return __awaiter(_this, void 0, void 0, function () {
262
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
263
- return __generator(this, function (_a) {
264
- switch (_a.label) {
265
- case 0:
266
- // verify required parameter 'providerDashboardId' is not null or undefined
267
- (0, common_1.assertParamExists)('getEmbeddedUrl', 'providerDashboardId', providerDashboardId);
268
- // verify required parameter 'providerName' is not null or undefined
269
- (0, common_1.assertParamExists)('getEmbeddedUrl', 'providerName', providerName);
270
- localVarPath = "/tenantservice/v1/dashboards/{provider_dashboard_id}/embedded-url"
271
- .replace("{".concat("provider_dashboard_id", "}"), encodeURIComponent(String(providerDashboardId)));
272
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
273
- if (configuration) {
274
- baseOptions = configuration.baseOptions;
275
- baseAccessToken = configuration.accessToken;
276
- }
277
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
278
- localVarHeaderParameter = {};
279
- localVarQueryParameter = {};
280
- // authentication bearer required
281
- // http bearer authentication required
282
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
283
- case 1:
284
- // authentication bearer required
285
- // http bearer authentication required
286
- _a.sent();
287
- if (providerName !== undefined) {
288
- localVarQueryParameter['provider_name'] = providerName;
289
- }
290
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
291
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
292
- }
293
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
294
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
295
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
296
- return [2 /*return*/, {
297
- url: (0, common_1.toPathString)(localVarUrlObj),
298
- options: localVarRequestOptions,
299
- }];
300
- }
301
- });
302
- });
303
- },
304
- /**
305
- *
306
- * @param {string} [authorization] Bearer Token
307
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
308
- * @param {any} [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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
309
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
310
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
311
- * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
312
- * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
313
- * @param {*} [options] Override http request option.
314
- * @throws {RequiredError}
315
- */
316
- listDashboards: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
317
- if (options === void 0) { options = {}; }
318
- return __awaiter(_this, void 0, void 0, function () {
319
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
320
- return __generator(this, function (_a) {
321
- switch (_a.label) {
322
- case 0:
323
- localVarPath = "/tenantservice/v1/dashboards";
324
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
325
- if (configuration) {
326
- baseOptions = configuration.baseOptions;
327
- baseAccessToken = configuration.accessToken;
328
- }
329
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
330
- localVarHeaderParameter = {};
331
- localVarQueryParameter = {};
332
- // authentication bearer required
333
- // http bearer authentication required
334
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
335
- case 1:
336
- // authentication bearer required
337
- // http bearer authentication required
338
- _a.sent();
339
- if (pageSize !== undefined) {
340
- localVarQueryParameter['pageSize'] = pageSize;
341
- }
342
- if (pageToken !== undefined) {
343
- localVarQueryParameter['pageToken'] = pageToken;
344
- }
345
- if (filter !== undefined) {
346
- localVarQueryParameter['filter'] = filter;
347
- }
348
- if (search !== undefined) {
349
- localVarQueryParameter['search'] = search;
350
- }
351
- if (order !== undefined) {
352
- localVarQueryParameter['order'] = order;
353
- }
354
- if (expand !== undefined) {
355
- localVarQueryParameter['expand'] = expand;
356
- }
357
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
358
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
359
- }
360
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
361
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
362
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
363
- return [2 /*return*/, {
364
- url: (0, common_1.toPathString)(localVarUrlObj),
365
- options: localVarRequestOptions,
366
- }];
367
- }
368
- });
369
- });
370
- },
371
- /**
372
- *
373
- * @param {number} id
374
- * @param {UpdateDashboardRequestDto} updateDashboardRequestDto
375
- * @param {string} [authorization] Bearer Token
376
- * @param {*} [options] Override http request option.
377
- * @throws {RequiredError}
378
- */
379
- updateDashboard: function (id, updateDashboardRequestDto, authorization, options) {
380
- if (options === void 0) { options = {}; }
381
- return __awaiter(_this, void 0, void 0, function () {
382
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
383
- return __generator(this, function (_a) {
384
- switch (_a.label) {
385
- case 0:
386
- // verify required parameter 'id' is not null or undefined
387
- (0, common_1.assertParamExists)('updateDashboard', 'id', id);
388
- // verify required parameter 'updateDashboardRequestDto' is not null or undefined
389
- (0, common_1.assertParamExists)('updateDashboard', 'updateDashboardRequestDto', updateDashboardRequestDto);
390
- localVarPath = "/tenantservice/v1/dashboards/{id}"
391
- .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
392
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
393
- if (configuration) {
394
- baseOptions = configuration.baseOptions;
395
- baseAccessToken = configuration.accessToken;
396
- }
397
- localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
398
- localVarHeaderParameter = {};
399
- localVarQueryParameter = {};
400
- // authentication bearer required
401
- // http bearer authentication required
402
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
403
- case 1:
404
- // authentication bearer required
405
- // http bearer authentication required
406
- _a.sent();
407
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
408
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
409
- }
410
- localVarHeaderParameter['Content-Type'] = 'application/json';
411
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
412
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
413
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
414
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateDashboardRequestDto, localVarRequestOptions, configuration);
415
- return [2 /*return*/, {
416
- url: (0, common_1.toPathString)(localVarUrlObj),
417
- options: localVarRequestOptions,
418
- }];
419
- }
420
- });
421
- });
422
- },
423
- };
424
- };
425
- exports.DashboardApiAxiosParamCreator = DashboardApiAxiosParamCreator;
426
- /**
427
- * DashboardApi - functional programming interface
428
- * @export
429
- */
430
- var DashboardApiFp = function (configuration) {
431
- var localVarAxiosParamCreator = (0, exports.DashboardApiAxiosParamCreator)(configuration);
432
- return {
433
- /**
434
- *
435
- * @param {CreateDashboardRequestDto} createDashboardRequestDto
436
- * @param {string} [authorization] Bearer Token
437
- * @param {*} [options] Override http request option.
438
- * @throws {RequiredError}
439
- */
440
- createDashboard: function (createDashboardRequestDto, authorization, options) {
441
- return __awaiter(this, void 0, void 0, function () {
442
- var localVarAxiosArgs;
443
- return __generator(this, function (_a) {
444
- switch (_a.label) {
445
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.createDashboard(createDashboardRequestDto, authorization, options)];
446
- case 1:
447
- localVarAxiosArgs = _a.sent();
448
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
449
- }
450
- });
451
- });
452
- },
453
- /**
454
- *
455
- * @param {string} id
456
- * @param {string} [authorization] Bearer Token
457
- * @param {*} [options] Override http request option.
458
- * @throws {RequiredError}
459
- */
460
- deleteDashboard: function (id, authorization, options) {
461
- return __awaiter(this, void 0, void 0, function () {
462
- var localVarAxiosArgs;
463
- return __generator(this, function (_a) {
464
- switch (_a.label) {
465
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteDashboard(id, authorization, options)];
466
- case 1:
467
- localVarAxiosArgs = _a.sent();
468
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
469
- }
470
- });
471
- });
472
- },
473
- /**
474
- *
475
- * @param {string} code
476
- * @param {string} code2 Dashboard code
477
- * @param {string} [authorization] Bearer Token
478
- * @param {string} [expand] Fields to expand response by
479
- * @param {*} [options] Override http request option.
480
- * @throws {RequiredError}
481
- */
482
- getDashboard: function (code, code2, authorization, expand, options) {
483
- return __awaiter(this, void 0, void 0, function () {
484
- var localVarAxiosArgs;
485
- return __generator(this, function (_a) {
486
- switch (_a.label) {
487
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getDashboard(code, code2, authorization, expand, options)];
488
- case 1:
489
- localVarAxiosArgs = _a.sent();
490
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
491
- }
492
- });
493
- });
494
- },
495
- /**
496
- *
497
- * @param {string} providerDashboardId
498
- * @param {string} providerName
499
- * @param {string} [authorization] Bearer Token
500
- * @param {*} [options] Override http request option.
501
- * @throws {RequiredError}
502
- */
503
- getEmbeddedUrl: function (providerDashboardId, providerName, authorization, options) {
504
- return __awaiter(this, void 0, void 0, function () {
505
- var localVarAxiosArgs;
506
- return __generator(this, function (_a) {
507
- switch (_a.label) {
508
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getEmbeddedUrl(providerDashboardId, providerName, authorization, options)];
509
- case 1:
510
- localVarAxiosArgs = _a.sent();
511
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
512
- }
513
- });
514
- });
515
- },
516
- /**
517
- *
518
- * @param {string} [authorization] Bearer Token
519
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
520
- * @param {any} [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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
521
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
522
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
523
- * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
524
- * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
525
- * @param {*} [options] Override http request option.
526
- * @throws {RequiredError}
527
- */
528
- listDashboards: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
529
- return __awaiter(this, void 0, void 0, function () {
530
- var localVarAxiosArgs;
531
- return __generator(this, function (_a) {
532
- switch (_a.label) {
533
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listDashboards(authorization, pageSize, pageToken, filter, search, order, expand, options)];
534
- case 1:
535
- localVarAxiosArgs = _a.sent();
536
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
537
- }
538
- });
539
- });
540
- },
541
- /**
542
- *
543
- * @param {number} id
544
- * @param {UpdateDashboardRequestDto} updateDashboardRequestDto
545
- * @param {string} [authorization] Bearer Token
546
- * @param {*} [options] Override http request option.
547
- * @throws {RequiredError}
548
- */
549
- updateDashboard: function (id, updateDashboardRequestDto, authorization, options) {
550
- return __awaiter(this, void 0, void 0, function () {
551
- var localVarAxiosArgs;
552
- return __generator(this, function (_a) {
553
- switch (_a.label) {
554
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateDashboard(id, updateDashboardRequestDto, authorization, options)];
555
- case 1:
556
- localVarAxiosArgs = _a.sent();
557
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
558
- }
559
- });
560
- });
561
- },
562
- };
563
- };
564
- exports.DashboardApiFp = DashboardApiFp;
565
- /**
566
- * DashboardApi - factory interface
567
- * @export
568
- */
569
- var DashboardApiFactory = function (configuration, basePath, axios) {
570
- var localVarFp = (0, exports.DashboardApiFp)(configuration);
571
- return {
572
- /**
573
- *
574
- * @param {CreateDashboardRequestDto} createDashboardRequestDto
575
- * @param {string} [authorization] Bearer Token
576
- * @param {*} [options] Override http request option.
577
- * @throws {RequiredError}
578
- */
579
- createDashboard: function (createDashboardRequestDto, authorization, options) {
580
- return localVarFp.createDashboard(createDashboardRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
581
- },
582
- /**
583
- *
584
- * @param {string} id
585
- * @param {string} [authorization] Bearer Token
586
- * @param {*} [options] Override http request option.
587
- * @throws {RequiredError}
588
- */
589
- deleteDashboard: function (id, authorization, options) {
590
- return localVarFp.deleteDashboard(id, authorization, options).then(function (request) { return request(axios, basePath); });
591
- },
592
- /**
593
- *
594
- * @param {string} code
595
- * @param {string} code2 Dashboard code
596
- * @param {string} [authorization] Bearer Token
597
- * @param {string} [expand] Fields to expand response by
598
- * @param {*} [options] Override http request option.
599
- * @throws {RequiredError}
600
- */
601
- getDashboard: function (code, code2, authorization, expand, options) {
602
- return localVarFp.getDashboard(code, code2, authorization, expand, options).then(function (request) { return request(axios, basePath); });
603
- },
604
- /**
605
- *
606
- * @param {string} providerDashboardId
607
- * @param {string} providerName
608
- * @param {string} [authorization] Bearer Token
609
- * @param {*} [options] Override http request option.
610
- * @throws {RequiredError}
611
- */
612
- getEmbeddedUrl: function (providerDashboardId, providerName, authorization, options) {
613
- return localVarFp.getEmbeddedUrl(providerDashboardId, providerName, authorization, options).then(function (request) { return request(axios, basePath); });
614
- },
615
- /**
616
- *
617
- * @param {string} [authorization] Bearer Token
618
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
619
- * @param {any} [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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
620
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
621
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
622
- * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
623
- * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
624
- * @param {*} [options] Override http request option.
625
- * @throws {RequiredError}
626
- */
627
- listDashboards: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
628
- return localVarFp.listDashboards(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
629
- },
630
- /**
631
- *
632
- * @param {number} id
633
- * @param {UpdateDashboardRequestDto} updateDashboardRequestDto
634
- * @param {string} [authorization] Bearer Token
635
- * @param {*} [options] Override http request option.
636
- * @throws {RequiredError}
637
- */
638
- updateDashboard: function (id, updateDashboardRequestDto, authorization, options) {
639
- return localVarFp.updateDashboard(id, updateDashboardRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
640
- },
641
- };
642
- };
643
- exports.DashboardApiFactory = DashboardApiFactory;
644
- /**
645
- * DashboardApi - object-oriented interface
646
- * @export
647
- * @class DashboardApi
648
- * @extends {BaseAPI}
649
- */
650
- var DashboardApi = /** @class */ (function (_super) {
651
- __extends(DashboardApi, _super);
652
- function DashboardApi() {
653
- return _super !== null && _super.apply(this, arguments) || this;
654
- }
655
- /**
656
- *
657
- * @param {DashboardApiCreateDashboardRequest} requestParameters Request parameters.
658
- * @param {*} [options] Override http request option.
659
- * @throws {RequiredError}
660
- * @memberof DashboardApi
661
- */
662
- DashboardApi.prototype.createDashboard = function (requestParameters, options) {
663
- var _this = this;
664
- return (0, exports.DashboardApiFp)(this.configuration).createDashboard(requestParameters.createDashboardRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
665
- };
666
- /**
667
- *
668
- * @param {DashboardApiDeleteDashboardRequest} requestParameters Request parameters.
669
- * @param {*} [options] Override http request option.
670
- * @throws {RequiredError}
671
- * @memberof DashboardApi
672
- */
673
- DashboardApi.prototype.deleteDashboard = function (requestParameters, options) {
674
- var _this = this;
675
- return (0, exports.DashboardApiFp)(this.configuration).deleteDashboard(requestParameters.id, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
676
- };
677
- /**
678
- *
679
- * @param {DashboardApiGetDashboardRequest} requestParameters Request parameters.
680
- * @param {*} [options] Override http request option.
681
- * @throws {RequiredError}
682
- * @memberof DashboardApi
683
- */
684
- DashboardApi.prototype.getDashboard = function (requestParameters, options) {
685
- var _this = this;
686
- return (0, exports.DashboardApiFp)(this.configuration).getDashboard(requestParameters.code, requestParameters.code2, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
687
- };
688
- /**
689
- *
690
- * @param {DashboardApiGetEmbeddedUrlRequest} requestParameters Request parameters.
691
- * @param {*} [options] Override http request option.
692
- * @throws {RequiredError}
693
- * @memberof DashboardApi
694
- */
695
- DashboardApi.prototype.getEmbeddedUrl = function (requestParameters, options) {
696
- var _this = this;
697
- return (0, exports.DashboardApiFp)(this.configuration).getEmbeddedUrl(requestParameters.providerDashboardId, requestParameters.providerName, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
698
- };
699
- /**
700
- *
701
- * @param {DashboardApiListDashboardsRequest} requestParameters Request parameters.
702
- * @param {*} [options] Override http request option.
703
- * @throws {RequiredError}
704
- * @memberof DashboardApi
705
- */
706
- DashboardApi.prototype.listDashboards = function (requestParameters, options) {
707
- var _this = this;
708
- if (requestParameters === void 0) { requestParameters = {}; }
709
- return (0, exports.DashboardApiFp)(this.configuration).listDashboards(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
710
- };
711
- /**
712
- *
713
- * @param {DashboardApiUpdateDashboardRequest} requestParameters Request parameters.
714
- * @param {*} [options] Override http request option.
715
- * @throws {RequiredError}
716
- * @memberof DashboardApi
717
- */
718
- DashboardApi.prototype.updateDashboard = function (requestParameters, options) {
719
- var _this = this;
720
- return (0, exports.DashboardApiFp)(this.configuration).updateDashboard(requestParameters.id, requestParameters.updateDashboardRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
721
- };
722
- return DashboardApi;
723
- }(base_1.BaseAPI));
724
- exports.DashboardApi = DashboardApi;