@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.
- package/.openapi-generator/FILES +0 -1
- package/README.md +2 -2
- package/api/custom-schema-api.ts +36 -22
- package/api/data-report-api.ts +50 -36
- package/api/invite-users-api.ts +32 -18
- package/api/list-organization-invitations-api.ts +32 -18
- package/api/organizations-api.ts +28 -14
- package/api/roles-api.ts +22 -22
- package/api/settings-api.ts +4 -4
- package/api/users-api.ts +32 -18
- package/base.ts +6 -1
- package/configuration.ts +1 -1
- package/dist/api/custom-schema-api.d.ts +28 -19
- package/dist/api/custom-schema-api.js +26 -20
- package/dist/api/data-report-api.d.ts +38 -29
- package/dist/api/data-report-api.js +35 -29
- package/dist/api/invite-users-api.d.ts +24 -15
- package/dist/api/invite-users-api.js +22 -16
- package/dist/api/list-organization-invitations-api.d.ts +24 -15
- package/dist/api/list-organization-invitations-api.js +22 -16
- package/dist/api/organizations-api.d.ts +20 -11
- package/dist/api/organizations-api.js +18 -12
- package/dist/api/roles-api.d.ts +22 -22
- package/dist/api/roles-api.js +13 -13
- package/dist/api/settings-api.d.ts +4 -4
- package/dist/api/settings-api.js +4 -4
- package/dist/api/users-api.d.ts +24 -15
- package/dist/api/users-api.js +22 -16
- package/dist/base.d.ts +1 -0
- package/dist/base.js +5 -1
- package/dist/configuration.js +0 -7
- package/dist/models/batch-delete-request-dto.d.ts +2 -2
- package/dist/models/create-data-report-request-dto.d.ts +1 -1
- package/dist/models/create-role-request-dto.d.ts +2 -2
- package/dist/models/custom-field-dto.d.ts +37 -4
- package/dist/models/custom-field-dto.js +5 -2
- package/dist/models/data-report-class.d.ts +1 -1
- package/dist/models/disable-users-request-dto.d.ts +2 -2
- package/dist/models/enable-users-request-dto.d.ts +2 -2
- package/dist/models/index.d.ts +0 -1
- package/dist/models/index.js +0 -1
- package/dist/models/inline-response200.d.ts +6 -6
- package/dist/models/inline-response503.d.ts +6 -6
- package/dist/models/invite-class.d.ts +7 -0
- package/dist/models/invite-org-request-dto.d.ts +1 -1
- package/dist/models/invite-users-request-dto.d.ts +6 -0
- package/dist/models/organization-class.d.ts +6 -0
- package/dist/models/run-data-report-response-class.d.ts +2 -2
- package/dist/models/update-data-report-request-dto.d.ts +1 -1
- package/dist/models/update-role-request-dto.d.ts +2 -2
- package/dist/models/user-class.d.ts +7 -6
- package/models/batch-delete-request-dto.ts +2 -2
- package/models/create-data-report-request-dto.ts +1 -1
- package/models/create-role-request-dto.ts +2 -2
- package/models/custom-field-dto.ts +38 -5
- package/models/data-report-class.ts +1 -1
- package/models/disable-users-request-dto.ts +2 -2
- package/models/enable-users-request-dto.ts +2 -2
- package/models/index.ts +0 -1
- package/models/inline-response200.ts +6 -6
- package/models/inline-response503.ts +6 -6
- package/models/invite-class.ts +7 -0
- package/models/invite-org-request-dto.ts +1 -1
- package/models/invite-users-request-dto.ts +6 -0
- package/models/organization-class.ts +6 -0
- package/models/run-data-report-response-class.ts +2 -2
- package/models/update-data-report-request-dto.ts +1 -1
- package/models/update-role-request-dto.ts +2 -2
- package/models/user-class.ts +7 -6
- package/package.json +1 -1
- package/dist/models/set-user-setting-response-class.d.ts +0 -36
- package/dist/models/set-user-setting-response-class.js +0 -15
- package/models/set-user-setting-response-class.ts +0 -42
|
@@ -29,19 +29,20 @@ import { ListOrgInvitationsResponseClass } from '../models';
|
|
|
29
29
|
export const ListOrganizationInvitationsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
30
30
|
return {
|
|
31
31
|
/**
|
|
32
|
-
* Returns a list of organization invitations you have previously created.
|
|
32
|
+
* Returns a list of organization invitations you have previously created. The organization invitations are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
33
33
|
* @summary List organization invitations
|
|
34
34
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
35
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
35
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
36
36
|
* @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
37
37
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
38
|
-
* @param {any} [search]
|
|
38
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
39
39
|
* @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.
|
|
40
40
|
* @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.
|
|
41
|
+
* @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.
|
|
41
42
|
* @param {*} [options] Override http request option.
|
|
42
43
|
* @throws {RequiredError}
|
|
43
44
|
*/
|
|
44
|
-
listOrgInvitations: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
45
|
+
listOrgInvitations: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
45
46
|
const localVarPath = `/tenantservice/v1/invitations/organizations`;
|
|
46
47
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
47
48
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -84,6 +85,10 @@ export const ListOrganizationInvitationsApiAxiosParamCreator = function (configu
|
|
|
84
85
|
localVarQueryParameter['expand'] = expand;
|
|
85
86
|
}
|
|
86
87
|
|
|
88
|
+
if (filters !== undefined) {
|
|
89
|
+
localVarQueryParameter['filters'] = filters;
|
|
90
|
+
}
|
|
91
|
+
|
|
87
92
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
88
93
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
89
94
|
}
|
|
@@ -110,20 +115,21 @@ export const ListOrganizationInvitationsApiFp = function(configuration?: Configu
|
|
|
110
115
|
const localVarAxiosParamCreator = ListOrganizationInvitationsApiAxiosParamCreator(configuration)
|
|
111
116
|
return {
|
|
112
117
|
/**
|
|
113
|
-
* Returns a list of organization invitations you have previously created.
|
|
118
|
+
* Returns a list of organization invitations you have previously created. The organization invitations are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
114
119
|
* @summary List organization invitations
|
|
115
120
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
116
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
121
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
117
122
|
* @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
118
123
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
119
|
-
* @param {any} [search]
|
|
124
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
120
125
|
* @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.
|
|
121
126
|
* @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.
|
|
127
|
+
* @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.
|
|
122
128
|
* @param {*} [options] Override http request option.
|
|
123
129
|
* @throws {RequiredError}
|
|
124
130
|
*/
|
|
125
|
-
async listOrgInvitations(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListOrgInvitationsResponseClass>> {
|
|
126
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listOrgInvitations(authorization, pageSize, pageToken, filter, search, order, expand, options);
|
|
131
|
+
async listOrgInvitations(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListOrgInvitationsResponseClass>> {
|
|
132
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listOrgInvitations(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
127
133
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
128
134
|
},
|
|
129
135
|
}
|
|
@@ -137,20 +143,21 @@ export const ListOrganizationInvitationsApiFactory = function (configuration?: C
|
|
|
137
143
|
const localVarFp = ListOrganizationInvitationsApiFp(configuration)
|
|
138
144
|
return {
|
|
139
145
|
/**
|
|
140
|
-
* Returns a list of organization invitations you have previously created.
|
|
146
|
+
* Returns a list of organization invitations you have previously created. The organization invitations are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
141
147
|
* @summary List organization invitations
|
|
142
148
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
143
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
149
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
144
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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
145
151
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
146
|
-
* @param {any} [search]
|
|
152
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
147
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.
|
|
148
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.
|
|
149
156
|
* @param {*} [options] Override http request option.
|
|
150
157
|
* @throws {RequiredError}
|
|
151
158
|
*/
|
|
152
|
-
listOrgInvitations(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListOrgInvitationsResponseClass> {
|
|
153
|
-
return localVarFp.listOrgInvitations(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
|
|
159
|
+
listOrgInvitations(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListOrgInvitationsResponseClass> {
|
|
160
|
+
return localVarFp.listOrgInvitations(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
154
161
|
},
|
|
155
162
|
};
|
|
156
163
|
};
|
|
@@ -169,7 +176,7 @@ export interface ListOrganizationInvitationsApiListOrgInvitationsRequest {
|
|
|
169
176
|
readonly authorization?: string
|
|
170
177
|
|
|
171
178
|
/**
|
|
172
|
-
* A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
179
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
173
180
|
* @type {any}
|
|
174
181
|
* @memberof ListOrganizationInvitationsApiListOrgInvitations
|
|
175
182
|
*/
|
|
@@ -190,7 +197,7 @@ export interface ListOrganizationInvitationsApiListOrgInvitationsRequest {
|
|
|
190
197
|
readonly filter?: any
|
|
191
198
|
|
|
192
199
|
/**
|
|
193
|
-
*
|
|
200
|
+
* To search the list by any field, pass search=xxx to fetch the result.
|
|
194
201
|
* @type {any}
|
|
195
202
|
* @memberof ListOrganizationInvitationsApiListOrgInvitations
|
|
196
203
|
*/
|
|
@@ -209,6 +216,13 @@ export interface ListOrganizationInvitationsApiListOrgInvitationsRequest {
|
|
|
209
216
|
* @memberof ListOrganizationInvitationsApiListOrgInvitations
|
|
210
217
|
*/
|
|
211
218
|
readonly expand?: any
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* 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.
|
|
222
|
+
* @type {any}
|
|
223
|
+
* @memberof ListOrganizationInvitationsApiListOrgInvitations
|
|
224
|
+
*/
|
|
225
|
+
readonly filters?: any
|
|
212
226
|
}
|
|
213
227
|
|
|
214
228
|
/**
|
|
@@ -219,7 +233,7 @@ export interface ListOrganizationInvitationsApiListOrgInvitationsRequest {
|
|
|
219
233
|
*/
|
|
220
234
|
export class ListOrganizationInvitationsApi extends BaseAPI {
|
|
221
235
|
/**
|
|
222
|
-
* Returns a list of organization invitations you have previously created.
|
|
236
|
+
* Returns a list of organization invitations you have previously created. The organization invitations are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
223
237
|
* @summary List organization invitations
|
|
224
238
|
* @param {ListOrganizationInvitationsApiListOrgInvitationsRequest} requestParameters Request parameters.
|
|
225
239
|
* @param {*} [options] Override http request option.
|
|
@@ -227,6 +241,6 @@ export class ListOrganizationInvitationsApi extends BaseAPI {
|
|
|
227
241
|
* @memberof ListOrganizationInvitationsApi
|
|
228
242
|
*/
|
|
229
243
|
public listOrgInvitations(requestParameters: ListOrganizationInvitationsApiListOrgInvitationsRequest = {}, options?: AxiosRequestConfig) {
|
|
230
|
-
return ListOrganizationInvitationsApiFp(this.configuration).listOrgInvitations(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
244
|
+
return ListOrganizationInvitationsApiFp(this.configuration).listOrgInvitations(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
231
245
|
}
|
|
232
246
|
}
|
package/api/organizations-api.ts
CHANGED
|
@@ -83,16 +83,17 @@ export const OrganizationsApiAxiosParamCreator = function (configuration?: Confi
|
|
|
83
83
|
* This will fetch list of organizations
|
|
84
84
|
* @summary List organizations
|
|
85
85
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
86
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
86
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
87
87
|
* @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
88
88
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
89
|
-
* @param {any} [search]
|
|
89
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
90
90
|
* @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.
|
|
91
91
|
* @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.
|
|
92
|
+
* @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.
|
|
92
93
|
* @param {*} [options] Override http request option.
|
|
93
94
|
* @throws {RequiredError}
|
|
94
95
|
*/
|
|
95
|
-
listOrganizations: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
96
|
+
listOrganizations: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
96
97
|
const localVarPath = `/tenantservice/v1/organizations`;
|
|
97
98
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
98
99
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -135,6 +136,10 @@ export const OrganizationsApiAxiosParamCreator = function (configuration?: Confi
|
|
|
135
136
|
localVarQueryParameter['expand'] = expand;
|
|
136
137
|
}
|
|
137
138
|
|
|
139
|
+
if (filters !== undefined) {
|
|
140
|
+
localVarQueryParameter['filters'] = filters;
|
|
141
|
+
}
|
|
142
|
+
|
|
138
143
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
139
144
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
140
145
|
}
|
|
@@ -227,17 +232,18 @@ export const OrganizationsApiFp = function(configuration?: Configuration) {
|
|
|
227
232
|
* This will fetch list of organizations
|
|
228
233
|
* @summary List organizations
|
|
229
234
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
230
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
235
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
231
236
|
* @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
232
237
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
233
|
-
* @param {any} [search]
|
|
238
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
234
239
|
* @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.
|
|
235
240
|
* @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.
|
|
241
|
+
* @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.
|
|
236
242
|
* @param {*} [options] Override http request option.
|
|
237
243
|
* @throws {RequiredError}
|
|
238
244
|
*/
|
|
239
|
-
async listOrganizations(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListOrganizationsResponseClass>> {
|
|
240
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listOrganizations(authorization, pageSize, pageToken, filter, search, order, expand, options);
|
|
245
|
+
async listOrganizations(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListOrganizationsResponseClass>> {
|
|
246
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listOrganizations(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
241
247
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
242
248
|
},
|
|
243
249
|
/**
|
|
@@ -278,17 +284,18 @@ export const OrganizationsApiFactory = function (configuration?: Configuration,
|
|
|
278
284
|
* This will fetch list of organizations
|
|
279
285
|
* @summary List organizations
|
|
280
286
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
281
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
287
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
282
288
|
* @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
283
289
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
284
|
-
* @param {any} [search]
|
|
290
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
285
291
|
* @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.
|
|
286
292
|
* @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.
|
|
293
|
+
* @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.
|
|
287
294
|
* @param {*} [options] Override http request option.
|
|
288
295
|
* @throws {RequiredError}
|
|
289
296
|
*/
|
|
290
|
-
listOrganizations(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListOrganizationsResponseClass> {
|
|
291
|
-
return localVarFp.listOrganizations(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
|
|
297
|
+
listOrganizations(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListOrganizationsResponseClass> {
|
|
298
|
+
return localVarFp.listOrganizations(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
292
299
|
},
|
|
293
300
|
/**
|
|
294
301
|
* Update organization data
|
|
@@ -340,7 +347,7 @@ export interface OrganizationsApiListOrganizationsRequest {
|
|
|
340
347
|
readonly authorization?: string
|
|
341
348
|
|
|
342
349
|
/**
|
|
343
|
-
* A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
350
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
344
351
|
* @type {any}
|
|
345
352
|
* @memberof OrganizationsApiListOrganizations
|
|
346
353
|
*/
|
|
@@ -361,7 +368,7 @@ export interface OrganizationsApiListOrganizationsRequest {
|
|
|
361
368
|
readonly filter?: any
|
|
362
369
|
|
|
363
370
|
/**
|
|
364
|
-
*
|
|
371
|
+
* To search the list by any field, pass search=xxx to fetch the result.
|
|
365
372
|
* @type {any}
|
|
366
373
|
* @memberof OrganizationsApiListOrganizations
|
|
367
374
|
*/
|
|
@@ -380,6 +387,13 @@ export interface OrganizationsApiListOrganizationsRequest {
|
|
|
380
387
|
* @memberof OrganizationsApiListOrganizations
|
|
381
388
|
*/
|
|
382
389
|
readonly expand?: any
|
|
390
|
+
|
|
391
|
+
/**
|
|
392
|
+
* 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.
|
|
393
|
+
* @type {any}
|
|
394
|
+
* @memberof OrganizationsApiListOrganizations
|
|
395
|
+
*/
|
|
396
|
+
readonly filters?: any
|
|
383
397
|
}
|
|
384
398
|
|
|
385
399
|
/**
|
|
@@ -438,7 +452,7 @@ export class OrganizationsApi extends BaseAPI {
|
|
|
438
452
|
* @memberof OrganizationsApi
|
|
439
453
|
*/
|
|
440
454
|
public listOrganizations(requestParameters: OrganizationsApiListOrganizationsRequest = {}, options?: AxiosRequestConfig) {
|
|
441
|
-
return OrganizationsApiFp(this.configuration).listOrganizations(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
455
|
+
return OrganizationsApiFp(this.configuration).listOrganizations(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
442
456
|
}
|
|
443
457
|
|
|
444
458
|
/**
|
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.
|
|
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 {
|
|
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 {
|
|
40
|
-
* @param {
|
|
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?:
|
|
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.
|
|
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 {
|
|
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 {
|
|
121
|
-
* @param {
|
|
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?:
|
|
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.
|
|
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 {
|
|
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 {
|
|
148
|
-
* @param {
|
|
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?:
|
|
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 {
|
|
187
|
+
* @type {string}
|
|
188
188
|
* @memberof RolesApiListRoles
|
|
189
189
|
*/
|
|
190
|
-
readonly filter?:
|
|
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 {
|
|
201
|
+
* @type {string}
|
|
202
202
|
* @memberof RolesApiListRoles
|
|
203
203
|
*/
|
|
204
|
-
readonly order?:
|
|
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 {
|
|
208
|
+
* @type {string}
|
|
209
209
|
* @memberof RolesApiListRoles
|
|
210
210
|
*/
|
|
211
|
-
readonly expand?:
|
|
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.
|
|
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.
|
package/api/settings-api.ts
CHANGED
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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.
|
|
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
|
|
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=1, your subsequent call can include pageToken=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]
|
|
438
|
+
* @param {any} [search] To search the list by any field, pass search=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.
|
|
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
|
|
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=1, your subsequent call can include pageToken=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]
|
|
615
|
+
* @param {any} [search] To search the list by any field, pass search=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.
|
|
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
|
|
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=1, your subsequent call can include pageToken=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]
|
|
726
|
+
* @param {any} [search] To search the list by any field, pass search=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
|
|
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
|
-
*
|
|
963
|
+
* To search the list by any field, pass search=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.
|
|
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/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
|
|
|
@@ -101,7 +102,11 @@ export class BaseAPI {
|
|
|
101
102
|
}
|
|
102
103
|
|
|
103
104
|
selectEnvironment(env: Environment) {
|
|
104
|
-
this.
|
|
105
|
+
this.selectBasePath(env);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
selectBasePath(path: string) {
|
|
109
|
+
this.configuration.basePath = path;
|
|
105
110
|
}
|
|
106
111
|
|
|
107
112
|
async authorize(username: string, password: string): Promise<void> {
|
package/configuration.ts
CHANGED
|
@@ -50,7 +50,7 @@ export class Configuration {
|
|
|
50
50
|
* @param scopes oauth2 scope
|
|
51
51
|
* @memberof Configuration
|
|
52
52
|
*/
|
|
53
|
-
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>)
|
|
53
|
+
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
54
54
|
/**
|
|
55
55
|
* override base path
|
|
56
56
|
*
|