@emilgroup/tenant-sdk 1.9.0 → 1.15.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 (77) hide show
  1. package/.openapi-generator/FILES +1 -2
  2. package/README.md +2 -2
  3. package/api/custom-schema-api.ts +36 -22
  4. package/api/data-report-api.ts +50 -36
  5. package/api/delete-organization-invitations-api.ts +161 -0
  6. package/api/invite-users-api.ts +32 -18
  7. package/api/list-organization-invitations-api.ts +32 -18
  8. package/api/organizations-api.ts +28 -14
  9. package/api/roles-api.ts +22 -22
  10. package/api/settings-api.ts +4 -4
  11. package/api/users-api.ts +32 -18
  12. package/api.ts +2 -0
  13. package/base.ts +1 -0
  14. package/dist/api/custom-schema-api.d.ts +28 -19
  15. package/dist/api/custom-schema-api.js +26 -20
  16. package/dist/api/data-report-api.d.ts +38 -29
  17. package/dist/api/data-report-api.js +35 -29
  18. package/dist/api/delete-organization-invitations-api.d.ts +96 -0
  19. package/dist/api/delete-organization-invitations-api.js +223 -0
  20. package/dist/api/invite-users-api.d.ts +24 -15
  21. package/dist/api/invite-users-api.js +22 -16
  22. package/dist/api/list-organization-invitations-api.d.ts +24 -15
  23. package/dist/api/list-organization-invitations-api.js +22 -16
  24. package/dist/api/organizations-api.d.ts +20 -11
  25. package/dist/api/organizations-api.js +18 -12
  26. package/dist/api/roles-api.d.ts +22 -22
  27. package/dist/api/roles-api.js +13 -13
  28. package/dist/api/settings-api.d.ts +4 -4
  29. package/dist/api/settings-api.js +4 -4
  30. package/dist/api/users-api.d.ts +24 -15
  31. package/dist/api/users-api.js +22 -16
  32. package/dist/api.d.ts +1 -0
  33. package/dist/api.js +1 -0
  34. package/dist/base.js +1 -0
  35. package/dist/models/batch-delete-request-dto.d.ts +2 -2
  36. package/dist/models/create-data-report-request-dto.d.ts +1 -1
  37. package/dist/models/create-role-request-dto.d.ts +2 -2
  38. package/dist/models/custom-field-dto.d.ts +43 -11
  39. package/dist/models/custom-field-dto.js +5 -2
  40. package/dist/models/data-report-class.d.ts +1 -1
  41. package/dist/models/disable-users-request-dto.d.ts +2 -2
  42. package/dist/models/enable-users-request-dto.d.ts +2 -2
  43. package/dist/models/index.d.ts +0 -2
  44. package/dist/models/index.js +0 -2
  45. package/dist/models/inline-response200.d.ts +6 -6
  46. package/dist/models/inline-response503.d.ts +6 -6
  47. package/dist/models/invite-class.d.ts +7 -0
  48. package/dist/models/invite-org-request-dto.d.ts +1 -1
  49. package/dist/models/invite-users-request-dto.d.ts +6 -0
  50. package/dist/models/run-data-report-response-class.d.ts +2 -2
  51. package/dist/models/update-data-report-request-dto.d.ts +1 -1
  52. package/dist/models/update-role-request-dto.d.ts +2 -2
  53. package/dist/models/user-class.d.ts +7 -6
  54. package/models/batch-delete-request-dto.ts +2 -2
  55. package/models/create-data-report-request-dto.ts +1 -1
  56. package/models/create-role-request-dto.ts +2 -2
  57. package/models/custom-field-dto.ts +44 -12
  58. package/models/data-report-class.ts +1 -1
  59. package/models/disable-users-request-dto.ts +2 -2
  60. package/models/enable-users-request-dto.ts +2 -2
  61. package/models/index.ts +0 -2
  62. package/models/inline-response200.ts +6 -6
  63. package/models/inline-response503.ts +6 -6
  64. package/models/invite-class.ts +7 -0
  65. package/models/invite-org-request-dto.ts +1 -1
  66. package/models/invite-users-request-dto.ts +6 -0
  67. package/models/run-data-report-response-class.ts +2 -2
  68. package/models/update-data-report-request-dto.ts +1 -1
  69. package/models/update-role-request-dto.ts +2 -2
  70. package/models/user-class.ts +7 -6
  71. package/package.json +1 -2
  72. package/dist/models/custom-field-option-dto.d.ts +0 -30
  73. package/dist/models/custom-field-option-dto.js +0 -15
  74. package/dist/models/set-user-setting-response-class.d.ts +0 -36
  75. package/dist/models/set-user-setting-response-class.js +0 -15
  76. package/models/custom-field-option-dto.ts +0 -36
  77. package/models/set-user-setting-response-class.ts +0 -42
package/api/roles-api.ts CHANGED
@@ -29,19 +29,19 @@ import { ListRolesResponseClass } from '../models';
29
29
  export const RolesApiAxiosParamCreator = function (configuration?: Configuration) {
30
30
  return {
31
31
  /**
32
- * 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.
32
+ * 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.
33
33
  * @summary List roles
34
34
  * @param {string} [authorization] Bearer Token
35
35
  * @param {number} [pageSize] Page size
36
36
  * @param {string} [pageToken] Page token
37
- * @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.
37
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
38
38
  * @param {string} [search] Search query
39
- * @param {'label'} [order] Order allowing you to specify the desired order of entities retrieved from the server.
40
- * @param {'permissions'} [expand] You can expand roles in this endpoint. By default, permissions will be an empty array.
39
+ * @param {string} [order] Order allowing you to specify the desired order of entities retrieved from the server.
40
+ * @param {string} [expand] You can expand roles in this endpoint. By default, permissions will be an empty array.
41
41
  * @param {*} [options] Override http request option.
42
42
  * @throws {RequiredError}
43
43
  */
44
- listRoles: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: 'id' | 'code' | 'label', search?: string, order?: 'label', expand?: 'permissions', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
44
+ listRoles: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
45
45
  const localVarPath = `/tenantservice/v1/roles`;
46
46
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
47
47
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -110,19 +110,19 @@ export const RolesApiFp = function(configuration?: Configuration) {
110
110
  const localVarAxiosParamCreator = RolesApiAxiosParamCreator(configuration)
111
111
  return {
112
112
  /**
113
- * 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.
113
+ * 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.
114
114
  * @summary List roles
115
115
  * @param {string} [authorization] Bearer Token
116
116
  * @param {number} [pageSize] Page size
117
117
  * @param {string} [pageToken] Page token
118
- * @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.
118
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
119
119
  * @param {string} [search] Search query
120
- * @param {'label'} [order] Order allowing you to specify the desired order of entities retrieved from the server.
121
- * @param {'permissions'} [expand] You can expand roles in this endpoint. By default, permissions will be an empty array.
120
+ * @param {string} [order] Order allowing you to specify the desired order of entities retrieved from the server.
121
+ * @param {string} [expand] You can expand roles in this endpoint. By default, permissions will be an empty array.
122
122
  * @param {*} [options] Override http request option.
123
123
  * @throws {RequiredError}
124
124
  */
125
- 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>> {
125
+ async listRoles(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListRolesResponseClass>> {
126
126
  const localVarAxiosArgs = await localVarAxiosParamCreator.listRoles(authorization, pageSize, pageToken, filter, search, order, expand, options);
127
127
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
128
128
  },
@@ -137,19 +137,19 @@ export const RolesApiFactory = function (configuration?: Configuration, basePath
137
137
  const localVarFp = RolesApiFp(configuration)
138
138
  return {
139
139
  /**
140
- * 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.
140
+ * 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.
141
141
  * @summary List roles
142
142
  * @param {string} [authorization] Bearer Token
143
143
  * @param {number} [pageSize] Page size
144
144
  * @param {string} [pageToken] Page token
145
- * @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.
145
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
146
146
  * @param {string} [search] Search query
147
- * @param {'label'} [order] Order allowing you to specify the desired order of entities retrieved from the server.
148
- * @param {'permissions'} [expand] You can expand roles in this endpoint. By default, permissions will be an empty array.
147
+ * @param {string} [order] Order allowing you to specify the desired order of entities retrieved from the server.
148
+ * @param {string} [expand] You can expand roles in this endpoint. By default, permissions will be an empty array.
149
149
  * @param {*} [options] Override http request option.
150
150
  * @throws {RequiredError}
151
151
  */
152
- listRoles(authorization?: string, pageSize?: number, pageToken?: string, filter?: 'id' | 'code' | 'label', search?: string, order?: 'label', expand?: 'permissions', options?: any): AxiosPromise<ListRolesResponseClass> {
152
+ listRoles(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListRolesResponseClass> {
153
153
  return localVarFp.listRoles(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
154
154
  },
155
155
  };
@@ -184,10 +184,10 @@ export interface RolesApiListRolesRequest {
184
184
 
185
185
  /**
186
186
  * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
187
- * @type {'id' | 'code' | 'label'}
187
+ * @type {string}
188
188
  * @memberof RolesApiListRoles
189
189
  */
190
- readonly filter?: 'id' | 'code' | 'label'
190
+ readonly filter?: string
191
191
 
192
192
  /**
193
193
  * Search query
@@ -198,17 +198,17 @@ export interface RolesApiListRolesRequest {
198
198
 
199
199
  /**
200
200
  * Order allowing you to specify the desired order of entities retrieved from the server.
201
- * @type {'label'}
201
+ * @type {string}
202
202
  * @memberof RolesApiListRoles
203
203
  */
204
- readonly order?: 'label'
204
+ readonly order?: string
205
205
 
206
206
  /**
207
207
  * You can expand roles in this endpoint. By default, permissions will be an empty array.
208
- * @type {'permissions'}
208
+ * @type {string}
209
209
  * @memberof RolesApiListRoles
210
210
  */
211
- readonly expand?: 'permissions'
211
+ readonly expand?: string
212
212
  }
213
213
 
214
214
  /**
@@ -219,7 +219,7 @@ export interface RolesApiListRolesRequest {
219
219
  */
220
220
  export class RolesApi extends BaseAPI {
221
221
  /**
222
- * 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.
222
+ * 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.
223
223
  * @summary List roles
224
224
  * @param {RolesApiListRolesRequest} requestParameters Request parameters.
225
225
  * @param {*} [options] Override http request option.
@@ -29,7 +29,7 @@ import { GetSettingsResponseClass } from '../models';
29
29
  export const SettingsApiAxiosParamCreator = function (configuration?: Configuration) {
30
30
  return {
31
31
  /**
32
- * 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.
32
+ * 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.
33
33
  * @summary Retrieve the settings
34
34
  * @param {string} keys
35
35
  * @param {string} [authorization] Bearer Token
@@ -87,7 +87,7 @@ export const SettingsApiFp = function(configuration?: Configuration) {
87
87
  const localVarAxiosParamCreator = SettingsApiAxiosParamCreator(configuration)
88
88
  return {
89
89
  /**
90
- * 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.
90
+ * 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.
91
91
  * @summary Retrieve the settings
92
92
  * @param {string} keys
93
93
  * @param {string} [authorization] Bearer Token
@@ -109,7 +109,7 @@ export const SettingsApiFactory = function (configuration?: Configuration, baseP
109
109
  const localVarFp = SettingsApiFp(configuration)
110
110
  return {
111
111
  /**
112
- * 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.
112
+ * 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.
113
113
  * @summary Retrieve the settings
114
114
  * @param {string} keys
115
115
  * @param {string} [authorization] Bearer Token
@@ -151,7 +151,7 @@ export interface SettingsApiGetTenantSettingsRequest {
151
151
  */
152
152
  export class SettingsApi extends BaseAPI {
153
153
  /**
154
- * 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.
154
+ * 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.
155
155
  * @summary Retrieve the settings
156
156
  * @param {SettingsApiGetTenantSettingsRequest} requestParameters Request parameters.
157
157
  * @param {*} [options] Override http request option.
package/api/users-api.ts CHANGED
@@ -429,19 +429,20 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
429
429
  };
430
430
  },
431
431
  /**
432
- * Returns a list of users you have previously created. The users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
432
+ * Returns a list of users you have previously created. The users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
433
433
  * @summary List users
434
434
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
435
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
435
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
436
436
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
437
437
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
438
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
438
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
439
439
  * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
440
440
  * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
441
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
441
442
  * @param {*} [options] Override http request option.
442
443
  * @throws {RequiredError}
443
444
  */
444
- listUsers: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
445
+ listUsers: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
445
446
  const localVarPath = `/tenantservice/v1/users`;
446
447
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
447
448
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -484,6 +485,10 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
484
485
  localVarQueryParameter['expand'] = expand;
485
486
  }
486
487
 
488
+ if (filters !== undefined) {
489
+ localVarQueryParameter['filters'] = filters;
490
+ }
491
+
487
492
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
488
493
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
489
494
  }
@@ -601,20 +606,21 @@ export const UsersApiFp = function(configuration?: Configuration) {
601
606
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
602
607
  },
603
608
  /**
604
- * Returns a list of users you have previously created. The users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
609
+ * Returns a list of users you have previously created. The users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
605
610
  * @summary List users
606
611
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
607
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
612
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
608
613
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
609
614
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
610
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
615
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
611
616
  * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
612
617
  * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
618
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
613
619
  * @param {*} [options] Override http request option.
614
620
  * @throws {RequiredError}
615
621
  */
616
- async listUsers(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListUsersResponseClass>> {
617
- const localVarAxiosArgs = await localVarAxiosParamCreator.listUsers(authorization, pageSize, pageToken, filter, search, order, expand, options);
622
+ async listUsers(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListUsersResponseClass>> {
623
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listUsers(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
618
624
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
619
625
  },
620
626
  }
@@ -711,20 +717,21 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
711
717
  return localVarFp.getUser(code, code2, authorization, expand, options).then((request) => request(axios, basePath));
712
718
  },
713
719
  /**
714
- * Returns a list of users you have previously created. The users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
720
+ * Returns a list of users you have previously created. The users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
715
721
  * @summary List users
716
722
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
717
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
723
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
718
724
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
719
725
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
720
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
726
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
721
727
  * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
722
728
  * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
729
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
723
730
  * @param {*} [options] Override http request option.
724
731
  * @throws {RequiredError}
725
732
  */
726
- listUsers(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListUsersResponseClass> {
727
- return localVarFp.listUsers(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
733
+ listUsers(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListUsersResponseClass> {
734
+ return localVarFp.listUsers(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
728
735
  },
729
736
  };
730
737
  };
@@ -932,7 +939,7 @@ export interface UsersApiListUsersRequest {
932
939
  readonly authorization?: string
933
940
 
934
941
  /**
935
- * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
942
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
936
943
  * @type {any}
937
944
  * @memberof UsersApiListUsers
938
945
  */
@@ -953,7 +960,7 @@ export interface UsersApiListUsersRequest {
953
960
  readonly filter?: any
954
961
 
955
962
  /**
956
- * Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
963
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
957
964
  * @type {any}
958
965
  * @memberof UsersApiListUsers
959
966
  */
@@ -972,6 +979,13 @@ export interface UsersApiListUsersRequest {
972
979
  * @memberof UsersApiListUsers
973
980
  */
974
981
  readonly expand?: any
982
+
983
+ /**
984
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
985
+ * @type {any}
986
+ * @memberof UsersApiListUsers
987
+ */
988
+ readonly filters?: any
975
989
  }
976
990
 
977
991
  /**
@@ -1070,7 +1084,7 @@ export class UsersApi extends BaseAPI {
1070
1084
  }
1071
1085
 
1072
1086
  /**
1073
- * Returns a list of users you have previously created. The users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
1087
+ * Returns a list of users you have previously created. The users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
1074
1088
  * @summary List users
1075
1089
  * @param {UsersApiListUsersRequest} requestParameters Request parameters.
1076
1090
  * @param {*} [options] Override http request option.
@@ -1078,6 +1092,6 @@ export class UsersApi extends BaseAPI {
1078
1092
  * @memberof UsersApi
1079
1093
  */
1080
1094
  public listUsers(requestParameters: UsersApiListUsersRequest = {}, options?: AxiosRequestConfig) {
1081
- return UsersApiFp(this.configuration).listUsers(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
1095
+ return UsersApiFp(this.configuration).listUsers(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
1082
1096
  }
1083
1097
  }
package/api.ts CHANGED
@@ -24,6 +24,7 @@ import { CustomSchemaApi } from './api';
24
24
  import { DataReportApi } from './api';
25
25
  import { DataReportExecutorApi } from './api';
26
26
  import { DefaultApi } from './api';
27
+ import { DeleteOrganizationInvitationsApi } from './api';
27
28
  import { InviteOrganizationsApi } from './api';
28
29
  import { InviteUsersApi } from './api';
29
30
  import { ListOrganizationInvitationsApi } from './api';
@@ -38,6 +39,7 @@ export * from './api/custom-schema-api';
38
39
  export * from './api/data-report-api';
39
40
  export * from './api/data-report-executor-api';
40
41
  export * from './api/default-api';
42
+ export * from './api/delete-organization-invitations-api';
41
43
  export * from './api/invite-organizations-api';
42
44
  export * from './api/invite-users-api';
43
45
  export * from './api/list-organization-invitations-api';
package/base.ts CHANGED
@@ -87,6 +87,7 @@ export class BaseAPI {
87
87
  if (configuration) {
88
88
  this.configuration = configuration;
89
89
  this.basePath = configuration.basePath || this.basePath;
90
+ this.configuration.accessToken = this.tokenData.accessToken ? `Bearer ${this.tokenData.accessToken}` : '';
90
91
  } else {
91
92
  const { accessToken, username } = this.tokenData;
92
93
 
@@ -33,7 +33,7 @@ export declare const CustomSchemaApiAxiosParamCreator: (configuration?: Configur
33
33
  */
34
34
  createCustomSchema: (createCustomSchemaRequestDto: CreateCustomSchemaRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
35
35
  /**
36
- * Retrieves the details of the custom-schema that was previously created. Supply the unique custom-schema code that was returned when you created it and Emil Api will return the corresponding custom-schema information.
36
+ * Retrieves the details of the custom-schema that was previously created. Supply the unique custom-schema code that was returned when you created it and Emil Api will return the corresponding custom-schema information.
37
37
  * @summary Retrieve the custom-schema
38
38
  * @param {string} code Unique identifier for the object.
39
39
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -43,19 +43,20 @@ export declare const CustomSchemaApiAxiosParamCreator: (configuration?: Configur
43
43
  */
44
44
  getCustomSchema: (code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
45
45
  /**
46
- * Returns a list of custom-schemas you have previously created. The custom-schemas are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
46
+ * Returns a list of custom-schemas you have previously created. The custom-schemas are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
47
47
  * @summary List custom-schemas
48
48
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
49
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
49
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
50
50
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
51
51
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
52
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
52
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
53
53
  * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
54
54
  * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
55
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
55
56
  * @param {*} [options] Override http request option.
56
57
  * @throws {RequiredError}
57
58
  */
58
- listCustomSchemas: (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
59
+ listCustomSchemas: (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
59
60
  /**
60
61
  * Updates the specified custom-schema by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
61
62
  * @summary Update the custom-schema
@@ -82,7 +83,7 @@ export declare const CustomSchemaApiFp: (configuration?: Configuration) => {
82
83
  */
83
84
  createCustomSchema(createCustomSchemaRequestDto: CreateCustomSchemaRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateCustomSchemaResponseClass>>;
84
85
  /**
85
- * Retrieves the details of the custom-schema that was previously created. Supply the unique custom-schema code that was returned when you created it and Emil Api will return the corresponding custom-schema information.
86
+ * Retrieves the details of the custom-schema that was previously created. Supply the unique custom-schema code that was returned when you created it and Emil Api will return the corresponding custom-schema information.
86
87
  * @summary Retrieve the custom-schema
87
88
  * @param {string} code Unique identifier for the object.
88
89
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -92,19 +93,20 @@ export declare const CustomSchemaApiFp: (configuration?: Configuration) => {
92
93
  */
93
94
  getCustomSchema(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCustomSchemaResponseClass>>;
94
95
  /**
95
- * Returns a list of custom-schemas you have previously created. The custom-schemas are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
96
+ * Returns a list of custom-schemas you have previously created. The custom-schemas are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
96
97
  * @summary List custom-schemas
97
98
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
98
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
99
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
99
100
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
100
101
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
101
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
102
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
102
103
  * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
103
104
  * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
105
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
104
106
  * @param {*} [options] Override http request option.
105
107
  * @throws {RequiredError}
106
108
  */
107
- listCustomSchemas(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCustomSchemasResponseClass>>;
109
+ listCustomSchemas(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCustomSchemasResponseClass>>;
108
110
  /**
109
111
  * Updates the specified custom-schema by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
110
112
  * @summary Update the custom-schema
@@ -131,7 +133,7 @@ export declare const CustomSchemaApiFactory: (configuration?: Configuration, bas
131
133
  */
132
134
  createCustomSchema(createCustomSchemaRequestDto: CreateCustomSchemaRequestDto, authorization?: string, options?: any): AxiosPromise<CreateCustomSchemaResponseClass>;
133
135
  /**
134
- * Retrieves the details of the custom-schema that was previously created. Supply the unique custom-schema code that was returned when you created it and Emil Api will return the corresponding custom-schema information.
136
+ * Retrieves the details of the custom-schema that was previously created. Supply the unique custom-schema code that was returned when you created it and Emil Api will return the corresponding custom-schema information.
135
137
  * @summary Retrieve the custom-schema
136
138
  * @param {string} code Unique identifier for the object.
137
139
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -141,19 +143,20 @@ export declare const CustomSchemaApiFactory: (configuration?: Configuration, bas
141
143
  */
142
144
  getCustomSchema(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetCustomSchemaResponseClass>;
143
145
  /**
144
- * Returns a list of custom-schemas you have previously created. The custom-schemas are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
146
+ * Returns a list of custom-schemas you have previously created. The custom-schemas are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
145
147
  * @summary List custom-schemas
146
148
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
147
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
149
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
148
150
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
149
151
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
150
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
152
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
151
153
  * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
152
154
  * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
155
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
153
156
  * @param {*} [options] Override http request option.
154
157
  * @throws {RequiredError}
155
158
  */
156
- listCustomSchemas(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListCustomSchemasResponseClass>;
159
+ listCustomSchemas(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListCustomSchemasResponseClass>;
157
160
  /**
158
161
  * Updates the specified custom-schema by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
159
162
  * @summary Update the custom-schema
@@ -222,7 +225,7 @@ export interface CustomSchemaApiListCustomSchemasRequest {
222
225
  */
223
226
  readonly authorization?: string;
224
227
  /**
225
- * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
228
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
226
229
  * @type {any}
227
230
  * @memberof CustomSchemaApiListCustomSchemas
228
231
  */
@@ -240,7 +243,7 @@ export interface CustomSchemaApiListCustomSchemasRequest {
240
243
  */
241
244
  readonly filter?: any;
242
245
  /**
243
- * Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
246
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
244
247
  * @type {any}
245
248
  * @memberof CustomSchemaApiListCustomSchemas
246
249
  */
@@ -257,6 +260,12 @@ export interface CustomSchemaApiListCustomSchemasRequest {
257
260
  * @memberof CustomSchemaApiListCustomSchemas
258
261
  */
259
262
  readonly expand?: any;
263
+ /**
264
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
265
+ * @type {any}
266
+ * @memberof CustomSchemaApiListCustomSchemas
267
+ */
268
+ readonly filters?: any;
260
269
  }
261
270
  /**
262
271
  * Request parameters for updateCustomSchema operation in CustomSchemaApi.
@@ -300,7 +309,7 @@ export declare class CustomSchemaApi extends BaseAPI {
300
309
  */
301
310
  createCustomSchema(requestParameters: CustomSchemaApiCreateCustomSchemaRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateCustomSchemaResponseClass, any>>;
302
311
  /**
303
- * Retrieves the details of the custom-schema that was previously created. Supply the unique custom-schema code that was returned when you created it and Emil Api will return the corresponding custom-schema information.
312
+ * Retrieves the details of the custom-schema that was previously created. Supply the unique custom-schema code that was returned when you created it and Emil Api will return the corresponding custom-schema information.
304
313
  * @summary Retrieve the custom-schema
305
314
  * @param {CustomSchemaApiGetCustomSchemaRequest} requestParameters Request parameters.
306
315
  * @param {*} [options] Override http request option.
@@ -309,7 +318,7 @@ export declare class CustomSchemaApi extends BaseAPI {
309
318
  */
310
319
  getCustomSchema(requestParameters: CustomSchemaApiGetCustomSchemaRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetCustomSchemaResponseClass, any>>;
311
320
  /**
312
- * Returns a list of custom-schemas you have previously created. The custom-schemas are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
321
+ * Returns a list of custom-schemas you have previously created. The custom-schemas are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
313
322
  * @summary List custom-schemas
314
323
  * @param {CustomSchemaApiListCustomSchemasRequest} requestParameters Request parameters.
315
324
  * @param {*} [options] Override http request option.