@emilgroup/tenant-sdk 1.1.0 → 1.2.2

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.
Files changed (67) hide show
  1. package/.openapi-generator/FILES +2 -15
  2. package/README.md +2 -2
  3. package/api/organizations-api.ts +18 -14
  4. package/api.ts +0 -4
  5. package/base.ts +1 -1
  6. package/dist/api/organizations-api.d.ts +11 -9
  7. package/dist/api/organizations-api.js +12 -12
  8. package/dist/api.d.ts +0 -2
  9. package/dist/api.js +0 -2
  10. package/dist/base.js +1 -1
  11. package/dist/models/index.d.ts +2 -13
  12. package/dist/models/index.js +2 -13
  13. package/dist/models/invite-org-request-dto.d.ts +8 -2
  14. package/dist/models/org-invitation-class.d.ts +8 -2
  15. package/dist/models/organization-class.d.ts +22 -4
  16. package/dist/models/update-organization-request-dto-rest.d.ts +66 -0
  17. package/dist/models/{get-data-report-response-class.d.ts → update-organization-response-class.d.ts} +7 -7
  18. package/models/index.ts +2 -13
  19. package/models/invite-org-request-dto.ts +8 -2
  20. package/models/org-invitation-class.ts +8 -2
  21. package/models/organization-class.ts +22 -4
  22. package/models/update-organization-request-dto-rest.ts +72 -0
  23. package/models/{create-data-report-response-class.ts → update-organization-response-class.ts} +7 -7
  24. package/package.json +1 -1
  25. package/api/data-report-api.ts +0 -677
  26. package/api/data-report-executor-api.ts +0 -165
  27. package/dist/api/data-report-api.d.ts +0 -380
  28. package/dist/api/data-report-api.js +0 -636
  29. package/dist/api/data-report-executor-api.d.ts +0 -93
  30. package/dist/api/data-report-executor-api.js +0 -224
  31. package/dist/models/create-data-report-request-dto.d.ts +0 -61
  32. package/dist/models/create-data-report-response-class.d.ts +0 -25
  33. package/dist/models/data-report-class.d.ts +0 -79
  34. package/dist/models/data-report-class.js +0 -15
  35. package/dist/models/data-report-filter-class.d.ts +0 -72
  36. package/dist/models/data-report-filter-class.js +0 -15
  37. package/dist/models/data-report-filter-dto.d.ts +0 -48
  38. package/dist/models/data-report-filter-dto.js +0 -15
  39. package/dist/models/data-report-filter-single-value-dto.d.ts +0 -42
  40. package/dist/models/data-report-filter-single-value-dto.js +0 -15
  41. package/dist/models/data-report-filter-value-dto.d.ts +0 -31
  42. package/dist/models/data-report-filter-value-dto.js +0 -15
  43. package/dist/models/get-data-report-response-class.js +0 -15
  44. package/dist/models/list-data-reports-response-class.d.ts +0 -31
  45. package/dist/models/list-data-reports-response-class.js +0 -15
  46. package/dist/models/run-data-report-request-dto.d.ts +0 -31
  47. package/dist/models/run-data-report-request-dto.js +0 -15
  48. package/dist/models/run-data-report-response-class.d.ts +0 -24
  49. package/dist/models/run-data-report-response-class.js +0 -15
  50. package/dist/models/update-data-report-request-dto.d.ts +0 -61
  51. package/dist/models/update-data-report-request-dto.js +0 -15
  52. package/dist/models/update-data-report-response-class.d.ts +0 -25
  53. package/dist/models/update-data-report-response-class.js +0 -15
  54. package/models/create-data-report-request-dto.ts +0 -67
  55. package/models/data-report-class.ts +0 -85
  56. package/models/data-report-filter-class.ts +0 -78
  57. package/models/data-report-filter-dto.ts +0 -54
  58. package/models/data-report-filter-single-value-dto.ts +0 -48
  59. package/models/data-report-filter-value-dto.ts +0 -37
  60. package/models/get-data-report-response-class.ts +0 -31
  61. package/models/list-data-reports-response-class.ts +0 -37
  62. package/models/run-data-report-request-dto.ts +0 -37
  63. package/models/run-data-report-response-class.ts +0 -30
  64. package/models/update-data-report-request-dto.ts +0 -67
  65. package/models/update-data-report-response-class.ts +0 -31
  66. /package/dist/models/{create-data-report-request-dto.js → update-organization-request-dto-rest.js} +0 -0
  67. /package/dist/models/{create-data-report-response-class.js → update-organization-response-class.js} +0 -0
@@ -4,8 +4,6 @@
4
4
  README.md
5
5
  api.ts
6
6
  api/custom-schema-api.ts
7
- api/data-report-api.ts
8
- api/data-report-executor-api.ts
9
7
  api/invite-organizations-api.ts
10
8
  api/invite-users-api.ts
11
9
  api/organizations-api.ts
@@ -21,18 +19,11 @@ models/batch-delete-request-dto.ts
21
19
  models/batch-delete-response-class.ts
22
20
  models/create-custom-schema-request-dto.ts
23
21
  models/create-custom-schema-response-class.ts
24
- models/create-data-report-request-dto.ts
25
- models/create-data-report-response-class.ts
26
22
  models/create-permission-request-dto.ts
27
23
  models/create-role-request-dto.ts
28
24
  models/create-tenant-request-dto.ts
29
25
  models/custom-field-dto.ts
30
26
  models/custom-schema-class.ts
31
- models/data-report-class.ts
32
- models/data-report-filter-class.ts
33
- models/data-report-filter-dto.ts
34
- models/data-report-filter-single-value-dto.ts
35
- models/data-report-filter-value-dto.ts
36
27
  models/dbconfig-dto.ts
37
28
  models/delete-response-class.ts
38
29
  models/disable-user-response-class.ts
@@ -42,7 +33,6 @@ models/enable-user-response-class.ts
42
33
  models/enable-users-request-dto.ts
43
34
  models/enable-users-response-class.ts
44
35
  models/get-custom-schema-response-class.ts
45
- models/get-data-report-response-class.ts
46
36
  models/get-organization-response-class.ts
47
37
  models/get-settings-response-class.ts
48
38
  models/get-user-response-class.ts
@@ -54,7 +44,6 @@ models/invite-user-response-class.ts
54
44
  models/invite-users-request-dto.ts
55
45
  models/invite-users-response-class.ts
56
46
  models/list-custom-schemas-response-class.ts
57
- models/list-data-reports-response-class.ts
58
47
  models/list-invites-response-class.ts
59
48
  models/list-org-invitations-response-class.ts
60
49
  models/list-organizations-response-class.ts
@@ -64,16 +53,14 @@ models/org-invitation-response-class.ts
64
53
  models/organization-class.ts
65
54
  models/permission-class.ts
66
55
  models/role-class.ts
67
- models/run-data-report-request-dto.ts
68
- models/run-data-report-response-class.ts
69
56
  models/set-setting-request-dto.ts
70
57
  models/set-user-setting-response-class.ts
71
58
  models/subscription-class.ts
72
59
  models/tenant-admin-user-dto.ts
73
60
  models/update-custom-schema-request-dto.ts
74
61
  models/update-custom-schema-response-class.ts
75
- models/update-data-report-request-dto.ts
76
- models/update-data-report-response-class.ts
62
+ models/update-organization-request-dto-rest.ts
63
+ models/update-organization-response-class.ts
77
64
  models/update-role-request-dto.ts
78
65
  models/user-class.ts
79
66
  package.json
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.1.0 --save
20
+ npm install @emilgroup/tenant-sdk@1.2.2 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/tenant-sdk@1.1.0
24
+ yarn add @emilgroup/tenant-sdk@1.2.2
25
25
  ```
26
26
 
27
27
  And then you can import `UsersApi`.
@@ -24,6 +24,10 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
24
24
  import { GetOrganizationResponseClass } from '../models';
25
25
  // @ts-ignore
26
26
  import { ListOrganizationsResponseClass } from '../models';
27
+ // @ts-ignore
28
+ import { UpdateOrganizationRequestDtoRest } from '../models';
29
+ // @ts-ignore
30
+ import { UpdateOrganizationResponseClass } from '../models';
27
31
  // URLSearchParams not necessarily used
28
32
  // @ts-ignore
29
33
  import { URL, URLSearchParams } from 'url';
@@ -154,16 +158,16 @@ export const OrganizationsApiAxiosParamCreator = function (configuration?: Confi
154
158
  * Update organization data
155
159
  * @summary Update the Organization
156
160
  * @param {string} code
157
- * @param {object} body
161
+ * @param {UpdateOrganizationRequestDtoRest} updateOrganizationRequestDtoRest
158
162
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
159
163
  * @param {*} [options] Override http request option.
160
164
  * @throws {RequiredError}
161
165
  */
162
- updateOrganization: async (code: string, body: object, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
166
+ updateOrganization: async (code: string, updateOrganizationRequestDtoRest: UpdateOrganizationRequestDtoRest, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
163
167
  // verify required parameter 'code' is not null or undefined
164
168
  assertParamExists('updateOrganization', 'code', code)
165
- // verify required parameter 'body' is not null or undefined
166
- assertParamExists('updateOrganization', 'body', body)
169
+ // verify required parameter 'updateOrganizationRequestDtoRest' is not null or undefined
170
+ assertParamExists('updateOrganization', 'updateOrganizationRequestDtoRest', updateOrganizationRequestDtoRest)
167
171
  const localVarPath = `/tenantservice/v1/organizations/{code}`
168
172
  .replace(`{${"code"}}`, encodeURIComponent(String(code)));
169
173
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -194,7 +198,7 @@ export const OrganizationsApiAxiosParamCreator = function (configuration?: Confi
194
198
  setSearchParams(localVarUrlObj, localVarQueryParameter);
195
199
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
196
200
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
197
- localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
201
+ localVarRequestOptions.data = serializeDataIfNeeded(updateOrganizationRequestDtoRest, localVarRequestOptions, configuration)
198
202
 
199
203
  return {
200
204
  url: toPathString(localVarUrlObj),
@@ -244,13 +248,13 @@ export const OrganizationsApiFp = function(configuration?: Configuration) {
244
248
  * Update organization data
245
249
  * @summary Update the Organization
246
250
  * @param {string} code
247
- * @param {object} body
251
+ * @param {UpdateOrganizationRequestDtoRest} updateOrganizationRequestDtoRest
248
252
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
249
253
  * @param {*} [options] Override http request option.
250
254
  * @throws {RequiredError}
251
255
  */
252
- async updateOrganization(code: string, body: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
253
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateOrganization(code, body, authorization, options);
256
+ async updateOrganization(code: string, updateOrganizationRequestDtoRest: UpdateOrganizationRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateOrganizationResponseClass>> {
257
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateOrganization(code, updateOrganizationRequestDtoRest, authorization, options);
254
258
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
255
259
  },
256
260
  }
@@ -294,13 +298,13 @@ export const OrganizationsApiFactory = function (configuration?: Configuration,
294
298
  * Update organization data
295
299
  * @summary Update the Organization
296
300
  * @param {string} code
297
- * @param {object} body
301
+ * @param {UpdateOrganizationRequestDtoRest} updateOrganizationRequestDtoRest
298
302
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
299
303
  * @param {*} [options] Override http request option.
300
304
  * @throws {RequiredError}
301
305
  */
302
- updateOrganization(code: string, body: object, authorization?: string, options?: any): AxiosPromise<object> {
303
- return localVarFp.updateOrganization(code, body, authorization, options).then((request) => request(axios, basePath));
306
+ updateOrganization(code: string, updateOrganizationRequestDtoRest: UpdateOrganizationRequestDtoRest, authorization?: string, options?: any): AxiosPromise<UpdateOrganizationResponseClass> {
307
+ return localVarFp.updateOrganization(code, updateOrganizationRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
304
308
  },
305
309
  };
306
310
  };
@@ -397,10 +401,10 @@ export interface OrganizationsApiUpdateOrganizationRequest {
397
401
 
398
402
  /**
399
403
  *
400
- * @type {object}
404
+ * @type {UpdateOrganizationRequestDtoRest}
401
405
  * @memberof OrganizationsApiUpdateOrganization
402
406
  */
403
- readonly body: object
407
+ readonly updateOrganizationRequestDtoRest: UpdateOrganizationRequestDtoRest
404
408
 
405
409
  /**
406
410
  * Bearer Token: provided by the login endpoint under the name accessToken.
@@ -450,6 +454,6 @@ export class OrganizationsApi extends BaseAPI {
450
454
  * @memberof OrganizationsApi
451
455
  */
452
456
  public updateOrganization(requestParameters: OrganizationsApiUpdateOrganizationRequest, options?: AxiosRequestConfig) {
453
- return OrganizationsApiFp(this.configuration).updateOrganization(requestParameters.code, requestParameters.body, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
457
+ return OrganizationsApiFp(this.configuration).updateOrganization(requestParameters.code, requestParameters.updateOrganizationRequestDtoRest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
454
458
  }
455
459
  }
package/api.ts CHANGED
@@ -25,8 +25,6 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
25
25
  // @ts-ignore
26
26
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
27
27
  import { CustomSchemaApi } from './api';
28
- import { DataReportApi } from './api';
29
- import { DataReportExecutorApi } from './api';
30
28
  import { InviteOrganizationsApi } from './api';
31
29
  import { InviteUsersApi } from './api';
32
30
  import { OrganizationsApi } from './api';
@@ -34,8 +32,6 @@ import { UsersApi } from './api';
34
32
 
35
33
 
36
34
  export * from './api/custom-schema-api';
37
- export * from './api/data-report-api';
38
- export * from './api/data-report-executor-api';
39
35
  export * from './api/invite-organizations-api';
40
36
  export * from './api/invite-users-api';
41
37
  export * from './api/organizations-api';
package/base.ts CHANGED
@@ -21,7 +21,7 @@ import * as fs from 'fs';
21
21
  import * as path from 'path';
22
22
  import * as os from 'os';
23
23
 
24
- export const BASE_PATH = "http://localhost".replace(/\/+$/, "");
24
+ export const BASE_PATH = "https://apiv2.emil.de".replace(/\/+$/, "");
25
25
  const CONFIG_DIRECTORY = '.emil';
26
26
  const CONFIG_FILENAME = 'credentials';
27
27
  const KEY_USERNAME = 'emil_username';
@@ -14,6 +14,8 @@ import { Configuration } from '../configuration';
14
14
  import { RequestArgs, BaseAPI } from '../base';
15
15
  import { GetOrganizationResponseClass } from '../models';
16
16
  import { ListOrganizationsResponseClass } from '../models';
17
+ import { UpdateOrganizationRequestDtoRest } from '../models';
18
+ import { UpdateOrganizationResponseClass } from '../models';
17
19
  /**
18
20
  * OrganizationsApi - axios parameter creator
19
21
  * @export
@@ -46,12 +48,12 @@ export declare const OrganizationsApiAxiosParamCreator: (configuration?: Configu
46
48
  * Update organization data
47
49
  * @summary Update the Organization
48
50
  * @param {string} code
49
- * @param {object} body
51
+ * @param {UpdateOrganizationRequestDtoRest} updateOrganizationRequestDtoRest
50
52
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
51
53
  * @param {*} [options] Override http request option.
52
54
  * @throws {RequiredError}
53
55
  */
54
- updateOrganization: (code: string, body: object, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
56
+ updateOrganization: (code: string, updateOrganizationRequestDtoRest: UpdateOrganizationRequestDtoRest, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
55
57
  };
56
58
  /**
57
59
  * OrganizationsApi - functional programming interface
@@ -85,12 +87,12 @@ export declare const OrganizationsApiFp: (configuration?: Configuration) => {
85
87
  * Update organization data
86
88
  * @summary Update the Organization
87
89
  * @param {string} code
88
- * @param {object} body
90
+ * @param {UpdateOrganizationRequestDtoRest} updateOrganizationRequestDtoRest
89
91
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
90
92
  * @param {*} [options] Override http request option.
91
93
  * @throws {RequiredError}
92
94
  */
93
- updateOrganization(code: string, body: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
95
+ updateOrganization(code: string, updateOrganizationRequestDtoRest: UpdateOrganizationRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateOrganizationResponseClass>>;
94
96
  };
95
97
  /**
96
98
  * OrganizationsApi - factory interface
@@ -124,12 +126,12 @@ export declare const OrganizationsApiFactory: (configuration?: Configuration, ba
124
126
  * Update organization data
125
127
  * @summary Update the Organization
126
128
  * @param {string} code
127
- * @param {object} body
129
+ * @param {UpdateOrganizationRequestDtoRest} updateOrganizationRequestDtoRest
128
130
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
129
131
  * @param {*} [options] Override http request option.
130
132
  * @throws {RequiredError}
131
133
  */
132
- updateOrganization(code: string, body: object, authorization?: string, options?: any): AxiosPromise<object>;
134
+ updateOrganization(code: string, updateOrganizationRequestDtoRest: UpdateOrganizationRequestDtoRest, authorization?: string, options?: any): AxiosPromise<UpdateOrganizationResponseClass>;
133
135
  };
134
136
  /**
135
137
  * Request parameters for getOrganization operation in OrganizationsApi.
@@ -213,10 +215,10 @@ export interface OrganizationsApiUpdateOrganizationRequest {
213
215
  readonly code: string;
214
216
  /**
215
217
  *
216
- * @type {object}
218
+ * @type {UpdateOrganizationRequestDtoRest}
217
219
  * @memberof OrganizationsApiUpdateOrganization
218
220
  */
219
- readonly body: object;
221
+ readonly updateOrganizationRequestDtoRest: UpdateOrganizationRequestDtoRest;
220
222
  /**
221
223
  * Bearer Token: provided by the login endpoint under the name accessToken.
222
224
  * @type {string}
@@ -257,5 +259,5 @@ export declare class OrganizationsApi extends BaseAPI {
257
259
  * @throws {RequiredError}
258
260
  * @memberof OrganizationsApi
259
261
  */
260
- updateOrganization(requestParameters: OrganizationsApiUpdateOrganizationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
262
+ updateOrganization(requestParameters: OrganizationsApiUpdateOrganizationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateOrganizationResponseClass, any>>;
261
263
  }
@@ -216,12 +216,12 @@ var OrganizationsApiAxiosParamCreator = function (configuration) {
216
216
  * Update organization data
217
217
  * @summary Update the Organization
218
218
  * @param {string} code
219
- * @param {object} body
219
+ * @param {UpdateOrganizationRequestDtoRest} updateOrganizationRequestDtoRest
220
220
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
221
221
  * @param {*} [options] Override http request option.
222
222
  * @throws {RequiredError}
223
223
  */
224
- updateOrganization: function (code, body, authorization, options) {
224
+ updateOrganization: function (code, updateOrganizationRequestDtoRest, authorization, options) {
225
225
  if (options === void 0) { options = {}; }
226
226
  return __awaiter(_this, void 0, void 0, function () {
227
227
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -230,8 +230,8 @@ var OrganizationsApiAxiosParamCreator = function (configuration) {
230
230
  case 0:
231
231
  // verify required parameter 'code' is not null or undefined
232
232
  (0, common_1.assertParamExists)('updateOrganization', 'code', code);
233
- // verify required parameter 'body' is not null or undefined
234
- (0, common_1.assertParamExists)('updateOrganization', 'body', body);
233
+ // verify required parameter 'updateOrganizationRequestDtoRest' is not null or undefined
234
+ (0, common_1.assertParamExists)('updateOrganization', 'updateOrganizationRequestDtoRest', updateOrganizationRequestDtoRest);
235
235
  localVarPath = "/tenantservice/v1/organizations/{code}"
236
236
  .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
237
237
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -256,7 +256,7 @@ var OrganizationsApiAxiosParamCreator = function (configuration) {
256
256
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
257
257
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
258
258
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
259
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
259
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateOrganizationRequestDtoRest, localVarRequestOptions, configuration);
260
260
  return [2 /*return*/, {
261
261
  url: (0, common_1.toPathString)(localVarUrlObj),
262
262
  options: localVarRequestOptions,
@@ -326,17 +326,17 @@ var OrganizationsApiFp = function (configuration) {
326
326
  * Update organization data
327
327
  * @summary Update the Organization
328
328
  * @param {string} code
329
- * @param {object} body
329
+ * @param {UpdateOrganizationRequestDtoRest} updateOrganizationRequestDtoRest
330
330
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
331
331
  * @param {*} [options] Override http request option.
332
332
  * @throws {RequiredError}
333
333
  */
334
- updateOrganization: function (code, body, authorization, options) {
334
+ updateOrganization: function (code, updateOrganizationRequestDtoRest, authorization, options) {
335
335
  return __awaiter(this, void 0, void 0, function () {
336
336
  var localVarAxiosArgs;
337
337
  return __generator(this, function (_a) {
338
338
  switch (_a.label) {
339
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateOrganization(code, body, authorization, options)];
339
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateOrganization(code, updateOrganizationRequestDtoRest, authorization, options)];
340
340
  case 1:
341
341
  localVarAxiosArgs = _a.sent();
342
342
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -385,13 +385,13 @@ var OrganizationsApiFactory = function (configuration, basePath, axios) {
385
385
  * Update organization data
386
386
  * @summary Update the Organization
387
387
  * @param {string} code
388
- * @param {object} body
388
+ * @param {UpdateOrganizationRequestDtoRest} updateOrganizationRequestDtoRest
389
389
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
390
390
  * @param {*} [options] Override http request option.
391
391
  * @throws {RequiredError}
392
392
  */
393
- updateOrganization: function (code, body, authorization, options) {
394
- return localVarFp.updateOrganization(code, body, authorization, options).then(function (request) { return request(axios, basePath); });
393
+ updateOrganization: function (code, updateOrganizationRequestDtoRest, authorization, options) {
394
+ return localVarFp.updateOrganization(code, updateOrganizationRequestDtoRest, authorization, options).then(function (request) { return request(axios, basePath); });
395
395
  },
396
396
  };
397
397
  };
@@ -442,7 +442,7 @@ var OrganizationsApi = /** @class */ (function (_super) {
442
442
  */
443
443
  OrganizationsApi.prototype.updateOrganization = function (requestParameters, options) {
444
444
  var _this = this;
445
- return (0, exports.OrganizationsApiFp)(this.configuration).updateOrganization(requestParameters.code, requestParameters.body, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
445
+ return (0, exports.OrganizationsApiFp)(this.configuration).updateOrganization(requestParameters.code, requestParameters.updateOrganizationRequestDtoRest, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
446
446
  };
447
447
  return OrganizationsApi;
448
448
  }(base_1.BaseAPI));
package/dist/api.d.ts CHANGED
@@ -10,8 +10,6 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  export * from './api/custom-schema-api';
13
- export * from './api/data-report-api';
14
- export * from './api/data-report-executor-api';
15
13
  export * from './api/invite-organizations-api';
16
14
  export * from './api/invite-users-api';
17
15
  export * from './api/organizations-api';
package/dist/api.js CHANGED
@@ -28,8 +28,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
28
28
  };
29
29
  Object.defineProperty(exports, "__esModule", { value: true });
30
30
  __exportStar(require("./api/custom-schema-api"), exports);
31
- __exportStar(require("./api/data-report-api"), exports);
32
- __exportStar(require("./api/data-report-executor-api"), exports);
33
31
  __exportStar(require("./api/invite-organizations-api"), exports);
34
32
  __exportStar(require("./api/invite-users-api"), exports);
35
33
  __exportStar(require("./api/organizations-api"), exports);
package/dist/base.js CHANGED
@@ -109,7 +109,7 @@ var axios_1 = __importDefault(require("axios"));
109
109
  var fs = __importStar(require("fs"));
110
110
  var path = __importStar(require("path"));
111
111
  var os = __importStar(require("os"));
112
- exports.BASE_PATH = "http://localhost".replace(/\/+$/, "");
112
+ exports.BASE_PATH = "https://apiv2.emil.de".replace(/\/+$/, "");
113
113
  var CONFIG_DIRECTORY = '.emil';
114
114
  var CONFIG_FILENAME = 'credentials';
115
115
  var KEY_USERNAME = 'emil_username';
@@ -4,19 +4,12 @@ export * from './batch-delete-request-dto';
4
4
  export * from './batch-delete-response-class';
5
5
  export * from './create-custom-schema-request-dto';
6
6
  export * from './create-custom-schema-response-class';
7
- export * from './create-data-report-request-dto';
8
- export * from './create-data-report-response-class';
9
7
  export * from './create-permission-request-dto';
10
8
  export * from './create-role-request-dto';
11
9
  export * from './create-tenant-request-dto';
12
10
  export * from './custom-field-dto';
13
11
  export * from './custom-schema-class';
14
12
  export * from './dbconfig-dto';
15
- export * from './data-report-class';
16
- export * from './data-report-filter-class';
17
- export * from './data-report-filter-dto';
18
- export * from './data-report-filter-single-value-dto';
19
- export * from './data-report-filter-value-dto';
20
13
  export * from './delete-response-class';
21
14
  export * from './disable-user-response-class';
22
15
  export * from './disable-users-request-dto';
@@ -25,7 +18,6 @@ export * from './enable-user-response-class';
25
18
  export * from './enable-users-request-dto';
26
19
  export * from './enable-users-response-class';
27
20
  export * from './get-custom-schema-response-class';
28
- export * from './get-data-report-response-class';
29
21
  export * from './get-organization-response-class';
30
22
  export * from './get-settings-response-class';
31
23
  export * from './get-user-response-class';
@@ -36,7 +28,6 @@ export * from './invite-user-response-class';
36
28
  export * from './invite-users-request-dto';
37
29
  export * from './invite-users-response-class';
38
30
  export * from './list-custom-schemas-response-class';
39
- export * from './list-data-reports-response-class';
40
31
  export * from './list-invites-response-class';
41
32
  export * from './list-org-invitations-response-class';
42
33
  export * from './list-organizations-response-class';
@@ -46,15 +37,13 @@ export * from './org-invitation-response-class';
46
37
  export * from './organization-class';
47
38
  export * from './permission-class';
48
39
  export * from './role-class';
49
- export * from './run-data-report-request-dto';
50
- export * from './run-data-report-response-class';
51
40
  export * from './set-setting-request-dto';
52
41
  export * from './set-user-setting-response-class';
53
42
  export * from './subscription-class';
54
43
  export * from './tenant-admin-user-dto';
55
44
  export * from './update-custom-schema-request-dto';
56
45
  export * from './update-custom-schema-response-class';
57
- export * from './update-data-report-request-dto';
58
- export * from './update-data-report-response-class';
46
+ export * from './update-organization-request-dto-rest';
47
+ export * from './update-organization-response-class';
59
48
  export * from './update-role-request-dto';
60
49
  export * from './user-class';
@@ -20,19 +20,12 @@ __exportStar(require("./batch-delete-request-dto"), exports);
20
20
  __exportStar(require("./batch-delete-response-class"), exports);
21
21
  __exportStar(require("./create-custom-schema-request-dto"), exports);
22
22
  __exportStar(require("./create-custom-schema-response-class"), exports);
23
- __exportStar(require("./create-data-report-request-dto"), exports);
24
- __exportStar(require("./create-data-report-response-class"), exports);
25
23
  __exportStar(require("./create-permission-request-dto"), exports);
26
24
  __exportStar(require("./create-role-request-dto"), exports);
27
25
  __exportStar(require("./create-tenant-request-dto"), exports);
28
26
  __exportStar(require("./custom-field-dto"), exports);
29
27
  __exportStar(require("./custom-schema-class"), exports);
30
28
  __exportStar(require("./dbconfig-dto"), exports);
31
- __exportStar(require("./data-report-class"), exports);
32
- __exportStar(require("./data-report-filter-class"), exports);
33
- __exportStar(require("./data-report-filter-dto"), exports);
34
- __exportStar(require("./data-report-filter-single-value-dto"), exports);
35
- __exportStar(require("./data-report-filter-value-dto"), exports);
36
29
  __exportStar(require("./delete-response-class"), exports);
37
30
  __exportStar(require("./disable-user-response-class"), exports);
38
31
  __exportStar(require("./disable-users-request-dto"), exports);
@@ -41,7 +34,6 @@ __exportStar(require("./enable-user-response-class"), exports);
41
34
  __exportStar(require("./enable-users-request-dto"), exports);
42
35
  __exportStar(require("./enable-users-response-class"), exports);
43
36
  __exportStar(require("./get-custom-schema-response-class"), exports);
44
- __exportStar(require("./get-data-report-response-class"), exports);
45
37
  __exportStar(require("./get-organization-response-class"), exports);
46
38
  __exportStar(require("./get-settings-response-class"), exports);
47
39
  __exportStar(require("./get-user-response-class"), exports);
@@ -52,7 +44,6 @@ __exportStar(require("./invite-user-response-class"), exports);
52
44
  __exportStar(require("./invite-users-request-dto"), exports);
53
45
  __exportStar(require("./invite-users-response-class"), exports);
54
46
  __exportStar(require("./list-custom-schemas-response-class"), exports);
55
- __exportStar(require("./list-data-reports-response-class"), exports);
56
47
  __exportStar(require("./list-invites-response-class"), exports);
57
48
  __exportStar(require("./list-org-invitations-response-class"), exports);
58
49
  __exportStar(require("./list-organizations-response-class"), exports);
@@ -62,15 +53,13 @@ __exportStar(require("./org-invitation-response-class"), exports);
62
53
  __exportStar(require("./organization-class"), exports);
63
54
  __exportStar(require("./permission-class"), exports);
64
55
  __exportStar(require("./role-class"), exports);
65
- __exportStar(require("./run-data-report-request-dto"), exports);
66
- __exportStar(require("./run-data-report-response-class"), exports);
67
56
  __exportStar(require("./set-setting-request-dto"), exports);
68
57
  __exportStar(require("./set-user-setting-response-class"), exports);
69
58
  __exportStar(require("./subscription-class"), exports);
70
59
  __exportStar(require("./tenant-admin-user-dto"), exports);
71
60
  __exportStar(require("./update-custom-schema-request-dto"), exports);
72
61
  __exportStar(require("./update-custom-schema-response-class"), exports);
73
- __exportStar(require("./update-data-report-request-dto"), exports);
74
- __exportStar(require("./update-data-report-response-class"), exports);
62
+ __exportStar(require("./update-organization-request-dto-rest"), exports);
63
+ __exportStar(require("./update-organization-response-class"), exports);
75
64
  __exportStar(require("./update-role-request-dto"), exports);
76
65
  __exportStar(require("./user-class"), exports);
@@ -46,11 +46,17 @@ export interface InviteOrgRequestDto {
46
46
  */
47
47
  'parentOrganizationId': number;
48
48
  /**
49
- * Address of the organization.
49
+ * Organization\'s street name.
50
50
  * @type {string}
51
51
  * @memberof InviteOrgRequestDto
52
52
  */
53
- 'address': string;
53
+ 'street': string;
54
+ /**
55
+ * Organization\'s house number.
56
+ * @type {string}
57
+ * @memberof InviteOrgRequestDto
58
+ */
59
+ 'houseNumber': string;
54
60
  /**
55
61
  * Zip code of the organization.
56
62
  * @type {string}
@@ -53,11 +53,17 @@ export interface OrgInvitationClass {
53
53
  */
54
54
  'parentOrganizationId'?: number;
55
55
  /**
56
- * Address of the organization.
56
+ * Organization\'s street name.
57
57
  * @type {string}
58
58
  * @memberof OrgInvitationClass
59
59
  */
60
- 'address': string;
60
+ 'street': string;
61
+ /**
62
+ * Organization\'s house number.
63
+ * @type {string}
64
+ * @memberof OrgInvitationClass
65
+ */
66
+ 'houseNumber': string;
61
67
  /**
62
68
  * Zip code of the organization.
63
69
  * @type {string}
@@ -29,10 +29,10 @@ export interface OrganizationClass {
29
29
  'code': string;
30
30
  /**
31
31
  * Parent organization ID.
32
- * @type {object}
32
+ * @type {number}
33
33
  * @memberof OrganizationClass
34
34
  */
35
- 'parentId'?: object;
35
+ 'parentId'?: number;
36
36
  /**
37
37
  * ERN of the organization.
38
38
  * @type {string}
@@ -52,11 +52,17 @@ export interface OrganizationClass {
52
52
  */
53
53
  'name': string;
54
54
  /**
55
- * Address of the organization.
55
+ * Organization\'s street name.
56
56
  * @type {string}
57
57
  * @memberof OrganizationClass
58
58
  */
59
- 'address': string;
59
+ 'street': string;
60
+ /**
61
+ * Organization\'s house number..
62
+ * @type {string}
63
+ * @memberof OrganizationClass
64
+ */
65
+ 'houseNumber': string;
60
66
  /**
61
67
  * Zip code of the organization.
62
68
  * @type {string}
@@ -81,4 +87,16 @@ export interface OrganizationClass {
81
87
  * @memberof OrganizationClass
82
88
  */
83
89
  'customFields'?: object;
90
+ /**
91
+ * Time at which the object was created.
92
+ * @type {string}
93
+ * @memberof OrganizationClass
94
+ */
95
+ 'createdAt': string;
96
+ /**
97
+ * Time at which the object was updated.
98
+ * @type {string}
99
+ * @memberof OrganizationClass
100
+ */
101
+ 'updatedAt': string;
84
102
  }