@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
|
@@ -99,20 +99,18 @@ var InviteUsersApiAxiosParamCreator = function (configuration) {
|
|
|
99
99
|
/**
|
|
100
100
|
* Permanently deletes the invited user. Supply the unique id that was returned when you created the invited user and this will delete it.
|
|
101
101
|
* @summary Delete the invited user
|
|
102
|
-
* @param {string} authorization Bearer Token
|
|
103
102
|
* @param {number} id
|
|
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
|
-
deleteInvite: function (
|
|
107
|
+
deleteInvite: function (id, 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 'authorization' is not null or undefined
|
|
115
|
-
(0, common_1.assertParamExists)('deleteInvite', 'authorization', authorization);
|
|
116
114
|
// verify required parameter 'id' is not null or undefined
|
|
117
115
|
(0, common_1.assertParamExists)('deleteInvite', 'id', id);
|
|
118
116
|
localVarPath = "/tenantservice/v1/users/invites/{id}"
|
|
@@ -149,20 +147,18 @@ var InviteUsersApiAxiosParamCreator = function (configuration) {
|
|
|
149
147
|
/**
|
|
150
148
|
* This will deletes the users who has been invited. Supply array of ids that were returned when users has been created and this will delete it.
|
|
151
149
|
* @summary Delete invited users.
|
|
152
|
-
* @param {string} authorization Bearer Token
|
|
153
150
|
* @param {BatchDeleteRequestDto} batchDeleteRequestDto
|
|
151
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
154
152
|
* @param {*} [options] Override http request option.
|
|
155
153
|
* @throws {RequiredError}
|
|
156
154
|
*/
|
|
157
|
-
deleteInvites: function (
|
|
155
|
+
deleteInvites: function (batchDeleteRequestDto, authorization, options) {
|
|
158
156
|
if (options === void 0) { options = {}; }
|
|
159
157
|
return __awaiter(_this, void 0, void 0, function () {
|
|
160
158
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
161
159
|
return __generator(this, function (_a) {
|
|
162
160
|
switch (_a.label) {
|
|
163
161
|
case 0:
|
|
164
|
-
// verify required parameter 'authorization' is not null or undefined
|
|
165
|
-
(0, common_1.assertParamExists)('deleteInvites', 'authorization', authorization);
|
|
166
162
|
// verify required parameter 'batchDeleteRequestDto' is not null or undefined
|
|
167
163
|
(0, common_1.assertParamExists)('deleteInvites', 'batchDeleteRequestDto', batchDeleteRequestDto);
|
|
168
164
|
localVarPath = "/tenantservice/v1/users/invites/delete-batch";
|
|
@@ -200,20 +196,18 @@ var InviteUsersApiAxiosParamCreator = function (configuration) {
|
|
|
200
196
|
/**
|
|
201
197
|
* This send an email to invite a user with the specific role/roles.
|
|
202
198
|
* @summary Invite a user
|
|
203
|
-
* @param {string} authorization Bearer Token
|
|
204
199
|
* @param {InviteUserRequestDto} inviteUserRequestDto
|
|
200
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
205
201
|
* @param {*} [options] Override http request option.
|
|
206
202
|
* @throws {RequiredError}
|
|
207
203
|
*/
|
|
208
|
-
inviteUser: function (
|
|
204
|
+
inviteUser: function (inviteUserRequestDto, authorization, options) {
|
|
209
205
|
if (options === void 0) { options = {}; }
|
|
210
206
|
return __awaiter(_this, void 0, void 0, function () {
|
|
211
207
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
212
208
|
return __generator(this, function (_a) {
|
|
213
209
|
switch (_a.label) {
|
|
214
210
|
case 0:
|
|
215
|
-
// verify required parameter 'authorization' is not null or undefined
|
|
216
|
-
(0, common_1.assertParamExists)('inviteUser', 'authorization', authorization);
|
|
217
211
|
// verify required parameter 'inviteUserRequestDto' is not null or undefined
|
|
218
212
|
(0, common_1.assertParamExists)('inviteUser', 'inviteUserRequestDto', inviteUserRequestDto);
|
|
219
213
|
localVarPath = "/tenantservice/v1/users/invites";
|
|
@@ -251,20 +245,18 @@ var InviteUsersApiAxiosParamCreator = function (configuration) {
|
|
|
251
245
|
/**
|
|
252
246
|
* This send bulk emails to invite users with the specific role/roles.
|
|
253
247
|
* @summary Invite batch of users
|
|
254
|
-
* @param {string} authorization Bearer Token
|
|
255
248
|
* @param {InviteUsersRequestDto} inviteUsersRequestDto
|
|
249
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
256
250
|
* @param {*} [options] Override http request option.
|
|
257
251
|
* @throws {RequiredError}
|
|
258
252
|
*/
|
|
259
|
-
inviteUsers: function (
|
|
253
|
+
inviteUsers: function (inviteUsersRequestDto, authorization, options) {
|
|
260
254
|
if (options === void 0) { options = {}; }
|
|
261
255
|
return __awaiter(_this, void 0, void 0, function () {
|
|
262
256
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
263
257
|
return __generator(this, function (_a) {
|
|
264
258
|
switch (_a.label) {
|
|
265
259
|
case 0:
|
|
266
|
-
// verify required parameter 'authorization' is not null or undefined
|
|
267
|
-
(0, common_1.assertParamExists)('inviteUsers', 'authorization', authorization);
|
|
268
260
|
// verify required parameter 'inviteUsersRequestDto' is not null or undefined
|
|
269
261
|
(0, common_1.assertParamExists)('inviteUsers', 'inviteUsersRequestDto', inviteUsersRequestDto);
|
|
270
262
|
localVarPath = "/tenantservice/v1/users/invites/batch";
|
|
@@ -302,7 +294,7 @@ var InviteUsersApiAxiosParamCreator = function (configuration) {
|
|
|
302
294
|
/**
|
|
303
295
|
* Returns a list of invited users you have previously created. The invited users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
304
296
|
* @summary List invited users
|
|
305
|
-
* @param {string} authorization Bearer Token
|
|
297
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
306
298
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
307
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.
|
|
308
300
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
@@ -319,8 +311,6 @@ var InviteUsersApiAxiosParamCreator = function (configuration) {
|
|
|
319
311
|
return __generator(this, function (_a) {
|
|
320
312
|
switch (_a.label) {
|
|
321
313
|
case 0:
|
|
322
|
-
// verify required parameter 'authorization' is not null or undefined
|
|
323
|
-
(0, common_1.assertParamExists)('listInvites', 'authorization', authorization);
|
|
324
314
|
localVarPath = "/tenantservice/v1/users/invites";
|
|
325
315
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
326
316
|
if (configuration) {
|
|
@@ -382,17 +372,17 @@ var InviteUsersApiFp = function (configuration) {
|
|
|
382
372
|
/**
|
|
383
373
|
* Permanently deletes the invited user. Supply the unique id that was returned when you created the invited user and this will delete it.
|
|
384
374
|
* @summary Delete the invited user
|
|
385
|
-
* @param {string} authorization Bearer Token
|
|
386
375
|
* @param {number} id
|
|
376
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
387
377
|
* @param {*} [options] Override http request option.
|
|
388
378
|
* @throws {RequiredError}
|
|
389
379
|
*/
|
|
390
|
-
deleteInvite: function (
|
|
380
|
+
deleteInvite: function (id, authorization, options) {
|
|
391
381
|
return __awaiter(this, void 0, void 0, function () {
|
|
392
382
|
var localVarAxiosArgs;
|
|
393
383
|
return __generator(this, function (_a) {
|
|
394
384
|
switch (_a.label) {
|
|
395
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteInvite(
|
|
385
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteInvite(id, authorization, options)];
|
|
396
386
|
case 1:
|
|
397
387
|
localVarAxiosArgs = _a.sent();
|
|
398
388
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -403,17 +393,17 @@ var InviteUsersApiFp = function (configuration) {
|
|
|
403
393
|
/**
|
|
404
394
|
* This will deletes the users who has been invited. Supply array of ids that were returned when users has been created and this will delete it.
|
|
405
395
|
* @summary Delete invited users.
|
|
406
|
-
* @param {string} authorization Bearer Token
|
|
407
396
|
* @param {BatchDeleteRequestDto} batchDeleteRequestDto
|
|
397
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
408
398
|
* @param {*} [options] Override http request option.
|
|
409
399
|
* @throws {RequiredError}
|
|
410
400
|
*/
|
|
411
|
-
deleteInvites: function (
|
|
401
|
+
deleteInvites: function (batchDeleteRequestDto, authorization, options) {
|
|
412
402
|
return __awaiter(this, void 0, void 0, function () {
|
|
413
403
|
var localVarAxiosArgs;
|
|
414
404
|
return __generator(this, function (_a) {
|
|
415
405
|
switch (_a.label) {
|
|
416
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteInvites(
|
|
406
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteInvites(batchDeleteRequestDto, authorization, options)];
|
|
417
407
|
case 1:
|
|
418
408
|
localVarAxiosArgs = _a.sent();
|
|
419
409
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -424,17 +414,17 @@ var InviteUsersApiFp = function (configuration) {
|
|
|
424
414
|
/**
|
|
425
415
|
* This send an email to invite a user with the specific role/roles.
|
|
426
416
|
* @summary Invite a user
|
|
427
|
-
* @param {string} authorization Bearer Token
|
|
428
417
|
* @param {InviteUserRequestDto} inviteUserRequestDto
|
|
418
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
429
419
|
* @param {*} [options] Override http request option.
|
|
430
420
|
* @throws {RequiredError}
|
|
431
421
|
*/
|
|
432
|
-
inviteUser: function (
|
|
422
|
+
inviteUser: function (inviteUserRequestDto, authorization, options) {
|
|
433
423
|
return __awaiter(this, void 0, void 0, function () {
|
|
434
424
|
var localVarAxiosArgs;
|
|
435
425
|
return __generator(this, function (_a) {
|
|
436
426
|
switch (_a.label) {
|
|
437
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.inviteUser(
|
|
427
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.inviteUser(inviteUserRequestDto, authorization, options)];
|
|
438
428
|
case 1:
|
|
439
429
|
localVarAxiosArgs = _a.sent();
|
|
440
430
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -445,17 +435,17 @@ var InviteUsersApiFp = function (configuration) {
|
|
|
445
435
|
/**
|
|
446
436
|
* This send bulk emails to invite users with the specific role/roles.
|
|
447
437
|
* @summary Invite batch of users
|
|
448
|
-
* @param {string} authorization Bearer Token
|
|
449
438
|
* @param {InviteUsersRequestDto} inviteUsersRequestDto
|
|
439
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
450
440
|
* @param {*} [options] Override http request option.
|
|
451
441
|
* @throws {RequiredError}
|
|
452
442
|
*/
|
|
453
|
-
inviteUsers: function (
|
|
443
|
+
inviteUsers: function (inviteUsersRequestDto, authorization, options) {
|
|
454
444
|
return __awaiter(this, void 0, void 0, function () {
|
|
455
445
|
var localVarAxiosArgs;
|
|
456
446
|
return __generator(this, function (_a) {
|
|
457
447
|
switch (_a.label) {
|
|
458
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.inviteUsers(
|
|
448
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.inviteUsers(inviteUsersRequestDto, authorization, options)];
|
|
459
449
|
case 1:
|
|
460
450
|
localVarAxiosArgs = _a.sent();
|
|
461
451
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -466,7 +456,7 @@ var InviteUsersApiFp = function (configuration) {
|
|
|
466
456
|
/**
|
|
467
457
|
* Returns a list of invited users you have previously created. The invited users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
468
458
|
* @summary List invited users
|
|
469
|
-
* @param {string} authorization Bearer Token
|
|
459
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
470
460
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
471
461
|
* @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.
|
|
472
462
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
@@ -502,51 +492,51 @@ var InviteUsersApiFactory = function (configuration, basePath, axios) {
|
|
|
502
492
|
/**
|
|
503
493
|
* Permanently deletes the invited user. Supply the unique id that was returned when you created the invited user and this will delete it.
|
|
504
494
|
* @summary Delete the invited user
|
|
505
|
-
* @param {string} authorization Bearer Token
|
|
506
495
|
* @param {number} id
|
|
496
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
507
497
|
* @param {*} [options] Override http request option.
|
|
508
498
|
* @throws {RequiredError}
|
|
509
499
|
*/
|
|
510
|
-
deleteInvite: function (
|
|
511
|
-
return localVarFp.deleteInvite(
|
|
500
|
+
deleteInvite: function (id, authorization, options) {
|
|
501
|
+
return localVarFp.deleteInvite(id, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
512
502
|
},
|
|
513
503
|
/**
|
|
514
504
|
* This will deletes the users who has been invited. Supply array of ids that were returned when users has been created and this will delete it.
|
|
515
505
|
* @summary Delete invited users.
|
|
516
|
-
* @param {string} authorization Bearer Token
|
|
517
506
|
* @param {BatchDeleteRequestDto} batchDeleteRequestDto
|
|
507
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
518
508
|
* @param {*} [options] Override http request option.
|
|
519
509
|
* @throws {RequiredError}
|
|
520
510
|
*/
|
|
521
|
-
deleteInvites: function (
|
|
522
|
-
return localVarFp.deleteInvites(
|
|
511
|
+
deleteInvites: function (batchDeleteRequestDto, authorization, options) {
|
|
512
|
+
return localVarFp.deleteInvites(batchDeleteRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
523
513
|
},
|
|
524
514
|
/**
|
|
525
515
|
* This send an email to invite a user with the specific role/roles.
|
|
526
516
|
* @summary Invite a user
|
|
527
|
-
* @param {string} authorization Bearer Token
|
|
528
517
|
* @param {InviteUserRequestDto} inviteUserRequestDto
|
|
518
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
529
519
|
* @param {*} [options] Override http request option.
|
|
530
520
|
* @throws {RequiredError}
|
|
531
521
|
*/
|
|
532
|
-
inviteUser: function (
|
|
533
|
-
return localVarFp.inviteUser(
|
|
522
|
+
inviteUser: function (inviteUserRequestDto, authorization, options) {
|
|
523
|
+
return localVarFp.inviteUser(inviteUserRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
534
524
|
},
|
|
535
525
|
/**
|
|
536
526
|
* This send bulk emails to invite users with the specific role/roles.
|
|
537
527
|
* @summary Invite batch of users
|
|
538
|
-
* @param {string} authorization Bearer Token
|
|
539
528
|
* @param {InviteUsersRequestDto} inviteUsersRequestDto
|
|
529
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
540
530
|
* @param {*} [options] Override http request option.
|
|
541
531
|
* @throws {RequiredError}
|
|
542
532
|
*/
|
|
543
|
-
inviteUsers: function (
|
|
544
|
-
return localVarFp.inviteUsers(
|
|
533
|
+
inviteUsers: function (inviteUsersRequestDto, authorization, options) {
|
|
534
|
+
return localVarFp.inviteUsers(inviteUsersRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
545
535
|
},
|
|
546
536
|
/**
|
|
547
537
|
* Returns a list of invited users you have previously created. The invited users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
548
538
|
* @summary List invited users
|
|
549
|
-
* @param {string} authorization Bearer Token
|
|
539
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
550
540
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
551
541
|
* @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.
|
|
552
542
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
@@ -583,7 +573,7 @@ var InviteUsersApi = /** @class */ (function (_super) {
|
|
|
583
573
|
*/
|
|
584
574
|
InviteUsersApi.prototype.deleteInvite = function (requestParameters, options) {
|
|
585
575
|
var _this = this;
|
|
586
|
-
return (0, exports.InviteUsersApiFp)(this.configuration).deleteInvite(requestParameters.
|
|
576
|
+
return (0, exports.InviteUsersApiFp)(this.configuration).deleteInvite(requestParameters.id, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
587
577
|
};
|
|
588
578
|
/**
|
|
589
579
|
* This will deletes the users who has been invited. Supply array of ids that were returned when users has been created and this will delete it.
|
|
@@ -595,7 +585,7 @@ var InviteUsersApi = /** @class */ (function (_super) {
|
|
|
595
585
|
*/
|
|
596
586
|
InviteUsersApi.prototype.deleteInvites = function (requestParameters, options) {
|
|
597
587
|
var _this = this;
|
|
598
|
-
return (0, exports.InviteUsersApiFp)(this.configuration).deleteInvites(requestParameters.
|
|
588
|
+
return (0, exports.InviteUsersApiFp)(this.configuration).deleteInvites(requestParameters.batchDeleteRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
599
589
|
};
|
|
600
590
|
/**
|
|
601
591
|
* This send an email to invite a user with the specific role/roles.
|
|
@@ -607,7 +597,7 @@ var InviteUsersApi = /** @class */ (function (_super) {
|
|
|
607
597
|
*/
|
|
608
598
|
InviteUsersApi.prototype.inviteUser = function (requestParameters, options) {
|
|
609
599
|
var _this = this;
|
|
610
|
-
return (0, exports.InviteUsersApiFp)(this.configuration).inviteUser(requestParameters.
|
|
600
|
+
return (0, exports.InviteUsersApiFp)(this.configuration).inviteUser(requestParameters.inviteUserRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
611
601
|
};
|
|
612
602
|
/**
|
|
613
603
|
* This send bulk emails to invite users with the specific role/roles.
|
|
@@ -619,7 +609,7 @@ var InviteUsersApi = /** @class */ (function (_super) {
|
|
|
619
609
|
*/
|
|
620
610
|
InviteUsersApi.prototype.inviteUsers = function (requestParameters, options) {
|
|
621
611
|
var _this = this;
|
|
622
|
-
return (0, exports.InviteUsersApiFp)(this.configuration).inviteUsers(requestParameters.
|
|
612
|
+
return (0, exports.InviteUsersApiFp)(this.configuration).inviteUsers(requestParameters.inviteUsersRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
623
613
|
};
|
|
624
614
|
/**
|
|
625
615
|
* Returns a list of invited users you have previously created. The invited users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
@@ -631,6 +621,7 @@ var InviteUsersApi = /** @class */ (function (_super) {
|
|
|
631
621
|
*/
|
|
632
622
|
InviteUsersApi.prototype.listInvites = function (requestParameters, options) {
|
|
633
623
|
var _this = this;
|
|
624
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
634
625
|
return (0, exports.InviteUsersApiFp)(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); });
|
|
635
626
|
};
|
|
636
627
|
return InviteUsersApi;
|
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL Tenant Service
|
|
3
|
+
* The EMIL TenantService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
|
+
import { Configuration } from '../configuration';
|
|
14
|
+
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import { GetOrganizationResponseClass } from '../models';
|
|
16
|
+
import { ListOrganizationsResponseClass } from '../models';
|
|
17
|
+
/**
|
|
18
|
+
* OrganizationsApi - axios parameter creator
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
export declare const OrganizationsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
22
|
+
/**
|
|
23
|
+
* Get Organization by code
|
|
24
|
+
* @summary Retrieve the Organization
|
|
25
|
+
* @param {string} code
|
|
26
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
27
|
+
* @param {*} [options] Override http request option.
|
|
28
|
+
* @throws {RequiredError}
|
|
29
|
+
*/
|
|
30
|
+
getOrganization: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
31
|
+
/**
|
|
32
|
+
* This will fetch list of organizations
|
|
33
|
+
* @summary List organizations
|
|
34
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
35
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
36
|
+
* @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.
|
|
37
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
38
|
+
* @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.
|
|
39
|
+
* @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.
|
|
40
|
+
* @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.
|
|
41
|
+
* @param {*} [options] Override http request option.
|
|
42
|
+
* @throws {RequiredError}
|
|
43
|
+
*/
|
|
44
|
+
listOrganizations: (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
45
|
+
/**
|
|
46
|
+
* Update organization data
|
|
47
|
+
* @summary Update the Organization
|
|
48
|
+
* @param {string} code
|
|
49
|
+
* @param {object} body
|
|
50
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
51
|
+
* @param {*} [options] Override http request option.
|
|
52
|
+
* @throws {RequiredError}
|
|
53
|
+
*/
|
|
54
|
+
updateOrganization: (code: string, body: object, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* OrganizationsApi - functional programming interface
|
|
58
|
+
* @export
|
|
59
|
+
*/
|
|
60
|
+
export declare const OrganizationsApiFp: (configuration?: Configuration) => {
|
|
61
|
+
/**
|
|
62
|
+
* Get Organization by code
|
|
63
|
+
* @summary Retrieve the Organization
|
|
64
|
+
* @param {string} code
|
|
65
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
66
|
+
* @param {*} [options] Override http request option.
|
|
67
|
+
* @throws {RequiredError}
|
|
68
|
+
*/
|
|
69
|
+
getOrganization(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetOrganizationResponseClass>>;
|
|
70
|
+
/**
|
|
71
|
+
* This will fetch list of organizations
|
|
72
|
+
* @summary List organizations
|
|
73
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
74
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
75
|
+
* @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.
|
|
76
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
77
|
+
* @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.
|
|
78
|
+
* @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.
|
|
79
|
+
* @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.
|
|
80
|
+
* @param {*} [options] Override http request option.
|
|
81
|
+
* @throws {RequiredError}
|
|
82
|
+
*/
|
|
83
|
+
listOrganizations(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListOrganizationsResponseClass>>;
|
|
84
|
+
/**
|
|
85
|
+
* Update organization data
|
|
86
|
+
* @summary Update the Organization
|
|
87
|
+
* @param {string} code
|
|
88
|
+
* @param {object} body
|
|
89
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
90
|
+
* @param {*} [options] Override http request option.
|
|
91
|
+
* @throws {RequiredError}
|
|
92
|
+
*/
|
|
93
|
+
updateOrganization(code: string, body: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
|
|
94
|
+
};
|
|
95
|
+
/**
|
|
96
|
+
* OrganizationsApi - factory interface
|
|
97
|
+
* @export
|
|
98
|
+
*/
|
|
99
|
+
export declare const OrganizationsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
100
|
+
/**
|
|
101
|
+
* Get Organization by code
|
|
102
|
+
* @summary Retrieve the Organization
|
|
103
|
+
* @param {string} code
|
|
104
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
105
|
+
* @param {*} [options] Override http request option.
|
|
106
|
+
* @throws {RequiredError}
|
|
107
|
+
*/
|
|
108
|
+
getOrganization(code: string, authorization?: string, options?: any): AxiosPromise<GetOrganizationResponseClass>;
|
|
109
|
+
/**
|
|
110
|
+
* This will fetch list of organizations
|
|
111
|
+
* @summary List organizations
|
|
112
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
113
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
114
|
+
* @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.
|
|
115
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
116
|
+
* @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.
|
|
117
|
+
* @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.
|
|
118
|
+
* @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.
|
|
119
|
+
* @param {*} [options] Override http request option.
|
|
120
|
+
* @throws {RequiredError}
|
|
121
|
+
*/
|
|
122
|
+
listOrganizations(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListOrganizationsResponseClass>;
|
|
123
|
+
/**
|
|
124
|
+
* Update organization data
|
|
125
|
+
* @summary Update the Organization
|
|
126
|
+
* @param {string} code
|
|
127
|
+
* @param {object} body
|
|
128
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
129
|
+
* @param {*} [options] Override http request option.
|
|
130
|
+
* @throws {RequiredError}
|
|
131
|
+
*/
|
|
132
|
+
updateOrganization(code: string, body: object, authorization?: string, options?: any): AxiosPromise<object>;
|
|
133
|
+
};
|
|
134
|
+
/**
|
|
135
|
+
* Request parameters for getOrganization operation in OrganizationsApi.
|
|
136
|
+
* @export
|
|
137
|
+
* @interface OrganizationsApiGetOrganizationRequest
|
|
138
|
+
*/
|
|
139
|
+
export interface OrganizationsApiGetOrganizationRequest {
|
|
140
|
+
/**
|
|
141
|
+
*
|
|
142
|
+
* @type {string}
|
|
143
|
+
* @memberof OrganizationsApiGetOrganization
|
|
144
|
+
*/
|
|
145
|
+
readonly code: string;
|
|
146
|
+
/**
|
|
147
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
148
|
+
* @type {string}
|
|
149
|
+
* @memberof OrganizationsApiGetOrganization
|
|
150
|
+
*/
|
|
151
|
+
readonly authorization?: string;
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Request parameters for listOrganizations operation in OrganizationsApi.
|
|
155
|
+
* @export
|
|
156
|
+
* @interface OrganizationsApiListOrganizationsRequest
|
|
157
|
+
*/
|
|
158
|
+
export interface OrganizationsApiListOrganizationsRequest {
|
|
159
|
+
/**
|
|
160
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
161
|
+
* @type {string}
|
|
162
|
+
* @memberof OrganizationsApiListOrganizations
|
|
163
|
+
*/
|
|
164
|
+
readonly authorization?: string;
|
|
165
|
+
/**
|
|
166
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
167
|
+
* @type {any}
|
|
168
|
+
* @memberof OrganizationsApiListOrganizations
|
|
169
|
+
*/
|
|
170
|
+
readonly pageSize?: any;
|
|
171
|
+
/**
|
|
172
|
+
* 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.
|
|
173
|
+
* @type {any}
|
|
174
|
+
* @memberof OrganizationsApiListOrganizations
|
|
175
|
+
*/
|
|
176
|
+
readonly pageToken?: any;
|
|
177
|
+
/**
|
|
178
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
179
|
+
* @type {any}
|
|
180
|
+
* @memberof OrganizationsApiListOrganizations
|
|
181
|
+
*/
|
|
182
|
+
readonly filter?: any;
|
|
183
|
+
/**
|
|
184
|
+
* Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
185
|
+
* @type {any}
|
|
186
|
+
* @memberof OrganizationsApiListOrganizations
|
|
187
|
+
*/
|
|
188
|
+
readonly search?: any;
|
|
189
|
+
/**
|
|
190
|
+
* 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.
|
|
191
|
+
* @type {any}
|
|
192
|
+
* @memberof OrganizationsApiListOrganizations
|
|
193
|
+
*/
|
|
194
|
+
readonly order?: any;
|
|
195
|
+
/**
|
|
196
|
+
* 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.
|
|
197
|
+
* @type {any}
|
|
198
|
+
* @memberof OrganizationsApiListOrganizations
|
|
199
|
+
*/
|
|
200
|
+
readonly expand?: any;
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* Request parameters for updateOrganization operation in OrganizationsApi.
|
|
204
|
+
* @export
|
|
205
|
+
* @interface OrganizationsApiUpdateOrganizationRequest
|
|
206
|
+
*/
|
|
207
|
+
export interface OrganizationsApiUpdateOrganizationRequest {
|
|
208
|
+
/**
|
|
209
|
+
*
|
|
210
|
+
* @type {string}
|
|
211
|
+
* @memberof OrganizationsApiUpdateOrganization
|
|
212
|
+
*/
|
|
213
|
+
readonly code: string;
|
|
214
|
+
/**
|
|
215
|
+
*
|
|
216
|
+
* @type {object}
|
|
217
|
+
* @memberof OrganizationsApiUpdateOrganization
|
|
218
|
+
*/
|
|
219
|
+
readonly body: object;
|
|
220
|
+
/**
|
|
221
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
222
|
+
* @type {string}
|
|
223
|
+
* @memberof OrganizationsApiUpdateOrganization
|
|
224
|
+
*/
|
|
225
|
+
readonly authorization?: string;
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
* OrganizationsApi - object-oriented interface
|
|
229
|
+
* @export
|
|
230
|
+
* @class OrganizationsApi
|
|
231
|
+
* @extends {BaseAPI}
|
|
232
|
+
*/
|
|
233
|
+
export declare class OrganizationsApi extends BaseAPI {
|
|
234
|
+
/**
|
|
235
|
+
* Get Organization by code
|
|
236
|
+
* @summary Retrieve the Organization
|
|
237
|
+
* @param {OrganizationsApiGetOrganizationRequest} requestParameters Request parameters.
|
|
238
|
+
* @param {*} [options] Override http request option.
|
|
239
|
+
* @throws {RequiredError}
|
|
240
|
+
* @memberof OrganizationsApi
|
|
241
|
+
*/
|
|
242
|
+
getOrganization(requestParameters: OrganizationsApiGetOrganizationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetOrganizationResponseClass, any>>;
|
|
243
|
+
/**
|
|
244
|
+
* This will fetch list of organizations
|
|
245
|
+
* @summary List organizations
|
|
246
|
+
* @param {OrganizationsApiListOrganizationsRequest} requestParameters Request parameters.
|
|
247
|
+
* @param {*} [options] Override http request option.
|
|
248
|
+
* @throws {RequiredError}
|
|
249
|
+
* @memberof OrganizationsApi
|
|
250
|
+
*/
|
|
251
|
+
listOrganizations(requestParameters?: OrganizationsApiListOrganizationsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListOrganizationsResponseClass, any>>;
|
|
252
|
+
/**
|
|
253
|
+
* Update organization data
|
|
254
|
+
* @summary Update the Organization
|
|
255
|
+
* @param {OrganizationsApiUpdateOrganizationRequest} requestParameters Request parameters.
|
|
256
|
+
* @param {*} [options] Override http request option.
|
|
257
|
+
* @throws {RequiredError}
|
|
258
|
+
* @memberof OrganizationsApi
|
|
259
|
+
*/
|
|
260
|
+
updateOrganization(requestParameters: OrganizationsApiUpdateOrganizationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
|
|
261
|
+
}
|