@rasadov/lumoar-sdk 1.0.13 → 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 -2
- package/api.ts +272 -64
- package/dist/api.d.ts +160 -47
- package/dist/api.js +212 -21
- package/docs/AuditLogEntity.md +2 -0
- package/docs/AuditLogSchema.md +1 -1
- package/docs/OrderBy.md +14 -0
- package/docs/SchedulerRequest.md +0 -6
- package/docs/TaskStatus.md +18 -0
- package/docs/TasksApi.md +95 -0
- package/docs/UpdateTaskStatus.md +22 -0
- package/index.ts +1 -1
- package/package.json +1 -1
- package/publish.sh +0 -4
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
|
*
|
|
@@ -77,8 +78,11 @@ export const ControlStatus = {
|
|
|
77
78
|
* @export
|
|
78
79
|
* @enum {string}
|
|
79
80
|
*/
|
|
80
|
-
export const
|
|
81
|
-
|
|
81
|
+
export const OrderBy = {
|
|
82
|
+
Priority: 'priority',
|
|
83
|
+
DueDate: 'due_date',
|
|
84
|
+
UpdatedAt: 'updated_at',
|
|
85
|
+
Status: 'status'
|
|
82
86
|
};
|
|
83
87
|
/**
|
|
84
88
|
*
|
|
@@ -96,10 +100,13 @@ export const PermissionType = {
|
|
|
96
100
|
* @export
|
|
97
101
|
* @enum {string}
|
|
98
102
|
*/
|
|
99
|
-
export const
|
|
100
|
-
|
|
101
|
-
|
|
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'
|
|
103
110
|
};
|
|
104
111
|
/**
|
|
105
112
|
* AuditLogsApi - axios parameter creator
|
|
@@ -3851,12 +3858,18 @@ export const TasksApiAxiosParamCreator = function (configuration) {
|
|
|
3851
3858
|
* @param {string} companyId
|
|
3852
3859
|
* @param {number} [page]
|
|
3853
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]
|
|
3854
3867
|
* @param {string} [authorization]
|
|
3855
3868
|
* @param {string} [sessionId]
|
|
3856
3869
|
* @param {*} [options] Override http request option.
|
|
3857
3870
|
* @throws {RequiredError}
|
|
3858
3871
|
*/
|
|
3859
|
-
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 = {}) {
|
|
3860
3873
|
// verify required parameter 'companyId' is not null or undefined
|
|
3861
3874
|
assertParamExists('listTasksForCompanyV1TasksCompanyGet', 'companyId', companyId);
|
|
3862
3875
|
const localVarPath = `/v1/tasks/company`;
|
|
@@ -3878,6 +3891,28 @@ export const TasksApiAxiosParamCreator = function (configuration) {
|
|
|
3878
3891
|
if (elements !== undefined) {
|
|
3879
3892
|
localVarQueryParameter['elements'] = elements;
|
|
3880
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
|
+
}
|
|
3881
3916
|
if (authorization != null) {
|
|
3882
3917
|
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
3883
3918
|
}
|
|
@@ -3895,12 +3930,18 @@ export const TasksApiAxiosParamCreator = function (configuration) {
|
|
|
3895
3930
|
* @param {string} companyId
|
|
3896
3931
|
* @param {number} [page]
|
|
3897
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]
|
|
3898
3939
|
* @param {string} [authorization]
|
|
3899
3940
|
* @param {string} [sessionId]
|
|
3900
3941
|
* @param {*} [options] Override http request option.
|
|
3901
3942
|
* @throws {RequiredError}
|
|
3902
3943
|
*/
|
|
3903
|
-
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 = {}) {
|
|
3904
3945
|
// verify required parameter 'companyId' is not null or undefined
|
|
3905
3946
|
assertParamExists('listTasksForUserV1TasksUserGet', 'companyId', companyId);
|
|
3906
3947
|
const localVarPath = `/v1/tasks/user`;
|
|
@@ -3922,6 +3963,28 @@ export const TasksApiAxiosParamCreator = function (configuration) {
|
|
|
3922
3963
|
if (elements !== undefined) {
|
|
3923
3964
|
localVarQueryParameter['elements'] = elements;
|
|
3924
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
|
+
}
|
|
3925
3988
|
if (authorization != null) {
|
|
3926
3989
|
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
3927
3990
|
}
|
|
@@ -3968,6 +4031,41 @@ export const TasksApiAxiosParamCreator = function (configuration) {
|
|
|
3968
4031
|
options: localVarRequestOptions,
|
|
3969
4032
|
};
|
|
3970
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
|
+
}),
|
|
3971
4069
|
/**
|
|
3972
4070
|
*
|
|
3973
4071
|
* @summary Update Task
|
|
@@ -4054,15 +4152,21 @@ export const TasksApiFp = function (configuration) {
|
|
|
4054
4152
|
* @param {string} companyId
|
|
4055
4153
|
* @param {number} [page]
|
|
4056
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]
|
|
4057
4161
|
* @param {string} [authorization]
|
|
4058
4162
|
* @param {string} [sessionId]
|
|
4059
4163
|
* @param {*} [options] Override http request option.
|
|
4060
4164
|
* @throws {RequiredError}
|
|
4061
4165
|
*/
|
|
4062
|
-
listTasksForCompanyV1TasksCompanyGet(companyId, page, elements, authorization, sessionId, options) {
|
|
4166
|
+
listTasksForCompanyV1TasksCompanyGet(companyId, page, elements, dueDateFrom, dueDateTo, priority, status, orderBy, order, authorization, sessionId, options) {
|
|
4063
4167
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4064
4168
|
var _a, _b, _c;
|
|
4065
|
-
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);
|
|
4066
4170
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4067
4171
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TasksApi.listTasksForCompanyV1TasksCompanyGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4068
4172
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -4074,15 +4178,21 @@ export const TasksApiFp = function (configuration) {
|
|
|
4074
4178
|
* @param {string} companyId
|
|
4075
4179
|
* @param {number} [page]
|
|
4076
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]
|
|
4077
4187
|
* @param {string} [authorization]
|
|
4078
4188
|
* @param {string} [sessionId]
|
|
4079
4189
|
* @param {*} [options] Override http request option.
|
|
4080
4190
|
* @throws {RequiredError}
|
|
4081
4191
|
*/
|
|
4082
|
-
listTasksForUserV1TasksUserGet(companyId, page, elements, authorization, sessionId, options) {
|
|
4192
|
+
listTasksForUserV1TasksUserGet(companyId, page, elements, dueDateFrom, dueDateTo, priority, status, orderBy, order, authorization, sessionId, options) {
|
|
4083
4193
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4084
4194
|
var _a, _b, _c;
|
|
4085
|
-
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);
|
|
4086
4196
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4087
4197
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TasksApi.listTasksForUserV1TasksUserGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4088
4198
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -4106,6 +4216,24 @@ export const TasksApiFp = function (configuration) {
|
|
|
4106
4216
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4107
4217
|
});
|
|
4108
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
|
+
},
|
|
4109
4237
|
/**
|
|
4110
4238
|
*
|
|
4111
4239
|
* @summary Update Task
|
|
@@ -4163,13 +4291,19 @@ export const TasksApiFactory = function (configuration, basePath, axios) {
|
|
|
4163
4291
|
* @param {string} companyId
|
|
4164
4292
|
* @param {number} [page]
|
|
4165
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]
|
|
4166
4300
|
* @param {string} [authorization]
|
|
4167
4301
|
* @param {string} [sessionId]
|
|
4168
4302
|
* @param {*} [options] Override http request option.
|
|
4169
4303
|
* @throws {RequiredError}
|
|
4170
4304
|
*/
|
|
4171
|
-
listTasksForCompanyV1TasksCompanyGet(companyId, page, elements, authorization, sessionId, options) {
|
|
4172
|
-
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));
|
|
4173
4307
|
},
|
|
4174
4308
|
/**
|
|
4175
4309
|
*
|
|
@@ -4177,13 +4311,19 @@ export const TasksApiFactory = function (configuration, basePath, axios) {
|
|
|
4177
4311
|
* @param {string} companyId
|
|
4178
4312
|
* @param {number} [page]
|
|
4179
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]
|
|
4180
4320
|
* @param {string} [authorization]
|
|
4181
4321
|
* @param {string} [sessionId]
|
|
4182
4322
|
* @param {*} [options] Override http request option.
|
|
4183
4323
|
* @throws {RequiredError}
|
|
4184
4324
|
*/
|
|
4185
|
-
listTasksForUserV1TasksUserGet(companyId, page, elements, authorization, sessionId, options) {
|
|
4186
|
-
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));
|
|
4187
4327
|
},
|
|
4188
4328
|
/**
|
|
4189
4329
|
*
|
|
@@ -4197,6 +4337,18 @@ export const TasksApiFactory = function (configuration, basePath, axios) {
|
|
|
4197
4337
|
requestTaskSchedulingV1TasksSchedulePost(schedulerRequest, authorization, sessionId, options) {
|
|
4198
4338
|
return localVarFp.requestTaskSchedulingV1TasksSchedulePost(schedulerRequest, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
4199
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
|
+
},
|
|
4200
4352
|
/**
|
|
4201
4353
|
*
|
|
4202
4354
|
* @summary Update Task
|
|
@@ -4250,14 +4402,20 @@ export class TasksApi extends BaseAPI {
|
|
|
4250
4402
|
* @param {string} companyId
|
|
4251
4403
|
* @param {number} [page]
|
|
4252
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]
|
|
4253
4411
|
* @param {string} [authorization]
|
|
4254
4412
|
* @param {string} [sessionId]
|
|
4255
4413
|
* @param {*} [options] Override http request option.
|
|
4256
4414
|
* @throws {RequiredError}
|
|
4257
4415
|
* @memberof TasksApi
|
|
4258
4416
|
*/
|
|
4259
|
-
listTasksForCompanyV1TasksCompanyGet(companyId, page, elements, authorization, sessionId, options) {
|
|
4260
|
-
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));
|
|
4261
4419
|
}
|
|
4262
4420
|
/**
|
|
4263
4421
|
*
|
|
@@ -4265,14 +4423,20 @@ export class TasksApi extends BaseAPI {
|
|
|
4265
4423
|
* @param {string} companyId
|
|
4266
4424
|
* @param {number} [page]
|
|
4267
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]
|
|
4268
4432
|
* @param {string} [authorization]
|
|
4269
4433
|
* @param {string} [sessionId]
|
|
4270
4434
|
* @param {*} [options] Override http request option.
|
|
4271
4435
|
* @throws {RequiredError}
|
|
4272
4436
|
* @memberof TasksApi
|
|
4273
4437
|
*/
|
|
4274
|
-
listTasksForUserV1TasksUserGet(companyId, page, elements, authorization, sessionId, options) {
|
|
4275
|
-
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));
|
|
4276
4440
|
}
|
|
4277
4441
|
/**
|
|
4278
4442
|
*
|
|
@@ -4287,6 +4451,19 @@ export class TasksApi extends BaseAPI {
|
|
|
4287
4451
|
requestTaskSchedulingV1TasksSchedulePost(schedulerRequest, authorization, sessionId, options) {
|
|
4288
4452
|
return TasksApiFp(this.configuration).requestTaskSchedulingV1TasksSchedulePost(schedulerRequest, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
4289
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
|
+
}
|
|
4290
4467
|
/**
|
|
4291
4468
|
*
|
|
4292
4469
|
* @summary Update Task
|
|
@@ -4301,6 +4478,20 @@ export class TasksApi extends BaseAPI {
|
|
|
4301
4478
|
return TasksApiFp(this.configuration).updateTaskV1TasksPut(updateTaskSchema, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
4302
4479
|
}
|
|
4303
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
|
+
};
|
|
4304
4495
|
/**
|
|
4305
4496
|
* UserApi - axios parameter creator
|
|
4306
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)
|
package/docs/SchedulerRequest.md
CHANGED
|
@@ -7,9 +7,6 @@ Name | Type | Description | Notes
|
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**company_id** | **string** | | [default to undefined]
|
|
9
9
|
**expected_finish_days** | **number** | | [default to undefined]
|
|
10
|
-
**frequency** | [**ReminderFrequency**](ReminderFrequency.md) | | [optional] [default to undefined]
|
|
11
|
-
**delivery_method** | [**DeliveryMethod**](DeliveryMethod.md) | | [optional] [default to undefined]
|
|
12
|
-
**reminder_offset_days** | **number** | | [optional] [default to 1]
|
|
13
10
|
**user_roles_to_assign** | [**Array<PermissionType>**](PermissionType.md) | | [optional] [default to undefined]
|
|
14
11
|
**user_ids_to_assign** | **Array<string>** | | [optional] [default to undefined]
|
|
15
12
|
|
|
@@ -21,9 +18,6 @@ import { SchedulerRequest } from './api';
|
|
|
21
18
|
const instance: SchedulerRequest = {
|
|
22
19
|
company_id,
|
|
23
20
|
expected_finish_days,
|
|
24
|
-
frequency,
|
|
25
|
-
delivery_method,
|
|
26
|
-
reminder_offset_days,
|
|
27
21
|
user_roles_to_assign,
|
|
28
22
|
user_ids_to_assign,
|
|
29
23
|
};
|
|
@@ -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)
|
package/index.ts
CHANGED
package/package.json
CHANGED
package/publish.sh
DELETED