@rasadov/lumoar-sdk 1.2.8 → 1.3.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 +2 -0
- package/api.ts +328 -64
- package/dist/api.d.ts +239 -59
- package/dist/api.js +206 -38
- package/docs/ReportBase.md +8 -0
- package/docs/ReportGenerate.md +2 -0
- package/docs/ReportsApi.md +59 -0
- package/docs/RolesApi.md +6 -0
- package/docs/SchedulerResponse.md +23 -0
- package/docs/TaskStatusResponse.md +29 -0
- package/docs/TasksApi.md +61 -2
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -1427,6 +1427,30 @@ export interface ReportBase {
|
|
|
1427
1427
|
* @memberof ReportBase
|
|
1428
1428
|
*/
|
|
1429
1429
|
'share_expiration'?: string | null;
|
|
1430
|
+
/**
|
|
1431
|
+
*
|
|
1432
|
+
* @type {number}
|
|
1433
|
+
* @memberof ReportBase
|
|
1434
|
+
*/
|
|
1435
|
+
'file_size'?: number | null;
|
|
1436
|
+
/**
|
|
1437
|
+
*
|
|
1438
|
+
* @type {string}
|
|
1439
|
+
* @memberof ReportBase
|
|
1440
|
+
*/
|
|
1441
|
+
'file_type'?: string | null;
|
|
1442
|
+
/**
|
|
1443
|
+
*
|
|
1444
|
+
* @type {string}
|
|
1445
|
+
* @memberof ReportBase
|
|
1446
|
+
*/
|
|
1447
|
+
'checksum'?: string | null;
|
|
1448
|
+
/**
|
|
1449
|
+
*
|
|
1450
|
+
* @type {ReportType}
|
|
1451
|
+
* @memberof ReportBase
|
|
1452
|
+
*/
|
|
1453
|
+
'report_type': ReportType;
|
|
1430
1454
|
/**
|
|
1431
1455
|
*
|
|
1432
1456
|
* @type {string}
|
|
@@ -1440,6 +1464,8 @@ export interface ReportBase {
|
|
|
1440
1464
|
*/
|
|
1441
1465
|
'created_at': string;
|
|
1442
1466
|
}
|
|
1467
|
+
|
|
1468
|
+
|
|
1443
1469
|
/**
|
|
1444
1470
|
*
|
|
1445
1471
|
* @export
|
|
@@ -1452,6 +1478,12 @@ export interface ReportGenerate {
|
|
|
1452
1478
|
* @memberof ReportGenerate
|
|
1453
1479
|
*/
|
|
1454
1480
|
'report_id': string;
|
|
1481
|
+
/**
|
|
1482
|
+
*
|
|
1483
|
+
* @type {string}
|
|
1484
|
+
* @memberof ReportGenerate
|
|
1485
|
+
*/
|
|
1486
|
+
'task_id'?: string | null;
|
|
1455
1487
|
}
|
|
1456
1488
|
/**
|
|
1457
1489
|
*
|
|
@@ -1610,6 +1642,25 @@ export interface SchedulerRequest {
|
|
|
1610
1642
|
*/
|
|
1611
1643
|
'user_ids_to_assign'?: Array<string>;
|
|
1612
1644
|
}
|
|
1645
|
+
/**
|
|
1646
|
+
* Response schema for task scheduler request
|
|
1647
|
+
* @export
|
|
1648
|
+
* @interface SchedulerResponse
|
|
1649
|
+
*/
|
|
1650
|
+
export interface SchedulerResponse {
|
|
1651
|
+
/**
|
|
1652
|
+
*
|
|
1653
|
+
* @type {string}
|
|
1654
|
+
* @memberof SchedulerResponse
|
|
1655
|
+
*/
|
|
1656
|
+
'task_id': string;
|
|
1657
|
+
/**
|
|
1658
|
+
*
|
|
1659
|
+
* @type {string}
|
|
1660
|
+
* @memberof SchedulerResponse
|
|
1661
|
+
*/
|
|
1662
|
+
'details'?: string;
|
|
1663
|
+
}
|
|
1613
1664
|
/**
|
|
1614
1665
|
*
|
|
1615
1666
|
* @export
|
|
@@ -1752,6 +1803,43 @@ export const TaskStatus = {
|
|
|
1752
1803
|
export type TaskStatus = typeof TaskStatus[keyof typeof TaskStatus];
|
|
1753
1804
|
|
|
1754
1805
|
|
|
1806
|
+
/**
|
|
1807
|
+
* Response schema for checking Celery task status
|
|
1808
|
+
* @export
|
|
1809
|
+
* @interface TaskStatusResponse
|
|
1810
|
+
*/
|
|
1811
|
+
export interface TaskStatusResponse {
|
|
1812
|
+
/**
|
|
1813
|
+
*
|
|
1814
|
+
* @type {string}
|
|
1815
|
+
* @memberof TaskStatusResponse
|
|
1816
|
+
*/
|
|
1817
|
+
'task_id': string;
|
|
1818
|
+
/**
|
|
1819
|
+
*
|
|
1820
|
+
* @type {string}
|
|
1821
|
+
* @memberof TaskStatusResponse
|
|
1822
|
+
*/
|
|
1823
|
+
'status': string;
|
|
1824
|
+
/**
|
|
1825
|
+
*
|
|
1826
|
+
* @type {{ [key: string]: any; }}
|
|
1827
|
+
* @memberof TaskStatusResponse
|
|
1828
|
+
*/
|
|
1829
|
+
'result'?: { [key: string]: any; } | null;
|
|
1830
|
+
/**
|
|
1831
|
+
*
|
|
1832
|
+
* @type {string}
|
|
1833
|
+
* @memberof TaskStatusResponse
|
|
1834
|
+
*/
|
|
1835
|
+
'error'?: string | null;
|
|
1836
|
+
/**
|
|
1837
|
+
*
|
|
1838
|
+
* @type {{ [key: string]: any; }}
|
|
1839
|
+
* @memberof TaskStatusResponse
|
|
1840
|
+
*/
|
|
1841
|
+
'progress'?: { [key: string]: any; } | null;
|
|
1842
|
+
}
|
|
1755
1843
|
/**
|
|
1756
1844
|
*
|
|
1757
1845
|
* @export
|
|
@@ -3271,13 +3359,13 @@ export const CompanyApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
3271
3359
|
/**
|
|
3272
3360
|
*
|
|
3273
3361
|
* @summary Get Company
|
|
3274
|
-
* @param {string} companyId
|
|
3362
|
+
* @param {string | null} companyId
|
|
3275
3363
|
* @param {string} [authorization]
|
|
3276
3364
|
* @param {string} [sessionId]
|
|
3277
3365
|
* @param {*} [options] Override http request option.
|
|
3278
3366
|
* @throws {RequiredError}
|
|
3279
3367
|
*/
|
|
3280
|
-
getCompanyV1CompanyGetCompanyIdGet: async (companyId: string, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3368
|
+
getCompanyV1CompanyGetCompanyIdGet: async (companyId: string | null, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3281
3369
|
// verify required parameter 'companyId' is not null or undefined
|
|
3282
3370
|
assertParamExists('getCompanyV1CompanyGetCompanyIdGet', 'companyId', companyId)
|
|
3283
3371
|
const localVarPath = `/v1/company/get/{company_id}`
|
|
@@ -3310,13 +3398,13 @@ export const CompanyApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
3310
3398
|
/**
|
|
3311
3399
|
*
|
|
3312
3400
|
* @summary Get Company With Controls
|
|
3313
|
-
* @param {string} companyId
|
|
3401
|
+
* @param {string | null} companyId
|
|
3314
3402
|
* @param {string} [authorization]
|
|
3315
3403
|
* @param {string} [sessionId]
|
|
3316
3404
|
* @param {*} [options] Override http request option.
|
|
3317
3405
|
* @throws {RequiredError}
|
|
3318
3406
|
*/
|
|
3319
|
-
getCompanyWithControlsV1CompanyControlsCompanyIdGet: async (companyId: string, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3407
|
+
getCompanyWithControlsV1CompanyControlsCompanyIdGet: async (companyId: string | null, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3320
3408
|
// verify required parameter 'companyId' is not null or undefined
|
|
3321
3409
|
assertParamExists('getCompanyWithControlsV1CompanyControlsCompanyIdGet', 'companyId', companyId)
|
|
3322
3410
|
const localVarPath = `/v1/company/controls/{company_id}`
|
|
@@ -3431,13 +3519,13 @@ export const CompanyApiFp = function(configuration?: Configuration) {
|
|
|
3431
3519
|
/**
|
|
3432
3520
|
*
|
|
3433
3521
|
* @summary Get Company
|
|
3434
|
-
* @param {string} companyId
|
|
3522
|
+
* @param {string | null} companyId
|
|
3435
3523
|
* @param {string} [authorization]
|
|
3436
3524
|
* @param {string} [sessionId]
|
|
3437
3525
|
* @param {*} [options] Override http request option.
|
|
3438
3526
|
* @throws {RequiredError}
|
|
3439
3527
|
*/
|
|
3440
|
-
async getCompanyV1CompanyGetCompanyIdGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompanyWithRoles>> {
|
|
3528
|
+
async getCompanyV1CompanyGetCompanyIdGet(companyId: string | null, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompanyWithRoles>> {
|
|
3441
3529
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getCompanyV1CompanyGetCompanyIdGet(companyId, authorization, sessionId, options);
|
|
3442
3530
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3443
3531
|
const localVarOperationServerBasePath = operationServerMap['CompanyApi.getCompanyV1CompanyGetCompanyIdGet']?.[localVarOperationServerIndex]?.url;
|
|
@@ -3446,13 +3534,13 @@ export const CompanyApiFp = function(configuration?: Configuration) {
|
|
|
3446
3534
|
/**
|
|
3447
3535
|
*
|
|
3448
3536
|
* @summary Get Company With Controls
|
|
3449
|
-
* @param {string} companyId
|
|
3537
|
+
* @param {string | null} companyId
|
|
3450
3538
|
* @param {string} [authorization]
|
|
3451
3539
|
* @param {string} [sessionId]
|
|
3452
3540
|
* @param {*} [options] Override http request option.
|
|
3453
3541
|
* @throws {RequiredError}
|
|
3454
3542
|
*/
|
|
3455
|
-
async getCompanyWithControlsV1CompanyControlsCompanyIdGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompanyWithControls>> {
|
|
3543
|
+
async getCompanyWithControlsV1CompanyControlsCompanyIdGet(companyId: string | null, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompanyWithControls>> {
|
|
3456
3544
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getCompanyWithControlsV1CompanyControlsCompanyIdGet(companyId, authorization, sessionId, options);
|
|
3457
3545
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3458
3546
|
const localVarOperationServerBasePath = operationServerMap['CompanyApi.getCompanyWithControlsV1CompanyControlsCompanyIdGet']?.[localVarOperationServerIndex]?.url;
|
|
@@ -3511,25 +3599,25 @@ export const CompanyApiFactory = function (configuration?: Configuration, basePa
|
|
|
3511
3599
|
/**
|
|
3512
3600
|
*
|
|
3513
3601
|
* @summary Get Company
|
|
3514
|
-
* @param {string} companyId
|
|
3602
|
+
* @param {string | null} companyId
|
|
3515
3603
|
* @param {string} [authorization]
|
|
3516
3604
|
* @param {string} [sessionId]
|
|
3517
3605
|
* @param {*} [options] Override http request option.
|
|
3518
3606
|
* @throws {RequiredError}
|
|
3519
3607
|
*/
|
|
3520
|
-
getCompanyV1CompanyGetCompanyIdGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<CompanyWithRoles> {
|
|
3608
|
+
getCompanyV1CompanyGetCompanyIdGet(companyId: string | null, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<CompanyWithRoles> {
|
|
3521
3609
|
return localVarFp.getCompanyV1CompanyGetCompanyIdGet(companyId, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
3522
3610
|
},
|
|
3523
3611
|
/**
|
|
3524
3612
|
*
|
|
3525
3613
|
* @summary Get Company With Controls
|
|
3526
|
-
* @param {string} companyId
|
|
3614
|
+
* @param {string | null} companyId
|
|
3527
3615
|
* @param {string} [authorization]
|
|
3528
3616
|
* @param {string} [sessionId]
|
|
3529
3617
|
* @param {*} [options] Override http request option.
|
|
3530
3618
|
* @throws {RequiredError}
|
|
3531
3619
|
*/
|
|
3532
|
-
getCompanyWithControlsV1CompanyControlsCompanyIdGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<CompanyWithControls> {
|
|
3620
|
+
getCompanyWithControlsV1CompanyControlsCompanyIdGet(companyId: string | null, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<CompanyWithControls> {
|
|
3533
3621
|
return localVarFp.getCompanyWithControlsV1CompanyControlsCompanyIdGet(companyId, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
3534
3622
|
},
|
|
3535
3623
|
/**
|
|
@@ -3586,28 +3674,28 @@ export class CompanyApi extends BaseAPI {
|
|
|
3586
3674
|
/**
|
|
3587
3675
|
*
|
|
3588
3676
|
* @summary Get Company
|
|
3589
|
-
* @param {string} companyId
|
|
3677
|
+
* @param {string | null} companyId
|
|
3590
3678
|
* @param {string} [authorization]
|
|
3591
3679
|
* @param {string} [sessionId]
|
|
3592
3680
|
* @param {*} [options] Override http request option.
|
|
3593
3681
|
* @throws {RequiredError}
|
|
3594
3682
|
* @memberof CompanyApi
|
|
3595
3683
|
*/
|
|
3596
|
-
public getCompanyV1CompanyGetCompanyIdGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
|
|
3684
|
+
public getCompanyV1CompanyGetCompanyIdGet(companyId: string | null, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
|
|
3597
3685
|
return CompanyApiFp(this.configuration).getCompanyV1CompanyGetCompanyIdGet(companyId, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
3598
3686
|
}
|
|
3599
3687
|
|
|
3600
3688
|
/**
|
|
3601
3689
|
*
|
|
3602
3690
|
* @summary Get Company With Controls
|
|
3603
|
-
* @param {string} companyId
|
|
3691
|
+
* @param {string | null} companyId
|
|
3604
3692
|
* @param {string} [authorization]
|
|
3605
3693
|
* @param {string} [sessionId]
|
|
3606
3694
|
* @param {*} [options] Override http request option.
|
|
3607
3695
|
* @throws {RequiredError}
|
|
3608
3696
|
* @memberof CompanyApi
|
|
3609
3697
|
*/
|
|
3610
|
-
public getCompanyWithControlsV1CompanyControlsCompanyIdGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
|
|
3698
|
+
public getCompanyWithControlsV1CompanyControlsCompanyIdGet(companyId: string | null, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
|
|
3611
3699
|
return CompanyApiFp(this.configuration).getCompanyWithControlsV1CompanyControlsCompanyIdGet(companyId, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
3612
3700
|
}
|
|
3613
3701
|
|
|
@@ -3961,13 +4049,13 @@ export const EvidenceApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
3961
4049
|
/**
|
|
3962
4050
|
*
|
|
3963
4051
|
* @summary List Company Evidence
|
|
3964
|
-
* @param {string} companyId
|
|
4052
|
+
* @param {string | null} companyId
|
|
3965
4053
|
* @param {string} [authorization]
|
|
3966
4054
|
* @param {string} [sessionId]
|
|
3967
4055
|
* @param {*} [options] Override http request option.
|
|
3968
4056
|
* @throws {RequiredError}
|
|
3969
4057
|
*/
|
|
3970
|
-
listCompanyEvidenceV1EvidenceCompanyCompanyIdGet: async (companyId: string, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4058
|
+
listCompanyEvidenceV1EvidenceCompanyCompanyIdGet: async (companyId: string | null, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3971
4059
|
// verify required parameter 'companyId' is not null or undefined
|
|
3972
4060
|
assertParamExists('listCompanyEvidenceV1EvidenceCompanyCompanyIdGet', 'companyId', companyId)
|
|
3973
4061
|
const localVarPath = `/v1/evidence/company/{company_id}`
|
|
@@ -4177,13 +4265,13 @@ export const EvidenceApiFp = function(configuration?: Configuration) {
|
|
|
4177
4265
|
/**
|
|
4178
4266
|
*
|
|
4179
4267
|
* @summary List Company Evidence
|
|
4180
|
-
* @param {string} companyId
|
|
4268
|
+
* @param {string | null} companyId
|
|
4181
4269
|
* @param {string} [authorization]
|
|
4182
4270
|
* @param {string} [sessionId]
|
|
4183
4271
|
* @param {*} [options] Override http request option.
|
|
4184
4272
|
* @throws {RequiredError}
|
|
4185
4273
|
*/
|
|
4186
|
-
async listCompanyEvidenceV1EvidenceCompanyCompanyIdGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<EvidenceBase>>> {
|
|
4274
|
+
async listCompanyEvidenceV1EvidenceCompanyCompanyIdGet(companyId: string | null, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<EvidenceBase>>> {
|
|
4187
4275
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listCompanyEvidenceV1EvidenceCompanyCompanyIdGet(companyId, authorization, sessionId, options);
|
|
4188
4276
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4189
4277
|
const localVarOperationServerBasePath = operationServerMap['EvidenceApi.listCompanyEvidenceV1EvidenceCompanyCompanyIdGet']?.[localVarOperationServerIndex]?.url;
|
|
@@ -4272,13 +4360,13 @@ export const EvidenceApiFactory = function (configuration?: Configuration, baseP
|
|
|
4272
4360
|
/**
|
|
4273
4361
|
*
|
|
4274
4362
|
* @summary List Company Evidence
|
|
4275
|
-
* @param {string} companyId
|
|
4363
|
+
* @param {string | null} companyId
|
|
4276
4364
|
* @param {string} [authorization]
|
|
4277
4365
|
* @param {string} [sessionId]
|
|
4278
4366
|
* @param {*} [options] Override http request option.
|
|
4279
4367
|
* @throws {RequiredError}
|
|
4280
4368
|
*/
|
|
4281
|
-
listCompanyEvidenceV1EvidenceCompanyCompanyIdGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<EvidenceBase>> {
|
|
4369
|
+
listCompanyEvidenceV1EvidenceCompanyCompanyIdGet(companyId: string | null, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<EvidenceBase>> {
|
|
4282
4370
|
return localVarFp.listCompanyEvidenceV1EvidenceCompanyCompanyIdGet(companyId, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
4283
4371
|
},
|
|
4284
4372
|
/**
|
|
@@ -4364,14 +4452,14 @@ export class EvidenceApi extends BaseAPI {
|
|
|
4364
4452
|
/**
|
|
4365
4453
|
*
|
|
4366
4454
|
* @summary List Company Evidence
|
|
4367
|
-
* @param {string} companyId
|
|
4455
|
+
* @param {string | null} companyId
|
|
4368
4456
|
* @param {string} [authorization]
|
|
4369
4457
|
* @param {string} [sessionId]
|
|
4370
4458
|
* @param {*} [options] Override http request option.
|
|
4371
4459
|
* @throws {RequiredError}
|
|
4372
4460
|
* @memberof EvidenceApi
|
|
4373
4461
|
*/
|
|
4374
|
-
public listCompanyEvidenceV1EvidenceCompanyCompanyIdGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
|
|
4462
|
+
public listCompanyEvidenceV1EvidenceCompanyCompanyIdGet(companyId: string | null, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
|
|
4375
4463
|
return EvidenceApiFp(this.configuration).listCompanyEvidenceV1EvidenceCompanyCompanyIdGet(companyId, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
4376
4464
|
}
|
|
4377
4465
|
|
|
@@ -5239,6 +5327,45 @@ export const ReportsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
5239
5327
|
|
|
5240
5328
|
|
|
5241
5329
|
|
|
5330
|
+
if (authorization != null) {
|
|
5331
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
5332
|
+
}
|
|
5333
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5334
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5335
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5336
|
+
|
|
5337
|
+
return {
|
|
5338
|
+
url: toPathString(localVarUrlObj),
|
|
5339
|
+
options: localVarRequestOptions,
|
|
5340
|
+
};
|
|
5341
|
+
},
|
|
5342
|
+
/**
|
|
5343
|
+
* Check the status of a report generation background job
|
|
5344
|
+
* @summary Get Report Generation Status
|
|
5345
|
+
* @param {string} taskId
|
|
5346
|
+
* @param {string} [authorization]
|
|
5347
|
+
* @param {string} [sessionId]
|
|
5348
|
+
* @param {*} [options] Override http request option.
|
|
5349
|
+
* @throws {RequiredError}
|
|
5350
|
+
*/
|
|
5351
|
+
getReportGenerationStatusV1ReportsGenerateTaskIdStatusGet: async (taskId: string, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5352
|
+
// verify required parameter 'taskId' is not null or undefined
|
|
5353
|
+
assertParamExists('getReportGenerationStatusV1ReportsGenerateTaskIdStatusGet', 'taskId', taskId)
|
|
5354
|
+
const localVarPath = `/v1/reports/generate/{task_id}/status`
|
|
5355
|
+
.replace(`{${"task_id"}}`, encodeURIComponent(String(taskId)));
|
|
5356
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5357
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5358
|
+
let baseOptions;
|
|
5359
|
+
if (configuration) {
|
|
5360
|
+
baseOptions = configuration.baseOptions;
|
|
5361
|
+
}
|
|
5362
|
+
|
|
5363
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
5364
|
+
const localVarHeaderParameter = {} as any;
|
|
5365
|
+
const localVarQueryParameter = {} as any;
|
|
5366
|
+
|
|
5367
|
+
|
|
5368
|
+
|
|
5242
5369
|
if (authorization != null) {
|
|
5243
5370
|
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
5244
5371
|
}
|
|
@@ -5254,7 +5381,7 @@ export const ReportsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
5254
5381
|
/**
|
|
5255
5382
|
*
|
|
5256
5383
|
* @summary List Reports
|
|
5257
|
-
* @param {string} companyId
|
|
5384
|
+
* @param {string | null} companyId
|
|
5258
5385
|
* @param {number} [page]
|
|
5259
5386
|
* @param {number} [elements]
|
|
5260
5387
|
* @param {string} [authorization]
|
|
@@ -5262,7 +5389,7 @@ export const ReportsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
5262
5389
|
* @param {*} [options] Override http request option.
|
|
5263
5390
|
* @throws {RequiredError}
|
|
5264
5391
|
*/
|
|
5265
|
-
listReportsV1ReportsListCompanyIdGet: async (companyId: string, page?: number, elements?: number, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5392
|
+
listReportsV1ReportsListCompanyIdGet: async (companyId: string | null, page?: number, elements?: number, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5266
5393
|
// verify required parameter 'companyId' is not null or undefined
|
|
5267
5394
|
assertParamExists('listReportsV1ReportsListCompanyIdGet', 'companyId', companyId)
|
|
5268
5395
|
const localVarPath = `/v1/reports/list/{company_id}`
|
|
@@ -5358,10 +5485,25 @@ export const ReportsApiFp = function(configuration?: Configuration) {
|
|
|
5358
5485
|
const localVarOperationServerBasePath = operationServerMap['ReportsApi.getEvidenceV1ReportsEvidenceReportIdEvidenceIdGet']?.[localVarOperationServerIndex]?.url;
|
|
5359
5486
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5360
5487
|
},
|
|
5488
|
+
/**
|
|
5489
|
+
* Check the status of a report generation background job
|
|
5490
|
+
* @summary Get Report Generation Status
|
|
5491
|
+
* @param {string} taskId
|
|
5492
|
+
* @param {string} [authorization]
|
|
5493
|
+
* @param {string} [sessionId]
|
|
5494
|
+
* @param {*} [options] Override http request option.
|
|
5495
|
+
* @throws {RequiredError}
|
|
5496
|
+
*/
|
|
5497
|
+
async getReportGenerationStatusV1ReportsGenerateTaskIdStatusGet(taskId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TaskStatusResponse>> {
|
|
5498
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getReportGenerationStatusV1ReportsGenerateTaskIdStatusGet(taskId, authorization, sessionId, options);
|
|
5499
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5500
|
+
const localVarOperationServerBasePath = operationServerMap['ReportsApi.getReportGenerationStatusV1ReportsGenerateTaskIdStatusGet']?.[localVarOperationServerIndex]?.url;
|
|
5501
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5502
|
+
},
|
|
5361
5503
|
/**
|
|
5362
5504
|
*
|
|
5363
5505
|
* @summary List Reports
|
|
5364
|
-
* @param {string} companyId
|
|
5506
|
+
* @param {string | null} companyId
|
|
5365
5507
|
* @param {number} [page]
|
|
5366
5508
|
* @param {number} [elements]
|
|
5367
5509
|
* @param {string} [authorization]
|
|
@@ -5369,7 +5511,7 @@ export const ReportsApiFp = function(configuration?: Configuration) {
|
|
|
5369
5511
|
* @param {*} [options] Override http request option.
|
|
5370
5512
|
* @throws {RequiredError}
|
|
5371
5513
|
*/
|
|
5372
|
-
async listReportsV1ReportsListCompanyIdGet(companyId: string, page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaginationResponseReportBase>> {
|
|
5514
|
+
async listReportsV1ReportsListCompanyIdGet(companyId: string | null, page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaginationResponseReportBase>> {
|
|
5373
5515
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listReportsV1ReportsListCompanyIdGet(companyId, page, elements, authorization, sessionId, options);
|
|
5374
5516
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5375
5517
|
const localVarOperationServerBasePath = operationServerMap['ReportsApi.listReportsV1ReportsListCompanyIdGet']?.[localVarOperationServerIndex]?.url;
|
|
@@ -5424,10 +5566,22 @@ export const ReportsApiFactory = function (configuration?: Configuration, basePa
|
|
|
5424
5566
|
getEvidenceV1ReportsEvidenceReportIdEvidenceIdGet(reportId: string, evidenceId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<FileDownload>> {
|
|
5425
5567
|
return localVarFp.getEvidenceV1ReportsEvidenceReportIdEvidenceIdGet(reportId, evidenceId, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
5426
5568
|
},
|
|
5569
|
+
/**
|
|
5570
|
+
* Check the status of a report generation background job
|
|
5571
|
+
* @summary Get Report Generation Status
|
|
5572
|
+
* @param {string} taskId
|
|
5573
|
+
* @param {string} [authorization]
|
|
5574
|
+
* @param {string} [sessionId]
|
|
5575
|
+
* @param {*} [options] Override http request option.
|
|
5576
|
+
* @throws {RequiredError}
|
|
5577
|
+
*/
|
|
5578
|
+
getReportGenerationStatusV1ReportsGenerateTaskIdStatusGet(taskId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<TaskStatusResponse> {
|
|
5579
|
+
return localVarFp.getReportGenerationStatusV1ReportsGenerateTaskIdStatusGet(taskId, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
5580
|
+
},
|
|
5427
5581
|
/**
|
|
5428
5582
|
*
|
|
5429
5583
|
* @summary List Reports
|
|
5430
|
-
* @param {string} companyId
|
|
5584
|
+
* @param {string | null} companyId
|
|
5431
5585
|
* @param {number} [page]
|
|
5432
5586
|
* @param {number} [elements]
|
|
5433
5587
|
* @param {string} [authorization]
|
|
@@ -5435,7 +5589,7 @@ export const ReportsApiFactory = function (configuration?: Configuration, basePa
|
|
|
5435
5589
|
* @param {*} [options] Override http request option.
|
|
5436
5590
|
* @throws {RequiredError}
|
|
5437
5591
|
*/
|
|
5438
|
-
listReportsV1ReportsListCompanyIdGet(companyId: string, page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<PaginationResponseReportBase> {
|
|
5592
|
+
listReportsV1ReportsListCompanyIdGet(companyId: string | null, page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<PaginationResponseReportBase> {
|
|
5439
5593
|
return localVarFp.listReportsV1ReportsListCompanyIdGet(companyId, page, elements, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
5440
5594
|
},
|
|
5441
5595
|
};
|
|
@@ -5493,10 +5647,24 @@ export class ReportsApi extends BaseAPI {
|
|
|
5493
5647
|
return ReportsApiFp(this.configuration).getEvidenceV1ReportsEvidenceReportIdEvidenceIdGet(reportId, evidenceId, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
5494
5648
|
}
|
|
5495
5649
|
|
|
5650
|
+
/**
|
|
5651
|
+
* Check the status of a report generation background job
|
|
5652
|
+
* @summary Get Report Generation Status
|
|
5653
|
+
* @param {string} taskId
|
|
5654
|
+
* @param {string} [authorization]
|
|
5655
|
+
* @param {string} [sessionId]
|
|
5656
|
+
* @param {*} [options] Override http request option.
|
|
5657
|
+
* @throws {RequiredError}
|
|
5658
|
+
* @memberof ReportsApi
|
|
5659
|
+
*/
|
|
5660
|
+
public getReportGenerationStatusV1ReportsGenerateTaskIdStatusGet(taskId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
|
|
5661
|
+
return ReportsApiFp(this.configuration).getReportGenerationStatusV1ReportsGenerateTaskIdStatusGet(taskId, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
5662
|
+
}
|
|
5663
|
+
|
|
5496
5664
|
/**
|
|
5497
5665
|
*
|
|
5498
5666
|
* @summary List Reports
|
|
5499
|
-
* @param {string} companyId
|
|
5667
|
+
* @param {string | null} companyId
|
|
5500
5668
|
* @param {number} [page]
|
|
5501
5669
|
* @param {number} [elements]
|
|
5502
5670
|
* @param {string} [authorization]
|
|
@@ -5505,7 +5673,7 @@ export class ReportsApi extends BaseAPI {
|
|
|
5505
5673
|
* @throws {RequiredError}
|
|
5506
5674
|
* @memberof ReportsApi
|
|
5507
5675
|
*/
|
|
5508
|
-
public listReportsV1ReportsListCompanyIdGet(companyId: string, page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
|
|
5676
|
+
public listReportsV1ReportsListCompanyIdGet(companyId: string | null, page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
|
|
5509
5677
|
return ReportsApiFp(this.configuration).listReportsV1ReportsListCompanyIdGet(companyId, page, elements, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
5510
5678
|
}
|
|
5511
5679
|
}
|
|
@@ -5521,13 +5689,13 @@ export const RolesApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
5521
5689
|
/**
|
|
5522
5690
|
*
|
|
5523
5691
|
* @summary Get User Permissions
|
|
5524
|
-
* @param {string} companyId
|
|
5692
|
+
* @param {string | null} companyId
|
|
5525
5693
|
* @param {string} [authorization]
|
|
5526
5694
|
* @param {string} [sessionId]
|
|
5527
5695
|
* @param {*} [options] Override http request option.
|
|
5528
5696
|
* @throws {RequiredError}
|
|
5529
5697
|
*/
|
|
5530
|
-
getUserPermissionsV1RolesCompanyIdMeGet: async (companyId: string, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5698
|
+
getUserPermissionsV1RolesCompanyIdMeGet: async (companyId: string | null, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5531
5699
|
// verify required parameter 'companyId' is not null or undefined
|
|
5532
5700
|
assertParamExists('getUserPermissionsV1RolesCompanyIdMeGet', 'companyId', companyId)
|
|
5533
5701
|
const localVarPath = `/v1/roles/{company_id}/me`
|
|
@@ -5560,13 +5728,13 @@ export const RolesApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
5560
5728
|
/**
|
|
5561
5729
|
*
|
|
5562
5730
|
* @summary Get Users
|
|
5563
|
-
* @param {string} companyId
|
|
5731
|
+
* @param {string | null} companyId
|
|
5564
5732
|
* @param {string} [authorization]
|
|
5565
5733
|
* @param {string} [sessionId]
|
|
5566
5734
|
* @param {*} [options] Override http request option.
|
|
5567
5735
|
* @throws {RequiredError}
|
|
5568
5736
|
*/
|
|
5569
|
-
getUsersV1RolesCompanyIdUsersGet: async (companyId: string, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5737
|
+
getUsersV1RolesCompanyIdUsersGet: async (companyId: string | null, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5570
5738
|
// verify required parameter 'companyId' is not null or undefined
|
|
5571
5739
|
assertParamExists('getUsersV1RolesCompanyIdUsersGet', 'companyId', companyId)
|
|
5572
5740
|
const localVarPath = `/v1/roles/{company_id}/users`
|
|
@@ -5600,12 +5768,13 @@ export const RolesApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
5600
5768
|
*
|
|
5601
5769
|
* @summary Invite
|
|
5602
5770
|
* @param {InviteToCompany} inviteToCompany
|
|
5771
|
+
* @param {string | null} [companyId]
|
|
5603
5772
|
* @param {string} [authorization]
|
|
5604
5773
|
* @param {string} [sessionId]
|
|
5605
5774
|
* @param {*} [options] Override http request option.
|
|
5606
5775
|
* @throws {RequiredError}
|
|
5607
5776
|
*/
|
|
5608
|
-
inviteV1RolesInvitesPost: async (inviteToCompany: InviteToCompany, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5777
|
+
inviteV1RolesInvitesPost: async (inviteToCompany: InviteToCompany, companyId?: string | null, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5609
5778
|
// verify required parameter 'inviteToCompany' is not null or undefined
|
|
5610
5779
|
assertParamExists('inviteV1RolesInvitesPost', 'inviteToCompany', inviteToCompany)
|
|
5611
5780
|
const localVarPath = `/v1/roles/invites`;
|
|
@@ -5620,6 +5789,10 @@ export const RolesApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
5620
5789
|
const localVarHeaderParameter = {} as any;
|
|
5621
5790
|
const localVarQueryParameter = {} as any;
|
|
5622
5791
|
|
|
5792
|
+
if (companyId !== undefined) {
|
|
5793
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
5794
|
+
}
|
|
5795
|
+
|
|
5623
5796
|
|
|
5624
5797
|
|
|
5625
5798
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -5641,12 +5814,13 @@ export const RolesApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
5641
5814
|
*
|
|
5642
5815
|
* @summary Remove People
|
|
5643
5816
|
* @param {RemoveFromCompany} removeFromCompany
|
|
5817
|
+
* @param {string | null} [companyId]
|
|
5644
5818
|
* @param {string} [authorization]
|
|
5645
5819
|
* @param {string} [sessionId]
|
|
5646
5820
|
* @param {*} [options] Override http request option.
|
|
5647
5821
|
* @throws {RequiredError}
|
|
5648
5822
|
*/
|
|
5649
|
-
removePeopleV1RolesInvitesDelete: async (removeFromCompany: RemoveFromCompany, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5823
|
+
removePeopleV1RolesInvitesDelete: async (removeFromCompany: RemoveFromCompany, companyId?: string | null, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5650
5824
|
// verify required parameter 'removeFromCompany' is not null or undefined
|
|
5651
5825
|
assertParamExists('removePeopleV1RolesInvitesDelete', 'removeFromCompany', removeFromCompany)
|
|
5652
5826
|
const localVarPath = `/v1/roles/invites`;
|
|
@@ -5661,6 +5835,10 @@ export const RolesApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
5661
5835
|
const localVarHeaderParameter = {} as any;
|
|
5662
5836
|
const localVarQueryParameter = {} as any;
|
|
5663
5837
|
|
|
5838
|
+
if (companyId !== undefined) {
|
|
5839
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
5840
|
+
}
|
|
5841
|
+
|
|
5664
5842
|
|
|
5665
5843
|
|
|
5666
5844
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -5691,13 +5869,13 @@ export const RolesApiFp = function(configuration?: Configuration) {
|
|
|
5691
5869
|
/**
|
|
5692
5870
|
*
|
|
5693
5871
|
* @summary Get User Permissions
|
|
5694
|
-
* @param {string} companyId
|
|
5872
|
+
* @param {string | null} companyId
|
|
5695
5873
|
* @param {string} [authorization]
|
|
5696
5874
|
* @param {string} [sessionId]
|
|
5697
5875
|
* @param {*} [options] Override http request option.
|
|
5698
5876
|
* @throws {RequiredError}
|
|
5699
5877
|
*/
|
|
5700
|
-
async getUserPermissionsV1RolesCompanyIdMeGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PermissionResponse>> {
|
|
5878
|
+
async getUserPermissionsV1RolesCompanyIdMeGet(companyId: string | null, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PermissionResponse>> {
|
|
5701
5879
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getUserPermissionsV1RolesCompanyIdMeGet(companyId, authorization, sessionId, options);
|
|
5702
5880
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5703
5881
|
const localVarOperationServerBasePath = operationServerMap['RolesApi.getUserPermissionsV1RolesCompanyIdMeGet']?.[localVarOperationServerIndex]?.url;
|
|
@@ -5706,13 +5884,13 @@ export const RolesApiFp = function(configuration?: Configuration) {
|
|
|
5706
5884
|
/**
|
|
5707
5885
|
*
|
|
5708
5886
|
* @summary Get Users
|
|
5709
|
-
* @param {string} companyId
|
|
5887
|
+
* @param {string | null} companyId
|
|
5710
5888
|
* @param {string} [authorization]
|
|
5711
5889
|
* @param {string} [sessionId]
|
|
5712
5890
|
* @param {*} [options] Override http request option.
|
|
5713
5891
|
* @throws {RequiredError}
|
|
5714
5892
|
*/
|
|
5715
|
-
async getUsersV1RolesCompanyIdUsersGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<UserWithId>>> {
|
|
5893
|
+
async getUsersV1RolesCompanyIdUsersGet(companyId: string | null, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<UserWithId>>> {
|
|
5716
5894
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getUsersV1RolesCompanyIdUsersGet(companyId, authorization, sessionId, options);
|
|
5717
5895
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5718
5896
|
const localVarOperationServerBasePath = operationServerMap['RolesApi.getUsersV1RolesCompanyIdUsersGet']?.[localVarOperationServerIndex]?.url;
|
|
@@ -5722,13 +5900,14 @@ export const RolesApiFp = function(configuration?: Configuration) {
|
|
|
5722
5900
|
*
|
|
5723
5901
|
* @summary Invite
|
|
5724
5902
|
* @param {InviteToCompany} inviteToCompany
|
|
5903
|
+
* @param {string | null} [companyId]
|
|
5725
5904
|
* @param {string} [authorization]
|
|
5726
5905
|
* @param {string} [sessionId]
|
|
5727
5906
|
* @param {*} [options] Override http request option.
|
|
5728
5907
|
* @throws {RequiredError}
|
|
5729
5908
|
*/
|
|
5730
|
-
async inviteV1RolesInvitesPost(inviteToCompany: InviteToCompany, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Details>> {
|
|
5731
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.inviteV1RolesInvitesPost(inviteToCompany, authorization, sessionId, options);
|
|
5909
|
+
async inviteV1RolesInvitesPost(inviteToCompany: InviteToCompany, companyId?: string | null, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Details>> {
|
|
5910
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.inviteV1RolesInvitesPost(inviteToCompany, companyId, authorization, sessionId, options);
|
|
5732
5911
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5733
5912
|
const localVarOperationServerBasePath = operationServerMap['RolesApi.inviteV1RolesInvitesPost']?.[localVarOperationServerIndex]?.url;
|
|
5734
5913
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -5737,13 +5916,14 @@ export const RolesApiFp = function(configuration?: Configuration) {
|
|
|
5737
5916
|
*
|
|
5738
5917
|
* @summary Remove People
|
|
5739
5918
|
* @param {RemoveFromCompany} removeFromCompany
|
|
5919
|
+
* @param {string | null} [companyId]
|
|
5740
5920
|
* @param {string} [authorization]
|
|
5741
5921
|
* @param {string} [sessionId]
|
|
5742
5922
|
* @param {*} [options] Override http request option.
|
|
5743
5923
|
* @throws {RequiredError}
|
|
5744
5924
|
*/
|
|
5745
|
-
async removePeopleV1RolesInvitesDelete(removeFromCompany: RemoveFromCompany, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Details>> {
|
|
5746
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.removePeopleV1RolesInvitesDelete(removeFromCompany, authorization, sessionId, options);
|
|
5925
|
+
async removePeopleV1RolesInvitesDelete(removeFromCompany: RemoveFromCompany, companyId?: string | null, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Details>> {
|
|
5926
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.removePeopleV1RolesInvitesDelete(removeFromCompany, companyId, authorization, sessionId, options);
|
|
5747
5927
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5748
5928
|
const localVarOperationServerBasePath = operationServerMap['RolesApi.removePeopleV1RolesInvitesDelete']?.[localVarOperationServerIndex]?.url;
|
|
5749
5929
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -5761,50 +5941,52 @@ export const RolesApiFactory = function (configuration?: Configuration, basePath
|
|
|
5761
5941
|
/**
|
|
5762
5942
|
*
|
|
5763
5943
|
* @summary Get User Permissions
|
|
5764
|
-
* @param {string} companyId
|
|
5944
|
+
* @param {string | null} companyId
|
|
5765
5945
|
* @param {string} [authorization]
|
|
5766
5946
|
* @param {string} [sessionId]
|
|
5767
5947
|
* @param {*} [options] Override http request option.
|
|
5768
5948
|
* @throws {RequiredError}
|
|
5769
5949
|
*/
|
|
5770
|
-
getUserPermissionsV1RolesCompanyIdMeGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<PermissionResponse> {
|
|
5950
|
+
getUserPermissionsV1RolesCompanyIdMeGet(companyId: string | null, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<PermissionResponse> {
|
|
5771
5951
|
return localVarFp.getUserPermissionsV1RolesCompanyIdMeGet(companyId, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
5772
5952
|
},
|
|
5773
5953
|
/**
|
|
5774
5954
|
*
|
|
5775
5955
|
* @summary Get Users
|
|
5776
|
-
* @param {string} companyId
|
|
5956
|
+
* @param {string | null} companyId
|
|
5777
5957
|
* @param {string} [authorization]
|
|
5778
5958
|
* @param {string} [sessionId]
|
|
5779
5959
|
* @param {*} [options] Override http request option.
|
|
5780
5960
|
* @throws {RequiredError}
|
|
5781
5961
|
*/
|
|
5782
|
-
getUsersV1RolesCompanyIdUsersGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<UserWithId>> {
|
|
5962
|
+
getUsersV1RolesCompanyIdUsersGet(companyId: string | null, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<UserWithId>> {
|
|
5783
5963
|
return localVarFp.getUsersV1RolesCompanyIdUsersGet(companyId, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
5784
5964
|
},
|
|
5785
5965
|
/**
|
|
5786
5966
|
*
|
|
5787
5967
|
* @summary Invite
|
|
5788
5968
|
* @param {InviteToCompany} inviteToCompany
|
|
5969
|
+
* @param {string | null} [companyId]
|
|
5789
5970
|
* @param {string} [authorization]
|
|
5790
5971
|
* @param {string} [sessionId]
|
|
5791
5972
|
* @param {*} [options] Override http request option.
|
|
5792
5973
|
* @throws {RequiredError}
|
|
5793
5974
|
*/
|
|
5794
|
-
inviteV1RolesInvitesPost(inviteToCompany: InviteToCompany, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Details> {
|
|
5795
|
-
return localVarFp.inviteV1RolesInvitesPost(inviteToCompany, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
5975
|
+
inviteV1RolesInvitesPost(inviteToCompany: InviteToCompany, companyId?: string | null, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Details> {
|
|
5976
|
+
return localVarFp.inviteV1RolesInvitesPost(inviteToCompany, companyId, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
5796
5977
|
},
|
|
5797
5978
|
/**
|
|
5798
5979
|
*
|
|
5799
5980
|
* @summary Remove People
|
|
5800
5981
|
* @param {RemoveFromCompany} removeFromCompany
|
|
5982
|
+
* @param {string | null} [companyId]
|
|
5801
5983
|
* @param {string} [authorization]
|
|
5802
5984
|
* @param {string} [sessionId]
|
|
5803
5985
|
* @param {*} [options] Override http request option.
|
|
5804
5986
|
* @throws {RequiredError}
|
|
5805
5987
|
*/
|
|
5806
|
-
removePeopleV1RolesInvitesDelete(removeFromCompany: RemoveFromCompany, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Details> {
|
|
5807
|
-
return localVarFp.removePeopleV1RolesInvitesDelete(removeFromCompany, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
5988
|
+
removePeopleV1RolesInvitesDelete(removeFromCompany: RemoveFromCompany, companyId?: string | null, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Details> {
|
|
5989
|
+
return localVarFp.removePeopleV1RolesInvitesDelete(removeFromCompany, companyId, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
5808
5990
|
},
|
|
5809
5991
|
};
|
|
5810
5992
|
};
|
|
@@ -5819,28 +6001,28 @@ export class RolesApi extends BaseAPI {
|
|
|
5819
6001
|
/**
|
|
5820
6002
|
*
|
|
5821
6003
|
* @summary Get User Permissions
|
|
5822
|
-
* @param {string} companyId
|
|
6004
|
+
* @param {string | null} companyId
|
|
5823
6005
|
* @param {string} [authorization]
|
|
5824
6006
|
* @param {string} [sessionId]
|
|
5825
6007
|
* @param {*} [options] Override http request option.
|
|
5826
6008
|
* @throws {RequiredError}
|
|
5827
6009
|
* @memberof RolesApi
|
|
5828
6010
|
*/
|
|
5829
|
-
public getUserPermissionsV1RolesCompanyIdMeGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
|
|
6011
|
+
public getUserPermissionsV1RolesCompanyIdMeGet(companyId: string | null, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
|
|
5830
6012
|
return RolesApiFp(this.configuration).getUserPermissionsV1RolesCompanyIdMeGet(companyId, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
5831
6013
|
}
|
|
5832
6014
|
|
|
5833
6015
|
/**
|
|
5834
6016
|
*
|
|
5835
6017
|
* @summary Get Users
|
|
5836
|
-
* @param {string} companyId
|
|
6018
|
+
* @param {string | null} companyId
|
|
5837
6019
|
* @param {string} [authorization]
|
|
5838
6020
|
* @param {string} [sessionId]
|
|
5839
6021
|
* @param {*} [options] Override http request option.
|
|
5840
6022
|
* @throws {RequiredError}
|
|
5841
6023
|
* @memberof RolesApi
|
|
5842
6024
|
*/
|
|
5843
|
-
public getUsersV1RolesCompanyIdUsersGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
|
|
6025
|
+
public getUsersV1RolesCompanyIdUsersGet(companyId: string | null, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
|
|
5844
6026
|
return RolesApiFp(this.configuration).getUsersV1RolesCompanyIdUsersGet(companyId, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
5845
6027
|
}
|
|
5846
6028
|
|
|
@@ -5848,28 +6030,30 @@ export class RolesApi extends BaseAPI {
|
|
|
5848
6030
|
*
|
|
5849
6031
|
* @summary Invite
|
|
5850
6032
|
* @param {InviteToCompany} inviteToCompany
|
|
6033
|
+
* @param {string | null} [companyId]
|
|
5851
6034
|
* @param {string} [authorization]
|
|
5852
6035
|
* @param {string} [sessionId]
|
|
5853
6036
|
* @param {*} [options] Override http request option.
|
|
5854
6037
|
* @throws {RequiredError}
|
|
5855
6038
|
* @memberof RolesApi
|
|
5856
6039
|
*/
|
|
5857
|
-
public inviteV1RolesInvitesPost(inviteToCompany: InviteToCompany, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
|
|
5858
|
-
return RolesApiFp(this.configuration).inviteV1RolesInvitesPost(inviteToCompany, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
6040
|
+
public inviteV1RolesInvitesPost(inviteToCompany: InviteToCompany, companyId?: string | null, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
|
|
6041
|
+
return RolesApiFp(this.configuration).inviteV1RolesInvitesPost(inviteToCompany, companyId, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
5859
6042
|
}
|
|
5860
6043
|
|
|
5861
6044
|
/**
|
|
5862
6045
|
*
|
|
5863
6046
|
* @summary Remove People
|
|
5864
6047
|
* @param {RemoveFromCompany} removeFromCompany
|
|
6048
|
+
* @param {string | null} [companyId]
|
|
5865
6049
|
* @param {string} [authorization]
|
|
5866
6050
|
* @param {string} [sessionId]
|
|
5867
6051
|
* @param {*} [options] Override http request option.
|
|
5868
6052
|
* @throws {RequiredError}
|
|
5869
6053
|
* @memberof RolesApi
|
|
5870
6054
|
*/
|
|
5871
|
-
public removePeopleV1RolesInvitesDelete(removeFromCompany: RemoveFromCompany, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
|
|
5872
|
-
return RolesApiFp(this.configuration).removePeopleV1RolesInvitesDelete(removeFromCompany, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
6055
|
+
public removePeopleV1RolesInvitesDelete(removeFromCompany: RemoveFromCompany, companyId?: string | null, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
|
|
6056
|
+
return RolesApiFp(this.configuration).removePeopleV1RolesInvitesDelete(removeFromCompany, companyId, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
5873
6057
|
}
|
|
5874
6058
|
}
|
|
5875
6059
|
|
|
@@ -5963,6 +6147,45 @@ export const TasksApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
5963
6147
|
options: localVarRequestOptions,
|
|
5964
6148
|
};
|
|
5965
6149
|
},
|
|
6150
|
+
/**
|
|
6151
|
+
* Check the status of a task scheduler background job
|
|
6152
|
+
* @summary Get Task Scheduler Status
|
|
6153
|
+
* @param {string} taskId
|
|
6154
|
+
* @param {string} [authorization]
|
|
6155
|
+
* @param {string} [sessionId]
|
|
6156
|
+
* @param {*} [options] Override http request option.
|
|
6157
|
+
* @throws {RequiredError}
|
|
6158
|
+
*/
|
|
6159
|
+
getTaskSchedulerStatusV1TasksScheduleTaskIdStatusGet: async (taskId: string, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6160
|
+
// verify required parameter 'taskId' is not null or undefined
|
|
6161
|
+
assertParamExists('getTaskSchedulerStatusV1TasksScheduleTaskIdStatusGet', 'taskId', taskId)
|
|
6162
|
+
const localVarPath = `/v1/tasks/schedule/{task_id}/status`
|
|
6163
|
+
.replace(`{${"task_id"}}`, encodeURIComponent(String(taskId)));
|
|
6164
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6165
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6166
|
+
let baseOptions;
|
|
6167
|
+
if (configuration) {
|
|
6168
|
+
baseOptions = configuration.baseOptions;
|
|
6169
|
+
}
|
|
6170
|
+
|
|
6171
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
6172
|
+
const localVarHeaderParameter = {} as any;
|
|
6173
|
+
const localVarQueryParameter = {} as any;
|
|
6174
|
+
|
|
6175
|
+
|
|
6176
|
+
|
|
6177
|
+
if (authorization != null) {
|
|
6178
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
6179
|
+
}
|
|
6180
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6181
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6182
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
6183
|
+
|
|
6184
|
+
return {
|
|
6185
|
+
url: toPathString(localVarUrlObj),
|
|
6186
|
+
options: localVarRequestOptions,
|
|
6187
|
+
};
|
|
6188
|
+
},
|
|
5966
6189
|
/**
|
|
5967
6190
|
*
|
|
5968
6191
|
* @summary Get Task
|
|
@@ -6337,6 +6560,21 @@ export const TasksApiFp = function(configuration?: Configuration) {
|
|
|
6337
6560
|
const localVarOperationServerBasePath = operationServerMap['TasksApi.deleteTaskV1TasksDelete']?.[localVarOperationServerIndex]?.url;
|
|
6338
6561
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6339
6562
|
},
|
|
6563
|
+
/**
|
|
6564
|
+
* Check the status of a task scheduler background job
|
|
6565
|
+
* @summary Get Task Scheduler Status
|
|
6566
|
+
* @param {string} taskId
|
|
6567
|
+
* @param {string} [authorization]
|
|
6568
|
+
* @param {string} [sessionId]
|
|
6569
|
+
* @param {*} [options] Override http request option.
|
|
6570
|
+
* @throws {RequiredError}
|
|
6571
|
+
*/
|
|
6572
|
+
async getTaskSchedulerStatusV1TasksScheduleTaskIdStatusGet(taskId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TaskStatusResponse>> {
|
|
6573
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getTaskSchedulerStatusV1TasksScheduleTaskIdStatusGet(taskId, authorization, sessionId, options);
|
|
6574
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6575
|
+
const localVarOperationServerBasePath = operationServerMap['TasksApi.getTaskSchedulerStatusV1TasksScheduleTaskIdStatusGet']?.[localVarOperationServerIndex]?.url;
|
|
6576
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6577
|
+
},
|
|
6340
6578
|
/**
|
|
6341
6579
|
*
|
|
6342
6580
|
* @summary Get Task
|
|
@@ -6407,7 +6645,7 @@ export const TasksApiFp = function(configuration?: Configuration) {
|
|
|
6407
6645
|
* @param {*} [options] Override http request option.
|
|
6408
6646
|
* @throws {RequiredError}
|
|
6409
6647
|
*/
|
|
6410
|
-
async requestTaskSchedulingV1TasksSchedulePost(schedulerRequest: SchedulerRequest, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
6648
|
+
async requestTaskSchedulingV1TasksSchedulePost(schedulerRequest: SchedulerRequest, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SchedulerResponse>> {
|
|
6411
6649
|
const localVarAxiosArgs = await localVarAxiosParamCreator.requestTaskSchedulingV1TasksSchedulePost(schedulerRequest, authorization, sessionId, options);
|
|
6412
6650
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6413
6651
|
const localVarOperationServerBasePath = operationServerMap['TasksApi.requestTaskSchedulingV1TasksSchedulePost']?.[localVarOperationServerIndex]?.url;
|
|
@@ -6477,6 +6715,18 @@ export const TasksApiFactory = function (configuration?: Configuration, basePath
|
|
|
6477
6715
|
deleteTaskV1TasksDelete(deleteTaskSchema: DeleteTaskSchema, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Details> {
|
|
6478
6716
|
return localVarFp.deleteTaskV1TasksDelete(deleteTaskSchema, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
6479
6717
|
},
|
|
6718
|
+
/**
|
|
6719
|
+
* Check the status of a task scheduler background job
|
|
6720
|
+
* @summary Get Task Scheduler Status
|
|
6721
|
+
* @param {string} taskId
|
|
6722
|
+
* @param {string} [authorization]
|
|
6723
|
+
* @param {string} [sessionId]
|
|
6724
|
+
* @param {*} [options] Override http request option.
|
|
6725
|
+
* @throws {RequiredError}
|
|
6726
|
+
*/
|
|
6727
|
+
getTaskSchedulerStatusV1TasksScheduleTaskIdStatusGet(taskId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<TaskStatusResponse> {
|
|
6728
|
+
return localVarFp.getTaskSchedulerStatusV1TasksScheduleTaskIdStatusGet(taskId, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
6729
|
+
},
|
|
6480
6730
|
/**
|
|
6481
6731
|
*
|
|
6482
6732
|
* @summary Get Task
|
|
@@ -6538,7 +6788,7 @@ export const TasksApiFactory = function (configuration?: Configuration, basePath
|
|
|
6538
6788
|
* @param {*} [options] Override http request option.
|
|
6539
6789
|
* @throws {RequiredError}
|
|
6540
6790
|
*/
|
|
6541
|
-
requestTaskSchedulingV1TasksSchedulePost(schedulerRequest: SchedulerRequest, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
6791
|
+
requestTaskSchedulingV1TasksSchedulePost(schedulerRequest: SchedulerRequest, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<SchedulerResponse> {
|
|
6542
6792
|
return localVarFp.requestTaskSchedulingV1TasksSchedulePost(schedulerRequest, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
6543
6793
|
},
|
|
6544
6794
|
/**
|
|
@@ -6603,6 +6853,20 @@ export class TasksApi extends BaseAPI {
|
|
|
6603
6853
|
return TasksApiFp(this.configuration).deleteTaskV1TasksDelete(deleteTaskSchema, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
6604
6854
|
}
|
|
6605
6855
|
|
|
6856
|
+
/**
|
|
6857
|
+
* Check the status of a task scheduler background job
|
|
6858
|
+
* @summary Get Task Scheduler Status
|
|
6859
|
+
* @param {string} taskId
|
|
6860
|
+
* @param {string} [authorization]
|
|
6861
|
+
* @param {string} [sessionId]
|
|
6862
|
+
* @param {*} [options] Override http request option.
|
|
6863
|
+
* @throws {RequiredError}
|
|
6864
|
+
* @memberof TasksApi
|
|
6865
|
+
*/
|
|
6866
|
+
public getTaskSchedulerStatusV1TasksScheduleTaskIdStatusGet(taskId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
|
|
6867
|
+
return TasksApiFp(this.configuration).getTaskSchedulerStatusV1TasksScheduleTaskIdStatusGet(taskId, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
6868
|
+
}
|
|
6869
|
+
|
|
6606
6870
|
/**
|
|
6607
6871
|
*
|
|
6608
6872
|
* @summary Get Task
|