@emilgroup/tenant-sdk-node 1.3.0 → 1.4.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.
@@ -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.0 --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.0
25
25
  ```
26
26
 
27
27
  And then you can import `UsersApi`.
@@ -0,0 +1,218 @@
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 {number} [pageSize] Page size
38
+ * @param {string} [pageToken] Page token
39
+ * @param {string} [filter] List filter
40
+ * @param {string} [search] Search query
41
+ * @param {string} [order] Ordering criteria
42
+ * @param {string} [expand] Extra fields to fetch
43
+ * @param {*} [options] Override http request option.
44
+ * @throws {RequiredError}
45
+ */
46
+ listRoles: async (pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
47
+ const localVarPath = `/tenantservice/v1/roles`;
48
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
49
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
50
+ let baseOptions;
51
+ let baseAccessToken;
52
+ if (configuration) {
53
+ baseOptions = configuration.baseOptions;
54
+ baseAccessToken = configuration.accessToken;
55
+ }
56
+
57
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
58
+ const localVarHeaderParameter = {} as any;
59
+ const localVarQueryParameter = {} as any;
60
+
61
+ // authentication bearer required
62
+ // http bearer authentication required
63
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
64
+
65
+ if (pageSize !== undefined) {
66
+ localVarQueryParameter['pageSize'] = pageSize;
67
+ }
68
+
69
+ if (pageToken !== undefined) {
70
+ localVarQueryParameter['pageToken'] = pageToken;
71
+ }
72
+
73
+ if (filter !== undefined) {
74
+ localVarQueryParameter['filter'] = filter;
75
+ }
76
+
77
+ if (search !== undefined) {
78
+ localVarQueryParameter['search'] = search;
79
+ }
80
+
81
+ if (order !== undefined) {
82
+ localVarQueryParameter['order'] = order;
83
+ }
84
+
85
+ if (expand !== undefined) {
86
+ localVarQueryParameter['expand'] = expand;
87
+ }
88
+
89
+
90
+
91
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
92
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
93
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
94
+
95
+ return {
96
+ url: toPathString(localVarUrlObj),
97
+ options: localVarRequestOptions,
98
+ };
99
+ },
100
+ }
101
+ };
102
+
103
+ /**
104
+ * RolesApi - functional programming interface
105
+ * @export
106
+ */
107
+ export const RolesApiFp = function(configuration?: Configuration) {
108
+ const localVarAxiosParamCreator = RolesApiAxiosParamCreator(configuration)
109
+ return {
110
+ /**
111
+ *
112
+ * @param {number} [pageSize] Page size
113
+ * @param {string} [pageToken] Page token
114
+ * @param {string} [filter] List filter
115
+ * @param {string} [search] Search query
116
+ * @param {string} [order] Ordering criteria
117
+ * @param {string} [expand] Extra fields to fetch
118
+ * @param {*} [options] Override http request option.
119
+ * @throws {RequiredError}
120
+ */
121
+ async listRoles(pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListRolesResponseClass>> {
122
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listRoles(pageSize, pageToken, filter, search, order, expand, options);
123
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
124
+ },
125
+ }
126
+ };
127
+
128
+ /**
129
+ * RolesApi - factory interface
130
+ * @export
131
+ */
132
+ export const RolesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
133
+ const localVarFp = RolesApiFp(configuration)
134
+ return {
135
+ /**
136
+ *
137
+ * @param {number} [pageSize] Page size
138
+ * @param {string} [pageToken] Page token
139
+ * @param {string} [filter] List filter
140
+ * @param {string} [search] Search query
141
+ * @param {string} [order] Ordering criteria
142
+ * @param {string} [expand] Extra fields to fetch
143
+ * @param {*} [options] Override http request option.
144
+ * @throws {RequiredError}
145
+ */
146
+ listRoles(pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListRolesResponseClass> {
147
+ return localVarFp.listRoles(pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
148
+ },
149
+ };
150
+ };
151
+
152
+ /**
153
+ * Request parameters for listRoles operation in RolesApi.
154
+ * @export
155
+ * @interface RolesApiListRolesRequest
156
+ */
157
+ export interface RolesApiListRolesRequest {
158
+ /**
159
+ * Page size
160
+ * @type {number}
161
+ * @memberof RolesApiListRoles
162
+ */
163
+ readonly pageSize?: number
164
+
165
+ /**
166
+ * Page token
167
+ * @type {string}
168
+ * @memberof RolesApiListRoles
169
+ */
170
+ readonly pageToken?: string
171
+
172
+ /**
173
+ * List filter
174
+ * @type {string}
175
+ * @memberof RolesApiListRoles
176
+ */
177
+ readonly filter?: string
178
+
179
+ /**
180
+ * Search query
181
+ * @type {string}
182
+ * @memberof RolesApiListRoles
183
+ */
184
+ readonly search?: string
185
+
186
+ /**
187
+ * Ordering criteria
188
+ * @type {string}
189
+ * @memberof RolesApiListRoles
190
+ */
191
+ readonly order?: string
192
+
193
+ /**
194
+ * Extra fields to fetch
195
+ * @type {string}
196
+ * @memberof RolesApiListRoles
197
+ */
198
+ readonly expand?: string
199
+ }
200
+
201
+ /**
202
+ * RolesApi - object-oriented interface
203
+ * @export
204
+ * @class RolesApi
205
+ * @extends {BaseAPI}
206
+ */
207
+ export class RolesApi extends BaseAPI {
208
+ /**
209
+ *
210
+ * @param {RolesApiListRolesRequest} requestParameters Request parameters.
211
+ * @param {*} [options] Override http request option.
212
+ * @throws {RequiredError}
213
+ * @memberof RolesApi
214
+ */
215
+ public listRoles(requestParameters: RolesApiListRolesRequest = {}, options?: AxiosRequestConfig) {
216
+ return RolesApiFp(this.configuration).listRoles(requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
217
+ }
218
+ }
@@ -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,128 @@
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 {number} [pageSize] Page size
24
+ * @param {string} [pageToken] Page token
25
+ * @param {string} [filter] List filter
26
+ * @param {string} [search] Search query
27
+ * @param {string} [order] Ordering criteria
28
+ * @param {string} [expand] Extra fields to fetch
29
+ * @param {*} [options] Override http request option.
30
+ * @throws {RequiredError}
31
+ */
32
+ listRoles: (pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
33
+ };
34
+ /**
35
+ * RolesApi - functional programming interface
36
+ * @export
37
+ */
38
+ export declare const RolesApiFp: (configuration?: Configuration) => {
39
+ /**
40
+ *
41
+ * @param {number} [pageSize] Page size
42
+ * @param {string} [pageToken] Page token
43
+ * @param {string} [filter] List filter
44
+ * @param {string} [search] Search query
45
+ * @param {string} [order] Ordering criteria
46
+ * @param {string} [expand] Extra fields to fetch
47
+ * @param {*} [options] Override http request option.
48
+ * @throws {RequiredError}
49
+ */
50
+ listRoles(pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListRolesResponseClass>>;
51
+ };
52
+ /**
53
+ * RolesApi - factory interface
54
+ * @export
55
+ */
56
+ export declare const RolesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
57
+ /**
58
+ *
59
+ * @param {number} [pageSize] Page size
60
+ * @param {string} [pageToken] Page token
61
+ * @param {string} [filter] List filter
62
+ * @param {string} [search] Search query
63
+ * @param {string} [order] Ordering criteria
64
+ * @param {string} [expand] Extra fields to fetch
65
+ * @param {*} [options] Override http request option.
66
+ * @throws {RequiredError}
67
+ */
68
+ listRoles(pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListRolesResponseClass>;
69
+ };
70
+ /**
71
+ * Request parameters for listRoles operation in RolesApi.
72
+ * @export
73
+ * @interface RolesApiListRolesRequest
74
+ */
75
+ export interface RolesApiListRolesRequest {
76
+ /**
77
+ * Page size
78
+ * @type {number}
79
+ * @memberof RolesApiListRoles
80
+ */
81
+ readonly pageSize?: number;
82
+ /**
83
+ * Page token
84
+ * @type {string}
85
+ * @memberof RolesApiListRoles
86
+ */
87
+ readonly pageToken?: string;
88
+ /**
89
+ * List filter
90
+ * @type {string}
91
+ * @memberof RolesApiListRoles
92
+ */
93
+ readonly filter?: string;
94
+ /**
95
+ * Search query
96
+ * @type {string}
97
+ * @memberof RolesApiListRoles
98
+ */
99
+ readonly search?: string;
100
+ /**
101
+ * Ordering criteria
102
+ * @type {string}
103
+ * @memberof RolesApiListRoles
104
+ */
105
+ readonly order?: string;
106
+ /**
107
+ * Extra fields to fetch
108
+ * @type {string}
109
+ * @memberof RolesApiListRoles
110
+ */
111
+ readonly expand?: string;
112
+ }
113
+ /**
114
+ * RolesApi - object-oriented interface
115
+ * @export
116
+ * @class RolesApi
117
+ * @extends {BaseAPI}
118
+ */
119
+ export declare class RolesApi extends BaseAPI {
120
+ /**
121
+ *
122
+ * @param {RolesApiListRolesRequest} requestParameters Request parameters.
123
+ * @param {*} [options] Override http request option.
124
+ * @throws {RequiredError}
125
+ * @memberof RolesApi
126
+ */
127
+ listRoles(requestParameters?: RolesApiListRolesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListRolesResponseClass, any>>;
128
+ }
@@ -0,0 +1,248 @@
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 {number} [pageSize] Page size
102
+ * @param {string} [pageToken] Page token
103
+ * @param {string} [filter] List filter
104
+ * @param {string} [search] Search query
105
+ * @param {string} [order] Ordering criteria
106
+ * @param {string} [expand] Extra fields to fetch
107
+ * @param {*} [options] Override http request option.
108
+ * @throws {RequiredError}
109
+ */
110
+ listRoles: function (pageSize, pageToken, filter, search, order, expand, options) {
111
+ if (options === void 0) { options = {}; }
112
+ return __awaiter(_this, void 0, void 0, function () {
113
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
114
+ return __generator(this, function (_a) {
115
+ switch (_a.label) {
116
+ case 0:
117
+ localVarPath = "/tenantservice/v1/roles";
118
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
119
+ if (configuration) {
120
+ baseOptions = configuration.baseOptions;
121
+ baseAccessToken = configuration.accessToken;
122
+ }
123
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
124
+ localVarHeaderParameter = {};
125
+ localVarQueryParameter = {};
126
+ // authentication bearer required
127
+ // http bearer authentication required
128
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
129
+ case 1:
130
+ // authentication bearer required
131
+ // http bearer authentication required
132
+ _a.sent();
133
+ if (pageSize !== undefined) {
134
+ localVarQueryParameter['pageSize'] = pageSize;
135
+ }
136
+ if (pageToken !== undefined) {
137
+ localVarQueryParameter['pageToken'] = pageToken;
138
+ }
139
+ if (filter !== undefined) {
140
+ localVarQueryParameter['filter'] = filter;
141
+ }
142
+ if (search !== undefined) {
143
+ localVarQueryParameter['search'] = search;
144
+ }
145
+ if (order !== undefined) {
146
+ localVarQueryParameter['order'] = order;
147
+ }
148
+ if (expand !== undefined) {
149
+ localVarQueryParameter['expand'] = expand;
150
+ }
151
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
152
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
153
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
154
+ return [2 /*return*/, {
155
+ url: (0, common_1.toPathString)(localVarUrlObj),
156
+ options: localVarRequestOptions,
157
+ }];
158
+ }
159
+ });
160
+ });
161
+ },
162
+ };
163
+ };
164
+ exports.RolesApiAxiosParamCreator = RolesApiAxiosParamCreator;
165
+ /**
166
+ * RolesApi - functional programming interface
167
+ * @export
168
+ */
169
+ var RolesApiFp = function (configuration) {
170
+ var localVarAxiosParamCreator = (0, exports.RolesApiAxiosParamCreator)(configuration);
171
+ return {
172
+ /**
173
+ *
174
+ * @param {number} [pageSize] Page size
175
+ * @param {string} [pageToken] Page token
176
+ * @param {string} [filter] List filter
177
+ * @param {string} [search] Search query
178
+ * @param {string} [order] Ordering criteria
179
+ * @param {string} [expand] Extra fields to fetch
180
+ * @param {*} [options] Override http request option.
181
+ * @throws {RequiredError}
182
+ */
183
+ listRoles: function (pageSize, pageToken, filter, search, order, expand, options) {
184
+ return __awaiter(this, void 0, void 0, function () {
185
+ var localVarAxiosArgs;
186
+ return __generator(this, function (_a) {
187
+ switch (_a.label) {
188
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listRoles(pageSize, pageToken, filter, search, order, expand, options)];
189
+ case 1:
190
+ localVarAxiosArgs = _a.sent();
191
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
192
+ }
193
+ });
194
+ });
195
+ },
196
+ };
197
+ };
198
+ exports.RolesApiFp = RolesApiFp;
199
+ /**
200
+ * RolesApi - factory interface
201
+ * @export
202
+ */
203
+ var RolesApiFactory = function (configuration, basePath, axios) {
204
+ var localVarFp = (0, exports.RolesApiFp)(configuration);
205
+ return {
206
+ /**
207
+ *
208
+ * @param {number} [pageSize] Page size
209
+ * @param {string} [pageToken] Page token
210
+ * @param {string} [filter] List filter
211
+ * @param {string} [search] Search query
212
+ * @param {string} [order] Ordering criteria
213
+ * @param {string} [expand] Extra fields to fetch
214
+ * @param {*} [options] Override http request option.
215
+ * @throws {RequiredError}
216
+ */
217
+ listRoles: function (pageSize, pageToken, filter, search, order, expand, options) {
218
+ return localVarFp.listRoles(pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
219
+ },
220
+ };
221
+ };
222
+ exports.RolesApiFactory = RolesApiFactory;
223
+ /**
224
+ * RolesApi - object-oriented interface
225
+ * @export
226
+ * @class RolesApi
227
+ * @extends {BaseAPI}
228
+ */
229
+ var RolesApi = /** @class */ (function (_super) {
230
+ __extends(RolesApi, _super);
231
+ function RolesApi() {
232
+ return _super !== null && _super.apply(this, arguments) || this;
233
+ }
234
+ /**
235
+ *
236
+ * @param {RolesApiListRolesRequest} requestParameters Request parameters.
237
+ * @param {*} [options] Override http request option.
238
+ * @throws {RequiredError}
239
+ * @memberof RolesApi
240
+ */
241
+ RolesApi.prototype.listRoles = function (requestParameters, options) {
242
+ var _this = this;
243
+ if (requestParameters === void 0) { requestParameters = {}; }
244
+ return (0, exports.RolesApiFp)(this.configuration).listRoles(requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
245
+ };
246
+ return RolesApi;
247
+ }(base_1.BaseAPI));
248
+ 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.0",
4
4
  "description": "OpenAPI client for @emilgroup/tenant-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [