@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
package/api/invite-users-api.ts
CHANGED
|
@@ -23,12 +23,18 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
|
|
|
23
23
|
// @ts-ignore
|
|
24
24
|
import { BatchDeleteRequestDto } from '../models';
|
|
25
25
|
// @ts-ignore
|
|
26
|
+
import { BatchDeleteResponseClass } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { DeleteResponseClass } from '../models';
|
|
29
|
+
// @ts-ignore
|
|
26
30
|
import { InviteUserRequestDto } from '../models';
|
|
27
31
|
// @ts-ignore
|
|
28
32
|
import { InviteUserResponseClass } from '../models';
|
|
29
33
|
// @ts-ignore
|
|
30
34
|
import { InviteUsersRequestDto } from '../models';
|
|
31
35
|
// @ts-ignore
|
|
36
|
+
import { InviteUsersResponseClass } from '../models';
|
|
37
|
+
// @ts-ignore
|
|
32
38
|
import { ListInvitesResponseClass } from '../models';
|
|
33
39
|
// URLSearchParams not necessarily used
|
|
34
40
|
// @ts-ignore
|
|
@@ -43,14 +49,12 @@ export const InviteUsersApiAxiosParamCreator = function (configuration?: Configu
|
|
|
43
49
|
/**
|
|
44
50
|
* Permanently deletes the invited user. Supply the unique id that was returned when you created the invited user and this will delete it.
|
|
45
51
|
* @summary Delete the invited user
|
|
46
|
-
* @param {string} authorization Bearer Token
|
|
47
52
|
* @param {number} id
|
|
53
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
48
54
|
* @param {*} [options] Override http request option.
|
|
49
55
|
* @throws {RequiredError}
|
|
50
56
|
*/
|
|
51
|
-
deleteInvite: async (
|
|
52
|
-
// verify required parameter 'authorization' is not null or undefined
|
|
53
|
-
assertParamExists('deleteInvite', 'authorization', authorization)
|
|
57
|
+
deleteInvite: async (id: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
54
58
|
// verify required parameter 'id' is not null or undefined
|
|
55
59
|
assertParamExists('deleteInvite', 'id', id)
|
|
56
60
|
const localVarPath = `/tenantservice/v1/users/invites/{id}`
|
|
@@ -90,14 +94,12 @@ export const InviteUsersApiAxiosParamCreator = function (configuration?: Configu
|
|
|
90
94
|
/**
|
|
91
95
|
* 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.
|
|
92
96
|
* @summary Delete invited users.
|
|
93
|
-
* @param {string} authorization Bearer Token
|
|
94
97
|
* @param {BatchDeleteRequestDto} batchDeleteRequestDto
|
|
98
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
95
99
|
* @param {*} [options] Override http request option.
|
|
96
100
|
* @throws {RequiredError}
|
|
97
101
|
*/
|
|
98
|
-
deleteInvites: async (
|
|
99
|
-
// verify required parameter 'authorization' is not null or undefined
|
|
100
|
-
assertParamExists('deleteInvites', 'authorization', authorization)
|
|
102
|
+
deleteInvites: async (batchDeleteRequestDto: BatchDeleteRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
101
103
|
// verify required parameter 'batchDeleteRequestDto' is not null or undefined
|
|
102
104
|
assertParamExists('deleteInvites', 'batchDeleteRequestDto', batchDeleteRequestDto)
|
|
103
105
|
const localVarPath = `/tenantservice/v1/users/invites/delete-batch`;
|
|
@@ -139,14 +141,12 @@ export const InviteUsersApiAxiosParamCreator = function (configuration?: Configu
|
|
|
139
141
|
/**
|
|
140
142
|
* This send an email to invite a user with the specific role/roles.
|
|
141
143
|
* @summary Invite a user
|
|
142
|
-
* @param {string} authorization Bearer Token
|
|
143
144
|
* @param {InviteUserRequestDto} inviteUserRequestDto
|
|
145
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
144
146
|
* @param {*} [options] Override http request option.
|
|
145
147
|
* @throws {RequiredError}
|
|
146
148
|
*/
|
|
147
|
-
inviteUser: async (
|
|
148
|
-
// verify required parameter 'authorization' is not null or undefined
|
|
149
|
-
assertParamExists('inviteUser', 'authorization', authorization)
|
|
149
|
+
inviteUser: async (inviteUserRequestDto: InviteUserRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
150
150
|
// verify required parameter 'inviteUserRequestDto' is not null or undefined
|
|
151
151
|
assertParamExists('inviteUser', 'inviteUserRequestDto', inviteUserRequestDto)
|
|
152
152
|
const localVarPath = `/tenantservice/v1/users/invites`;
|
|
@@ -188,14 +188,12 @@ export const InviteUsersApiAxiosParamCreator = function (configuration?: Configu
|
|
|
188
188
|
/**
|
|
189
189
|
* This send bulk emails to invite users with the specific role/roles.
|
|
190
190
|
* @summary Invite batch of users
|
|
191
|
-
* @param {string} authorization Bearer Token
|
|
192
191
|
* @param {InviteUsersRequestDto} inviteUsersRequestDto
|
|
192
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
193
193
|
* @param {*} [options] Override http request option.
|
|
194
194
|
* @throws {RequiredError}
|
|
195
195
|
*/
|
|
196
|
-
inviteUsers: async (
|
|
197
|
-
// verify required parameter 'authorization' is not null or undefined
|
|
198
|
-
assertParamExists('inviteUsers', 'authorization', authorization)
|
|
196
|
+
inviteUsers: async (inviteUsersRequestDto: InviteUsersRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
199
197
|
// verify required parameter 'inviteUsersRequestDto' is not null or undefined
|
|
200
198
|
assertParamExists('inviteUsers', 'inviteUsersRequestDto', inviteUsersRequestDto)
|
|
201
199
|
const localVarPath = `/tenantservice/v1/users/invites/batch`;
|
|
@@ -237,7 +235,7 @@ export const InviteUsersApiAxiosParamCreator = function (configuration?: Configu
|
|
|
237
235
|
/**
|
|
238
236
|
* 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.
|
|
239
237
|
* @summary List invited users
|
|
240
|
-
* @param {string} authorization Bearer Token
|
|
238
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
241
239
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
242
240
|
* @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.
|
|
243
241
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
@@ -247,9 +245,7 @@ export const InviteUsersApiAxiosParamCreator = function (configuration?: Configu
|
|
|
247
245
|
* @param {*} [options] Override http request option.
|
|
248
246
|
* @throws {RequiredError}
|
|
249
247
|
*/
|
|
250
|
-
listInvites: async (authorization
|
|
251
|
-
// verify required parameter 'authorization' is not null or undefined
|
|
252
|
-
assertParamExists('listInvites', 'authorization', authorization)
|
|
248
|
+
listInvites: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
253
249
|
const localVarPath = `/tenantservice/v1/users/invites`;
|
|
254
250
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
255
251
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -320,55 +316,55 @@ export const InviteUsersApiFp = function(configuration?: Configuration) {
|
|
|
320
316
|
/**
|
|
321
317
|
* Permanently deletes the invited user. Supply the unique id that was returned when you created the invited user and this will delete it.
|
|
322
318
|
* @summary Delete the invited user
|
|
323
|
-
* @param {string} authorization Bearer Token
|
|
324
319
|
* @param {number} id
|
|
320
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
325
321
|
* @param {*} [options] Override http request option.
|
|
326
322
|
* @throws {RequiredError}
|
|
327
323
|
*/
|
|
328
|
-
async deleteInvite(
|
|
329
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteInvite(
|
|
324
|
+
async deleteInvite(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>> {
|
|
325
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteInvite(id, authorization, options);
|
|
330
326
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
331
327
|
},
|
|
332
328
|
/**
|
|
333
329
|
* 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.
|
|
334
330
|
* @summary Delete invited users.
|
|
335
|
-
* @param {string} authorization Bearer Token
|
|
336
331
|
* @param {BatchDeleteRequestDto} batchDeleteRequestDto
|
|
332
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
337
333
|
* @param {*} [options] Override http request option.
|
|
338
334
|
* @throws {RequiredError}
|
|
339
335
|
*/
|
|
340
|
-
async deleteInvites(
|
|
341
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteInvites(
|
|
336
|
+
async deleteInvites(batchDeleteRequestDto: BatchDeleteRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BatchDeleteResponseClass>> {
|
|
337
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteInvites(batchDeleteRequestDto, authorization, options);
|
|
342
338
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
343
339
|
},
|
|
344
340
|
/**
|
|
345
341
|
* This send an email to invite a user with the specific role/roles.
|
|
346
342
|
* @summary Invite a user
|
|
347
|
-
* @param {string} authorization Bearer Token
|
|
348
343
|
* @param {InviteUserRequestDto} inviteUserRequestDto
|
|
344
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
349
345
|
* @param {*} [options] Override http request option.
|
|
350
346
|
* @throws {RequiredError}
|
|
351
347
|
*/
|
|
352
|
-
async inviteUser(
|
|
353
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.inviteUser(
|
|
348
|
+
async inviteUser(inviteUserRequestDto: InviteUserRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteUserResponseClass>> {
|
|
349
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.inviteUser(inviteUserRequestDto, authorization, options);
|
|
354
350
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
355
351
|
},
|
|
356
352
|
/**
|
|
357
353
|
* This send bulk emails to invite users with the specific role/roles.
|
|
358
354
|
* @summary Invite batch of users
|
|
359
|
-
* @param {string} authorization Bearer Token
|
|
360
355
|
* @param {InviteUsersRequestDto} inviteUsersRequestDto
|
|
356
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
361
357
|
* @param {*} [options] Override http request option.
|
|
362
358
|
* @throws {RequiredError}
|
|
363
359
|
*/
|
|
364
|
-
async inviteUsers(
|
|
365
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.inviteUsers(
|
|
360
|
+
async inviteUsers(inviteUsersRequestDto: InviteUsersRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteUsersResponseClass>> {
|
|
361
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.inviteUsers(inviteUsersRequestDto, authorization, options);
|
|
366
362
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
367
363
|
},
|
|
368
364
|
/**
|
|
369
365
|
* 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.
|
|
370
366
|
* @summary List invited users
|
|
371
|
-
* @param {string} authorization Bearer Token
|
|
367
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
372
368
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
373
369
|
* @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
370
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
@@ -378,7 +374,7 @@ export const InviteUsersApiFp = function(configuration?: Configuration) {
|
|
|
378
374
|
* @param {*} [options] Override http request option.
|
|
379
375
|
* @throws {RequiredError}
|
|
380
376
|
*/
|
|
381
|
-
async listInvites(authorization
|
|
377
|
+
async listInvites(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListInvitesResponseClass>> {
|
|
382
378
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listInvites(authorization, pageSize, pageToken, filter, search, order, expand, options);
|
|
383
379
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
384
380
|
},
|
|
@@ -395,51 +391,51 @@ export const InviteUsersApiFactory = function (configuration?: Configuration, ba
|
|
|
395
391
|
/**
|
|
396
392
|
* Permanently deletes the invited user. Supply the unique id that was returned when you created the invited user and this will delete it.
|
|
397
393
|
* @summary Delete the invited user
|
|
398
|
-
* @param {string} authorization Bearer Token
|
|
399
394
|
* @param {number} id
|
|
395
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
400
396
|
* @param {*} [options] Override http request option.
|
|
401
397
|
* @throws {RequiredError}
|
|
402
398
|
*/
|
|
403
|
-
deleteInvite(
|
|
404
|
-
return localVarFp.deleteInvite(
|
|
399
|
+
deleteInvite(id: number, authorization?: string, options?: any): AxiosPromise<DeleteResponseClass> {
|
|
400
|
+
return localVarFp.deleteInvite(id, authorization, options).then((request) => request(axios, basePath));
|
|
405
401
|
},
|
|
406
402
|
/**
|
|
407
403
|
* 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.
|
|
408
404
|
* @summary Delete invited users.
|
|
409
|
-
* @param {string} authorization Bearer Token
|
|
410
405
|
* @param {BatchDeleteRequestDto} batchDeleteRequestDto
|
|
406
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
411
407
|
* @param {*} [options] Override http request option.
|
|
412
408
|
* @throws {RequiredError}
|
|
413
409
|
*/
|
|
414
|
-
deleteInvites(
|
|
415
|
-
return localVarFp.deleteInvites(
|
|
410
|
+
deleteInvites(batchDeleteRequestDto: BatchDeleteRequestDto, authorization?: string, options?: any): AxiosPromise<BatchDeleteResponseClass> {
|
|
411
|
+
return localVarFp.deleteInvites(batchDeleteRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
416
412
|
},
|
|
417
413
|
/**
|
|
418
414
|
* This send an email to invite a user with the specific role/roles.
|
|
419
415
|
* @summary Invite a user
|
|
420
|
-
* @param {string} authorization Bearer Token
|
|
421
416
|
* @param {InviteUserRequestDto} inviteUserRequestDto
|
|
417
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
422
418
|
* @param {*} [options] Override http request option.
|
|
423
419
|
* @throws {RequiredError}
|
|
424
420
|
*/
|
|
425
|
-
inviteUser(
|
|
426
|
-
return localVarFp.inviteUser(
|
|
421
|
+
inviteUser(inviteUserRequestDto: InviteUserRequestDto, authorization?: string, options?: any): AxiosPromise<InviteUserResponseClass> {
|
|
422
|
+
return localVarFp.inviteUser(inviteUserRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
427
423
|
},
|
|
428
424
|
/**
|
|
429
425
|
* This send bulk emails to invite users with the specific role/roles.
|
|
430
426
|
* @summary Invite batch of users
|
|
431
|
-
* @param {string} authorization Bearer Token
|
|
432
427
|
* @param {InviteUsersRequestDto} inviteUsersRequestDto
|
|
428
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
433
429
|
* @param {*} [options] Override http request option.
|
|
434
430
|
* @throws {RequiredError}
|
|
435
431
|
*/
|
|
436
|
-
inviteUsers(
|
|
437
|
-
return localVarFp.inviteUsers(
|
|
432
|
+
inviteUsers(inviteUsersRequestDto: InviteUsersRequestDto, authorization?: string, options?: any): AxiosPromise<InviteUsersResponseClass> {
|
|
433
|
+
return localVarFp.inviteUsers(inviteUsersRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
438
434
|
},
|
|
439
435
|
/**
|
|
440
436
|
* 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.
|
|
441
437
|
* @summary List invited users
|
|
442
|
-
* @param {string} authorization Bearer Token
|
|
438
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
443
439
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
444
440
|
* @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.
|
|
445
441
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
@@ -449,7 +445,7 @@ export const InviteUsersApiFactory = function (configuration?: Configuration, ba
|
|
|
449
445
|
* @param {*} [options] Override http request option.
|
|
450
446
|
* @throws {RequiredError}
|
|
451
447
|
*/
|
|
452
|
-
listInvites(authorization
|
|
448
|
+
listInvites(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListInvitesResponseClass> {
|
|
453
449
|
return localVarFp.listInvites(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
|
|
454
450
|
},
|
|
455
451
|
};
|
|
@@ -462,18 +458,18 @@ export const InviteUsersApiFactory = function (configuration?: Configuration, ba
|
|
|
462
458
|
*/
|
|
463
459
|
export interface InviteUsersApiDeleteInviteRequest {
|
|
464
460
|
/**
|
|
465
|
-
*
|
|
466
|
-
* @type {
|
|
461
|
+
*
|
|
462
|
+
* @type {number}
|
|
467
463
|
* @memberof InviteUsersApiDeleteInvite
|
|
468
464
|
*/
|
|
469
|
-
readonly
|
|
465
|
+
readonly id: number
|
|
470
466
|
|
|
471
467
|
/**
|
|
472
|
-
*
|
|
473
|
-
* @type {
|
|
468
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
469
|
+
* @type {string}
|
|
474
470
|
* @memberof InviteUsersApiDeleteInvite
|
|
475
471
|
*/
|
|
476
|
-
readonly
|
|
472
|
+
readonly authorization?: string
|
|
477
473
|
}
|
|
478
474
|
|
|
479
475
|
/**
|
|
@@ -483,18 +479,18 @@ export interface InviteUsersApiDeleteInviteRequest {
|
|
|
483
479
|
*/
|
|
484
480
|
export interface InviteUsersApiDeleteInvitesRequest {
|
|
485
481
|
/**
|
|
486
|
-
*
|
|
487
|
-
* @type {
|
|
482
|
+
*
|
|
483
|
+
* @type {BatchDeleteRequestDto}
|
|
488
484
|
* @memberof InviteUsersApiDeleteInvites
|
|
489
485
|
*/
|
|
490
|
-
readonly
|
|
486
|
+
readonly batchDeleteRequestDto: BatchDeleteRequestDto
|
|
491
487
|
|
|
492
488
|
/**
|
|
493
|
-
*
|
|
494
|
-
* @type {
|
|
489
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
490
|
+
* @type {string}
|
|
495
491
|
* @memberof InviteUsersApiDeleteInvites
|
|
496
492
|
*/
|
|
497
|
-
readonly
|
|
493
|
+
readonly authorization?: string
|
|
498
494
|
}
|
|
499
495
|
|
|
500
496
|
/**
|
|
@@ -504,18 +500,18 @@ export interface InviteUsersApiDeleteInvitesRequest {
|
|
|
504
500
|
*/
|
|
505
501
|
export interface InviteUsersApiInviteUserRequest {
|
|
506
502
|
/**
|
|
507
|
-
*
|
|
508
|
-
* @type {
|
|
503
|
+
*
|
|
504
|
+
* @type {InviteUserRequestDto}
|
|
509
505
|
* @memberof InviteUsersApiInviteUser
|
|
510
506
|
*/
|
|
511
|
-
readonly
|
|
507
|
+
readonly inviteUserRequestDto: InviteUserRequestDto
|
|
512
508
|
|
|
513
509
|
/**
|
|
514
|
-
*
|
|
515
|
-
* @type {
|
|
510
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
511
|
+
* @type {string}
|
|
516
512
|
* @memberof InviteUsersApiInviteUser
|
|
517
513
|
*/
|
|
518
|
-
readonly
|
|
514
|
+
readonly authorization?: string
|
|
519
515
|
}
|
|
520
516
|
|
|
521
517
|
/**
|
|
@@ -525,18 +521,18 @@ export interface InviteUsersApiInviteUserRequest {
|
|
|
525
521
|
*/
|
|
526
522
|
export interface InviteUsersApiInviteUsersRequest {
|
|
527
523
|
/**
|
|
528
|
-
*
|
|
529
|
-
* @type {
|
|
524
|
+
*
|
|
525
|
+
* @type {InviteUsersRequestDto}
|
|
530
526
|
* @memberof InviteUsersApiInviteUsers
|
|
531
527
|
*/
|
|
532
|
-
readonly
|
|
528
|
+
readonly inviteUsersRequestDto: InviteUsersRequestDto
|
|
533
529
|
|
|
534
530
|
/**
|
|
535
|
-
*
|
|
536
|
-
* @type {
|
|
531
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
532
|
+
* @type {string}
|
|
537
533
|
* @memberof InviteUsersApiInviteUsers
|
|
538
534
|
*/
|
|
539
|
-
readonly
|
|
535
|
+
readonly authorization?: string
|
|
540
536
|
}
|
|
541
537
|
|
|
542
538
|
/**
|
|
@@ -546,11 +542,11 @@ export interface InviteUsersApiInviteUsersRequest {
|
|
|
546
542
|
*/
|
|
547
543
|
export interface InviteUsersApiListInvitesRequest {
|
|
548
544
|
/**
|
|
549
|
-
* Bearer Token
|
|
545
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
550
546
|
* @type {string}
|
|
551
547
|
* @memberof InviteUsersApiListInvites
|
|
552
548
|
*/
|
|
553
|
-
readonly authorization
|
|
549
|
+
readonly authorization?: string
|
|
554
550
|
|
|
555
551
|
/**
|
|
556
552
|
* A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
@@ -611,7 +607,7 @@ export class InviteUsersApi extends BaseAPI {
|
|
|
611
607
|
* @memberof InviteUsersApi
|
|
612
608
|
*/
|
|
613
609
|
public deleteInvite(requestParameters: InviteUsersApiDeleteInviteRequest, options?: AxiosRequestConfig) {
|
|
614
|
-
return InviteUsersApiFp(this.configuration).deleteInvite(requestParameters.
|
|
610
|
+
return InviteUsersApiFp(this.configuration).deleteInvite(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
615
611
|
}
|
|
616
612
|
|
|
617
613
|
/**
|
|
@@ -623,7 +619,7 @@ export class InviteUsersApi extends BaseAPI {
|
|
|
623
619
|
* @memberof InviteUsersApi
|
|
624
620
|
*/
|
|
625
621
|
public deleteInvites(requestParameters: InviteUsersApiDeleteInvitesRequest, options?: AxiosRequestConfig) {
|
|
626
|
-
return InviteUsersApiFp(this.configuration).deleteInvites(requestParameters.
|
|
622
|
+
return InviteUsersApiFp(this.configuration).deleteInvites(requestParameters.batchDeleteRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
627
623
|
}
|
|
628
624
|
|
|
629
625
|
/**
|
|
@@ -635,7 +631,7 @@ export class InviteUsersApi extends BaseAPI {
|
|
|
635
631
|
* @memberof InviteUsersApi
|
|
636
632
|
*/
|
|
637
633
|
public inviteUser(requestParameters: InviteUsersApiInviteUserRequest, options?: AxiosRequestConfig) {
|
|
638
|
-
return InviteUsersApiFp(this.configuration).inviteUser(requestParameters.
|
|
634
|
+
return InviteUsersApiFp(this.configuration).inviteUser(requestParameters.inviteUserRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
639
635
|
}
|
|
640
636
|
|
|
641
637
|
/**
|
|
@@ -647,7 +643,7 @@ export class InviteUsersApi extends BaseAPI {
|
|
|
647
643
|
* @memberof InviteUsersApi
|
|
648
644
|
*/
|
|
649
645
|
public inviteUsers(requestParameters: InviteUsersApiInviteUsersRequest, options?: AxiosRequestConfig) {
|
|
650
|
-
return InviteUsersApiFp(this.configuration).inviteUsers(requestParameters.
|
|
646
|
+
return InviteUsersApiFp(this.configuration).inviteUsers(requestParameters.inviteUsersRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
651
647
|
}
|
|
652
648
|
|
|
653
649
|
/**
|
|
@@ -658,7 +654,7 @@ export class InviteUsersApi extends BaseAPI {
|
|
|
658
654
|
* @throws {RequiredError}
|
|
659
655
|
* @memberof InviteUsersApi
|
|
660
656
|
*/
|
|
661
|
-
public listInvites(requestParameters: InviteUsersApiListInvitesRequest, options?: AxiosRequestConfig) {
|
|
657
|
+
public listInvites(requestParameters: InviteUsersApiListInvitesRequest = {}, options?: AxiosRequestConfig) {
|
|
662
658
|
return InviteUsersApiFp(this.configuration).listInvites(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
663
659
|
}
|
|
664
660
|
}
|