@rasadov/lumoar-sdk 1.0.7 → 1.0.9
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 +13 -0
- package/api.ts +1366 -64
- package/dist/api.d.ts +849 -20
- package/dist/api.js +995 -63
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/sdk.d.ts +5 -1
- package/dist/sdk.js +5 -1
- package/docs/CreateTaskSchema.md +28 -0
- package/docs/DeleteTaskSchema.md +20 -0
- package/docs/DeliveryMethod.md +8 -0
- package/docs/PaginationResponseReportBase.md +22 -0
- package/docs/PaginationResponseTaskRead.md +22 -0
- package/docs/ReminderFrequency.md +12 -0
- package/docs/ReportBase.md +32 -0
- package/docs/ReportGenerate.md +20 -0
- package/docs/ReportsApi.md +254 -0
- package/docs/SchedulerRequest.md +32 -0
- package/docs/TaskRead.md +38 -0
- package/docs/TasksApi.md +371 -0
- package/docs/UpdateTaskSchema.md +28 -0
- package/index.ts +1 -1
- package/package.json +1 -1
- package/sdk.ts +8 -0
package/dist/api.js
CHANGED
|
@@ -72,6 +72,14 @@ export const ControlStatus = {
|
|
|
72
72
|
Skipped: 'skipped',
|
|
73
73
|
PendingReview: 'pending_review'
|
|
74
74
|
};
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @export
|
|
78
|
+
* @enum {string}
|
|
79
|
+
*/
|
|
80
|
+
export const DeliveryMethod = {
|
|
81
|
+
Email: 'email'
|
|
82
|
+
};
|
|
75
83
|
/**
|
|
76
84
|
*
|
|
77
85
|
* @export
|
|
@@ -83,6 +91,16 @@ export const PermissionType = {
|
|
|
83
91
|
Member: 'member',
|
|
84
92
|
Auditor: 'auditor'
|
|
85
93
|
};
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @export
|
|
97
|
+
* @enum {string}
|
|
98
|
+
*/
|
|
99
|
+
export const ReminderFrequency = {
|
|
100
|
+
Daily: 'daily',
|
|
101
|
+
Weekly: 'weekly',
|
|
102
|
+
Custom: 'custom'
|
|
103
|
+
};
|
|
86
104
|
/**
|
|
87
105
|
* AuditLogsApi - axios parameter creator
|
|
88
106
|
* @export
|
|
@@ -3103,24 +3121,64 @@ export class PoliciesApi extends BaseAPI {
|
|
|
3103
3121
|
}
|
|
3104
3122
|
}
|
|
3105
3123
|
/**
|
|
3106
|
-
*
|
|
3124
|
+
* ReportsApi - axios parameter creator
|
|
3107
3125
|
* @export
|
|
3108
3126
|
*/
|
|
3109
|
-
export const
|
|
3127
|
+
export const ReportsApiAxiosParamCreator = function (configuration) {
|
|
3110
3128
|
return {
|
|
3111
3129
|
/**
|
|
3112
|
-
*
|
|
3113
|
-
* @summary
|
|
3114
|
-
* @param {
|
|
3130
|
+
*
|
|
3131
|
+
* @summary Export Report
|
|
3132
|
+
* @param {string} reportId
|
|
3115
3133
|
* @param {string} [authorization]
|
|
3116
3134
|
* @param {string} [sessionId]
|
|
3117
3135
|
* @param {*} [options] Override http request option.
|
|
3118
3136
|
* @throws {RequiredError}
|
|
3119
3137
|
*/
|
|
3120
|
-
|
|
3121
|
-
// verify required parameter '
|
|
3122
|
-
assertParamExists('
|
|
3123
|
-
const localVarPath = `/v1/
|
|
3138
|
+
exportReportV1ReportsExportReportIdGet: (reportId_1, authorization_1, sessionId_1, ...args_1) => __awaiter(this, [reportId_1, authorization_1, sessionId_1, ...args_1], void 0, function* (reportId, authorization, sessionId, options = {}) {
|
|
3139
|
+
// verify required parameter 'reportId' is not null or undefined
|
|
3140
|
+
assertParamExists('exportReportV1ReportsExportReportIdGet', 'reportId', reportId);
|
|
3141
|
+
const localVarPath = `/v1/reports/export/{report_id}`
|
|
3142
|
+
.replace(`{${"report_id"}}`, encodeURIComponent(String(reportId)));
|
|
3143
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3144
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3145
|
+
let baseOptions;
|
|
3146
|
+
if (configuration) {
|
|
3147
|
+
baseOptions = configuration.baseOptions;
|
|
3148
|
+
}
|
|
3149
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3150
|
+
const localVarHeaderParameter = {};
|
|
3151
|
+
const localVarQueryParameter = {};
|
|
3152
|
+
if (authorization != null) {
|
|
3153
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
3154
|
+
}
|
|
3155
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3156
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3157
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3158
|
+
return {
|
|
3159
|
+
url: toPathString(localVarUrlObj),
|
|
3160
|
+
options: localVarRequestOptions,
|
|
3161
|
+
};
|
|
3162
|
+
}),
|
|
3163
|
+
/**
|
|
3164
|
+
*
|
|
3165
|
+
* @summary Generate Report
|
|
3166
|
+
* @param {string} companyId
|
|
3167
|
+
* @param {string} reportType
|
|
3168
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
3169
|
+
* @param {string} [authorization]
|
|
3170
|
+
* @param {string} [sessionId]
|
|
3171
|
+
* @param {*} [options] Override http request option.
|
|
3172
|
+
* @throws {RequiredError}
|
|
3173
|
+
*/
|
|
3174
|
+
generateReportV1ReportsGeneratePost: (companyId_1, reportType_1, requestBody_1, authorization_1, sessionId_1, ...args_1) => __awaiter(this, [companyId_1, reportType_1, requestBody_1, authorization_1, sessionId_1, ...args_1], void 0, function* (companyId, reportType, requestBody, authorization, sessionId, options = {}) {
|
|
3175
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
3176
|
+
assertParamExists('generateReportV1ReportsGeneratePost', 'companyId', companyId);
|
|
3177
|
+
// verify required parameter 'reportType' is not null or undefined
|
|
3178
|
+
assertParamExists('generateReportV1ReportsGeneratePost', 'reportType', reportType);
|
|
3179
|
+
// verify required parameter 'requestBody' is not null or undefined
|
|
3180
|
+
assertParamExists('generateReportV1ReportsGeneratePost', 'requestBody', requestBody);
|
|
3181
|
+
const localVarPath = `/v1/reports/generate`;
|
|
3124
3182
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3125
3183
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3126
3184
|
let baseOptions;
|
|
@@ -3130,6 +3188,12 @@ export const RolesApiAxiosParamCreator = function (configuration) {
|
|
|
3130
3188
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3131
3189
|
const localVarHeaderParameter = {};
|
|
3132
3190
|
const localVarQueryParameter = {};
|
|
3191
|
+
if (companyId !== undefined) {
|
|
3192
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
3193
|
+
}
|
|
3194
|
+
if (reportType !== undefined) {
|
|
3195
|
+
localVarQueryParameter['report_type'] = reportType;
|
|
3196
|
+
}
|
|
3133
3197
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3134
3198
|
if (authorization != null) {
|
|
3135
3199
|
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
@@ -3137,42 +3201,87 @@ export const RolesApiAxiosParamCreator = function (configuration) {
|
|
|
3137
3201
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3138
3202
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3139
3203
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3140
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
3204
|
+
localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration);
|
|
3141
3205
|
return {
|
|
3142
3206
|
url: toPathString(localVarUrlObj),
|
|
3143
3207
|
options: localVarRequestOptions,
|
|
3144
3208
|
};
|
|
3145
3209
|
}),
|
|
3146
3210
|
/**
|
|
3147
|
-
*
|
|
3148
|
-
* @summary
|
|
3149
|
-
* @param {
|
|
3211
|
+
*
|
|
3212
|
+
* @summary Get Evidence
|
|
3213
|
+
* @param {string} reportId
|
|
3214
|
+
* @param {string} evidenceId
|
|
3150
3215
|
* @param {string} [authorization]
|
|
3151
3216
|
* @param {string} [sessionId]
|
|
3152
3217
|
* @param {*} [options] Override http request option.
|
|
3153
3218
|
* @throws {RequiredError}
|
|
3154
3219
|
*/
|
|
3155
|
-
|
|
3156
|
-
// verify required parameter '
|
|
3157
|
-
assertParamExists('
|
|
3158
|
-
|
|
3220
|
+
getEvidenceV1ReportsEvidenceReportIdEvidenceIdGet: (reportId_1, evidenceId_1, authorization_1, sessionId_1, ...args_1) => __awaiter(this, [reportId_1, evidenceId_1, authorization_1, sessionId_1, ...args_1], void 0, function* (reportId, evidenceId, authorization, sessionId, options = {}) {
|
|
3221
|
+
// verify required parameter 'reportId' is not null or undefined
|
|
3222
|
+
assertParamExists('getEvidenceV1ReportsEvidenceReportIdEvidenceIdGet', 'reportId', reportId);
|
|
3223
|
+
// verify required parameter 'evidenceId' is not null or undefined
|
|
3224
|
+
assertParamExists('getEvidenceV1ReportsEvidenceReportIdEvidenceIdGet', 'evidenceId', evidenceId);
|
|
3225
|
+
const localVarPath = `/v1/reports/evidence/{report_id}/{evidence_id}`
|
|
3226
|
+
.replace(`{${"report_id"}}`, encodeURIComponent(String(reportId)))
|
|
3227
|
+
.replace(`{${"evidence_id"}}`, encodeURIComponent(String(evidenceId)));
|
|
3159
3228
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3160
3229
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3161
3230
|
let baseOptions;
|
|
3162
3231
|
if (configuration) {
|
|
3163
3232
|
baseOptions = configuration.baseOptions;
|
|
3164
3233
|
}
|
|
3165
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
3234
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3166
3235
|
const localVarHeaderParameter = {};
|
|
3167
3236
|
const localVarQueryParameter = {};
|
|
3168
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3169
3237
|
if (authorization != null) {
|
|
3170
3238
|
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
3171
3239
|
}
|
|
3172
3240
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3173
3241
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3174
3242
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3175
|
-
|
|
3243
|
+
return {
|
|
3244
|
+
url: toPathString(localVarUrlObj),
|
|
3245
|
+
options: localVarRequestOptions,
|
|
3246
|
+
};
|
|
3247
|
+
}),
|
|
3248
|
+
/**
|
|
3249
|
+
*
|
|
3250
|
+
* @summary List Reports
|
|
3251
|
+
* @param {string} companyId
|
|
3252
|
+
* @param {number} [page]
|
|
3253
|
+
* @param {number} [elements]
|
|
3254
|
+
* @param {string} [authorization]
|
|
3255
|
+
* @param {string} [sessionId]
|
|
3256
|
+
* @param {*} [options] Override http request option.
|
|
3257
|
+
* @throws {RequiredError}
|
|
3258
|
+
*/
|
|
3259
|
+
listReportsV1ReportsListCompanyIdGet: (companyId_1, page_1, elements_1, authorization_1, sessionId_1, ...args_1) => __awaiter(this, [companyId_1, page_1, elements_1, authorization_1, sessionId_1, ...args_1], void 0, function* (companyId, page, elements, authorization, sessionId, options = {}) {
|
|
3260
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
3261
|
+
assertParamExists('listReportsV1ReportsListCompanyIdGet', 'companyId', companyId);
|
|
3262
|
+
const localVarPath = `/v1/reports/list/{company_id}`
|
|
3263
|
+
.replace(`{${"company_id"}}`, encodeURIComponent(String(companyId)));
|
|
3264
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3265
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3266
|
+
let baseOptions;
|
|
3267
|
+
if (configuration) {
|
|
3268
|
+
baseOptions = configuration.baseOptions;
|
|
3269
|
+
}
|
|
3270
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3271
|
+
const localVarHeaderParameter = {};
|
|
3272
|
+
const localVarQueryParameter = {};
|
|
3273
|
+
if (page !== undefined) {
|
|
3274
|
+
localVarQueryParameter['page'] = page;
|
|
3275
|
+
}
|
|
3276
|
+
if (elements !== undefined) {
|
|
3277
|
+
localVarQueryParameter['elements'] = elements;
|
|
3278
|
+
}
|
|
3279
|
+
if (authorization != null) {
|
|
3280
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
3281
|
+
}
|
|
3282
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3283
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3284
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3176
3285
|
return {
|
|
3177
3286
|
url: toPathString(localVarUrlObj),
|
|
3178
3287
|
options: localVarRequestOptions,
|
|
@@ -3181,115 +3290,938 @@ export const RolesApiAxiosParamCreator = function (configuration) {
|
|
|
3181
3290
|
};
|
|
3182
3291
|
};
|
|
3183
3292
|
/**
|
|
3184
|
-
*
|
|
3293
|
+
* ReportsApi - functional programming interface
|
|
3185
3294
|
* @export
|
|
3186
3295
|
*/
|
|
3187
|
-
export const
|
|
3188
|
-
const localVarAxiosParamCreator =
|
|
3296
|
+
export const ReportsApiFp = function (configuration) {
|
|
3297
|
+
const localVarAxiosParamCreator = ReportsApiAxiosParamCreator(configuration);
|
|
3189
3298
|
return {
|
|
3190
3299
|
/**
|
|
3191
|
-
*
|
|
3192
|
-
* @summary
|
|
3193
|
-
* @param {
|
|
3300
|
+
*
|
|
3301
|
+
* @summary Export Report
|
|
3302
|
+
* @param {string} reportId
|
|
3194
3303
|
* @param {string} [authorization]
|
|
3195
3304
|
* @param {string} [sessionId]
|
|
3196
3305
|
* @param {*} [options] Override http request option.
|
|
3197
3306
|
* @throws {RequiredError}
|
|
3198
3307
|
*/
|
|
3199
|
-
|
|
3308
|
+
exportReportV1ReportsExportReportIdGet(reportId, authorization, sessionId, options) {
|
|
3200
3309
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3201
3310
|
var _a, _b, _c;
|
|
3202
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
3311
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.exportReportV1ReportsExportReportIdGet(reportId, authorization, sessionId, options);
|
|
3203
3312
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3204
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
3313
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ReportsApi.exportReportV1ReportsExportReportIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3205
3314
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3206
3315
|
});
|
|
3207
3316
|
},
|
|
3208
3317
|
/**
|
|
3209
|
-
*
|
|
3210
|
-
* @summary
|
|
3211
|
-
* @param {
|
|
3318
|
+
*
|
|
3319
|
+
* @summary Generate Report
|
|
3320
|
+
* @param {string} companyId
|
|
3321
|
+
* @param {string} reportType
|
|
3322
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
3212
3323
|
* @param {string} [authorization]
|
|
3213
3324
|
* @param {string} [sessionId]
|
|
3214
3325
|
* @param {*} [options] Override http request option.
|
|
3215
3326
|
* @throws {RequiredError}
|
|
3216
3327
|
*/
|
|
3217
|
-
|
|
3328
|
+
generateReportV1ReportsGeneratePost(companyId, reportType, requestBody, authorization, sessionId, options) {
|
|
3218
3329
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3219
3330
|
var _a, _b, _c;
|
|
3220
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
3331
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.generateReportV1ReportsGeneratePost(companyId, reportType, requestBody, authorization, sessionId, options);
|
|
3221
3332
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3222
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
3333
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ReportsApi.generateReportV1ReportsGeneratePost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3334
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3335
|
+
});
|
|
3336
|
+
},
|
|
3337
|
+
/**
|
|
3338
|
+
*
|
|
3339
|
+
* @summary Get Evidence
|
|
3340
|
+
* @param {string} reportId
|
|
3341
|
+
* @param {string} evidenceId
|
|
3342
|
+
* @param {string} [authorization]
|
|
3343
|
+
* @param {string} [sessionId]
|
|
3344
|
+
* @param {*} [options] Override http request option.
|
|
3345
|
+
* @throws {RequiredError}
|
|
3346
|
+
*/
|
|
3347
|
+
getEvidenceV1ReportsEvidenceReportIdEvidenceIdGet(reportId, evidenceId, authorization, sessionId, options) {
|
|
3348
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3349
|
+
var _a, _b, _c;
|
|
3350
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getEvidenceV1ReportsEvidenceReportIdEvidenceIdGet(reportId, evidenceId, authorization, sessionId, options);
|
|
3351
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3352
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ReportsApi.getEvidenceV1ReportsEvidenceReportIdEvidenceIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3353
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3354
|
+
});
|
|
3355
|
+
},
|
|
3356
|
+
/**
|
|
3357
|
+
*
|
|
3358
|
+
* @summary List Reports
|
|
3359
|
+
* @param {string} companyId
|
|
3360
|
+
* @param {number} [page]
|
|
3361
|
+
* @param {number} [elements]
|
|
3362
|
+
* @param {string} [authorization]
|
|
3363
|
+
* @param {string} [sessionId]
|
|
3364
|
+
* @param {*} [options] Override http request option.
|
|
3365
|
+
* @throws {RequiredError}
|
|
3366
|
+
*/
|
|
3367
|
+
listReportsV1ReportsListCompanyIdGet(companyId, page, elements, authorization, sessionId, options) {
|
|
3368
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3369
|
+
var _a, _b, _c;
|
|
3370
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listReportsV1ReportsListCompanyIdGet(companyId, page, elements, authorization, sessionId, options);
|
|
3371
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3372
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ReportsApi.listReportsV1ReportsListCompanyIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3223
3373
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3224
3374
|
});
|
|
3225
3375
|
},
|
|
3226
3376
|
};
|
|
3227
3377
|
};
|
|
3228
3378
|
/**
|
|
3229
|
-
*
|
|
3379
|
+
* ReportsApi - factory interface
|
|
3230
3380
|
* @export
|
|
3231
3381
|
*/
|
|
3232
|
-
export const
|
|
3233
|
-
const localVarFp =
|
|
3382
|
+
export const ReportsApiFactory = function (configuration, basePath, axios) {
|
|
3383
|
+
const localVarFp = ReportsApiFp(configuration);
|
|
3234
3384
|
return {
|
|
3235
3385
|
/**
|
|
3236
|
-
*
|
|
3237
|
-
* @summary
|
|
3238
|
-
* @param {
|
|
3386
|
+
*
|
|
3387
|
+
* @summary Export Report
|
|
3388
|
+
* @param {string} reportId
|
|
3239
3389
|
* @param {string} [authorization]
|
|
3240
3390
|
* @param {string} [sessionId]
|
|
3241
3391
|
* @param {*} [options] Override http request option.
|
|
3242
3392
|
* @throws {RequiredError}
|
|
3243
3393
|
*/
|
|
3244
|
-
|
|
3245
|
-
return localVarFp.
|
|
3394
|
+
exportReportV1ReportsExportReportIdGet(reportId, authorization, sessionId, options) {
|
|
3395
|
+
return localVarFp.exportReportV1ReportsExportReportIdGet(reportId, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
3246
3396
|
},
|
|
3247
3397
|
/**
|
|
3248
|
-
*
|
|
3249
|
-
* @summary
|
|
3250
|
-
* @param {
|
|
3398
|
+
*
|
|
3399
|
+
* @summary Generate Report
|
|
3400
|
+
* @param {string} companyId
|
|
3401
|
+
* @param {string} reportType
|
|
3402
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
3251
3403
|
* @param {string} [authorization]
|
|
3252
3404
|
* @param {string} [sessionId]
|
|
3253
3405
|
* @param {*} [options] Override http request option.
|
|
3254
3406
|
* @throws {RequiredError}
|
|
3255
3407
|
*/
|
|
3256
|
-
|
|
3257
|
-
return localVarFp.
|
|
3408
|
+
generateReportV1ReportsGeneratePost(companyId, reportType, requestBody, authorization, sessionId, options) {
|
|
3409
|
+
return localVarFp.generateReportV1ReportsGeneratePost(companyId, reportType, requestBody, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
3410
|
+
},
|
|
3411
|
+
/**
|
|
3412
|
+
*
|
|
3413
|
+
* @summary Get Evidence
|
|
3414
|
+
* @param {string} reportId
|
|
3415
|
+
* @param {string} evidenceId
|
|
3416
|
+
* @param {string} [authorization]
|
|
3417
|
+
* @param {string} [sessionId]
|
|
3418
|
+
* @param {*} [options] Override http request option.
|
|
3419
|
+
* @throws {RequiredError}
|
|
3420
|
+
*/
|
|
3421
|
+
getEvidenceV1ReportsEvidenceReportIdEvidenceIdGet(reportId, evidenceId, authorization, sessionId, options) {
|
|
3422
|
+
return localVarFp.getEvidenceV1ReportsEvidenceReportIdEvidenceIdGet(reportId, evidenceId, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
3423
|
+
},
|
|
3424
|
+
/**
|
|
3425
|
+
*
|
|
3426
|
+
* @summary List Reports
|
|
3427
|
+
* @param {string} companyId
|
|
3428
|
+
* @param {number} [page]
|
|
3429
|
+
* @param {number} [elements]
|
|
3430
|
+
* @param {string} [authorization]
|
|
3431
|
+
* @param {string} [sessionId]
|
|
3432
|
+
* @param {*} [options] Override http request option.
|
|
3433
|
+
* @throws {RequiredError}
|
|
3434
|
+
*/
|
|
3435
|
+
listReportsV1ReportsListCompanyIdGet(companyId, page, elements, authorization, sessionId, options) {
|
|
3436
|
+
return localVarFp.listReportsV1ReportsListCompanyIdGet(companyId, page, elements, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
3258
3437
|
},
|
|
3259
3438
|
};
|
|
3260
3439
|
};
|
|
3261
3440
|
/**
|
|
3262
|
-
*
|
|
3441
|
+
* ReportsApi - object-oriented interface
|
|
3263
3442
|
* @export
|
|
3264
|
-
* @class
|
|
3443
|
+
* @class ReportsApi
|
|
3265
3444
|
* @extends {BaseAPI}
|
|
3266
3445
|
*/
|
|
3267
|
-
export class
|
|
3446
|
+
export class ReportsApi extends BaseAPI {
|
|
3268
3447
|
/**
|
|
3269
|
-
*
|
|
3270
|
-
* @summary
|
|
3271
|
-
* @param {
|
|
3448
|
+
*
|
|
3449
|
+
* @summary Export Report
|
|
3450
|
+
* @param {string} reportId
|
|
3272
3451
|
* @param {string} [authorization]
|
|
3273
3452
|
* @param {string} [sessionId]
|
|
3274
3453
|
* @param {*} [options] Override http request option.
|
|
3275
3454
|
* @throws {RequiredError}
|
|
3276
|
-
* @memberof
|
|
3455
|
+
* @memberof ReportsApi
|
|
3277
3456
|
*/
|
|
3278
|
-
|
|
3279
|
-
return
|
|
3457
|
+
exportReportV1ReportsExportReportIdGet(reportId, authorization, sessionId, options) {
|
|
3458
|
+
return ReportsApiFp(this.configuration).exportReportV1ReportsExportReportIdGet(reportId, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
3280
3459
|
}
|
|
3281
3460
|
/**
|
|
3282
|
-
*
|
|
3283
|
-
* @summary
|
|
3284
|
-
* @param {
|
|
3461
|
+
*
|
|
3462
|
+
* @summary Generate Report
|
|
3463
|
+
* @param {string} companyId
|
|
3464
|
+
* @param {string} reportType
|
|
3465
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
3285
3466
|
* @param {string} [authorization]
|
|
3286
3467
|
* @param {string} [sessionId]
|
|
3287
3468
|
* @param {*} [options] Override http request option.
|
|
3288
3469
|
* @throws {RequiredError}
|
|
3289
|
-
* @memberof
|
|
3470
|
+
* @memberof ReportsApi
|
|
3290
3471
|
*/
|
|
3291
|
-
|
|
3292
|
-
return
|
|
3472
|
+
generateReportV1ReportsGeneratePost(companyId, reportType, requestBody, authorization, sessionId, options) {
|
|
3473
|
+
return ReportsApiFp(this.configuration).generateReportV1ReportsGeneratePost(companyId, reportType, requestBody, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
3474
|
+
}
|
|
3475
|
+
/**
|
|
3476
|
+
*
|
|
3477
|
+
* @summary Get Evidence
|
|
3478
|
+
* @param {string} reportId
|
|
3479
|
+
* @param {string} evidenceId
|
|
3480
|
+
* @param {string} [authorization]
|
|
3481
|
+
* @param {string} [sessionId]
|
|
3482
|
+
* @param {*} [options] Override http request option.
|
|
3483
|
+
* @throws {RequiredError}
|
|
3484
|
+
* @memberof ReportsApi
|
|
3485
|
+
*/
|
|
3486
|
+
getEvidenceV1ReportsEvidenceReportIdEvidenceIdGet(reportId, evidenceId, authorization, sessionId, options) {
|
|
3487
|
+
return ReportsApiFp(this.configuration).getEvidenceV1ReportsEvidenceReportIdEvidenceIdGet(reportId, evidenceId, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
3488
|
+
}
|
|
3489
|
+
/**
|
|
3490
|
+
*
|
|
3491
|
+
* @summary List Reports
|
|
3492
|
+
* @param {string} companyId
|
|
3493
|
+
* @param {number} [page]
|
|
3494
|
+
* @param {number} [elements]
|
|
3495
|
+
* @param {string} [authorization]
|
|
3496
|
+
* @param {string} [sessionId]
|
|
3497
|
+
* @param {*} [options] Override http request option.
|
|
3498
|
+
* @throws {RequiredError}
|
|
3499
|
+
* @memberof ReportsApi
|
|
3500
|
+
*/
|
|
3501
|
+
listReportsV1ReportsListCompanyIdGet(companyId, page, elements, authorization, sessionId, options) {
|
|
3502
|
+
return ReportsApiFp(this.configuration).listReportsV1ReportsListCompanyIdGet(companyId, page, elements, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
3503
|
+
}
|
|
3504
|
+
}
|
|
3505
|
+
/**
|
|
3506
|
+
* RolesApi - axios parameter creator
|
|
3507
|
+
* @export
|
|
3508
|
+
*/
|
|
3509
|
+
export const RolesApiAxiosParamCreator = function (configuration) {
|
|
3510
|
+
return {
|
|
3511
|
+
/**
|
|
3512
|
+
* Add people to company
|
|
3513
|
+
* @summary Invite
|
|
3514
|
+
* @param {InviteToCompany} inviteToCompany
|
|
3515
|
+
* @param {string} [authorization]
|
|
3516
|
+
* @param {string} [sessionId]
|
|
3517
|
+
* @param {*} [options] Override http request option.
|
|
3518
|
+
* @throws {RequiredError}
|
|
3519
|
+
*/
|
|
3520
|
+
inviteV1RolesInvitesPost: (inviteToCompany_1, authorization_1, sessionId_1, ...args_1) => __awaiter(this, [inviteToCompany_1, authorization_1, sessionId_1, ...args_1], void 0, function* (inviteToCompany, authorization, sessionId, options = {}) {
|
|
3521
|
+
// verify required parameter 'inviteToCompany' is not null or undefined
|
|
3522
|
+
assertParamExists('inviteV1RolesInvitesPost', 'inviteToCompany', inviteToCompany);
|
|
3523
|
+
const localVarPath = `/v1/roles/invites`;
|
|
3524
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3525
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3526
|
+
let baseOptions;
|
|
3527
|
+
if (configuration) {
|
|
3528
|
+
baseOptions = configuration.baseOptions;
|
|
3529
|
+
}
|
|
3530
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3531
|
+
const localVarHeaderParameter = {};
|
|
3532
|
+
const localVarQueryParameter = {};
|
|
3533
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3534
|
+
if (authorization != null) {
|
|
3535
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
3536
|
+
}
|
|
3537
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3538
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3539
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3540
|
+
localVarRequestOptions.data = serializeDataIfNeeded(inviteToCompany, localVarRequestOptions, configuration);
|
|
3541
|
+
return {
|
|
3542
|
+
url: toPathString(localVarUrlObj),
|
|
3543
|
+
options: localVarRequestOptions,
|
|
3544
|
+
};
|
|
3545
|
+
}),
|
|
3546
|
+
/**
|
|
3547
|
+
* Remove people from company
|
|
3548
|
+
* @summary Remove People
|
|
3549
|
+
* @param {RemoveFromCompany} removeFromCompany
|
|
3550
|
+
* @param {string} [authorization]
|
|
3551
|
+
* @param {string} [sessionId]
|
|
3552
|
+
* @param {*} [options] Override http request option.
|
|
3553
|
+
* @throws {RequiredError}
|
|
3554
|
+
*/
|
|
3555
|
+
removePeopleV1RolesInvitesDelete: (removeFromCompany_1, authorization_1, sessionId_1, ...args_1) => __awaiter(this, [removeFromCompany_1, authorization_1, sessionId_1, ...args_1], void 0, function* (removeFromCompany, authorization, sessionId, options = {}) {
|
|
3556
|
+
// verify required parameter 'removeFromCompany' is not null or undefined
|
|
3557
|
+
assertParamExists('removePeopleV1RolesInvitesDelete', 'removeFromCompany', removeFromCompany);
|
|
3558
|
+
const localVarPath = `/v1/roles/invites`;
|
|
3559
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3560
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3561
|
+
let baseOptions;
|
|
3562
|
+
if (configuration) {
|
|
3563
|
+
baseOptions = configuration.baseOptions;
|
|
3564
|
+
}
|
|
3565
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
3566
|
+
const localVarHeaderParameter = {};
|
|
3567
|
+
const localVarQueryParameter = {};
|
|
3568
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3569
|
+
if (authorization != null) {
|
|
3570
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
3571
|
+
}
|
|
3572
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3573
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3574
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3575
|
+
localVarRequestOptions.data = serializeDataIfNeeded(removeFromCompany, localVarRequestOptions, configuration);
|
|
3576
|
+
return {
|
|
3577
|
+
url: toPathString(localVarUrlObj),
|
|
3578
|
+
options: localVarRequestOptions,
|
|
3579
|
+
};
|
|
3580
|
+
}),
|
|
3581
|
+
};
|
|
3582
|
+
};
|
|
3583
|
+
/**
|
|
3584
|
+
* RolesApi - functional programming interface
|
|
3585
|
+
* @export
|
|
3586
|
+
*/
|
|
3587
|
+
export const RolesApiFp = function (configuration) {
|
|
3588
|
+
const localVarAxiosParamCreator = RolesApiAxiosParamCreator(configuration);
|
|
3589
|
+
return {
|
|
3590
|
+
/**
|
|
3591
|
+
* Add people to company
|
|
3592
|
+
* @summary Invite
|
|
3593
|
+
* @param {InviteToCompany} inviteToCompany
|
|
3594
|
+
* @param {string} [authorization]
|
|
3595
|
+
* @param {string} [sessionId]
|
|
3596
|
+
* @param {*} [options] Override http request option.
|
|
3597
|
+
* @throws {RequiredError}
|
|
3598
|
+
*/
|
|
3599
|
+
inviteV1RolesInvitesPost(inviteToCompany, authorization, sessionId, options) {
|
|
3600
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3601
|
+
var _a, _b, _c;
|
|
3602
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.inviteV1RolesInvitesPost(inviteToCompany, authorization, sessionId, options);
|
|
3603
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3604
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RolesApi.inviteV1RolesInvitesPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3605
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3606
|
+
});
|
|
3607
|
+
},
|
|
3608
|
+
/**
|
|
3609
|
+
* Remove people from company
|
|
3610
|
+
* @summary Remove People
|
|
3611
|
+
* @param {RemoveFromCompany} removeFromCompany
|
|
3612
|
+
* @param {string} [authorization]
|
|
3613
|
+
* @param {string} [sessionId]
|
|
3614
|
+
* @param {*} [options] Override http request option.
|
|
3615
|
+
* @throws {RequiredError}
|
|
3616
|
+
*/
|
|
3617
|
+
removePeopleV1RolesInvitesDelete(removeFromCompany, authorization, sessionId, options) {
|
|
3618
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3619
|
+
var _a, _b, _c;
|
|
3620
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.removePeopleV1RolesInvitesDelete(removeFromCompany, authorization, sessionId, options);
|
|
3621
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3622
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RolesApi.removePeopleV1RolesInvitesDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3623
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3624
|
+
});
|
|
3625
|
+
},
|
|
3626
|
+
};
|
|
3627
|
+
};
|
|
3628
|
+
/**
|
|
3629
|
+
* RolesApi - factory interface
|
|
3630
|
+
* @export
|
|
3631
|
+
*/
|
|
3632
|
+
export const RolesApiFactory = function (configuration, basePath, axios) {
|
|
3633
|
+
const localVarFp = RolesApiFp(configuration);
|
|
3634
|
+
return {
|
|
3635
|
+
/**
|
|
3636
|
+
* Add people to company
|
|
3637
|
+
* @summary Invite
|
|
3638
|
+
* @param {InviteToCompany} inviteToCompany
|
|
3639
|
+
* @param {string} [authorization]
|
|
3640
|
+
* @param {string} [sessionId]
|
|
3641
|
+
* @param {*} [options] Override http request option.
|
|
3642
|
+
* @throws {RequiredError}
|
|
3643
|
+
*/
|
|
3644
|
+
inviteV1RolesInvitesPost(inviteToCompany, authorization, sessionId, options) {
|
|
3645
|
+
return localVarFp.inviteV1RolesInvitesPost(inviteToCompany, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
3646
|
+
},
|
|
3647
|
+
/**
|
|
3648
|
+
* Remove people from company
|
|
3649
|
+
* @summary Remove People
|
|
3650
|
+
* @param {RemoveFromCompany} removeFromCompany
|
|
3651
|
+
* @param {string} [authorization]
|
|
3652
|
+
* @param {string} [sessionId]
|
|
3653
|
+
* @param {*} [options] Override http request option.
|
|
3654
|
+
* @throws {RequiredError}
|
|
3655
|
+
*/
|
|
3656
|
+
removePeopleV1RolesInvitesDelete(removeFromCompany, authorization, sessionId, options) {
|
|
3657
|
+
return localVarFp.removePeopleV1RolesInvitesDelete(removeFromCompany, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
3658
|
+
},
|
|
3659
|
+
};
|
|
3660
|
+
};
|
|
3661
|
+
/**
|
|
3662
|
+
* RolesApi - object-oriented interface
|
|
3663
|
+
* @export
|
|
3664
|
+
* @class RolesApi
|
|
3665
|
+
* @extends {BaseAPI}
|
|
3666
|
+
*/
|
|
3667
|
+
export class RolesApi extends BaseAPI {
|
|
3668
|
+
/**
|
|
3669
|
+
* Add people to company
|
|
3670
|
+
* @summary Invite
|
|
3671
|
+
* @param {InviteToCompany} inviteToCompany
|
|
3672
|
+
* @param {string} [authorization]
|
|
3673
|
+
* @param {string} [sessionId]
|
|
3674
|
+
* @param {*} [options] Override http request option.
|
|
3675
|
+
* @throws {RequiredError}
|
|
3676
|
+
* @memberof RolesApi
|
|
3677
|
+
*/
|
|
3678
|
+
inviteV1RolesInvitesPost(inviteToCompany, authorization, sessionId, options) {
|
|
3679
|
+
return RolesApiFp(this.configuration).inviteV1RolesInvitesPost(inviteToCompany, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
3680
|
+
}
|
|
3681
|
+
/**
|
|
3682
|
+
* Remove people from company
|
|
3683
|
+
* @summary Remove People
|
|
3684
|
+
* @param {RemoveFromCompany} removeFromCompany
|
|
3685
|
+
* @param {string} [authorization]
|
|
3686
|
+
* @param {string} [sessionId]
|
|
3687
|
+
* @param {*} [options] Override http request option.
|
|
3688
|
+
* @throws {RequiredError}
|
|
3689
|
+
* @memberof RolesApi
|
|
3690
|
+
*/
|
|
3691
|
+
removePeopleV1RolesInvitesDelete(removeFromCompany, authorization, sessionId, options) {
|
|
3692
|
+
return RolesApiFp(this.configuration).removePeopleV1RolesInvitesDelete(removeFromCompany, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
3693
|
+
}
|
|
3694
|
+
}
|
|
3695
|
+
/**
|
|
3696
|
+
* TasksApi - axios parameter creator
|
|
3697
|
+
* @export
|
|
3698
|
+
*/
|
|
3699
|
+
export const TasksApiAxiosParamCreator = function (configuration) {
|
|
3700
|
+
return {
|
|
3701
|
+
/**
|
|
3702
|
+
*
|
|
3703
|
+
* @summary Create Task
|
|
3704
|
+
* @param {CreateTaskSchema} createTaskSchema
|
|
3705
|
+
* @param {string} [authorization]
|
|
3706
|
+
* @param {string} [sessionId]
|
|
3707
|
+
* @param {*} [options] Override http request option.
|
|
3708
|
+
* @throws {RequiredError}
|
|
3709
|
+
*/
|
|
3710
|
+
createTaskV1TasksPost: (createTaskSchema_1, authorization_1, sessionId_1, ...args_1) => __awaiter(this, [createTaskSchema_1, authorization_1, sessionId_1, ...args_1], void 0, function* (createTaskSchema, authorization, sessionId, options = {}) {
|
|
3711
|
+
// verify required parameter 'createTaskSchema' is not null or undefined
|
|
3712
|
+
assertParamExists('createTaskV1TasksPost', 'createTaskSchema', createTaskSchema);
|
|
3713
|
+
const localVarPath = `/v1/tasks/`;
|
|
3714
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3715
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3716
|
+
let baseOptions;
|
|
3717
|
+
if (configuration) {
|
|
3718
|
+
baseOptions = configuration.baseOptions;
|
|
3719
|
+
}
|
|
3720
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3721
|
+
const localVarHeaderParameter = {};
|
|
3722
|
+
const localVarQueryParameter = {};
|
|
3723
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3724
|
+
if (authorization != null) {
|
|
3725
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
3726
|
+
}
|
|
3727
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3728
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3729
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3730
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createTaskSchema, localVarRequestOptions, configuration);
|
|
3731
|
+
return {
|
|
3732
|
+
url: toPathString(localVarUrlObj),
|
|
3733
|
+
options: localVarRequestOptions,
|
|
3734
|
+
};
|
|
3735
|
+
}),
|
|
3736
|
+
/**
|
|
3737
|
+
*
|
|
3738
|
+
* @summary Delete Task
|
|
3739
|
+
* @param {DeleteTaskSchema} deleteTaskSchema
|
|
3740
|
+
* @param {string} [authorization]
|
|
3741
|
+
* @param {string} [sessionId]
|
|
3742
|
+
* @param {*} [options] Override http request option.
|
|
3743
|
+
* @throws {RequiredError}
|
|
3744
|
+
*/
|
|
3745
|
+
deleteTaskV1TasksDelete: (deleteTaskSchema_1, authorization_1, sessionId_1, ...args_1) => __awaiter(this, [deleteTaskSchema_1, authorization_1, sessionId_1, ...args_1], void 0, function* (deleteTaskSchema, authorization, sessionId, options = {}) {
|
|
3746
|
+
// verify required parameter 'deleteTaskSchema' is not null or undefined
|
|
3747
|
+
assertParamExists('deleteTaskV1TasksDelete', 'deleteTaskSchema', deleteTaskSchema);
|
|
3748
|
+
const localVarPath = `/v1/tasks/`;
|
|
3749
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3750
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3751
|
+
let baseOptions;
|
|
3752
|
+
if (configuration) {
|
|
3753
|
+
baseOptions = configuration.baseOptions;
|
|
3754
|
+
}
|
|
3755
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
3756
|
+
const localVarHeaderParameter = {};
|
|
3757
|
+
const localVarQueryParameter = {};
|
|
3758
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3759
|
+
if (authorization != null) {
|
|
3760
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
3761
|
+
}
|
|
3762
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3763
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3764
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3765
|
+
localVarRequestOptions.data = serializeDataIfNeeded(deleteTaskSchema, localVarRequestOptions, configuration);
|
|
3766
|
+
return {
|
|
3767
|
+
url: toPathString(localVarUrlObj),
|
|
3768
|
+
options: localVarRequestOptions,
|
|
3769
|
+
};
|
|
3770
|
+
}),
|
|
3771
|
+
/**
|
|
3772
|
+
*
|
|
3773
|
+
* @summary List Tasks For Company
|
|
3774
|
+
* @param {string} companyId
|
|
3775
|
+
* @param {number} [page]
|
|
3776
|
+
* @param {number} [elements]
|
|
3777
|
+
* @param {string} [authorization]
|
|
3778
|
+
* @param {string} [sessionId]
|
|
3779
|
+
* @param {*} [options] Override http request option.
|
|
3780
|
+
* @throws {RequiredError}
|
|
3781
|
+
*/
|
|
3782
|
+
listTasksForCompanyV1TasksCompanyGet: (companyId_1, page_1, elements_1, authorization_1, sessionId_1, ...args_1) => __awaiter(this, [companyId_1, page_1, elements_1, authorization_1, sessionId_1, ...args_1], void 0, function* (companyId, page, elements, authorization, sessionId, options = {}) {
|
|
3783
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
3784
|
+
assertParamExists('listTasksForCompanyV1TasksCompanyGet', 'companyId', companyId);
|
|
3785
|
+
const localVarPath = `/v1/tasks/company`;
|
|
3786
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3787
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3788
|
+
let baseOptions;
|
|
3789
|
+
if (configuration) {
|
|
3790
|
+
baseOptions = configuration.baseOptions;
|
|
3791
|
+
}
|
|
3792
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3793
|
+
const localVarHeaderParameter = {};
|
|
3794
|
+
const localVarQueryParameter = {};
|
|
3795
|
+
if (companyId !== undefined) {
|
|
3796
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
3797
|
+
}
|
|
3798
|
+
if (page !== undefined) {
|
|
3799
|
+
localVarQueryParameter['page'] = page;
|
|
3800
|
+
}
|
|
3801
|
+
if (elements !== undefined) {
|
|
3802
|
+
localVarQueryParameter['elements'] = elements;
|
|
3803
|
+
}
|
|
3804
|
+
if (authorization != null) {
|
|
3805
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
3806
|
+
}
|
|
3807
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3808
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3809
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3810
|
+
return {
|
|
3811
|
+
url: toPathString(localVarUrlObj),
|
|
3812
|
+
options: localVarRequestOptions,
|
|
3813
|
+
};
|
|
3814
|
+
}),
|
|
3815
|
+
/**
|
|
3816
|
+
*
|
|
3817
|
+
* @summary List Tasks For User
|
|
3818
|
+
* @param {string} companyId
|
|
3819
|
+
* @param {number} [page]
|
|
3820
|
+
* @param {number} [elements]
|
|
3821
|
+
* @param {string} [authorization]
|
|
3822
|
+
* @param {string} [sessionId]
|
|
3823
|
+
* @param {*} [options] Override http request option.
|
|
3824
|
+
* @throws {RequiredError}
|
|
3825
|
+
*/
|
|
3826
|
+
listTasksForUserV1TasksUserGet: (companyId_1, page_1, elements_1, authorization_1, sessionId_1, ...args_1) => __awaiter(this, [companyId_1, page_1, elements_1, authorization_1, sessionId_1, ...args_1], void 0, function* (companyId, page, elements, authorization, sessionId, options = {}) {
|
|
3827
|
+
// verify required parameter 'companyId' is not null or undefined
|
|
3828
|
+
assertParamExists('listTasksForUserV1TasksUserGet', 'companyId', companyId);
|
|
3829
|
+
const localVarPath = `/v1/tasks/user`;
|
|
3830
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3831
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3832
|
+
let baseOptions;
|
|
3833
|
+
if (configuration) {
|
|
3834
|
+
baseOptions = configuration.baseOptions;
|
|
3835
|
+
}
|
|
3836
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3837
|
+
const localVarHeaderParameter = {};
|
|
3838
|
+
const localVarQueryParameter = {};
|
|
3839
|
+
if (companyId !== undefined) {
|
|
3840
|
+
localVarQueryParameter['company_id'] = companyId;
|
|
3841
|
+
}
|
|
3842
|
+
if (page !== undefined) {
|
|
3843
|
+
localVarQueryParameter['page'] = page;
|
|
3844
|
+
}
|
|
3845
|
+
if (elements !== undefined) {
|
|
3846
|
+
localVarQueryParameter['elements'] = elements;
|
|
3847
|
+
}
|
|
3848
|
+
if (authorization != null) {
|
|
3849
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
3850
|
+
}
|
|
3851
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3852
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3853
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3854
|
+
return {
|
|
3855
|
+
url: toPathString(localVarUrlObj),
|
|
3856
|
+
options: localVarRequestOptions,
|
|
3857
|
+
};
|
|
3858
|
+
}),
|
|
3859
|
+
/**
|
|
3860
|
+
*
|
|
3861
|
+
* @summary Request Task Scheduling
|
|
3862
|
+
* @param {SchedulerRequest} schedulerRequest
|
|
3863
|
+
* @param {string} [authorization]
|
|
3864
|
+
* @param {string} [sessionId]
|
|
3865
|
+
* @param {*} [options] Override http request option.
|
|
3866
|
+
* @throws {RequiredError}
|
|
3867
|
+
*/
|
|
3868
|
+
requestTaskSchedulingV1TasksSchedulePost: (schedulerRequest_1, authorization_1, sessionId_1, ...args_1) => __awaiter(this, [schedulerRequest_1, authorization_1, sessionId_1, ...args_1], void 0, function* (schedulerRequest, authorization, sessionId, options = {}) {
|
|
3869
|
+
// verify required parameter 'schedulerRequest' is not null or undefined
|
|
3870
|
+
assertParamExists('requestTaskSchedulingV1TasksSchedulePost', 'schedulerRequest', schedulerRequest);
|
|
3871
|
+
const localVarPath = `/v1/tasks/schedule`;
|
|
3872
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3873
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3874
|
+
let baseOptions;
|
|
3875
|
+
if (configuration) {
|
|
3876
|
+
baseOptions = configuration.baseOptions;
|
|
3877
|
+
}
|
|
3878
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3879
|
+
const localVarHeaderParameter = {};
|
|
3880
|
+
const localVarQueryParameter = {};
|
|
3881
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3882
|
+
if (authorization != null) {
|
|
3883
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
3884
|
+
}
|
|
3885
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3886
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3887
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3888
|
+
localVarRequestOptions.data = serializeDataIfNeeded(schedulerRequest, localVarRequestOptions, configuration);
|
|
3889
|
+
return {
|
|
3890
|
+
url: toPathString(localVarUrlObj),
|
|
3891
|
+
options: localVarRequestOptions,
|
|
3892
|
+
};
|
|
3893
|
+
}),
|
|
3894
|
+
/**
|
|
3895
|
+
*
|
|
3896
|
+
* @summary Update Task
|
|
3897
|
+
* @param {UpdateTaskSchema} updateTaskSchema
|
|
3898
|
+
* @param {string} [authorization]
|
|
3899
|
+
* @param {string} [sessionId]
|
|
3900
|
+
* @param {*} [options] Override http request option.
|
|
3901
|
+
* @throws {RequiredError}
|
|
3902
|
+
*/
|
|
3903
|
+
updateTaskV1TasksPut: (updateTaskSchema_1, authorization_1, sessionId_1, ...args_1) => __awaiter(this, [updateTaskSchema_1, authorization_1, sessionId_1, ...args_1], void 0, function* (updateTaskSchema, authorization, sessionId, options = {}) {
|
|
3904
|
+
// verify required parameter 'updateTaskSchema' is not null or undefined
|
|
3905
|
+
assertParamExists('updateTaskV1TasksPut', 'updateTaskSchema', updateTaskSchema);
|
|
3906
|
+
const localVarPath = `/v1/tasks/`;
|
|
3907
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3908
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3909
|
+
let baseOptions;
|
|
3910
|
+
if (configuration) {
|
|
3911
|
+
baseOptions = configuration.baseOptions;
|
|
3912
|
+
}
|
|
3913
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
3914
|
+
const localVarHeaderParameter = {};
|
|
3915
|
+
const localVarQueryParameter = {};
|
|
3916
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3917
|
+
if (authorization != null) {
|
|
3918
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
3919
|
+
}
|
|
3920
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3921
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3922
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3923
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateTaskSchema, localVarRequestOptions, configuration);
|
|
3924
|
+
return {
|
|
3925
|
+
url: toPathString(localVarUrlObj),
|
|
3926
|
+
options: localVarRequestOptions,
|
|
3927
|
+
};
|
|
3928
|
+
}),
|
|
3929
|
+
};
|
|
3930
|
+
};
|
|
3931
|
+
/**
|
|
3932
|
+
* TasksApi - functional programming interface
|
|
3933
|
+
* @export
|
|
3934
|
+
*/
|
|
3935
|
+
export const TasksApiFp = function (configuration) {
|
|
3936
|
+
const localVarAxiosParamCreator = TasksApiAxiosParamCreator(configuration);
|
|
3937
|
+
return {
|
|
3938
|
+
/**
|
|
3939
|
+
*
|
|
3940
|
+
* @summary Create Task
|
|
3941
|
+
* @param {CreateTaskSchema} createTaskSchema
|
|
3942
|
+
* @param {string} [authorization]
|
|
3943
|
+
* @param {string} [sessionId]
|
|
3944
|
+
* @param {*} [options] Override http request option.
|
|
3945
|
+
* @throws {RequiredError}
|
|
3946
|
+
*/
|
|
3947
|
+
createTaskV1TasksPost(createTaskSchema, authorization, sessionId, options) {
|
|
3948
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3949
|
+
var _a, _b, _c;
|
|
3950
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createTaskV1TasksPost(createTaskSchema, authorization, sessionId, options);
|
|
3951
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3952
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TasksApi.createTaskV1TasksPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3953
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3954
|
+
});
|
|
3955
|
+
},
|
|
3956
|
+
/**
|
|
3957
|
+
*
|
|
3958
|
+
* @summary Delete Task
|
|
3959
|
+
* @param {DeleteTaskSchema} deleteTaskSchema
|
|
3960
|
+
* @param {string} [authorization]
|
|
3961
|
+
* @param {string} [sessionId]
|
|
3962
|
+
* @param {*} [options] Override http request option.
|
|
3963
|
+
* @throws {RequiredError}
|
|
3964
|
+
*/
|
|
3965
|
+
deleteTaskV1TasksDelete(deleteTaskSchema, authorization, sessionId, options) {
|
|
3966
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3967
|
+
var _a, _b, _c;
|
|
3968
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteTaskV1TasksDelete(deleteTaskSchema, authorization, sessionId, options);
|
|
3969
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3970
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TasksApi.deleteTaskV1TasksDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3971
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3972
|
+
});
|
|
3973
|
+
},
|
|
3974
|
+
/**
|
|
3975
|
+
*
|
|
3976
|
+
* @summary List Tasks For Company
|
|
3977
|
+
* @param {string} companyId
|
|
3978
|
+
* @param {number} [page]
|
|
3979
|
+
* @param {number} [elements]
|
|
3980
|
+
* @param {string} [authorization]
|
|
3981
|
+
* @param {string} [sessionId]
|
|
3982
|
+
* @param {*} [options] Override http request option.
|
|
3983
|
+
* @throws {RequiredError}
|
|
3984
|
+
*/
|
|
3985
|
+
listTasksForCompanyV1TasksCompanyGet(companyId, page, elements, authorization, sessionId, options) {
|
|
3986
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3987
|
+
var _a, _b, _c;
|
|
3988
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listTasksForCompanyV1TasksCompanyGet(companyId, page, elements, authorization, sessionId, options);
|
|
3989
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3990
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TasksApi.listTasksForCompanyV1TasksCompanyGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3991
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3992
|
+
});
|
|
3993
|
+
},
|
|
3994
|
+
/**
|
|
3995
|
+
*
|
|
3996
|
+
* @summary List Tasks For User
|
|
3997
|
+
* @param {string} companyId
|
|
3998
|
+
* @param {number} [page]
|
|
3999
|
+
* @param {number} [elements]
|
|
4000
|
+
* @param {string} [authorization]
|
|
4001
|
+
* @param {string} [sessionId]
|
|
4002
|
+
* @param {*} [options] Override http request option.
|
|
4003
|
+
* @throws {RequiredError}
|
|
4004
|
+
*/
|
|
4005
|
+
listTasksForUserV1TasksUserGet(companyId, page, elements, authorization, sessionId, options) {
|
|
4006
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4007
|
+
var _a, _b, _c;
|
|
4008
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listTasksForUserV1TasksUserGet(companyId, page, elements, authorization, sessionId, options);
|
|
4009
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4010
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TasksApi.listTasksForUserV1TasksUserGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4011
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4012
|
+
});
|
|
4013
|
+
},
|
|
4014
|
+
/**
|
|
4015
|
+
*
|
|
4016
|
+
* @summary Request Task Scheduling
|
|
4017
|
+
* @param {SchedulerRequest} schedulerRequest
|
|
4018
|
+
* @param {string} [authorization]
|
|
4019
|
+
* @param {string} [sessionId]
|
|
4020
|
+
* @param {*} [options] Override http request option.
|
|
4021
|
+
* @throws {RequiredError}
|
|
4022
|
+
*/
|
|
4023
|
+
requestTaskSchedulingV1TasksSchedulePost(schedulerRequest, authorization, sessionId, options) {
|
|
4024
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4025
|
+
var _a, _b, _c;
|
|
4026
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.requestTaskSchedulingV1TasksSchedulePost(schedulerRequest, authorization, sessionId, options);
|
|
4027
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4028
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TasksApi.requestTaskSchedulingV1TasksSchedulePost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4029
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4030
|
+
});
|
|
4031
|
+
},
|
|
4032
|
+
/**
|
|
4033
|
+
*
|
|
4034
|
+
* @summary Update Task
|
|
4035
|
+
* @param {UpdateTaskSchema} updateTaskSchema
|
|
4036
|
+
* @param {string} [authorization]
|
|
4037
|
+
* @param {string} [sessionId]
|
|
4038
|
+
* @param {*} [options] Override http request option.
|
|
4039
|
+
* @throws {RequiredError}
|
|
4040
|
+
*/
|
|
4041
|
+
updateTaskV1TasksPut(updateTaskSchema, authorization, sessionId, options) {
|
|
4042
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4043
|
+
var _a, _b, _c;
|
|
4044
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateTaskV1TasksPut(updateTaskSchema, authorization, sessionId, options);
|
|
4045
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4046
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TasksApi.updateTaskV1TasksPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4047
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4048
|
+
});
|
|
4049
|
+
},
|
|
4050
|
+
};
|
|
4051
|
+
};
|
|
4052
|
+
/**
|
|
4053
|
+
* TasksApi - factory interface
|
|
4054
|
+
* @export
|
|
4055
|
+
*/
|
|
4056
|
+
export const TasksApiFactory = function (configuration, basePath, axios) {
|
|
4057
|
+
const localVarFp = TasksApiFp(configuration);
|
|
4058
|
+
return {
|
|
4059
|
+
/**
|
|
4060
|
+
*
|
|
4061
|
+
* @summary Create Task
|
|
4062
|
+
* @param {CreateTaskSchema} createTaskSchema
|
|
4063
|
+
* @param {string} [authorization]
|
|
4064
|
+
* @param {string} [sessionId]
|
|
4065
|
+
* @param {*} [options] Override http request option.
|
|
4066
|
+
* @throws {RequiredError}
|
|
4067
|
+
*/
|
|
4068
|
+
createTaskV1TasksPost(createTaskSchema, authorization, sessionId, options) {
|
|
4069
|
+
return localVarFp.createTaskV1TasksPost(createTaskSchema, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
4070
|
+
},
|
|
4071
|
+
/**
|
|
4072
|
+
*
|
|
4073
|
+
* @summary Delete Task
|
|
4074
|
+
* @param {DeleteTaskSchema} deleteTaskSchema
|
|
4075
|
+
* @param {string} [authorization]
|
|
4076
|
+
* @param {string} [sessionId]
|
|
4077
|
+
* @param {*} [options] Override http request option.
|
|
4078
|
+
* @throws {RequiredError}
|
|
4079
|
+
*/
|
|
4080
|
+
deleteTaskV1TasksDelete(deleteTaskSchema, authorization, sessionId, options) {
|
|
4081
|
+
return localVarFp.deleteTaskV1TasksDelete(deleteTaskSchema, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
4082
|
+
},
|
|
4083
|
+
/**
|
|
4084
|
+
*
|
|
4085
|
+
* @summary List Tasks For Company
|
|
4086
|
+
* @param {string} companyId
|
|
4087
|
+
* @param {number} [page]
|
|
4088
|
+
* @param {number} [elements]
|
|
4089
|
+
* @param {string} [authorization]
|
|
4090
|
+
* @param {string} [sessionId]
|
|
4091
|
+
* @param {*} [options] Override http request option.
|
|
4092
|
+
* @throws {RequiredError}
|
|
4093
|
+
*/
|
|
4094
|
+
listTasksForCompanyV1TasksCompanyGet(companyId, page, elements, authorization, sessionId, options) {
|
|
4095
|
+
return localVarFp.listTasksForCompanyV1TasksCompanyGet(companyId, page, elements, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
4096
|
+
},
|
|
4097
|
+
/**
|
|
4098
|
+
*
|
|
4099
|
+
* @summary List Tasks For User
|
|
4100
|
+
* @param {string} companyId
|
|
4101
|
+
* @param {number} [page]
|
|
4102
|
+
* @param {number} [elements]
|
|
4103
|
+
* @param {string} [authorization]
|
|
4104
|
+
* @param {string} [sessionId]
|
|
4105
|
+
* @param {*} [options] Override http request option.
|
|
4106
|
+
* @throws {RequiredError}
|
|
4107
|
+
*/
|
|
4108
|
+
listTasksForUserV1TasksUserGet(companyId, page, elements, authorization, sessionId, options) {
|
|
4109
|
+
return localVarFp.listTasksForUserV1TasksUserGet(companyId, page, elements, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
4110
|
+
},
|
|
4111
|
+
/**
|
|
4112
|
+
*
|
|
4113
|
+
* @summary Request Task Scheduling
|
|
4114
|
+
* @param {SchedulerRequest} schedulerRequest
|
|
4115
|
+
* @param {string} [authorization]
|
|
4116
|
+
* @param {string} [sessionId]
|
|
4117
|
+
* @param {*} [options] Override http request option.
|
|
4118
|
+
* @throws {RequiredError}
|
|
4119
|
+
*/
|
|
4120
|
+
requestTaskSchedulingV1TasksSchedulePost(schedulerRequest, authorization, sessionId, options) {
|
|
4121
|
+
return localVarFp.requestTaskSchedulingV1TasksSchedulePost(schedulerRequest, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
4122
|
+
},
|
|
4123
|
+
/**
|
|
4124
|
+
*
|
|
4125
|
+
* @summary Update Task
|
|
4126
|
+
* @param {UpdateTaskSchema} updateTaskSchema
|
|
4127
|
+
* @param {string} [authorization]
|
|
4128
|
+
* @param {string} [sessionId]
|
|
4129
|
+
* @param {*} [options] Override http request option.
|
|
4130
|
+
* @throws {RequiredError}
|
|
4131
|
+
*/
|
|
4132
|
+
updateTaskV1TasksPut(updateTaskSchema, authorization, sessionId, options) {
|
|
4133
|
+
return localVarFp.updateTaskV1TasksPut(updateTaskSchema, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
4134
|
+
},
|
|
4135
|
+
};
|
|
4136
|
+
};
|
|
4137
|
+
/**
|
|
4138
|
+
* TasksApi - object-oriented interface
|
|
4139
|
+
* @export
|
|
4140
|
+
* @class TasksApi
|
|
4141
|
+
* @extends {BaseAPI}
|
|
4142
|
+
*/
|
|
4143
|
+
export class TasksApi extends BaseAPI {
|
|
4144
|
+
/**
|
|
4145
|
+
*
|
|
4146
|
+
* @summary Create Task
|
|
4147
|
+
* @param {CreateTaskSchema} createTaskSchema
|
|
4148
|
+
* @param {string} [authorization]
|
|
4149
|
+
* @param {string} [sessionId]
|
|
4150
|
+
* @param {*} [options] Override http request option.
|
|
4151
|
+
* @throws {RequiredError}
|
|
4152
|
+
* @memberof TasksApi
|
|
4153
|
+
*/
|
|
4154
|
+
createTaskV1TasksPost(createTaskSchema, authorization, sessionId, options) {
|
|
4155
|
+
return TasksApiFp(this.configuration).createTaskV1TasksPost(createTaskSchema, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
4156
|
+
}
|
|
4157
|
+
/**
|
|
4158
|
+
*
|
|
4159
|
+
* @summary Delete Task
|
|
4160
|
+
* @param {DeleteTaskSchema} deleteTaskSchema
|
|
4161
|
+
* @param {string} [authorization]
|
|
4162
|
+
* @param {string} [sessionId]
|
|
4163
|
+
* @param {*} [options] Override http request option.
|
|
4164
|
+
* @throws {RequiredError}
|
|
4165
|
+
* @memberof TasksApi
|
|
4166
|
+
*/
|
|
4167
|
+
deleteTaskV1TasksDelete(deleteTaskSchema, authorization, sessionId, options) {
|
|
4168
|
+
return TasksApiFp(this.configuration).deleteTaskV1TasksDelete(deleteTaskSchema, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
4169
|
+
}
|
|
4170
|
+
/**
|
|
4171
|
+
*
|
|
4172
|
+
* @summary List Tasks For Company
|
|
4173
|
+
* @param {string} companyId
|
|
4174
|
+
* @param {number} [page]
|
|
4175
|
+
* @param {number} [elements]
|
|
4176
|
+
* @param {string} [authorization]
|
|
4177
|
+
* @param {string} [sessionId]
|
|
4178
|
+
* @param {*} [options] Override http request option.
|
|
4179
|
+
* @throws {RequiredError}
|
|
4180
|
+
* @memberof TasksApi
|
|
4181
|
+
*/
|
|
4182
|
+
listTasksForCompanyV1TasksCompanyGet(companyId, page, elements, authorization, sessionId, options) {
|
|
4183
|
+
return TasksApiFp(this.configuration).listTasksForCompanyV1TasksCompanyGet(companyId, page, elements, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
4184
|
+
}
|
|
4185
|
+
/**
|
|
4186
|
+
*
|
|
4187
|
+
* @summary List Tasks For User
|
|
4188
|
+
* @param {string} companyId
|
|
4189
|
+
* @param {number} [page]
|
|
4190
|
+
* @param {number} [elements]
|
|
4191
|
+
* @param {string} [authorization]
|
|
4192
|
+
* @param {string} [sessionId]
|
|
4193
|
+
* @param {*} [options] Override http request option.
|
|
4194
|
+
* @throws {RequiredError}
|
|
4195
|
+
* @memberof TasksApi
|
|
4196
|
+
*/
|
|
4197
|
+
listTasksForUserV1TasksUserGet(companyId, page, elements, authorization, sessionId, options) {
|
|
4198
|
+
return TasksApiFp(this.configuration).listTasksForUserV1TasksUserGet(companyId, page, elements, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
4199
|
+
}
|
|
4200
|
+
/**
|
|
4201
|
+
*
|
|
4202
|
+
* @summary Request Task Scheduling
|
|
4203
|
+
* @param {SchedulerRequest} schedulerRequest
|
|
4204
|
+
* @param {string} [authorization]
|
|
4205
|
+
* @param {string} [sessionId]
|
|
4206
|
+
* @param {*} [options] Override http request option.
|
|
4207
|
+
* @throws {RequiredError}
|
|
4208
|
+
* @memberof TasksApi
|
|
4209
|
+
*/
|
|
4210
|
+
requestTaskSchedulingV1TasksSchedulePost(schedulerRequest, authorization, sessionId, options) {
|
|
4211
|
+
return TasksApiFp(this.configuration).requestTaskSchedulingV1TasksSchedulePost(schedulerRequest, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
4212
|
+
}
|
|
4213
|
+
/**
|
|
4214
|
+
*
|
|
4215
|
+
* @summary Update Task
|
|
4216
|
+
* @param {UpdateTaskSchema} updateTaskSchema
|
|
4217
|
+
* @param {string} [authorization]
|
|
4218
|
+
* @param {string} [sessionId]
|
|
4219
|
+
* @param {*} [options] Override http request option.
|
|
4220
|
+
* @throws {RequiredError}
|
|
4221
|
+
* @memberof TasksApi
|
|
4222
|
+
*/
|
|
4223
|
+
updateTaskV1TasksPut(updateTaskSchema, authorization, sessionId, options) {
|
|
4224
|
+
return TasksApiFp(this.configuration).updateTaskV1TasksPut(updateTaskSchema, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
3293
4225
|
}
|
|
3294
4226
|
}
|
|
3295
4227
|
/**
|