@emilgroup/tenant-sdk 1.0.1 → 1.2.1

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 (264) hide show
  1. package/.openapi-generator/FILES +16 -72
  2. package/README.md +2 -2
  3. package/api/custom-schema-api.ts +52 -60
  4. package/api/{user-subscription-api.ts → invite-organizations-api.ts} +139 -161
  5. package/api/invite-users-api.ts +75 -79
  6. package/api/organizations-api.ts +459 -0
  7. package/api/users-api.ts +138 -148
  8. package/api.ts +4 -18
  9. package/dist/api/custom-schema-api.d.ts +42 -42
  10. package/dist/api/custom-schema-api.js +31 -38
  11. package/dist/api/{user-subscription-api.d.ts → invite-organizations-api.d.ts} +89 -103
  12. package/dist/api/{user-subscription-api.js → invite-organizations-api.js} +106 -114
  13. package/dist/api/invite-users-api.d.ts +63 -60
  14. package/dist/api/invite-users-api.js +40 -49
  15. package/dist/api/organizations-api.d.ts +263 -0
  16. package/dist/api/{settings-api.js → organizations-api.js} +135 -195
  17. package/dist/api/users-api.d.ts +113 -109
  18. package/dist/api/users-api.js +76 -93
  19. package/dist/api.d.ts +2 -9
  20. package/dist/api.js +2 -9
  21. package/dist/models/assign-user-roles-request-dto.d.ts +2 -2
  22. package/dist/models/{manage-subscription-request-dto.d.ts → batch-delete-response-class.d.ts} +5 -5
  23. package/dist/models/create-custom-schema-request-dto.d.ts +1 -0
  24. package/dist/models/create-custom-schema-request-dto.js +2 -1
  25. package/dist/models/{insurance-response-class.d.ts → delete-response-class.d.ts} +6 -6
  26. package/dist/models/{get-embedded-url-response-class.d.ts → disable-users-response-class.d.ts} +6 -6
  27. package/dist/models/{insurance-company-response-class.d.ts → enable-users-response-class.d.ts} +6 -6
  28. package/dist/models/{create-alert-response-class.d.ts → get-organization-response-class.d.ts} +7 -7
  29. package/dist/models/index.d.ts +14 -63
  30. package/dist/models/index.js +14 -63
  31. package/dist/models/invite-org-request-dto.d.ts +78 -0
  32. package/dist/models/invite-user-request-dto.d.ts +8 -2
  33. package/dist/models/invite-users-request-dto.d.ts +2 -2
  34. package/dist/models/invite-users-response-class.d.ts +24 -0
  35. package/dist/models/{list-user-subscriptions-response-class.d.ts → list-org-invitations-response-class.d.ts} +8 -8
  36. package/dist/models/{list-data-reports-response-class.d.ts → list-organizations-response-class.d.ts} +8 -8
  37. package/dist/models/org-invitation-class.d.ts +103 -0
  38. package/dist/models/{create-dashboard-response-class.d.ts → org-invitation-response-class.d.ts} +7 -7
  39. package/dist/models/organization-class.d.ts +96 -0
  40. package/dist/models/set-setting-request-dto.d.ts +10 -4
  41. package/dist/models/subscription-class.d.ts +9 -2
  42. package/dist/models/update-custom-schema-request-dto.d.ts +1 -0
  43. package/dist/models/update-custom-schema-request-dto.js +2 -1
  44. package/dist/models/update-organization-request-dto-rest.d.ts +60 -0
  45. package/dist/models/{channel-response-class.d.ts → update-organization-response-class.d.ts} +7 -12
  46. package/dist/models/user-class.d.ts +13 -5
  47. package/models/assign-user-roles-request-dto.ts +2 -2
  48. package/models/{manage-subscription-request-dto.ts → batch-delete-response-class.ts} +5 -5
  49. package/models/create-custom-schema-request-dto.ts +2 -1
  50. package/models/{insurance-response-class.ts → delete-response-class.ts} +6 -6
  51. package/models/{get-embedded-url-response-class.ts → disable-users-response-class.ts} +6 -6
  52. package/models/{insurance-company-response-class.ts → enable-users-response-class.ts} +6 -6
  53. package/models/{channel-response-class.ts → get-organization-response-class.ts} +7 -12
  54. package/models/index.ts +14 -63
  55. package/models/invite-org-request-dto.ts +84 -0
  56. package/models/invite-user-request-dto.ts +8 -2
  57. package/models/invite-users-request-dto.ts +2 -2
  58. package/models/invite-users-response-class.ts +30 -0
  59. package/models/{list-user-subscriptions-response-class.ts → list-org-invitations-response-class.ts} +8 -8
  60. package/models/{list-data-reports-response-class.ts → list-organizations-response-class.ts} +8 -8
  61. package/models/org-invitation-class.ts +109 -0
  62. package/models/{create-alert-response-class.ts → org-invitation-response-class.ts} +7 -7
  63. package/models/organization-class.ts +102 -0
  64. package/models/set-setting-request-dto.ts +10 -4
  65. package/models/subscription-class.ts +9 -2
  66. package/models/update-custom-schema-request-dto.ts +2 -1
  67. package/models/update-organization-request-dto-rest.ts +66 -0
  68. package/models/{create-dashboard-response-class.ts → update-organization-response-class.ts} +7 -7
  69. package/models/user-class.ts +13 -5
  70. package/package.json +2 -2
  71. package/api/alerts-api.ts +0 -860
  72. package/api/dashboard-api.ts +0 -792
  73. package/api/data-report-api.ts +0 -687
  74. package/api/data-report-executor-api.ts +0 -181
  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/data-report-api.d.ts +0 -380
  84. package/dist/api/data-report-api.js +0 -645
  85. package/dist/api/data-report-executor-api.d.ts +0 -102
  86. package/dist/api/data-report-executor-api.js +0 -232
  87. package/dist/api/reports-api.d.ts +0 -479
  88. package/dist/api/reports-api.js +0 -752
  89. package/dist/api/scenario-analysis-api.d.ts +0 -529
  90. package/dist/api/scenario-analysis-api.js +0 -895
  91. package/dist/api/settings-api.d.ts +0 -264
  92. package/dist/api/tariff-comparisons-api.d.ts +0 -206
  93. package/dist/api/tariff-comparisons-api.js +0 -409
  94. package/dist/models/alert-class.d.ts +0 -90
  95. package/dist/models/alert-history-class.d.ts +0 -108
  96. package/dist/models/compare-tariffs-request-dto.d.ts +0 -37
  97. package/dist/models/compare-tariffs-request-dto.js +0 -22
  98. package/dist/models/compare-tariffs-response-class.d.ts +0 -31
  99. package/dist/models/condition-dto.d.ts +0 -43
  100. package/dist/models/condition-dto.js +0 -22
  101. package/dist/models/create-alert-request-dto.d.ts +0 -79
  102. package/dist/models/create-alert-request-dto.js +0 -27
  103. package/dist/models/create-dashboard-request-dto.d.ts +0 -70
  104. package/dist/models/create-dashboard-request-dto.js +0 -29
  105. package/dist/models/create-data-report-request-dto.d.ts +0 -61
  106. package/dist/models/create-data-report-response-class.d.ts +0 -25
  107. package/dist/models/create-report-request-dto.d.ts +0 -49
  108. package/dist/models/create-report-request-dto.js +0 -22
  109. package/dist/models/create-report-response-class.d.ts +0 -25
  110. package/dist/models/create-scenario-analysis-request-dto.d.ts +0 -74
  111. package/dist/models/create-scenario-analysis-request-dto.js +0 -22
  112. package/dist/models/create-scenario-analysis-response-class.d.ts +0 -25
  113. package/dist/models/dashboard-class.d.ts +0 -78
  114. package/dist/models/data-report-class.d.ts +0 -79
  115. package/dist/models/data-report-filter-class.d.ts +0 -72
  116. package/dist/models/data-report-filter-dto.d.ts +0 -48
  117. package/dist/models/data-report-filter-single-value-dto.d.ts +0 -42
  118. package/dist/models/data-report-filter-single-value-dto.js +0 -15
  119. package/dist/models/data-report-filter-value-dto.d.ts +0 -31
  120. package/dist/models/data-report-filter-value-dto.js +0 -15
  121. package/dist/models/get-alert-response-class.d.ts +0 -25
  122. package/dist/models/get-alert-response-class.js +0 -15
  123. package/dist/models/get-dashboard-response-class.d.ts +0 -25
  124. package/dist/models/get-dashboard-response-class.js +0 -15
  125. package/dist/models/get-data-report-response-class.d.ts +0 -25
  126. package/dist/models/get-data-report-response-class.js +0 -15
  127. package/dist/models/get-embedded-url-response-class.js +0 -15
  128. package/dist/models/get-report-response-class.d.ts +0 -25
  129. package/dist/models/get-report-response-class.js +0 -15
  130. package/dist/models/get-scenario-analysis-response-class.d.ts +0 -25
  131. package/dist/models/get-scenario-analysis-response-class.js +0 -15
  132. package/dist/models/grouped-tariff-class.d.ts +0 -30
  133. package/dist/models/grouped-tariff-class.js +0 -15
  134. package/dist/models/insurance-company-response-class.js +0 -15
  135. package/dist/models/insurance-response-class.js +0 -15
  136. package/dist/models/list-alert-history-response-class.d.ts +0 -31
  137. package/dist/models/list-alert-history-response-class.js +0 -15
  138. package/dist/models/list-alerts-response-class.d.ts +0 -31
  139. package/dist/models/list-alerts-response-class.js +0 -15
  140. package/dist/models/list-channels-response-class.d.ts +0 -25
  141. package/dist/models/list-channels-response-class.js +0 -15
  142. package/dist/models/list-dashboards-response-class.d.ts +0 -31
  143. package/dist/models/list-dashboards-response-class.js +0 -15
  144. package/dist/models/list-data-reports-response-class.js +0 -15
  145. package/dist/models/list-insurance-companies-response-class.d.ts +0 -25
  146. package/dist/models/list-insurance-companies-response-class.js +0 -15
  147. package/dist/models/list-report-history-response-class.d.ts +0 -31
  148. package/dist/models/list-report-history-response-class.js +0 -15
  149. package/dist/models/list-reports-response-class.d.ts +0 -31
  150. package/dist/models/list-reports-response-class.js +0 -15
  151. package/dist/models/list-scenario-analyses-response-class.d.ts +0 -31
  152. package/dist/models/list-scenario-analyses-response-class.js +0 -15
  153. package/dist/models/list-scenario-analysis-dates-response-class.d.ts +0 -25
  154. package/dist/models/list-scenario-analysis-dates-response-class.js +0 -15
  155. package/dist/models/list-tariff-insurance-companies-response-class.d.ts +0 -25
  156. package/dist/models/list-tariff-insurance-companies-response-class.js +0 -15
  157. package/dist/models/list-tariffs-response-class.d.ts +0 -25
  158. package/dist/models/list-tariffs-response-class.js +0 -15
  159. package/dist/models/list-user-subscriptions-response-class.js +0 -15
  160. package/dist/models/manage-subscription-request-dto.js +0 -15
  161. package/dist/models/manage-subscription-response-class.d.ts +0 -25
  162. package/dist/models/manage-subscription-response-class.js +0 -15
  163. package/dist/models/report-class.d.ts +0 -66
  164. package/dist/models/report-class.js +0 -15
  165. package/dist/models/report-history-class.d.ts +0 -48
  166. package/dist/models/report-history-class.js +0 -15
  167. package/dist/models/run-data-report-request-dto.d.ts +0 -31
  168. package/dist/models/run-data-report-request-dto.js +0 -15
  169. package/dist/models/run-data-report-response-class.d.ts +0 -24
  170. package/dist/models/run-data-report-response-class.js +0 -15
  171. package/dist/models/scenario-analysis-class.d.ts +0 -108
  172. package/dist/models/scenario-analysis-class.js +0 -15
  173. package/dist/models/scenario-analysis-date-response-class.d.ts +0 -36
  174. package/dist/models/scenario-analysis-date-response-class.js +0 -15
  175. package/dist/models/set-tenant-setting-response-class.d.ts +0 -36
  176. package/dist/models/set-tenant-setting-response-class.js +0 -15
  177. package/dist/models/update-alert-request-dto.d.ts +0 -72
  178. package/dist/models/update-alert-request-dto.js +0 -21
  179. package/dist/models/update-alert-response-class.d.ts +0 -25
  180. package/dist/models/update-alert-response-class.js +0 -15
  181. package/dist/models/update-dashboard-request-dto.d.ts +0 -76
  182. package/dist/models/update-dashboard-request-dto.js +0 -29
  183. package/dist/models/update-dashboard-response-class.d.ts +0 -25
  184. package/dist/models/update-dashboard-response-class.js +0 -15
  185. package/dist/models/update-data-report-request-dto.d.ts +0 -61
  186. package/dist/models/update-data-report-request-dto.js +0 -15
  187. package/dist/models/update-data-report-response-class.d.ts +0 -25
  188. package/dist/models/update-data-report-response-class.js +0 -15
  189. package/dist/models/update-report-request-dto.d.ts +0 -55
  190. package/dist/models/update-report-request-dto.js +0 -22
  191. package/dist/models/update-report-response-class.d.ts +0 -25
  192. package/dist/models/update-report-response-class.js +0 -15
  193. package/dist/models/update-scenario-analysis-request-dto.d.ts +0 -74
  194. package/dist/models/update-scenario-analysis-request-dto.js +0 -22
  195. package/dist/models/update-scenario-analysis-response-class.d.ts +0 -25
  196. package/dist/models/update-scenario-analysis-response-class.js +0 -15
  197. package/models/alert-class.ts +0 -96
  198. package/models/alert-history-class.ts +0 -114
  199. package/models/compare-tariffs-request-dto.ts +0 -46
  200. package/models/compare-tariffs-response-class.ts +0 -37
  201. package/models/condition-dto.ts +0 -52
  202. package/models/create-alert-request-dto.ts +0 -89
  203. package/models/create-dashboard-request-dto.ts +0 -81
  204. package/models/create-data-report-request-dto.ts +0 -67
  205. package/models/create-data-report-response-class.ts +0 -31
  206. package/models/create-report-request-dto.ts +0 -58
  207. package/models/create-report-response-class.ts +0 -31
  208. package/models/create-scenario-analysis-request-dto.ts +0 -83
  209. package/models/create-scenario-analysis-response-class.ts +0 -31
  210. package/models/dashboard-class.ts +0 -84
  211. package/models/data-report-class.ts +0 -85
  212. package/models/data-report-filter-class.ts +0 -78
  213. package/models/data-report-filter-dto.ts +0 -54
  214. package/models/data-report-filter-single-value-dto.ts +0 -48
  215. package/models/data-report-filter-value-dto.ts +0 -37
  216. package/models/get-alert-response-class.ts +0 -31
  217. package/models/get-dashboard-response-class.ts +0 -31
  218. package/models/get-data-report-response-class.ts +0 -31
  219. package/models/get-report-response-class.ts +0 -31
  220. package/models/get-scenario-analysis-response-class.ts +0 -31
  221. package/models/grouped-tariff-class.ts +0 -36
  222. package/models/list-alert-history-response-class.ts +0 -37
  223. package/models/list-alerts-response-class.ts +0 -37
  224. package/models/list-channels-response-class.ts +0 -31
  225. package/models/list-dashboards-response-class.ts +0 -37
  226. package/models/list-insurance-companies-response-class.ts +0 -31
  227. package/models/list-report-history-response-class.ts +0 -37
  228. package/models/list-reports-response-class.ts +0 -37
  229. package/models/list-scenario-analyses-response-class.ts +0 -37
  230. package/models/list-scenario-analysis-dates-response-class.ts +0 -31
  231. package/models/list-tariff-insurance-companies-response-class.ts +0 -31
  232. package/models/list-tariffs-response-class.ts +0 -31
  233. package/models/manage-subscription-response-class.ts +0 -31
  234. package/models/report-class.ts +0 -72
  235. package/models/report-history-class.ts +0 -54
  236. package/models/run-data-report-request-dto.ts +0 -37
  237. package/models/run-data-report-response-class.ts +0 -30
  238. package/models/scenario-analysis-class.ts +0 -114
  239. package/models/scenario-analysis-date-response-class.ts +0 -42
  240. package/models/set-tenant-setting-response-class.ts +0 -42
  241. package/models/update-alert-request-dto.ts +0 -81
  242. package/models/update-alert-response-class.ts +0 -31
  243. package/models/update-dashboard-request-dto.ts +0 -87
  244. package/models/update-dashboard-response-class.ts +0 -31
  245. package/models/update-data-report-request-dto.ts +0 -67
  246. package/models/update-data-report-response-class.ts +0 -31
  247. package/models/update-report-request-dto.ts +0 -64
  248. package/models/update-report-response-class.ts +0 -31
  249. package/models/update-scenario-analysis-request-dto.ts +0 -83
  250. package/models/update-scenario-analysis-response-class.ts +0 -31
  251. /package/dist/models/{alert-class.js → batch-delete-response-class.js} +0 -0
  252. /package/dist/models/{alert-history-class.js → delete-response-class.js} +0 -0
  253. /package/dist/models/{channel-response-class.js → disable-users-response-class.js} +0 -0
  254. /package/dist/models/{compare-tariffs-response-class.js → enable-users-response-class.js} +0 -0
  255. /package/dist/models/{create-alert-response-class.js → get-organization-response-class.js} +0 -0
  256. /package/dist/models/{create-dashboard-response-class.js → invite-org-request-dto.js} +0 -0
  257. /package/dist/models/{create-data-report-request-dto.js → invite-users-response-class.js} +0 -0
  258. /package/dist/models/{create-data-report-response-class.js → list-org-invitations-response-class.js} +0 -0
  259. /package/dist/models/{create-report-response-class.js → list-organizations-response-class.js} +0 -0
  260. /package/dist/models/{create-scenario-analysis-response-class.js → org-invitation-class.js} +0 -0
  261. /package/dist/models/{dashboard-class.js → org-invitation-response-class.js} +0 -0
  262. /package/dist/models/{data-report-class.js → organization-class.js} +0 -0
  263. /package/dist/models/{data-report-filter-class.js → update-organization-request-dto-rest.js} +0 -0
  264. /package/dist/models/{data-report-filter-dto.js → update-organization-response-class.js} +0 -0
@@ -78,7 +78,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
78
78
  return (mod && mod.__esModule) ? mod : { "default": mod };
79
79
  };
80
80
  Object.defineProperty(exports, "__esModule", { value: true });
81
- exports.UserSubscriptionApi = exports.UserSubscriptionApiFactory = exports.UserSubscriptionApiFp = exports.UserSubscriptionApiAxiosParamCreator = void 0;
81
+ exports.InviteOrganizationsApi = exports.InviteOrganizationsApiFactory = exports.InviteOrganizationsApiFp = exports.InviteOrganizationsApiAxiosParamCreator = void 0;
82
82
  var axios_1 = __importDefault(require("axios"));
83
83
  // Some imports not used depending on template conditions
84
84
  // @ts-ignore
@@ -90,39 +90,36 @@ var base_1 = require("../base");
90
90
  var url_1 = require("url");
91
91
  var FormData = require('form-data');
92
92
  /**
93
- * UserSubscriptionApi - axios parameter creator
93
+ * InviteOrganizationsApi - axios parameter creator
94
94
  * @export
95
95
  */
96
- var UserSubscriptionApiAxiosParamCreator = function (configuration) {
96
+ var InviteOrganizationsApiAxiosParamCreator = function (configuration) {
97
97
  var _this = this;
98
98
  return {
99
99
  /**
100
- * 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.
101
- * @summary List user subscriptions
102
- * @param {string} [authorization] Bearer Token
103
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
104
- * @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
105
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
106
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
107
- * @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.
108
- * @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.
100
+ * This sends an email to invite an organization.
101
+ * @summary Invite an organization
102
+ * @param {InviteOrgRequestDto} inviteOrgRequestDto
103
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
109
104
  * @param {*} [options] Override http request option.
110
105
  * @throws {RequiredError}
111
106
  */
112
- listInvites: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
107
+ inviteOrg: function (inviteOrgRequestDto, authorization, options) {
113
108
  if (options === void 0) { options = {}; }
114
109
  return __awaiter(_this, void 0, void 0, function () {
115
110
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
116
111
  return __generator(this, function (_a) {
117
112
  switch (_a.label) {
118
113
  case 0:
119
- localVarPath = "/tenantservice/v1/subscriptions";
114
+ // verify required parameter 'inviteOrgRequestDto' is not null or undefined
115
+ (0, common_1.assertParamExists)('inviteOrg', 'inviteOrgRequestDto', inviteOrgRequestDto);
116
+ localVarPath = "/tenantservice/v1/invitations/organizations";
120
117
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
121
118
  if (configuration) {
122
119
  baseOptions = configuration.baseOptions;
123
120
  baseAccessToken = configuration.accessToken;
124
121
  }
125
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
122
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
126
123
  localVarHeaderParameter = {};
127
124
  localVarQueryParameter = {};
128
125
  // authentication bearer required
@@ -132,30 +129,14 @@ var UserSubscriptionApiAxiosParamCreator = function (configuration) {
132
129
  // authentication bearer required
133
130
  // http bearer authentication required
134
131
  _a.sent();
135
- if (pageSize !== undefined) {
136
- localVarQueryParameter['pageSize'] = pageSize;
137
- }
138
- if (pageToken !== undefined) {
139
- localVarQueryParameter['pageToken'] = pageToken;
140
- }
141
- if (filter !== undefined) {
142
- localVarQueryParameter['filter'] = filter;
143
- }
144
- if (search !== undefined) {
145
- localVarQueryParameter['search'] = search;
146
- }
147
- if (order !== undefined) {
148
- localVarQueryParameter['order'] = order;
149
- }
150
- if (expand !== undefined) {
151
- localVarQueryParameter['expand'] = expand;
152
- }
153
132
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
154
133
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
155
134
  }
135
+ localVarHeaderParameter['Content-Type'] = 'application/json';
156
136
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
157
137
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
158
138
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
139
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(inviteOrgRequestDto, localVarRequestOptions, configuration);
159
140
  return [2 /*return*/, {
160
141
  url: (0, common_1.toPathString)(localVarUrlObj),
161
142
  options: localVarRequestOptions,
@@ -165,36 +146,32 @@ var UserSubscriptionApiAxiosParamCreator = function (configuration) {
165
146
  });
166
147
  },
167
148
  /**
168
- *
169
- * @param {string} entity
170
- * @param {number} entityId
171
- * @param {ManageSubscriptionRequestDto} manageSubscriptionRequestDto
172
- * @param {string} [authorization] Bearer Token
149
+ * 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.
150
+ * @summary List org invitations
151
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
152
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
153
+ * @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
154
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
155
+ * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
156
+ * @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.
157
+ * @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.
173
158
  * @param {*} [options] Override http request option.
174
159
  * @throws {RequiredError}
175
160
  */
176
- manageSubscription: function (entity, entityId, manageSubscriptionRequestDto, authorization, options) {
161
+ listOrgInvitations: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
177
162
  if (options === void 0) { options = {}; }
178
163
  return __awaiter(_this, void 0, void 0, function () {
179
164
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
180
165
  return __generator(this, function (_a) {
181
166
  switch (_a.label) {
182
167
  case 0:
183
- // verify required parameter 'entity' is not null or undefined
184
- (0, common_1.assertParamExists)('manageSubscription', 'entity', entity);
185
- // verify required parameter 'entityId' is not null or undefined
186
- (0, common_1.assertParamExists)('manageSubscription', 'entityId', entityId);
187
- // verify required parameter 'manageSubscriptionRequestDto' is not null or undefined
188
- (0, common_1.assertParamExists)('manageSubscription', 'manageSubscriptionRequestDto', manageSubscriptionRequestDto);
189
- localVarPath = "/tenantservice/v1/subscriptions/{entity}/{entityId}"
190
- .replace("{".concat("entity", "}"), encodeURIComponent(String(entity)))
191
- .replace("{".concat("entityId", "}"), encodeURIComponent(String(entityId)));
168
+ localVarPath = "/tenantservice/v1/invitations/organizations";
192
169
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
193
170
  if (configuration) {
194
171
  baseOptions = configuration.baseOptions;
195
172
  baseAccessToken = configuration.accessToken;
196
173
  }
197
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
174
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
198
175
  localVarHeaderParameter = {};
199
176
  localVarQueryParameter = {};
200
177
  // authentication bearer required
@@ -204,14 +181,30 @@ var UserSubscriptionApiAxiosParamCreator = function (configuration) {
204
181
  // authentication bearer required
205
182
  // http bearer authentication required
206
183
  _a.sent();
184
+ if (pageSize !== undefined) {
185
+ localVarQueryParameter['pageSize'] = pageSize;
186
+ }
187
+ if (pageToken !== undefined) {
188
+ localVarQueryParameter['pageToken'] = pageToken;
189
+ }
190
+ if (filter !== undefined) {
191
+ localVarQueryParameter['filter'] = filter;
192
+ }
193
+ if (search !== undefined) {
194
+ localVarQueryParameter['search'] = search;
195
+ }
196
+ if (order !== undefined) {
197
+ localVarQueryParameter['order'] = order;
198
+ }
199
+ if (expand !== undefined) {
200
+ localVarQueryParameter['expand'] = expand;
201
+ }
207
202
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
208
203
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
209
204
  }
210
- localVarHeaderParameter['Content-Type'] = 'application/json';
211
205
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
212
206
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
213
207
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
214
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(manageSubscriptionRequestDto, localVarRequestOptions, configuration);
215
208
  return [2 /*return*/, {
216
209
  url: (0, common_1.toPathString)(localVarUrlObj),
217
210
  options: localVarRequestOptions,
@@ -222,33 +215,28 @@ var UserSubscriptionApiAxiosParamCreator = function (configuration) {
222
215
  },
223
216
  };
224
217
  };
225
- exports.UserSubscriptionApiAxiosParamCreator = UserSubscriptionApiAxiosParamCreator;
218
+ exports.InviteOrganizationsApiAxiosParamCreator = InviteOrganizationsApiAxiosParamCreator;
226
219
  /**
227
- * UserSubscriptionApi - functional programming interface
220
+ * InviteOrganizationsApi - functional programming interface
228
221
  * @export
229
222
  */
230
- var UserSubscriptionApiFp = function (configuration) {
231
- var localVarAxiosParamCreator = (0, exports.UserSubscriptionApiAxiosParamCreator)(configuration);
223
+ var InviteOrganizationsApiFp = function (configuration) {
224
+ var localVarAxiosParamCreator = (0, exports.InviteOrganizationsApiAxiosParamCreator)(configuration);
232
225
  return {
233
226
  /**
234
- * 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.
235
- * @summary List user subscriptions
236
- * @param {string} [authorization] Bearer Token
237
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
238
- * @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
239
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
240
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
241
- * @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.
242
- * @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.
227
+ * This sends an email to invite an organization.
228
+ * @summary Invite an organization
229
+ * @param {InviteOrgRequestDto} inviteOrgRequestDto
230
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
243
231
  * @param {*} [options] Override http request option.
244
232
  * @throws {RequiredError}
245
233
  */
246
- listInvites: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
234
+ inviteOrg: function (inviteOrgRequestDto, authorization, options) {
247
235
  return __awaiter(this, void 0, void 0, function () {
248
236
  var localVarAxiosArgs;
249
237
  return __generator(this, function (_a) {
250
238
  switch (_a.label) {
251
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listInvites(authorization, pageSize, pageToken, filter, search, order, expand, options)];
239
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.inviteOrg(inviteOrgRequestDto, authorization, options)];
252
240
  case 1:
253
241
  localVarAxiosArgs = _a.sent();
254
242
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -257,20 +245,24 @@ var UserSubscriptionApiFp = function (configuration) {
257
245
  });
258
246
  },
259
247
  /**
260
- *
261
- * @param {string} entity
262
- * @param {number} entityId
263
- * @param {ManageSubscriptionRequestDto} manageSubscriptionRequestDto
264
- * @param {string} [authorization] Bearer Token
248
+ * 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.
249
+ * @summary List org invitations
250
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
251
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
252
+ * @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
253
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
254
+ * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
255
+ * @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.
256
+ * @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.
265
257
  * @param {*} [options] Override http request option.
266
258
  * @throws {RequiredError}
267
259
  */
268
- manageSubscription: function (entity, entityId, manageSubscriptionRequestDto, authorization, options) {
260
+ listOrgInvitations: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
269
261
  return __awaiter(this, void 0, void 0, function () {
270
262
  var localVarAxiosArgs;
271
263
  return __generator(this, function (_a) {
272
264
  switch (_a.label) {
273
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.manageSubscription(entity, entityId, manageSubscriptionRequestDto, authorization, options)];
265
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listOrgInvitations(authorization, pageSize, pageToken, filter, search, order, expand, options)];
274
266
  case 1:
275
267
  localVarAxiosArgs = _a.sent();
276
268
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -280,18 +272,29 @@ var UserSubscriptionApiFp = function (configuration) {
280
272
  },
281
273
  };
282
274
  };
283
- exports.UserSubscriptionApiFp = UserSubscriptionApiFp;
275
+ exports.InviteOrganizationsApiFp = InviteOrganizationsApiFp;
284
276
  /**
285
- * UserSubscriptionApi - factory interface
277
+ * InviteOrganizationsApi - factory interface
286
278
  * @export
287
279
  */
288
- var UserSubscriptionApiFactory = function (configuration, basePath, axios) {
289
- var localVarFp = (0, exports.UserSubscriptionApiFp)(configuration);
280
+ var InviteOrganizationsApiFactory = function (configuration, basePath, axios) {
281
+ var localVarFp = (0, exports.InviteOrganizationsApiFp)(configuration);
290
282
  return {
291
283
  /**
292
- * 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.
293
- * @summary List user subscriptions
294
- * @param {string} [authorization] Bearer Token
284
+ * This sends an email to invite an organization.
285
+ * @summary Invite an organization
286
+ * @param {InviteOrgRequestDto} inviteOrgRequestDto
287
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
288
+ * @param {*} [options] Override http request option.
289
+ * @throws {RequiredError}
290
+ */
291
+ inviteOrg: function (inviteOrgRequestDto, authorization, options) {
292
+ return localVarFp.inviteOrg(inviteOrgRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
293
+ },
294
+ /**
295
+ * 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.
296
+ * @summary List org invitations
297
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
295
298
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
296
299
  * @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
297
300
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -301,59 +304,48 @@ var UserSubscriptionApiFactory = function (configuration, basePath, axios) {
301
304
  * @param {*} [options] Override http request option.
302
305
  * @throws {RequiredError}
303
306
  */
304
- listInvites: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
305
- return localVarFp.listInvites(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
306
- },
307
- /**
308
- *
309
- * @param {string} entity
310
- * @param {number} entityId
311
- * @param {ManageSubscriptionRequestDto} manageSubscriptionRequestDto
312
- * @param {string} [authorization] Bearer Token
313
- * @param {*} [options] Override http request option.
314
- * @throws {RequiredError}
315
- */
316
- manageSubscription: function (entity, entityId, manageSubscriptionRequestDto, authorization, options) {
317
- return localVarFp.manageSubscription(entity, entityId, manageSubscriptionRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
307
+ listOrgInvitations: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
308
+ return localVarFp.listOrgInvitations(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
318
309
  },
319
310
  };
320
311
  };
321
- exports.UserSubscriptionApiFactory = UserSubscriptionApiFactory;
312
+ exports.InviteOrganizationsApiFactory = InviteOrganizationsApiFactory;
322
313
  /**
323
- * UserSubscriptionApi - object-oriented interface
314
+ * InviteOrganizationsApi - object-oriented interface
324
315
  * @export
325
- * @class UserSubscriptionApi
316
+ * @class InviteOrganizationsApi
326
317
  * @extends {BaseAPI}
327
318
  */
328
- var UserSubscriptionApi = /** @class */ (function (_super) {
329
- __extends(UserSubscriptionApi, _super);
330
- function UserSubscriptionApi() {
319
+ var InviteOrganizationsApi = /** @class */ (function (_super) {
320
+ __extends(InviteOrganizationsApi, _super);
321
+ function InviteOrganizationsApi() {
331
322
  return _super !== null && _super.apply(this, arguments) || this;
332
323
  }
333
324
  /**
334
- * 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.
335
- * @summary List user subscriptions
336
- * @param {UserSubscriptionApiListInvitesRequest} requestParameters Request parameters.
325
+ * This sends an email to invite an organization.
326
+ * @summary Invite an organization
327
+ * @param {InviteOrganizationsApiInviteOrgRequest} requestParameters Request parameters.
337
328
  * @param {*} [options] Override http request option.
338
329
  * @throws {RequiredError}
339
- * @memberof UserSubscriptionApi
330
+ * @memberof InviteOrganizationsApi
340
331
  */
341
- UserSubscriptionApi.prototype.listInvites = function (requestParameters, options) {
332
+ InviteOrganizationsApi.prototype.inviteOrg = function (requestParameters, options) {
342
333
  var _this = this;
343
- if (requestParameters === void 0) { requestParameters = {}; }
344
- return (0, exports.UserSubscriptionApiFp)(this.configuration).listInvites(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
334
+ return (0, exports.InviteOrganizationsApiFp)(this.configuration).inviteOrg(requestParameters.inviteOrgRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
345
335
  };
346
336
  /**
347
- *
348
- * @param {UserSubscriptionApiManageSubscriptionRequest} requestParameters Request parameters.
337
+ * 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.
338
+ * @summary List org invitations
339
+ * @param {InviteOrganizationsApiListOrgInvitationsRequest} requestParameters Request parameters.
349
340
  * @param {*} [options] Override http request option.
350
341
  * @throws {RequiredError}
351
- * @memberof UserSubscriptionApi
342
+ * @memberof InviteOrganizationsApi
352
343
  */
353
- UserSubscriptionApi.prototype.manageSubscription = function (requestParameters, options) {
344
+ InviteOrganizationsApi.prototype.listOrgInvitations = function (requestParameters, options) {
354
345
  var _this = this;
355
- return (0, exports.UserSubscriptionApiFp)(this.configuration).manageSubscription(requestParameters.entity, requestParameters.entityId, requestParameters.manageSubscriptionRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
346
+ if (requestParameters === void 0) { requestParameters = {}; }
347
+ return (0, exports.InviteOrganizationsApiFp)(this.configuration).listOrgInvitations(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
356
348
  };
357
- return UserSubscriptionApi;
349
+ return InviteOrganizationsApi;
358
350
  }(base_1.BaseAPI));
359
- exports.UserSubscriptionApi = UserSubscriptionApi;
351
+ exports.InviteOrganizationsApi = InviteOrganizationsApi;