@emilgroup/tenant-sdk 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@1.3.0 --save
20
+ npm install @emilgroup/tenant-sdk@1.4.0 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/tenant-sdk@1.3.0
24
+ yarn add @emilgroup/tenant-sdk@1.4.0
25
25
  ```
26
26
 
27
27
  And then you can import `UsersApi`.
@@ -0,0 +1,236 @@
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
+ * Returns a list of roles you have previously created. The roles are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
37
+ * @summary List roles
38
+ * @param {string} [authorization] Bearer Token
39
+ * @param {number} [pageSize] Page size
40
+ * @param {string} [pageToken] Page token
41
+ * @param {'id' | 'code' | 'label'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
42
+ * @param {string} [search] Search query
43
+ * @param {'label'} [order] Order allowing you to specify the desired order of entities retrieved from the server.
44
+ * @param {'permissions'} [expand] You can expand roles in this endpoint. By default, permissions will be an empty array.
45
+ * @param {*} [options] Override http request option.
46
+ * @throws {RequiredError}
47
+ */
48
+ listRoles: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: 'id' | 'code' | 'label', search?: string, order?: 'label', expand?: 'permissions', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
49
+ const localVarPath = `/tenantservice/v1/roles`;
50
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
51
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
52
+ let baseOptions;
53
+ let baseAccessToken;
54
+ if (configuration) {
55
+ baseOptions = configuration.baseOptions;
56
+ baseAccessToken = configuration.accessToken;
57
+ }
58
+
59
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
60
+ const localVarHeaderParameter = {} as any;
61
+ const localVarQueryParameter = {} as any;
62
+
63
+ // authentication bearer required
64
+ // http bearer authentication required
65
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
66
+
67
+ if (pageSize !== undefined) {
68
+ localVarQueryParameter['pageSize'] = pageSize;
69
+ }
70
+
71
+ if (pageToken !== undefined) {
72
+ localVarQueryParameter['pageToken'] = pageToken;
73
+ }
74
+
75
+ if (filter !== undefined) {
76
+ localVarQueryParameter['filter'] = filter;
77
+ }
78
+
79
+ if (search !== undefined) {
80
+ localVarQueryParameter['search'] = search;
81
+ }
82
+
83
+ if (order !== undefined) {
84
+ localVarQueryParameter['order'] = order;
85
+ }
86
+
87
+ if (expand !== undefined) {
88
+ localVarQueryParameter['expand'] = expand;
89
+ }
90
+
91
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
92
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
93
+ }
94
+
95
+
96
+
97
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
98
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
99
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
100
+
101
+ return {
102
+ url: toPathString(localVarUrlObj),
103
+ options: localVarRequestOptions,
104
+ };
105
+ },
106
+ }
107
+ };
108
+
109
+ /**
110
+ * RolesApi - functional programming interface
111
+ * @export
112
+ */
113
+ export const RolesApiFp = function(configuration?: Configuration) {
114
+ const localVarAxiosParamCreator = RolesApiAxiosParamCreator(configuration)
115
+ return {
116
+ /**
117
+ * Returns a list of roles you have previously created. The roles are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
118
+ * @summary List roles
119
+ * @param {string} [authorization] Bearer Token
120
+ * @param {number} [pageSize] Page size
121
+ * @param {string} [pageToken] Page token
122
+ * @param {'id' | 'code' | 'label'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
123
+ * @param {string} [search] Search query
124
+ * @param {'label'} [order] Order allowing you to specify the desired order of entities retrieved from the server.
125
+ * @param {'permissions'} [expand] You can expand roles in this endpoint. By default, permissions will be an empty array.
126
+ * @param {*} [options] Override http request option.
127
+ * @throws {RequiredError}
128
+ */
129
+ async listRoles(authorization?: string, pageSize?: number, pageToken?: string, filter?: 'id' | 'code' | 'label', search?: string, order?: 'label', expand?: 'permissions', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListRolesResponseClass>> {
130
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listRoles(authorization, pageSize, pageToken, filter, search, order, expand, options);
131
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
132
+ },
133
+ }
134
+ };
135
+
136
+ /**
137
+ * RolesApi - factory interface
138
+ * @export
139
+ */
140
+ export const RolesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
141
+ const localVarFp = RolesApiFp(configuration)
142
+ return {
143
+ /**
144
+ * Returns a list of roles you have previously created. The roles are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
145
+ * @summary List roles
146
+ * @param {string} [authorization] Bearer Token
147
+ * @param {number} [pageSize] Page size
148
+ * @param {string} [pageToken] Page token
149
+ * @param {'id' | 'code' | 'label'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
150
+ * @param {string} [search] Search query
151
+ * @param {'label'} [order] Order allowing you to specify the desired order of entities retrieved from the server.
152
+ * @param {'permissions'} [expand] You can expand roles in this endpoint. By default, permissions will be an empty array.
153
+ * @param {*} [options] Override http request option.
154
+ * @throws {RequiredError}
155
+ */
156
+ listRoles(authorization?: string, pageSize?: number, pageToken?: string, filter?: 'id' | 'code' | 'label', search?: string, order?: 'label', expand?: 'permissions', options?: any): AxiosPromise<ListRolesResponseClass> {
157
+ return localVarFp.listRoles(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
158
+ },
159
+ };
160
+ };
161
+
162
+ /**
163
+ * Request parameters for listRoles operation in RolesApi.
164
+ * @export
165
+ * @interface RolesApiListRolesRequest
166
+ */
167
+ export interface RolesApiListRolesRequest {
168
+ /**
169
+ * Bearer Token
170
+ * @type {string}
171
+ * @memberof RolesApiListRoles
172
+ */
173
+ readonly authorization?: string
174
+
175
+ /**
176
+ * Page size
177
+ * @type {number}
178
+ * @memberof RolesApiListRoles
179
+ */
180
+ readonly pageSize?: number
181
+
182
+ /**
183
+ * Page token
184
+ * @type {string}
185
+ * @memberof RolesApiListRoles
186
+ */
187
+ readonly pageToken?: string
188
+
189
+ /**
190
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
191
+ * @type {'id' | 'code' | 'label'}
192
+ * @memberof RolesApiListRoles
193
+ */
194
+ readonly filter?: 'id' | 'code' | 'label'
195
+
196
+ /**
197
+ * Search query
198
+ * @type {string}
199
+ * @memberof RolesApiListRoles
200
+ */
201
+ readonly search?: string
202
+
203
+ /**
204
+ * Order allowing you to specify the desired order of entities retrieved from the server.
205
+ * @type {'label'}
206
+ * @memberof RolesApiListRoles
207
+ */
208
+ readonly order?: 'label'
209
+
210
+ /**
211
+ * You can expand roles in this endpoint. By default, permissions will be an empty array.
212
+ * @type {'permissions'}
213
+ * @memberof RolesApiListRoles
214
+ */
215
+ readonly expand?: 'permissions'
216
+ }
217
+
218
+ /**
219
+ * RolesApi - object-oriented interface
220
+ * @export
221
+ * @class RolesApi
222
+ * @extends {BaseAPI}
223
+ */
224
+ export class RolesApi extends BaseAPI {
225
+ /**
226
+ * Returns a list of roles you have previously created. The roles are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
227
+ * @summary List roles
228
+ * @param {RolesApiListRolesRequest} requestParameters Request parameters.
229
+ * @param {*} [options] Override http request option.
230
+ * @throws {RequiredError}
231
+ * @memberof RolesApi
232
+ */
233
+ public listRoles(requestParameters: RolesApiListRolesRequest = {}, options?: AxiosRequestConfig) {
234
+ 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));
235
+ }
236
+ }
@@ -0,0 +1,168 @@
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
+ * Retrieves the details of the settings that was previously created. Supply the unique settings code that was returned when you created it and Emil Api will return the corresponding settings information.
37
+ * @summary Retrieve the settings
38
+ * @param {string} keys
39
+ * @param {string} [authorization] Bearer Token
40
+ * @param {*} [options] Override http request option.
41
+ * @throws {RequiredError}
42
+ */
43
+ getTenantSettings: async (keys: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
44
+ // verify required parameter 'keys' is not null or undefined
45
+ assertParamExists('getTenantSettings', 'keys', keys)
46
+ const localVarPath = `/tenantservice/v1/settings/tenant`;
47
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
48
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
49
+ let baseOptions;
50
+ let baseAccessToken;
51
+ if (configuration) {
52
+ baseOptions = configuration.baseOptions;
53
+ baseAccessToken = configuration.accessToken;
54
+ }
55
+
56
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
57
+ const localVarHeaderParameter = {} as any;
58
+ const localVarQueryParameter = {} as any;
59
+
60
+ // authentication bearer required
61
+ // http bearer authentication required
62
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
63
+
64
+ if (keys !== undefined) {
65
+ localVarQueryParameter['keys'] = keys;
66
+ }
67
+
68
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
69
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
70
+ }
71
+
72
+
73
+
74
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
75
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
76
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
77
+
78
+ return {
79
+ url: toPathString(localVarUrlObj),
80
+ options: localVarRequestOptions,
81
+ };
82
+ },
83
+ }
84
+ };
85
+
86
+ /**
87
+ * SettingsApi - functional programming interface
88
+ * @export
89
+ */
90
+ export const SettingsApiFp = function(configuration?: Configuration) {
91
+ const localVarAxiosParamCreator = SettingsApiAxiosParamCreator(configuration)
92
+ return {
93
+ /**
94
+ * Retrieves the details of the settings that was previously created. Supply the unique settings code that was returned when you created it and Emil Api will return the corresponding settings information.
95
+ * @summary Retrieve the settings
96
+ * @param {string} keys
97
+ * @param {string} [authorization] Bearer Token
98
+ * @param {*} [options] Override http request option.
99
+ * @throws {RequiredError}
100
+ */
101
+ async getTenantSettings(keys: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetSettingsResponseClass>> {
102
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getTenantSettings(keys, authorization, options);
103
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
104
+ },
105
+ }
106
+ };
107
+
108
+ /**
109
+ * SettingsApi - factory interface
110
+ * @export
111
+ */
112
+ export const SettingsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
113
+ const localVarFp = SettingsApiFp(configuration)
114
+ return {
115
+ /**
116
+ * Retrieves the details of the settings that was previously created. Supply the unique settings code that was returned when you created it and Emil Api will return the corresponding settings information.
117
+ * @summary Retrieve the settings
118
+ * @param {string} keys
119
+ * @param {string} [authorization] Bearer Token
120
+ * @param {*} [options] Override http request option.
121
+ * @throws {RequiredError}
122
+ */
123
+ getTenantSettings(keys: string, authorization?: string, options?: any): AxiosPromise<GetSettingsResponseClass> {
124
+ return localVarFp.getTenantSettings(keys, authorization, options).then((request) => request(axios, basePath));
125
+ },
126
+ };
127
+ };
128
+
129
+ /**
130
+ * Request parameters for getTenantSettings operation in SettingsApi.
131
+ * @export
132
+ * @interface SettingsApiGetTenantSettingsRequest
133
+ */
134
+ export interface SettingsApiGetTenantSettingsRequest {
135
+ /**
136
+ *
137
+ * @type {string}
138
+ * @memberof SettingsApiGetTenantSettings
139
+ */
140
+ readonly keys: string
141
+
142
+ /**
143
+ * Bearer Token
144
+ * @type {string}
145
+ * @memberof SettingsApiGetTenantSettings
146
+ */
147
+ readonly authorization?: string
148
+ }
149
+
150
+ /**
151
+ * SettingsApi - object-oriented interface
152
+ * @export
153
+ * @class SettingsApi
154
+ * @extends {BaseAPI}
155
+ */
156
+ export class SettingsApi extends BaseAPI {
157
+ /**
158
+ * Retrieves the details of the settings that was previously created. Supply the unique settings code that was returned when you created it and Emil Api will return the corresponding settings information.
159
+ * @summary Retrieve the settings
160
+ * @param {SettingsApiGetTenantSettingsRequest} requestParameters Request parameters.
161
+ * @param {*} [options] Override http request option.
162
+ * @throws {RequiredError}
163
+ * @memberof SettingsApi
164
+ */
165
+ public getTenantSettings(requestParameters: SettingsApiGetTenantSettingsRequest, options?: AxiosRequestConfig) {
166
+ return SettingsApiFp(this.configuration).getTenantSettings(requestParameters.keys, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
167
+ }
168
+ }
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,141 @@
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
+ * Returns a list of roles you have previously created. The roles are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
23
+ * @summary List roles
24
+ * @param {string} [authorization] Bearer Token
25
+ * @param {number} [pageSize] Page size
26
+ * @param {string} [pageToken] Page token
27
+ * @param {'id' | 'code' | 'label'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
28
+ * @param {string} [search] Search query
29
+ * @param {'label'} [order] Order allowing you to specify the desired order of entities retrieved from the server.
30
+ * @param {'permissions'} [expand] You can expand roles in this endpoint. By default, permissions will be an empty array.
31
+ * @param {*} [options] Override http request option.
32
+ * @throws {RequiredError}
33
+ */
34
+ listRoles: (authorization?: string, pageSize?: number, pageToken?: string, filter?: 'id' | 'code' | 'label', search?: string, order?: 'label', expand?: 'permissions', options?: AxiosRequestConfig) => Promise<RequestArgs>;
35
+ };
36
+ /**
37
+ * RolesApi - functional programming interface
38
+ * @export
39
+ */
40
+ export declare const RolesApiFp: (configuration?: Configuration) => {
41
+ /**
42
+ * Returns a list of roles you have previously created. The roles are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
43
+ * @summary List roles
44
+ * @param {string} [authorization] Bearer Token
45
+ * @param {number} [pageSize] Page size
46
+ * @param {string} [pageToken] Page token
47
+ * @param {'id' | 'code' | 'label'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
48
+ * @param {string} [search] Search query
49
+ * @param {'label'} [order] Order allowing you to specify the desired order of entities retrieved from the server.
50
+ * @param {'permissions'} [expand] You can expand roles in this endpoint. By default, permissions will be an empty array.
51
+ * @param {*} [options] Override http request option.
52
+ * @throws {RequiredError}
53
+ */
54
+ listRoles(authorization?: string, pageSize?: number, pageToken?: string, filter?: 'id' | 'code' | 'label', search?: string, order?: 'label', expand?: 'permissions', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListRolesResponseClass>>;
55
+ };
56
+ /**
57
+ * RolesApi - factory interface
58
+ * @export
59
+ */
60
+ export declare const RolesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
61
+ /**
62
+ * Returns a list of roles you have previously created. The roles are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
63
+ * @summary List roles
64
+ * @param {string} [authorization] Bearer Token
65
+ * @param {number} [pageSize] Page size
66
+ * @param {string} [pageToken] Page token
67
+ * @param {'id' | 'code' | 'label'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
68
+ * @param {string} [search] Search query
69
+ * @param {'label'} [order] Order allowing you to specify the desired order of entities retrieved from the server.
70
+ * @param {'permissions'} [expand] You can expand roles in this endpoint. By default, permissions will be an empty array.
71
+ * @param {*} [options] Override http request option.
72
+ * @throws {RequiredError}
73
+ */
74
+ listRoles(authorization?: string, pageSize?: number, pageToken?: string, filter?: 'id' | 'code' | 'label', search?: string, order?: 'label', expand?: 'permissions', options?: any): AxiosPromise<ListRolesResponseClass>;
75
+ };
76
+ /**
77
+ * Request parameters for listRoles operation in RolesApi.
78
+ * @export
79
+ * @interface RolesApiListRolesRequest
80
+ */
81
+ export interface RolesApiListRolesRequest {
82
+ /**
83
+ * Bearer Token
84
+ * @type {string}
85
+ * @memberof RolesApiListRoles
86
+ */
87
+ readonly authorization?: string;
88
+ /**
89
+ * Page size
90
+ * @type {number}
91
+ * @memberof RolesApiListRoles
92
+ */
93
+ readonly pageSize?: number;
94
+ /**
95
+ * Page token
96
+ * @type {string}
97
+ * @memberof RolesApiListRoles
98
+ */
99
+ readonly pageToken?: string;
100
+ /**
101
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
102
+ * @type {'id' | 'code' | 'label'}
103
+ * @memberof RolesApiListRoles
104
+ */
105
+ readonly filter?: 'id' | 'code' | 'label';
106
+ /**
107
+ * Search query
108
+ * @type {string}
109
+ * @memberof RolesApiListRoles
110
+ */
111
+ readonly search?: string;
112
+ /**
113
+ * Order allowing you to specify the desired order of entities retrieved from the server.
114
+ * @type {'label'}
115
+ * @memberof RolesApiListRoles
116
+ */
117
+ readonly order?: 'label';
118
+ /**
119
+ * You can expand roles in this endpoint. By default, permissions will be an empty array.
120
+ * @type {'permissions'}
121
+ * @memberof RolesApiListRoles
122
+ */
123
+ readonly expand?: 'permissions';
124
+ }
125
+ /**
126
+ * RolesApi - object-oriented interface
127
+ * @export
128
+ * @class RolesApi
129
+ * @extends {BaseAPI}
130
+ */
131
+ export declare class RolesApi extends BaseAPI {
132
+ /**
133
+ * Returns a list of roles you have previously created. The roles are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
134
+ * @summary List roles
135
+ * @param {RolesApiListRolesRequest} requestParameters Request parameters.
136
+ * @param {*} [options] Override http request option.
137
+ * @throws {RequiredError}
138
+ * @memberof RolesApi
139
+ */
140
+ listRoles(requestParameters?: RolesApiListRolesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListRolesResponseClass, any>>;
141
+ }
@@ -0,0 +1,258 @@
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
+ * Returns a list of roles you have previously created. The roles are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
101
+ * @summary List roles
102
+ * @param {string} [authorization] Bearer Token
103
+ * @param {number} [pageSize] Page size
104
+ * @param {string} [pageToken] Page token
105
+ * @param {'id' | 'code' | 'label'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
106
+ * @param {string} [search] Search query
107
+ * @param {'label'} [order] Order allowing you to specify the desired order of entities retrieved from the server.
108
+ * @param {'permissions'} [expand] You can expand roles in this endpoint. By default, permissions will be an empty array.
109
+ * @param {*} [options] Override http request option.
110
+ * @throws {RequiredError}
111
+ */
112
+ listRoles: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
113
+ if (options === void 0) { options = {}; }
114
+ return __awaiter(_this, void 0, void 0, function () {
115
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
116
+ return __generator(this, function (_a) {
117
+ switch (_a.label) {
118
+ case 0:
119
+ localVarPath = "/tenantservice/v1/roles";
120
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
121
+ if (configuration) {
122
+ baseOptions = configuration.baseOptions;
123
+ baseAccessToken = configuration.accessToken;
124
+ }
125
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
126
+ localVarHeaderParameter = {};
127
+ localVarQueryParameter = {};
128
+ // authentication bearer required
129
+ // http bearer authentication required
130
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
131
+ case 1:
132
+ // authentication bearer required
133
+ // http bearer authentication required
134
+ _a.sent();
135
+ if (pageSize !== undefined) {
136
+ localVarQueryParameter['pageSize'] = pageSize;
137
+ }
138
+ if (pageToken !== undefined) {
139
+ localVarQueryParameter['pageToken'] = pageToken;
140
+ }
141
+ if (filter !== undefined) {
142
+ localVarQueryParameter['filter'] = filter;
143
+ }
144
+ if (search !== undefined) {
145
+ localVarQueryParameter['search'] = search;
146
+ }
147
+ if (order !== undefined) {
148
+ localVarQueryParameter['order'] = order;
149
+ }
150
+ if (expand !== undefined) {
151
+ localVarQueryParameter['expand'] = expand;
152
+ }
153
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
154
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
155
+ }
156
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
157
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
158
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
159
+ return [2 /*return*/, {
160
+ url: (0, common_1.toPathString)(localVarUrlObj),
161
+ options: localVarRequestOptions,
162
+ }];
163
+ }
164
+ });
165
+ });
166
+ },
167
+ };
168
+ };
169
+ exports.RolesApiAxiosParamCreator = RolesApiAxiosParamCreator;
170
+ /**
171
+ * RolesApi - functional programming interface
172
+ * @export
173
+ */
174
+ var RolesApiFp = function (configuration) {
175
+ var localVarAxiosParamCreator = (0, exports.RolesApiAxiosParamCreator)(configuration);
176
+ return {
177
+ /**
178
+ * Returns a list of roles you have previously created. The roles are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
179
+ * @summary List roles
180
+ * @param {string} [authorization] Bearer Token
181
+ * @param {number} [pageSize] Page size
182
+ * @param {string} [pageToken] Page token
183
+ * @param {'id' | 'code' | 'label'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
184
+ * @param {string} [search] Search query
185
+ * @param {'label'} [order] Order allowing you to specify the desired order of entities retrieved from the server.
186
+ * @param {'permissions'} [expand] You can expand roles in this endpoint. By default, permissions will be an empty array.
187
+ * @param {*} [options] Override http request option.
188
+ * @throws {RequiredError}
189
+ */
190
+ listRoles: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
191
+ return __awaiter(this, void 0, void 0, function () {
192
+ var localVarAxiosArgs;
193
+ return __generator(this, function (_a) {
194
+ switch (_a.label) {
195
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listRoles(authorization, pageSize, pageToken, filter, search, order, expand, options)];
196
+ case 1:
197
+ localVarAxiosArgs = _a.sent();
198
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
199
+ }
200
+ });
201
+ });
202
+ },
203
+ };
204
+ };
205
+ exports.RolesApiFp = RolesApiFp;
206
+ /**
207
+ * RolesApi - factory interface
208
+ * @export
209
+ */
210
+ var RolesApiFactory = function (configuration, basePath, axios) {
211
+ var localVarFp = (0, exports.RolesApiFp)(configuration);
212
+ return {
213
+ /**
214
+ * Returns a list of roles you have previously created. The roles are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
215
+ * @summary List roles
216
+ * @param {string} [authorization] Bearer Token
217
+ * @param {number} [pageSize] Page size
218
+ * @param {string} [pageToken] Page token
219
+ * @param {'id' | 'code' | 'label'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
220
+ * @param {string} [search] Search query
221
+ * @param {'label'} [order] Order allowing you to specify the desired order of entities retrieved from the server.
222
+ * @param {'permissions'} [expand] You can expand roles in this endpoint. By default, permissions will be an empty array.
223
+ * @param {*} [options] Override http request option.
224
+ * @throws {RequiredError}
225
+ */
226
+ listRoles: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
227
+ return localVarFp.listRoles(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
228
+ },
229
+ };
230
+ };
231
+ exports.RolesApiFactory = RolesApiFactory;
232
+ /**
233
+ * RolesApi - object-oriented interface
234
+ * @export
235
+ * @class RolesApi
236
+ * @extends {BaseAPI}
237
+ */
238
+ var RolesApi = /** @class */ (function (_super) {
239
+ __extends(RolesApi, _super);
240
+ function RolesApi() {
241
+ return _super !== null && _super.apply(this, arguments) || this;
242
+ }
243
+ /**
244
+ * Returns a list of roles you have previously created. The roles are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
245
+ * @summary List roles
246
+ * @param {RolesApiListRolesRequest} requestParameters Request parameters.
247
+ * @param {*} [options] Override http request option.
248
+ * @throws {RequiredError}
249
+ * @memberof RolesApi
250
+ */
251
+ RolesApi.prototype.listRoles = function (requestParameters, options) {
252
+ var _this = this;
253
+ if (requestParameters === void 0) { requestParameters = {}; }
254
+ 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); });
255
+ };
256
+ return RolesApi;
257
+ }(base_1.BaseAPI));
258
+ exports.RolesApi = RolesApi;
@@ -0,0 +1,96 @@
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
+ * Retrieves the details of the settings that was previously created. Supply the unique settings code that was returned when you created it and Emil Api will return the corresponding settings information.
23
+ * @summary Retrieve the settings
24
+ * @param {string} keys
25
+ * @param {string} [authorization] Bearer Token
26
+ * @param {*} [options] Override http request option.
27
+ * @throws {RequiredError}
28
+ */
29
+ getTenantSettings: (keys: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
30
+ };
31
+ /**
32
+ * SettingsApi - functional programming interface
33
+ * @export
34
+ */
35
+ export declare const SettingsApiFp: (configuration?: Configuration) => {
36
+ /**
37
+ * Retrieves the details of the settings that was previously created. Supply the unique settings code that was returned when you created it and Emil Api will return the corresponding settings information.
38
+ * @summary Retrieve the settings
39
+ * @param {string} keys
40
+ * @param {string} [authorization] Bearer Token
41
+ * @param {*} [options] Override http request option.
42
+ * @throws {RequiredError}
43
+ */
44
+ getTenantSettings(keys: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetSettingsResponseClass>>;
45
+ };
46
+ /**
47
+ * SettingsApi - factory interface
48
+ * @export
49
+ */
50
+ export declare const SettingsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
51
+ /**
52
+ * Retrieves the details of the settings that was previously created. Supply the unique settings code that was returned when you created it and Emil Api will return the corresponding settings information.
53
+ * @summary Retrieve the settings
54
+ * @param {string} keys
55
+ * @param {string} [authorization] Bearer Token
56
+ * @param {*} [options] Override http request option.
57
+ * @throws {RequiredError}
58
+ */
59
+ getTenantSettings(keys: string, authorization?: string, options?: any): AxiosPromise<GetSettingsResponseClass>;
60
+ };
61
+ /**
62
+ * Request parameters for getTenantSettings operation in SettingsApi.
63
+ * @export
64
+ * @interface SettingsApiGetTenantSettingsRequest
65
+ */
66
+ export interface SettingsApiGetTenantSettingsRequest {
67
+ /**
68
+ *
69
+ * @type {string}
70
+ * @memberof SettingsApiGetTenantSettings
71
+ */
72
+ readonly keys: string;
73
+ /**
74
+ * Bearer Token
75
+ * @type {string}
76
+ * @memberof SettingsApiGetTenantSettings
77
+ */
78
+ readonly authorization?: string;
79
+ }
80
+ /**
81
+ * SettingsApi - object-oriented interface
82
+ * @export
83
+ * @class SettingsApi
84
+ * @extends {BaseAPI}
85
+ */
86
+ export declare class SettingsApi extends BaseAPI {
87
+ /**
88
+ * Retrieves the details of the settings that was previously created. Supply the unique settings code that was returned when you created it and Emil Api will return the corresponding settings information.
89
+ * @summary Retrieve the settings
90
+ * @param {SettingsApiGetTenantSettingsRequest} requestParameters Request parameters.
91
+ * @param {*} [options] Override http request option.
92
+ * @throws {RequiredError}
93
+ * @memberof SettingsApi
94
+ */
95
+ getTenantSettings(requestParameters: SettingsApiGetTenantSettingsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetSettingsResponseClass, any>>;
96
+ }
@@ -0,0 +1,229 @@
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
+ * Retrieves the details of the settings that was previously created. Supply the unique settings code that was returned when you created it and Emil Api will return the corresponding settings information.
101
+ * @summary Retrieve the settings
102
+ * @param {string} keys
103
+ * @param {string} [authorization] Bearer Token
104
+ * @param {*} [options] Override http request option.
105
+ * @throws {RequiredError}
106
+ */
107
+ getTenantSettings: function (keys, authorization, options) {
108
+ if (options === void 0) { options = {}; }
109
+ return __awaiter(_this, void 0, void 0, function () {
110
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
111
+ return __generator(this, function (_a) {
112
+ switch (_a.label) {
113
+ case 0:
114
+ // verify required parameter 'keys' is not null or undefined
115
+ (0, common_1.assertParamExists)('getTenantSettings', 'keys', keys);
116
+ localVarPath = "/tenantservice/v1/settings/tenant";
117
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
118
+ if (configuration) {
119
+ baseOptions = configuration.baseOptions;
120
+ baseAccessToken = configuration.accessToken;
121
+ }
122
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
123
+ localVarHeaderParameter = {};
124
+ localVarQueryParameter = {};
125
+ // authentication bearer required
126
+ // http bearer authentication required
127
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
128
+ case 1:
129
+ // authentication bearer required
130
+ // http bearer authentication required
131
+ _a.sent();
132
+ if (keys !== undefined) {
133
+ localVarQueryParameter['keys'] = keys;
134
+ }
135
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
136
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
137
+ }
138
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
139
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
140
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
141
+ return [2 /*return*/, {
142
+ url: (0, common_1.toPathString)(localVarUrlObj),
143
+ options: localVarRequestOptions,
144
+ }];
145
+ }
146
+ });
147
+ });
148
+ },
149
+ };
150
+ };
151
+ exports.SettingsApiAxiosParamCreator = SettingsApiAxiosParamCreator;
152
+ /**
153
+ * SettingsApi - functional programming interface
154
+ * @export
155
+ */
156
+ var SettingsApiFp = function (configuration) {
157
+ var localVarAxiosParamCreator = (0, exports.SettingsApiAxiosParamCreator)(configuration);
158
+ return {
159
+ /**
160
+ * Retrieves the details of the settings that was previously created. Supply the unique settings code that was returned when you created it and Emil Api will return the corresponding settings information.
161
+ * @summary Retrieve the settings
162
+ * @param {string} keys
163
+ * @param {string} [authorization] Bearer Token
164
+ * @param {*} [options] Override http request option.
165
+ * @throws {RequiredError}
166
+ */
167
+ getTenantSettings: function (keys, authorization, options) {
168
+ return __awaiter(this, void 0, void 0, function () {
169
+ var localVarAxiosArgs;
170
+ return __generator(this, function (_a) {
171
+ switch (_a.label) {
172
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getTenantSettings(keys, authorization, options)];
173
+ case 1:
174
+ localVarAxiosArgs = _a.sent();
175
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
176
+ }
177
+ });
178
+ });
179
+ },
180
+ };
181
+ };
182
+ exports.SettingsApiFp = SettingsApiFp;
183
+ /**
184
+ * SettingsApi - factory interface
185
+ * @export
186
+ */
187
+ var SettingsApiFactory = function (configuration, basePath, axios) {
188
+ var localVarFp = (0, exports.SettingsApiFp)(configuration);
189
+ return {
190
+ /**
191
+ * Retrieves the details of the settings that was previously created. Supply the unique settings code that was returned when you created it and Emil Api will return the corresponding settings information.
192
+ * @summary Retrieve the settings
193
+ * @param {string} keys
194
+ * @param {string} [authorization] Bearer Token
195
+ * @param {*} [options] Override http request option.
196
+ * @throws {RequiredError}
197
+ */
198
+ getTenantSettings: function (keys, authorization, options) {
199
+ return localVarFp.getTenantSettings(keys, authorization, options).then(function (request) { return request(axios, basePath); });
200
+ },
201
+ };
202
+ };
203
+ exports.SettingsApiFactory = SettingsApiFactory;
204
+ /**
205
+ * SettingsApi - object-oriented interface
206
+ * @export
207
+ * @class SettingsApi
208
+ * @extends {BaseAPI}
209
+ */
210
+ var SettingsApi = /** @class */ (function (_super) {
211
+ __extends(SettingsApi, _super);
212
+ function SettingsApi() {
213
+ return _super !== null && _super.apply(this, arguments) || this;
214
+ }
215
+ /**
216
+ * Retrieves the details of the settings that was previously created. Supply the unique settings code that was returned when you created it and Emil Api will return the corresponding settings information.
217
+ * @summary Retrieve the settings
218
+ * @param {SettingsApiGetTenantSettingsRequest} requestParameters Request parameters.
219
+ * @param {*} [options] Override http request option.
220
+ * @throws {RequiredError}
221
+ * @memberof SettingsApi
222
+ */
223
+ SettingsApi.prototype.getTenantSettings = function (requestParameters, options) {
224
+ var _this = this;
225
+ return (0, exports.SettingsApiFp)(this.configuration).getTenantSettings(requestParameters.keys, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
226
+ };
227
+ return SettingsApi;
228
+ }(base_1.BaseAPI));
229
+ 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",
3
- "version": "1.3.0",
3
+ "version": "1.4.0",
4
4
  "description": "OpenAPI client for @emilgroup/tenant-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [