@rasadov/lumoar-sdk 1.0.14 → 1.0.15
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 +3 -0
- package/api.ts +272 -16
- package/dist/api.d.ts +160 -9
- package/dist/api.js +224 -15
- package/docs/AuditLogEntity.md +2 -0
- package/docs/AuditLogSchema.md +1 -1
- package/docs/OrderBy.md +14 -0
- package/docs/TaskStatus.md +18 -0
- package/docs/TasksApi.md +95 -0
- package/docs/UpdateTaskStatus.md +22 -0
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -49,7 +49,8 @@ export const AuditLogEntity = {
|
|
|
49
49
|
Reports: 'reports',
|
|
50
50
|
Companies: 'companies',
|
|
51
51
|
Users: 'users',
|
|
52
|
-
Tasks: 'tasks'
|
|
52
|
+
Tasks: 'tasks',
|
|
53
|
+
TaskScheduler: 'task_scheduler'
|
|
53
54
|
};
|
|
54
55
|
/**
|
|
55
56
|
*
|
|
@@ -72,6 +73,17 @@ export const ControlStatus = {
|
|
|
72
73
|
Skipped: 'skipped',
|
|
73
74
|
PendingReview: 'pending_review'
|
|
74
75
|
};
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @export
|
|
79
|
+
* @enum {string}
|
|
80
|
+
*/
|
|
81
|
+
export const OrderBy = {
|
|
82
|
+
Priority: 'priority',
|
|
83
|
+
DueDate: 'due_date',
|
|
84
|
+
UpdatedAt: 'updated_at',
|
|
85
|
+
Status: 'status'
|
|
86
|
+
};
|
|
75
87
|
/**
|
|
76
88
|
*
|
|
77
89
|
* @export
|
|
@@ -83,6 +95,19 @@ export const PermissionType = {
|
|
|
83
95
|
Member: 'member',
|
|
84
96
|
Auditor: 'auditor'
|
|
85
97
|
};
|
|
98
|
+
/**
|
|
99
|
+
*
|
|
100
|
+
* @export
|
|
101
|
+
* @enum {string}
|
|
102
|
+
*/
|
|
103
|
+
export const TaskStatus = {
|
|
104
|
+
NotStarted: 'not_started',
|
|
105
|
+
InProgress: 'in_progress',
|
|
106
|
+
Completed: 'completed',
|
|
107
|
+
PendingReview: 'pending_review',
|
|
108
|
+
Failed: 'failed',
|
|
109
|
+
Skipped: 'skipped'
|
|
110
|
+
};
|
|
86
111
|
/**
|
|
87
112
|
* AuditLogsApi - axios parameter creator
|
|
88
113
|
* @export
|
|
@@ -3833,12 +3858,18 @@ export const TasksApiAxiosParamCreator = function (configuration) {
|
|
|
3833
3858
|
* @param {string} companyId
|
|
3834
3859
|
* @param {number} [page]
|
|
3835
3860
|
* @param {number} [elements]
|
|
3861
|
+
* @param {string | null} [dueDateFrom]
|
|
3862
|
+
* @param {string | null} [dueDateTo]
|
|
3863
|
+
* @param {number | null} [priority]
|
|
3864
|
+
* @param {TaskStatus | null} [status]
|
|
3865
|
+
* @param {OrderBy | null} [orderBy]
|
|
3866
|
+
* @param {ListTasksForCompanyV1TasksCompanyGetOrderEnum} [order]
|
|
3836
3867
|
* @param {string} [authorization]
|
|
3837
3868
|
* @param {string} [sessionId]
|
|
3838
3869
|
* @param {*} [options] Override http request option.
|
|
3839
3870
|
* @throws {RequiredError}
|
|
3840
3871
|
*/
|
|
3841
|
-
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 = {}) {
|
|
3872
|
+
listTasksForCompanyV1TasksCompanyGet: (companyId_1, page_1, elements_1, dueDateFrom_1, dueDateTo_1, priority_1, status_1, orderBy_1, order_1, authorization_1, sessionId_1, ...args_1) => __awaiter(this, [companyId_1, page_1, elements_1, dueDateFrom_1, dueDateTo_1, priority_1, status_1, orderBy_1, order_1, authorization_1, sessionId_1, ...args_1], void 0, function* (companyId, page, elements, dueDateFrom, dueDateTo, priority, status, orderBy, order, authorization, sessionId, options = {}) {
|
|
3842
3873
|
// verify required parameter 'companyId' is not null or undefined
|
|
3843
3874
|
assertParamExists('listTasksForCompanyV1TasksCompanyGet', 'companyId', companyId);
|
|
3844
3875
|
const localVarPath = `/v1/tasks/company`;
|
|
@@ -3860,6 +3891,28 @@ export const TasksApiAxiosParamCreator = function (configuration) {
|
|
|
3860
3891
|
if (elements !== undefined) {
|
|
3861
3892
|
localVarQueryParameter['elements'] = elements;
|
|
3862
3893
|
}
|
|
3894
|
+
if (dueDateFrom !== undefined) {
|
|
3895
|
+
localVarQueryParameter['due_date_from'] = (dueDateFrom instanceof Date) ?
|
|
3896
|
+
dueDateFrom.toISOString() :
|
|
3897
|
+
dueDateFrom;
|
|
3898
|
+
}
|
|
3899
|
+
if (dueDateTo !== undefined) {
|
|
3900
|
+
localVarQueryParameter['due_date_to'] = (dueDateTo instanceof Date) ?
|
|
3901
|
+
dueDateTo.toISOString() :
|
|
3902
|
+
dueDateTo;
|
|
3903
|
+
}
|
|
3904
|
+
if (priority !== undefined) {
|
|
3905
|
+
localVarQueryParameter['priority'] = priority;
|
|
3906
|
+
}
|
|
3907
|
+
if (status !== undefined) {
|
|
3908
|
+
localVarQueryParameter['status'] = status;
|
|
3909
|
+
}
|
|
3910
|
+
if (orderBy !== undefined) {
|
|
3911
|
+
localVarQueryParameter['order_by'] = orderBy;
|
|
3912
|
+
}
|
|
3913
|
+
if (order !== undefined) {
|
|
3914
|
+
localVarQueryParameter['order'] = order;
|
|
3915
|
+
}
|
|
3863
3916
|
if (authorization != null) {
|
|
3864
3917
|
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
3865
3918
|
}
|
|
@@ -3877,12 +3930,18 @@ export const TasksApiAxiosParamCreator = function (configuration) {
|
|
|
3877
3930
|
* @param {string} companyId
|
|
3878
3931
|
* @param {number} [page]
|
|
3879
3932
|
* @param {number} [elements]
|
|
3933
|
+
* @param {string | null} [dueDateFrom]
|
|
3934
|
+
* @param {string | null} [dueDateTo]
|
|
3935
|
+
* @param {number | null} [priority]
|
|
3936
|
+
* @param {TaskStatus | null} [status]
|
|
3937
|
+
* @param {OrderBy | null} [orderBy]
|
|
3938
|
+
* @param {ListTasksForUserV1TasksUserGetOrderEnum} [order]
|
|
3880
3939
|
* @param {string} [authorization]
|
|
3881
3940
|
* @param {string} [sessionId]
|
|
3882
3941
|
* @param {*} [options] Override http request option.
|
|
3883
3942
|
* @throws {RequiredError}
|
|
3884
3943
|
*/
|
|
3885
|
-
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 = {}) {
|
|
3944
|
+
listTasksForUserV1TasksUserGet: (companyId_1, page_1, elements_1, dueDateFrom_1, dueDateTo_1, priority_1, status_1, orderBy_1, order_1, authorization_1, sessionId_1, ...args_1) => __awaiter(this, [companyId_1, page_1, elements_1, dueDateFrom_1, dueDateTo_1, priority_1, status_1, orderBy_1, order_1, authorization_1, sessionId_1, ...args_1], void 0, function* (companyId, page, elements, dueDateFrom, dueDateTo, priority, status, orderBy, order, authorization, sessionId, options = {}) {
|
|
3886
3945
|
// verify required parameter 'companyId' is not null or undefined
|
|
3887
3946
|
assertParamExists('listTasksForUserV1TasksUserGet', 'companyId', companyId);
|
|
3888
3947
|
const localVarPath = `/v1/tasks/user`;
|
|
@@ -3904,6 +3963,28 @@ export const TasksApiAxiosParamCreator = function (configuration) {
|
|
|
3904
3963
|
if (elements !== undefined) {
|
|
3905
3964
|
localVarQueryParameter['elements'] = elements;
|
|
3906
3965
|
}
|
|
3966
|
+
if (dueDateFrom !== undefined) {
|
|
3967
|
+
localVarQueryParameter['due_date_from'] = (dueDateFrom instanceof Date) ?
|
|
3968
|
+
dueDateFrom.toISOString() :
|
|
3969
|
+
dueDateFrom;
|
|
3970
|
+
}
|
|
3971
|
+
if (dueDateTo !== undefined) {
|
|
3972
|
+
localVarQueryParameter['due_date_to'] = (dueDateTo instanceof Date) ?
|
|
3973
|
+
dueDateTo.toISOString() :
|
|
3974
|
+
dueDateTo;
|
|
3975
|
+
}
|
|
3976
|
+
if (priority !== undefined) {
|
|
3977
|
+
localVarQueryParameter['priority'] = priority;
|
|
3978
|
+
}
|
|
3979
|
+
if (status !== undefined) {
|
|
3980
|
+
localVarQueryParameter['status'] = status;
|
|
3981
|
+
}
|
|
3982
|
+
if (orderBy !== undefined) {
|
|
3983
|
+
localVarQueryParameter['order_by'] = orderBy;
|
|
3984
|
+
}
|
|
3985
|
+
if (order !== undefined) {
|
|
3986
|
+
localVarQueryParameter['order'] = order;
|
|
3987
|
+
}
|
|
3907
3988
|
if (authorization != null) {
|
|
3908
3989
|
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
3909
3990
|
}
|
|
@@ -3950,6 +4031,41 @@ export const TasksApiAxiosParamCreator = function (configuration) {
|
|
|
3950
4031
|
options: localVarRequestOptions,
|
|
3951
4032
|
};
|
|
3952
4033
|
}),
|
|
4034
|
+
/**
|
|
4035
|
+
*
|
|
4036
|
+
* @summary Update Task Status
|
|
4037
|
+
* @param {UpdateTaskStatus} updateTaskStatus
|
|
4038
|
+
* @param {string} [authorization]
|
|
4039
|
+
* @param {string} [sessionId]
|
|
4040
|
+
* @param {*} [options] Override http request option.
|
|
4041
|
+
* @throws {RequiredError}
|
|
4042
|
+
*/
|
|
4043
|
+
updateTaskStatusV1TasksStatusPatch: (updateTaskStatus_1, authorization_1, sessionId_1, ...args_1) => __awaiter(this, [updateTaskStatus_1, authorization_1, sessionId_1, ...args_1], void 0, function* (updateTaskStatus, authorization, sessionId, options = {}) {
|
|
4044
|
+
// verify required parameter 'updateTaskStatus' is not null or undefined
|
|
4045
|
+
assertParamExists('updateTaskStatusV1TasksStatusPatch', 'updateTaskStatus', updateTaskStatus);
|
|
4046
|
+
const localVarPath = `/v1/tasks/status`;
|
|
4047
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4048
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4049
|
+
let baseOptions;
|
|
4050
|
+
if (configuration) {
|
|
4051
|
+
baseOptions = configuration.baseOptions;
|
|
4052
|
+
}
|
|
4053
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
4054
|
+
const localVarHeaderParameter = {};
|
|
4055
|
+
const localVarQueryParameter = {};
|
|
4056
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4057
|
+
if (authorization != null) {
|
|
4058
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
4059
|
+
}
|
|
4060
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4061
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4062
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4063
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateTaskStatus, localVarRequestOptions, configuration);
|
|
4064
|
+
return {
|
|
4065
|
+
url: toPathString(localVarUrlObj),
|
|
4066
|
+
options: localVarRequestOptions,
|
|
4067
|
+
};
|
|
4068
|
+
}),
|
|
3953
4069
|
/**
|
|
3954
4070
|
*
|
|
3955
4071
|
* @summary Update Task
|
|
@@ -4036,15 +4152,21 @@ export const TasksApiFp = function (configuration) {
|
|
|
4036
4152
|
* @param {string} companyId
|
|
4037
4153
|
* @param {number} [page]
|
|
4038
4154
|
* @param {number} [elements]
|
|
4155
|
+
* @param {string | null} [dueDateFrom]
|
|
4156
|
+
* @param {string | null} [dueDateTo]
|
|
4157
|
+
* @param {number | null} [priority]
|
|
4158
|
+
* @param {TaskStatus | null} [status]
|
|
4159
|
+
* @param {OrderBy | null} [orderBy]
|
|
4160
|
+
* @param {ListTasksForCompanyV1TasksCompanyGetOrderEnum} [order]
|
|
4039
4161
|
* @param {string} [authorization]
|
|
4040
4162
|
* @param {string} [sessionId]
|
|
4041
4163
|
* @param {*} [options] Override http request option.
|
|
4042
4164
|
* @throws {RequiredError}
|
|
4043
4165
|
*/
|
|
4044
|
-
listTasksForCompanyV1TasksCompanyGet(companyId, page, elements, authorization, sessionId, options) {
|
|
4166
|
+
listTasksForCompanyV1TasksCompanyGet(companyId, page, elements, dueDateFrom, dueDateTo, priority, status, orderBy, order, authorization, sessionId, options) {
|
|
4045
4167
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4046
4168
|
var _a, _b, _c;
|
|
4047
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listTasksForCompanyV1TasksCompanyGet(companyId, page, elements, authorization, sessionId, options);
|
|
4169
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listTasksForCompanyV1TasksCompanyGet(companyId, page, elements, dueDateFrom, dueDateTo, priority, status, orderBy, order, authorization, sessionId, options);
|
|
4048
4170
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4049
4171
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TasksApi.listTasksForCompanyV1TasksCompanyGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4050
4172
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -4056,15 +4178,21 @@ export const TasksApiFp = function (configuration) {
|
|
|
4056
4178
|
* @param {string} companyId
|
|
4057
4179
|
* @param {number} [page]
|
|
4058
4180
|
* @param {number} [elements]
|
|
4181
|
+
* @param {string | null} [dueDateFrom]
|
|
4182
|
+
* @param {string | null} [dueDateTo]
|
|
4183
|
+
* @param {number | null} [priority]
|
|
4184
|
+
* @param {TaskStatus | null} [status]
|
|
4185
|
+
* @param {OrderBy | null} [orderBy]
|
|
4186
|
+
* @param {ListTasksForUserV1TasksUserGetOrderEnum} [order]
|
|
4059
4187
|
* @param {string} [authorization]
|
|
4060
4188
|
* @param {string} [sessionId]
|
|
4061
4189
|
* @param {*} [options] Override http request option.
|
|
4062
4190
|
* @throws {RequiredError}
|
|
4063
4191
|
*/
|
|
4064
|
-
listTasksForUserV1TasksUserGet(companyId, page, elements, authorization, sessionId, options) {
|
|
4192
|
+
listTasksForUserV1TasksUserGet(companyId, page, elements, dueDateFrom, dueDateTo, priority, status, orderBy, order, authorization, sessionId, options) {
|
|
4065
4193
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4066
4194
|
var _a, _b, _c;
|
|
4067
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listTasksForUserV1TasksUserGet(companyId, page, elements, authorization, sessionId, options);
|
|
4195
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listTasksForUserV1TasksUserGet(companyId, page, elements, dueDateFrom, dueDateTo, priority, status, orderBy, order, authorization, sessionId, options);
|
|
4068
4196
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4069
4197
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TasksApi.listTasksForUserV1TasksUserGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4070
4198
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -4088,6 +4216,24 @@ export const TasksApiFp = function (configuration) {
|
|
|
4088
4216
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4089
4217
|
});
|
|
4090
4218
|
},
|
|
4219
|
+
/**
|
|
4220
|
+
*
|
|
4221
|
+
* @summary Update Task Status
|
|
4222
|
+
* @param {UpdateTaskStatus} updateTaskStatus
|
|
4223
|
+
* @param {string} [authorization]
|
|
4224
|
+
* @param {string} [sessionId]
|
|
4225
|
+
* @param {*} [options] Override http request option.
|
|
4226
|
+
* @throws {RequiredError}
|
|
4227
|
+
*/
|
|
4228
|
+
updateTaskStatusV1TasksStatusPatch(updateTaskStatus, authorization, sessionId, options) {
|
|
4229
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4230
|
+
var _a, _b, _c;
|
|
4231
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateTaskStatusV1TasksStatusPatch(updateTaskStatus, authorization, sessionId, options);
|
|
4232
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4233
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TasksApi.updateTaskStatusV1TasksStatusPatch']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4234
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4235
|
+
});
|
|
4236
|
+
},
|
|
4091
4237
|
/**
|
|
4092
4238
|
*
|
|
4093
4239
|
* @summary Update Task
|
|
@@ -4145,13 +4291,19 @@ export const TasksApiFactory = function (configuration, basePath, axios) {
|
|
|
4145
4291
|
* @param {string} companyId
|
|
4146
4292
|
* @param {number} [page]
|
|
4147
4293
|
* @param {number} [elements]
|
|
4294
|
+
* @param {string | null} [dueDateFrom]
|
|
4295
|
+
* @param {string | null} [dueDateTo]
|
|
4296
|
+
* @param {number | null} [priority]
|
|
4297
|
+
* @param {TaskStatus | null} [status]
|
|
4298
|
+
* @param {OrderBy | null} [orderBy]
|
|
4299
|
+
* @param {ListTasksForCompanyV1TasksCompanyGetOrderEnum} [order]
|
|
4148
4300
|
* @param {string} [authorization]
|
|
4149
4301
|
* @param {string} [sessionId]
|
|
4150
4302
|
* @param {*} [options] Override http request option.
|
|
4151
4303
|
* @throws {RequiredError}
|
|
4152
4304
|
*/
|
|
4153
|
-
listTasksForCompanyV1TasksCompanyGet(companyId, page, elements, authorization, sessionId, options) {
|
|
4154
|
-
return localVarFp.listTasksForCompanyV1TasksCompanyGet(companyId, page, elements, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
4305
|
+
listTasksForCompanyV1TasksCompanyGet(companyId, page, elements, dueDateFrom, dueDateTo, priority, status, orderBy, order, authorization, sessionId, options) {
|
|
4306
|
+
return localVarFp.listTasksForCompanyV1TasksCompanyGet(companyId, page, elements, dueDateFrom, dueDateTo, priority, status, orderBy, order, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
4155
4307
|
},
|
|
4156
4308
|
/**
|
|
4157
4309
|
*
|
|
@@ -4159,13 +4311,19 @@ export const TasksApiFactory = function (configuration, basePath, axios) {
|
|
|
4159
4311
|
* @param {string} companyId
|
|
4160
4312
|
* @param {number} [page]
|
|
4161
4313
|
* @param {number} [elements]
|
|
4314
|
+
* @param {string | null} [dueDateFrom]
|
|
4315
|
+
* @param {string | null} [dueDateTo]
|
|
4316
|
+
* @param {number | null} [priority]
|
|
4317
|
+
* @param {TaskStatus | null} [status]
|
|
4318
|
+
* @param {OrderBy | null} [orderBy]
|
|
4319
|
+
* @param {ListTasksForUserV1TasksUserGetOrderEnum} [order]
|
|
4162
4320
|
* @param {string} [authorization]
|
|
4163
4321
|
* @param {string} [sessionId]
|
|
4164
4322
|
* @param {*} [options] Override http request option.
|
|
4165
4323
|
* @throws {RequiredError}
|
|
4166
4324
|
*/
|
|
4167
|
-
listTasksForUserV1TasksUserGet(companyId, page, elements, authorization, sessionId, options) {
|
|
4168
|
-
return localVarFp.listTasksForUserV1TasksUserGet(companyId, page, elements, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
4325
|
+
listTasksForUserV1TasksUserGet(companyId, page, elements, dueDateFrom, dueDateTo, priority, status, orderBy, order, authorization, sessionId, options) {
|
|
4326
|
+
return localVarFp.listTasksForUserV1TasksUserGet(companyId, page, elements, dueDateFrom, dueDateTo, priority, status, orderBy, order, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
4169
4327
|
},
|
|
4170
4328
|
/**
|
|
4171
4329
|
*
|
|
@@ -4179,6 +4337,18 @@ export const TasksApiFactory = function (configuration, basePath, axios) {
|
|
|
4179
4337
|
requestTaskSchedulingV1TasksSchedulePost(schedulerRequest, authorization, sessionId, options) {
|
|
4180
4338
|
return localVarFp.requestTaskSchedulingV1TasksSchedulePost(schedulerRequest, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
4181
4339
|
},
|
|
4340
|
+
/**
|
|
4341
|
+
*
|
|
4342
|
+
* @summary Update Task Status
|
|
4343
|
+
* @param {UpdateTaskStatus} updateTaskStatus
|
|
4344
|
+
* @param {string} [authorization]
|
|
4345
|
+
* @param {string} [sessionId]
|
|
4346
|
+
* @param {*} [options] Override http request option.
|
|
4347
|
+
* @throws {RequiredError}
|
|
4348
|
+
*/
|
|
4349
|
+
updateTaskStatusV1TasksStatusPatch(updateTaskStatus, authorization, sessionId, options) {
|
|
4350
|
+
return localVarFp.updateTaskStatusV1TasksStatusPatch(updateTaskStatus, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
4351
|
+
},
|
|
4182
4352
|
/**
|
|
4183
4353
|
*
|
|
4184
4354
|
* @summary Update Task
|
|
@@ -4232,14 +4402,20 @@ export class TasksApi extends BaseAPI {
|
|
|
4232
4402
|
* @param {string} companyId
|
|
4233
4403
|
* @param {number} [page]
|
|
4234
4404
|
* @param {number} [elements]
|
|
4405
|
+
* @param {string | null} [dueDateFrom]
|
|
4406
|
+
* @param {string | null} [dueDateTo]
|
|
4407
|
+
* @param {number | null} [priority]
|
|
4408
|
+
* @param {TaskStatus | null} [status]
|
|
4409
|
+
* @param {OrderBy | null} [orderBy]
|
|
4410
|
+
* @param {ListTasksForCompanyV1TasksCompanyGetOrderEnum} [order]
|
|
4235
4411
|
* @param {string} [authorization]
|
|
4236
4412
|
* @param {string} [sessionId]
|
|
4237
4413
|
* @param {*} [options] Override http request option.
|
|
4238
4414
|
* @throws {RequiredError}
|
|
4239
4415
|
* @memberof TasksApi
|
|
4240
4416
|
*/
|
|
4241
|
-
listTasksForCompanyV1TasksCompanyGet(companyId, page, elements, authorization, sessionId, options) {
|
|
4242
|
-
return TasksApiFp(this.configuration).listTasksForCompanyV1TasksCompanyGet(companyId, page, elements, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
4417
|
+
listTasksForCompanyV1TasksCompanyGet(companyId, page, elements, dueDateFrom, dueDateTo, priority, status, orderBy, order, authorization, sessionId, options) {
|
|
4418
|
+
return TasksApiFp(this.configuration).listTasksForCompanyV1TasksCompanyGet(companyId, page, elements, dueDateFrom, dueDateTo, priority, status, orderBy, order, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
4243
4419
|
}
|
|
4244
4420
|
/**
|
|
4245
4421
|
*
|
|
@@ -4247,14 +4423,20 @@ export class TasksApi extends BaseAPI {
|
|
|
4247
4423
|
* @param {string} companyId
|
|
4248
4424
|
* @param {number} [page]
|
|
4249
4425
|
* @param {number} [elements]
|
|
4426
|
+
* @param {string | null} [dueDateFrom]
|
|
4427
|
+
* @param {string | null} [dueDateTo]
|
|
4428
|
+
* @param {number | null} [priority]
|
|
4429
|
+
* @param {TaskStatus | null} [status]
|
|
4430
|
+
* @param {OrderBy | null} [orderBy]
|
|
4431
|
+
* @param {ListTasksForUserV1TasksUserGetOrderEnum} [order]
|
|
4250
4432
|
* @param {string} [authorization]
|
|
4251
4433
|
* @param {string} [sessionId]
|
|
4252
4434
|
* @param {*} [options] Override http request option.
|
|
4253
4435
|
* @throws {RequiredError}
|
|
4254
4436
|
* @memberof TasksApi
|
|
4255
4437
|
*/
|
|
4256
|
-
listTasksForUserV1TasksUserGet(companyId, page, elements, authorization, sessionId, options) {
|
|
4257
|
-
return TasksApiFp(this.configuration).listTasksForUserV1TasksUserGet(companyId, page, elements, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
4438
|
+
listTasksForUserV1TasksUserGet(companyId, page, elements, dueDateFrom, dueDateTo, priority, status, orderBy, order, authorization, sessionId, options) {
|
|
4439
|
+
return TasksApiFp(this.configuration).listTasksForUserV1TasksUserGet(companyId, page, elements, dueDateFrom, dueDateTo, priority, status, orderBy, order, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
4258
4440
|
}
|
|
4259
4441
|
/**
|
|
4260
4442
|
*
|
|
@@ -4269,6 +4451,19 @@ export class TasksApi extends BaseAPI {
|
|
|
4269
4451
|
requestTaskSchedulingV1TasksSchedulePost(schedulerRequest, authorization, sessionId, options) {
|
|
4270
4452
|
return TasksApiFp(this.configuration).requestTaskSchedulingV1TasksSchedulePost(schedulerRequest, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
4271
4453
|
}
|
|
4454
|
+
/**
|
|
4455
|
+
*
|
|
4456
|
+
* @summary Update Task Status
|
|
4457
|
+
* @param {UpdateTaskStatus} updateTaskStatus
|
|
4458
|
+
* @param {string} [authorization]
|
|
4459
|
+
* @param {string} [sessionId]
|
|
4460
|
+
* @param {*} [options] Override http request option.
|
|
4461
|
+
* @throws {RequiredError}
|
|
4462
|
+
* @memberof TasksApi
|
|
4463
|
+
*/
|
|
4464
|
+
updateTaskStatusV1TasksStatusPatch(updateTaskStatus, authorization, sessionId, options) {
|
|
4465
|
+
return TasksApiFp(this.configuration).updateTaskStatusV1TasksStatusPatch(updateTaskStatus, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
4466
|
+
}
|
|
4272
4467
|
/**
|
|
4273
4468
|
*
|
|
4274
4469
|
* @summary Update Task
|
|
@@ -4283,6 +4478,20 @@ export class TasksApi extends BaseAPI {
|
|
|
4283
4478
|
return TasksApiFp(this.configuration).updateTaskV1TasksPut(updateTaskSchema, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
4284
4479
|
}
|
|
4285
4480
|
}
|
|
4481
|
+
/**
|
|
4482
|
+
* @export
|
|
4483
|
+
*/
|
|
4484
|
+
export const ListTasksForCompanyV1TasksCompanyGetOrderEnum = {
|
|
4485
|
+
Asc: 'asc',
|
|
4486
|
+
Desc: 'desc'
|
|
4487
|
+
};
|
|
4488
|
+
/**
|
|
4489
|
+
* @export
|
|
4490
|
+
*/
|
|
4491
|
+
export const ListTasksForUserV1TasksUserGetOrderEnum = {
|
|
4492
|
+
Asc: 'asc',
|
|
4493
|
+
Desc: 'desc'
|
|
4494
|
+
};
|
|
4286
4495
|
/**
|
|
4287
4496
|
* UserApi - axios parameter creator
|
|
4288
4497
|
* @export
|
package/docs/AuditLogEntity.md
CHANGED
package/docs/AuditLogSchema.md
CHANGED
|
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
|
|
|
8
8
|
**company_id** | **string** | | [default to undefined]
|
|
9
9
|
**action** | [**AuditLogAction**](AuditLogAction.md) | | [default to undefined]
|
|
10
10
|
**entity_type** | [**AuditLogEntity**](AuditLogEntity.md) | | [default to undefined]
|
|
11
|
-
**entity_id** | **string** | | [default to undefined]
|
|
11
|
+
**entity_id** | **string** | | [optional] [default to undefined]
|
|
12
12
|
**timestamp** | **string** | | [default to undefined]
|
|
13
13
|
**details** | **{ [key: string]: any; }** | | [default to undefined]
|
|
14
14
|
**user** | [**UserBase**](UserBase.md) | | [default to undefined]
|
package/docs/OrderBy.md
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# OrderBy
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Enum
|
|
5
|
+
|
|
6
|
+
* `Priority` (value: `'priority'`)
|
|
7
|
+
|
|
8
|
+
* `DueDate` (value: `'due_date'`)
|
|
9
|
+
|
|
10
|
+
* `UpdatedAt` (value: `'updated_at'`)
|
|
11
|
+
|
|
12
|
+
* `Status` (value: `'status'`)
|
|
13
|
+
|
|
14
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# TaskStatus
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Enum
|
|
5
|
+
|
|
6
|
+
* `NotStarted` (value: `'not_started'`)
|
|
7
|
+
|
|
8
|
+
* `InProgress` (value: `'in_progress'`)
|
|
9
|
+
|
|
10
|
+
* `Completed` (value: `'completed'`)
|
|
11
|
+
|
|
12
|
+
* `PendingReview` (value: `'pending_review'`)
|
|
13
|
+
|
|
14
|
+
* `Failed` (value: `'failed'`)
|
|
15
|
+
|
|
16
|
+
* `Skipped` (value: `'skipped'`)
|
|
17
|
+
|
|
18
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/docs/TasksApi.md
CHANGED
|
@@ -9,6 +9,7 @@ All URIs are relative to *http://localhost*
|
|
|
9
9
|
|[**listTasksForCompanyV1TasksCompanyGet**](#listtasksforcompanyv1taskscompanyget) | **GET** /v1/tasks/company | List Tasks For Company|
|
|
10
10
|
|[**listTasksForUserV1TasksUserGet**](#listtasksforuserv1tasksuserget) | **GET** /v1/tasks/user | List Tasks For User|
|
|
11
11
|
|[**requestTaskSchedulingV1TasksSchedulePost**](#requesttaskschedulingv1tasksschedulepost) | **POST** /v1/tasks/schedule | Request Task Scheduling|
|
|
12
|
+
|[**updateTaskStatusV1TasksStatusPatch**](#updatetaskstatusv1tasksstatuspatch) | **PATCH** /v1/tasks/status | Update Task Status|
|
|
12
13
|
|[**updateTaskV1TasksPut**](#updatetaskv1tasksput) | **PUT** /v1/tasks/ | Update Task|
|
|
13
14
|
|
|
14
15
|
# **createTaskV1TasksPost**
|
|
@@ -145,6 +146,12 @@ const apiInstance = new TasksApi(configuration);
|
|
|
145
146
|
let companyId: string; // (default to undefined)
|
|
146
147
|
let page: number; // (optional) (default to 1)
|
|
147
148
|
let elements: number; // (optional) (default to 20)
|
|
149
|
+
let dueDateFrom: string; // (optional) (default to undefined)
|
|
150
|
+
let dueDateTo: string; // (optional) (default to undefined)
|
|
151
|
+
let priority: number; // (optional) (default to undefined)
|
|
152
|
+
let status: TaskStatus; // (optional) (default to undefined)
|
|
153
|
+
let orderBy: OrderBy; // (optional) (default to undefined)
|
|
154
|
+
let order: 'asc' | 'desc'; // (optional) (default to 'asc')
|
|
148
155
|
let authorization: string; // (optional) (default to undefined)
|
|
149
156
|
let sessionId: string; // (optional) (default to undefined)
|
|
150
157
|
|
|
@@ -152,6 +159,12 @@ const { status, data } = await apiInstance.listTasksForCompanyV1TasksCompanyGet(
|
|
|
152
159
|
companyId,
|
|
153
160
|
page,
|
|
154
161
|
elements,
|
|
162
|
+
dueDateFrom,
|
|
163
|
+
dueDateTo,
|
|
164
|
+
priority,
|
|
165
|
+
status,
|
|
166
|
+
orderBy,
|
|
167
|
+
order,
|
|
155
168
|
authorization,
|
|
156
169
|
sessionId
|
|
157
170
|
);
|
|
@@ -164,6 +177,12 @@ const { status, data } = await apiInstance.listTasksForCompanyV1TasksCompanyGet(
|
|
|
164
177
|
| **companyId** | [**string**] | | defaults to undefined|
|
|
165
178
|
| **page** | [**number**] | | (optional) defaults to 1|
|
|
166
179
|
| **elements** | [**number**] | | (optional) defaults to 20|
|
|
180
|
+
| **dueDateFrom** | [**string**] | | (optional) defaults to undefined|
|
|
181
|
+
| **dueDateTo** | [**string**] | | (optional) defaults to undefined|
|
|
182
|
+
| **priority** | [**number**] | | (optional) defaults to undefined|
|
|
183
|
+
| **status** | **TaskStatus** | | (optional) defaults to undefined|
|
|
184
|
+
| **orderBy** | **OrderBy** | | (optional) defaults to undefined|
|
|
185
|
+
| **order** | [**'asc' | 'desc'**]**Array<'asc' | 'desc'>** | | (optional) defaults to 'asc'|
|
|
167
186
|
| **authorization** | [**string**] | | (optional) defaults to undefined|
|
|
168
187
|
| **sessionId** | [**string**] | | (optional) defaults to undefined|
|
|
169
188
|
|
|
@@ -208,6 +227,12 @@ const apiInstance = new TasksApi(configuration);
|
|
|
208
227
|
let companyId: string; // (default to undefined)
|
|
209
228
|
let page: number; // (optional) (default to 1)
|
|
210
229
|
let elements: number; // (optional) (default to 20)
|
|
230
|
+
let dueDateFrom: string; // (optional) (default to undefined)
|
|
231
|
+
let dueDateTo: string; // (optional) (default to undefined)
|
|
232
|
+
let priority: number; // (optional) (default to undefined)
|
|
233
|
+
let status: TaskStatus; // (optional) (default to undefined)
|
|
234
|
+
let orderBy: OrderBy; // (optional) (default to undefined)
|
|
235
|
+
let order: 'asc' | 'desc'; // (optional) (default to 'asc')
|
|
211
236
|
let authorization: string; // (optional) (default to undefined)
|
|
212
237
|
let sessionId: string; // (optional) (default to undefined)
|
|
213
238
|
|
|
@@ -215,6 +240,12 @@ const { status, data } = await apiInstance.listTasksForUserV1TasksUserGet(
|
|
|
215
240
|
companyId,
|
|
216
241
|
page,
|
|
217
242
|
elements,
|
|
243
|
+
dueDateFrom,
|
|
244
|
+
dueDateTo,
|
|
245
|
+
priority,
|
|
246
|
+
status,
|
|
247
|
+
orderBy,
|
|
248
|
+
order,
|
|
218
249
|
authorization,
|
|
219
250
|
sessionId
|
|
220
251
|
);
|
|
@@ -227,6 +258,12 @@ const { status, data } = await apiInstance.listTasksForUserV1TasksUserGet(
|
|
|
227
258
|
| **companyId** | [**string**] | | defaults to undefined|
|
|
228
259
|
| **page** | [**number**] | | (optional) defaults to 1|
|
|
229
260
|
| **elements** | [**number**] | | (optional) defaults to 20|
|
|
261
|
+
| **dueDateFrom** | [**string**] | | (optional) defaults to undefined|
|
|
262
|
+
| **dueDateTo** | [**string**] | | (optional) defaults to undefined|
|
|
263
|
+
| **priority** | [**number**] | | (optional) defaults to undefined|
|
|
264
|
+
| **status** | **TaskStatus** | | (optional) defaults to undefined|
|
|
265
|
+
| **orderBy** | **OrderBy** | | (optional) defaults to undefined|
|
|
266
|
+
| **order** | [**'asc' | 'desc'**]**Array<'asc' | 'desc'>** | | (optional) defaults to 'asc'|
|
|
230
267
|
| **authorization** | [**string**] | | (optional) defaults to undefined|
|
|
231
268
|
| **sessionId** | [**string**] | | (optional) defaults to undefined|
|
|
232
269
|
|
|
@@ -311,6 +348,64 @@ No authorization required
|
|
|
311
348
|
|
|
312
349
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
313
350
|
|
|
351
|
+
# **updateTaskStatusV1TasksStatusPatch**
|
|
352
|
+
> TaskRead updateTaskStatusV1TasksStatusPatch(updateTaskStatus)
|
|
353
|
+
|
|
354
|
+
|
|
355
|
+
### Example
|
|
356
|
+
|
|
357
|
+
```typescript
|
|
358
|
+
import {
|
|
359
|
+
TasksApi,
|
|
360
|
+
Configuration,
|
|
361
|
+
UpdateTaskStatus
|
|
362
|
+
} from './api';
|
|
363
|
+
|
|
364
|
+
const configuration = new Configuration();
|
|
365
|
+
const apiInstance = new TasksApi(configuration);
|
|
366
|
+
|
|
367
|
+
let updateTaskStatus: UpdateTaskStatus; //
|
|
368
|
+
let authorization: string; // (optional) (default to undefined)
|
|
369
|
+
let sessionId: string; // (optional) (default to undefined)
|
|
370
|
+
|
|
371
|
+
const { status, data } = await apiInstance.updateTaskStatusV1TasksStatusPatch(
|
|
372
|
+
updateTaskStatus,
|
|
373
|
+
authorization,
|
|
374
|
+
sessionId
|
|
375
|
+
);
|
|
376
|
+
```
|
|
377
|
+
|
|
378
|
+
### Parameters
|
|
379
|
+
|
|
380
|
+
|Name | Type | Description | Notes|
|
|
381
|
+
|------------- | ------------- | ------------- | -------------|
|
|
382
|
+
| **updateTaskStatus** | **UpdateTaskStatus**| | |
|
|
383
|
+
| **authorization** | [**string**] | | (optional) defaults to undefined|
|
|
384
|
+
| **sessionId** | [**string**] | | (optional) defaults to undefined|
|
|
385
|
+
|
|
386
|
+
|
|
387
|
+
### Return type
|
|
388
|
+
|
|
389
|
+
**TaskRead**
|
|
390
|
+
|
|
391
|
+
### Authorization
|
|
392
|
+
|
|
393
|
+
No authorization required
|
|
394
|
+
|
|
395
|
+
### HTTP request headers
|
|
396
|
+
|
|
397
|
+
- **Content-Type**: application/json
|
|
398
|
+
- **Accept**: application/json
|
|
399
|
+
|
|
400
|
+
|
|
401
|
+
### HTTP response details
|
|
402
|
+
| Status code | Description | Response headers |
|
|
403
|
+
|-------------|-------------|------------------|
|
|
404
|
+
|**200** | Successful Response | - |
|
|
405
|
+
|**422** | Validation Error | - |
|
|
406
|
+
|
|
407
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
408
|
+
|
|
314
409
|
# **updateTaskV1TasksPut**
|
|
315
410
|
> TaskRead updateTaskV1TasksPut(updateTaskSchema)
|
|
316
411
|
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# UpdateTaskStatus
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | | [default to undefined]
|
|
9
|
+
**status** | **string** | | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { UpdateTaskStatus } from './api';
|
|
15
|
+
|
|
16
|
+
const instance: UpdateTaskStatus = {
|
|
17
|
+
id,
|
|
18
|
+
status,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|