@emilgroup/tenant-sdk-node 1.3.0 → 1.4.1

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.
@@ -9,6 +9,8 @@ api/invite-users-api.ts
9
9
  api/list-organization-invitations-api.ts
10
10
  api/organizations-api.ts
11
11
  api/re-invite-an-organization-api.ts
12
+ api/roles-api.ts
13
+ api/settings-api.ts
12
14
  api/users-api.ts
13
15
  base.ts
14
16
  common.ts
@@ -49,6 +51,7 @@ models/list-custom-schemas-response-class.ts
49
51
  models/list-invites-response-class.ts
50
52
  models/list-org-invitations-response-class.ts
51
53
  models/list-organizations-response-class.ts
54
+ models/list-roles-response-class.ts
52
55
  models/list-users-response-class.ts
53
56
  models/org-invitation-class.ts
54
57
  models/org-invitation-response-class.ts
package/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/tenant-sdk-node@1.3.0 --save
20
+ npm install @emilgroup/tenant-sdk-node@1.4.1 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/tenant-sdk-node@1.3.0
24
+ yarn add @emilgroup/tenant-sdk-node@1.4.1
25
25
  ```
26
26
 
27
27
  And then you can import `UsersApi`.
@@ -0,0 +1,232 @@
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 { ListRolesResponseClass } from '../models';
25
+ // URLSearchParams not necessarily used
26
+ // @ts-ignore
27
+ import { URL, URLSearchParams } from 'url';
28
+ const FormData = require('form-data');
29
+ /**
30
+ * RolesApi - axios parameter creator
31
+ * @export
32
+ */
33
+ export const RolesApiAxiosParamCreator = function (configuration?: Configuration) {
34
+ return {
35
+ /**
36
+ *
37
+ * @param {string} [authorization] Bearer Token
38
+ * @param {number} [pageSize] Page size
39
+ * @param {string} [pageToken] Page token
40
+ * @param {string} [filter] List filter
41
+ * @param {string} [search] Search query
42
+ * @param {string} [order] Ordering criteria
43
+ * @param {string} [expand] Extra fields to fetch
44
+ * @param {*} [options] Override http request option.
45
+ * @throws {RequiredError}
46
+ */
47
+ listRoles: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
48
+ const localVarPath = `/tenantservice/v1/roles`;
49
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
50
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
51
+ let baseOptions;
52
+ let baseAccessToken;
53
+ if (configuration) {
54
+ baseOptions = configuration.baseOptions;
55
+ baseAccessToken = configuration.accessToken;
56
+ }
57
+
58
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
59
+ const localVarHeaderParameter = {} as any;
60
+ const localVarQueryParameter = {} as any;
61
+
62
+ // authentication bearer required
63
+ // http bearer authentication required
64
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
65
+
66
+ if (pageSize !== undefined) {
67
+ localVarQueryParameter['pageSize'] = pageSize;
68
+ }
69
+
70
+ if (pageToken !== undefined) {
71
+ localVarQueryParameter['pageToken'] = pageToken;
72
+ }
73
+
74
+ if (filter !== undefined) {
75
+ localVarQueryParameter['filter'] = filter;
76
+ }
77
+
78
+ if (search !== undefined) {
79
+ localVarQueryParameter['search'] = search;
80
+ }
81
+
82
+ if (order !== undefined) {
83
+ localVarQueryParameter['order'] = order;
84
+ }
85
+
86
+ if (expand !== undefined) {
87
+ localVarQueryParameter['expand'] = expand;
88
+ }
89
+
90
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
91
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
92
+ }
93
+
94
+
95
+
96
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
97
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
98
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
99
+
100
+ return {
101
+ url: toPathString(localVarUrlObj),
102
+ options: localVarRequestOptions,
103
+ };
104
+ },
105
+ }
106
+ };
107
+
108
+ /**
109
+ * RolesApi - functional programming interface
110
+ * @export
111
+ */
112
+ export const RolesApiFp = function(configuration?: Configuration) {
113
+ const localVarAxiosParamCreator = RolesApiAxiosParamCreator(configuration)
114
+ return {
115
+ /**
116
+ *
117
+ * @param {string} [authorization] Bearer Token
118
+ * @param {number} [pageSize] Page size
119
+ * @param {string} [pageToken] Page token
120
+ * @param {string} [filter] List filter
121
+ * @param {string} [search] Search query
122
+ * @param {string} [order] Ordering criteria
123
+ * @param {string} [expand] Extra fields to fetch
124
+ * @param {*} [options] Override http request option.
125
+ * @throws {RequiredError}
126
+ */
127
+ async listRoles(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListRolesResponseClass>> {
128
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listRoles(authorization, pageSize, pageToken, filter, search, order, expand, options);
129
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
130
+ },
131
+ }
132
+ };
133
+
134
+ /**
135
+ * RolesApi - factory interface
136
+ * @export
137
+ */
138
+ export const RolesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
139
+ const localVarFp = RolesApiFp(configuration)
140
+ return {
141
+ /**
142
+ *
143
+ * @param {string} [authorization] Bearer Token
144
+ * @param {number} [pageSize] Page size
145
+ * @param {string} [pageToken] Page token
146
+ * @param {string} [filter] List filter
147
+ * @param {string} [search] Search query
148
+ * @param {string} [order] Ordering criteria
149
+ * @param {string} [expand] Extra fields to fetch
150
+ * @param {*} [options] Override http request option.
151
+ * @throws {RequiredError}
152
+ */
153
+ listRoles(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListRolesResponseClass> {
154
+ return localVarFp.listRoles(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
155
+ },
156
+ };
157
+ };
158
+
159
+ /**
160
+ * Request parameters for listRoles operation in RolesApi.
161
+ * @export
162
+ * @interface RolesApiListRolesRequest
163
+ */
164
+ export interface RolesApiListRolesRequest {
165
+ /**
166
+ * Bearer Token
167
+ * @type {string}
168
+ * @memberof RolesApiListRoles
169
+ */
170
+ readonly authorization?: string
171
+
172
+ /**
173
+ * Page size
174
+ * @type {number}
175
+ * @memberof RolesApiListRoles
176
+ */
177
+ readonly pageSize?: number
178
+
179
+ /**
180
+ * Page token
181
+ * @type {string}
182
+ * @memberof RolesApiListRoles
183
+ */
184
+ readonly pageToken?: string
185
+
186
+ /**
187
+ * List filter
188
+ * @type {string}
189
+ * @memberof RolesApiListRoles
190
+ */
191
+ readonly filter?: string
192
+
193
+ /**
194
+ * Search query
195
+ * @type {string}
196
+ * @memberof RolesApiListRoles
197
+ */
198
+ readonly search?: string
199
+
200
+ /**
201
+ * Ordering criteria
202
+ * @type {string}
203
+ * @memberof RolesApiListRoles
204
+ */
205
+ readonly order?: string
206
+
207
+ /**
208
+ * Extra fields to fetch
209
+ * @type {string}
210
+ * @memberof RolesApiListRoles
211
+ */
212
+ readonly expand?: string
213
+ }
214
+
215
+ /**
216
+ * RolesApi - object-oriented interface
217
+ * @export
218
+ * @class RolesApi
219
+ * @extends {BaseAPI}
220
+ */
221
+ export class RolesApi extends BaseAPI {
222
+ /**
223
+ *
224
+ * @param {RolesApiListRolesRequest} requestParameters Request parameters.
225
+ * @param {*} [options] Override http request option.
226
+ * @throws {RequiredError}
227
+ * @memberof RolesApi
228
+ */
229
+ public listRoles(requestParameters: RolesApiListRolesRequest = {}, options?: AxiosRequestConfig) {
230
+ return RolesApiFp(this.configuration).listRoles(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
231
+ }
232
+ }
@@ -0,0 +1,164 @@
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 { GetSettingsResponseClass } from '../models';
25
+ // URLSearchParams not necessarily used
26
+ // @ts-ignore
27
+ import { URL, URLSearchParams } from 'url';
28
+ const FormData = require('form-data');
29
+ /**
30
+ * SettingsApi - axios parameter creator
31
+ * @export
32
+ */
33
+ export const SettingsApiAxiosParamCreator = function (configuration?: Configuration) {
34
+ return {
35
+ /**
36
+ *
37
+ * @param {string} keys
38
+ * @param {string} [authorization] Bearer Token
39
+ * @param {*} [options] Override http request option.
40
+ * @throws {RequiredError}
41
+ */
42
+ getTenantSettings: async (keys: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
43
+ // verify required parameter 'keys' is not null or undefined
44
+ assertParamExists('getTenantSettings', 'keys', keys)
45
+ const localVarPath = `/tenantservice/v1/settings/tenant`;
46
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
47
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
48
+ let baseOptions;
49
+ let baseAccessToken;
50
+ if (configuration) {
51
+ baseOptions = configuration.baseOptions;
52
+ baseAccessToken = configuration.accessToken;
53
+ }
54
+
55
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
56
+ const localVarHeaderParameter = {} as any;
57
+ const localVarQueryParameter = {} as any;
58
+
59
+ // authentication bearer required
60
+ // http bearer authentication required
61
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
62
+
63
+ if (keys !== undefined) {
64
+ localVarQueryParameter['keys'] = keys;
65
+ }
66
+
67
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
68
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
69
+ }
70
+
71
+
72
+
73
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
74
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
75
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
76
+
77
+ return {
78
+ url: toPathString(localVarUrlObj),
79
+ options: localVarRequestOptions,
80
+ };
81
+ },
82
+ }
83
+ };
84
+
85
+ /**
86
+ * SettingsApi - functional programming interface
87
+ * @export
88
+ */
89
+ export const SettingsApiFp = function(configuration?: Configuration) {
90
+ const localVarAxiosParamCreator = SettingsApiAxiosParamCreator(configuration)
91
+ return {
92
+ /**
93
+ *
94
+ * @param {string} keys
95
+ * @param {string} [authorization] Bearer Token
96
+ * @param {*} [options] Override http request option.
97
+ * @throws {RequiredError}
98
+ */
99
+ async getTenantSettings(keys: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetSettingsResponseClass>> {
100
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getTenantSettings(keys, authorization, options);
101
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
102
+ },
103
+ }
104
+ };
105
+
106
+ /**
107
+ * SettingsApi - factory interface
108
+ * @export
109
+ */
110
+ export const SettingsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
111
+ const localVarFp = SettingsApiFp(configuration)
112
+ return {
113
+ /**
114
+ *
115
+ * @param {string} keys
116
+ * @param {string} [authorization] Bearer Token
117
+ * @param {*} [options] Override http request option.
118
+ * @throws {RequiredError}
119
+ */
120
+ getTenantSettings(keys: string, authorization?: string, options?: any): AxiosPromise<GetSettingsResponseClass> {
121
+ return localVarFp.getTenantSettings(keys, authorization, options).then((request) => request(axios, basePath));
122
+ },
123
+ };
124
+ };
125
+
126
+ /**
127
+ * Request parameters for getTenantSettings operation in SettingsApi.
128
+ * @export
129
+ * @interface SettingsApiGetTenantSettingsRequest
130
+ */
131
+ export interface SettingsApiGetTenantSettingsRequest {
132
+ /**
133
+ *
134
+ * @type {string}
135
+ * @memberof SettingsApiGetTenantSettings
136
+ */
137
+ readonly keys: string
138
+
139
+ /**
140
+ * Bearer Token
141
+ * @type {string}
142
+ * @memberof SettingsApiGetTenantSettings
143
+ */
144
+ readonly authorization?: string
145
+ }
146
+
147
+ /**
148
+ * SettingsApi - object-oriented interface
149
+ * @export
150
+ * @class SettingsApi
151
+ * @extends {BaseAPI}
152
+ */
153
+ export class SettingsApi extends BaseAPI {
154
+ /**
155
+ *
156
+ * @param {SettingsApiGetTenantSettingsRequest} requestParameters Request parameters.
157
+ * @param {*} [options] Override http request option.
158
+ * @throws {RequiredError}
159
+ * @memberof SettingsApi
160
+ */
161
+ public getTenantSettings(requestParameters: SettingsApiGetTenantSettingsRequest, options?: AxiosRequestConfig) {
162
+ return SettingsApiFp(this.configuration).getTenantSettings(requestParameters.keys, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
163
+ }
164
+ }
package/api.ts CHANGED
@@ -30,6 +30,8 @@ import { InviteUsersApi } from './api';
30
30
  import { ListOrganizationInvitationsApi } from './api';
31
31
  import { OrganizationsApi } from './api';
32
32
  import { ReInviteAnOrganizationApi } from './api';
33
+ import { RolesApi } from './api';
34
+ import { SettingsApi } from './api';
33
35
  import { UsersApi } from './api';
34
36
 
35
37
 
@@ -39,5 +41,7 @@ export * from './api/invite-users-api';
39
41
  export * from './api/list-organization-invitations-api';
40
42
  export * from './api/organizations-api';
41
43
  export * from './api/re-invite-an-organization-api';
44
+ export * from './api/roles-api';
45
+ export * from './api/settings-api';
42
46
  export * from './api/users-api';
43
47
 
@@ -0,0 +1,137 @@
1
+ /**
2
+ * EMIL Tenant Service
3
+ * The EMIL TenantService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
+ import { Configuration } from '../configuration';
14
+ import { RequestArgs, BaseAPI } from '../base';
15
+ import { ListRolesResponseClass } from '../models';
16
+ /**
17
+ * RolesApi - axios parameter creator
18
+ * @export
19
+ */
20
+ export declare const RolesApiAxiosParamCreator: (configuration?: Configuration) => {
21
+ /**
22
+ *
23
+ * @param {string} [authorization] Bearer Token
24
+ * @param {number} [pageSize] Page size
25
+ * @param {string} [pageToken] Page token
26
+ * @param {string} [filter] List filter
27
+ * @param {string} [search] Search query
28
+ * @param {string} [order] Ordering criteria
29
+ * @param {string} [expand] Extra fields to fetch
30
+ * @param {*} [options] Override http request option.
31
+ * @throws {RequiredError}
32
+ */
33
+ listRoles: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
34
+ };
35
+ /**
36
+ * RolesApi - functional programming interface
37
+ * @export
38
+ */
39
+ export declare const RolesApiFp: (configuration?: Configuration) => {
40
+ /**
41
+ *
42
+ * @param {string} [authorization] Bearer Token
43
+ * @param {number} [pageSize] Page size
44
+ * @param {string} [pageToken] Page token
45
+ * @param {string} [filter] List filter
46
+ * @param {string} [search] Search query
47
+ * @param {string} [order] Ordering criteria
48
+ * @param {string} [expand] Extra fields to fetch
49
+ * @param {*} [options] Override http request option.
50
+ * @throws {RequiredError}
51
+ */
52
+ listRoles(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListRolesResponseClass>>;
53
+ };
54
+ /**
55
+ * RolesApi - factory interface
56
+ * @export
57
+ */
58
+ export declare const RolesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
59
+ /**
60
+ *
61
+ * @param {string} [authorization] Bearer Token
62
+ * @param {number} [pageSize] Page size
63
+ * @param {string} [pageToken] Page token
64
+ * @param {string} [filter] List filter
65
+ * @param {string} [search] Search query
66
+ * @param {string} [order] Ordering criteria
67
+ * @param {string} [expand] Extra fields to fetch
68
+ * @param {*} [options] Override http request option.
69
+ * @throws {RequiredError}
70
+ */
71
+ listRoles(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListRolesResponseClass>;
72
+ };
73
+ /**
74
+ * Request parameters for listRoles operation in RolesApi.
75
+ * @export
76
+ * @interface RolesApiListRolesRequest
77
+ */
78
+ export interface RolesApiListRolesRequest {
79
+ /**
80
+ * Bearer Token
81
+ * @type {string}
82
+ * @memberof RolesApiListRoles
83
+ */
84
+ readonly authorization?: string;
85
+ /**
86
+ * Page size
87
+ * @type {number}
88
+ * @memberof RolesApiListRoles
89
+ */
90
+ readonly pageSize?: number;
91
+ /**
92
+ * Page token
93
+ * @type {string}
94
+ * @memberof RolesApiListRoles
95
+ */
96
+ readonly pageToken?: string;
97
+ /**
98
+ * List filter
99
+ * @type {string}
100
+ * @memberof RolesApiListRoles
101
+ */
102
+ readonly filter?: string;
103
+ /**
104
+ * Search query
105
+ * @type {string}
106
+ * @memberof RolesApiListRoles
107
+ */
108
+ readonly search?: string;
109
+ /**
110
+ * Ordering criteria
111
+ * @type {string}
112
+ * @memberof RolesApiListRoles
113
+ */
114
+ readonly order?: string;
115
+ /**
116
+ * Extra fields to fetch
117
+ * @type {string}
118
+ * @memberof RolesApiListRoles
119
+ */
120
+ readonly expand?: string;
121
+ }
122
+ /**
123
+ * RolesApi - object-oriented interface
124
+ * @export
125
+ * @class RolesApi
126
+ * @extends {BaseAPI}
127
+ */
128
+ export declare class RolesApi extends BaseAPI {
129
+ /**
130
+ *
131
+ * @param {RolesApiListRolesRequest} requestParameters Request parameters.
132
+ * @param {*} [options] Override http request option.
133
+ * @throws {RequiredError}
134
+ * @memberof RolesApi
135
+ */
136
+ listRoles(requestParameters?: RolesApiListRolesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListRolesResponseClass, any>>;
137
+ }
@@ -0,0 +1,254 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL Tenant Service
6
+ * The EMIL TenantService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __assign = (this && this.__assign) || function () {
31
+ __assign = Object.assign || function(t) {
32
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
33
+ s = arguments[i];
34
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
35
+ t[p] = s[p];
36
+ }
37
+ return t;
38
+ };
39
+ return __assign.apply(this, arguments);
40
+ };
41
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
42
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
43
+ return new (P || (P = Promise))(function (resolve, reject) {
44
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
45
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
46
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
47
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
48
+ });
49
+ };
50
+ var __generator = (this && this.__generator) || function (thisArg, body) {
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
52
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
+ function verb(n) { return function (v) { return step([n, v]); }; }
54
+ function step(op) {
55
+ if (f) throw new TypeError("Generator is already executing.");
56
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
57
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
58
+ if (y = 0, t) op = [op[0] & 2, t.value];
59
+ switch (op[0]) {
60
+ case 0: case 1: t = op; break;
61
+ case 4: _.label++; return { value: op[1], done: false };
62
+ case 5: _.label++; y = op[1]; op = [0]; continue;
63
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
64
+ default:
65
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
66
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
67
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
68
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
69
+ if (t[2]) _.ops.pop();
70
+ _.trys.pop(); continue;
71
+ }
72
+ op = body.call(thisArg, _);
73
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
74
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
+ }
76
+ };
77
+ var __importDefault = (this && this.__importDefault) || function (mod) {
78
+ return (mod && mod.__esModule) ? mod : { "default": mod };
79
+ };
80
+ Object.defineProperty(exports, "__esModule", { value: true });
81
+ exports.RolesApi = exports.RolesApiFactory = exports.RolesApiFp = exports.RolesApiAxiosParamCreator = void 0;
82
+ var axios_1 = __importDefault(require("axios"));
83
+ // Some imports not used depending on template conditions
84
+ // @ts-ignore
85
+ var common_1 = require("../common");
86
+ // @ts-ignore
87
+ var base_1 = require("../base");
88
+ // URLSearchParams not necessarily used
89
+ // @ts-ignore
90
+ var url_1 = require("url");
91
+ var FormData = require('form-data');
92
+ /**
93
+ * RolesApi - axios parameter creator
94
+ * @export
95
+ */
96
+ var RolesApiAxiosParamCreator = function (configuration) {
97
+ var _this = this;
98
+ return {
99
+ /**
100
+ *
101
+ * @param {string} [authorization] Bearer Token
102
+ * @param {number} [pageSize] Page size
103
+ * @param {string} [pageToken] Page token
104
+ * @param {string} [filter] List filter
105
+ * @param {string} [search] Search query
106
+ * @param {string} [order] Ordering criteria
107
+ * @param {string} [expand] Extra fields to fetch
108
+ * @param {*} [options] Override http request option.
109
+ * @throws {RequiredError}
110
+ */
111
+ listRoles: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
112
+ if (options === void 0) { options = {}; }
113
+ return __awaiter(_this, void 0, void 0, function () {
114
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
115
+ return __generator(this, function (_a) {
116
+ switch (_a.label) {
117
+ case 0:
118
+ localVarPath = "/tenantservice/v1/roles";
119
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
120
+ if (configuration) {
121
+ baseOptions = configuration.baseOptions;
122
+ baseAccessToken = configuration.accessToken;
123
+ }
124
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
125
+ localVarHeaderParameter = {};
126
+ localVarQueryParameter = {};
127
+ // authentication bearer required
128
+ // http bearer authentication required
129
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
130
+ case 1:
131
+ // authentication bearer required
132
+ // http bearer authentication required
133
+ _a.sent();
134
+ if (pageSize !== undefined) {
135
+ localVarQueryParameter['pageSize'] = pageSize;
136
+ }
137
+ if (pageToken !== undefined) {
138
+ localVarQueryParameter['pageToken'] = pageToken;
139
+ }
140
+ if (filter !== undefined) {
141
+ localVarQueryParameter['filter'] = filter;
142
+ }
143
+ if (search !== undefined) {
144
+ localVarQueryParameter['search'] = search;
145
+ }
146
+ if (order !== undefined) {
147
+ localVarQueryParameter['order'] = order;
148
+ }
149
+ if (expand !== undefined) {
150
+ localVarQueryParameter['expand'] = expand;
151
+ }
152
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
153
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
154
+ }
155
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
156
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
157
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
158
+ return [2 /*return*/, {
159
+ url: (0, common_1.toPathString)(localVarUrlObj),
160
+ options: localVarRequestOptions,
161
+ }];
162
+ }
163
+ });
164
+ });
165
+ },
166
+ };
167
+ };
168
+ exports.RolesApiAxiosParamCreator = RolesApiAxiosParamCreator;
169
+ /**
170
+ * RolesApi - functional programming interface
171
+ * @export
172
+ */
173
+ var RolesApiFp = function (configuration) {
174
+ var localVarAxiosParamCreator = (0, exports.RolesApiAxiosParamCreator)(configuration);
175
+ return {
176
+ /**
177
+ *
178
+ * @param {string} [authorization] Bearer Token
179
+ * @param {number} [pageSize] Page size
180
+ * @param {string} [pageToken] Page token
181
+ * @param {string} [filter] List filter
182
+ * @param {string} [search] Search query
183
+ * @param {string} [order] Ordering criteria
184
+ * @param {string} [expand] Extra fields to fetch
185
+ * @param {*} [options] Override http request option.
186
+ * @throws {RequiredError}
187
+ */
188
+ listRoles: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
189
+ return __awaiter(this, void 0, void 0, function () {
190
+ var localVarAxiosArgs;
191
+ return __generator(this, function (_a) {
192
+ switch (_a.label) {
193
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listRoles(authorization, pageSize, pageToken, filter, search, order, expand, options)];
194
+ case 1:
195
+ localVarAxiosArgs = _a.sent();
196
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
197
+ }
198
+ });
199
+ });
200
+ },
201
+ };
202
+ };
203
+ exports.RolesApiFp = RolesApiFp;
204
+ /**
205
+ * RolesApi - factory interface
206
+ * @export
207
+ */
208
+ var RolesApiFactory = function (configuration, basePath, axios) {
209
+ var localVarFp = (0, exports.RolesApiFp)(configuration);
210
+ return {
211
+ /**
212
+ *
213
+ * @param {string} [authorization] Bearer Token
214
+ * @param {number} [pageSize] Page size
215
+ * @param {string} [pageToken] Page token
216
+ * @param {string} [filter] List filter
217
+ * @param {string} [search] Search query
218
+ * @param {string} [order] Ordering criteria
219
+ * @param {string} [expand] Extra fields to fetch
220
+ * @param {*} [options] Override http request option.
221
+ * @throws {RequiredError}
222
+ */
223
+ listRoles: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
224
+ return localVarFp.listRoles(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
225
+ },
226
+ };
227
+ };
228
+ exports.RolesApiFactory = RolesApiFactory;
229
+ /**
230
+ * RolesApi - object-oriented interface
231
+ * @export
232
+ * @class RolesApi
233
+ * @extends {BaseAPI}
234
+ */
235
+ var RolesApi = /** @class */ (function (_super) {
236
+ __extends(RolesApi, _super);
237
+ function RolesApi() {
238
+ return _super !== null && _super.apply(this, arguments) || this;
239
+ }
240
+ /**
241
+ *
242
+ * @param {RolesApiListRolesRequest} requestParameters Request parameters.
243
+ * @param {*} [options] Override http request option.
244
+ * @throws {RequiredError}
245
+ * @memberof RolesApi
246
+ */
247
+ RolesApi.prototype.listRoles = function (requestParameters, options) {
248
+ var _this = this;
249
+ if (requestParameters === void 0) { requestParameters = {}; }
250
+ return (0, exports.RolesApiFp)(this.configuration).listRoles(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
251
+ };
252
+ return RolesApi;
253
+ }(base_1.BaseAPI));
254
+ exports.RolesApi = RolesApi;
@@ -0,0 +1,92 @@
1
+ /**
2
+ * EMIL Tenant Service
3
+ * The EMIL TenantService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
+ import { Configuration } from '../configuration';
14
+ import { RequestArgs, BaseAPI } from '../base';
15
+ import { GetSettingsResponseClass } from '../models';
16
+ /**
17
+ * SettingsApi - axios parameter creator
18
+ * @export
19
+ */
20
+ export declare const SettingsApiAxiosParamCreator: (configuration?: Configuration) => {
21
+ /**
22
+ *
23
+ * @param {string} keys
24
+ * @param {string} [authorization] Bearer Token
25
+ * @param {*} [options] Override http request option.
26
+ * @throws {RequiredError}
27
+ */
28
+ getTenantSettings: (keys: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
29
+ };
30
+ /**
31
+ * SettingsApi - functional programming interface
32
+ * @export
33
+ */
34
+ export declare const SettingsApiFp: (configuration?: Configuration) => {
35
+ /**
36
+ *
37
+ * @param {string} keys
38
+ * @param {string} [authorization] Bearer Token
39
+ * @param {*} [options] Override http request option.
40
+ * @throws {RequiredError}
41
+ */
42
+ getTenantSettings(keys: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetSettingsResponseClass>>;
43
+ };
44
+ /**
45
+ * SettingsApi - factory interface
46
+ * @export
47
+ */
48
+ export declare const SettingsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
49
+ /**
50
+ *
51
+ * @param {string} keys
52
+ * @param {string} [authorization] Bearer Token
53
+ * @param {*} [options] Override http request option.
54
+ * @throws {RequiredError}
55
+ */
56
+ getTenantSettings(keys: string, authorization?: string, options?: any): AxiosPromise<GetSettingsResponseClass>;
57
+ };
58
+ /**
59
+ * Request parameters for getTenantSettings operation in SettingsApi.
60
+ * @export
61
+ * @interface SettingsApiGetTenantSettingsRequest
62
+ */
63
+ export interface SettingsApiGetTenantSettingsRequest {
64
+ /**
65
+ *
66
+ * @type {string}
67
+ * @memberof SettingsApiGetTenantSettings
68
+ */
69
+ readonly keys: string;
70
+ /**
71
+ * Bearer Token
72
+ * @type {string}
73
+ * @memberof SettingsApiGetTenantSettings
74
+ */
75
+ readonly authorization?: string;
76
+ }
77
+ /**
78
+ * SettingsApi - object-oriented interface
79
+ * @export
80
+ * @class SettingsApi
81
+ * @extends {BaseAPI}
82
+ */
83
+ export declare class SettingsApi extends BaseAPI {
84
+ /**
85
+ *
86
+ * @param {SettingsApiGetTenantSettingsRequest} requestParameters Request parameters.
87
+ * @param {*} [options] Override http request option.
88
+ * @throws {RequiredError}
89
+ * @memberof SettingsApi
90
+ */
91
+ getTenantSettings(requestParameters: SettingsApiGetTenantSettingsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetSettingsResponseClass, any>>;
92
+ }
@@ -0,0 +1,225 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL Tenant Service
6
+ * The EMIL TenantService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __assign = (this && this.__assign) || function () {
31
+ __assign = Object.assign || function(t) {
32
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
33
+ s = arguments[i];
34
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
35
+ t[p] = s[p];
36
+ }
37
+ return t;
38
+ };
39
+ return __assign.apply(this, arguments);
40
+ };
41
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
42
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
43
+ return new (P || (P = Promise))(function (resolve, reject) {
44
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
45
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
46
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
47
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
48
+ });
49
+ };
50
+ var __generator = (this && this.__generator) || function (thisArg, body) {
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
52
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
+ function verb(n) { return function (v) { return step([n, v]); }; }
54
+ function step(op) {
55
+ if (f) throw new TypeError("Generator is already executing.");
56
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
57
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
58
+ if (y = 0, t) op = [op[0] & 2, t.value];
59
+ switch (op[0]) {
60
+ case 0: case 1: t = op; break;
61
+ case 4: _.label++; return { value: op[1], done: false };
62
+ case 5: _.label++; y = op[1]; op = [0]; continue;
63
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
64
+ default:
65
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
66
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
67
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
68
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
69
+ if (t[2]) _.ops.pop();
70
+ _.trys.pop(); continue;
71
+ }
72
+ op = body.call(thisArg, _);
73
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
74
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
+ }
76
+ };
77
+ var __importDefault = (this && this.__importDefault) || function (mod) {
78
+ return (mod && mod.__esModule) ? mod : { "default": mod };
79
+ };
80
+ Object.defineProperty(exports, "__esModule", { value: true });
81
+ exports.SettingsApi = exports.SettingsApiFactory = exports.SettingsApiFp = exports.SettingsApiAxiosParamCreator = void 0;
82
+ var axios_1 = __importDefault(require("axios"));
83
+ // Some imports not used depending on template conditions
84
+ // @ts-ignore
85
+ var common_1 = require("../common");
86
+ // @ts-ignore
87
+ var base_1 = require("../base");
88
+ // URLSearchParams not necessarily used
89
+ // @ts-ignore
90
+ var url_1 = require("url");
91
+ var FormData = require('form-data');
92
+ /**
93
+ * SettingsApi - axios parameter creator
94
+ * @export
95
+ */
96
+ var SettingsApiAxiosParamCreator = function (configuration) {
97
+ var _this = this;
98
+ return {
99
+ /**
100
+ *
101
+ * @param {string} keys
102
+ * @param {string} [authorization] Bearer Token
103
+ * @param {*} [options] Override http request option.
104
+ * @throws {RequiredError}
105
+ */
106
+ getTenantSettings: function (keys, authorization, options) {
107
+ if (options === void 0) { options = {}; }
108
+ return __awaiter(_this, void 0, void 0, function () {
109
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
110
+ return __generator(this, function (_a) {
111
+ switch (_a.label) {
112
+ case 0:
113
+ // verify required parameter 'keys' is not null or undefined
114
+ (0, common_1.assertParamExists)('getTenantSettings', 'keys', keys);
115
+ localVarPath = "/tenantservice/v1/settings/tenant";
116
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
117
+ if (configuration) {
118
+ baseOptions = configuration.baseOptions;
119
+ baseAccessToken = configuration.accessToken;
120
+ }
121
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
122
+ localVarHeaderParameter = {};
123
+ localVarQueryParameter = {};
124
+ // authentication bearer required
125
+ // http bearer authentication required
126
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
127
+ case 1:
128
+ // authentication bearer required
129
+ // http bearer authentication required
130
+ _a.sent();
131
+ if (keys !== undefined) {
132
+ localVarQueryParameter['keys'] = keys;
133
+ }
134
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
135
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
136
+ }
137
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
138
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
139
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
140
+ return [2 /*return*/, {
141
+ url: (0, common_1.toPathString)(localVarUrlObj),
142
+ options: localVarRequestOptions,
143
+ }];
144
+ }
145
+ });
146
+ });
147
+ },
148
+ };
149
+ };
150
+ exports.SettingsApiAxiosParamCreator = SettingsApiAxiosParamCreator;
151
+ /**
152
+ * SettingsApi - functional programming interface
153
+ * @export
154
+ */
155
+ var SettingsApiFp = function (configuration) {
156
+ var localVarAxiosParamCreator = (0, exports.SettingsApiAxiosParamCreator)(configuration);
157
+ return {
158
+ /**
159
+ *
160
+ * @param {string} keys
161
+ * @param {string} [authorization] Bearer Token
162
+ * @param {*} [options] Override http request option.
163
+ * @throws {RequiredError}
164
+ */
165
+ getTenantSettings: function (keys, authorization, options) {
166
+ return __awaiter(this, void 0, void 0, function () {
167
+ var localVarAxiosArgs;
168
+ return __generator(this, function (_a) {
169
+ switch (_a.label) {
170
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getTenantSettings(keys, authorization, options)];
171
+ case 1:
172
+ localVarAxiosArgs = _a.sent();
173
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
174
+ }
175
+ });
176
+ });
177
+ },
178
+ };
179
+ };
180
+ exports.SettingsApiFp = SettingsApiFp;
181
+ /**
182
+ * SettingsApi - factory interface
183
+ * @export
184
+ */
185
+ var SettingsApiFactory = function (configuration, basePath, axios) {
186
+ var localVarFp = (0, exports.SettingsApiFp)(configuration);
187
+ return {
188
+ /**
189
+ *
190
+ * @param {string} keys
191
+ * @param {string} [authorization] Bearer Token
192
+ * @param {*} [options] Override http request option.
193
+ * @throws {RequiredError}
194
+ */
195
+ getTenantSettings: function (keys, authorization, options) {
196
+ return localVarFp.getTenantSettings(keys, authorization, options).then(function (request) { return request(axios, basePath); });
197
+ },
198
+ };
199
+ };
200
+ exports.SettingsApiFactory = SettingsApiFactory;
201
+ /**
202
+ * SettingsApi - object-oriented interface
203
+ * @export
204
+ * @class SettingsApi
205
+ * @extends {BaseAPI}
206
+ */
207
+ var SettingsApi = /** @class */ (function (_super) {
208
+ __extends(SettingsApi, _super);
209
+ function SettingsApi() {
210
+ return _super !== null && _super.apply(this, arguments) || this;
211
+ }
212
+ /**
213
+ *
214
+ * @param {SettingsApiGetTenantSettingsRequest} requestParameters Request parameters.
215
+ * @param {*} [options] Override http request option.
216
+ * @throws {RequiredError}
217
+ * @memberof SettingsApi
218
+ */
219
+ SettingsApi.prototype.getTenantSettings = function (requestParameters, options) {
220
+ var _this = this;
221
+ return (0, exports.SettingsApiFp)(this.configuration).getTenantSettings(requestParameters.keys, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
222
+ };
223
+ return SettingsApi;
224
+ }(base_1.BaseAPI));
225
+ exports.SettingsApi = SettingsApi;
package/dist/api.d.ts CHANGED
@@ -15,4 +15,6 @@ export * from './api/invite-users-api';
15
15
  export * from './api/list-organization-invitations-api';
16
16
  export * from './api/organizations-api';
17
17
  export * from './api/re-invite-an-organization-api';
18
+ export * from './api/roles-api';
19
+ export * from './api/settings-api';
18
20
  export * from './api/users-api';
package/dist/api.js CHANGED
@@ -33,4 +33,6 @@ __exportStar(require("./api/invite-users-api"), exports);
33
33
  __exportStar(require("./api/list-organization-invitations-api"), exports);
34
34
  __exportStar(require("./api/organizations-api"), exports);
35
35
  __exportStar(require("./api/re-invite-an-organization-api"), exports);
36
+ __exportStar(require("./api/roles-api"), exports);
37
+ __exportStar(require("./api/settings-api"), exports);
36
38
  __exportStar(require("./api/users-api"), exports);
@@ -31,6 +31,7 @@ export * from './list-custom-schemas-response-class';
31
31
  export * from './list-invites-response-class';
32
32
  export * from './list-org-invitations-response-class';
33
33
  export * from './list-organizations-response-class';
34
+ export * from './list-roles-response-class';
34
35
  export * from './list-users-response-class';
35
36
  export * from './org-invitation-class';
36
37
  export * from './org-invitation-response-class';
@@ -47,6 +47,7 @@ __exportStar(require("./list-custom-schemas-response-class"), exports);
47
47
  __exportStar(require("./list-invites-response-class"), exports);
48
48
  __exportStar(require("./list-org-invitations-response-class"), exports);
49
49
  __exportStar(require("./list-organizations-response-class"), exports);
50
+ __exportStar(require("./list-roles-response-class"), exports);
50
51
  __exportStar(require("./list-users-response-class"), exports);
51
52
  __exportStar(require("./org-invitation-class"), exports);
52
53
  __exportStar(require("./org-invitation-response-class"), exports);
@@ -0,0 +1,31 @@
1
+ /**
2
+ * EMIL Tenant Service
3
+ * The EMIL TenantService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { RoleClass } from './role-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ListRolesResponseClass
17
+ */
18
+ export interface ListRolesResponseClass {
19
+ /**
20
+ * Roles
21
+ * @type {Array<RoleClass>}
22
+ * @memberof ListRolesResponseClass
23
+ */
24
+ 'items': Array<RoleClass>;
25
+ /**
26
+ * Next page token
27
+ * @type {string}
28
+ * @memberof ListRolesResponseClass
29
+ */
30
+ 'nextPageToken': string;
31
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL Tenant Service
6
+ * The EMIL TenantService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
package/models/index.ts CHANGED
@@ -31,6 +31,7 @@ export * from './list-custom-schemas-response-class';
31
31
  export * from './list-invites-response-class';
32
32
  export * from './list-org-invitations-response-class';
33
33
  export * from './list-organizations-response-class';
34
+ export * from './list-roles-response-class';
34
35
  export * from './list-users-response-class';
35
36
  export * from './org-invitation-class';
36
37
  export * from './org-invitation-response-class';
@@ -0,0 +1,37 @@
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 { RoleClass } from './role-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface ListRolesResponseClass
22
+ */
23
+ export interface ListRolesResponseClass {
24
+ /**
25
+ * Roles
26
+ * @type {Array<RoleClass>}
27
+ * @memberof ListRolesResponseClass
28
+ */
29
+ 'items': Array<RoleClass>;
30
+ /**
31
+ * Next page token
32
+ * @type {string}
33
+ * @memberof ListRolesResponseClass
34
+ */
35
+ 'nextPageToken': string;
36
+ }
37
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/tenant-sdk-node",
3
- "version": "1.3.0",
3
+ "version": "1.4.1",
4
4
  "description": "OpenAPI client for @emilgroup/tenant-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [