@emilgroup/tenant-sdk 1.21.1-beta.0 → 1.22.1-beta.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.
Files changed (58) hide show
  1. package/.openapi-generator/FILES +3 -11
  2. package/README.md +2 -2
  3. package/api/data-report-api.ts +0 -97
  4. package/api/invite-organizations-api.ts +15 -15
  5. package/api/invite-users-api.ts +34 -137
  6. package/api/roles-api.ts +4 -0
  7. package/api/users-api.ts +18 -447
  8. package/dist/api/data-report-api.d.ts +0 -51
  9. package/dist/api/data-report-api.js +0 -88
  10. package/dist/api/invite-organizations-api.d.ts +9 -9
  11. package/dist/api/invite-organizations-api.js +12 -12
  12. package/dist/api/invite-users-api.d.ts +22 -78
  13. package/dist/api/invite-users-api.js +27 -119
  14. package/dist/api/roles-api.d.ts +4 -0
  15. package/dist/api/roles-api.js +4 -0
  16. package/dist/api/users-api.d.ts +15 -242
  17. package/dist/api/users-api.js +15 -382
  18. package/dist/models/index.d.ts +3 -11
  19. package/dist/models/index.js +3 -11
  20. package/dist/models/{invite-org-request-dto.d.ts → invite-org-request-dto-rest.d.ts} +27 -14
  21. package/dist/models/invite-user-request-dto-rest.d.ts +49 -0
  22. package/dist/models/invite-users-request-dto-rest.d.ts +49 -0
  23. package/models/index.ts +3 -11
  24. package/models/{invite-org-request-dto.ts → invite-org-request-dto-rest.ts} +27 -14
  25. package/models/invite-user-request-dto-rest.ts +55 -0
  26. package/models/invite-users-request-dto-rest.ts +55 -0
  27. package/package.json +1 -1
  28. package/dist/models/assign-user-roles-request-dto.d.ts +0 -30
  29. package/dist/models/assign-user-roles-response-class.d.ts +0 -25
  30. package/dist/models/create-permission-request-dto.d.ts +0 -42
  31. package/dist/models/create-role-request-dto.d.ts +0 -36
  32. package/dist/models/create-role-request-dto.js +0 -15
  33. package/dist/models/disable-user-response-class.d.ts +0 -25
  34. package/dist/models/disable-user-response-class.js +0 -15
  35. package/dist/models/enable-user-response-class.d.ts +0 -25
  36. package/dist/models/enable-user-response-class.js +0 -15
  37. package/dist/models/invite-org-request-dto.js +0 -15
  38. package/dist/models/invite-user-request-dto.d.ts +0 -43
  39. package/dist/models/invite-user-request-dto.js +0 -15
  40. package/dist/models/invite-users-request-dto.d.ts +0 -36
  41. package/dist/models/invite-users-request-dto.js +0 -15
  42. package/dist/models/partner-invitation-data-dto.d.ts +0 -36
  43. package/dist/models/partner-invitation-data-dto.js +0 -15
  44. package/dist/models/update-role-request-dto.d.ts +0 -42
  45. package/dist/models/update-role-request-dto.js +0 -15
  46. package/models/assign-user-roles-request-dto.ts +0 -36
  47. package/models/assign-user-roles-response-class.ts +0 -31
  48. package/models/create-permission-request-dto.ts +0 -48
  49. package/models/create-role-request-dto.ts +0 -42
  50. package/models/disable-user-response-class.ts +0 -31
  51. package/models/enable-user-response-class.ts +0 -31
  52. package/models/invite-user-request-dto.ts +0 -49
  53. package/models/invite-users-request-dto.ts +0 -42
  54. package/models/partner-invitation-data-dto.ts +0 -42
  55. package/models/update-role-request-dto.ts +0 -48
  56. /package/dist/models/{assign-user-roles-request-dto.js → invite-org-request-dto-rest.js} +0 -0
  57. /package/dist/models/{assign-user-roles-response-class.js → invite-user-request-dto-rest.js} +0 -0
  58. /package/dist/models/{create-permission-request-dto.js → invite-users-request-dto-rest.js} +0 -0
@@ -23,8 +23,6 @@ common.ts
23
23
  configuration.ts
24
24
  git_push.sh
25
25
  index.ts
26
- models/assign-user-roles-request-dto.ts
27
- models/assign-user-roles-response-class.ts
28
26
  models/batch-delete-request-dto.ts
29
27
  models/batch-delete-response-class.ts
30
28
  models/create-custom-schema-request-dto.ts
@@ -35,8 +33,6 @@ models/create-dashboard-request-dto.ts
35
33
  models/create-dashboard-response-class.ts
36
34
  models/create-data-report-request-dto.ts
37
35
  models/create-data-report-response-class.ts
38
- models/create-permission-request-dto.ts
39
- models/create-role-request-dto.ts
40
36
  models/create-tenant-db-config-request-dto.ts
41
37
  models/create-tenant-request-dto.ts
42
38
  models/custom-field-dto.ts
@@ -50,10 +46,8 @@ models/data-report-filter-single-value-dto.ts
50
46
  models/data-report-filter-value-dto.ts
51
47
  models/dbconfig-dto.ts
52
48
  models/delete-response-class.ts
53
- models/disable-user-response-class.ts
54
49
  models/disable-users-request-dto.ts
55
50
  models/disable-users-response-class.ts
56
- models/enable-user-response-class.ts
57
51
  models/enable-users-request-dto.ts
58
52
  models/enable-users-response-class.ts
59
53
  models/format-tenant-settings-class.ts
@@ -70,10 +64,10 @@ models/initial-tenant-config-class.ts
70
64
  models/inline-response200.ts
71
65
  models/inline-response503.ts
72
66
  models/invite-class.ts
73
- models/invite-org-request-dto.ts
74
- models/invite-user-request-dto.ts
67
+ models/invite-org-request-dto-rest.ts
68
+ models/invite-user-request-dto-rest.ts
75
69
  models/invite-user-response-class.ts
76
- models/invite-users-request-dto.ts
70
+ models/invite-users-request-dto-rest.ts
77
71
  models/invite-users-response-class.ts
78
72
  models/link-user-with-partner-request-dto-rest.ts
79
73
  models/link-user-with-partner-response-class.ts
@@ -89,7 +83,6 @@ models/list-users-response-class.ts
89
83
  models/org-invitation-class.ts
90
84
  models/org-invitation-response-class.ts
91
85
  models/organization-class.ts
92
- models/partner-invitation-data-dto.ts
93
86
  models/permission-class.ts
94
87
  models/re-invite-org-request-dto.ts
95
88
  models/role-class.ts
@@ -109,7 +102,6 @@ models/update-data-report-request-dto.ts
109
102
  models/update-data-report-response-class.ts
110
103
  models/update-organization-request-dto-rest.ts
111
104
  models/update-organization-response-class.ts
112
- models/update-role-request-dto.ts
113
105
  models/user-class.ts
114
106
  package.json
115
107
  tsconfig.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.21.1-beta.0 --save
20
+ npm install @emilgroup/tenant-sdk@1.22.1-beta.0 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/tenant-sdk@1.21.1-beta.0
24
+ yarn add @emilgroup/tenant-sdk@1.22.1-beta.0
25
25
  ```
26
26
 
27
27
  And then you can import `UsersApi`.
@@ -85,50 +85,6 @@ export const DataReportApiAxiosParamCreator = function (configuration?: Configur
85
85
  options: localVarRequestOptions,
86
86
  };
87
87
  },
88
- /**
89
- *
90
- * @param {string} id
91
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
92
- * @param {*} [options] Override http request option.
93
- * @throws {RequiredError}
94
- */
95
- deleteAlert: async (id: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
96
- // verify required parameter 'id' is not null or undefined
97
- assertParamExists('deleteAlert', 'id', id)
98
- const localVarPath = `/tenantservice/v1/data-reports/{id}`
99
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
100
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
101
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
102
- let baseOptions;
103
- let baseAccessToken;
104
- if (configuration) {
105
- baseOptions = configuration.baseOptions;
106
- baseAccessToken = configuration.accessToken;
107
- }
108
-
109
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
110
- const localVarHeaderParameter = {} as any;
111
- const localVarQueryParameter = {} as any;
112
-
113
- // authentication bearer required
114
- // http bearer authentication required
115
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
116
-
117
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
118
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
119
- }
120
-
121
-
122
-
123
- setSearchParams(localVarUrlObj, localVarQueryParameter);
124
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
125
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
126
-
127
- return {
128
- url: toPathString(localVarUrlObj),
129
- options: localVarRequestOptions,
130
- };
131
- },
132
88
  /**
133
89
  * Retrieves the details of the data-report that was previously created. Supply the unique data-report code that was returned when you created it and Emil Api will return the corresponding data-report information.
134
90
  * @summary Retrieve the data-report
@@ -328,17 +284,6 @@ export const DataReportApiFp = function(configuration?: Configuration) {
328
284
  const localVarAxiosArgs = await localVarAxiosParamCreator.createDataReport(createDataReportRequestDto, authorization, options);
329
285
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
330
286
  },
331
- /**
332
- *
333
- * @param {string} id
334
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
335
- * @param {*} [options] Override http request option.
336
- * @throws {RequiredError}
337
- */
338
- async deleteAlert(id: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
339
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAlert(id, authorization, options);
340
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
341
- },
342
287
  /**
343
288
  * Retrieves the details of the data-report that was previously created. Supply the unique data-report code that was returned when you created it and Emil Api will return the corresponding data-report information.
344
289
  * @summary Retrieve the data-report
@@ -404,16 +349,6 @@ export const DataReportApiFactory = function (configuration?: Configuration, bas
404
349
  createDataReport(createDataReportRequestDto: CreateDataReportRequestDto, authorization?: string, options?: any): AxiosPromise<CreateDataReportResponseClass> {
405
350
  return localVarFp.createDataReport(createDataReportRequestDto, authorization, options).then((request) => request(axios, basePath));
406
351
  },
407
- /**
408
- *
409
- * @param {string} id
410
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
411
- * @param {*} [options] Override http request option.
412
- * @throws {RequiredError}
413
- */
414
- deleteAlert(id: string, authorization?: string, options?: any): AxiosPromise<void> {
415
- return localVarFp.deleteAlert(id, authorization, options).then((request) => request(axios, basePath));
416
- },
417
352
  /**
418
353
  * Retrieves the details of the data-report that was previously created. Supply the unique data-report code that was returned when you created it and Emil Api will return the corresponding data-report information.
419
354
  * @summary Retrieve the data-report
@@ -479,27 +414,6 @@ export interface DataReportApiCreateDataReportRequest {
479
414
  readonly authorization?: string
480
415
  }
481
416
 
482
- /**
483
- * Request parameters for deleteAlert operation in DataReportApi.
484
- * @export
485
- * @interface DataReportApiDeleteAlertRequest
486
- */
487
- export interface DataReportApiDeleteAlertRequest {
488
- /**
489
- *
490
- * @type {string}
491
- * @memberof DataReportApiDeleteAlert
492
- */
493
- readonly id: string
494
-
495
- /**
496
- * Bearer Token: provided by the login endpoint under the name accessToken.
497
- * @type {string}
498
- * @memberof DataReportApiDeleteAlert
499
- */
500
- readonly authorization?: string
501
- }
502
-
503
417
  /**
504
418
  * Request parameters for getDataReport operation in DataReportApi.
505
419
  * @export
@@ -638,17 +552,6 @@ export class DataReportApi extends BaseAPI {
638
552
  return DataReportApiFp(this.configuration).createDataReport(requestParameters.createDataReportRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
639
553
  }
640
554
 
641
- /**
642
- *
643
- * @param {DataReportApiDeleteAlertRequest} requestParameters Request parameters.
644
- * @param {*} [options] Override http request option.
645
- * @throws {RequiredError}
646
- * @memberof DataReportApi
647
- */
648
- public deleteAlert(requestParameters: DataReportApiDeleteAlertRequest, options?: AxiosRequestConfig) {
649
- return DataReportApiFp(this.configuration).deleteAlert(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
650
- }
651
-
652
555
  /**
653
556
  * Retrieves the details of the data-report that was previously created. Supply the unique data-report code that was returned when you created it and Emil Api will return the corresponding data-report information.
654
557
  * @summary Retrieve the data-report
@@ -21,7 +21,7 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
21
21
  // @ts-ignore
22
22
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
23
  // @ts-ignore
24
- import { InviteOrgRequestDto } from '../models';
24
+ import { InviteOrgRequestDtoRest } from '../models';
25
25
  // @ts-ignore
26
26
  import { OrgInvitationResponseClass } from '../models';
27
27
  /**
@@ -33,14 +33,14 @@ export const InviteOrganizationsApiAxiosParamCreator = function (configuration?:
33
33
  /**
34
34
  * This sends an email to invite an organization.
35
35
  * @summary Invite an organization
36
- * @param {InviteOrgRequestDto} inviteOrgRequestDto
36
+ * @param {InviteOrgRequestDtoRest} inviteOrgRequestDtoRest
37
37
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
38
38
  * @param {*} [options] Override http request option.
39
39
  * @throws {RequiredError}
40
40
  */
41
- inviteOrg: async (inviteOrgRequestDto: InviteOrgRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
42
- // verify required parameter 'inviteOrgRequestDto' is not null or undefined
43
- assertParamExists('inviteOrg', 'inviteOrgRequestDto', inviteOrgRequestDto)
41
+ inviteOrg: async (inviteOrgRequestDtoRest: InviteOrgRequestDtoRest, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
42
+ // verify required parameter 'inviteOrgRequestDtoRest' is not null or undefined
43
+ assertParamExists('inviteOrg', 'inviteOrgRequestDtoRest', inviteOrgRequestDtoRest)
44
44
  const localVarPath = `/tenantservice/v1/invitations/organizations`;
45
45
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
46
46
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -70,7 +70,7 @@ export const InviteOrganizationsApiAxiosParamCreator = function (configuration?:
70
70
  setSearchParams(localVarUrlObj, localVarQueryParameter);
71
71
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
72
72
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
73
- localVarRequestOptions.data = serializeDataIfNeeded(inviteOrgRequestDto, localVarRequestOptions, configuration)
73
+ localVarRequestOptions.data = serializeDataIfNeeded(inviteOrgRequestDtoRest, localVarRequestOptions, configuration)
74
74
 
75
75
  return {
76
76
  url: toPathString(localVarUrlObj),
@@ -90,13 +90,13 @@ export const InviteOrganizationsApiFp = function(configuration?: Configuration)
90
90
  /**
91
91
  * This sends an email to invite an organization.
92
92
  * @summary Invite an organization
93
- * @param {InviteOrgRequestDto} inviteOrgRequestDto
93
+ * @param {InviteOrgRequestDtoRest} inviteOrgRequestDtoRest
94
94
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
95
95
  * @param {*} [options] Override http request option.
96
96
  * @throws {RequiredError}
97
97
  */
98
- async inviteOrg(inviteOrgRequestDto: InviteOrgRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrgInvitationResponseClass>> {
99
- const localVarAxiosArgs = await localVarAxiosParamCreator.inviteOrg(inviteOrgRequestDto, authorization, options);
98
+ async inviteOrg(inviteOrgRequestDtoRest: InviteOrgRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrgInvitationResponseClass>> {
99
+ const localVarAxiosArgs = await localVarAxiosParamCreator.inviteOrg(inviteOrgRequestDtoRest, authorization, options);
100
100
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
101
101
  },
102
102
  }
@@ -112,13 +112,13 @@ export const InviteOrganizationsApiFactory = function (configuration?: Configura
112
112
  /**
113
113
  * This sends an email to invite an organization.
114
114
  * @summary Invite an organization
115
- * @param {InviteOrgRequestDto} inviteOrgRequestDto
115
+ * @param {InviteOrgRequestDtoRest} inviteOrgRequestDtoRest
116
116
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
117
117
  * @param {*} [options] Override http request option.
118
118
  * @throws {RequiredError}
119
119
  */
120
- inviteOrg(inviteOrgRequestDto: InviteOrgRequestDto, authorization?: string, options?: any): AxiosPromise<OrgInvitationResponseClass> {
121
- return localVarFp.inviteOrg(inviteOrgRequestDto, authorization, options).then((request) => request(axios, basePath));
120
+ inviteOrg(inviteOrgRequestDtoRest: InviteOrgRequestDtoRest, authorization?: string, options?: any): AxiosPromise<OrgInvitationResponseClass> {
121
+ return localVarFp.inviteOrg(inviteOrgRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
122
122
  },
123
123
  };
124
124
  };
@@ -131,10 +131,10 @@ export const InviteOrganizationsApiFactory = function (configuration?: Configura
131
131
  export interface InviteOrganizationsApiInviteOrgRequest {
132
132
  /**
133
133
  *
134
- * @type {InviteOrgRequestDto}
134
+ * @type {InviteOrgRequestDtoRest}
135
135
  * @memberof InviteOrganizationsApiInviteOrg
136
136
  */
137
- readonly inviteOrgRequestDto: InviteOrgRequestDto
137
+ readonly inviteOrgRequestDtoRest: InviteOrgRequestDtoRest
138
138
 
139
139
  /**
140
140
  * Bearer Token: provided by the login endpoint under the name accessToken.
@@ -160,6 +160,6 @@ export class InviteOrganizationsApi extends BaseAPI {
160
160
  * @memberof InviteOrganizationsApi
161
161
  */
162
162
  public inviteOrg(requestParameters: InviteOrganizationsApiInviteOrgRequest, options?: AxiosRequestConfig) {
163
- return InviteOrganizationsApiFp(this.configuration).inviteOrg(requestParameters.inviteOrgRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
163
+ return InviteOrganizationsApiFp(this.configuration).inviteOrg(requestParameters.inviteOrgRequestDtoRest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
164
164
  }
165
165
  }
@@ -25,13 +25,11 @@ import { BatchDeleteRequestDto } from '../models';
25
25
  // @ts-ignore
26
26
  import { BatchDeleteResponseClass } from '../models';
27
27
  // @ts-ignore
28
- import { DeleteResponseClass } from '../models';
29
- // @ts-ignore
30
- import { InviteUserRequestDto } from '../models';
28
+ import { InviteUserRequestDtoRest } from '../models';
31
29
  // @ts-ignore
32
30
  import { InviteUserResponseClass } from '../models';
33
31
  // @ts-ignore
34
- import { InviteUsersRequestDto } from '../models';
32
+ import { InviteUsersRequestDtoRest } from '../models';
35
33
  // @ts-ignore
36
34
  import { InviteUsersResponseClass } from '../models';
37
35
  // @ts-ignore
@@ -42,51 +40,6 @@ import { ListInvitesResponseClass } from '../models';
42
40
  */
43
41
  export const InviteUsersApiAxiosParamCreator = function (configuration?: Configuration) {
44
42
  return {
45
- /**
46
- * Permanently deletes the invited user. Supply the unique id that was returned when you created the invited user and this will delete it.
47
- * @summary Delete the invited user
48
- * @param {number} id
49
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
50
- * @param {*} [options] Override http request option.
51
- * @throws {RequiredError}
52
- */
53
- deleteInvite: async (id: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
54
- // verify required parameter 'id' is not null or undefined
55
- assertParamExists('deleteInvite', 'id', id)
56
- const localVarPath = `/tenantservice/v1/users/invites/{id}`
57
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
58
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
59
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
60
- let baseOptions;
61
- let baseAccessToken;
62
- if (configuration) {
63
- baseOptions = configuration.baseOptions;
64
- baseAccessToken = configuration.accessToken;
65
- }
66
-
67
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
68
- const localVarHeaderParameter = {} as any;
69
- const localVarQueryParameter = {} as any;
70
-
71
- // authentication bearer required
72
- // http bearer authentication required
73
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
74
-
75
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
76
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
77
- }
78
-
79
-
80
-
81
- setSearchParams(localVarUrlObj, localVarQueryParameter);
82
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
83
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
84
-
85
- return {
86
- url: toPathString(localVarUrlObj),
87
- options: localVarRequestOptions,
88
- };
89
- },
90
43
  /**
91
44
  * This will deletes the users who has been invited. Supply array of ids that were returned when users has been created and this will delete it.
92
45
  * @summary Delete invited users.
@@ -137,14 +90,14 @@ export const InviteUsersApiAxiosParamCreator = function (configuration?: Configu
137
90
  /**
138
91
  * This send an email to invite a user with the specific role/roles.
139
92
  * @summary Invite a user
140
- * @param {InviteUserRequestDto} inviteUserRequestDto
93
+ * @param {InviteUserRequestDtoRest} inviteUserRequestDtoRest
141
94
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
142
95
  * @param {*} [options] Override http request option.
143
96
  * @throws {RequiredError}
144
97
  */
145
- inviteUser: async (inviteUserRequestDto: InviteUserRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
146
- // verify required parameter 'inviteUserRequestDto' is not null or undefined
147
- assertParamExists('inviteUser', 'inviteUserRequestDto', inviteUserRequestDto)
98
+ inviteUser: async (inviteUserRequestDtoRest: InviteUserRequestDtoRest, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
99
+ // verify required parameter 'inviteUserRequestDtoRest' is not null or undefined
100
+ assertParamExists('inviteUser', 'inviteUserRequestDtoRest', inviteUserRequestDtoRest)
148
101
  const localVarPath = `/tenantservice/v1/users/invites`;
149
102
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
150
103
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -174,7 +127,7 @@ export const InviteUsersApiAxiosParamCreator = function (configuration?: Configu
174
127
  setSearchParams(localVarUrlObj, localVarQueryParameter);
175
128
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
176
129
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
177
- localVarRequestOptions.data = serializeDataIfNeeded(inviteUserRequestDto, localVarRequestOptions, configuration)
130
+ localVarRequestOptions.data = serializeDataIfNeeded(inviteUserRequestDtoRest, localVarRequestOptions, configuration)
178
131
 
179
132
  return {
180
133
  url: toPathString(localVarUrlObj),
@@ -184,14 +137,14 @@ export const InviteUsersApiAxiosParamCreator = function (configuration?: Configu
184
137
  /**
185
138
  * This send bulk emails to invite users with the specific role/roles.
186
139
  * @summary Invite batch of users
187
- * @param {InviteUsersRequestDto} inviteUsersRequestDto
140
+ * @param {InviteUsersRequestDtoRest} inviteUsersRequestDtoRest
188
141
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
189
142
  * @param {*} [options] Override http request option.
190
143
  * @throws {RequiredError}
191
144
  */
192
- inviteUsers: async (inviteUsersRequestDto: InviteUsersRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
193
- // verify required parameter 'inviteUsersRequestDto' is not null or undefined
194
- assertParamExists('inviteUsers', 'inviteUsersRequestDto', inviteUsersRequestDto)
145
+ inviteUsers: async (inviteUsersRequestDtoRest: InviteUsersRequestDtoRest, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
146
+ // verify required parameter 'inviteUsersRequestDtoRest' is not null or undefined
147
+ assertParamExists('inviteUsers', 'inviteUsersRequestDtoRest', inviteUsersRequestDtoRest)
195
148
  const localVarPath = `/tenantservice/v1/users/invites/batch`;
196
149
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
197
150
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -221,7 +174,7 @@ export const InviteUsersApiAxiosParamCreator = function (configuration?: Configu
221
174
  setSearchParams(localVarUrlObj, localVarQueryParameter);
222
175
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
223
176
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
224
- localVarRequestOptions.data = serializeDataIfNeeded(inviteUsersRequestDto, localVarRequestOptions, configuration)
177
+ localVarRequestOptions.data = serializeDataIfNeeded(inviteUsersRequestDtoRest, localVarRequestOptions, configuration)
225
178
 
226
179
  return {
227
180
  url: toPathString(localVarUrlObj),
@@ -237,7 +190,7 @@ export const InviteUsersApiAxiosParamCreator = function (configuration?: Configu
237
190
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, email, token, organizationId, ern&lt;/i&gt;
238
191
  * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
239
192
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: email, expiresOn&lt;/i&gt;
240
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: roles, organizations&lt;i&gt;
193
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: organizations&lt;i&gt;
241
194
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, email, token, organizationId, ern&lt;/i&gt;
242
195
  * @param {*} [options] Override http request option.
243
196
  * @throws {RequiredError}
@@ -314,18 +267,6 @@ export const InviteUsersApiAxiosParamCreator = function (configuration?: Configu
314
267
  export const InviteUsersApiFp = function(configuration?: Configuration) {
315
268
  const localVarAxiosParamCreator = InviteUsersApiAxiosParamCreator(configuration)
316
269
  return {
317
- /**
318
- * Permanently deletes the invited user. Supply the unique id that was returned when you created the invited user and this will delete it.
319
- * @summary Delete the invited user
320
- * @param {number} id
321
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
322
- * @param {*} [options] Override http request option.
323
- * @throws {RequiredError}
324
- */
325
- async deleteInvite(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>> {
326
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteInvite(id, authorization, options);
327
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
328
- },
329
270
  /**
330
271
  * This will deletes the users who has been invited. Supply array of ids that were returned when users has been created and this will delete it.
331
272
  * @summary Delete invited users.
@@ -341,25 +282,25 @@ export const InviteUsersApiFp = function(configuration?: Configuration) {
341
282
  /**
342
283
  * This send an email to invite a user with the specific role/roles.
343
284
  * @summary Invite a user
344
- * @param {InviteUserRequestDto} inviteUserRequestDto
285
+ * @param {InviteUserRequestDtoRest} inviteUserRequestDtoRest
345
286
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
346
287
  * @param {*} [options] Override http request option.
347
288
  * @throws {RequiredError}
348
289
  */
349
- async inviteUser(inviteUserRequestDto: InviteUserRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteUserResponseClass>> {
350
- const localVarAxiosArgs = await localVarAxiosParamCreator.inviteUser(inviteUserRequestDto, authorization, options);
290
+ async inviteUser(inviteUserRequestDtoRest: InviteUserRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteUserResponseClass>> {
291
+ const localVarAxiosArgs = await localVarAxiosParamCreator.inviteUser(inviteUserRequestDtoRest, authorization, options);
351
292
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
352
293
  },
353
294
  /**
354
295
  * This send bulk emails to invite users with the specific role/roles.
355
296
  * @summary Invite batch of users
356
- * @param {InviteUsersRequestDto} inviteUsersRequestDto
297
+ * @param {InviteUsersRequestDtoRest} inviteUsersRequestDtoRest
357
298
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
358
299
  * @param {*} [options] Override http request option.
359
300
  * @throws {RequiredError}
360
301
  */
361
- async inviteUsers(inviteUsersRequestDto: InviteUsersRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteUsersResponseClass>> {
362
- const localVarAxiosArgs = await localVarAxiosParamCreator.inviteUsers(inviteUsersRequestDto, authorization, options);
302
+ async inviteUsers(inviteUsersRequestDtoRest: InviteUsersRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteUsersResponseClass>> {
303
+ const localVarAxiosArgs = await localVarAxiosParamCreator.inviteUsers(inviteUsersRequestDtoRest, authorization, options);
363
304
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
364
305
  },
365
306
  /**
@@ -371,7 +312,7 @@ export const InviteUsersApiFp = function(configuration?: Configuration) {
371
312
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, email, token, organizationId, ern&lt;/i&gt;
372
313
  * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
373
314
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: email, expiresOn&lt;/i&gt;
374
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: roles, organizations&lt;i&gt;
315
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: organizations&lt;i&gt;
375
316
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, email, token, organizationId, ern&lt;/i&gt;
376
317
  * @param {*} [options] Override http request option.
377
318
  * @throws {RequiredError}
@@ -390,17 +331,6 @@ export const InviteUsersApiFp = function(configuration?: Configuration) {
390
331
  export const InviteUsersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
391
332
  const localVarFp = InviteUsersApiFp(configuration)
392
333
  return {
393
- /**
394
- * Permanently deletes the invited user. Supply the unique id that was returned when you created the invited user and this will delete it.
395
- * @summary Delete the invited user
396
- * @param {number} id
397
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
398
- * @param {*} [options] Override http request option.
399
- * @throws {RequiredError}
400
- */
401
- deleteInvite(id: number, authorization?: string, options?: any): AxiosPromise<DeleteResponseClass> {
402
- return localVarFp.deleteInvite(id, authorization, options).then((request) => request(axios, basePath));
403
- },
404
334
  /**
405
335
  * This will deletes the users who has been invited. Supply array of ids that were returned when users has been created and this will delete it.
406
336
  * @summary Delete invited users.
@@ -415,24 +345,24 @@ export const InviteUsersApiFactory = function (configuration?: Configuration, ba
415
345
  /**
416
346
  * This send an email to invite a user with the specific role/roles.
417
347
  * @summary Invite a user
418
- * @param {InviteUserRequestDto} inviteUserRequestDto
348
+ * @param {InviteUserRequestDtoRest} inviteUserRequestDtoRest
419
349
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
420
350
  * @param {*} [options] Override http request option.
421
351
  * @throws {RequiredError}
422
352
  */
423
- inviteUser(inviteUserRequestDto: InviteUserRequestDto, authorization?: string, options?: any): AxiosPromise<InviteUserResponseClass> {
424
- return localVarFp.inviteUser(inviteUserRequestDto, authorization, options).then((request) => request(axios, basePath));
353
+ inviteUser(inviteUserRequestDtoRest: InviteUserRequestDtoRest, authorization?: string, options?: any): AxiosPromise<InviteUserResponseClass> {
354
+ return localVarFp.inviteUser(inviteUserRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
425
355
  },
426
356
  /**
427
357
  * This send bulk emails to invite users with the specific role/roles.
428
358
  * @summary Invite batch of users
429
- * @param {InviteUsersRequestDto} inviteUsersRequestDto
359
+ * @param {InviteUsersRequestDtoRest} inviteUsersRequestDtoRest
430
360
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
431
361
  * @param {*} [options] Override http request option.
432
362
  * @throws {RequiredError}
433
363
  */
434
- inviteUsers(inviteUsersRequestDto: InviteUsersRequestDto, authorization?: string, options?: any): AxiosPromise<InviteUsersResponseClass> {
435
- return localVarFp.inviteUsers(inviteUsersRequestDto, authorization, options).then((request) => request(axios, basePath));
364
+ inviteUsers(inviteUsersRequestDtoRest: InviteUsersRequestDtoRest, authorization?: string, options?: any): AxiosPromise<InviteUsersResponseClass> {
365
+ return localVarFp.inviteUsers(inviteUsersRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
436
366
  },
437
367
  /**
438
368
  * Returns a list of invited users you have previously created. The invited users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
@@ -443,7 +373,7 @@ export const InviteUsersApiFactory = function (configuration?: Configuration, ba
443
373
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, email, token, organizationId, ern&lt;/i&gt;
444
374
  * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
445
375
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: email, expiresOn&lt;/i&gt;
446
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: roles, organizations&lt;i&gt;
376
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: organizations&lt;i&gt;
447
377
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, email, token, organizationId, ern&lt;/i&gt;
448
378
  * @param {*} [options] Override http request option.
449
379
  * @throws {RequiredError}
@@ -454,27 +384,6 @@ export const InviteUsersApiFactory = function (configuration?: Configuration, ba
454
384
  };
455
385
  };
456
386
 
457
- /**
458
- * Request parameters for deleteInvite operation in InviteUsersApi.
459
- * @export
460
- * @interface InviteUsersApiDeleteInviteRequest
461
- */
462
- export interface InviteUsersApiDeleteInviteRequest {
463
- /**
464
- *
465
- * @type {number}
466
- * @memberof InviteUsersApiDeleteInvite
467
- */
468
- readonly id: number
469
-
470
- /**
471
- * Bearer Token: provided by the login endpoint under the name accessToken.
472
- * @type {string}
473
- * @memberof InviteUsersApiDeleteInvite
474
- */
475
- readonly authorization?: string
476
- }
477
-
478
387
  /**
479
388
  * Request parameters for deleteInvites operation in InviteUsersApi.
480
389
  * @export
@@ -504,10 +413,10 @@ export interface InviteUsersApiDeleteInvitesRequest {
504
413
  export interface InviteUsersApiInviteUserRequest {
505
414
  /**
506
415
  *
507
- * @type {InviteUserRequestDto}
416
+ * @type {InviteUserRequestDtoRest}
508
417
  * @memberof InviteUsersApiInviteUser
509
418
  */
510
- readonly inviteUserRequestDto: InviteUserRequestDto
419
+ readonly inviteUserRequestDtoRest: InviteUserRequestDtoRest
511
420
 
512
421
  /**
513
422
  * Bearer Token: provided by the login endpoint under the name accessToken.
@@ -525,10 +434,10 @@ export interface InviteUsersApiInviteUserRequest {
525
434
  export interface InviteUsersApiInviteUsersRequest {
526
435
  /**
527
436
  *
528
- * @type {InviteUsersRequestDto}
437
+ * @type {InviteUsersRequestDtoRest}
529
438
  * @memberof InviteUsersApiInviteUsers
530
439
  */
531
- readonly inviteUsersRequestDto: InviteUsersRequestDto
440
+ readonly inviteUsersRequestDtoRest: InviteUsersRequestDtoRest
532
441
 
533
442
  /**
534
443
  * Bearer Token: provided by the login endpoint under the name accessToken.
@@ -587,7 +496,7 @@ export interface InviteUsersApiListInvitesRequest {
587
496
  readonly order?: string
588
497
 
589
498
  /**
590
- * Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: roles, organizations&lt;i&gt;
499
+ * Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: organizations&lt;i&gt;
591
500
  * @type {string}
592
501
  * @memberof InviteUsersApiListInvites
593
502
  */
@@ -608,18 +517,6 @@ export interface InviteUsersApiListInvitesRequest {
608
517
  * @extends {BaseAPI}
609
518
  */
610
519
  export class InviteUsersApi extends BaseAPI {
611
- /**
612
- * Permanently deletes the invited user. Supply the unique id that was returned when you created the invited user and this will delete it.
613
- * @summary Delete the invited user
614
- * @param {InviteUsersApiDeleteInviteRequest} requestParameters Request parameters.
615
- * @param {*} [options] Override http request option.
616
- * @throws {RequiredError}
617
- * @memberof InviteUsersApi
618
- */
619
- public deleteInvite(requestParameters: InviteUsersApiDeleteInviteRequest, options?: AxiosRequestConfig) {
620
- return InviteUsersApiFp(this.configuration).deleteInvite(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
621
- }
622
-
623
520
  /**
624
521
  * This will deletes the users who has been invited. Supply array of ids that were returned when users has been created and this will delete it.
625
522
  * @summary Delete invited users.
@@ -641,7 +538,7 @@ export class InviteUsersApi extends BaseAPI {
641
538
  * @memberof InviteUsersApi
642
539
  */
643
540
  public inviteUser(requestParameters: InviteUsersApiInviteUserRequest, options?: AxiosRequestConfig) {
644
- return InviteUsersApiFp(this.configuration).inviteUser(requestParameters.inviteUserRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
541
+ return InviteUsersApiFp(this.configuration).inviteUser(requestParameters.inviteUserRequestDtoRest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
645
542
  }
646
543
 
647
544
  /**
@@ -653,7 +550,7 @@ export class InviteUsersApi extends BaseAPI {
653
550
  * @memberof InviteUsersApi
654
551
  */
655
552
  public inviteUsers(requestParameters: InviteUsersApiInviteUsersRequest, options?: AxiosRequestConfig) {
656
- return InviteUsersApiFp(this.configuration).inviteUsers(requestParameters.inviteUsersRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
553
+ return InviteUsersApiFp(this.configuration).inviteUsers(requestParameters.inviteUsersRequestDtoRest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
657
554
  }
658
555
 
659
556
  /**