@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,792 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * EMIL Tenant Service
5
- * The EMIL TenantService API description
6
- *
7
- * The version of the OpenAPI document: 1.0
8
- * Contact: kontakt@emil.de
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
-
16
- import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17
- import { Configuration } from '../configuration';
18
- // Some imports not used depending on template conditions
19
- // @ts-ignore
20
- import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
- // @ts-ignore
22
- import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
- // @ts-ignore
24
- import { CreateDashboardRequestDto } from '../models';
25
- // @ts-ignore
26
- import { CreateDashboardResponseClass } from '../models';
27
- // @ts-ignore
28
- import { GetDashboardResponseClass } from '../models';
29
- // @ts-ignore
30
- import { GetEmbeddedUrlResponseClass } from '../models';
31
- // @ts-ignore
32
- import { ListDashboardsResponseClass } from '../models';
33
- // @ts-ignore
34
- import { UpdateDashboardRequestDto } from '../models';
35
- // @ts-ignore
36
- import { UpdateDashboardResponseClass } from '../models';
37
- // URLSearchParams not necessarily used
38
- // @ts-ignore
39
- import { URL, URLSearchParams } from 'url';
40
- const FormData = require('form-data');
41
- /**
42
- * DashboardApi - axios parameter creator
43
- * @export
44
- */
45
- export const DashboardApiAxiosParamCreator = function (configuration?: Configuration) {
46
- return {
47
- /**
48
- *
49
- * @param {CreateDashboardRequestDto} createDashboardRequestDto
50
- * @param {string} [authorization] Bearer Token
51
- * @param {*} [options] Override http request option.
52
- * @throws {RequiredError}
53
- */
54
- createDashboard: async (createDashboardRequestDto: CreateDashboardRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
55
- // verify required parameter 'createDashboardRequestDto' is not null or undefined
56
- assertParamExists('createDashboard', 'createDashboardRequestDto', createDashboardRequestDto)
57
- const localVarPath = `/tenantservice/v1/dashboards`;
58
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
59
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
60
- let baseOptions;
61
- let baseAccessToken;
62
- if (configuration) {
63
- baseOptions = configuration.baseOptions;
64
- baseAccessToken = configuration.accessToken;
65
- }
66
-
67
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
68
- const localVarHeaderParameter = {} as any;
69
- const localVarQueryParameter = {} as any;
70
-
71
- // authentication bearer required
72
- // http bearer authentication required
73
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
74
-
75
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
76
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
77
- }
78
-
79
-
80
-
81
- localVarHeaderParameter['Content-Type'] = 'application/json';
82
-
83
- setSearchParams(localVarUrlObj, localVarQueryParameter);
84
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
85
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
86
- localVarRequestOptions.data = serializeDataIfNeeded(createDashboardRequestDto, localVarRequestOptions, configuration)
87
-
88
- return {
89
- url: toPathString(localVarUrlObj),
90
- options: localVarRequestOptions,
91
- };
92
- },
93
- /**
94
- *
95
- * @param {string} id
96
- * @param {string} [authorization] Bearer Token
97
- * @param {*} [options] Override http request option.
98
- * @throws {RequiredError}
99
- */
100
- deleteDashboard: async (id: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
101
- // verify required parameter 'id' is not null or undefined
102
- assertParamExists('deleteDashboard', 'id', id)
103
- const localVarPath = `/tenantservice/v1/dashboards/{id}`
104
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
105
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
106
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
107
- let baseOptions;
108
- let baseAccessToken;
109
- if (configuration) {
110
- baseOptions = configuration.baseOptions;
111
- baseAccessToken = configuration.accessToken;
112
- }
113
-
114
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
115
- const localVarHeaderParameter = {} as any;
116
- const localVarQueryParameter = {} as any;
117
-
118
- // authentication bearer required
119
- // http bearer authentication required
120
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
121
-
122
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
123
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
124
- }
125
-
126
-
127
-
128
- setSearchParams(localVarUrlObj, localVarQueryParameter);
129
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
130
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
131
-
132
- return {
133
- url: toPathString(localVarUrlObj),
134
- options: localVarRequestOptions,
135
- };
136
- },
137
- /**
138
- *
139
- * @param {string} code
140
- * @param {string} code2 Dashboard code
141
- * @param {string} [authorization] Bearer Token
142
- * @param {string} [expand] Fields to expand response by
143
- * @param {*} [options] Override http request option.
144
- * @throws {RequiredError}
145
- */
146
- getDashboard: async (code: string, code2: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
147
- // verify required parameter 'code' is not null or undefined
148
- assertParamExists('getDashboard', 'code', code)
149
- // verify required parameter 'code2' is not null or undefined
150
- assertParamExists('getDashboard', 'code2', code2)
151
- const localVarPath = `/tenantservice/v1/dashboards/{code}`
152
- .replace(`{${"code"}}`, encodeURIComponent(String(code)));
153
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
154
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
155
- let baseOptions;
156
- let baseAccessToken;
157
- if (configuration) {
158
- baseOptions = configuration.baseOptions;
159
- baseAccessToken = configuration.accessToken;
160
- }
161
-
162
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
163
- const localVarHeaderParameter = {} as any;
164
- const localVarQueryParameter = {} as any;
165
-
166
- // authentication bearer required
167
- // http bearer authentication required
168
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
169
-
170
- if (code2 !== undefined) {
171
- localVarQueryParameter['code'] = code2;
172
- }
173
-
174
- if (expand !== undefined) {
175
- localVarQueryParameter['expand'] = expand;
176
- }
177
-
178
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
179
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
180
- }
181
-
182
-
183
-
184
- setSearchParams(localVarUrlObj, localVarQueryParameter);
185
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
186
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
187
-
188
- return {
189
- url: toPathString(localVarUrlObj),
190
- options: localVarRequestOptions,
191
- };
192
- },
193
- /**
194
- *
195
- * @param {string} providerDashboardId
196
- * @param {string} providerName
197
- * @param {string} [authorization] Bearer Token
198
- * @param {*} [options] Override http request option.
199
- * @throws {RequiredError}
200
- */
201
- getEmbeddedUrl: async (providerDashboardId: string, providerName: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
202
- // verify required parameter 'providerDashboardId' is not null or undefined
203
- assertParamExists('getEmbeddedUrl', 'providerDashboardId', providerDashboardId)
204
- // verify required parameter 'providerName' is not null or undefined
205
- assertParamExists('getEmbeddedUrl', 'providerName', providerName)
206
- const localVarPath = `/tenantservice/v1/dashboards/{provider_dashboard_id}/embedded-url`
207
- .replace(`{${"provider_dashboard_id"}}`, encodeURIComponent(String(providerDashboardId)));
208
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
209
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
210
- let baseOptions;
211
- let baseAccessToken;
212
- if (configuration) {
213
- baseOptions = configuration.baseOptions;
214
- baseAccessToken = configuration.accessToken;
215
- }
216
-
217
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
218
- const localVarHeaderParameter = {} as any;
219
- const localVarQueryParameter = {} as any;
220
-
221
- // authentication bearer required
222
- // http bearer authentication required
223
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
224
-
225
- if (providerName !== undefined) {
226
- localVarQueryParameter['provider_name'] = providerName;
227
- }
228
-
229
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
230
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
231
- }
232
-
233
-
234
-
235
- setSearchParams(localVarUrlObj, localVarQueryParameter);
236
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
237
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
238
-
239
- return {
240
- url: toPathString(localVarUrlObj),
241
- options: localVarRequestOptions,
242
- };
243
- },
244
- /**
245
- *
246
- * @param {string} [authorization] Bearer Token
247
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
248
- * @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.
249
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
250
- * @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.
251
- * @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.
252
- * @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.
253
- * @param {*} [options] Override http request option.
254
- * @throws {RequiredError}
255
- */
256
- listDashboards: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
257
- const localVarPath = `/tenantservice/v1/dashboards`;
258
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
259
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
260
- let baseOptions;
261
- let baseAccessToken;
262
- if (configuration) {
263
- baseOptions = configuration.baseOptions;
264
- baseAccessToken = configuration.accessToken;
265
- }
266
-
267
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
268
- const localVarHeaderParameter = {} as any;
269
- const localVarQueryParameter = {} as any;
270
-
271
- // authentication bearer required
272
- // http bearer authentication required
273
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
274
-
275
- if (pageSize !== undefined) {
276
- localVarQueryParameter['pageSize'] = pageSize;
277
- }
278
-
279
- if (pageToken !== undefined) {
280
- localVarQueryParameter['pageToken'] = pageToken;
281
- }
282
-
283
- if (filter !== undefined) {
284
- localVarQueryParameter['filter'] = filter;
285
- }
286
-
287
- if (search !== undefined) {
288
- localVarQueryParameter['search'] = search;
289
- }
290
-
291
- if (order !== undefined) {
292
- localVarQueryParameter['order'] = order;
293
- }
294
-
295
- if (expand !== undefined) {
296
- localVarQueryParameter['expand'] = expand;
297
- }
298
-
299
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
300
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
301
- }
302
-
303
-
304
-
305
- setSearchParams(localVarUrlObj, localVarQueryParameter);
306
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
307
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
308
-
309
- return {
310
- url: toPathString(localVarUrlObj),
311
- options: localVarRequestOptions,
312
- };
313
- },
314
- /**
315
- *
316
- * @param {number} id
317
- * @param {UpdateDashboardRequestDto} updateDashboardRequestDto
318
- * @param {string} [authorization] Bearer Token
319
- * @param {*} [options] Override http request option.
320
- * @throws {RequiredError}
321
- */
322
- updateDashboard: async (id: number, updateDashboardRequestDto: UpdateDashboardRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
323
- // verify required parameter 'id' is not null or undefined
324
- assertParamExists('updateDashboard', 'id', id)
325
- // verify required parameter 'updateDashboardRequestDto' is not null or undefined
326
- assertParamExists('updateDashboard', 'updateDashboardRequestDto', updateDashboardRequestDto)
327
- const localVarPath = `/tenantservice/v1/dashboards/{id}`
328
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
329
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
330
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
331
- let baseOptions;
332
- let baseAccessToken;
333
- if (configuration) {
334
- baseOptions = configuration.baseOptions;
335
- baseAccessToken = configuration.accessToken;
336
- }
337
-
338
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
339
- const localVarHeaderParameter = {} as any;
340
- const localVarQueryParameter = {} as any;
341
-
342
- // authentication bearer required
343
- // http bearer authentication required
344
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
345
-
346
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
347
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
348
- }
349
-
350
-
351
-
352
- localVarHeaderParameter['Content-Type'] = 'application/json';
353
-
354
- setSearchParams(localVarUrlObj, localVarQueryParameter);
355
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
356
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
357
- localVarRequestOptions.data = serializeDataIfNeeded(updateDashboardRequestDto, localVarRequestOptions, configuration)
358
-
359
- return {
360
- url: toPathString(localVarUrlObj),
361
- options: localVarRequestOptions,
362
- };
363
- },
364
- }
365
- };
366
-
367
- /**
368
- * DashboardApi - functional programming interface
369
- * @export
370
- */
371
- export const DashboardApiFp = function(configuration?: Configuration) {
372
- const localVarAxiosParamCreator = DashboardApiAxiosParamCreator(configuration)
373
- return {
374
- /**
375
- *
376
- * @param {CreateDashboardRequestDto} createDashboardRequestDto
377
- * @param {string} [authorization] Bearer Token
378
- * @param {*} [options] Override http request option.
379
- * @throws {RequiredError}
380
- */
381
- async createDashboard(createDashboardRequestDto: CreateDashboardRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateDashboardResponseClass>> {
382
- const localVarAxiosArgs = await localVarAxiosParamCreator.createDashboard(createDashboardRequestDto, authorization, options);
383
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
384
- },
385
- /**
386
- *
387
- * @param {string} id
388
- * @param {string} [authorization] Bearer Token
389
- * @param {*} [options] Override http request option.
390
- * @throws {RequiredError}
391
- */
392
- async deleteDashboard(id: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
393
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDashboard(id, authorization, options);
394
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
395
- },
396
- /**
397
- *
398
- * @param {string} code
399
- * @param {string} code2 Dashboard code
400
- * @param {string} [authorization] Bearer Token
401
- * @param {string} [expand] Fields to expand response by
402
- * @param {*} [options] Override http request option.
403
- * @throws {RequiredError}
404
- */
405
- async getDashboard(code: string, code2: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetDashboardResponseClass>> {
406
- const localVarAxiosArgs = await localVarAxiosParamCreator.getDashboard(code, code2, authorization, expand, options);
407
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
408
- },
409
- /**
410
- *
411
- * @param {string} providerDashboardId
412
- * @param {string} providerName
413
- * @param {string} [authorization] Bearer Token
414
- * @param {*} [options] Override http request option.
415
- * @throws {RequiredError}
416
- */
417
- async getEmbeddedUrl(providerDashboardId: string, providerName: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetEmbeddedUrlResponseClass>> {
418
- const localVarAxiosArgs = await localVarAxiosParamCreator.getEmbeddedUrl(providerDashboardId, providerName, authorization, options);
419
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
420
- },
421
- /**
422
- *
423
- * @param {string} [authorization] Bearer Token
424
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
425
- * @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.
426
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
427
- * @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.
428
- * @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.
429
- * @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.
430
- * @param {*} [options] Override http request option.
431
- * @throws {RequiredError}
432
- */
433
- async listDashboards(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListDashboardsResponseClass>> {
434
- const localVarAxiosArgs = await localVarAxiosParamCreator.listDashboards(authorization, pageSize, pageToken, filter, search, order, expand, options);
435
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
436
- },
437
- /**
438
- *
439
- * @param {number} id
440
- * @param {UpdateDashboardRequestDto} updateDashboardRequestDto
441
- * @param {string} [authorization] Bearer Token
442
- * @param {*} [options] Override http request option.
443
- * @throws {RequiredError}
444
- */
445
- async updateDashboard(id: number, updateDashboardRequestDto: UpdateDashboardRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateDashboardResponseClass>> {
446
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateDashboard(id, updateDashboardRequestDto, authorization, options);
447
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
448
- },
449
- }
450
- };
451
-
452
- /**
453
- * DashboardApi - factory interface
454
- * @export
455
- */
456
- export const DashboardApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
457
- const localVarFp = DashboardApiFp(configuration)
458
- return {
459
- /**
460
- *
461
- * @param {CreateDashboardRequestDto} createDashboardRequestDto
462
- * @param {string} [authorization] Bearer Token
463
- * @param {*} [options] Override http request option.
464
- * @throws {RequiredError}
465
- */
466
- createDashboard(createDashboardRequestDto: CreateDashboardRequestDto, authorization?: string, options?: any): AxiosPromise<CreateDashboardResponseClass> {
467
- return localVarFp.createDashboard(createDashboardRequestDto, authorization, options).then((request) => request(axios, basePath));
468
- },
469
- /**
470
- *
471
- * @param {string} id
472
- * @param {string} [authorization] Bearer Token
473
- * @param {*} [options] Override http request option.
474
- * @throws {RequiredError}
475
- */
476
- deleteDashboard(id: string, authorization?: string, options?: any): AxiosPromise<void> {
477
- return localVarFp.deleteDashboard(id, authorization, options).then((request) => request(axios, basePath));
478
- },
479
- /**
480
- *
481
- * @param {string} code
482
- * @param {string} code2 Dashboard code
483
- * @param {string} [authorization] Bearer Token
484
- * @param {string} [expand] Fields to expand response by
485
- * @param {*} [options] Override http request option.
486
- * @throws {RequiredError}
487
- */
488
- getDashboard(code: string, code2: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetDashboardResponseClass> {
489
- return localVarFp.getDashboard(code, code2, authorization, expand, options).then((request) => request(axios, basePath));
490
- },
491
- /**
492
- *
493
- * @param {string} providerDashboardId
494
- * @param {string} providerName
495
- * @param {string} [authorization] Bearer Token
496
- * @param {*} [options] Override http request option.
497
- * @throws {RequiredError}
498
- */
499
- getEmbeddedUrl(providerDashboardId: string, providerName: string, authorization?: string, options?: any): AxiosPromise<GetEmbeddedUrlResponseClass> {
500
- return localVarFp.getEmbeddedUrl(providerDashboardId, providerName, authorization, options).then((request) => request(axios, basePath));
501
- },
502
- /**
503
- *
504
- * @param {string} [authorization] Bearer Token
505
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
506
- * @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.
507
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
508
- * @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.
509
- * @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.
510
- * @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.
511
- * @param {*} [options] Override http request option.
512
- * @throws {RequiredError}
513
- */
514
- listDashboards(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListDashboardsResponseClass> {
515
- return localVarFp.listDashboards(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
516
- },
517
- /**
518
- *
519
- * @param {number} id
520
- * @param {UpdateDashboardRequestDto} updateDashboardRequestDto
521
- * @param {string} [authorization] Bearer Token
522
- * @param {*} [options] Override http request option.
523
- * @throws {RequiredError}
524
- */
525
- updateDashboard(id: number, updateDashboardRequestDto: UpdateDashboardRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateDashboardResponseClass> {
526
- return localVarFp.updateDashboard(id, updateDashboardRequestDto, authorization, options).then((request) => request(axios, basePath));
527
- },
528
- };
529
- };
530
-
531
- /**
532
- * Request parameters for createDashboard operation in DashboardApi.
533
- * @export
534
- * @interface DashboardApiCreateDashboardRequest
535
- */
536
- export interface DashboardApiCreateDashboardRequest {
537
- /**
538
- *
539
- * @type {CreateDashboardRequestDto}
540
- * @memberof DashboardApiCreateDashboard
541
- */
542
- readonly createDashboardRequestDto: CreateDashboardRequestDto
543
-
544
- /**
545
- * Bearer Token
546
- * @type {string}
547
- * @memberof DashboardApiCreateDashboard
548
- */
549
- readonly authorization?: string
550
- }
551
-
552
- /**
553
- * Request parameters for deleteDashboard operation in DashboardApi.
554
- * @export
555
- * @interface DashboardApiDeleteDashboardRequest
556
- */
557
- export interface DashboardApiDeleteDashboardRequest {
558
- /**
559
- *
560
- * @type {string}
561
- * @memberof DashboardApiDeleteDashboard
562
- */
563
- readonly id: string
564
-
565
- /**
566
- * Bearer Token
567
- * @type {string}
568
- * @memberof DashboardApiDeleteDashboard
569
- */
570
- readonly authorization?: string
571
- }
572
-
573
- /**
574
- * Request parameters for getDashboard operation in DashboardApi.
575
- * @export
576
- * @interface DashboardApiGetDashboardRequest
577
- */
578
- export interface DashboardApiGetDashboardRequest {
579
- /**
580
- *
581
- * @type {string}
582
- * @memberof DashboardApiGetDashboard
583
- */
584
- readonly code: string
585
-
586
- /**
587
- * Dashboard code
588
- * @type {string}
589
- * @memberof DashboardApiGetDashboard
590
- */
591
- readonly code2: string
592
-
593
- /**
594
- * Bearer Token
595
- * @type {string}
596
- * @memberof DashboardApiGetDashboard
597
- */
598
- readonly authorization?: string
599
-
600
- /**
601
- * Fields to expand response by
602
- * @type {string}
603
- * @memberof DashboardApiGetDashboard
604
- */
605
- readonly expand?: string
606
- }
607
-
608
- /**
609
- * Request parameters for getEmbeddedUrl operation in DashboardApi.
610
- * @export
611
- * @interface DashboardApiGetEmbeddedUrlRequest
612
- */
613
- export interface DashboardApiGetEmbeddedUrlRequest {
614
- /**
615
- *
616
- * @type {string}
617
- * @memberof DashboardApiGetEmbeddedUrl
618
- */
619
- readonly providerDashboardId: string
620
-
621
- /**
622
- *
623
- * @type {string}
624
- * @memberof DashboardApiGetEmbeddedUrl
625
- */
626
- readonly providerName: string
627
-
628
- /**
629
- * Bearer Token
630
- * @type {string}
631
- * @memberof DashboardApiGetEmbeddedUrl
632
- */
633
- readonly authorization?: string
634
- }
635
-
636
- /**
637
- * Request parameters for listDashboards operation in DashboardApi.
638
- * @export
639
- * @interface DashboardApiListDashboardsRequest
640
- */
641
- export interface DashboardApiListDashboardsRequest {
642
- /**
643
- * Bearer Token
644
- * @type {string}
645
- * @memberof DashboardApiListDashboards
646
- */
647
- readonly authorization?: string
648
-
649
- /**
650
- * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
651
- * @type {any}
652
- * @memberof DashboardApiListDashboards
653
- */
654
- readonly pageSize?: any
655
-
656
- /**
657
- * 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.
658
- * @type {any}
659
- * @memberof DashboardApiListDashboards
660
- */
661
- readonly pageToken?: any
662
-
663
- /**
664
- * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
665
- * @type {any}
666
- * @memberof DashboardApiListDashboards
667
- */
668
- readonly filter?: any
669
-
670
- /**
671
- * 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.
672
- * @type {any}
673
- * @memberof DashboardApiListDashboards
674
- */
675
- readonly search?: any
676
-
677
- /**
678
- * 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.
679
- * @type {any}
680
- * @memberof DashboardApiListDashboards
681
- */
682
- readonly order?: any
683
-
684
- /**
685
- * 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.
686
- * @type {any}
687
- * @memberof DashboardApiListDashboards
688
- */
689
- readonly expand?: any
690
- }
691
-
692
- /**
693
- * Request parameters for updateDashboard operation in DashboardApi.
694
- * @export
695
- * @interface DashboardApiUpdateDashboardRequest
696
- */
697
- export interface DashboardApiUpdateDashboardRequest {
698
- /**
699
- *
700
- * @type {number}
701
- * @memberof DashboardApiUpdateDashboard
702
- */
703
- readonly id: number
704
-
705
- /**
706
- *
707
- * @type {UpdateDashboardRequestDto}
708
- * @memberof DashboardApiUpdateDashboard
709
- */
710
- readonly updateDashboardRequestDto: UpdateDashboardRequestDto
711
-
712
- /**
713
- * Bearer Token
714
- * @type {string}
715
- * @memberof DashboardApiUpdateDashboard
716
- */
717
- readonly authorization?: string
718
- }
719
-
720
- /**
721
- * DashboardApi - object-oriented interface
722
- * @export
723
- * @class DashboardApi
724
- * @extends {BaseAPI}
725
- */
726
- export class DashboardApi extends BaseAPI {
727
- /**
728
- *
729
- * @param {DashboardApiCreateDashboardRequest} requestParameters Request parameters.
730
- * @param {*} [options] Override http request option.
731
- * @throws {RequiredError}
732
- * @memberof DashboardApi
733
- */
734
- public createDashboard(requestParameters: DashboardApiCreateDashboardRequest, options?: AxiosRequestConfig) {
735
- return DashboardApiFp(this.configuration).createDashboard(requestParameters.createDashboardRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
736
- }
737
-
738
- /**
739
- *
740
- * @param {DashboardApiDeleteDashboardRequest} requestParameters Request parameters.
741
- * @param {*} [options] Override http request option.
742
- * @throws {RequiredError}
743
- * @memberof DashboardApi
744
- */
745
- public deleteDashboard(requestParameters: DashboardApiDeleteDashboardRequest, options?: AxiosRequestConfig) {
746
- return DashboardApiFp(this.configuration).deleteDashboard(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
747
- }
748
-
749
- /**
750
- *
751
- * @param {DashboardApiGetDashboardRequest} requestParameters Request parameters.
752
- * @param {*} [options] Override http request option.
753
- * @throws {RequiredError}
754
- * @memberof DashboardApi
755
- */
756
- public getDashboard(requestParameters: DashboardApiGetDashboardRequest, options?: AxiosRequestConfig) {
757
- return DashboardApiFp(this.configuration).getDashboard(requestParameters.code, requestParameters.code2, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
758
- }
759
-
760
- /**
761
- *
762
- * @param {DashboardApiGetEmbeddedUrlRequest} requestParameters Request parameters.
763
- * @param {*} [options] Override http request option.
764
- * @throws {RequiredError}
765
- * @memberof DashboardApi
766
- */
767
- public getEmbeddedUrl(requestParameters: DashboardApiGetEmbeddedUrlRequest, options?: AxiosRequestConfig) {
768
- return DashboardApiFp(this.configuration).getEmbeddedUrl(requestParameters.providerDashboardId, requestParameters.providerName, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
769
- }
770
-
771
- /**
772
- *
773
- * @param {DashboardApiListDashboardsRequest} requestParameters Request parameters.
774
- * @param {*} [options] Override http request option.
775
- * @throws {RequiredError}
776
- * @memberof DashboardApi
777
- */
778
- public listDashboards(requestParameters: DashboardApiListDashboardsRequest = {}, options?: AxiosRequestConfig) {
779
- return DashboardApiFp(this.configuration).listDashboards(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
780
- }
781
-
782
- /**
783
- *
784
- * @param {DashboardApiUpdateDashboardRequest} requestParameters Request parameters.
785
- * @param {*} [options] Override http request option.
786
- * @throws {RequiredError}
787
- * @memberof DashboardApi
788
- */
789
- public updateDashboard(requestParameters: DashboardApiUpdateDashboardRequest, options?: AxiosRequestConfig) {
790
- return DashboardApiFp(this.configuration).updateDashboard(requestParameters.id, requestParameters.updateDashboardRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
791
- }
792
- }