@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.
- package/.openapi-generator/FILES +14 -57
- package/README.md +2 -2
- package/api/custom-schema-api.ts +52 -60
- package/api/data-report-api.ts +65 -75
- package/api/data-report-executor-api.ts +10 -26
- package/api/{user-subscription-api.ts → invite-organizations-api.ts} +139 -161
- package/api/invite-users-api.ts +75 -79
- package/api/organizations-api.ts +455 -0
- package/api/users-api.ts +138 -148
- package/api.ts +4 -14
- package/dist/api/custom-schema-api.d.ts +42 -42
- package/dist/api/custom-schema-api.js +31 -38
- package/dist/api/data-report-api.d.ts +52 -52
- package/dist/api/data-report-api.js +40 -49
- package/dist/api/data-report-executor-api.d.ts +7 -16
- package/dist/api/data-report-executor-api.js +9 -17
- package/dist/api/{user-subscription-api.d.ts → invite-organizations-api.d.ts} +89 -103
- package/dist/api/{user-subscription-api.js → invite-organizations-api.js} +106 -114
- package/dist/api/invite-users-api.d.ts +63 -60
- package/dist/api/invite-users-api.js +40 -49
- package/dist/api/organizations-api.d.ts +261 -0
- package/dist/api/{settings-api.js → organizations-api.js} +135 -195
- package/dist/api/users-api.d.ts +113 -109
- package/dist/api/users-api.js +76 -93
- package/dist/api.d.ts +2 -7
- package/dist/api.js +2 -7
- package/dist/models/assign-user-roles-request-dto.d.ts +2 -2
- package/dist/models/{manage-subscription-request-dto.d.ts → batch-delete-response-class.d.ts} +5 -5
- package/dist/models/create-custom-schema-request-dto.d.ts +1 -0
- package/dist/models/create-custom-schema-request-dto.js +2 -1
- package/dist/models/{insurance-response-class.d.ts → delete-response-class.d.ts} +6 -6
- package/dist/models/{get-embedded-url-response-class.d.ts → disable-users-response-class.d.ts} +6 -6
- package/dist/models/{insurance-company-response-class.d.ts → enable-users-response-class.d.ts} +6 -6
- package/dist/models/{create-alert-response-class.d.ts → get-organization-response-class.d.ts} +7 -7
- package/dist/models/index.d.ts +12 -50
- package/dist/models/index.js +12 -50
- package/dist/models/invite-org-request-dto.d.ts +78 -0
- package/dist/models/invite-user-request-dto.d.ts +8 -2
- package/dist/models/invite-users-request-dto.d.ts +2 -2
- package/dist/models/invite-users-response-class.d.ts +24 -0
- package/dist/models/{list-user-subscriptions-response-class.d.ts → list-org-invitations-response-class.d.ts} +8 -8
- package/dist/models/{list-alert-history-response-class.d.ts → list-organizations-response-class.d.ts} +9 -9
- package/dist/models/org-invitation-class.d.ts +103 -0
- package/dist/models/{create-dashboard-response-class.d.ts → org-invitation-response-class.d.ts} +7 -7
- package/dist/models/organization-class.d.ts +84 -0
- package/dist/models/set-setting-request-dto.d.ts +10 -4
- package/dist/models/subscription-class.d.ts +9 -2
- package/dist/models/update-custom-schema-request-dto.d.ts +1 -0
- package/dist/models/update-custom-schema-request-dto.js +2 -1
- package/dist/models/user-class.d.ts +13 -5
- package/models/assign-user-roles-request-dto.ts +2 -2
- package/models/{manage-subscription-request-dto.ts → batch-delete-response-class.ts} +5 -5
- package/models/create-custom-schema-request-dto.ts +2 -1
- package/models/{insurance-response-class.ts → delete-response-class.ts} +6 -6
- package/models/{get-embedded-url-response-class.ts → disable-users-response-class.ts} +6 -6
- package/models/{insurance-company-response-class.ts → enable-users-response-class.ts} +6 -6
- package/models/{channel-response-class.ts → get-organization-response-class.ts} +7 -12
- package/models/index.ts +12 -50
- package/models/invite-org-request-dto.ts +84 -0
- package/models/invite-user-request-dto.ts +8 -2
- package/models/invite-users-request-dto.ts +2 -2
- package/models/invite-users-response-class.ts +30 -0
- package/models/{list-user-subscriptions-response-class.ts → list-org-invitations-response-class.ts} +8 -8
- package/models/{list-alert-history-response-class.ts → list-organizations-response-class.ts} +9 -9
- package/models/org-invitation-class.ts +109 -0
- package/models/{create-alert-response-class.ts → org-invitation-response-class.ts} +7 -7
- package/models/organization-class.ts +90 -0
- package/models/set-setting-request-dto.ts +10 -4
- package/models/subscription-class.ts +9 -2
- package/models/update-custom-schema-request-dto.ts +2 -1
- package/models/user-class.ts +13 -5
- package/package.json +1 -1
- package/api/alerts-api.ts +0 -860
- package/api/dashboard-api.ts +0 -792
- package/api/reports-api.ts +0 -860
- package/api/scenario-analysis-api.ts +0 -977
- package/api/settings-api.ts +0 -484
- package/api/tariff-comparisons-api.ts +0 -381
- package/dist/api/alerts-api.d.ts +0 -479
- package/dist/api/alerts-api.js +0 -752
- package/dist/api/dashboard-api.d.ts +0 -434
- package/dist/api/dashboard-api.js +0 -724
- package/dist/api/reports-api.d.ts +0 -479
- package/dist/api/reports-api.js +0 -752
- package/dist/api/scenario-analysis-api.d.ts +0 -529
- package/dist/api/scenario-analysis-api.js +0 -895
- package/dist/api/settings-api.d.ts +0 -264
- package/dist/api/tariff-comparisons-api.d.ts +0 -206
- package/dist/api/tariff-comparisons-api.js +0 -409
- package/dist/models/alert-class.d.ts +0 -90
- package/dist/models/alert-history-class.d.ts +0 -108
- package/dist/models/channel-response-class.d.ts +0 -30
- package/dist/models/compare-tariffs-request-dto.d.ts +0 -37
- package/dist/models/compare-tariffs-request-dto.js +0 -22
- package/dist/models/compare-tariffs-response-class.d.ts +0 -31
- package/dist/models/condition-dto.d.ts +0 -43
- package/dist/models/condition-dto.js +0 -22
- package/dist/models/create-alert-request-dto.d.ts +0 -79
- package/dist/models/create-alert-request-dto.js +0 -27
- package/dist/models/create-dashboard-request-dto.d.ts +0 -70
- package/dist/models/create-dashboard-request-dto.js +0 -29
- package/dist/models/create-report-request-dto.d.ts +0 -49
- package/dist/models/create-report-request-dto.js +0 -22
- package/dist/models/create-report-response-class.d.ts +0 -25
- package/dist/models/create-scenario-analysis-request-dto.d.ts +0 -74
- package/dist/models/create-scenario-analysis-request-dto.js +0 -22
- package/dist/models/create-scenario-analysis-response-class.d.ts +0 -25
- package/dist/models/dashboard-class.d.ts +0 -78
- package/dist/models/get-alert-response-class.d.ts +0 -25
- package/dist/models/get-dashboard-response-class.d.ts +0 -25
- package/dist/models/get-report-response-class.d.ts +0 -25
- package/dist/models/get-report-response-class.js +0 -15
- package/dist/models/get-scenario-analysis-response-class.d.ts +0 -25
- package/dist/models/get-scenario-analysis-response-class.js +0 -15
- package/dist/models/grouped-tariff-class.d.ts +0 -30
- package/dist/models/grouped-tariff-class.js +0 -15
- package/dist/models/insurance-company-response-class.js +0 -15
- package/dist/models/insurance-response-class.js +0 -15
- package/dist/models/list-alert-history-response-class.js +0 -15
- package/dist/models/list-alerts-response-class.d.ts +0 -31
- package/dist/models/list-alerts-response-class.js +0 -15
- package/dist/models/list-channels-response-class.d.ts +0 -25
- package/dist/models/list-channels-response-class.js +0 -15
- package/dist/models/list-dashboards-response-class.d.ts +0 -31
- package/dist/models/list-dashboards-response-class.js +0 -15
- package/dist/models/list-insurance-companies-response-class.d.ts +0 -25
- package/dist/models/list-insurance-companies-response-class.js +0 -15
- package/dist/models/list-report-history-response-class.d.ts +0 -31
- package/dist/models/list-report-history-response-class.js +0 -15
- package/dist/models/list-reports-response-class.d.ts +0 -31
- package/dist/models/list-reports-response-class.js +0 -15
- package/dist/models/list-scenario-analyses-response-class.d.ts +0 -31
- package/dist/models/list-scenario-analyses-response-class.js +0 -15
- package/dist/models/list-scenario-analysis-dates-response-class.d.ts +0 -25
- package/dist/models/list-scenario-analysis-dates-response-class.js +0 -15
- package/dist/models/list-tariff-insurance-companies-response-class.d.ts +0 -25
- package/dist/models/list-tariff-insurance-companies-response-class.js +0 -15
- package/dist/models/list-tariffs-response-class.d.ts +0 -25
- package/dist/models/list-tariffs-response-class.js +0 -15
- package/dist/models/list-user-subscriptions-response-class.js +0 -15
- package/dist/models/manage-subscription-request-dto.js +0 -15
- package/dist/models/manage-subscription-response-class.d.ts +0 -25
- package/dist/models/manage-subscription-response-class.js +0 -15
- package/dist/models/report-class.d.ts +0 -66
- package/dist/models/report-class.js +0 -15
- package/dist/models/report-history-class.d.ts +0 -48
- package/dist/models/report-history-class.js +0 -15
- package/dist/models/scenario-analysis-class.d.ts +0 -108
- package/dist/models/scenario-analysis-class.js +0 -15
- package/dist/models/scenario-analysis-date-response-class.d.ts +0 -36
- package/dist/models/scenario-analysis-date-response-class.js +0 -15
- package/dist/models/set-tenant-setting-response-class.d.ts +0 -36
- package/dist/models/set-tenant-setting-response-class.js +0 -15
- package/dist/models/update-alert-request-dto.d.ts +0 -72
- package/dist/models/update-alert-request-dto.js +0 -21
- package/dist/models/update-alert-response-class.d.ts +0 -25
- package/dist/models/update-alert-response-class.js +0 -15
- package/dist/models/update-dashboard-request-dto.d.ts +0 -76
- package/dist/models/update-dashboard-request-dto.js +0 -29
- package/dist/models/update-dashboard-response-class.d.ts +0 -25
- package/dist/models/update-dashboard-response-class.js +0 -15
- package/dist/models/update-report-request-dto.d.ts +0 -55
- package/dist/models/update-report-request-dto.js +0 -22
- package/dist/models/update-report-response-class.d.ts +0 -25
- package/dist/models/update-report-response-class.js +0 -15
- package/dist/models/update-scenario-analysis-request-dto.d.ts +0 -74
- package/dist/models/update-scenario-analysis-request-dto.js +0 -22
- package/dist/models/update-scenario-analysis-response-class.d.ts +0 -25
- package/dist/models/update-scenario-analysis-response-class.js +0 -15
- package/models/alert-class.ts +0 -96
- package/models/alert-history-class.ts +0 -114
- package/models/compare-tariffs-request-dto.ts +0 -46
- package/models/compare-tariffs-response-class.ts +0 -37
- package/models/condition-dto.ts +0 -52
- package/models/create-alert-request-dto.ts +0 -89
- package/models/create-dashboard-request-dto.ts +0 -81
- package/models/create-dashboard-response-class.ts +0 -31
- package/models/create-report-request-dto.ts +0 -58
- package/models/create-report-response-class.ts +0 -31
- package/models/create-scenario-analysis-request-dto.ts +0 -83
- package/models/create-scenario-analysis-response-class.ts +0 -31
- package/models/dashboard-class.ts +0 -84
- package/models/get-alert-response-class.ts +0 -31
- package/models/get-dashboard-response-class.ts +0 -31
- package/models/get-report-response-class.ts +0 -31
- package/models/get-scenario-analysis-response-class.ts +0 -31
- package/models/grouped-tariff-class.ts +0 -36
- package/models/list-alerts-response-class.ts +0 -37
- package/models/list-channels-response-class.ts +0 -31
- package/models/list-dashboards-response-class.ts +0 -37
- package/models/list-insurance-companies-response-class.ts +0 -31
- package/models/list-report-history-response-class.ts +0 -37
- package/models/list-reports-response-class.ts +0 -37
- package/models/list-scenario-analyses-response-class.ts +0 -37
- package/models/list-scenario-analysis-dates-response-class.ts +0 -31
- package/models/list-tariff-insurance-companies-response-class.ts +0 -31
- package/models/list-tariffs-response-class.ts +0 -31
- package/models/manage-subscription-response-class.ts +0 -31
- package/models/report-class.ts +0 -72
- package/models/report-history-class.ts +0 -54
- package/models/scenario-analysis-class.ts +0 -114
- package/models/scenario-analysis-date-response-class.ts +0 -42
- package/models/set-tenant-setting-response-class.ts +0 -42
- package/models/update-alert-request-dto.ts +0 -81
- package/models/update-alert-response-class.ts +0 -31
- package/models/update-dashboard-request-dto.ts +0 -87
- package/models/update-dashboard-response-class.ts +0 -31
- package/models/update-report-request-dto.ts +0 -64
- package/models/update-report-response-class.ts +0 -31
- package/models/update-scenario-analysis-request-dto.ts +0 -83
- package/models/update-scenario-analysis-response-class.ts +0 -31
- /package/dist/models/{alert-class.js → batch-delete-response-class.js} +0 -0
- /package/dist/models/{alert-history-class.js → delete-response-class.js} +0 -0
- /package/dist/models/{channel-response-class.js → disable-users-response-class.js} +0 -0
- /package/dist/models/{compare-tariffs-response-class.js → enable-users-response-class.js} +0 -0
- /package/dist/models/{create-alert-response-class.js → get-organization-response-class.js} +0 -0
- /package/dist/models/{create-dashboard-response-class.js → invite-org-request-dto.js} +0 -0
- /package/dist/models/{create-report-response-class.js → invite-users-response-class.js} +0 -0
- /package/dist/models/{create-scenario-analysis-response-class.js → list-org-invitations-response-class.js} +0 -0
- /package/dist/models/{dashboard-class.js → list-organizations-response-class.js} +0 -0
- /package/dist/models/{get-alert-response-class.js → org-invitation-class.js} +0 -0
- /package/dist/models/{get-dashboard-response-class.js → org-invitation-response-class.js} +0 -0
- /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.
|
|
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
|
-
*
|
|
93
|
+
* OrganizationsApi - axios parameter creator
|
|
94
94
|
* @export
|
|
95
95
|
*/
|
|
96
|
-
var
|
|
96
|
+
var OrganizationsApiAxiosParamCreator = function (configuration) {
|
|
97
97
|
var _this = this;
|
|
98
98
|
return {
|
|
99
99
|
/**
|
|
100
|
-
*
|
|
101
|
-
* @summary
|
|
102
|
-
* @param {string}
|
|
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
|
-
|
|
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 '
|
|
115
|
-
(0, common_1.assertParamExists)('
|
|
116
|
-
localVarPath = "/tenantservice/v1/
|
|
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
|
|
152
|
-
* @param {string}
|
|
153
|
-
* @param {
|
|
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
|
-
|
|
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
|
-
|
|
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 (
|
|
183
|
-
localVarQueryParameter['
|
|
183
|
+
if (pageSize !== undefined) {
|
|
184
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
184
185
|
}
|
|
185
|
-
if (
|
|
186
|
-
|
|
186
|
+
if (pageToken !== undefined) {
|
|
187
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
187
188
|
}
|
|
188
|
-
(
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
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
|
-
*
|
|
250
|
-
* @summary
|
|
251
|
-
* @param {
|
|
252
|
-
* @param {
|
|
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
|
-
|
|
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 '
|
|
264
|
-
(0, common_1.assertParamExists)('
|
|
265
|
-
|
|
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: '
|
|
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)(
|
|
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.
|
|
270
|
+
exports.OrganizationsApiAxiosParamCreator = OrganizationsApiAxiosParamCreator;
|
|
300
271
|
/**
|
|
301
|
-
*
|
|
272
|
+
* OrganizationsApi - functional programming interface
|
|
302
273
|
* @export
|
|
303
274
|
*/
|
|
304
|
-
var
|
|
305
|
-
var localVarAxiosParamCreator = (0, exports.
|
|
275
|
+
var OrganizationsApiFp = function (configuration) {
|
|
276
|
+
var localVarAxiosParamCreator = (0, exports.OrganizationsApiAxiosParamCreator)(configuration);
|
|
306
277
|
return {
|
|
307
278
|
/**
|
|
308
|
-
*
|
|
309
|
-
* @summary
|
|
310
|
-
* @param {string}
|
|
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
|
-
|
|
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.
|
|
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
|
|
331
|
-
* @param {string}
|
|
332
|
-
* @param {
|
|
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
|
-
|
|
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.
|
|
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
|
-
*
|
|
351
|
-
* @summary
|
|
352
|
-
* @param {
|
|
353
|
-
* @param {
|
|
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
|
-
|
|
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.
|
|
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.
|
|
349
|
+
exports.OrganizationsApiFp = OrganizationsApiFp;
|
|
394
350
|
/**
|
|
395
|
-
*
|
|
351
|
+
* OrganizationsApi - factory interface
|
|
396
352
|
* @export
|
|
397
353
|
*/
|
|
398
|
-
var
|
|
399
|
-
var localVarFp = (0, exports.
|
|
354
|
+
var OrganizationsApiFactory = function (configuration, basePath, axios) {
|
|
355
|
+
var localVarFp = (0, exports.OrganizationsApiFp)(configuration);
|
|
400
356
|
return {
|
|
401
357
|
/**
|
|
402
|
-
*
|
|
403
|
-
* @summary
|
|
404
|
-
* @param {string}
|
|
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
|
-
|
|
421
|
-
return localVarFp.
|
|
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
|
-
*
|
|
425
|
-
* @summary
|
|
426
|
-
* @param {
|
|
427
|
-
* @param {
|
|
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
|
-
|
|
432
|
-
return localVarFp.
|
|
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
|
-
*
|
|
436
|
-
* @summary
|
|
437
|
-
* @param {
|
|
438
|
-
* @param {
|
|
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
|
-
|
|
443
|
-
return localVarFp.
|
|
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.
|
|
398
|
+
exports.OrganizationsApiFactory = OrganizationsApiFactory;
|
|
448
399
|
/**
|
|
449
|
-
*
|
|
400
|
+
* OrganizationsApi - object-oriented interface
|
|
450
401
|
* @export
|
|
451
|
-
* @class
|
|
402
|
+
* @class OrganizationsApi
|
|
452
403
|
* @extends {BaseAPI}
|
|
453
404
|
*/
|
|
454
|
-
var
|
|
455
|
-
__extends(
|
|
456
|
-
function
|
|
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
|
|
462
|
-
* @param {
|
|
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
|
|
416
|
+
* @memberof OrganizationsApi
|
|
478
417
|
*/
|
|
479
|
-
|
|
418
|
+
OrganizationsApi.prototype.getOrganization = function (requestParameters, options) {
|
|
480
419
|
var _this = this;
|
|
481
|
-
return (0, exports.
|
|
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
|
-
*
|
|
485
|
-
* @summary
|
|
486
|
-
* @param {
|
|
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
|
|
428
|
+
* @memberof OrganizationsApi
|
|
490
429
|
*/
|
|
491
|
-
|
|
430
|
+
OrganizationsApi.prototype.listOrganizations = function (requestParameters, options) {
|
|
492
431
|
var _this = this;
|
|
493
|
-
|
|
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
|
-
*
|
|
497
|
-
* @summary
|
|
498
|
-
* @param {
|
|
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
|
|
441
|
+
* @memberof OrganizationsApi
|
|
502
442
|
*/
|
|
503
|
-
|
|
443
|
+
OrganizationsApi.prototype.updateOrganization = function (requestParameters, options) {
|
|
504
444
|
var _this = this;
|
|
505
|
-
return (0, exports.
|
|
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
|
|
447
|
+
return OrganizationsApi;
|
|
508
448
|
}(base_1.BaseAPI));
|
|
509
|
-
exports.
|
|
449
|
+
exports.OrganizationsApi = OrganizationsApi;
|