@emilgroup/tenant-sdk-node 1.0.3 → 1.2.1

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 (89) hide show
  1. package/.openapi-generator/FILES +2 -15
  2. package/README.md +2 -2
  3. package/api/custom-schema-api.ts +16 -16
  4. package/api/invite-organizations-api.ts +8 -8
  5. package/api/invite-users-api.ts +20 -20
  6. package/api/organizations-api.ts +128 -8
  7. package/api/users-api.ts +36 -36
  8. package/api.ts +0 -4
  9. package/base.ts +3 -3
  10. package/dist/api/custom-schema-api.d.ts +16 -16
  11. package/dist/api/custom-schema-api.js +12 -12
  12. package/dist/api/invite-organizations-api.d.ts +8 -8
  13. package/dist/api/invite-organizations-api.js +6 -6
  14. package/dist/api/invite-users-api.d.ts +20 -20
  15. package/dist/api/invite-users-api.js +15 -15
  16. package/dist/api/organizations-api.d.ts +74 -8
  17. package/dist/api/organizations-api.js +105 -6
  18. package/dist/api/users-api.d.ts +36 -36
  19. package/dist/api/users-api.js +27 -27
  20. package/dist/api.d.ts +0 -2
  21. package/dist/api.js +0 -2
  22. package/dist/base.d.ts +1 -1
  23. package/dist/base.js +3 -3
  24. package/dist/models/create-custom-schema-request-dto.d.ts +1 -0
  25. package/dist/models/create-custom-schema-request-dto.js +2 -1
  26. package/dist/models/index.d.ts +2 -13
  27. package/dist/models/index.js +2 -13
  28. package/dist/models/invite-org-request-dto.d.ts +0 -12
  29. package/dist/models/invite-org-request-dto.js +0 -6
  30. package/dist/models/org-invitation-class.d.ts +0 -12
  31. package/dist/models/org-invitation-class.js +0 -6
  32. package/dist/models/organization-class.d.ts +18 -12
  33. package/dist/models/organization-class.js +0 -6
  34. package/dist/models/update-custom-schema-request-dto.d.ts +1 -0
  35. package/dist/models/update-custom-schema-request-dto.js +2 -1
  36. package/dist/models/update-organization-request-dto-rest.d.ts +60 -0
  37. package/dist/models/{get-data-report-response-class.d.ts → update-organization-response-class.d.ts} +7 -7
  38. package/models/create-custom-schema-request-dto.ts +2 -1
  39. package/models/index.ts +2 -13
  40. package/models/invite-org-request-dto.ts +0 -15
  41. package/models/org-invitation-class.ts +0 -15
  42. package/models/organization-class.ts +18 -15
  43. package/models/update-custom-schema-request-dto.ts +2 -1
  44. package/models/update-organization-request-dto-rest.ts +66 -0
  45. package/models/{create-data-report-response-class.ts → update-organization-response-class.ts} +7 -7
  46. package/package.json +2 -2
  47. package/api/data-report-api.ts +0 -677
  48. package/api/data-report-executor-api.ts +0 -165
  49. package/dist/api/data-report-api.d.ts +0 -380
  50. package/dist/api/data-report-api.js +0 -636
  51. package/dist/api/data-report-executor-api.d.ts +0 -93
  52. package/dist/api/data-report-executor-api.js +0 -224
  53. package/dist/models/create-data-report-request-dto.d.ts +0 -61
  54. package/dist/models/create-data-report-response-class.d.ts +0 -25
  55. package/dist/models/data-report-class.d.ts +0 -79
  56. package/dist/models/data-report-class.js +0 -15
  57. package/dist/models/data-report-filter-class.d.ts +0 -72
  58. package/dist/models/data-report-filter-class.js +0 -15
  59. package/dist/models/data-report-filter-dto.d.ts +0 -48
  60. package/dist/models/data-report-filter-dto.js +0 -15
  61. package/dist/models/data-report-filter-single-value-dto.d.ts +0 -42
  62. package/dist/models/data-report-filter-single-value-dto.js +0 -15
  63. package/dist/models/data-report-filter-value-dto.d.ts +0 -31
  64. package/dist/models/data-report-filter-value-dto.js +0 -15
  65. package/dist/models/get-data-report-response-class.js +0 -15
  66. package/dist/models/list-data-reports-response-class.d.ts +0 -31
  67. package/dist/models/list-data-reports-response-class.js +0 -15
  68. package/dist/models/run-data-report-request-dto.d.ts +0 -31
  69. package/dist/models/run-data-report-request-dto.js +0 -15
  70. package/dist/models/run-data-report-response-class.d.ts +0 -24
  71. package/dist/models/run-data-report-response-class.js +0 -15
  72. package/dist/models/update-data-report-request-dto.d.ts +0 -61
  73. package/dist/models/update-data-report-request-dto.js +0 -15
  74. package/dist/models/update-data-report-response-class.d.ts +0 -25
  75. package/dist/models/update-data-report-response-class.js +0 -15
  76. package/models/create-data-report-request-dto.ts +0 -67
  77. package/models/data-report-class.ts +0 -85
  78. package/models/data-report-filter-class.ts +0 -78
  79. package/models/data-report-filter-dto.ts +0 -54
  80. package/models/data-report-filter-single-value-dto.ts +0 -48
  81. package/models/data-report-filter-value-dto.ts +0 -37
  82. package/models/get-data-report-response-class.ts +0 -31
  83. package/models/list-data-reports-response-class.ts +0 -37
  84. package/models/run-data-report-request-dto.ts +0 -37
  85. package/models/run-data-report-response-class.ts +0 -30
  86. package/models/update-data-report-request-dto.ts +0 -67
  87. package/models/update-data-report-response-class.ts +0 -31
  88. /package/dist/models/{create-data-report-request-dto.js → update-organization-request-dto-rest.js} +0 -0
  89. /package/dist/models/{create-data-report-response-class.js → update-organization-response-class.js} +0 -0
@@ -24,6 +24,10 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
24
24
  import { GetOrganizationResponseClass } from '../models';
25
25
  // @ts-ignore
26
26
  import { ListOrganizationsResponseClass } from '../models';
27
+ // @ts-ignore
28
+ import { UpdateOrganizationRequestDtoRest } from '../models';
29
+ // @ts-ignore
30
+ import { UpdateOrganizationResponseClass } from '../models';
27
31
  // URLSearchParams not necessarily used
28
32
  // @ts-ignore
29
33
  import { URL, URLSearchParams } from 'url';
@@ -38,7 +42,7 @@ export const OrganizationsApiAxiosParamCreator = function (configuration?: Confi
38
42
  * Get Organization by code
39
43
  * @summary Retrieve the Organization
40
44
  * @param {string} code
41
- * @param {string} [authorization] Bearer Token
45
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
42
46
  * @param {*} [options] Override http request option.
43
47
  * @throws {RequiredError}
44
48
  */
@@ -82,7 +86,7 @@ export const OrganizationsApiAxiosParamCreator = function (configuration?: Confi
82
86
  /**
83
87
  * This will fetch list of organizations
84
88
  * @summary List organizations
85
- * @param {string} [authorization] Bearer Token
89
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
86
90
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
87
91
  * @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
92
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -145,6 +149,57 @@ export const OrganizationsApiAxiosParamCreator = function (configuration?: Confi
145
149
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
146
150
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
147
151
 
152
+ return {
153
+ url: toPathString(localVarUrlObj),
154
+ options: localVarRequestOptions,
155
+ };
156
+ },
157
+ /**
158
+ * Update organization data
159
+ * @summary Update the Organization
160
+ * @param {string} code
161
+ * @param {UpdateOrganizationRequestDtoRest} updateOrganizationRequestDtoRest
162
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
163
+ * @param {*} [options] Override http request option.
164
+ * @throws {RequiredError}
165
+ */
166
+ updateOrganization: async (code: string, updateOrganizationRequestDtoRest: UpdateOrganizationRequestDtoRest, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
167
+ // verify required parameter 'code' is not null or undefined
168
+ assertParamExists('updateOrganization', 'code', code)
169
+ // verify required parameter 'updateOrganizationRequestDtoRest' is not null or undefined
170
+ assertParamExists('updateOrganization', 'updateOrganizationRequestDtoRest', updateOrganizationRequestDtoRest)
171
+ const localVarPath = `/tenantservice/v1/organizations/{code}`
172
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
173
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
174
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
175
+ let baseOptions;
176
+ let baseAccessToken;
177
+ if (configuration) {
178
+ baseOptions = configuration.baseOptions;
179
+ baseAccessToken = configuration.accessToken;
180
+ }
181
+
182
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
183
+ const localVarHeaderParameter = {} as any;
184
+ const localVarQueryParameter = {} as any;
185
+
186
+ // authentication bearer required
187
+ // http bearer authentication required
188
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
189
+
190
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
191
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
192
+ }
193
+
194
+
195
+
196
+ localVarHeaderParameter['Content-Type'] = 'application/json';
197
+
198
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
199
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
200
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
201
+ localVarRequestOptions.data = serializeDataIfNeeded(updateOrganizationRequestDtoRest, localVarRequestOptions, configuration)
202
+
148
203
  return {
149
204
  url: toPathString(localVarUrlObj),
150
205
  options: localVarRequestOptions,
@@ -164,7 +219,7 @@ export const OrganizationsApiFp = function(configuration?: Configuration) {
164
219
  * Get Organization by code
165
220
  * @summary Retrieve the Organization
166
221
  * @param {string} code
167
- * @param {string} [authorization] Bearer Token
222
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
168
223
  * @param {*} [options] Override http request option.
169
224
  * @throws {RequiredError}
170
225
  */
@@ -175,7 +230,7 @@ export const OrganizationsApiFp = function(configuration?: Configuration) {
175
230
  /**
176
231
  * This will fetch list of organizations
177
232
  * @summary List organizations
178
- * @param {string} [authorization] Bearer Token
233
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
179
234
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
180
235
  * @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.
181
236
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -189,6 +244,19 @@ export const OrganizationsApiFp = function(configuration?: Configuration) {
189
244
  const localVarAxiosArgs = await localVarAxiosParamCreator.listOrganizations(authorization, pageSize, pageToken, filter, search, order, expand, options);
190
245
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
191
246
  },
247
+ /**
248
+ * Update organization data
249
+ * @summary Update the Organization
250
+ * @param {string} code
251
+ * @param {UpdateOrganizationRequestDtoRest} updateOrganizationRequestDtoRest
252
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
253
+ * @param {*} [options] Override http request option.
254
+ * @throws {RequiredError}
255
+ */
256
+ async updateOrganization(code: string, updateOrganizationRequestDtoRest: UpdateOrganizationRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateOrganizationResponseClass>> {
257
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateOrganization(code, updateOrganizationRequestDtoRest, authorization, options);
258
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
259
+ },
192
260
  }
193
261
  };
194
262
 
@@ -203,7 +271,7 @@ export const OrganizationsApiFactory = function (configuration?: Configuration,
203
271
  * Get Organization by code
204
272
  * @summary Retrieve the Organization
205
273
  * @param {string} code
206
- * @param {string} [authorization] Bearer Token
274
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
207
275
  * @param {*} [options] Override http request option.
208
276
  * @throws {RequiredError}
209
277
  */
@@ -213,7 +281,7 @@ export const OrganizationsApiFactory = function (configuration?: Configuration,
213
281
  /**
214
282
  * This will fetch list of organizations
215
283
  * @summary List organizations
216
- * @param {string} [authorization] Bearer Token
284
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
217
285
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
218
286
  * @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.
219
287
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -226,6 +294,18 @@ export const OrganizationsApiFactory = function (configuration?: Configuration,
226
294
  listOrganizations(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListOrganizationsResponseClass> {
227
295
  return localVarFp.listOrganizations(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
228
296
  },
297
+ /**
298
+ * Update organization data
299
+ * @summary Update the Organization
300
+ * @param {string} code
301
+ * @param {UpdateOrganizationRequestDtoRest} updateOrganizationRequestDtoRest
302
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
303
+ * @param {*} [options] Override http request option.
304
+ * @throws {RequiredError}
305
+ */
306
+ updateOrganization(code: string, updateOrganizationRequestDtoRest: UpdateOrganizationRequestDtoRest, authorization?: string, options?: any): AxiosPromise<UpdateOrganizationResponseClass> {
307
+ return localVarFp.updateOrganization(code, updateOrganizationRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
308
+ },
229
309
  };
230
310
  };
231
311
 
@@ -243,7 +323,7 @@ export interface OrganizationsApiGetOrganizationRequest {
243
323
  readonly code: string
244
324
 
245
325
  /**
246
- * Bearer Token
326
+ * Bearer Token: provided by the login endpoint under the name accessToken.
247
327
  * @type {string}
248
328
  * @memberof OrganizationsApiGetOrganization
249
329
  */
@@ -257,7 +337,7 @@ export interface OrganizationsApiGetOrganizationRequest {
257
337
  */
258
338
  export interface OrganizationsApiListOrganizationsRequest {
259
339
  /**
260
- * Bearer Token
340
+ * Bearer Token: provided by the login endpoint under the name accessToken.
261
341
  * @type {string}
262
342
  * @memberof OrganizationsApiListOrganizations
263
343
  */
@@ -306,6 +386,34 @@ export interface OrganizationsApiListOrganizationsRequest {
306
386
  readonly expand?: any
307
387
  }
308
388
 
389
+ /**
390
+ * Request parameters for updateOrganization operation in OrganizationsApi.
391
+ * @export
392
+ * @interface OrganizationsApiUpdateOrganizationRequest
393
+ */
394
+ export interface OrganizationsApiUpdateOrganizationRequest {
395
+ /**
396
+ *
397
+ * @type {string}
398
+ * @memberof OrganizationsApiUpdateOrganization
399
+ */
400
+ readonly code: string
401
+
402
+ /**
403
+ *
404
+ * @type {UpdateOrganizationRequestDtoRest}
405
+ * @memberof OrganizationsApiUpdateOrganization
406
+ */
407
+ readonly updateOrganizationRequestDtoRest: UpdateOrganizationRequestDtoRest
408
+
409
+ /**
410
+ * Bearer Token: provided by the login endpoint under the name accessToken.
411
+ * @type {string}
412
+ * @memberof OrganizationsApiUpdateOrganization
413
+ */
414
+ readonly authorization?: string
415
+ }
416
+
309
417
  /**
310
418
  * OrganizationsApi - object-oriented interface
311
419
  * @export
@@ -336,4 +444,16 @@ export class OrganizationsApi extends BaseAPI {
336
444
  public listOrganizations(requestParameters: OrganizationsApiListOrganizationsRequest = {}, options?: AxiosRequestConfig) {
337
445
  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));
338
446
  }
447
+
448
+ /**
449
+ * Update organization data
450
+ * @summary Update the Organization
451
+ * @param {OrganizationsApiUpdateOrganizationRequest} requestParameters Request parameters.
452
+ * @param {*} [options] Override http request option.
453
+ * @throws {RequiredError}
454
+ * @memberof OrganizationsApi
455
+ */
456
+ public updateOrganization(requestParameters: OrganizationsApiUpdateOrganizationRequest, options?: AxiosRequestConfig) {
457
+ return OrganizationsApiFp(this.configuration).updateOrganization(requestParameters.code, requestParameters.updateOrganizationRequestDtoRest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
458
+ }
339
459
  }
package/api/users-api.ts CHANGED
@@ -60,7 +60,7 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
60
60
  *
61
61
  * @param {number} id
62
62
  * @param {AssignUserRolesRequestDto} assignUserRolesRequestDto
63
- * @param {string} [authorization] Bearer Token
63
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
64
64
  * @param {*} [options] Override http request option.
65
65
  * @throws {RequiredError}
66
66
  */
@@ -109,7 +109,7 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
109
109
  /**
110
110
  *
111
111
  * @param {number} id
112
- * @param {string} [authorization] Bearer Token
112
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
113
113
  * @param {*} [options] Override http request option.
114
114
  * @throws {RequiredError}
115
115
  */
@@ -153,7 +153,7 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
153
153
  /**
154
154
  *
155
155
  * @param {BatchDeleteRequestDto} batchDeleteRequestDto
156
- * @param {string} [authorization] Bearer Token
156
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
157
157
  * @param {*} [options] Override http request option.
158
158
  * @throws {RequiredError}
159
159
  */
@@ -199,7 +199,7 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
199
199
  /**
200
200
  *
201
201
  * @param {number} id
202
- * @param {string} [authorization] Bearer Token
202
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
203
203
  * @param {*} [options] Override http request option.
204
204
  * @throws {RequiredError}
205
205
  */
@@ -243,7 +243,7 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
243
243
  /**
244
244
  *
245
245
  * @param {DisableUsersRequestDto} disableUsersRequestDto
246
- * @param {string} [authorization] Bearer Token
246
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
247
247
  * @param {*} [options] Override http request option.
248
248
  * @throws {RequiredError}
249
249
  */
@@ -289,7 +289,7 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
289
289
  /**
290
290
  *
291
291
  * @param {number} id
292
- * @param {string} [authorization] Bearer Token
292
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
293
293
  * @param {*} [options] Override http request option.
294
294
  * @throws {RequiredError}
295
295
  */
@@ -333,7 +333,7 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
333
333
  /**
334
334
  *
335
335
  * @param {EnableUsersRequestDto} enableUsersRequestDto
336
- * @param {string} [authorization] Bearer Token
336
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
337
337
  * @param {*} [options] Override http request option.
338
338
  * @throws {RequiredError}
339
339
  */
@@ -380,7 +380,7 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
380
380
  *
381
381
  * @param {string} code
382
382
  * @param {string} code2 code
383
- * @param {string} [authorization] Bearer Token
383
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
384
384
  * @param {string} [expand] Fields to expand response by
385
385
  * @param {*} [options] Override http request option.
386
386
  * @throws {RequiredError}
@@ -435,7 +435,7 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
435
435
  /**
436
436
  * 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.
437
437
  * @summary List users
438
- * @param {string} [authorization] Bearer Token
438
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
439
439
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
440
440
  * @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.
441
441
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -517,7 +517,7 @@ export const UsersApiFp = function(configuration?: Configuration) {
517
517
  *
518
518
  * @param {number} id
519
519
  * @param {AssignUserRolesRequestDto} assignUserRolesRequestDto
520
- * @param {string} [authorization] Bearer Token
520
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
521
521
  * @param {*} [options] Override http request option.
522
522
  * @throws {RequiredError}
523
523
  */
@@ -528,7 +528,7 @@ export const UsersApiFp = function(configuration?: Configuration) {
528
528
  /**
529
529
  *
530
530
  * @param {number} id
531
- * @param {string} [authorization] Bearer Token
531
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
532
532
  * @param {*} [options] Override http request option.
533
533
  * @throws {RequiredError}
534
534
  */
@@ -539,7 +539,7 @@ export const UsersApiFp = function(configuration?: Configuration) {
539
539
  /**
540
540
  *
541
541
  * @param {BatchDeleteRequestDto} batchDeleteRequestDto
542
- * @param {string} [authorization] Bearer Token
542
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
543
543
  * @param {*} [options] Override http request option.
544
544
  * @throws {RequiredError}
545
545
  */
@@ -550,7 +550,7 @@ export const UsersApiFp = function(configuration?: Configuration) {
550
550
  /**
551
551
  *
552
552
  * @param {number} id
553
- * @param {string} [authorization] Bearer Token
553
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
554
554
  * @param {*} [options] Override http request option.
555
555
  * @throws {RequiredError}
556
556
  */
@@ -561,7 +561,7 @@ export const UsersApiFp = function(configuration?: Configuration) {
561
561
  /**
562
562
  *
563
563
  * @param {DisableUsersRequestDto} disableUsersRequestDto
564
- * @param {string} [authorization] Bearer Token
564
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
565
565
  * @param {*} [options] Override http request option.
566
566
  * @throws {RequiredError}
567
567
  */
@@ -572,7 +572,7 @@ export const UsersApiFp = function(configuration?: Configuration) {
572
572
  /**
573
573
  *
574
574
  * @param {number} id
575
- * @param {string} [authorization] Bearer Token
575
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
576
576
  * @param {*} [options] Override http request option.
577
577
  * @throws {RequiredError}
578
578
  */
@@ -583,7 +583,7 @@ export const UsersApiFp = function(configuration?: Configuration) {
583
583
  /**
584
584
  *
585
585
  * @param {EnableUsersRequestDto} enableUsersRequestDto
586
- * @param {string} [authorization] Bearer Token
586
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
587
587
  * @param {*} [options] Override http request option.
588
588
  * @throws {RequiredError}
589
589
  */
@@ -595,7 +595,7 @@ export const UsersApiFp = function(configuration?: Configuration) {
595
595
  *
596
596
  * @param {string} code
597
597
  * @param {string} code2 code
598
- * @param {string} [authorization] Bearer Token
598
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
599
599
  * @param {string} [expand] Fields to expand response by
600
600
  * @param {*} [options] Override http request option.
601
601
  * @throws {RequiredError}
@@ -607,7 +607,7 @@ export const UsersApiFp = function(configuration?: Configuration) {
607
607
  /**
608
608
  * Returns a list of users you have previously created. The users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
609
609
  * @summary List users
610
- * @param {string} [authorization] Bearer Token
610
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
611
611
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
612
612
  * @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.
613
613
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -635,7 +635,7 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
635
635
  *
636
636
  * @param {number} id
637
637
  * @param {AssignUserRolesRequestDto} assignUserRolesRequestDto
638
- * @param {string} [authorization] Bearer Token
638
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
639
639
  * @param {*} [options] Override http request option.
640
640
  * @throws {RequiredError}
641
641
  */
@@ -645,7 +645,7 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
645
645
  /**
646
646
  *
647
647
  * @param {number} id
648
- * @param {string} [authorization] Bearer Token
648
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
649
649
  * @param {*} [options] Override http request option.
650
650
  * @throws {RequiredError}
651
651
  */
@@ -655,7 +655,7 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
655
655
  /**
656
656
  *
657
657
  * @param {BatchDeleteRequestDto} batchDeleteRequestDto
658
- * @param {string} [authorization] Bearer Token
658
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
659
659
  * @param {*} [options] Override http request option.
660
660
  * @throws {RequiredError}
661
661
  */
@@ -665,7 +665,7 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
665
665
  /**
666
666
  *
667
667
  * @param {number} id
668
- * @param {string} [authorization] Bearer Token
668
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
669
669
  * @param {*} [options] Override http request option.
670
670
  * @throws {RequiredError}
671
671
  */
@@ -675,7 +675,7 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
675
675
  /**
676
676
  *
677
677
  * @param {DisableUsersRequestDto} disableUsersRequestDto
678
- * @param {string} [authorization] Bearer Token
678
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
679
679
  * @param {*} [options] Override http request option.
680
680
  * @throws {RequiredError}
681
681
  */
@@ -685,7 +685,7 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
685
685
  /**
686
686
  *
687
687
  * @param {number} id
688
- * @param {string} [authorization] Bearer Token
688
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
689
689
  * @param {*} [options] Override http request option.
690
690
  * @throws {RequiredError}
691
691
  */
@@ -695,7 +695,7 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
695
695
  /**
696
696
  *
697
697
  * @param {EnableUsersRequestDto} enableUsersRequestDto
698
- * @param {string} [authorization] Bearer Token
698
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
699
699
  * @param {*} [options] Override http request option.
700
700
  * @throws {RequiredError}
701
701
  */
@@ -706,7 +706,7 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
706
706
  *
707
707
  * @param {string} code
708
708
  * @param {string} code2 code
709
- * @param {string} [authorization] Bearer Token
709
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
710
710
  * @param {string} [expand] Fields to expand response by
711
711
  * @param {*} [options] Override http request option.
712
712
  * @throws {RequiredError}
@@ -717,7 +717,7 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
717
717
  /**
718
718
  * 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.
719
719
  * @summary List users
720
- * @param {string} [authorization] Bearer Token
720
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
721
721
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
722
722
  * @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.
723
723
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -754,7 +754,7 @@ export interface UsersApiAssignUserRolesRequest {
754
754
  readonly assignUserRolesRequestDto: AssignUserRolesRequestDto
755
755
 
756
756
  /**
757
- * Bearer Token
757
+ * Bearer Token: provided by the login endpoint under the name accessToken.
758
758
  * @type {string}
759
759
  * @memberof UsersApiAssignUserRoles
760
760
  */
@@ -775,7 +775,7 @@ export interface UsersApiDeleteUserRequest {
775
775
  readonly id: number
776
776
 
777
777
  /**
778
- * Bearer Token
778
+ * Bearer Token: provided by the login endpoint under the name accessToken.
779
779
  * @type {string}
780
780
  * @memberof UsersApiDeleteUser
781
781
  */
@@ -796,7 +796,7 @@ export interface UsersApiDeleteUsersRequest {
796
796
  readonly batchDeleteRequestDto: BatchDeleteRequestDto
797
797
 
798
798
  /**
799
- * Bearer Token
799
+ * Bearer Token: provided by the login endpoint under the name accessToken.
800
800
  * @type {string}
801
801
  * @memberof UsersApiDeleteUsers
802
802
  */
@@ -817,7 +817,7 @@ export interface UsersApiDisableUserRequest {
817
817
  readonly id: number
818
818
 
819
819
  /**
820
- * Bearer Token
820
+ * Bearer Token: provided by the login endpoint under the name accessToken.
821
821
  * @type {string}
822
822
  * @memberof UsersApiDisableUser
823
823
  */
@@ -838,7 +838,7 @@ export interface UsersApiDisableUsersRequest {
838
838
  readonly disableUsersRequestDto: DisableUsersRequestDto
839
839
 
840
840
  /**
841
- * Bearer Token
841
+ * Bearer Token: provided by the login endpoint under the name accessToken.
842
842
  * @type {string}
843
843
  * @memberof UsersApiDisableUsers
844
844
  */
@@ -859,7 +859,7 @@ export interface UsersApiEnableUserRequest {
859
859
  readonly id: number
860
860
 
861
861
  /**
862
- * Bearer Token
862
+ * Bearer Token: provided by the login endpoint under the name accessToken.
863
863
  * @type {string}
864
864
  * @memberof UsersApiEnableUser
865
865
  */
@@ -880,7 +880,7 @@ export interface UsersApiEnableUsersRequest {
880
880
  readonly enableUsersRequestDto: EnableUsersRequestDto
881
881
 
882
882
  /**
883
- * Bearer Token
883
+ * Bearer Token: provided by the login endpoint under the name accessToken.
884
884
  * @type {string}
885
885
  * @memberof UsersApiEnableUsers
886
886
  */
@@ -908,7 +908,7 @@ export interface UsersApiGetUserRequest {
908
908
  readonly code2: string
909
909
 
910
910
  /**
911
- * Bearer Token
911
+ * Bearer Token: provided by the login endpoint under the name accessToken.
912
912
  * @type {string}
913
913
  * @memberof UsersApiGetUser
914
914
  */
@@ -929,7 +929,7 @@ export interface UsersApiGetUserRequest {
929
929
  */
930
930
  export interface UsersApiListUsersRequest {
931
931
  /**
932
- * Bearer Token
932
+ * Bearer Token: provided by the login endpoint under the name accessToken.
933
933
  * @type {string}
934
934
  * @memberof UsersApiListUsers
935
935
  */
package/api.ts CHANGED
@@ -25,8 +25,6 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
25
25
  // @ts-ignore
26
26
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
27
27
  import { CustomSchemaApi } from './api';
28
- import { DataReportApi } from './api';
29
- import { DataReportExecutorApi } from './api';
30
28
  import { InviteOrganizationsApi } from './api';
31
29
  import { InviteUsersApi } from './api';
32
30
  import { OrganizationsApi } from './api';
@@ -34,8 +32,6 @@ import { UsersApi } from './api';
34
32
 
35
33
 
36
34
  export * from './api/custom-schema-api';
37
- export * from './api/data-report-api';
38
- export * from './api/data-report-executor-api';
39
35
  export * from './api/invite-organizations-api';
40
36
  export * from './api/invite-users-api';
41
37
  export * from './api/organizations-api';
package/base.ts CHANGED
@@ -170,7 +170,7 @@ export class BaseAPI {
170
170
  this.configuration.refreshToken = refreshToken;
171
171
  }
172
172
 
173
- async refreshTokenIntenal(): Promise<string> {
173
+ async refreshTokenInternal(): Promise<string> {
174
174
  const { username, refreshToken } = this.configuration;
175
175
 
176
176
 
@@ -220,7 +220,7 @@ export class BaseAPI {
220
220
  if (err.response.status === 401 && !originalConfig._retry) {
221
221
  originalConfig._retry = true;
222
222
  try {
223
- const tokenString = await this.refreshTokenIntenal();
223
+ const tokenString = await this.refreshTokenInternal();
224
224
  const accessToken = `Bearer ${tokenString}`;
225
225
 
226
226
  originalConfig.headers['Authorization'] = `Bearer ${accessToken}`
@@ -245,7 +245,7 @@ export class BaseAPI {
245
245
  ){
246
246
  _retry_count++;
247
247
  try {
248
- const tokenString = await this.refreshTokenIntenal();
248
+ const tokenString = await this.refreshTokenInternal();
249
249
  const accessToken = `Bearer ${tokenString}`;
250
250
 
251
251
  _retry = true;