@emilgroup/tenant-sdk 1.15.0 → 1.16.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 (73) hide show
  1. package/.openapi-generator/FILES +0 -1
  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/invite-users-api.ts +32 -18
  6. package/api/list-organization-invitations-api.ts +32 -18
  7. package/api/organizations-api.ts +28 -14
  8. package/api/roles-api.ts +22 -22
  9. package/api/settings-api.ts +4 -4
  10. package/api/users-api.ts +32 -18
  11. package/base.ts +6 -1
  12. package/configuration.ts +1 -1
  13. package/dist/api/custom-schema-api.d.ts +28 -19
  14. package/dist/api/custom-schema-api.js +26 -20
  15. package/dist/api/data-report-api.d.ts +38 -29
  16. package/dist/api/data-report-api.js +35 -29
  17. package/dist/api/invite-users-api.d.ts +24 -15
  18. package/dist/api/invite-users-api.js +22 -16
  19. package/dist/api/list-organization-invitations-api.d.ts +24 -15
  20. package/dist/api/list-organization-invitations-api.js +22 -16
  21. package/dist/api/organizations-api.d.ts +20 -11
  22. package/dist/api/organizations-api.js +18 -12
  23. package/dist/api/roles-api.d.ts +22 -22
  24. package/dist/api/roles-api.js +13 -13
  25. package/dist/api/settings-api.d.ts +4 -4
  26. package/dist/api/settings-api.js +4 -4
  27. package/dist/api/users-api.d.ts +24 -15
  28. package/dist/api/users-api.js +22 -16
  29. package/dist/base.d.ts +1 -0
  30. package/dist/base.js +5 -1
  31. package/dist/configuration.js +0 -7
  32. package/dist/models/batch-delete-request-dto.d.ts +2 -2
  33. package/dist/models/create-data-report-request-dto.d.ts +1 -1
  34. package/dist/models/create-role-request-dto.d.ts +2 -2
  35. package/dist/models/custom-field-dto.d.ts +37 -4
  36. package/dist/models/custom-field-dto.js +5 -2
  37. package/dist/models/data-report-class.d.ts +1 -1
  38. package/dist/models/disable-users-request-dto.d.ts +2 -2
  39. package/dist/models/enable-users-request-dto.d.ts +2 -2
  40. package/dist/models/index.d.ts +0 -1
  41. package/dist/models/index.js +0 -1
  42. package/dist/models/inline-response200.d.ts +6 -6
  43. package/dist/models/inline-response503.d.ts +6 -6
  44. package/dist/models/invite-class.d.ts +7 -0
  45. package/dist/models/invite-org-request-dto.d.ts +1 -1
  46. package/dist/models/invite-users-request-dto.d.ts +6 -0
  47. package/dist/models/organization-class.d.ts +6 -0
  48. package/dist/models/run-data-report-response-class.d.ts +2 -2
  49. package/dist/models/update-data-report-request-dto.d.ts +1 -1
  50. package/dist/models/update-role-request-dto.d.ts +2 -2
  51. package/dist/models/user-class.d.ts +7 -6
  52. package/models/batch-delete-request-dto.ts +2 -2
  53. package/models/create-data-report-request-dto.ts +1 -1
  54. package/models/create-role-request-dto.ts +2 -2
  55. package/models/custom-field-dto.ts +38 -5
  56. package/models/data-report-class.ts +1 -1
  57. package/models/disable-users-request-dto.ts +2 -2
  58. package/models/enable-users-request-dto.ts +2 -2
  59. package/models/index.ts +0 -1
  60. package/models/inline-response200.ts +6 -6
  61. package/models/inline-response503.ts +6 -6
  62. package/models/invite-class.ts +7 -0
  63. package/models/invite-org-request-dto.ts +1 -1
  64. package/models/invite-users-request-dto.ts +6 -0
  65. package/models/organization-class.ts +6 -0
  66. package/models/run-data-report-response-class.ts +2 -2
  67. package/models/update-data-report-request-dto.ts +1 -1
  68. package/models/update-role-request-dto.ts +2 -2
  69. package/models/user-class.ts +7 -6
  70. package/package.json +1 -1
  71. package/dist/models/set-user-setting-response-class.d.ts +0 -36
  72. package/dist/models/set-user-setting-response-class.js +0 -15
  73. package/models/set-user-setting-response-class.ts +0 -42
@@ -98,19 +98,20 @@ export declare const UsersApiAxiosParamCreator: (configuration?: Configuration)
98
98
  */
99
99
  getUser: (code: string, code2: string, authorization?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
100
100
  /**
101
- * 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.
101
+ * 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.
102
102
  * @summary List users
103
103
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
104
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
104
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
105
105
  * @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.
106
106
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
107
- * @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.
107
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
108
108
  * @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.
109
109
  * @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.
110
+ * @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.
110
111
  * @param {*} [options] Override http request option.
111
112
  * @throws {RequiredError}
112
113
  */
113
- listUsers: (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
114
+ listUsers: (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
114
115
  };
115
116
  /**
116
117
  * UsersApi - functional programming interface
@@ -185,19 +186,20 @@ export declare const UsersApiFp: (configuration?: Configuration) => {
185
186
  */
186
187
  getUser(code: string, code2: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetUserResponseClass>>;
187
188
  /**
188
- * 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.
189
+ * 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.
189
190
  * @summary List users
190
191
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
191
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
192
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
192
193
  * @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.
193
194
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
194
- * @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.
195
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
195
196
  * @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.
196
197
  * @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.
198
+ * @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.
197
199
  * @param {*} [options] Override http request option.
198
200
  * @throws {RequiredError}
199
201
  */
200
- listUsers(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListUsersResponseClass>>;
202
+ 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>>;
201
203
  };
202
204
  /**
203
205
  * UsersApi - factory interface
@@ -272,19 +274,20 @@ export declare const UsersApiFactory: (configuration?: Configuration, basePath?:
272
274
  */
273
275
  getUser(code: string, code2: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetUserResponseClass>;
274
276
  /**
275
- * 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.
277
+ * 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.
276
278
  * @summary List users
277
279
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
278
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
280
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
279
281
  * @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.
280
282
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
281
- * @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.
283
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
282
284
  * @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.
283
285
  * @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.
286
+ * @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.
284
287
  * @param {*} [options] Override http request option.
285
288
  * @throws {RequiredError}
286
289
  */
287
- listUsers(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListUsersResponseClass>;
290
+ listUsers(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListUsersResponseClass>;
288
291
  };
289
292
  /**
290
293
  * Request parameters for assignUserRoles operation in UsersApi.
@@ -469,7 +472,7 @@ export interface UsersApiListUsersRequest {
469
472
  */
470
473
  readonly authorization?: string;
471
474
  /**
472
- * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
475
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
473
476
  * @type {any}
474
477
  * @memberof UsersApiListUsers
475
478
  */
@@ -487,7 +490,7 @@ export interface UsersApiListUsersRequest {
487
490
  */
488
491
  readonly filter?: any;
489
492
  /**
490
- * 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.
493
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
491
494
  * @type {any}
492
495
  * @memberof UsersApiListUsers
493
496
  */
@@ -504,6 +507,12 @@ export interface UsersApiListUsersRequest {
504
507
  * @memberof UsersApiListUsers
505
508
  */
506
509
  readonly expand?: any;
510
+ /**
511
+ * 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.
512
+ * @type {any}
513
+ * @memberof UsersApiListUsers
514
+ */
515
+ readonly filters?: any;
507
516
  }
508
517
  /**
509
518
  * UsersApi - object-oriented interface
@@ -577,7 +586,7 @@ export declare class UsersApi extends BaseAPI {
577
586
  */
578
587
  getUser(requestParameters: UsersApiGetUserRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetUserResponseClass, any>>;
579
588
  /**
580
- * 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.
589
+ * 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.
581
590
  * @summary List users
582
591
  * @param {UsersApiListUsersRequest} requestParameters Request parameters.
583
592
  * @param {*} [options] Override http request option.
@@ -487,19 +487,20 @@ var UsersApiAxiosParamCreator = function (configuration) {
487
487
  });
488
488
  },
489
489
  /**
490
- * 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.
490
+ * 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.
491
491
  * @summary List users
492
492
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
493
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
493
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
494
494
  * @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.
495
495
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
496
- * @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.
496
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
497
497
  * @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.
498
498
  * @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.
499
+ * @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.
499
500
  * @param {*} [options] Override http request option.
500
501
  * @throws {RequiredError}
501
502
  */
502
- listUsers: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
503
+ listUsers: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
503
504
  if (options === void 0) { options = {}; }
504
505
  return __awaiter(_this, void 0, void 0, function () {
505
506
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -540,6 +541,9 @@ var UsersApiAxiosParamCreator = function (configuration) {
540
541
  if (expand !== undefined) {
541
542
  localVarQueryParameter['expand'] = expand;
542
543
  }
544
+ if (filters !== undefined) {
545
+ localVarQueryParameter['filters'] = filters;
546
+ }
543
547
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
544
548
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
545
549
  }
@@ -728,24 +732,25 @@ var UsersApiFp = function (configuration) {
728
732
  });
729
733
  },
730
734
  /**
731
- * 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.
735
+ * 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.
732
736
  * @summary List users
733
737
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
734
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
738
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
735
739
  * @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.
736
740
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
737
- * @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.
741
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
738
742
  * @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.
739
743
  * @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.
744
+ * @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.
740
745
  * @param {*} [options] Override http request option.
741
746
  * @throws {RequiredError}
742
747
  */
743
- listUsers: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
748
+ listUsers: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
744
749
  return __awaiter(this, void 0, void 0, function () {
745
750
  var localVarAxiosArgs;
746
751
  return __generator(this, function (_a) {
747
752
  switch (_a.label) {
748
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listUsers(authorization, pageSize, pageToken, filter, search, order, expand, options)];
753
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listUsers(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
749
754
  case 1:
750
755
  localVarAxiosArgs = _a.sent();
751
756
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -847,20 +852,21 @@ var UsersApiFactory = function (configuration, basePath, axios) {
847
852
  return localVarFp.getUser(code, code2, authorization, expand, options).then(function (request) { return request(axios, basePath); });
848
853
  },
849
854
  /**
850
- * 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.
855
+ * 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.
851
856
  * @summary List users
852
857
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
853
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
858
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
854
859
  * @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.
855
860
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
856
- * @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.
861
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
857
862
  * @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.
858
863
  * @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.
864
+ * @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.
859
865
  * @param {*} [options] Override http request option.
860
866
  * @throws {RequiredError}
861
867
  */
862
- listUsers: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
863
- return localVarFp.listUsers(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
868
+ listUsers: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
869
+ return localVarFp.listUsers(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
864
870
  },
865
871
  };
866
872
  };
@@ -965,7 +971,7 @@ var UsersApi = /** @class */ (function (_super) {
965
971
  return (0, exports.UsersApiFp)(this.configuration).getUser(requestParameters.code, requestParameters.code2, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
966
972
  };
967
973
  /**
968
- * 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.
974
+ * 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.
969
975
  * @summary List users
970
976
  * @param {UsersApiListUsersRequest} requestParameters Request parameters.
971
977
  * @param {*} [options] Override http request option.
@@ -975,7 +981,7 @@ var UsersApi = /** @class */ (function (_super) {
975
981
  UsersApi.prototype.listUsers = function (requestParameters, options) {
976
982
  var _this = this;
977
983
  if (requestParameters === void 0) { requestParameters = {}; }
978
- return (0, exports.UsersApiFp)(this.configuration).listUsers(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
984
+ return (0, exports.UsersApiFp)(this.configuration).listUsers(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
979
985
  };
980
986
  return UsersApi;
981
987
  }(base_1.BaseAPI));
package/dist/base.d.ts CHANGED
@@ -54,6 +54,7 @@ export declare class BaseAPI {
54
54
  private tokenData?;
55
55
  constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
56
56
  selectEnvironment(env: Environment): void;
57
+ selectBasePath(path: string): void;
57
58
  authorize(username: string, password: string): Promise<void>;
58
59
  refreshTokenInternal(): Promise<string>;
59
60
  private storeTokenData;
package/dist/base.js CHANGED
@@ -125,6 +125,7 @@ var BaseAPI = /** @class */ (function () {
125
125
  if (configuration) {
126
126
  this.configuration = configuration;
127
127
  this.basePath = configuration.basePath || this.basePath;
128
+ this.configuration.accessToken = this.tokenData.accessToken ? "Bearer ".concat(this.tokenData.accessToken) : '';
128
129
  }
129
130
  else {
130
131
  var _a = this.tokenData, accessToken = _a.accessToken, username = _a.username;
@@ -137,7 +138,10 @@ var BaseAPI = /** @class */ (function () {
137
138
  this.attachInterceptor(axios);
138
139
  }
139
140
  BaseAPI.prototype.selectEnvironment = function (env) {
140
- this.configuration.basePath = env;
141
+ this.selectBasePath(env);
142
+ };
143
+ BaseAPI.prototype.selectBasePath = function (path) {
144
+ this.configuration.basePath = path;
141
145
  };
142
146
  BaseAPI.prototype.authorize = function (username, password) {
143
147
  return __awaiter(this, void 0, void 0, function () {
@@ -17,13 +17,6 @@ exports.Configuration = void 0;
17
17
  var Configuration = /** @class */ (function () {
18
18
  function Configuration(param) {
19
19
  if (param === void 0) { param = {}; }
20
- /**
21
- * parameter for oauth2 security
22
- * @param name security name
23
- * @param scopes oauth2 scope
24
- * @memberof Configuration
25
- */
26
- this.accessToken = '';
27
20
  this.apiKey = param.apiKey;
28
21
  this.username = param.username;
29
22
  this.password = param.password;
@@ -17,8 +17,8 @@
17
17
  export interface BatchDeleteRequestDto {
18
18
  /**
19
19
  * Invited users ids.
20
- * @type {Array<string>}
20
+ * @type {Array<number>}
21
21
  * @memberof BatchDeleteRequestDto
22
22
  */
23
- 'ids': Array<string>;
23
+ 'ids': Array<number>;
24
24
  }
@@ -23,7 +23,7 @@ export interface CreateDataReportRequestDto {
23
23
  */
24
24
  'code': string;
25
25
  /**
26
- * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
26
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
27
27
  * @type {string}
28
28
  * @memberof CreateDataReportRequestDto
29
29
  */
@@ -29,8 +29,8 @@ export interface CreateRoleRequestDto {
29
29
  'description': string;
30
30
  /**
31
31
  * Permission ids for the role
32
- * @type {Array<string>}
32
+ * @type {Array<number>}
33
33
  * @memberof CreateRoleRequestDto
34
34
  */
35
- 'permissionIds': Array<string>;
35
+ 'permissionIds': Array<number>;
36
36
  }
@@ -27,6 +27,12 @@ export interface CustomFieldDto {
27
27
  * @memberof CustomFieldDto
28
28
  */
29
29
  'label'?: string;
30
+ /**
31
+ * The type of the custom field. Supported types are: string, number, boolean, array, object, date, dateTime, phoneNumber, email, url
32
+ * @type {string}
33
+ * @memberof CustomFieldDto
34
+ */
35
+ 'type': CustomFieldDtoTypeEnum;
30
36
  /**
31
37
  * Indicates whether the customField is required
32
38
  * @type {boolean}
@@ -62,21 +68,48 @@ export interface CustomFieldDto {
62
68
  * @type {object}
63
69
  * @memberof CustomFieldDto
64
70
  */
65
- 'options': object;
71
+ 'options'?: object;
66
72
  /**
67
- *
73
+ * The minimum number of items allowed for array fields.
74
+ * @type {number}
75
+ * @memberof CustomFieldDto
76
+ */
77
+ 'minItems'?: number;
78
+ /**
79
+ * The maximum number of items allowed for array fields.
80
+ * @type {number}
81
+ * @memberof CustomFieldDto
82
+ */
83
+ 'maxItems'?: number;
84
+ /**
85
+ * Defines the structure of items for array fields.
86
+ * @type {CustomFieldDto}
87
+ * @memberof CustomFieldDto
88
+ */
89
+ 'items'?: CustomFieldDto;
90
+ /**
91
+ * Defines the properties for object fields.
92
+ * @type {object}
93
+ * @memberof CustomFieldDto
94
+ */
95
+ 'properties'?: object;
96
+ /**
97
+ * Defines the regex expression for string field.
68
98
  * @type {string}
69
99
  * @memberof CustomFieldDto
70
100
  */
71
- 'type': CustomFieldDtoTypeEnum;
101
+ 'regexExpression'?: string;
72
102
  }
73
103
  export declare const CustomFieldDtoTypeEnum: {
74
104
  readonly String: "string";
75
105
  readonly Number: "number";
76
106
  readonly Boolean: "boolean";
77
107
  readonly Date: "date";
78
- readonly DateTime: "date-time";
108
+ readonly DateTime: "dateTime";
79
109
  readonly Email: "email";
80
110
  readonly Object: "object";
111
+ readonly Phone: "phone";
112
+ readonly Url: "url";
113
+ readonly Array: "array";
81
114
  };
82
115
  export type CustomFieldDtoTypeEnum = typeof CustomFieldDtoTypeEnum[keyof typeof CustomFieldDtoTypeEnum];
@@ -19,7 +19,10 @@ exports.CustomFieldDtoTypeEnum = {
19
19
  Number: 'number',
20
20
  Boolean: 'boolean',
21
21
  Date: 'date',
22
- DateTime: 'date-time',
22
+ DateTime: 'dateTime',
23
23
  Email: 'email',
24
- Object: 'object'
24
+ Object: 'object',
25
+ Phone: 'phone',
26
+ Url: 'url',
27
+ Array: 'array'
25
28
  };
@@ -29,7 +29,7 @@ export interface DataReportClass {
29
29
  */
30
30
  'code': string;
31
31
  /**
32
- * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
32
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
33
33
  * @type {string}
34
34
  * @memberof DataReportClass
35
35
  */
@@ -17,8 +17,8 @@
17
17
  export interface DisableUsersRequestDto {
18
18
  /**
19
19
  * user ids
20
- * @type {Array<string>}
20
+ * @type {Array<number>}
21
21
  * @memberof DisableUsersRequestDto
22
22
  */
23
- 'ids': Array<string>;
23
+ 'ids': Array<number>;
24
24
  }
@@ -17,8 +17,8 @@
17
17
  export interface EnableUsersRequestDto {
18
18
  /**
19
19
  * user ids
20
- * @type {Array<string>}
20
+ * @type {Array<number>}
21
21
  * @memberof EnableUsersRequestDto
22
22
  */
23
- 'ids': Array<string>;
23
+ 'ids': Array<number>;
24
24
  }
@@ -55,7 +55,6 @@ export * from './role-class';
55
55
  export * from './run-data-report-request-dto';
56
56
  export * from './run-data-report-response-class';
57
57
  export * from './set-setting-request-dto';
58
- export * from './set-user-setting-response-class';
59
58
  export * from './subscription-class';
60
59
  export * from './tenant-admin-user-dto';
61
60
  export * from './tenant-settings-class';
@@ -71,7 +71,6 @@ __exportStar(require("./role-class"), exports);
71
71
  __exportStar(require("./run-data-report-request-dto"), exports);
72
72
  __exportStar(require("./run-data-report-response-class"), exports);
73
73
  __exportStar(require("./set-setting-request-dto"), exports);
74
- __exportStar(require("./set-user-setting-response-class"), exports);
75
74
  __exportStar(require("./subscription-class"), exports);
76
75
  __exportStar(require("./tenant-admin-user-dto"), exports);
77
76
  __exportStar(require("./tenant-settings-class"), exports);
@@ -23,32 +23,32 @@ export interface InlineResponse200 {
23
23
  'status'?: string;
24
24
  /**
25
25
  *
26
- * @type {{ [key: string]: { [key: string]: string; }; }}
26
+ * @type {{ [key: string]: { [key: string]: object; }; }}
27
27
  * @memberof InlineResponse200
28
28
  */
29
29
  'info'?: {
30
30
  [key: string]: {
31
- [key: string]: string;
31
+ [key: string]: object;
32
32
  };
33
33
  } | null;
34
34
  /**
35
35
  *
36
- * @type {{ [key: string]: { [key: string]: string; }; }}
36
+ * @type {{ [key: string]: { [key: string]: object; }; }}
37
37
  * @memberof InlineResponse200
38
38
  */
39
39
  'error'?: {
40
40
  [key: string]: {
41
- [key: string]: string;
41
+ [key: string]: object;
42
42
  };
43
43
  } | null;
44
44
  /**
45
45
  *
46
- * @type {{ [key: string]: { [key: string]: string; }; }}
46
+ * @type {{ [key: string]: { [key: string]: object; }; }}
47
47
  * @memberof InlineResponse200
48
48
  */
49
49
  'details'?: {
50
50
  [key: string]: {
51
- [key: string]: string;
51
+ [key: string]: object;
52
52
  };
53
53
  };
54
54
  }
@@ -23,32 +23,32 @@ export interface InlineResponse503 {
23
23
  'status'?: string;
24
24
  /**
25
25
  *
26
- * @type {{ [key: string]: { [key: string]: string; }; }}
26
+ * @type {{ [key: string]: { [key: string]: object; }; }}
27
27
  * @memberof InlineResponse503
28
28
  */
29
29
  'info'?: {
30
30
  [key: string]: {
31
- [key: string]: string;
31
+ [key: string]: object;
32
32
  };
33
33
  } | null;
34
34
  /**
35
35
  *
36
- * @type {{ [key: string]: { [key: string]: string; }; }}
36
+ * @type {{ [key: string]: { [key: string]: object; }; }}
37
37
  * @memberof InlineResponse503
38
38
  */
39
39
  'error'?: {
40
40
  [key: string]: {
41
- [key: string]: string;
41
+ [key: string]: object;
42
42
  };
43
43
  } | null;
44
44
  /**
45
45
  *
46
- * @type {{ [key: string]: { [key: string]: string; }; }}
46
+ * @type {{ [key: string]: { [key: string]: object; }; }}
47
47
  * @memberof InlineResponse503
48
48
  */
49
49
  'details'?: {
50
50
  [key: string]: {
51
- [key: string]: string;
51
+ [key: string]: object;
52
52
  };
53
53
  };
54
54
  }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { OrganizationClass } from './organization-class';
12
13
  import { RoleClass } from './role-class';
13
14
  /**
14
15
  *
@@ -52,4 +53,10 @@ export interface InviteClass {
52
53
  * @memberof InviteClass
53
54
  */
54
55
  'updatedAt': string;
56
+ /**
57
+ * Organization associated with the user
58
+ * @type {OrganizationClass}
59
+ * @memberof InviteClass
60
+ */
61
+ 'organization': OrganizationClass;
55
62
  }
@@ -34,7 +34,7 @@ export interface InviteOrgRequestDto {
34
34
  */
35
35
  'name': string;
36
36
  /**
37
- * Identifier for the organization.
37
+ * Identifier for the organization. Restrictions: should have at least 3 characters; should not exceed 63 characters; must be unique within the hierarchy scope; only lowercase letters (a-z), digits (0-9), and underscores (_) are allowed; will be part of the organization\'s ERN; the ERN length must not exceed 63 characters, including the slug.
38
38
  * @type {string}
39
39
  * @memberof InviteOrgRequestDto
40
40
  */
@@ -27,4 +27,10 @@ export interface InviteUsersRequestDto {
27
27
  * @memberof InviteUsersRequestDto
28
28
  */
29
29
  'roleIds': Array<number>;
30
+ /**
31
+ * Organization associated with the users.
32
+ * @type {number}
33
+ * @memberof InviteUsersRequestDto
34
+ */
35
+ 'organizationId'?: number;
30
36
  }
@@ -33,6 +33,12 @@ export interface OrganizationClass {
33
33
  * @memberof OrganizationClass
34
34
  */
35
35
  'parentId'?: number;
36
+ /**
37
+ * Parent organization name
38
+ * @type {string}
39
+ * @memberof OrganizationClass
40
+ */
41
+ 'parentName': string;
36
42
  /**
37
43
  * Emil Resources Names (ERN) identifies the most specific owner of a resource.
38
44
  * @type {string}
@@ -17,8 +17,8 @@
17
17
  export interface RunDataReportResponseClass {
18
18
  /**
19
19
  * Report results as an array of objects (each row is an object).
20
- * @type {Array<any>}
20
+ * @type {Array<object>}
21
21
  * @memberof RunDataReportResponseClass
22
22
  */
23
- 'data': Array<any>;
23
+ 'data': Array<object>;
24
24
  }
@@ -23,7 +23,7 @@ export interface UpdateDataReportRequestDto {
23
23
  */
24
24
  'code': string;
25
25
  /**
26
- * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
26
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
27
27
  * @type {string}
28
28
  * @memberof UpdateDataReportRequestDto
29
29
  */
@@ -35,8 +35,8 @@ export interface UpdateRoleRequestDto {
35
35
  'description': string;
36
36
  /**
37
37
  * Permission ids for the role
38
- * @type {Array<string>}
38
+ * @type {Array<number>}
39
39
  * @memberof UpdateRoleRequestDto
40
40
  */
41
- 'permissionIds': Array<string>;
41
+ 'permissionIds': Array<number>;
42
42
  }