@emilgroup/tenant-sdk-node 1.0.0-beta.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 (313) hide show
  1. package/.openapi-generator/FILES +109 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +68 -0
  5. package/api/alerts-api.ts +860 -0
  6. package/api/custom-schema-api.ts +580 -0
  7. package/api/dashboard-api.ts +792 -0
  8. package/api/data-report-executor-api.ts +183 -0
  9. package/api/permissions-api.ts +307 -0
  10. package/api/reports-api.ts +860 -0
  11. package/api/roles-api.ts +564 -0
  12. package/api/scenario-analysis-api.ts +977 -0
  13. package/api/settings-api.ts +478 -0
  14. package/api/tariff-comparisons-api.ts +381 -0
  15. package/api/tenants-api.ts +514 -0
  16. package/api/user-subscription-api.ts +191 -0
  17. package/api/users-api.ts +1645 -0
  18. package/api.ts +60 -0
  19. package/base.ts +283 -0
  20. package/common.ts +199 -0
  21. package/configuration.ts +109 -0
  22. package/dist/api/alerts-api.d.ts +479 -0
  23. package/dist/api/alerts-api.js +752 -0
  24. package/dist/api/custom-schema-api.d.ts +329 -0
  25. package/dist/api/custom-schema-api.js +548 -0
  26. package/dist/api/dashboard-api.d.ts +434 -0
  27. package/dist/api/dashboard-api.js +724 -0
  28. package/dist/api/data-report-executor-api.d.ts +106 -0
  29. package/dist/api/data-report-executor-api.js +234 -0
  30. package/dist/api/permissions-api.d.ts +172 -0
  31. package/dist/api/permissions-api.js +331 -0
  32. package/dist/api/reports-api.d.ts +479 -0
  33. package/dist/api/reports-api.js +752 -0
  34. package/dist/api/roles-api.d.ts +301 -0
  35. package/dist/api/roles-api.js +578 -0
  36. package/dist/api/scenario-analysis-api.d.ts +529 -0
  37. package/dist/api/scenario-analysis-api.js +895 -0
  38. package/dist/api/settings-api.d.ts +261 -0
  39. package/dist/api/settings-api.js +509 -0
  40. package/dist/api/tariff-comparisons-api.d.ts +206 -0
  41. package/dist/api/tariff-comparisons-api.js +409 -0
  42. package/dist/api/tenants-api.d.ts +282 -0
  43. package/dist/api/tenants-api.js +514 -0
  44. package/dist/api/user-subscription-api.d.ts +111 -0
  45. package/dist/api/user-subscription-api.js +236 -0
  46. package/dist/api/users-api.d.ts +884 -0
  47. package/dist/api/users-api.js +1456 -0
  48. package/dist/api.d.ts +28 -0
  49. package/dist/api.js +48 -0
  50. package/dist/base.d.ts +76 -0
  51. package/dist/base.js +392 -0
  52. package/dist/common.d.ts +92 -0
  53. package/dist/common.js +277 -0
  54. package/dist/configuration.d.ts +90 -0
  55. package/dist/configuration.js +44 -0
  56. package/dist/index.d.ts +15 -0
  57. package/dist/index.js +35 -0
  58. package/dist/models/alert-class.d.ts +90 -0
  59. package/dist/models/alert-class.js +15 -0
  60. package/dist/models/assign-user-roles-request-dto.d.ts +30 -0
  61. package/dist/models/assign-user-roles-request-dto.js +15 -0
  62. package/dist/models/assign-user-roles-response-class.d.ts +25 -0
  63. package/dist/models/assign-user-roles-response-class.js +15 -0
  64. package/dist/models/batch-delete-request-dto.d.ts +24 -0
  65. package/dist/models/batch-delete-request-dto.js +15 -0
  66. package/dist/models/compare-tariffs-request-dto.d.ts +37 -0
  67. package/dist/models/compare-tariffs-request-dto.js +22 -0
  68. package/dist/models/compare-tariffs-response-class.d.ts +30 -0
  69. package/dist/models/compare-tariffs-response-class.js +15 -0
  70. package/dist/models/condition-dto.d.ts +43 -0
  71. package/dist/models/condition-dto.js +22 -0
  72. package/dist/models/create-alert-request-dto.d.ts +79 -0
  73. package/dist/models/create-alert-request-dto.js +27 -0
  74. package/dist/models/create-alert-response-class.d.ts +25 -0
  75. package/dist/models/create-alert-response-class.js +15 -0
  76. package/dist/models/create-custom-schema-request-dto.d.ts +44 -0
  77. package/dist/models/create-custom-schema-request-dto.js +22 -0
  78. package/dist/models/create-custom-schema-response-class.d.ts +25 -0
  79. package/dist/models/create-custom-schema-response-class.js +15 -0
  80. package/dist/models/create-dashboard-request-dto.d.ts +70 -0
  81. package/dist/models/create-dashboard-request-dto.js +29 -0
  82. package/dist/models/create-dashboard-response-class.d.ts +25 -0
  83. package/dist/models/create-dashboard-response-class.js +15 -0
  84. package/dist/models/create-permission-request-dto.d.ts +48 -0
  85. package/dist/models/create-permission-request-dto.js +15 -0
  86. package/dist/models/create-permission-response-class.d.ts +25 -0
  87. package/dist/models/create-permission-response-class.js +15 -0
  88. package/dist/models/create-report-request-dto.d.ts +49 -0
  89. package/dist/models/create-report-request-dto.js +22 -0
  90. package/dist/models/create-report-response-class.d.ts +25 -0
  91. package/dist/models/create-report-response-class.js +15 -0
  92. package/dist/models/create-role-request-dto.d.ts +36 -0
  93. package/dist/models/create-role-request-dto.js +15 -0
  94. package/dist/models/create-role-response-class.d.ts +25 -0
  95. package/dist/models/create-role-response-class.js +15 -0
  96. package/dist/models/create-scenario-analysis-request-dto.d.ts +74 -0
  97. package/dist/models/create-scenario-analysis-request-dto.js +22 -0
  98. package/dist/models/create-scenario-analysis-response-class.d.ts +25 -0
  99. package/dist/models/create-scenario-analysis-response-class.js +15 -0
  100. package/dist/models/create-tenant-request-dto.d.ts +56 -0
  101. package/dist/models/create-tenant-request-dto.js +15 -0
  102. package/dist/models/create-tenant-response-class.d.ts +42 -0
  103. package/dist/models/create-tenant-response-class.js +15 -0
  104. package/dist/models/custom-field-dto.d.ts +68 -0
  105. package/dist/models/custom-field-dto.js +23 -0
  106. package/dist/models/custom-schema-class.d.ts +66 -0
  107. package/dist/models/custom-schema-class.js +15 -0
  108. package/dist/models/dashboard-class.d.ts +78 -0
  109. package/dist/models/dashboard-class.js +15 -0
  110. package/dist/models/dbconfig-dto.d.ts +48 -0
  111. package/dist/models/dbconfig-dto.js +15 -0
  112. package/dist/models/disable-user-response-class.d.ts +25 -0
  113. package/dist/models/disable-user-response-class.js +15 -0
  114. package/dist/models/disable-users-request-dto.d.ts +24 -0
  115. package/dist/models/disable-users-request-dto.js +15 -0
  116. package/dist/models/enable-user-response-class.d.ts +25 -0
  117. package/dist/models/enable-user-response-class.js +15 -0
  118. package/dist/models/enable-users-request-dto.d.ts +24 -0
  119. package/dist/models/enable-users-request-dto.js +15 -0
  120. package/dist/models/get-alert-response-class.d.ts +25 -0
  121. package/dist/models/get-alert-response-class.js +15 -0
  122. package/dist/models/get-custom-schema-response-class.d.ts +25 -0
  123. package/dist/models/get-custom-schema-response-class.js +15 -0
  124. package/dist/models/get-dashboard-response-class.d.ts +25 -0
  125. package/dist/models/get-dashboard-response-class.js +15 -0
  126. package/dist/models/get-embedded-url-response-class.d.ts +24 -0
  127. package/dist/models/get-embedded-url-response-class.js +15 -0
  128. package/dist/models/get-report-response-class.d.ts +25 -0
  129. package/dist/models/get-report-response-class.js +15 -0
  130. package/dist/models/get-role-response-class.d.ts +25 -0
  131. package/dist/models/get-role-response-class.js +15 -0
  132. package/dist/models/get-scenario-analysis-response-class.d.ts +25 -0
  133. package/dist/models/get-scenario-analysis-response-class.js +15 -0
  134. package/dist/models/get-user-response-class.d.ts +25 -0
  135. package/dist/models/get-user-response-class.js +15 -0
  136. package/dist/models/index.d.ts +83 -0
  137. package/dist/models/index.js +99 -0
  138. package/dist/models/invite-class.d.ts +54 -0
  139. package/dist/models/invite-class.js +15 -0
  140. package/dist/models/invite-user-request-dto.d.ts +30 -0
  141. package/dist/models/invite-user-request-dto.js +15 -0
  142. package/dist/models/invite-user-response-class.d.ts +25 -0
  143. package/dist/models/invite-user-response-class.js +15 -0
  144. package/dist/models/invite-users-request-dto.d.ts +30 -0
  145. package/dist/models/invite-users-request-dto.js +15 -0
  146. package/dist/models/list-alert-history-response-class.d.ts +30 -0
  147. package/dist/models/list-alert-history-response-class.js +15 -0
  148. package/dist/models/list-alerts-response-class.d.ts +30 -0
  149. package/dist/models/list-alerts-response-class.js +15 -0
  150. package/dist/models/list-channels-response-class.d.ts +24 -0
  151. package/dist/models/list-channels-response-class.js +15 -0
  152. package/dist/models/list-custom-schemas-response-class.d.ts +30 -0
  153. package/dist/models/list-custom-schemas-response-class.js +15 -0
  154. package/dist/models/list-dashboards-response-class.d.ts +30 -0
  155. package/dist/models/list-dashboards-response-class.js +15 -0
  156. package/dist/models/list-insurance-companies-response-class.d.ts +24 -0
  157. package/dist/models/list-insurance-companies-response-class.js +15 -0
  158. package/dist/models/list-invites-response-class.d.ts +30 -0
  159. package/dist/models/list-invites-response-class.js +15 -0
  160. package/dist/models/list-permissions-response-class.d.ts +30 -0
  161. package/dist/models/list-permissions-response-class.js +15 -0
  162. package/dist/models/list-report-history-response-class.d.ts +30 -0
  163. package/dist/models/list-report-history-response-class.js +15 -0
  164. package/dist/models/list-reports-response-class.d.ts +30 -0
  165. package/dist/models/list-reports-response-class.js +15 -0
  166. package/dist/models/list-roles-response-class.d.ts +30 -0
  167. package/dist/models/list-roles-response-class.js +15 -0
  168. package/dist/models/list-scenario-analyses-response-class.d.ts +30 -0
  169. package/dist/models/list-scenario-analyses-response-class.js +15 -0
  170. package/dist/models/list-scenario-analysis-dates-response-class.d.ts +24 -0
  171. package/dist/models/list-scenario-analysis-dates-response-class.js +15 -0
  172. package/dist/models/list-tariff-insurance-companies-response-class.d.ts +24 -0
  173. package/dist/models/list-tariff-insurance-companies-response-class.js +15 -0
  174. package/dist/models/list-tariffs-response-class.d.ts +24 -0
  175. package/dist/models/list-tariffs-response-class.js +15 -0
  176. package/dist/models/list-users-response-class.d.ts +30 -0
  177. package/dist/models/list-users-response-class.js +15 -0
  178. package/dist/models/manage-subscription-request-dto.d.ts +24 -0
  179. package/dist/models/manage-subscription-request-dto.js +15 -0
  180. package/dist/models/manage-subscription-response-class.d.ts +25 -0
  181. package/dist/models/manage-subscription-response-class.js +15 -0
  182. package/dist/models/permission-class.d.ts +66 -0
  183. package/dist/models/permission-class.js +15 -0
  184. package/dist/models/report-class.d.ts +66 -0
  185. package/dist/models/report-class.js +15 -0
  186. package/dist/models/role-class.d.ts +60 -0
  187. package/dist/models/role-class.js +15 -0
  188. package/dist/models/run-data-report-request-dto.d.ts +30 -0
  189. package/dist/models/run-data-report-request-dto.js +15 -0
  190. package/dist/models/run-data-report-response-class.d.ts +24 -0
  191. package/dist/models/run-data-report-response-class.js +15 -0
  192. package/dist/models/scenario-analysis-class.d.ts +108 -0
  193. package/dist/models/scenario-analysis-class.js +15 -0
  194. package/dist/models/set-user-setting-request-dto.d.ts +30 -0
  195. package/dist/models/set-user-setting-request-dto.js +15 -0
  196. package/dist/models/subscription-class.d.ts +60 -0
  197. package/dist/models/subscription-class.js +15 -0
  198. package/dist/models/tenant-admin-user-dto.d.ts +42 -0
  199. package/dist/models/tenant-admin-user-dto.js +15 -0
  200. package/dist/models/update-alert-request-dto.d.ts +72 -0
  201. package/dist/models/update-alert-request-dto.js +21 -0
  202. package/dist/models/update-alert-response-class.d.ts +25 -0
  203. package/dist/models/update-alert-response-class.js +15 -0
  204. package/dist/models/update-custom-schema-request-dto.d.ts +44 -0
  205. package/dist/models/update-custom-schema-request-dto.js +22 -0
  206. package/dist/models/update-custom-schema-response-class.d.ts +25 -0
  207. package/dist/models/update-custom-schema-response-class.js +15 -0
  208. package/dist/models/update-dashboard-request-dto.d.ts +76 -0
  209. package/dist/models/update-dashboard-request-dto.js +29 -0
  210. package/dist/models/update-dashboard-response-class.d.ts +25 -0
  211. package/dist/models/update-dashboard-response-class.js +15 -0
  212. package/dist/models/update-report-request-dto.d.ts +55 -0
  213. package/dist/models/update-report-request-dto.js +22 -0
  214. package/dist/models/update-report-response-class.d.ts +25 -0
  215. package/dist/models/update-report-response-class.js +15 -0
  216. package/dist/models/update-role-request-dto.d.ts +42 -0
  217. package/dist/models/update-role-request-dto.js +15 -0
  218. package/dist/models/update-role-response-class.d.ts +25 -0
  219. package/dist/models/update-role-response-class.js +15 -0
  220. package/dist/models/update-scenario-analysis-request-dto.d.ts +74 -0
  221. package/dist/models/update-scenario-analysis-request-dto.js +22 -0
  222. package/dist/models/update-scenario-analysis-response-class.d.ts +25 -0
  223. package/dist/models/update-scenario-analysis-response-class.js +15 -0
  224. package/dist/models/user-class.d.ts +90 -0
  225. package/dist/models/user-class.js +15 -0
  226. package/git_push.sh +57 -0
  227. package/index.ts +19 -0
  228. package/models/alert-class.ts +96 -0
  229. package/models/assign-user-roles-request-dto.ts +36 -0
  230. package/models/assign-user-roles-response-class.ts +31 -0
  231. package/models/batch-delete-request-dto.ts +30 -0
  232. package/models/compare-tariffs-request-dto.ts +46 -0
  233. package/models/compare-tariffs-response-class.ts +36 -0
  234. package/models/condition-dto.ts +52 -0
  235. package/models/create-alert-request-dto.ts +89 -0
  236. package/models/create-alert-response-class.ts +31 -0
  237. package/models/create-custom-schema-request-dto.ts +53 -0
  238. package/models/create-custom-schema-response-class.ts +31 -0
  239. package/models/create-dashboard-request-dto.ts +81 -0
  240. package/models/create-dashboard-response-class.ts +31 -0
  241. package/models/create-permission-request-dto.ts +54 -0
  242. package/models/create-permission-response-class.ts +31 -0
  243. package/models/create-report-request-dto.ts +58 -0
  244. package/models/create-report-response-class.ts +31 -0
  245. package/models/create-role-request-dto.ts +42 -0
  246. package/models/create-role-response-class.ts +31 -0
  247. package/models/create-scenario-analysis-request-dto.ts +83 -0
  248. package/models/create-scenario-analysis-response-class.ts +31 -0
  249. package/models/create-tenant-request-dto.ts +62 -0
  250. package/models/create-tenant-response-class.ts +48 -0
  251. package/models/custom-field-dto.ts +77 -0
  252. package/models/custom-schema-class.ts +72 -0
  253. package/models/dashboard-class.ts +84 -0
  254. package/models/dbconfig-dto.ts +54 -0
  255. package/models/disable-user-response-class.ts +31 -0
  256. package/models/disable-users-request-dto.ts +30 -0
  257. package/models/enable-user-response-class.ts +31 -0
  258. package/models/enable-users-request-dto.ts +30 -0
  259. package/models/get-alert-response-class.ts +31 -0
  260. package/models/get-custom-schema-response-class.ts +31 -0
  261. package/models/get-dashboard-response-class.ts +31 -0
  262. package/models/get-embedded-url-response-class.ts +30 -0
  263. package/models/get-report-response-class.ts +31 -0
  264. package/models/get-role-response-class.ts +31 -0
  265. package/models/get-scenario-analysis-response-class.ts +31 -0
  266. package/models/get-user-response-class.ts +31 -0
  267. package/models/index.ts +83 -0
  268. package/models/invite-class.ts +60 -0
  269. package/models/invite-user-request-dto.ts +36 -0
  270. package/models/invite-user-response-class.ts +31 -0
  271. package/models/invite-users-request-dto.ts +36 -0
  272. package/models/list-alert-history-response-class.ts +36 -0
  273. package/models/list-alerts-response-class.ts +36 -0
  274. package/models/list-channels-response-class.ts +30 -0
  275. package/models/list-custom-schemas-response-class.ts +36 -0
  276. package/models/list-dashboards-response-class.ts +36 -0
  277. package/models/list-insurance-companies-response-class.ts +30 -0
  278. package/models/list-invites-response-class.ts +36 -0
  279. package/models/list-permissions-response-class.ts +36 -0
  280. package/models/list-report-history-response-class.ts +36 -0
  281. package/models/list-reports-response-class.ts +36 -0
  282. package/models/list-roles-response-class.ts +36 -0
  283. package/models/list-scenario-analyses-response-class.ts +36 -0
  284. package/models/list-scenario-analysis-dates-response-class.ts +30 -0
  285. package/models/list-tariff-insurance-companies-response-class.ts +30 -0
  286. package/models/list-tariffs-response-class.ts +30 -0
  287. package/models/list-users-response-class.ts +36 -0
  288. package/models/manage-subscription-request-dto.ts +30 -0
  289. package/models/manage-subscription-response-class.ts +31 -0
  290. package/models/permission-class.ts +72 -0
  291. package/models/report-class.ts +72 -0
  292. package/models/role-class.ts +66 -0
  293. package/models/run-data-report-request-dto.ts +36 -0
  294. package/models/run-data-report-response-class.ts +30 -0
  295. package/models/scenario-analysis-class.ts +114 -0
  296. package/models/set-user-setting-request-dto.ts +36 -0
  297. package/models/subscription-class.ts +66 -0
  298. package/models/tenant-admin-user-dto.ts +48 -0
  299. package/models/update-alert-request-dto.ts +81 -0
  300. package/models/update-alert-response-class.ts +31 -0
  301. package/models/update-custom-schema-request-dto.ts +53 -0
  302. package/models/update-custom-schema-response-class.ts +31 -0
  303. package/models/update-dashboard-request-dto.ts +87 -0
  304. package/models/update-dashboard-response-class.ts +31 -0
  305. package/models/update-report-request-dto.ts +64 -0
  306. package/models/update-report-response-class.ts +31 -0
  307. package/models/update-role-request-dto.ts +48 -0
  308. package/models/update-role-response-class.ts +31 -0
  309. package/models/update-scenario-analysis-request-dto.ts +83 -0
  310. package/models/update-scenario-analysis-response-class.ts +31 -0
  311. package/models/user-class.ts +96 -0
  312. package/package.json +29 -0
  313. package/tsconfig.json +22 -0
@@ -0,0 +1,514 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL Tenant Service
6
+ * The EMIL TenantService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __assign = (this && this.__assign) || function () {
31
+ __assign = Object.assign || function(t) {
32
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
33
+ s = arguments[i];
34
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
35
+ t[p] = s[p];
36
+ }
37
+ return t;
38
+ };
39
+ return __assign.apply(this, arguments);
40
+ };
41
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
42
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
43
+ return new (P || (P = Promise))(function (resolve, reject) {
44
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
45
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
46
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
47
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
48
+ });
49
+ };
50
+ var __generator = (this && this.__generator) || function (thisArg, body) {
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
52
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
+ function verb(n) { return function (v) { return step([n, v]); }; }
54
+ function step(op) {
55
+ if (f) throw new TypeError("Generator is already executing.");
56
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
57
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
58
+ if (y = 0, t) op = [op[0] & 2, t.value];
59
+ switch (op[0]) {
60
+ case 0: case 1: t = op; break;
61
+ case 4: _.label++; return { value: op[1], done: false };
62
+ case 5: _.label++; y = op[1]; op = [0]; continue;
63
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
64
+ default:
65
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
66
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
67
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
68
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
69
+ if (t[2]) _.ops.pop();
70
+ _.trys.pop(); continue;
71
+ }
72
+ op = body.call(thisArg, _);
73
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
74
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
+ }
76
+ };
77
+ var __importDefault = (this && this.__importDefault) || function (mod) {
78
+ return (mod && mod.__esModule) ? mod : { "default": mod };
79
+ };
80
+ Object.defineProperty(exports, "__esModule", { value: true });
81
+ exports.TenantsApi = exports.TenantsApiFactory = exports.TenantsApiFp = exports.TenantsApiAxiosParamCreator = void 0;
82
+ var axios_1 = __importDefault(require("axios"));
83
+ // Some imports not used depending on template conditions
84
+ // @ts-ignore
85
+ var common_1 = require("../common");
86
+ // @ts-ignore
87
+ var base_1 = require("../base");
88
+ // URLSearchParams not necessarily used
89
+ // @ts-ignore
90
+ var url_1 = require("url");
91
+ var FormData = require('form-data');
92
+ /**
93
+ * TenantsApi - axios parameter creator
94
+ * @export
95
+ */
96
+ var TenantsApiAxiosParamCreator = function (configuration) {
97
+ var _this = this;
98
+ return {
99
+ /**
100
+ *
101
+ * @param {CreateTenantRequestDto} createTenantRequestDto
102
+ * @param {string} [authorization] Bearer Token
103
+ * @param {*} [options] Override http request option.
104
+ * @throws {RequiredError}
105
+ */
106
+ createTenant: function (createTenantRequestDto, authorization, options) {
107
+ if (options === void 0) { options = {}; }
108
+ return __awaiter(_this, void 0, void 0, function () {
109
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
110
+ return __generator(this, function (_a) {
111
+ switch (_a.label) {
112
+ case 0:
113
+ // verify required parameter 'createTenantRequestDto' is not null or undefined
114
+ (0, common_1.assertParamExists)('createTenant', 'createTenantRequestDto', createTenantRequestDto);
115
+ localVarPath = "/tenantservice/v1/tenants";
116
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
117
+ if (configuration) {
118
+ baseOptions = configuration.baseOptions;
119
+ baseAccessToken = configuration.accessToken;
120
+ }
121
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
122
+ localVarHeaderParameter = {};
123
+ localVarQueryParameter = {};
124
+ // authentication bearer required
125
+ // http bearer authentication required
126
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
127
+ case 1:
128
+ // authentication bearer required
129
+ // http bearer authentication required
130
+ _a.sent();
131
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
132
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
133
+ }
134
+ localVarHeaderParameter['Content-Type'] = 'application/json';
135
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
136
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
137
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
138
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createTenantRequestDto, localVarRequestOptions, configuration);
139
+ return [2 /*return*/, {
140
+ url: (0, common_1.toPathString)(localVarUrlObj),
141
+ options: localVarRequestOptions,
142
+ }];
143
+ }
144
+ });
145
+ });
146
+ },
147
+ /**
148
+ *
149
+ * @param {string} [authorization] Bearer Token
150
+ * @param {*} [options] Override http request option.
151
+ * @throws {RequiredError}
152
+ */
153
+ getQuicksightUrl: function (authorization, options) {
154
+ if (options === void 0) { options = {}; }
155
+ return __awaiter(_this, void 0, void 0, function () {
156
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
157
+ return __generator(this, function (_a) {
158
+ switch (_a.label) {
159
+ case 0:
160
+ localVarPath = "/tenantservice/v1/tenants/quicksight";
161
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
162
+ if (configuration) {
163
+ baseOptions = configuration.baseOptions;
164
+ baseAccessToken = configuration.accessToken;
165
+ }
166
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
167
+ localVarHeaderParameter = {};
168
+ localVarQueryParameter = {};
169
+ // authentication bearer required
170
+ // http bearer authentication required
171
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
172
+ case 1:
173
+ // authentication bearer required
174
+ // http bearer authentication required
175
+ _a.sent();
176
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
177
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
178
+ }
179
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
180
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
181
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
182
+ return [2 /*return*/, {
183
+ url: (0, common_1.toPathString)(localVarUrlObj),
184
+ options: localVarRequestOptions,
185
+ }];
186
+ }
187
+ });
188
+ });
189
+ },
190
+ /**
191
+ *
192
+ * @param {number} id
193
+ * @param {string} [authorization] Bearer Token
194
+ * @param {*} [options] Override http request option.
195
+ * @throws {RequiredError}
196
+ */
197
+ getTenant: function (id, authorization, options) {
198
+ if (options === void 0) { options = {}; }
199
+ return __awaiter(_this, void 0, void 0, function () {
200
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
201
+ return __generator(this, function (_a) {
202
+ switch (_a.label) {
203
+ case 0:
204
+ // verify required parameter 'id' is not null or undefined
205
+ (0, common_1.assertParamExists)('getTenant', 'id', id);
206
+ localVarPath = "/tenantservice/v1/tenants/{id}"
207
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
208
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
209
+ if (configuration) {
210
+ baseOptions = configuration.baseOptions;
211
+ baseAccessToken = configuration.accessToken;
212
+ }
213
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
214
+ localVarHeaderParameter = {};
215
+ localVarQueryParameter = {};
216
+ // authentication bearer required
217
+ // http bearer authentication required
218
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
219
+ case 1:
220
+ // authentication bearer required
221
+ // http bearer authentication required
222
+ _a.sent();
223
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
224
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
225
+ }
226
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
227
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
228
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
229
+ return [2 /*return*/, {
230
+ url: (0, common_1.toPathString)(localVarUrlObj),
231
+ options: localVarRequestOptions,
232
+ }];
233
+ }
234
+ });
235
+ });
236
+ },
237
+ /**
238
+ *
239
+ * @param {string} [authorization] Bearer Token
240
+ * @param {number} [pageSize] Page size
241
+ * @param {string} [pageToken] Page token
242
+ * @param {string} [filter] List filter
243
+ * @param {string} [search] Search query
244
+ * @param {string} [order] Ordering criteria
245
+ * @param {string} [expand] Extra fields to fetch
246
+ * @param {*} [options] Override http request option.
247
+ * @throws {RequiredError}
248
+ */
249
+ listTenants: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
250
+ if (options === void 0) { options = {}; }
251
+ return __awaiter(_this, void 0, void 0, function () {
252
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
253
+ return __generator(this, function (_a) {
254
+ switch (_a.label) {
255
+ case 0:
256
+ localVarPath = "/tenantservice/v1/tenants";
257
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
258
+ if (configuration) {
259
+ baseOptions = configuration.baseOptions;
260
+ baseAccessToken = configuration.accessToken;
261
+ }
262
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
263
+ localVarHeaderParameter = {};
264
+ localVarQueryParameter = {};
265
+ // authentication bearer required
266
+ // http bearer authentication required
267
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
268
+ case 1:
269
+ // authentication bearer required
270
+ // http bearer authentication required
271
+ _a.sent();
272
+ if (pageSize !== undefined) {
273
+ localVarQueryParameter['pageSize'] = pageSize;
274
+ }
275
+ if (pageToken !== undefined) {
276
+ localVarQueryParameter['pageToken'] = pageToken;
277
+ }
278
+ if (filter !== undefined) {
279
+ localVarQueryParameter['filter'] = filter;
280
+ }
281
+ if (search !== undefined) {
282
+ localVarQueryParameter['search'] = search;
283
+ }
284
+ if (order !== undefined) {
285
+ localVarQueryParameter['order'] = order;
286
+ }
287
+ if (expand !== undefined) {
288
+ localVarQueryParameter['expand'] = expand;
289
+ }
290
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
291
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
292
+ }
293
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
294
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
295
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
296
+ return [2 /*return*/, {
297
+ url: (0, common_1.toPathString)(localVarUrlObj),
298
+ options: localVarRequestOptions,
299
+ }];
300
+ }
301
+ });
302
+ });
303
+ },
304
+ };
305
+ };
306
+ exports.TenantsApiAxiosParamCreator = TenantsApiAxiosParamCreator;
307
+ /**
308
+ * TenantsApi - functional programming interface
309
+ * @export
310
+ */
311
+ var TenantsApiFp = function (configuration) {
312
+ var localVarAxiosParamCreator = (0, exports.TenantsApiAxiosParamCreator)(configuration);
313
+ return {
314
+ /**
315
+ *
316
+ * @param {CreateTenantRequestDto} createTenantRequestDto
317
+ * @param {string} [authorization] Bearer Token
318
+ * @param {*} [options] Override http request option.
319
+ * @throws {RequiredError}
320
+ */
321
+ createTenant: function (createTenantRequestDto, authorization, options) {
322
+ return __awaiter(this, void 0, void 0, function () {
323
+ var localVarAxiosArgs;
324
+ return __generator(this, function (_a) {
325
+ switch (_a.label) {
326
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createTenant(createTenantRequestDto, authorization, options)];
327
+ case 1:
328
+ localVarAxiosArgs = _a.sent();
329
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
330
+ }
331
+ });
332
+ });
333
+ },
334
+ /**
335
+ *
336
+ * @param {string} [authorization] Bearer Token
337
+ * @param {*} [options] Override http request option.
338
+ * @throws {RequiredError}
339
+ */
340
+ getQuicksightUrl: function (authorization, options) {
341
+ return __awaiter(this, void 0, void 0, function () {
342
+ var localVarAxiosArgs;
343
+ return __generator(this, function (_a) {
344
+ switch (_a.label) {
345
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getQuicksightUrl(authorization, options)];
346
+ case 1:
347
+ localVarAxiosArgs = _a.sent();
348
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
349
+ }
350
+ });
351
+ });
352
+ },
353
+ /**
354
+ *
355
+ * @param {number} id
356
+ * @param {string} [authorization] Bearer Token
357
+ * @param {*} [options] Override http request option.
358
+ * @throws {RequiredError}
359
+ */
360
+ getTenant: function (id, authorization, options) {
361
+ return __awaiter(this, void 0, void 0, function () {
362
+ var localVarAxiosArgs;
363
+ return __generator(this, function (_a) {
364
+ switch (_a.label) {
365
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getTenant(id, authorization, options)];
366
+ case 1:
367
+ localVarAxiosArgs = _a.sent();
368
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
369
+ }
370
+ });
371
+ });
372
+ },
373
+ /**
374
+ *
375
+ * @param {string} [authorization] Bearer Token
376
+ * @param {number} [pageSize] Page size
377
+ * @param {string} [pageToken] Page token
378
+ * @param {string} [filter] List filter
379
+ * @param {string} [search] Search query
380
+ * @param {string} [order] Ordering criteria
381
+ * @param {string} [expand] Extra fields to fetch
382
+ * @param {*} [options] Override http request option.
383
+ * @throws {RequiredError}
384
+ */
385
+ listTenants: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
386
+ return __awaiter(this, void 0, void 0, function () {
387
+ var localVarAxiosArgs;
388
+ return __generator(this, function (_a) {
389
+ switch (_a.label) {
390
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listTenants(authorization, pageSize, pageToken, filter, search, order, expand, options)];
391
+ case 1:
392
+ localVarAxiosArgs = _a.sent();
393
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
394
+ }
395
+ });
396
+ });
397
+ },
398
+ };
399
+ };
400
+ exports.TenantsApiFp = TenantsApiFp;
401
+ /**
402
+ * TenantsApi - factory interface
403
+ * @export
404
+ */
405
+ var TenantsApiFactory = function (configuration, basePath, axios) {
406
+ var localVarFp = (0, exports.TenantsApiFp)(configuration);
407
+ return {
408
+ /**
409
+ *
410
+ * @param {CreateTenantRequestDto} createTenantRequestDto
411
+ * @param {string} [authorization] Bearer Token
412
+ * @param {*} [options] Override http request option.
413
+ * @throws {RequiredError}
414
+ */
415
+ createTenant: function (createTenantRequestDto, authorization, options) {
416
+ return localVarFp.createTenant(createTenantRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
417
+ },
418
+ /**
419
+ *
420
+ * @param {string} [authorization] Bearer Token
421
+ * @param {*} [options] Override http request option.
422
+ * @throws {RequiredError}
423
+ */
424
+ getQuicksightUrl: function (authorization, options) {
425
+ return localVarFp.getQuicksightUrl(authorization, options).then(function (request) { return request(axios, basePath); });
426
+ },
427
+ /**
428
+ *
429
+ * @param {number} id
430
+ * @param {string} [authorization] Bearer Token
431
+ * @param {*} [options] Override http request option.
432
+ * @throws {RequiredError}
433
+ */
434
+ getTenant: function (id, authorization, options) {
435
+ return localVarFp.getTenant(id, authorization, options).then(function (request) { return request(axios, basePath); });
436
+ },
437
+ /**
438
+ *
439
+ * @param {string} [authorization] Bearer Token
440
+ * @param {number} [pageSize] Page size
441
+ * @param {string} [pageToken] Page token
442
+ * @param {string} [filter] List filter
443
+ * @param {string} [search] Search query
444
+ * @param {string} [order] Ordering criteria
445
+ * @param {string} [expand] Extra fields to fetch
446
+ * @param {*} [options] Override http request option.
447
+ * @throws {RequiredError}
448
+ */
449
+ listTenants: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
450
+ return localVarFp.listTenants(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
451
+ },
452
+ };
453
+ };
454
+ exports.TenantsApiFactory = TenantsApiFactory;
455
+ /**
456
+ * TenantsApi - object-oriented interface
457
+ * @export
458
+ * @class TenantsApi
459
+ * @extends {BaseAPI}
460
+ */
461
+ var TenantsApi = /** @class */ (function (_super) {
462
+ __extends(TenantsApi, _super);
463
+ function TenantsApi() {
464
+ return _super !== null && _super.apply(this, arguments) || this;
465
+ }
466
+ /**
467
+ *
468
+ * @param {TenantsApiCreateTenantRequest} requestParameters Request parameters.
469
+ * @param {*} [options] Override http request option.
470
+ * @throws {RequiredError}
471
+ * @memberof TenantsApi
472
+ */
473
+ TenantsApi.prototype.createTenant = function (requestParameters, options) {
474
+ var _this = this;
475
+ return (0, exports.TenantsApiFp)(this.configuration).createTenant(requestParameters.createTenantRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
476
+ };
477
+ /**
478
+ *
479
+ * @param {TenantsApiGetQuicksightUrlRequest} requestParameters Request parameters.
480
+ * @param {*} [options] Override http request option.
481
+ * @throws {RequiredError}
482
+ * @memberof TenantsApi
483
+ */
484
+ TenantsApi.prototype.getQuicksightUrl = function (requestParameters, options) {
485
+ var _this = this;
486
+ if (requestParameters === void 0) { requestParameters = {}; }
487
+ return (0, exports.TenantsApiFp)(this.configuration).getQuicksightUrl(requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
488
+ };
489
+ /**
490
+ *
491
+ * @param {TenantsApiGetTenantRequest} requestParameters Request parameters.
492
+ * @param {*} [options] Override http request option.
493
+ * @throws {RequiredError}
494
+ * @memberof TenantsApi
495
+ */
496
+ TenantsApi.prototype.getTenant = function (requestParameters, options) {
497
+ var _this = this;
498
+ return (0, exports.TenantsApiFp)(this.configuration).getTenant(requestParameters.id, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
499
+ };
500
+ /**
501
+ *
502
+ * @param {TenantsApiListTenantsRequest} requestParameters Request parameters.
503
+ * @param {*} [options] Override http request option.
504
+ * @throws {RequiredError}
505
+ * @memberof TenantsApi
506
+ */
507
+ TenantsApi.prototype.listTenants = function (requestParameters, options) {
508
+ var _this = this;
509
+ if (requestParameters === void 0) { requestParameters = {}; }
510
+ return (0, exports.TenantsApiFp)(this.configuration).listTenants(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
511
+ };
512
+ return TenantsApi;
513
+ }(base_1.BaseAPI));
514
+ exports.TenantsApi = TenantsApi;
@@ -0,0 +1,111 @@
1
+ /**
2
+ * EMIL Tenant Service
3
+ * The EMIL TenantService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
+ import { Configuration } from '../configuration';
14
+ import { RequestArgs, BaseAPI } from '../base';
15
+ import { ManageSubscriptionRequestDto } from '../models';
16
+ import { ManageSubscriptionResponseClass } from '../models';
17
+ /**
18
+ * UserSubscriptionApi - axios parameter creator
19
+ * @export
20
+ */
21
+ export declare const UserSubscriptionApiAxiosParamCreator: (configuration?: Configuration) => {
22
+ /**
23
+ *
24
+ * @param {string} entity
25
+ * @param {number} entityId
26
+ * @param {ManageSubscriptionRequestDto} manageSubscriptionRequestDto
27
+ * @param {string} [authorization] Bearer Token
28
+ * @param {*} [options] Override http request option.
29
+ * @throws {RequiredError}
30
+ */
31
+ manageSubscription: (entity: string, entityId: number, manageSubscriptionRequestDto: ManageSubscriptionRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
32
+ };
33
+ /**
34
+ * UserSubscriptionApi - functional programming interface
35
+ * @export
36
+ */
37
+ export declare const UserSubscriptionApiFp: (configuration?: Configuration) => {
38
+ /**
39
+ *
40
+ * @param {string} entity
41
+ * @param {number} entityId
42
+ * @param {ManageSubscriptionRequestDto} manageSubscriptionRequestDto
43
+ * @param {string} [authorization] Bearer Token
44
+ * @param {*} [options] Override http request option.
45
+ * @throws {RequiredError}
46
+ */
47
+ manageSubscription(entity: string, entityId: number, manageSubscriptionRequestDto: ManageSubscriptionRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ManageSubscriptionResponseClass>>;
48
+ };
49
+ /**
50
+ * UserSubscriptionApi - factory interface
51
+ * @export
52
+ */
53
+ export declare const UserSubscriptionApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
54
+ /**
55
+ *
56
+ * @param {string} entity
57
+ * @param {number} entityId
58
+ * @param {ManageSubscriptionRequestDto} manageSubscriptionRequestDto
59
+ * @param {string} [authorization] Bearer Token
60
+ * @param {*} [options] Override http request option.
61
+ * @throws {RequiredError}
62
+ */
63
+ manageSubscription(entity: string, entityId: number, manageSubscriptionRequestDto: ManageSubscriptionRequestDto, authorization?: string, options?: any): AxiosPromise<ManageSubscriptionResponseClass>;
64
+ };
65
+ /**
66
+ * Request parameters for manageSubscription operation in UserSubscriptionApi.
67
+ * @export
68
+ * @interface UserSubscriptionApiManageSubscriptionRequest
69
+ */
70
+ export interface UserSubscriptionApiManageSubscriptionRequest {
71
+ /**
72
+ *
73
+ * @type {string}
74
+ * @memberof UserSubscriptionApiManageSubscription
75
+ */
76
+ readonly entity: string;
77
+ /**
78
+ *
79
+ * @type {number}
80
+ * @memberof UserSubscriptionApiManageSubscription
81
+ */
82
+ readonly entityId: number;
83
+ /**
84
+ *
85
+ * @type {ManageSubscriptionRequestDto}
86
+ * @memberof UserSubscriptionApiManageSubscription
87
+ */
88
+ readonly manageSubscriptionRequestDto: ManageSubscriptionRequestDto;
89
+ /**
90
+ * Bearer Token
91
+ * @type {string}
92
+ * @memberof UserSubscriptionApiManageSubscription
93
+ */
94
+ readonly authorization?: string;
95
+ }
96
+ /**
97
+ * UserSubscriptionApi - object-oriented interface
98
+ * @export
99
+ * @class UserSubscriptionApi
100
+ * @extends {BaseAPI}
101
+ */
102
+ export declare class UserSubscriptionApi extends BaseAPI {
103
+ /**
104
+ *
105
+ * @param {UserSubscriptionApiManageSubscriptionRequest} requestParameters Request parameters.
106
+ * @param {*} [options] Override http request option.
107
+ * @throws {RequiredError}
108
+ * @memberof UserSubscriptionApi
109
+ */
110
+ manageSubscription(requestParameters: UserSubscriptionApiManageSubscriptionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ManageSubscriptionResponseClass, any>>;
111
+ }