@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
@@ -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.SettingsApi = exports.SettingsApiFactory = exports.SettingsApiFp = exports.SettingsApiAxiosParamCreator = void 0;
81
+ exports.OrganizationsApi = exports.OrganizationsApiFactory = exports.OrganizationsApiFp = exports.OrganizationsApiAxiosParamCreator = 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,30 +90,31 @@ var base_1 = require("../base");
90
90
  var url_1 = require("url");
91
91
  var FormData = require('form-data');
92
92
  /**
93
- * SettingsApi - axios parameter creator
93
+ * OrganizationsApi - axios parameter creator
94
94
  * @export
95
95
  */
96
- var SettingsApiAxiosParamCreator = function (configuration) {
96
+ var OrganizationsApiAxiosParamCreator = function (configuration) {
97
97
  var _this = this;
98
98
  return {
99
99
  /**
100
- *
101
- * @summary Get tenant settings
102
- * @param {string} keys
103
- * @param {string} [authorization] Bearer Token
100
+ * Get Organization by code
101
+ * @summary Retrieve the Organization
102
+ * @param {string} code
103
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
104
104
  * @param {*} [options] Override http request option.
105
105
  * @throws {RequiredError}
106
106
  */
107
- getTenantSettings: function (keys, authorization, options) {
107
+ getOrganization: function (code, authorization, options) {
108
108
  if (options === void 0) { options = {}; }
109
109
  return __awaiter(_this, void 0, void 0, function () {
110
110
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
111
111
  return __generator(this, function (_a) {
112
112
  switch (_a.label) {
113
113
  case 0:
114
- // verify required parameter 'keys' is not null or undefined
115
- (0, common_1.assertParamExists)('getTenantSettings', 'keys', keys);
116
- localVarPath = "/tenantservice/v1/settings/tenant";
114
+ // verify required parameter 'code' is not null or undefined
115
+ (0, common_1.assertParamExists)('getOrganization', 'code', code);
116
+ localVarPath = "/tenantservice/v1/organizations/{code}"
117
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
117
118
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
118
119
  if (configuration) {
119
120
  baseOptions = configuration.baseOptions;
@@ -129,9 +130,6 @@ var SettingsApiAxiosParamCreator = function (configuration) {
129
130
  // authentication bearer required
130
131
  // http bearer authentication required
131
132
  _a.sent();
132
- if (keys !== undefined) {
133
- localVarQueryParameter['keys'] = keys;
134
- }
135
133
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
136
134
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
137
135
  }
@@ -147,23 +145,26 @@ var SettingsApiAxiosParamCreator = function (configuration) {
147
145
  });
148
146
  },
149
147
  /**
150
- *
151
- * @summary Get user settings
152
- * @param {string} keys
153
- * @param {string} [authorization] Bearer Token
148
+ * This will fetch list of organizations
149
+ * @summary List organizations
150
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
151
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
152
+ * @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.
153
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
154
+ * @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.
155
+ * @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.
156
+ * @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.
154
157
  * @param {*} [options] Override http request option.
155
158
  * @throws {RequiredError}
156
159
  */
157
- getUserSettings: function (keys, authorization, options) {
160
+ listOrganizations: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
158
161
  if (options === void 0) { options = {}; }
159
162
  return __awaiter(_this, void 0, void 0, function () {
160
163
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
161
164
  return __generator(this, function (_a) {
162
165
  switch (_a.label) {
163
166
  case 0:
164
- // verify required parameter 'keys' is not null or undefined
165
- (0, common_1.assertParamExists)('getUserSettings', 'keys', keys);
166
- localVarPath = "/tenantservice/v1/settings/user";
167
+ localVarPath = "/tenantservice/v1/organizations";
167
168
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
168
169
  if (configuration) {
169
170
  baseOptions = configuration.baseOptions;
@@ -179,64 +180,30 @@ var SettingsApiAxiosParamCreator = function (configuration) {
179
180
  // authentication bearer required
180
181
  // http bearer authentication required
181
182
  _a.sent();
182
- if (keys !== undefined) {
183
- localVarQueryParameter['keys'] = keys;
183
+ if (pageSize !== undefined) {
184
+ localVarQueryParameter['pageSize'] = pageSize;
184
185
  }
185
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
186
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
186
+ if (pageToken !== undefined) {
187
+ localVarQueryParameter['pageToken'] = pageToken;
187
188
  }
188
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
189
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
190
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
191
- return [2 /*return*/, {
192
- url: (0, common_1.toPathString)(localVarUrlObj),
193
- options: localVarRequestOptions,
194
- }];
195
- }
196
- });
197
- });
198
- },
199
- /**
200
- * Creates new setting in EMIL Insurance Suite for tenants. Among other things, tenants can add multiple settings to customize their workspace on EIS.
201
- * @summary Create the tenant setting
202
- * @param {SetSettingRequestDto} setSettingRequestDto
203
- * @param {string} [authorization] Bearer Token
204
- * @param {*} [options] Override http request option.
205
- * @throws {RequiredError}
206
- */
207
- setTenantSetting: function (setSettingRequestDto, authorization, options) {
208
- if (options === void 0) { options = {}; }
209
- return __awaiter(_this, void 0, void 0, function () {
210
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
211
- return __generator(this, function (_a) {
212
- switch (_a.label) {
213
- case 0:
214
- // verify required parameter 'setSettingRequestDto' is not null or undefined
215
- (0, common_1.assertParamExists)('setTenantSetting', 'setSettingRequestDto', setSettingRequestDto);
216
- localVarPath = "/tenantservice/v1/settings/tenant";
217
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
218
- if (configuration) {
219
- baseOptions = configuration.baseOptions;
220
- baseAccessToken = configuration.accessToken;
189
+ if (filter !== undefined) {
190
+ localVarQueryParameter['filter'] = filter;
191
+ }
192
+ if (search !== undefined) {
193
+ localVarQueryParameter['search'] = search;
194
+ }
195
+ if (order !== undefined) {
196
+ localVarQueryParameter['order'] = order;
197
+ }
198
+ if (expand !== undefined) {
199
+ localVarQueryParameter['expand'] = expand;
221
200
  }
222
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
223
- localVarHeaderParameter = {};
224
- localVarQueryParameter = {};
225
- // authentication bearer required
226
- // http bearer authentication required
227
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
228
- case 1:
229
- // authentication bearer required
230
- // http bearer authentication required
231
- _a.sent();
232
201
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
233
202
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
234
203
  }
235
- localVarHeaderParameter['Content-Type'] = 'application/json';
236
204
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
237
205
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
238
206
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
239
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(setSettingRequestDto, localVarRequestOptions, configuration);
240
207
  return [2 /*return*/, {
241
208
  url: (0, common_1.toPathString)(localVarUrlObj),
242
209
  options: localVarRequestOptions,
@@ -246,29 +213,33 @@ var SettingsApiAxiosParamCreator = function (configuration) {
246
213
  });
247
214
  },
248
215
  /**
249
- * Creates new setting in EMIL Insurance Suite for users. Among other things, users can add multiple settings to customize their workspace on EIS.
250
- * @summary Create the user setting
251
- * @param {SetSettingRequestDto} setSettingRequestDto
252
- * @param {string} [authorization] Bearer Token
216
+ * Update organization data
217
+ * @summary Update the Organization
218
+ * @param {string} code
219
+ * @param {object} body
220
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
253
221
  * @param {*} [options] Override http request option.
254
222
  * @throws {RequiredError}
255
223
  */
256
- setUserSetting: function (setSettingRequestDto, authorization, options) {
224
+ updateOrganization: function (code, body, authorization, options) {
257
225
  if (options === void 0) { options = {}; }
258
226
  return __awaiter(_this, void 0, void 0, function () {
259
227
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
260
228
  return __generator(this, function (_a) {
261
229
  switch (_a.label) {
262
230
  case 0:
263
- // verify required parameter 'setSettingRequestDto' is not null or undefined
264
- (0, common_1.assertParamExists)('setUserSetting', 'setSettingRequestDto', setSettingRequestDto);
265
- localVarPath = "/tenantservice/v1/settings/user";
231
+ // verify required parameter 'code' is not null or undefined
232
+ (0, common_1.assertParamExists)('updateOrganization', 'code', code);
233
+ // verify required parameter 'body' is not null or undefined
234
+ (0, common_1.assertParamExists)('updateOrganization', 'body', body);
235
+ localVarPath = "/tenantservice/v1/organizations/{code}"
236
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
266
237
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
267
238
  if (configuration) {
268
239
  baseOptions = configuration.baseOptions;
269
240
  baseAccessToken = configuration.accessToken;
270
241
  }
271
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
242
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
272
243
  localVarHeaderParameter = {};
273
244
  localVarQueryParameter = {};
274
245
  // authentication bearer required
@@ -285,7 +256,7 @@ var SettingsApiAxiosParamCreator = function (configuration) {
285
256
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
286
257
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
287
258
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
288
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(setSettingRequestDto, localVarRequestOptions, configuration);
259
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
289
260
  return [2 /*return*/, {
290
261
  url: (0, common_1.toPathString)(localVarUrlObj),
291
262
  options: localVarRequestOptions,
@@ -296,28 +267,28 @@ var SettingsApiAxiosParamCreator = function (configuration) {
296
267
  },
297
268
  };
298
269
  };
299
- exports.SettingsApiAxiosParamCreator = SettingsApiAxiosParamCreator;
270
+ exports.OrganizationsApiAxiosParamCreator = OrganizationsApiAxiosParamCreator;
300
271
  /**
301
- * SettingsApi - functional programming interface
272
+ * OrganizationsApi - functional programming interface
302
273
  * @export
303
274
  */
304
- var SettingsApiFp = function (configuration) {
305
- var localVarAxiosParamCreator = (0, exports.SettingsApiAxiosParamCreator)(configuration);
275
+ var OrganizationsApiFp = function (configuration) {
276
+ var localVarAxiosParamCreator = (0, exports.OrganizationsApiAxiosParamCreator)(configuration);
306
277
  return {
307
278
  /**
308
- *
309
- * @summary Get tenant settings
310
- * @param {string} keys
311
- * @param {string} [authorization] Bearer Token
279
+ * Get Organization by code
280
+ * @summary Retrieve the Organization
281
+ * @param {string} code
282
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
312
283
  * @param {*} [options] Override http request option.
313
284
  * @throws {RequiredError}
314
285
  */
315
- getTenantSettings: function (keys, authorization, options) {
286
+ getOrganization: function (code, authorization, options) {
316
287
  return __awaiter(this, void 0, void 0, function () {
317
288
  var localVarAxiosArgs;
318
289
  return __generator(this, function (_a) {
319
290
  switch (_a.label) {
320
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getTenantSettings(keys, authorization, options)];
291
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getOrganization(code, authorization, options)];
321
292
  case 1:
322
293
  localVarAxiosArgs = _a.sent();
323
294
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -326,19 +297,24 @@ var SettingsApiFp = function (configuration) {
326
297
  });
327
298
  },
328
299
  /**
329
- *
330
- * @summary Get user settings
331
- * @param {string} keys
332
- * @param {string} [authorization] Bearer Token
300
+ * This will fetch list of organizations
301
+ * @summary List organizations
302
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
303
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
304
+ * @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.
305
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
306
+ * @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.
307
+ * @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.
308
+ * @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.
333
309
  * @param {*} [options] Override http request option.
334
310
  * @throws {RequiredError}
335
311
  */
336
- getUserSettings: function (keys, authorization, options) {
312
+ listOrganizations: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
337
313
  return __awaiter(this, void 0, void 0, function () {
338
314
  var localVarAxiosArgs;
339
315
  return __generator(this, function (_a) {
340
316
  switch (_a.label) {
341
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getUserSettings(keys, authorization, options)];
317
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listOrganizations(authorization, pageSize, pageToken, filter, search, order, expand, options)];
342
318
  case 1:
343
319
  localVarAxiosArgs = _a.sent();
344
320
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -347,40 +323,20 @@ var SettingsApiFp = function (configuration) {
347
323
  });
348
324
  },
349
325
  /**
350
- * Creates new setting in EMIL Insurance Suite for tenants. Among other things, tenants can add multiple settings to customize their workspace on EIS.
351
- * @summary Create the tenant setting
352
- * @param {SetSettingRequestDto} setSettingRequestDto
353
- * @param {string} [authorization] Bearer Token
326
+ * Update organization data
327
+ * @summary Update the Organization
328
+ * @param {string} code
329
+ * @param {object} body
330
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
354
331
  * @param {*} [options] Override http request option.
355
332
  * @throws {RequiredError}
356
333
  */
357
- setTenantSetting: function (setSettingRequestDto, authorization, options) {
334
+ updateOrganization: function (code, body, authorization, options) {
358
335
  return __awaiter(this, void 0, void 0, function () {
359
336
  var localVarAxiosArgs;
360
337
  return __generator(this, function (_a) {
361
338
  switch (_a.label) {
362
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.setTenantSetting(setSettingRequestDto, authorization, options)];
363
- case 1:
364
- localVarAxiosArgs = _a.sent();
365
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
366
- }
367
- });
368
- });
369
- },
370
- /**
371
- * Creates new setting in EMIL Insurance Suite for users. Among other things, users can add multiple settings to customize their workspace on EIS.
372
- * @summary Create the user setting
373
- * @param {SetSettingRequestDto} setSettingRequestDto
374
- * @param {string} [authorization] Bearer Token
375
- * @param {*} [options] Override http request option.
376
- * @throws {RequiredError}
377
- */
378
- setUserSetting: function (setSettingRequestDto, authorization, options) {
379
- return __awaiter(this, void 0, void 0, function () {
380
- var localVarAxiosArgs;
381
- return __generator(this, function (_a) {
382
- switch (_a.label) {
383
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.setUserSetting(setSettingRequestDto, authorization, options)];
339
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateOrganization(code, body, authorization, options)];
384
340
  case 1:
385
341
  localVarAxiosArgs = _a.sent();
386
342
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -390,120 +346,104 @@ var SettingsApiFp = function (configuration) {
390
346
  },
391
347
  };
392
348
  };
393
- exports.SettingsApiFp = SettingsApiFp;
349
+ exports.OrganizationsApiFp = OrganizationsApiFp;
394
350
  /**
395
- * SettingsApi - factory interface
351
+ * OrganizationsApi - factory interface
396
352
  * @export
397
353
  */
398
- var SettingsApiFactory = function (configuration, basePath, axios) {
399
- var localVarFp = (0, exports.SettingsApiFp)(configuration);
354
+ var OrganizationsApiFactory = function (configuration, basePath, axios) {
355
+ var localVarFp = (0, exports.OrganizationsApiFp)(configuration);
400
356
  return {
401
357
  /**
402
- *
403
- * @summary Get tenant settings
404
- * @param {string} keys
405
- * @param {string} [authorization] Bearer Token
406
- * @param {*} [options] Override http request option.
407
- * @throws {RequiredError}
408
- */
409
- getTenantSettings: function (keys, authorization, options) {
410
- return localVarFp.getTenantSettings(keys, authorization, options).then(function (request) { return request(axios, basePath); });
411
- },
412
- /**
413
- *
414
- * @summary Get user settings
415
- * @param {string} keys
416
- * @param {string} [authorization] Bearer Token
358
+ * Get Organization by code
359
+ * @summary Retrieve the Organization
360
+ * @param {string} code
361
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
417
362
  * @param {*} [options] Override http request option.
418
363
  * @throws {RequiredError}
419
364
  */
420
- getUserSettings: function (keys, authorization, options) {
421
- return localVarFp.getUserSettings(keys, authorization, options).then(function (request) { return request(axios, basePath); });
365
+ getOrganization: function (code, authorization, options) {
366
+ return localVarFp.getOrganization(code, authorization, options).then(function (request) { return request(axios, basePath); });
422
367
  },
423
368
  /**
424
- * Creates new setting in EMIL Insurance Suite for tenants. Among other things, tenants can add multiple settings to customize their workspace on EIS.
425
- * @summary Create the tenant setting
426
- * @param {SetSettingRequestDto} setSettingRequestDto
427
- * @param {string} [authorization] Bearer Token
369
+ * This will fetch list of organizations
370
+ * @summary List organizations
371
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
372
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
373
+ * @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.
374
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
375
+ * @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.
376
+ * @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.
377
+ * @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.
428
378
  * @param {*} [options] Override http request option.
429
379
  * @throws {RequiredError}
430
380
  */
431
- setTenantSetting: function (setSettingRequestDto, authorization, options) {
432
- return localVarFp.setTenantSetting(setSettingRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
381
+ listOrganizations: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
382
+ return localVarFp.listOrganizations(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
433
383
  },
434
384
  /**
435
- * Creates new setting in EMIL Insurance Suite for users. Among other things, users can add multiple settings to customize their workspace on EIS.
436
- * @summary Create the user setting
437
- * @param {SetSettingRequestDto} setSettingRequestDto
438
- * @param {string} [authorization] Bearer Token
385
+ * Update organization data
386
+ * @summary Update the Organization
387
+ * @param {string} code
388
+ * @param {object} body
389
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
439
390
  * @param {*} [options] Override http request option.
440
391
  * @throws {RequiredError}
441
392
  */
442
- setUserSetting: function (setSettingRequestDto, authorization, options) {
443
- return localVarFp.setUserSetting(setSettingRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
393
+ updateOrganization: function (code, body, authorization, options) {
394
+ return localVarFp.updateOrganization(code, body, authorization, options).then(function (request) { return request(axios, basePath); });
444
395
  },
445
396
  };
446
397
  };
447
- exports.SettingsApiFactory = SettingsApiFactory;
398
+ exports.OrganizationsApiFactory = OrganizationsApiFactory;
448
399
  /**
449
- * SettingsApi - object-oriented interface
400
+ * OrganizationsApi - object-oriented interface
450
401
  * @export
451
- * @class SettingsApi
402
+ * @class OrganizationsApi
452
403
  * @extends {BaseAPI}
453
404
  */
454
- var SettingsApi = /** @class */ (function (_super) {
455
- __extends(SettingsApi, _super);
456
- function SettingsApi() {
405
+ var OrganizationsApi = /** @class */ (function (_super) {
406
+ __extends(OrganizationsApi, _super);
407
+ function OrganizationsApi() {
457
408
  return _super !== null && _super.apply(this, arguments) || this;
458
409
  }
459
410
  /**
460
- *
461
- * @summary Get tenant settings
462
- * @param {SettingsApiGetTenantSettingsRequest} requestParameters Request parameters.
463
- * @param {*} [options] Override http request option.
464
- * @throws {RequiredError}
465
- * @memberof SettingsApi
466
- */
467
- SettingsApi.prototype.getTenantSettings = function (requestParameters, options) {
468
- var _this = this;
469
- return (0, exports.SettingsApiFp)(this.configuration).getTenantSettings(requestParameters.keys, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
470
- };
471
- /**
472
- *
473
- * @summary Get user settings
474
- * @param {SettingsApiGetUserSettingsRequest} requestParameters Request parameters.
411
+ * Get Organization by code
412
+ * @summary Retrieve the Organization
413
+ * @param {OrganizationsApiGetOrganizationRequest} requestParameters Request parameters.
475
414
  * @param {*} [options] Override http request option.
476
415
  * @throws {RequiredError}
477
- * @memberof SettingsApi
416
+ * @memberof OrganizationsApi
478
417
  */
479
- SettingsApi.prototype.getUserSettings = function (requestParameters, options) {
418
+ OrganizationsApi.prototype.getOrganization = function (requestParameters, options) {
480
419
  var _this = this;
481
- return (0, exports.SettingsApiFp)(this.configuration).getUserSettings(requestParameters.keys, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
420
+ return (0, exports.OrganizationsApiFp)(this.configuration).getOrganization(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
482
421
  };
483
422
  /**
484
- * Creates new setting in EMIL Insurance Suite for tenants. Among other things, tenants can add multiple settings to customize their workspace on EIS.
485
- * @summary Create the tenant setting
486
- * @param {SettingsApiSetTenantSettingRequest} requestParameters Request parameters.
423
+ * This will fetch list of organizations
424
+ * @summary List organizations
425
+ * @param {OrganizationsApiListOrganizationsRequest} requestParameters Request parameters.
487
426
  * @param {*} [options] Override http request option.
488
427
  * @throws {RequiredError}
489
- * @memberof SettingsApi
428
+ * @memberof OrganizationsApi
490
429
  */
491
- SettingsApi.prototype.setTenantSetting = function (requestParameters, options) {
430
+ OrganizationsApi.prototype.listOrganizations = function (requestParameters, options) {
492
431
  var _this = this;
493
- return (0, exports.SettingsApiFp)(this.configuration).setTenantSetting(requestParameters.setSettingRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
432
+ if (requestParameters === void 0) { requestParameters = {}; }
433
+ return (0, exports.OrganizationsApiFp)(this.configuration).listOrganizations(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
494
434
  };
495
435
  /**
496
- * Creates new setting in EMIL Insurance Suite for users. Among other things, users can add multiple settings to customize their workspace on EIS.
497
- * @summary Create the user setting
498
- * @param {SettingsApiSetUserSettingRequest} requestParameters Request parameters.
436
+ * Update organization data
437
+ * @summary Update the Organization
438
+ * @param {OrganizationsApiUpdateOrganizationRequest} requestParameters Request parameters.
499
439
  * @param {*} [options] Override http request option.
500
440
  * @throws {RequiredError}
501
- * @memberof SettingsApi
441
+ * @memberof OrganizationsApi
502
442
  */
503
- SettingsApi.prototype.setUserSetting = function (requestParameters, options) {
443
+ OrganizationsApi.prototype.updateOrganization = function (requestParameters, options) {
504
444
  var _this = this;
505
- return (0, exports.SettingsApiFp)(this.configuration).setUserSetting(requestParameters.setSettingRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
445
+ return (0, exports.OrganizationsApiFp)(this.configuration).updateOrganization(requestParameters.code, requestParameters.body, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
506
446
  };
507
- return SettingsApi;
447
+ return OrganizationsApi;
508
448
  }(base_1.BaseAPI));
509
- exports.SettingsApi = SettingsApi;
449
+ exports.OrganizationsApi = OrganizationsApi;