@emilgroup/tenant-sdk 1.0.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 +80 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +68 -0
- package/api/custom-schema-api.ts +580 -0
- package/api/data-report-api.ts +677 -0
- package/api/data-report-executor-api.ts +165 -0
- package/api/invite-organizations-api.ts +343 -0
- package/api/invite-users-api.ts +660 -0
- package/api/organizations-api.ts +339 -0
- package/api/users-api.ts +1087 -0
- package/api.ts +43 -0
- package/base.ts +284 -0
- package/common.ts +199 -0
- package/configuration.ts +109 -0
- package/dist/api/custom-schema-api.d.ts +329 -0
- package/dist/api/custom-schema-api.js +548 -0
- package/dist/api/data-report-api.d.ts +380 -0
- package/dist/api/data-report-api.js +636 -0
- package/dist/api/data-report-executor-api.d.ts +93 -0
- package/dist/api/data-report-executor-api.js +224 -0
- package/dist/api/invite-organizations-api.d.ts +198 -0
- package/dist/api/invite-organizations-api.js +351 -0
- package/dist/api/invite-users-api.d.ts +368 -0
- package/dist/api/invite-users-api.js +629 -0
- package/dist/api/organizations-api.d.ts +197 -0
- package/dist/api/organizations-api.js +350 -0
- package/dist/api/users-api.d.ts +588 -0
- package/dist/api/users-api.js +986 -0
- package/dist/api.d.ts +18 -0
- package/dist/api.js +36 -0
- package/dist/base.d.ts +77 -0
- package/dist/base.js +393 -0
- package/dist/common.d.ts +92 -0
- package/dist/common.js +277 -0
- package/dist/configuration.d.ts +90 -0
- package/dist/configuration.js +44 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +36 -0
- package/dist/models/assign-user-roles-request-dto.d.ts +30 -0
- package/dist/models/assign-user-roles-request-dto.js +15 -0
- package/dist/models/assign-user-roles-response-class.d.ts +25 -0
- package/dist/models/assign-user-roles-response-class.js +15 -0
- package/dist/models/batch-delete-request-dto.d.ts +24 -0
- package/dist/models/batch-delete-request-dto.js +15 -0
- package/dist/models/batch-delete-response-class.d.ts +24 -0
- package/dist/models/batch-delete-response-class.js +15 -0
- package/dist/models/create-custom-schema-request-dto.d.ts +45 -0
- package/dist/models/create-custom-schema-request-dto.js +23 -0
- package/dist/models/create-custom-schema-response-class.d.ts +25 -0
- package/dist/models/create-custom-schema-response-class.js +15 -0
- package/dist/models/create-data-report-request-dto.d.ts +61 -0
- package/dist/models/create-data-report-request-dto.js +15 -0
- package/dist/models/create-data-report-response-class.d.ts +25 -0
- package/dist/models/create-data-report-response-class.js +15 -0
- package/dist/models/create-permission-request-dto.d.ts +42 -0
- package/dist/models/create-permission-request-dto.js +15 -0
- package/dist/models/create-role-request-dto.d.ts +36 -0
- package/dist/models/create-role-request-dto.js +15 -0
- package/dist/models/create-tenant-request-dto.d.ts +56 -0
- package/dist/models/create-tenant-request-dto.js +15 -0
- package/dist/models/custom-field-dto.d.ts +68 -0
- package/dist/models/custom-field-dto.js +23 -0
- package/dist/models/custom-schema-class.d.ts +66 -0
- package/dist/models/custom-schema-class.js +15 -0
- package/dist/models/data-report-class.d.ts +79 -0
- package/dist/models/data-report-class.js +15 -0
- package/dist/models/data-report-filter-class.d.ts +72 -0
- package/dist/models/data-report-filter-class.js +15 -0
- package/dist/models/data-report-filter-dto.d.ts +48 -0
- package/dist/models/data-report-filter-dto.js +15 -0
- package/dist/models/data-report-filter-single-value-dto.d.ts +42 -0
- package/dist/models/data-report-filter-single-value-dto.js +15 -0
- package/dist/models/data-report-filter-value-dto.d.ts +31 -0
- package/dist/models/data-report-filter-value-dto.js +15 -0
- package/dist/models/dbconfig-dto.d.ts +48 -0
- package/dist/models/dbconfig-dto.js +15 -0
- package/dist/models/delete-response-class.d.ts +24 -0
- package/dist/models/delete-response-class.js +15 -0
- package/dist/models/disable-user-response-class.d.ts +25 -0
- package/dist/models/disable-user-response-class.js +15 -0
- package/dist/models/disable-users-request-dto.d.ts +24 -0
- package/dist/models/disable-users-request-dto.js +15 -0
- package/dist/models/disable-users-response-class.d.ts +24 -0
- package/dist/models/disable-users-response-class.js +15 -0
- package/dist/models/enable-user-response-class.d.ts +25 -0
- package/dist/models/enable-user-response-class.js +15 -0
- package/dist/models/enable-users-request-dto.d.ts +24 -0
- package/dist/models/enable-users-request-dto.js +15 -0
- package/dist/models/enable-users-response-class.d.ts +24 -0
- package/dist/models/enable-users-response-class.js +15 -0
- package/dist/models/get-custom-schema-response-class.d.ts +25 -0
- package/dist/models/get-custom-schema-response-class.js +15 -0
- package/dist/models/get-data-report-response-class.d.ts +25 -0
- package/dist/models/get-data-report-response-class.js +15 -0
- package/dist/models/get-organization-response-class.d.ts +25 -0
- package/dist/models/get-organization-response-class.js +15 -0
- package/dist/models/get-settings-response-class.d.ts +24 -0
- package/dist/models/get-settings-response-class.js +15 -0
- package/dist/models/get-user-response-class.d.ts +25 -0
- package/dist/models/get-user-response-class.js +15 -0
- package/dist/models/index.d.ts +60 -0
- package/dist/models/index.js +76 -0
- package/dist/models/invite-class.d.ts +55 -0
- package/dist/models/invite-class.js +15 -0
- package/dist/models/invite-org-request-dto.d.ts +78 -0
- package/dist/models/invite-org-request-dto.js +15 -0
- package/dist/models/invite-user-request-dto.d.ts +36 -0
- package/dist/models/invite-user-request-dto.js +15 -0
- package/dist/models/invite-user-response-class.d.ts +25 -0
- package/dist/models/invite-user-response-class.js +15 -0
- package/dist/models/invite-users-request-dto.d.ts +30 -0
- package/dist/models/invite-users-request-dto.js +15 -0
- package/dist/models/invite-users-response-class.d.ts +24 -0
- package/dist/models/invite-users-response-class.js +15 -0
- package/dist/models/list-custom-schemas-response-class.d.ts +30 -0
- package/dist/models/list-custom-schemas-response-class.js +15 -0
- package/dist/models/list-data-reports-response-class.d.ts +31 -0
- package/dist/models/list-data-reports-response-class.js +15 -0
- package/dist/models/list-invites-response-class.d.ts +31 -0
- package/dist/models/list-invites-response-class.js +15 -0
- package/dist/models/list-org-invitations-response-class.d.ts +31 -0
- package/dist/models/list-org-invitations-response-class.js +15 -0
- package/dist/models/list-organizations-response-class.d.ts +31 -0
- package/dist/models/list-organizations-response-class.js +15 -0
- package/dist/models/list-users-response-class.d.ts +31 -0
- package/dist/models/list-users-response-class.js +15 -0
- package/dist/models/org-invitation-class.d.ts +103 -0
- package/dist/models/org-invitation-class.js +15 -0
- package/dist/models/org-invitation-response-class.d.ts +25 -0
- package/dist/models/org-invitation-response-class.js +15 -0
- package/dist/models/organization-class.d.ts +84 -0
- package/dist/models/organization-class.js +15 -0
- package/dist/models/permission-class.d.ts +60 -0
- package/dist/models/permission-class.js +15 -0
- package/dist/models/role-class.d.ts +61 -0
- package/dist/models/role-class.js +15 -0
- package/dist/models/run-data-report-request-dto.d.ts +31 -0
- package/dist/models/run-data-report-request-dto.js +15 -0
- package/dist/models/run-data-report-response-class.d.ts +24 -0
- package/dist/models/run-data-report-response-class.js +15 -0
- package/dist/models/set-setting-request-dto.d.ts +36 -0
- package/dist/models/set-setting-request-dto.js +15 -0
- package/dist/models/set-user-setting-response-class.d.ts +36 -0
- package/dist/models/set-user-setting-response-class.js +15 -0
- package/dist/models/subscription-class.d.ts +67 -0
- package/dist/models/subscription-class.js +15 -0
- package/dist/models/tenant-admin-user-dto.d.ts +42 -0
- package/dist/models/tenant-admin-user-dto.js +15 -0
- package/dist/models/update-custom-schema-request-dto.d.ts +45 -0
- package/dist/models/update-custom-schema-request-dto.js +23 -0
- package/dist/models/update-custom-schema-response-class.d.ts +25 -0
- package/dist/models/update-custom-schema-response-class.js +15 -0
- package/dist/models/update-data-report-request-dto.d.ts +61 -0
- package/dist/models/update-data-report-request-dto.js +15 -0
- package/dist/models/update-data-report-response-class.d.ts +25 -0
- package/dist/models/update-data-report-response-class.js +15 -0
- package/dist/models/update-role-request-dto.d.ts +42 -0
- package/dist/models/update-role-request-dto.js +15 -0
- package/dist/models/user-class.d.ts +98 -0
- package/dist/models/user-class.js +15 -0
- package/git_push.sh +57 -0
- package/index.ts +19 -0
- package/models/assign-user-roles-request-dto.ts +36 -0
- package/models/assign-user-roles-response-class.ts +31 -0
- package/models/batch-delete-request-dto.ts +30 -0
- package/models/batch-delete-response-class.ts +30 -0
- package/models/create-custom-schema-request-dto.ts +54 -0
- package/models/create-custom-schema-response-class.ts +31 -0
- package/models/create-data-report-request-dto.ts +67 -0
- package/models/create-data-report-response-class.ts +31 -0
- package/models/create-permission-request-dto.ts +48 -0
- package/models/create-role-request-dto.ts +42 -0
- package/models/create-tenant-request-dto.ts +62 -0
- package/models/custom-field-dto.ts +77 -0
- package/models/custom-schema-class.ts +72 -0
- package/models/data-report-class.ts +85 -0
- package/models/data-report-filter-class.ts +78 -0
- package/models/data-report-filter-dto.ts +54 -0
- package/models/data-report-filter-single-value-dto.ts +48 -0
- package/models/data-report-filter-value-dto.ts +37 -0
- package/models/dbconfig-dto.ts +54 -0
- package/models/delete-response-class.ts +30 -0
- package/models/disable-user-response-class.ts +31 -0
- package/models/disable-users-request-dto.ts +30 -0
- package/models/disable-users-response-class.ts +30 -0
- package/models/enable-user-response-class.ts +31 -0
- package/models/enable-users-request-dto.ts +30 -0
- package/models/enable-users-response-class.ts +30 -0
- package/models/get-custom-schema-response-class.ts +31 -0
- package/models/get-data-report-response-class.ts +31 -0
- package/models/get-organization-response-class.ts +31 -0
- package/models/get-settings-response-class.ts +30 -0
- package/models/get-user-response-class.ts +31 -0
- package/models/index.ts +60 -0
- package/models/invite-class.ts +61 -0
- package/models/invite-org-request-dto.ts +84 -0
- package/models/invite-user-request-dto.ts +42 -0
- package/models/invite-user-response-class.ts +31 -0
- package/models/invite-users-request-dto.ts +36 -0
- package/models/invite-users-response-class.ts +30 -0
- package/models/list-custom-schemas-response-class.ts +36 -0
- package/models/list-data-reports-response-class.ts +37 -0
- package/models/list-invites-response-class.ts +37 -0
- package/models/list-org-invitations-response-class.ts +37 -0
- package/models/list-organizations-response-class.ts +37 -0
- package/models/list-users-response-class.ts +37 -0
- package/models/org-invitation-class.ts +109 -0
- package/models/org-invitation-response-class.ts +31 -0
- package/models/organization-class.ts +90 -0
- package/models/permission-class.ts +66 -0
- package/models/role-class.ts +67 -0
- package/models/run-data-report-request-dto.ts +37 -0
- package/models/run-data-report-response-class.ts +30 -0
- package/models/set-setting-request-dto.ts +42 -0
- package/models/set-user-setting-response-class.ts +42 -0
- package/models/subscription-class.ts +73 -0
- package/models/tenant-admin-user-dto.ts +48 -0
- package/models/update-custom-schema-request-dto.ts +54 -0
- package/models/update-custom-schema-response-class.ts +31 -0
- package/models/update-data-report-request-dto.ts +67 -0
- package/models/update-data-report-response-class.ts +31 -0
- package/models/update-role-request-dto.ts +48 -0
- package/models/user-class.ts +104 -0
- package/package.json +29 -0
- package/tsconfig.json +22 -0
package/api/users-api.ts
ADDED
|
@@ -0,0 +1,1087 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL Tenant Service
|
|
5
|
+
* The EMIL TenantService API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
17
|
+
import { Configuration } from '../configuration';
|
|
18
|
+
// Some imports not used depending on template conditions
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import { AssignUserRolesRequestDto } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { AssignUserRolesResponseClass } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { BatchDeleteRequestDto } from '../models';
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
import { BatchDeleteResponseClass } from '../models';
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
import { DeleteResponseClass } from '../models';
|
|
33
|
+
// @ts-ignore
|
|
34
|
+
import { DisableUserResponseClass } from '../models';
|
|
35
|
+
// @ts-ignore
|
|
36
|
+
import { DisableUsersRequestDto } from '../models';
|
|
37
|
+
// @ts-ignore
|
|
38
|
+
import { DisableUsersResponseClass } from '../models';
|
|
39
|
+
// @ts-ignore
|
|
40
|
+
import { EnableUserResponseClass } from '../models';
|
|
41
|
+
// @ts-ignore
|
|
42
|
+
import { EnableUsersRequestDto } from '../models';
|
|
43
|
+
// @ts-ignore
|
|
44
|
+
import { EnableUsersResponseClass } from '../models';
|
|
45
|
+
// @ts-ignore
|
|
46
|
+
import { GetUserResponseClass } from '../models';
|
|
47
|
+
// @ts-ignore
|
|
48
|
+
import { ListUsersResponseClass } from '../models';
|
|
49
|
+
// URLSearchParams not necessarily used
|
|
50
|
+
// @ts-ignore
|
|
51
|
+
import { URL, URLSearchParams } from 'url';
|
|
52
|
+
const FormData = require('form-data');
|
|
53
|
+
/**
|
|
54
|
+
* UsersApi - axios parameter creator
|
|
55
|
+
* @export
|
|
56
|
+
*/
|
|
57
|
+
export const UsersApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
58
|
+
return {
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @param {number} id
|
|
62
|
+
* @param {AssignUserRolesRequestDto} assignUserRolesRequestDto
|
|
63
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
64
|
+
* @param {*} [options] Override http request option.
|
|
65
|
+
* @throws {RequiredError}
|
|
66
|
+
*/
|
|
67
|
+
assignUserRoles: async (id: number, assignUserRolesRequestDto: AssignUserRolesRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
68
|
+
// verify required parameter 'id' is not null or undefined
|
|
69
|
+
assertParamExists('assignUserRoles', 'id', id)
|
|
70
|
+
// verify required parameter 'assignUserRolesRequestDto' is not null or undefined
|
|
71
|
+
assertParamExists('assignUserRoles', 'assignUserRolesRequestDto', assignUserRolesRequestDto)
|
|
72
|
+
const localVarPath = `/tenantservice/v1/users/{id}/assign-roles`
|
|
73
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
74
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
75
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
76
|
+
let baseOptions;
|
|
77
|
+
let baseAccessToken;
|
|
78
|
+
if (configuration) {
|
|
79
|
+
baseOptions = configuration.baseOptions;
|
|
80
|
+
baseAccessToken = configuration.accessToken;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
84
|
+
const localVarHeaderParameter = {} as any;
|
|
85
|
+
const localVarQueryParameter = {} as any;
|
|
86
|
+
|
|
87
|
+
// authentication bearer required
|
|
88
|
+
// http bearer authentication required
|
|
89
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
90
|
+
|
|
91
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
92
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
98
|
+
|
|
99
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
100
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
101
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
102
|
+
localVarRequestOptions.data = serializeDataIfNeeded(assignUserRolesRequestDto, localVarRequestOptions, configuration)
|
|
103
|
+
|
|
104
|
+
return {
|
|
105
|
+
url: toPathString(localVarUrlObj),
|
|
106
|
+
options: localVarRequestOptions,
|
|
107
|
+
};
|
|
108
|
+
},
|
|
109
|
+
/**
|
|
110
|
+
*
|
|
111
|
+
* @param {number} id
|
|
112
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
113
|
+
* @param {*} [options] Override http request option.
|
|
114
|
+
* @throws {RequiredError}
|
|
115
|
+
*/
|
|
116
|
+
deleteUser: async (id: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
117
|
+
// verify required parameter 'id' is not null or undefined
|
|
118
|
+
assertParamExists('deleteUser', 'id', id)
|
|
119
|
+
const localVarPath = `/tenantservice/v1/users/{id}`
|
|
120
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
121
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
122
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
123
|
+
let baseOptions;
|
|
124
|
+
let baseAccessToken;
|
|
125
|
+
if (configuration) {
|
|
126
|
+
baseOptions = configuration.baseOptions;
|
|
127
|
+
baseAccessToken = configuration.accessToken;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
131
|
+
const localVarHeaderParameter = {} as any;
|
|
132
|
+
const localVarQueryParameter = {} as any;
|
|
133
|
+
|
|
134
|
+
// authentication bearer required
|
|
135
|
+
// http bearer authentication required
|
|
136
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
137
|
+
|
|
138
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
139
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
145
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
146
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
147
|
+
|
|
148
|
+
return {
|
|
149
|
+
url: toPathString(localVarUrlObj),
|
|
150
|
+
options: localVarRequestOptions,
|
|
151
|
+
};
|
|
152
|
+
},
|
|
153
|
+
/**
|
|
154
|
+
*
|
|
155
|
+
* @param {BatchDeleteRequestDto} batchDeleteRequestDto
|
|
156
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
157
|
+
* @param {*} [options] Override http request option.
|
|
158
|
+
* @throws {RequiredError}
|
|
159
|
+
*/
|
|
160
|
+
deleteUsers: async (batchDeleteRequestDto: BatchDeleteRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
161
|
+
// verify required parameter 'batchDeleteRequestDto' is not null or undefined
|
|
162
|
+
assertParamExists('deleteUsers', 'batchDeleteRequestDto', batchDeleteRequestDto)
|
|
163
|
+
const localVarPath = `/tenantservice/v1/users/delete-batch`;
|
|
164
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
165
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
166
|
+
let baseOptions;
|
|
167
|
+
let baseAccessToken;
|
|
168
|
+
if (configuration) {
|
|
169
|
+
baseOptions = configuration.baseOptions;
|
|
170
|
+
baseAccessToken = configuration.accessToken;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
174
|
+
const localVarHeaderParameter = {} as any;
|
|
175
|
+
const localVarQueryParameter = {} as any;
|
|
176
|
+
|
|
177
|
+
// authentication bearer required
|
|
178
|
+
// http bearer authentication required
|
|
179
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
180
|
+
|
|
181
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
182
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
188
|
+
|
|
189
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
190
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
191
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
192
|
+
localVarRequestOptions.data = serializeDataIfNeeded(batchDeleteRequestDto, localVarRequestOptions, configuration)
|
|
193
|
+
|
|
194
|
+
return {
|
|
195
|
+
url: toPathString(localVarUrlObj),
|
|
196
|
+
options: localVarRequestOptions,
|
|
197
|
+
};
|
|
198
|
+
},
|
|
199
|
+
/**
|
|
200
|
+
*
|
|
201
|
+
* @param {number} id
|
|
202
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
203
|
+
* @param {*} [options] Override http request option.
|
|
204
|
+
* @throws {RequiredError}
|
|
205
|
+
*/
|
|
206
|
+
disableUser: async (id: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
207
|
+
// verify required parameter 'id' is not null or undefined
|
|
208
|
+
assertParamExists('disableUser', 'id', id)
|
|
209
|
+
const localVarPath = `/tenantservice/v1/users/{id}/disable`
|
|
210
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
211
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
212
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
213
|
+
let baseOptions;
|
|
214
|
+
let baseAccessToken;
|
|
215
|
+
if (configuration) {
|
|
216
|
+
baseOptions = configuration.baseOptions;
|
|
217
|
+
baseAccessToken = configuration.accessToken;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
221
|
+
const localVarHeaderParameter = {} as any;
|
|
222
|
+
const localVarQueryParameter = {} as any;
|
|
223
|
+
|
|
224
|
+
// authentication bearer required
|
|
225
|
+
// http bearer authentication required
|
|
226
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
227
|
+
|
|
228
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
229
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
235
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
236
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
237
|
+
|
|
238
|
+
return {
|
|
239
|
+
url: toPathString(localVarUrlObj),
|
|
240
|
+
options: localVarRequestOptions,
|
|
241
|
+
};
|
|
242
|
+
},
|
|
243
|
+
/**
|
|
244
|
+
*
|
|
245
|
+
* @param {DisableUsersRequestDto} disableUsersRequestDto
|
|
246
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
247
|
+
* @param {*} [options] Override http request option.
|
|
248
|
+
* @throws {RequiredError}
|
|
249
|
+
*/
|
|
250
|
+
disableUsers: async (disableUsersRequestDto: DisableUsersRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
251
|
+
// verify required parameter 'disableUsersRequestDto' is not null or undefined
|
|
252
|
+
assertParamExists('disableUsers', 'disableUsersRequestDto', disableUsersRequestDto)
|
|
253
|
+
const localVarPath = `/tenantservice/v1/users/disable-batch`;
|
|
254
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
255
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
256
|
+
let baseOptions;
|
|
257
|
+
let baseAccessToken;
|
|
258
|
+
if (configuration) {
|
|
259
|
+
baseOptions = configuration.baseOptions;
|
|
260
|
+
baseAccessToken = configuration.accessToken;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
264
|
+
const localVarHeaderParameter = {} as any;
|
|
265
|
+
const localVarQueryParameter = {} as any;
|
|
266
|
+
|
|
267
|
+
// authentication bearer required
|
|
268
|
+
// http bearer authentication required
|
|
269
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
270
|
+
|
|
271
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
272
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
278
|
+
|
|
279
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
280
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
281
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
282
|
+
localVarRequestOptions.data = serializeDataIfNeeded(disableUsersRequestDto, localVarRequestOptions, configuration)
|
|
283
|
+
|
|
284
|
+
return {
|
|
285
|
+
url: toPathString(localVarUrlObj),
|
|
286
|
+
options: localVarRequestOptions,
|
|
287
|
+
};
|
|
288
|
+
},
|
|
289
|
+
/**
|
|
290
|
+
*
|
|
291
|
+
* @param {number} id
|
|
292
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
293
|
+
* @param {*} [options] Override http request option.
|
|
294
|
+
* @throws {RequiredError}
|
|
295
|
+
*/
|
|
296
|
+
enableUser: async (id: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
297
|
+
// verify required parameter 'id' is not null or undefined
|
|
298
|
+
assertParamExists('enableUser', 'id', id)
|
|
299
|
+
const localVarPath = `/tenantservice/v1/users/{id}/enable`
|
|
300
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
301
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
302
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
303
|
+
let baseOptions;
|
|
304
|
+
let baseAccessToken;
|
|
305
|
+
if (configuration) {
|
|
306
|
+
baseOptions = configuration.baseOptions;
|
|
307
|
+
baseAccessToken = configuration.accessToken;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
311
|
+
const localVarHeaderParameter = {} as any;
|
|
312
|
+
const localVarQueryParameter = {} as any;
|
|
313
|
+
|
|
314
|
+
// authentication bearer required
|
|
315
|
+
// http bearer authentication required
|
|
316
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
317
|
+
|
|
318
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
319
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
325
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
326
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
327
|
+
|
|
328
|
+
return {
|
|
329
|
+
url: toPathString(localVarUrlObj),
|
|
330
|
+
options: localVarRequestOptions,
|
|
331
|
+
};
|
|
332
|
+
},
|
|
333
|
+
/**
|
|
334
|
+
*
|
|
335
|
+
* @param {EnableUsersRequestDto} enableUsersRequestDto
|
|
336
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
337
|
+
* @param {*} [options] Override http request option.
|
|
338
|
+
* @throws {RequiredError}
|
|
339
|
+
*/
|
|
340
|
+
enableUsers: async (enableUsersRequestDto: EnableUsersRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
341
|
+
// verify required parameter 'enableUsersRequestDto' is not null or undefined
|
|
342
|
+
assertParamExists('enableUsers', 'enableUsersRequestDto', enableUsersRequestDto)
|
|
343
|
+
const localVarPath = `/tenantservice/v1/users/enable-batch`;
|
|
344
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
345
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
346
|
+
let baseOptions;
|
|
347
|
+
let baseAccessToken;
|
|
348
|
+
if (configuration) {
|
|
349
|
+
baseOptions = configuration.baseOptions;
|
|
350
|
+
baseAccessToken = configuration.accessToken;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
354
|
+
const localVarHeaderParameter = {} as any;
|
|
355
|
+
const localVarQueryParameter = {} as any;
|
|
356
|
+
|
|
357
|
+
// authentication bearer required
|
|
358
|
+
// http bearer authentication required
|
|
359
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
360
|
+
|
|
361
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
362
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
368
|
+
|
|
369
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
370
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
371
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
372
|
+
localVarRequestOptions.data = serializeDataIfNeeded(enableUsersRequestDto, localVarRequestOptions, configuration)
|
|
373
|
+
|
|
374
|
+
return {
|
|
375
|
+
url: toPathString(localVarUrlObj),
|
|
376
|
+
options: localVarRequestOptions,
|
|
377
|
+
};
|
|
378
|
+
},
|
|
379
|
+
/**
|
|
380
|
+
*
|
|
381
|
+
* @param {string} code
|
|
382
|
+
* @param {string} code2 code
|
|
383
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
384
|
+
* @param {string} [expand] Fields to expand response by
|
|
385
|
+
* @param {*} [options] Override http request option.
|
|
386
|
+
* @throws {RequiredError}
|
|
387
|
+
*/
|
|
388
|
+
getUser: async (code: string, code2: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
389
|
+
// verify required parameter 'code' is not null or undefined
|
|
390
|
+
assertParamExists('getUser', 'code', code)
|
|
391
|
+
// verify required parameter 'code2' is not null or undefined
|
|
392
|
+
assertParamExists('getUser', 'code2', code2)
|
|
393
|
+
const localVarPath = `/tenantservice/v1/users/{code}`
|
|
394
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
395
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
396
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
397
|
+
let baseOptions;
|
|
398
|
+
let baseAccessToken;
|
|
399
|
+
if (configuration) {
|
|
400
|
+
baseOptions = configuration.baseOptions;
|
|
401
|
+
baseAccessToken = configuration.accessToken;
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
405
|
+
const localVarHeaderParameter = {} as any;
|
|
406
|
+
const localVarQueryParameter = {} as any;
|
|
407
|
+
|
|
408
|
+
// authentication bearer required
|
|
409
|
+
// http bearer authentication required
|
|
410
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
411
|
+
|
|
412
|
+
if (code2 !== undefined) {
|
|
413
|
+
localVarQueryParameter['code'] = code2;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
if (expand !== undefined) {
|
|
417
|
+
localVarQueryParameter['expand'] = expand;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
421
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
|
|
425
|
+
|
|
426
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
427
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
428
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
429
|
+
|
|
430
|
+
return {
|
|
431
|
+
url: toPathString(localVarUrlObj),
|
|
432
|
+
options: localVarRequestOptions,
|
|
433
|
+
};
|
|
434
|
+
},
|
|
435
|
+
/**
|
|
436
|
+
* Returns a list of users you have previously created. The users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
437
|
+
* @summary List users
|
|
438
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
439
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
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.
|
|
441
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
442
|
+
* @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.
|
|
443
|
+
* @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.
|
|
444
|
+
* @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.
|
|
445
|
+
* @param {*} [options] Override http request option.
|
|
446
|
+
* @throws {RequiredError}
|
|
447
|
+
*/
|
|
448
|
+
listUsers: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
449
|
+
const localVarPath = `/tenantservice/v1/users`;
|
|
450
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
451
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
452
|
+
let baseOptions;
|
|
453
|
+
let baseAccessToken;
|
|
454
|
+
if (configuration) {
|
|
455
|
+
baseOptions = configuration.baseOptions;
|
|
456
|
+
baseAccessToken = configuration.accessToken;
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
460
|
+
const localVarHeaderParameter = {} as any;
|
|
461
|
+
const localVarQueryParameter = {} as any;
|
|
462
|
+
|
|
463
|
+
// authentication bearer required
|
|
464
|
+
// http bearer authentication required
|
|
465
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
466
|
+
|
|
467
|
+
if (pageSize !== undefined) {
|
|
468
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
if (pageToken !== undefined) {
|
|
472
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
if (filter !== undefined) {
|
|
476
|
+
localVarQueryParameter['filter'] = filter;
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
if (search !== undefined) {
|
|
480
|
+
localVarQueryParameter['search'] = search;
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
if (order !== undefined) {
|
|
484
|
+
localVarQueryParameter['order'] = order;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
if (expand !== undefined) {
|
|
488
|
+
localVarQueryParameter['expand'] = expand;
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
492
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
|
|
496
|
+
|
|
497
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
498
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
499
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
500
|
+
|
|
501
|
+
return {
|
|
502
|
+
url: toPathString(localVarUrlObj),
|
|
503
|
+
options: localVarRequestOptions,
|
|
504
|
+
};
|
|
505
|
+
},
|
|
506
|
+
}
|
|
507
|
+
};
|
|
508
|
+
|
|
509
|
+
/**
|
|
510
|
+
* UsersApi - functional programming interface
|
|
511
|
+
* @export
|
|
512
|
+
*/
|
|
513
|
+
export const UsersApiFp = function(configuration?: Configuration) {
|
|
514
|
+
const localVarAxiosParamCreator = UsersApiAxiosParamCreator(configuration)
|
|
515
|
+
return {
|
|
516
|
+
/**
|
|
517
|
+
*
|
|
518
|
+
* @param {number} id
|
|
519
|
+
* @param {AssignUserRolesRequestDto} assignUserRolesRequestDto
|
|
520
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
521
|
+
* @param {*} [options] Override http request option.
|
|
522
|
+
* @throws {RequiredError}
|
|
523
|
+
*/
|
|
524
|
+
async assignUserRoles(id: number, assignUserRolesRequestDto: AssignUserRolesRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssignUserRolesResponseClass>> {
|
|
525
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.assignUserRoles(id, assignUserRolesRequestDto, authorization, options);
|
|
526
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
527
|
+
},
|
|
528
|
+
/**
|
|
529
|
+
*
|
|
530
|
+
* @param {number} id
|
|
531
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
532
|
+
* @param {*} [options] Override http request option.
|
|
533
|
+
* @throws {RequiredError}
|
|
534
|
+
*/
|
|
535
|
+
async deleteUser(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>> {
|
|
536
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUser(id, authorization, options);
|
|
537
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
538
|
+
},
|
|
539
|
+
/**
|
|
540
|
+
*
|
|
541
|
+
* @param {BatchDeleteRequestDto} batchDeleteRequestDto
|
|
542
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
543
|
+
* @param {*} [options] Override http request option.
|
|
544
|
+
* @throws {RequiredError}
|
|
545
|
+
*/
|
|
546
|
+
async deleteUsers(batchDeleteRequestDto: BatchDeleteRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BatchDeleteResponseClass>> {
|
|
547
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUsers(batchDeleteRequestDto, authorization, options);
|
|
548
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
549
|
+
},
|
|
550
|
+
/**
|
|
551
|
+
*
|
|
552
|
+
* @param {number} id
|
|
553
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
554
|
+
* @param {*} [options] Override http request option.
|
|
555
|
+
* @throws {RequiredError}
|
|
556
|
+
*/
|
|
557
|
+
async disableUser(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DisableUserResponseClass>> {
|
|
558
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.disableUser(id, authorization, options);
|
|
559
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
560
|
+
},
|
|
561
|
+
/**
|
|
562
|
+
*
|
|
563
|
+
* @param {DisableUsersRequestDto} disableUsersRequestDto
|
|
564
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
565
|
+
* @param {*} [options] Override http request option.
|
|
566
|
+
* @throws {RequiredError}
|
|
567
|
+
*/
|
|
568
|
+
async disableUsers(disableUsersRequestDto: DisableUsersRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DisableUsersResponseClass>> {
|
|
569
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.disableUsers(disableUsersRequestDto, authorization, options);
|
|
570
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
571
|
+
},
|
|
572
|
+
/**
|
|
573
|
+
*
|
|
574
|
+
* @param {number} id
|
|
575
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
576
|
+
* @param {*} [options] Override http request option.
|
|
577
|
+
* @throws {RequiredError}
|
|
578
|
+
*/
|
|
579
|
+
async enableUser(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EnableUserResponseClass>> {
|
|
580
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.enableUser(id, authorization, options);
|
|
581
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
582
|
+
},
|
|
583
|
+
/**
|
|
584
|
+
*
|
|
585
|
+
* @param {EnableUsersRequestDto} enableUsersRequestDto
|
|
586
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
587
|
+
* @param {*} [options] Override http request option.
|
|
588
|
+
* @throws {RequiredError}
|
|
589
|
+
*/
|
|
590
|
+
async enableUsers(enableUsersRequestDto: EnableUsersRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EnableUsersResponseClass>> {
|
|
591
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.enableUsers(enableUsersRequestDto, authorization, options);
|
|
592
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
593
|
+
},
|
|
594
|
+
/**
|
|
595
|
+
*
|
|
596
|
+
* @param {string} code
|
|
597
|
+
* @param {string} code2 code
|
|
598
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
599
|
+
* @param {string} [expand] Fields to expand response by
|
|
600
|
+
* @param {*} [options] Override http request option.
|
|
601
|
+
* @throws {RequiredError}
|
|
602
|
+
*/
|
|
603
|
+
async getUser(code: string, code2: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetUserResponseClass>> {
|
|
604
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getUser(code, code2, authorization, expand, options);
|
|
605
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
606
|
+
},
|
|
607
|
+
/**
|
|
608
|
+
* Returns a list of users you have previously created. The users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
609
|
+
* @summary List users
|
|
610
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
611
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
612
|
+
* @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.
|
|
613
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
614
|
+
* @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.
|
|
615
|
+
* @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.
|
|
616
|
+
* @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.
|
|
617
|
+
* @param {*} [options] Override http request option.
|
|
618
|
+
* @throws {RequiredError}
|
|
619
|
+
*/
|
|
620
|
+
async listUsers(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListUsersResponseClass>> {
|
|
621
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listUsers(authorization, pageSize, pageToken, filter, search, order, expand, options);
|
|
622
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
623
|
+
},
|
|
624
|
+
}
|
|
625
|
+
};
|
|
626
|
+
|
|
627
|
+
/**
|
|
628
|
+
* UsersApi - factory interface
|
|
629
|
+
* @export
|
|
630
|
+
*/
|
|
631
|
+
export const UsersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
632
|
+
const localVarFp = UsersApiFp(configuration)
|
|
633
|
+
return {
|
|
634
|
+
/**
|
|
635
|
+
*
|
|
636
|
+
* @param {number} id
|
|
637
|
+
* @param {AssignUserRolesRequestDto} assignUserRolesRequestDto
|
|
638
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
639
|
+
* @param {*} [options] Override http request option.
|
|
640
|
+
* @throws {RequiredError}
|
|
641
|
+
*/
|
|
642
|
+
assignUserRoles(id: number, assignUserRolesRequestDto: AssignUserRolesRequestDto, authorization?: string, options?: any): AxiosPromise<AssignUserRolesResponseClass> {
|
|
643
|
+
return localVarFp.assignUserRoles(id, assignUserRolesRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
644
|
+
},
|
|
645
|
+
/**
|
|
646
|
+
*
|
|
647
|
+
* @param {number} id
|
|
648
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
649
|
+
* @param {*} [options] Override http request option.
|
|
650
|
+
* @throws {RequiredError}
|
|
651
|
+
*/
|
|
652
|
+
deleteUser(id: number, authorization?: string, options?: any): AxiosPromise<DeleteResponseClass> {
|
|
653
|
+
return localVarFp.deleteUser(id, authorization, options).then((request) => request(axios, basePath));
|
|
654
|
+
},
|
|
655
|
+
/**
|
|
656
|
+
*
|
|
657
|
+
* @param {BatchDeleteRequestDto} batchDeleteRequestDto
|
|
658
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
659
|
+
* @param {*} [options] Override http request option.
|
|
660
|
+
* @throws {RequiredError}
|
|
661
|
+
*/
|
|
662
|
+
deleteUsers(batchDeleteRequestDto: BatchDeleteRequestDto, authorization?: string, options?: any): AxiosPromise<BatchDeleteResponseClass> {
|
|
663
|
+
return localVarFp.deleteUsers(batchDeleteRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
664
|
+
},
|
|
665
|
+
/**
|
|
666
|
+
*
|
|
667
|
+
* @param {number} id
|
|
668
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
669
|
+
* @param {*} [options] Override http request option.
|
|
670
|
+
* @throws {RequiredError}
|
|
671
|
+
*/
|
|
672
|
+
disableUser(id: number, authorization?: string, options?: any): AxiosPromise<DisableUserResponseClass> {
|
|
673
|
+
return localVarFp.disableUser(id, authorization, options).then((request) => request(axios, basePath));
|
|
674
|
+
},
|
|
675
|
+
/**
|
|
676
|
+
*
|
|
677
|
+
* @param {DisableUsersRequestDto} disableUsersRequestDto
|
|
678
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
679
|
+
* @param {*} [options] Override http request option.
|
|
680
|
+
* @throws {RequiredError}
|
|
681
|
+
*/
|
|
682
|
+
disableUsers(disableUsersRequestDto: DisableUsersRequestDto, authorization?: string, options?: any): AxiosPromise<DisableUsersResponseClass> {
|
|
683
|
+
return localVarFp.disableUsers(disableUsersRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
684
|
+
},
|
|
685
|
+
/**
|
|
686
|
+
*
|
|
687
|
+
* @param {number} id
|
|
688
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
689
|
+
* @param {*} [options] Override http request option.
|
|
690
|
+
* @throws {RequiredError}
|
|
691
|
+
*/
|
|
692
|
+
enableUser(id: number, authorization?: string, options?: any): AxiosPromise<EnableUserResponseClass> {
|
|
693
|
+
return localVarFp.enableUser(id, authorization, options).then((request) => request(axios, basePath));
|
|
694
|
+
},
|
|
695
|
+
/**
|
|
696
|
+
*
|
|
697
|
+
* @param {EnableUsersRequestDto} enableUsersRequestDto
|
|
698
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
699
|
+
* @param {*} [options] Override http request option.
|
|
700
|
+
* @throws {RequiredError}
|
|
701
|
+
*/
|
|
702
|
+
enableUsers(enableUsersRequestDto: EnableUsersRequestDto, authorization?: string, options?: any): AxiosPromise<EnableUsersResponseClass> {
|
|
703
|
+
return localVarFp.enableUsers(enableUsersRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
704
|
+
},
|
|
705
|
+
/**
|
|
706
|
+
*
|
|
707
|
+
* @param {string} code
|
|
708
|
+
* @param {string} code2 code
|
|
709
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
710
|
+
* @param {string} [expand] Fields to expand response by
|
|
711
|
+
* @param {*} [options] Override http request option.
|
|
712
|
+
* @throws {RequiredError}
|
|
713
|
+
*/
|
|
714
|
+
getUser(code: string, code2: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetUserResponseClass> {
|
|
715
|
+
return localVarFp.getUser(code, code2, authorization, expand, options).then((request) => request(axios, basePath));
|
|
716
|
+
},
|
|
717
|
+
/**
|
|
718
|
+
* Returns a list of users you have previously created. The users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
719
|
+
* @summary List users
|
|
720
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
721
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
722
|
+
* @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.
|
|
723
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
724
|
+
* @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.
|
|
725
|
+
* @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.
|
|
726
|
+
* @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.
|
|
727
|
+
* @param {*} [options] Override http request option.
|
|
728
|
+
* @throws {RequiredError}
|
|
729
|
+
*/
|
|
730
|
+
listUsers(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListUsersResponseClass> {
|
|
731
|
+
return localVarFp.listUsers(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
|
|
732
|
+
},
|
|
733
|
+
};
|
|
734
|
+
};
|
|
735
|
+
|
|
736
|
+
/**
|
|
737
|
+
* Request parameters for assignUserRoles operation in UsersApi.
|
|
738
|
+
* @export
|
|
739
|
+
* @interface UsersApiAssignUserRolesRequest
|
|
740
|
+
*/
|
|
741
|
+
export interface UsersApiAssignUserRolesRequest {
|
|
742
|
+
/**
|
|
743
|
+
*
|
|
744
|
+
* @type {number}
|
|
745
|
+
* @memberof UsersApiAssignUserRoles
|
|
746
|
+
*/
|
|
747
|
+
readonly id: number
|
|
748
|
+
|
|
749
|
+
/**
|
|
750
|
+
*
|
|
751
|
+
* @type {AssignUserRolesRequestDto}
|
|
752
|
+
* @memberof UsersApiAssignUserRoles
|
|
753
|
+
*/
|
|
754
|
+
readonly assignUserRolesRequestDto: AssignUserRolesRequestDto
|
|
755
|
+
|
|
756
|
+
/**
|
|
757
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
758
|
+
* @type {string}
|
|
759
|
+
* @memberof UsersApiAssignUserRoles
|
|
760
|
+
*/
|
|
761
|
+
readonly authorization?: string
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
/**
|
|
765
|
+
* Request parameters for deleteUser operation in UsersApi.
|
|
766
|
+
* @export
|
|
767
|
+
* @interface UsersApiDeleteUserRequest
|
|
768
|
+
*/
|
|
769
|
+
export interface UsersApiDeleteUserRequest {
|
|
770
|
+
/**
|
|
771
|
+
*
|
|
772
|
+
* @type {number}
|
|
773
|
+
* @memberof UsersApiDeleteUser
|
|
774
|
+
*/
|
|
775
|
+
readonly id: number
|
|
776
|
+
|
|
777
|
+
/**
|
|
778
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
779
|
+
* @type {string}
|
|
780
|
+
* @memberof UsersApiDeleteUser
|
|
781
|
+
*/
|
|
782
|
+
readonly authorization?: string
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
/**
|
|
786
|
+
* Request parameters for deleteUsers operation in UsersApi.
|
|
787
|
+
* @export
|
|
788
|
+
* @interface UsersApiDeleteUsersRequest
|
|
789
|
+
*/
|
|
790
|
+
export interface UsersApiDeleteUsersRequest {
|
|
791
|
+
/**
|
|
792
|
+
*
|
|
793
|
+
* @type {BatchDeleteRequestDto}
|
|
794
|
+
* @memberof UsersApiDeleteUsers
|
|
795
|
+
*/
|
|
796
|
+
readonly batchDeleteRequestDto: BatchDeleteRequestDto
|
|
797
|
+
|
|
798
|
+
/**
|
|
799
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
800
|
+
* @type {string}
|
|
801
|
+
* @memberof UsersApiDeleteUsers
|
|
802
|
+
*/
|
|
803
|
+
readonly authorization?: string
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
/**
|
|
807
|
+
* Request parameters for disableUser operation in UsersApi.
|
|
808
|
+
* @export
|
|
809
|
+
* @interface UsersApiDisableUserRequest
|
|
810
|
+
*/
|
|
811
|
+
export interface UsersApiDisableUserRequest {
|
|
812
|
+
/**
|
|
813
|
+
*
|
|
814
|
+
* @type {number}
|
|
815
|
+
* @memberof UsersApiDisableUser
|
|
816
|
+
*/
|
|
817
|
+
readonly id: number
|
|
818
|
+
|
|
819
|
+
/**
|
|
820
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
821
|
+
* @type {string}
|
|
822
|
+
* @memberof UsersApiDisableUser
|
|
823
|
+
*/
|
|
824
|
+
readonly authorization?: string
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
/**
|
|
828
|
+
* Request parameters for disableUsers operation in UsersApi.
|
|
829
|
+
* @export
|
|
830
|
+
* @interface UsersApiDisableUsersRequest
|
|
831
|
+
*/
|
|
832
|
+
export interface UsersApiDisableUsersRequest {
|
|
833
|
+
/**
|
|
834
|
+
*
|
|
835
|
+
* @type {DisableUsersRequestDto}
|
|
836
|
+
* @memberof UsersApiDisableUsers
|
|
837
|
+
*/
|
|
838
|
+
readonly disableUsersRequestDto: DisableUsersRequestDto
|
|
839
|
+
|
|
840
|
+
/**
|
|
841
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
842
|
+
* @type {string}
|
|
843
|
+
* @memberof UsersApiDisableUsers
|
|
844
|
+
*/
|
|
845
|
+
readonly authorization?: string
|
|
846
|
+
}
|
|
847
|
+
|
|
848
|
+
/**
|
|
849
|
+
* Request parameters for enableUser operation in UsersApi.
|
|
850
|
+
* @export
|
|
851
|
+
* @interface UsersApiEnableUserRequest
|
|
852
|
+
*/
|
|
853
|
+
export interface UsersApiEnableUserRequest {
|
|
854
|
+
/**
|
|
855
|
+
*
|
|
856
|
+
* @type {number}
|
|
857
|
+
* @memberof UsersApiEnableUser
|
|
858
|
+
*/
|
|
859
|
+
readonly id: number
|
|
860
|
+
|
|
861
|
+
/**
|
|
862
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
863
|
+
* @type {string}
|
|
864
|
+
* @memberof UsersApiEnableUser
|
|
865
|
+
*/
|
|
866
|
+
readonly authorization?: string
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
/**
|
|
870
|
+
* Request parameters for enableUsers operation in UsersApi.
|
|
871
|
+
* @export
|
|
872
|
+
* @interface UsersApiEnableUsersRequest
|
|
873
|
+
*/
|
|
874
|
+
export interface UsersApiEnableUsersRequest {
|
|
875
|
+
/**
|
|
876
|
+
*
|
|
877
|
+
* @type {EnableUsersRequestDto}
|
|
878
|
+
* @memberof UsersApiEnableUsers
|
|
879
|
+
*/
|
|
880
|
+
readonly enableUsersRequestDto: EnableUsersRequestDto
|
|
881
|
+
|
|
882
|
+
/**
|
|
883
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
884
|
+
* @type {string}
|
|
885
|
+
* @memberof UsersApiEnableUsers
|
|
886
|
+
*/
|
|
887
|
+
readonly authorization?: string
|
|
888
|
+
}
|
|
889
|
+
|
|
890
|
+
/**
|
|
891
|
+
* Request parameters for getUser operation in UsersApi.
|
|
892
|
+
* @export
|
|
893
|
+
* @interface UsersApiGetUserRequest
|
|
894
|
+
*/
|
|
895
|
+
export interface UsersApiGetUserRequest {
|
|
896
|
+
/**
|
|
897
|
+
*
|
|
898
|
+
* @type {string}
|
|
899
|
+
* @memberof UsersApiGetUser
|
|
900
|
+
*/
|
|
901
|
+
readonly code: string
|
|
902
|
+
|
|
903
|
+
/**
|
|
904
|
+
* code
|
|
905
|
+
* @type {string}
|
|
906
|
+
* @memberof UsersApiGetUser
|
|
907
|
+
*/
|
|
908
|
+
readonly code2: string
|
|
909
|
+
|
|
910
|
+
/**
|
|
911
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
912
|
+
* @type {string}
|
|
913
|
+
* @memberof UsersApiGetUser
|
|
914
|
+
*/
|
|
915
|
+
readonly authorization?: string
|
|
916
|
+
|
|
917
|
+
/**
|
|
918
|
+
* Fields to expand response by
|
|
919
|
+
* @type {string}
|
|
920
|
+
* @memberof UsersApiGetUser
|
|
921
|
+
*/
|
|
922
|
+
readonly expand?: string
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
/**
|
|
926
|
+
* Request parameters for listUsers operation in UsersApi.
|
|
927
|
+
* @export
|
|
928
|
+
* @interface UsersApiListUsersRequest
|
|
929
|
+
*/
|
|
930
|
+
export interface UsersApiListUsersRequest {
|
|
931
|
+
/**
|
|
932
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
933
|
+
* @type {string}
|
|
934
|
+
* @memberof UsersApiListUsers
|
|
935
|
+
*/
|
|
936
|
+
readonly authorization?: string
|
|
937
|
+
|
|
938
|
+
/**
|
|
939
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
940
|
+
* @type {any}
|
|
941
|
+
* @memberof UsersApiListUsers
|
|
942
|
+
*/
|
|
943
|
+
readonly pageSize?: any
|
|
944
|
+
|
|
945
|
+
/**
|
|
946
|
+
* 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.
|
|
947
|
+
* @type {any}
|
|
948
|
+
* @memberof UsersApiListUsers
|
|
949
|
+
*/
|
|
950
|
+
readonly pageToken?: any
|
|
951
|
+
|
|
952
|
+
/**
|
|
953
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
954
|
+
* @type {any}
|
|
955
|
+
* @memberof UsersApiListUsers
|
|
956
|
+
*/
|
|
957
|
+
readonly filter?: any
|
|
958
|
+
|
|
959
|
+
/**
|
|
960
|
+
* Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
961
|
+
* @type {any}
|
|
962
|
+
* @memberof UsersApiListUsers
|
|
963
|
+
*/
|
|
964
|
+
readonly search?: any
|
|
965
|
+
|
|
966
|
+
/**
|
|
967
|
+
* 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.
|
|
968
|
+
* @type {any}
|
|
969
|
+
* @memberof UsersApiListUsers
|
|
970
|
+
*/
|
|
971
|
+
readonly order?: any
|
|
972
|
+
|
|
973
|
+
/**
|
|
974
|
+
* 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.
|
|
975
|
+
* @type {any}
|
|
976
|
+
* @memberof UsersApiListUsers
|
|
977
|
+
*/
|
|
978
|
+
readonly expand?: any
|
|
979
|
+
}
|
|
980
|
+
|
|
981
|
+
/**
|
|
982
|
+
* UsersApi - object-oriented interface
|
|
983
|
+
* @export
|
|
984
|
+
* @class UsersApi
|
|
985
|
+
* @extends {BaseAPI}
|
|
986
|
+
*/
|
|
987
|
+
export class UsersApi extends BaseAPI {
|
|
988
|
+
/**
|
|
989
|
+
*
|
|
990
|
+
* @param {UsersApiAssignUserRolesRequest} requestParameters Request parameters.
|
|
991
|
+
* @param {*} [options] Override http request option.
|
|
992
|
+
* @throws {RequiredError}
|
|
993
|
+
* @memberof UsersApi
|
|
994
|
+
*/
|
|
995
|
+
public assignUserRoles(requestParameters: UsersApiAssignUserRolesRequest, options?: AxiosRequestConfig) {
|
|
996
|
+
return UsersApiFp(this.configuration).assignUserRoles(requestParameters.id, requestParameters.assignUserRolesRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
997
|
+
}
|
|
998
|
+
|
|
999
|
+
/**
|
|
1000
|
+
*
|
|
1001
|
+
* @param {UsersApiDeleteUserRequest} requestParameters Request parameters.
|
|
1002
|
+
* @param {*} [options] Override http request option.
|
|
1003
|
+
* @throws {RequiredError}
|
|
1004
|
+
* @memberof UsersApi
|
|
1005
|
+
*/
|
|
1006
|
+
public deleteUser(requestParameters: UsersApiDeleteUserRequest, options?: AxiosRequestConfig) {
|
|
1007
|
+
return UsersApiFp(this.configuration).deleteUser(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1008
|
+
}
|
|
1009
|
+
|
|
1010
|
+
/**
|
|
1011
|
+
*
|
|
1012
|
+
* @param {UsersApiDeleteUsersRequest} requestParameters Request parameters.
|
|
1013
|
+
* @param {*} [options] Override http request option.
|
|
1014
|
+
* @throws {RequiredError}
|
|
1015
|
+
* @memberof UsersApi
|
|
1016
|
+
*/
|
|
1017
|
+
public deleteUsers(requestParameters: UsersApiDeleteUsersRequest, options?: AxiosRequestConfig) {
|
|
1018
|
+
return UsersApiFp(this.configuration).deleteUsers(requestParameters.batchDeleteRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1019
|
+
}
|
|
1020
|
+
|
|
1021
|
+
/**
|
|
1022
|
+
*
|
|
1023
|
+
* @param {UsersApiDisableUserRequest} requestParameters Request parameters.
|
|
1024
|
+
* @param {*} [options] Override http request option.
|
|
1025
|
+
* @throws {RequiredError}
|
|
1026
|
+
* @memberof UsersApi
|
|
1027
|
+
*/
|
|
1028
|
+
public disableUser(requestParameters: UsersApiDisableUserRequest, options?: AxiosRequestConfig) {
|
|
1029
|
+
return UsersApiFp(this.configuration).disableUser(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1030
|
+
}
|
|
1031
|
+
|
|
1032
|
+
/**
|
|
1033
|
+
*
|
|
1034
|
+
* @param {UsersApiDisableUsersRequest} requestParameters Request parameters.
|
|
1035
|
+
* @param {*} [options] Override http request option.
|
|
1036
|
+
* @throws {RequiredError}
|
|
1037
|
+
* @memberof UsersApi
|
|
1038
|
+
*/
|
|
1039
|
+
public disableUsers(requestParameters: UsersApiDisableUsersRequest, options?: AxiosRequestConfig) {
|
|
1040
|
+
return UsersApiFp(this.configuration).disableUsers(requestParameters.disableUsersRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1041
|
+
}
|
|
1042
|
+
|
|
1043
|
+
/**
|
|
1044
|
+
*
|
|
1045
|
+
* @param {UsersApiEnableUserRequest} requestParameters Request parameters.
|
|
1046
|
+
* @param {*} [options] Override http request option.
|
|
1047
|
+
* @throws {RequiredError}
|
|
1048
|
+
* @memberof UsersApi
|
|
1049
|
+
*/
|
|
1050
|
+
public enableUser(requestParameters: UsersApiEnableUserRequest, options?: AxiosRequestConfig) {
|
|
1051
|
+
return UsersApiFp(this.configuration).enableUser(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1052
|
+
}
|
|
1053
|
+
|
|
1054
|
+
/**
|
|
1055
|
+
*
|
|
1056
|
+
* @param {UsersApiEnableUsersRequest} requestParameters Request parameters.
|
|
1057
|
+
* @param {*} [options] Override http request option.
|
|
1058
|
+
* @throws {RequiredError}
|
|
1059
|
+
* @memberof UsersApi
|
|
1060
|
+
*/
|
|
1061
|
+
public enableUsers(requestParameters: UsersApiEnableUsersRequest, options?: AxiosRequestConfig) {
|
|
1062
|
+
return UsersApiFp(this.configuration).enableUsers(requestParameters.enableUsersRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1063
|
+
}
|
|
1064
|
+
|
|
1065
|
+
/**
|
|
1066
|
+
*
|
|
1067
|
+
* @param {UsersApiGetUserRequest} requestParameters Request parameters.
|
|
1068
|
+
* @param {*} [options] Override http request option.
|
|
1069
|
+
* @throws {RequiredError}
|
|
1070
|
+
* @memberof UsersApi
|
|
1071
|
+
*/
|
|
1072
|
+
public getUser(requestParameters: UsersApiGetUserRequest, options?: AxiosRequestConfig) {
|
|
1073
|
+
return UsersApiFp(this.configuration).getUser(requestParameters.code, requestParameters.code2, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
1074
|
+
}
|
|
1075
|
+
|
|
1076
|
+
/**
|
|
1077
|
+
* Returns a list of users you have previously created. The users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
1078
|
+
* @summary List users
|
|
1079
|
+
* @param {UsersApiListUsersRequest} requestParameters Request parameters.
|
|
1080
|
+
* @param {*} [options] Override http request option.
|
|
1081
|
+
* @throws {RequiredError}
|
|
1082
|
+
* @memberof UsersApi
|
|
1083
|
+
*/
|
|
1084
|
+
public listUsers(requestParameters: UsersApiListUsersRequest = {}, options?: AxiosRequestConfig) {
|
|
1085
|
+
return UsersApiFp(this.configuration).listUsers(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
1086
|
+
}
|
|
1087
|
+
}
|