@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,860 +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 { CreateReportRequestDto } from '../models';
25
- // @ts-ignore
26
- import { CreateReportResponseClass } from '../models';
27
- // @ts-ignore
28
- import { GetReportResponseClass } from '../models';
29
- // @ts-ignore
30
- import { ListReportHistoryResponseClass } from '../models';
31
- // @ts-ignore
32
- import { ListReportsResponseClass } from '../models';
33
- // @ts-ignore
34
- import { UpdateReportRequestDto } from '../models';
35
- // @ts-ignore
36
- import { UpdateReportResponseClass } from '../models';
37
- // URLSearchParams not necessarily used
38
- // @ts-ignore
39
- import { URL, URLSearchParams } from 'url';
40
- const FormData = require('form-data');
41
- /**
42
- * ReportsApi - axios parameter creator
43
- * @export
44
- */
45
- export const ReportsApiAxiosParamCreator = function (configuration?: Configuration) {
46
- return {
47
- /**
48
- *
49
- * @param {CreateReportRequestDto} createReportRequestDto
50
- * @param {string} [authorization] Bearer Token
51
- * @param {*} [options] Override http request option.
52
- * @throws {RequiredError}
53
- */
54
- createReport: async (createReportRequestDto: CreateReportRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
55
- // verify required parameter 'createReportRequestDto' is not null or undefined
56
- assertParamExists('createReport', 'createReportRequestDto', createReportRequestDto)
57
- const localVarPath = `/tenantservice/v1/reports`;
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(createReportRequestDto, localVarRequestOptions, configuration)
87
-
88
- return {
89
- url: toPathString(localVarUrlObj),
90
- options: localVarRequestOptions,
91
- };
92
- },
93
- /**
94
- *
95
- * @param {number} id
96
- * @param {string} [authorization] Bearer Token
97
- * @param {*} [options] Override http request option.
98
- * @throws {RequiredError}
99
- */
100
- deleteReport: async (id: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
101
- // verify required parameter 'id' is not null or undefined
102
- assertParamExists('deleteReport', 'id', id)
103
- const localVarPath = `/tenantservice/v1/reports/{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 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
- getReport: 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('getReport', 'code', code)
149
- // verify required parameter 'code2' is not null or undefined
150
- assertParamExists('getReport', 'code2', code2)
151
- const localVarPath = `/tenantservice/v1/reports/{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} code
196
- * @param {string} [authorization] Bearer Token
197
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
198
- * @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.
199
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
200
- * @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.
201
- * @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.
202
- * @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.
203
- * @param {*} [options] Override http request option.
204
- * @throws {RequiredError}
205
- */
206
- listReportHistory: async (code: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
207
- // verify required parameter 'code' is not null or undefined
208
- assertParamExists('listReportHistory', 'code', code)
209
- const localVarPath = `/tenantservice/v1/reports/{code}/history`
210
- .replace(`{${"code"}}`, encodeURIComponent(String(code)));
211
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
212
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
213
- let baseOptions;
214
- let baseAccessToken;
215
- if (configuration) {
216
- baseOptions = configuration.baseOptions;
217
- baseAccessToken = configuration.accessToken;
218
- }
219
-
220
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
221
- const localVarHeaderParameter = {} as any;
222
- const localVarQueryParameter = {} as any;
223
-
224
- // authentication bearer required
225
- // http bearer authentication required
226
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
227
-
228
- if (pageSize !== undefined) {
229
- localVarQueryParameter['pageSize'] = pageSize;
230
- }
231
-
232
- if (pageToken !== undefined) {
233
- localVarQueryParameter['pageToken'] = pageToken;
234
- }
235
-
236
- if (filter !== undefined) {
237
- localVarQueryParameter['filter'] = filter;
238
- }
239
-
240
- if (search !== undefined) {
241
- localVarQueryParameter['search'] = search;
242
- }
243
-
244
- if (order !== undefined) {
245
- localVarQueryParameter['order'] = order;
246
- }
247
-
248
- if (expand !== undefined) {
249
- localVarQueryParameter['expand'] = expand;
250
- }
251
-
252
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
253
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
254
- }
255
-
256
-
257
-
258
- setSearchParams(localVarUrlObj, localVarQueryParameter);
259
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
260
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
261
-
262
- return {
263
- url: toPathString(localVarUrlObj),
264
- options: localVarRequestOptions,
265
- };
266
- },
267
- /**
268
- *
269
- * @param {string} [authorization] Bearer Token
270
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
271
- * @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.
272
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
273
- * @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.
274
- * @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.
275
- * @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.
276
- * @param {*} [options] Override http request option.
277
- * @throws {RequiredError}
278
- */
279
- listReports: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
280
- const localVarPath = `/tenantservice/v1/reports`;
281
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
282
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
283
- let baseOptions;
284
- let baseAccessToken;
285
- if (configuration) {
286
- baseOptions = configuration.baseOptions;
287
- baseAccessToken = configuration.accessToken;
288
- }
289
-
290
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
291
- const localVarHeaderParameter = {} as any;
292
- const localVarQueryParameter = {} as any;
293
-
294
- // authentication bearer required
295
- // http bearer authentication required
296
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
297
-
298
- if (pageSize !== undefined) {
299
- localVarQueryParameter['pageSize'] = pageSize;
300
- }
301
-
302
- if (pageToken !== undefined) {
303
- localVarQueryParameter['pageToken'] = pageToken;
304
- }
305
-
306
- if (filter !== undefined) {
307
- localVarQueryParameter['filter'] = filter;
308
- }
309
-
310
- if (search !== undefined) {
311
- localVarQueryParameter['search'] = search;
312
- }
313
-
314
- if (order !== undefined) {
315
- localVarQueryParameter['order'] = order;
316
- }
317
-
318
- if (expand !== undefined) {
319
- localVarQueryParameter['expand'] = expand;
320
- }
321
-
322
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
323
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
324
- }
325
-
326
-
327
-
328
- setSearchParams(localVarUrlObj, localVarQueryParameter);
329
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
330
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
331
-
332
- return {
333
- url: toPathString(localVarUrlObj),
334
- options: localVarRequestOptions,
335
- };
336
- },
337
- /**
338
- *
339
- * @param {number} id
340
- * @param {UpdateReportRequestDto} updateReportRequestDto
341
- * @param {string} [authorization] Bearer Token
342
- * @param {*} [options] Override http request option.
343
- * @throws {RequiredError}
344
- */
345
- updateReport: async (id: number, updateReportRequestDto: UpdateReportRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
346
- // verify required parameter 'id' is not null or undefined
347
- assertParamExists('updateReport', 'id', id)
348
- // verify required parameter 'updateReportRequestDto' is not null or undefined
349
- assertParamExists('updateReport', 'updateReportRequestDto', updateReportRequestDto)
350
- const localVarPath = `/tenantservice/v1/reports/{id}`
351
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
352
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
353
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
354
- let baseOptions;
355
- let baseAccessToken;
356
- if (configuration) {
357
- baseOptions = configuration.baseOptions;
358
- baseAccessToken = configuration.accessToken;
359
- }
360
-
361
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
362
- const localVarHeaderParameter = {} as any;
363
- const localVarQueryParameter = {} as any;
364
-
365
- // authentication bearer required
366
- // http bearer authentication required
367
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
368
-
369
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
370
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
371
- }
372
-
373
-
374
-
375
- localVarHeaderParameter['Content-Type'] = 'application/json';
376
-
377
- setSearchParams(localVarUrlObj, localVarQueryParameter);
378
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
379
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
380
- localVarRequestOptions.data = serializeDataIfNeeded(updateReportRequestDto, localVarRequestOptions, configuration)
381
-
382
- return {
383
- url: toPathString(localVarUrlObj),
384
- options: localVarRequestOptions,
385
- };
386
- },
387
- }
388
- };
389
-
390
- /**
391
- * ReportsApi - functional programming interface
392
- * @export
393
- */
394
- export const ReportsApiFp = function(configuration?: Configuration) {
395
- const localVarAxiosParamCreator = ReportsApiAxiosParamCreator(configuration)
396
- return {
397
- /**
398
- *
399
- * @param {CreateReportRequestDto} createReportRequestDto
400
- * @param {string} [authorization] Bearer Token
401
- * @param {*} [options] Override http request option.
402
- * @throws {RequiredError}
403
- */
404
- async createReport(createReportRequestDto: CreateReportRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateReportResponseClass>> {
405
- const localVarAxiosArgs = await localVarAxiosParamCreator.createReport(createReportRequestDto, authorization, options);
406
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
407
- },
408
- /**
409
- *
410
- * @param {number} id
411
- * @param {string} [authorization] Bearer Token
412
- * @param {*} [options] Override http request option.
413
- * @throws {RequiredError}
414
- */
415
- async deleteReport(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
416
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteReport(id, authorization, options);
417
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
418
- },
419
- /**
420
- *
421
- * @param {string} code
422
- * @param {string} code2 code
423
- * @param {string} [authorization] Bearer Token
424
- * @param {string} [expand] Fields to expand response by
425
- * @param {*} [options] Override http request option.
426
- * @throws {RequiredError}
427
- */
428
- async getReport(code: string, code2: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetReportResponseClass>> {
429
- const localVarAxiosArgs = await localVarAxiosParamCreator.getReport(code, code2, authorization, expand, options);
430
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
431
- },
432
- /**
433
- *
434
- * @param {string} code
435
- * @param {string} [authorization] Bearer Token
436
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
437
- * @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.
438
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
439
- * @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.
440
- * @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.
441
- * @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.
442
- * @param {*} [options] Override http request option.
443
- * @throws {RequiredError}
444
- */
445
- async listReportHistory(code: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListReportHistoryResponseClass>> {
446
- const localVarAxiosArgs = await localVarAxiosParamCreator.listReportHistory(code, authorization, pageSize, pageToken, filter, search, order, expand, options);
447
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
448
- },
449
- /**
450
- *
451
- * @param {string} [authorization] Bearer Token
452
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
453
- * @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.
454
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
455
- * @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.
456
- * @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.
457
- * @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.
458
- * @param {*} [options] Override http request option.
459
- * @throws {RequiredError}
460
- */
461
- async listReports(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListReportsResponseClass>> {
462
- const localVarAxiosArgs = await localVarAxiosParamCreator.listReports(authorization, pageSize, pageToken, filter, search, order, expand, options);
463
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
464
- },
465
- /**
466
- *
467
- * @param {number} id
468
- * @param {UpdateReportRequestDto} updateReportRequestDto
469
- * @param {string} [authorization] Bearer Token
470
- * @param {*} [options] Override http request option.
471
- * @throws {RequiredError}
472
- */
473
- async updateReport(id: number, updateReportRequestDto: UpdateReportRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateReportResponseClass>> {
474
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateReport(id, updateReportRequestDto, authorization, options);
475
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
476
- },
477
- }
478
- };
479
-
480
- /**
481
- * ReportsApi - factory interface
482
- * @export
483
- */
484
- export const ReportsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
485
- const localVarFp = ReportsApiFp(configuration)
486
- return {
487
- /**
488
- *
489
- * @param {CreateReportRequestDto} createReportRequestDto
490
- * @param {string} [authorization] Bearer Token
491
- * @param {*} [options] Override http request option.
492
- * @throws {RequiredError}
493
- */
494
- createReport(createReportRequestDto: CreateReportRequestDto, authorization?: string, options?: any): AxiosPromise<CreateReportResponseClass> {
495
- return localVarFp.createReport(createReportRequestDto, authorization, options).then((request) => request(axios, basePath));
496
- },
497
- /**
498
- *
499
- * @param {number} id
500
- * @param {string} [authorization] Bearer Token
501
- * @param {*} [options] Override http request option.
502
- * @throws {RequiredError}
503
- */
504
- deleteReport(id: number, authorization?: string, options?: any): AxiosPromise<void> {
505
- return localVarFp.deleteReport(id, authorization, options).then((request) => request(axios, basePath));
506
- },
507
- /**
508
- *
509
- * @param {string} code
510
- * @param {string} code2 code
511
- * @param {string} [authorization] Bearer Token
512
- * @param {string} [expand] Fields to expand response by
513
- * @param {*} [options] Override http request option.
514
- * @throws {RequiredError}
515
- */
516
- getReport(code: string, code2: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetReportResponseClass> {
517
- return localVarFp.getReport(code, code2, authorization, expand, options).then((request) => request(axios, basePath));
518
- },
519
- /**
520
- *
521
- * @param {string} code
522
- * @param {string} [authorization] Bearer Token
523
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
524
- * @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.
525
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
526
- * @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.
527
- * @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.
528
- * @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.
529
- * @param {*} [options] Override http request option.
530
- * @throws {RequiredError}
531
- */
532
- listReportHistory(code: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListReportHistoryResponseClass> {
533
- return localVarFp.listReportHistory(code, authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
534
- },
535
- /**
536
- *
537
- * @param {string} [authorization] Bearer Token
538
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
539
- * @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.
540
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
541
- * @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.
542
- * @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.
543
- * @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.
544
- * @param {*} [options] Override http request option.
545
- * @throws {RequiredError}
546
- */
547
- listReports(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListReportsResponseClass> {
548
- return localVarFp.listReports(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
549
- },
550
- /**
551
- *
552
- * @param {number} id
553
- * @param {UpdateReportRequestDto} updateReportRequestDto
554
- * @param {string} [authorization] Bearer Token
555
- * @param {*} [options] Override http request option.
556
- * @throws {RequiredError}
557
- */
558
- updateReport(id: number, updateReportRequestDto: UpdateReportRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateReportResponseClass> {
559
- return localVarFp.updateReport(id, updateReportRequestDto, authorization, options).then((request) => request(axios, basePath));
560
- },
561
- };
562
- };
563
-
564
- /**
565
- * Request parameters for createReport operation in ReportsApi.
566
- * @export
567
- * @interface ReportsApiCreateReportRequest
568
- */
569
- export interface ReportsApiCreateReportRequest {
570
- /**
571
- *
572
- * @type {CreateReportRequestDto}
573
- * @memberof ReportsApiCreateReport
574
- */
575
- readonly createReportRequestDto: CreateReportRequestDto
576
-
577
- /**
578
- * Bearer Token
579
- * @type {string}
580
- * @memberof ReportsApiCreateReport
581
- */
582
- readonly authorization?: string
583
- }
584
-
585
- /**
586
- * Request parameters for deleteReport operation in ReportsApi.
587
- * @export
588
- * @interface ReportsApiDeleteReportRequest
589
- */
590
- export interface ReportsApiDeleteReportRequest {
591
- /**
592
- *
593
- * @type {number}
594
- * @memberof ReportsApiDeleteReport
595
- */
596
- readonly id: number
597
-
598
- /**
599
- * Bearer Token
600
- * @type {string}
601
- * @memberof ReportsApiDeleteReport
602
- */
603
- readonly authorization?: string
604
- }
605
-
606
- /**
607
- * Request parameters for getReport operation in ReportsApi.
608
- * @export
609
- * @interface ReportsApiGetReportRequest
610
- */
611
- export interface ReportsApiGetReportRequest {
612
- /**
613
- *
614
- * @type {string}
615
- * @memberof ReportsApiGetReport
616
- */
617
- readonly code: string
618
-
619
- /**
620
- * code
621
- * @type {string}
622
- * @memberof ReportsApiGetReport
623
- */
624
- readonly code2: string
625
-
626
- /**
627
- * Bearer Token
628
- * @type {string}
629
- * @memberof ReportsApiGetReport
630
- */
631
- readonly authorization?: string
632
-
633
- /**
634
- * Fields to expand response by
635
- * @type {string}
636
- * @memberof ReportsApiGetReport
637
- */
638
- readonly expand?: string
639
- }
640
-
641
- /**
642
- * Request parameters for listReportHistory operation in ReportsApi.
643
- * @export
644
- * @interface ReportsApiListReportHistoryRequest
645
- */
646
- export interface ReportsApiListReportHistoryRequest {
647
- /**
648
- *
649
- * @type {string}
650
- * @memberof ReportsApiListReportHistory
651
- */
652
- readonly code: string
653
-
654
- /**
655
- * Bearer Token
656
- * @type {string}
657
- * @memberof ReportsApiListReportHistory
658
- */
659
- readonly authorization?: string
660
-
661
- /**
662
- * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
663
- * @type {any}
664
- * @memberof ReportsApiListReportHistory
665
- */
666
- readonly pageSize?: any
667
-
668
- /**
669
- * 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.
670
- * @type {any}
671
- * @memberof ReportsApiListReportHistory
672
- */
673
- readonly pageToken?: any
674
-
675
- /**
676
- * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
677
- * @type {any}
678
- * @memberof ReportsApiListReportHistory
679
- */
680
- readonly filter?: any
681
-
682
- /**
683
- * 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.
684
- * @type {any}
685
- * @memberof ReportsApiListReportHistory
686
- */
687
- readonly search?: any
688
-
689
- /**
690
- * 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.
691
- * @type {any}
692
- * @memberof ReportsApiListReportHistory
693
- */
694
- readonly order?: any
695
-
696
- /**
697
- * 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.
698
- * @type {any}
699
- * @memberof ReportsApiListReportHistory
700
- */
701
- readonly expand?: any
702
- }
703
-
704
- /**
705
- * Request parameters for listReports operation in ReportsApi.
706
- * @export
707
- * @interface ReportsApiListReportsRequest
708
- */
709
- export interface ReportsApiListReportsRequest {
710
- /**
711
- * Bearer Token
712
- * @type {string}
713
- * @memberof ReportsApiListReports
714
- */
715
- readonly authorization?: string
716
-
717
- /**
718
- * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
719
- * @type {any}
720
- * @memberof ReportsApiListReports
721
- */
722
- readonly pageSize?: any
723
-
724
- /**
725
- * 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.
726
- * @type {any}
727
- * @memberof ReportsApiListReports
728
- */
729
- readonly pageToken?: any
730
-
731
- /**
732
- * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
733
- * @type {any}
734
- * @memberof ReportsApiListReports
735
- */
736
- readonly filter?: any
737
-
738
- /**
739
- * 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.
740
- * @type {any}
741
- * @memberof ReportsApiListReports
742
- */
743
- readonly search?: any
744
-
745
- /**
746
- * 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.
747
- * @type {any}
748
- * @memberof ReportsApiListReports
749
- */
750
- readonly order?: any
751
-
752
- /**
753
- * 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.
754
- * @type {any}
755
- * @memberof ReportsApiListReports
756
- */
757
- readonly expand?: any
758
- }
759
-
760
- /**
761
- * Request parameters for updateReport operation in ReportsApi.
762
- * @export
763
- * @interface ReportsApiUpdateReportRequest
764
- */
765
- export interface ReportsApiUpdateReportRequest {
766
- /**
767
- *
768
- * @type {number}
769
- * @memberof ReportsApiUpdateReport
770
- */
771
- readonly id: number
772
-
773
- /**
774
- *
775
- * @type {UpdateReportRequestDto}
776
- * @memberof ReportsApiUpdateReport
777
- */
778
- readonly updateReportRequestDto: UpdateReportRequestDto
779
-
780
- /**
781
- * Bearer Token
782
- * @type {string}
783
- * @memberof ReportsApiUpdateReport
784
- */
785
- readonly authorization?: string
786
- }
787
-
788
- /**
789
- * ReportsApi - object-oriented interface
790
- * @export
791
- * @class ReportsApi
792
- * @extends {BaseAPI}
793
- */
794
- export class ReportsApi extends BaseAPI {
795
- /**
796
- *
797
- * @param {ReportsApiCreateReportRequest} requestParameters Request parameters.
798
- * @param {*} [options] Override http request option.
799
- * @throws {RequiredError}
800
- * @memberof ReportsApi
801
- */
802
- public createReport(requestParameters: ReportsApiCreateReportRequest, options?: AxiosRequestConfig) {
803
- return ReportsApiFp(this.configuration).createReport(requestParameters.createReportRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
804
- }
805
-
806
- /**
807
- *
808
- * @param {ReportsApiDeleteReportRequest} requestParameters Request parameters.
809
- * @param {*} [options] Override http request option.
810
- * @throws {RequiredError}
811
- * @memberof ReportsApi
812
- */
813
- public deleteReport(requestParameters: ReportsApiDeleteReportRequest, options?: AxiosRequestConfig) {
814
- return ReportsApiFp(this.configuration).deleteReport(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
815
- }
816
-
817
- /**
818
- *
819
- * @param {ReportsApiGetReportRequest} requestParameters Request parameters.
820
- * @param {*} [options] Override http request option.
821
- * @throws {RequiredError}
822
- * @memberof ReportsApi
823
- */
824
- public getReport(requestParameters: ReportsApiGetReportRequest, options?: AxiosRequestConfig) {
825
- return ReportsApiFp(this.configuration).getReport(requestParameters.code, requestParameters.code2, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
826
- }
827
-
828
- /**
829
- *
830
- * @param {ReportsApiListReportHistoryRequest} requestParameters Request parameters.
831
- * @param {*} [options] Override http request option.
832
- * @throws {RequiredError}
833
- * @memberof ReportsApi
834
- */
835
- public listReportHistory(requestParameters: ReportsApiListReportHistoryRequest, options?: AxiosRequestConfig) {
836
- return ReportsApiFp(this.configuration).listReportHistory(requestParameters.code, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
837
- }
838
-
839
- /**
840
- *
841
- * @param {ReportsApiListReportsRequest} requestParameters Request parameters.
842
- * @param {*} [options] Override http request option.
843
- * @throws {RequiredError}
844
- * @memberof ReportsApi
845
- */
846
- public listReports(requestParameters: ReportsApiListReportsRequest = {}, options?: AxiosRequestConfig) {
847
- return ReportsApiFp(this.configuration).listReports(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
848
- }
849
-
850
- /**
851
- *
852
- * @param {ReportsApiUpdateReportRequest} requestParameters Request parameters.
853
- * @param {*} [options] Override http request option.
854
- * @throws {RequiredError}
855
- * @memberof ReportsApi
856
- */
857
- public updateReport(requestParameters: ReportsApiUpdateReportRequest, options?: AxiosRequestConfig) {
858
- return ReportsApiFp(this.configuration).updateReport(requestParameters.id, requestParameters.updateReportRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
859
- }
860
- }