@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
@@ -21,13 +21,12 @@ import { RunDataReportResponseClass } from '../models';
21
21
  export declare const DataReportExecutorApiAxiosParamCreator: (configuration?: Configuration) => {
22
22
  /**
23
23
  *
24
- * @param {string} authorization2 Bearer Token: provided by the login endpoint under the name accessToken.
25
24
  * @param {RunDataReportRequestDto} runDataReportRequestDto
26
- * @param {string} [authorization] Bearer Token
25
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
27
26
  * @param {*} [options] Override http request option.
28
27
  * @throws {RequiredError}
29
28
  */
30
- runDataReport: (authorization2: string, runDataReportRequestDto: RunDataReportRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
29
+ runDataReport: (runDataReportRequestDto: RunDataReportRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
31
30
  };
32
31
  /**
33
32
  * DataReportExecutorApi - functional programming interface
@@ -36,13 +35,12 @@ export declare const DataReportExecutorApiAxiosParamCreator: (configuration?: Co
36
35
  export declare const DataReportExecutorApiFp: (configuration?: Configuration) => {
37
36
  /**
38
37
  *
39
- * @param {string} authorization2 Bearer Token: provided by the login endpoint under the name accessToken.
40
38
  * @param {RunDataReportRequestDto} runDataReportRequestDto
41
- * @param {string} [authorization] Bearer Token
39
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
42
40
  * @param {*} [options] Override http request option.
43
41
  * @throws {RequiredError}
44
42
  */
45
- runDataReport(authorization2: string, runDataReportRequestDto: RunDataReportRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RunDataReportResponseClass>>;
43
+ runDataReport(runDataReportRequestDto: RunDataReportRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RunDataReportResponseClass>>;
46
44
  };
47
45
  /**
48
46
  * DataReportExecutorApi - factory interface
@@ -51,13 +49,12 @@ export declare const DataReportExecutorApiFp: (configuration?: Configuration) =>
51
49
  export declare const DataReportExecutorApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
52
50
  /**
53
51
  *
54
- * @param {string} authorization2 Bearer Token: provided by the login endpoint under the name accessToken.
55
52
  * @param {RunDataReportRequestDto} runDataReportRequestDto
56
- * @param {string} [authorization] Bearer Token
53
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
57
54
  * @param {*} [options] Override http request option.
58
55
  * @throws {RequiredError}
59
56
  */
60
- runDataReport(authorization2: string, runDataReportRequestDto: RunDataReportRequestDto, authorization?: string, options?: any): AxiosPromise<RunDataReportResponseClass>;
57
+ runDataReport(runDataReportRequestDto: RunDataReportRequestDto, authorization?: string, options?: any): AxiosPromise<RunDataReportResponseClass>;
61
58
  };
62
59
  /**
63
60
  * Request parameters for runDataReport operation in DataReportExecutorApi.
@@ -65,12 +62,6 @@ export declare const DataReportExecutorApiFactory: (configuration?: Configuratio
65
62
  * @interface DataReportExecutorApiRunDataReportRequest
66
63
  */
67
64
  export interface DataReportExecutorApiRunDataReportRequest {
68
- /**
69
- * Bearer Token: provided by the login endpoint under the name accessToken.
70
- * @type {string}
71
- * @memberof DataReportExecutorApiRunDataReport
72
- */
73
- readonly authorization2: string;
74
65
  /**
75
66
  *
76
67
  * @type {RunDataReportRequestDto}
@@ -78,7 +69,7 @@ export interface DataReportExecutorApiRunDataReportRequest {
78
69
  */
79
70
  readonly runDataReportRequestDto: RunDataReportRequestDto;
80
71
  /**
81
- * Bearer Token
72
+ * Bearer Token: provided by the login endpoint under the name accessToken.
82
73
  * @type {string}
83
74
  * @memberof DataReportExecutorApiRunDataReport
84
75
  */
@@ -98,21 +98,18 @@ var DataReportExecutorApiAxiosParamCreator = function (configuration) {
98
98
  return {
99
99
  /**
100
100
  *
101
- * @param {string} authorization2 Bearer Token: provided by the login endpoint under the name accessToken.
102
101
  * @param {RunDataReportRequestDto} runDataReportRequestDto
103
- * @param {string} [authorization] Bearer Token
102
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
104
103
  * @param {*} [options] Override http request option.
105
104
  * @throws {RequiredError}
106
105
  */
107
- runDataReport: function (authorization2, runDataReportRequestDto, authorization, options) {
106
+ runDataReport: function (runDataReportRequestDto, authorization, options) {
108
107
  if (options === void 0) { options = {}; }
109
108
  return __awaiter(_this, void 0, void 0, function () {
110
109
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
111
110
  return __generator(this, function (_a) {
112
111
  switch (_a.label) {
113
112
  case 0:
114
- // verify required parameter 'authorization2' is not null or undefined
115
- (0, common_1.assertParamExists)('runDataReport', 'authorization2', authorization2);
116
113
  // verify required parameter 'runDataReportRequestDto' is not null or undefined
117
114
  (0, common_1.assertParamExists)('runDataReport', 'runDataReportRequestDto', runDataReportRequestDto);
118
115
  localVarPath = "/tenantservice/v1/data-report-executor";
@@ -134,9 +131,6 @@ var DataReportExecutorApiAxiosParamCreator = function (configuration) {
134
131
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
135
132
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
136
133
  }
137
- if (authorization2 !== undefined && authorization2 !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
138
- localVarHeaderParameter['Authorization'] = String(authorization2 ? authorization2 : baseAccessToken);
139
- }
140
134
  localVarHeaderParameter['Content-Type'] = 'application/json';
141
135
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
142
136
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -162,18 +156,17 @@ var DataReportExecutorApiFp = function (configuration) {
162
156
  return {
163
157
  /**
164
158
  *
165
- * @param {string} authorization2 Bearer Token: provided by the login endpoint under the name accessToken.
166
159
  * @param {RunDataReportRequestDto} runDataReportRequestDto
167
- * @param {string} [authorization] Bearer Token
160
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
168
161
  * @param {*} [options] Override http request option.
169
162
  * @throws {RequiredError}
170
163
  */
171
- runDataReport: function (authorization2, runDataReportRequestDto, authorization, options) {
164
+ runDataReport: function (runDataReportRequestDto, authorization, options) {
172
165
  return __awaiter(this, void 0, void 0, function () {
173
166
  var localVarAxiosArgs;
174
167
  return __generator(this, function (_a) {
175
168
  switch (_a.label) {
176
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.runDataReport(authorization2, runDataReportRequestDto, authorization, options)];
169
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.runDataReport(runDataReportRequestDto, authorization, options)];
177
170
  case 1:
178
171
  localVarAxiosArgs = _a.sent();
179
172
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -193,14 +186,13 @@ var DataReportExecutorApiFactory = function (configuration, basePath, axios) {
193
186
  return {
194
187
  /**
195
188
  *
196
- * @param {string} authorization2 Bearer Token: provided by the login endpoint under the name accessToken.
197
189
  * @param {RunDataReportRequestDto} runDataReportRequestDto
198
- * @param {string} [authorization] Bearer Token
190
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
199
191
  * @param {*} [options] Override http request option.
200
192
  * @throws {RequiredError}
201
193
  */
202
- runDataReport: function (authorization2, runDataReportRequestDto, authorization, options) {
203
- return localVarFp.runDataReport(authorization2, runDataReportRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
194
+ runDataReport: function (runDataReportRequestDto, authorization, options) {
195
+ return localVarFp.runDataReport(runDataReportRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
204
196
  },
205
197
  };
206
198
  };
@@ -225,7 +217,7 @@ var DataReportExecutorApi = /** @class */ (function (_super) {
225
217
  */
226
218
  DataReportExecutorApi.prototype.runDataReport = function (requestParameters, options) {
227
219
  var _this = this;
228
- return (0, exports.DataReportExecutorApiFp)(this.configuration).runDataReport(requestParameters.authorization2, requestParameters.runDataReportRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
220
+ return (0, exports.DataReportExecutorApiFp)(this.configuration).runDataReport(requestParameters.runDataReportRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
229
221
  };
230
222
  return DataReportExecutorApi;
231
223
  }(base_1.BaseAPI));
@@ -12,18 +12,27 @@
12
12
  import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
13
  import { Configuration } from '../configuration';
14
14
  import { RequestArgs, BaseAPI } from '../base';
15
- import { ListUserSubscriptionsResponseClass } from '../models';
16
- import { ManageSubscriptionRequestDto } from '../models';
17
- import { ManageSubscriptionResponseClass } from '../models';
15
+ import { InviteOrgRequestDto } from '../models';
16
+ import { ListOrgInvitationsResponseClass } from '../models';
17
+ import { OrgInvitationResponseClass } from '../models';
18
18
  /**
19
- * UserSubscriptionApi - axios parameter creator
19
+ * InviteOrganizationsApi - axios parameter creator
20
20
  * @export
21
21
  */
22
- export declare const UserSubscriptionApiAxiosParamCreator: (configuration?: Configuration) => {
22
+ export declare const InviteOrganizationsApiAxiosParamCreator: (configuration?: Configuration) => {
23
23
  /**
24
- * Returns a list of user subscriptions you have previously created. The user subscriptions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
25
- * @summary List user subscriptions
26
- * @param {string} [authorization] Bearer Token
24
+ * This sends an email to invite an organization.
25
+ * @summary Invite an organization
26
+ * @param {InviteOrgRequestDto} inviteOrgRequestDto
27
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
28
+ * @param {*} [options] Override http request option.
29
+ * @throws {RequiredError}
30
+ */
31
+ inviteOrg: (inviteOrgRequestDto: InviteOrgRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
32
+ /**
33
+ * Returns a list of org invitations you have previously created. The org invitations are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
34
+ * @summary List org invitations
35
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
27
36
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
28
37
  * @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.
29
38
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -33,27 +42,26 @@ export declare const UserSubscriptionApiAxiosParamCreator: (configuration?: Conf
33
42
  * @param {*} [options] Override http request option.
34
43
  * @throws {RequiredError}
35
44
  */
36
- listInvites: (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
37
- /**
38
- *
39
- * @param {string} entity
40
- * @param {number} entityId
41
- * @param {ManageSubscriptionRequestDto} manageSubscriptionRequestDto
42
- * @param {string} [authorization] Bearer Token
43
- * @param {*} [options] Override http request option.
44
- * @throws {RequiredError}
45
- */
46
- manageSubscription: (entity: string, entityId: number, manageSubscriptionRequestDto: ManageSubscriptionRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
45
+ listOrgInvitations: (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
47
46
  };
48
47
  /**
49
- * UserSubscriptionApi - functional programming interface
48
+ * InviteOrganizationsApi - functional programming interface
50
49
  * @export
51
50
  */
52
- export declare const UserSubscriptionApiFp: (configuration?: Configuration) => {
51
+ export declare const InviteOrganizationsApiFp: (configuration?: Configuration) => {
53
52
  /**
54
- * Returns a list of user subscriptions you have previously created. The user subscriptions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
55
- * @summary List user subscriptions
56
- * @param {string} [authorization] Bearer Token
53
+ * This sends an email to invite an organization.
54
+ * @summary Invite an organization
55
+ * @param {InviteOrgRequestDto} inviteOrgRequestDto
56
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
57
+ * @param {*} [options] Override http request option.
58
+ * @throws {RequiredError}
59
+ */
60
+ inviteOrg(inviteOrgRequestDto: InviteOrgRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrgInvitationResponseClass>>;
61
+ /**
62
+ * Returns a list of org invitations you have previously created. The org invitations are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
63
+ * @summary List org invitations
64
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
57
65
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
58
66
  * @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.
59
67
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -63,27 +71,26 @@ export declare const UserSubscriptionApiFp: (configuration?: Configuration) => {
63
71
  * @param {*} [options] Override http request option.
64
72
  * @throws {RequiredError}
65
73
  */
66
- listInvites(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListUserSubscriptionsResponseClass>>;
67
- /**
68
- *
69
- * @param {string} entity
70
- * @param {number} entityId
71
- * @param {ManageSubscriptionRequestDto} manageSubscriptionRequestDto
72
- * @param {string} [authorization] Bearer Token
73
- * @param {*} [options] Override http request option.
74
- * @throws {RequiredError}
75
- */
76
- manageSubscription(entity: string, entityId: number, manageSubscriptionRequestDto: ManageSubscriptionRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ManageSubscriptionResponseClass>>;
74
+ listOrgInvitations(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListOrgInvitationsResponseClass>>;
77
75
  };
78
76
  /**
79
- * UserSubscriptionApi - factory interface
77
+ * InviteOrganizationsApi - factory interface
80
78
  * @export
81
79
  */
82
- export declare const UserSubscriptionApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
80
+ export declare const InviteOrganizationsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
83
81
  /**
84
- * Returns a list of user subscriptions you have previously created. The user subscriptions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
85
- * @summary List user subscriptions
86
- * @param {string} [authorization] Bearer Token
82
+ * This sends an email to invite an organization.
83
+ * @summary Invite an organization
84
+ * @param {InviteOrgRequestDto} inviteOrgRequestDto
85
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
86
+ * @param {*} [options] Override http request option.
87
+ * @throws {RequiredError}
88
+ */
89
+ inviteOrg(inviteOrgRequestDto: InviteOrgRequestDto, authorization?: string, options?: any): AxiosPromise<OrgInvitationResponseClass>;
90
+ /**
91
+ * Returns a list of org invitations you have previously created. The org invitations are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
92
+ * @summary List org invitations
93
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
87
94
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
88
95
  * @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.
89
96
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -93,120 +100,99 @@ export declare const UserSubscriptionApiFactory: (configuration?: Configuration,
93
100
  * @param {*} [options] Override http request option.
94
101
  * @throws {RequiredError}
95
102
  */
96
- listInvites(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListUserSubscriptionsResponseClass>;
103
+ listOrgInvitations(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListOrgInvitationsResponseClass>;
104
+ };
105
+ /**
106
+ * Request parameters for inviteOrg operation in InviteOrganizationsApi.
107
+ * @export
108
+ * @interface InviteOrganizationsApiInviteOrgRequest
109
+ */
110
+ export interface InviteOrganizationsApiInviteOrgRequest {
97
111
  /**
98
112
  *
99
- * @param {string} entity
100
- * @param {number} entityId
101
- * @param {ManageSubscriptionRequestDto} manageSubscriptionRequestDto
102
- * @param {string} [authorization] Bearer Token
103
- * @param {*} [options] Override http request option.
104
- * @throws {RequiredError}
113
+ * @type {InviteOrgRequestDto}
114
+ * @memberof InviteOrganizationsApiInviteOrg
105
115
  */
106
- manageSubscription(entity: string, entityId: number, manageSubscriptionRequestDto: ManageSubscriptionRequestDto, authorization?: string, options?: any): AxiosPromise<ManageSubscriptionResponseClass>;
107
- };
116
+ readonly inviteOrgRequestDto: InviteOrgRequestDto;
117
+ /**
118
+ * Bearer Token: provided by the login endpoint under the name accessToken.
119
+ * @type {string}
120
+ * @memberof InviteOrganizationsApiInviteOrg
121
+ */
122
+ readonly authorization?: string;
123
+ }
108
124
  /**
109
- * Request parameters for listInvites operation in UserSubscriptionApi.
125
+ * Request parameters for listOrgInvitations operation in InviteOrganizationsApi.
110
126
  * @export
111
- * @interface UserSubscriptionApiListInvitesRequest
127
+ * @interface InviteOrganizationsApiListOrgInvitationsRequest
112
128
  */
113
- export interface UserSubscriptionApiListInvitesRequest {
129
+ export interface InviteOrganizationsApiListOrgInvitationsRequest {
114
130
  /**
115
- * Bearer Token
131
+ * Bearer Token: provided by the login endpoint under the name accessToken.
116
132
  * @type {string}
117
- * @memberof UserSubscriptionApiListInvites
133
+ * @memberof InviteOrganizationsApiListOrgInvitations
118
134
  */
119
135
  readonly authorization?: string;
120
136
  /**
121
137
  * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
122
138
  * @type {any}
123
- * @memberof UserSubscriptionApiListInvites
139
+ * @memberof InviteOrganizationsApiListOrgInvitations
124
140
  */
125
141
  readonly pageSize?: any;
126
142
  /**
127
143
  * 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.
128
144
  * @type {any}
129
- * @memberof UserSubscriptionApiListInvites
145
+ * @memberof InviteOrganizationsApiListOrgInvitations
130
146
  */
131
147
  readonly pageToken?: any;
132
148
  /**
133
149
  * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
134
150
  * @type {any}
135
- * @memberof UserSubscriptionApiListInvites
151
+ * @memberof InviteOrganizationsApiListOrgInvitations
136
152
  */
137
153
  readonly filter?: any;
138
154
  /**
139
155
  * 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.
140
156
  * @type {any}
141
- * @memberof UserSubscriptionApiListInvites
157
+ * @memberof InviteOrganizationsApiListOrgInvitations
142
158
  */
143
159
  readonly search?: any;
144
160
  /**
145
161
  * 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.
146
162
  * @type {any}
147
- * @memberof UserSubscriptionApiListInvites
163
+ * @memberof InviteOrganizationsApiListOrgInvitations
148
164
  */
149
165
  readonly order?: any;
150
166
  /**
151
167
  * 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.
152
168
  * @type {any}
153
- * @memberof UserSubscriptionApiListInvites
169
+ * @memberof InviteOrganizationsApiListOrgInvitations
154
170
  */
155
171
  readonly expand?: any;
156
172
  }
157
173
  /**
158
- * Request parameters for manageSubscription operation in UserSubscriptionApi.
159
- * @export
160
- * @interface UserSubscriptionApiManageSubscriptionRequest
161
- */
162
- export interface UserSubscriptionApiManageSubscriptionRequest {
163
- /**
164
- *
165
- * @type {string}
166
- * @memberof UserSubscriptionApiManageSubscription
167
- */
168
- readonly entity: string;
169
- /**
170
- *
171
- * @type {number}
172
- * @memberof UserSubscriptionApiManageSubscription
173
- */
174
- readonly entityId: number;
175
- /**
176
- *
177
- * @type {ManageSubscriptionRequestDto}
178
- * @memberof UserSubscriptionApiManageSubscription
179
- */
180
- readonly manageSubscriptionRequestDto: ManageSubscriptionRequestDto;
181
- /**
182
- * Bearer Token
183
- * @type {string}
184
- * @memberof UserSubscriptionApiManageSubscription
185
- */
186
- readonly authorization?: string;
187
- }
188
- /**
189
- * UserSubscriptionApi - object-oriented interface
174
+ * InviteOrganizationsApi - object-oriented interface
190
175
  * @export
191
- * @class UserSubscriptionApi
176
+ * @class InviteOrganizationsApi
192
177
  * @extends {BaseAPI}
193
178
  */
194
- export declare class UserSubscriptionApi extends BaseAPI {
179
+ export declare class InviteOrganizationsApi extends BaseAPI {
195
180
  /**
196
- * Returns a list of user subscriptions you have previously created. The user subscriptions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
197
- * @summary List user subscriptions
198
- * @param {UserSubscriptionApiListInvitesRequest} requestParameters Request parameters.
181
+ * This sends an email to invite an organization.
182
+ * @summary Invite an organization
183
+ * @param {InviteOrganizationsApiInviteOrgRequest} requestParameters Request parameters.
199
184
  * @param {*} [options] Override http request option.
200
185
  * @throws {RequiredError}
201
- * @memberof UserSubscriptionApi
186
+ * @memberof InviteOrganizationsApi
202
187
  */
203
- listInvites(requestParameters?: UserSubscriptionApiListInvitesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListUserSubscriptionsResponseClass, any>>;
188
+ inviteOrg(requestParameters: InviteOrganizationsApiInviteOrgRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<OrgInvitationResponseClass, any>>;
204
189
  /**
205
- *
206
- * @param {UserSubscriptionApiManageSubscriptionRequest} requestParameters Request parameters.
190
+ * Returns a list of org invitations you have previously created. The org invitations are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
191
+ * @summary List org invitations
192
+ * @param {InviteOrganizationsApiListOrgInvitationsRequest} requestParameters Request parameters.
207
193
  * @param {*} [options] Override http request option.
208
194
  * @throws {RequiredError}
209
- * @memberof UserSubscriptionApi
195
+ * @memberof InviteOrganizationsApi
210
196
  */
211
- manageSubscription(requestParameters: UserSubscriptionApiManageSubscriptionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ManageSubscriptionResponseClass, any>>;
197
+ listOrgInvitations(requestParameters?: InviteOrganizationsApiListOrgInvitationsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListOrgInvitationsResponseClass, any>>;
212
198
  }