@rasadov/lumoar-sdk 1.0.14 → 1.0.16

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/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,32 @@ export const PermissionType = {
83
95
  Member: 'member',
84
96
  Auditor: 'auditor'
85
97
  };
98
+ /**
99
+ *
100
+ * @export
101
+ * @enum {number}
102
+ */
103
+ export const TaskPriority = {
104
+ NUMBER_1: 1,
105
+ NUMBER_2: 2,
106
+ NUMBER_3: 3,
107
+ NUMBER_4: 4,
108
+ NUMBER_5: 5,
109
+ NUMBER_6: 6
110
+ };
111
+ /**
112
+ *
113
+ * @export
114
+ * @enum {string}
115
+ */
116
+ export const TaskStatus = {
117
+ NotStarted: 'not_started',
118
+ InProgress: 'in_progress',
119
+ Completed: 'completed',
120
+ PendingReview: 'pending_review',
121
+ Failed: 'failed',
122
+ Skipped: 'skipped'
123
+ };
86
124
  /**
87
125
  * AuditLogsApi - axios parameter creator
88
126
  * @export
@@ -3524,6 +3562,40 @@ export const RolesApiAxiosParamCreator = function (configuration) {
3524
3562
  options: localVarRequestOptions,
3525
3563
  };
3526
3564
  }),
3565
+ /**
3566
+ *
3567
+ * @summary Get Users
3568
+ * @param {string} companyId
3569
+ * @param {string} [authorization]
3570
+ * @param {string} [sessionId]
3571
+ * @param {*} [options] Override http request option.
3572
+ * @throws {RequiredError}
3573
+ */
3574
+ getUsersV1RolesCompanyIdListGet: (companyId_1, authorization_1, sessionId_1, ...args_1) => __awaiter(this, [companyId_1, authorization_1, sessionId_1, ...args_1], void 0, function* (companyId, authorization, sessionId, options = {}) {
3575
+ // verify required parameter 'companyId' is not null or undefined
3576
+ assertParamExists('getUsersV1RolesCompanyIdListGet', 'companyId', companyId);
3577
+ const localVarPath = `/v1/roles/{company_id}/list`
3578
+ .replace(`{${"company_id"}}`, encodeURIComponent(String(companyId)));
3579
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3580
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3581
+ let baseOptions;
3582
+ if (configuration) {
3583
+ baseOptions = configuration.baseOptions;
3584
+ }
3585
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3586
+ const localVarHeaderParameter = {};
3587
+ const localVarQueryParameter = {};
3588
+ if (authorization != null) {
3589
+ localVarHeaderParameter['Authorization'] = String(authorization);
3590
+ }
3591
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3592
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3593
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3594
+ return {
3595
+ url: toPathString(localVarUrlObj),
3596
+ options: localVarRequestOptions,
3597
+ };
3598
+ }),
3527
3599
  /**
3528
3600
  *
3529
3601
  * @summary Invite
@@ -3621,6 +3693,24 @@ export const RolesApiFp = function (configuration) {
3621
3693
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3622
3694
  });
3623
3695
  },
3696
+ /**
3697
+ *
3698
+ * @summary Get Users
3699
+ * @param {string} companyId
3700
+ * @param {string} [authorization]
3701
+ * @param {string} [sessionId]
3702
+ * @param {*} [options] Override http request option.
3703
+ * @throws {RequiredError}
3704
+ */
3705
+ getUsersV1RolesCompanyIdListGet(companyId, authorization, sessionId, options) {
3706
+ return __awaiter(this, void 0, void 0, function* () {
3707
+ var _a, _b, _c;
3708
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getUsersV1RolesCompanyIdListGet(companyId, authorization, sessionId, options);
3709
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3710
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RolesApi.getUsersV1RolesCompanyIdListGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3711
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3712
+ });
3713
+ },
3624
3714
  /**
3625
3715
  *
3626
3716
  * @summary Invite
@@ -3678,6 +3768,18 @@ export const RolesApiFactory = function (configuration, basePath, axios) {
3678
3768
  getUserPermissionsV1RolesCompanyIdMeGet(companyId, authorization, sessionId, options) {
3679
3769
  return localVarFp.getUserPermissionsV1RolesCompanyIdMeGet(companyId, authorization, sessionId, options).then((request) => request(axios, basePath));
3680
3770
  },
3771
+ /**
3772
+ *
3773
+ * @summary Get Users
3774
+ * @param {string} companyId
3775
+ * @param {string} [authorization]
3776
+ * @param {string} [sessionId]
3777
+ * @param {*} [options] Override http request option.
3778
+ * @throws {RequiredError}
3779
+ */
3780
+ getUsersV1RolesCompanyIdListGet(companyId, authorization, sessionId, options) {
3781
+ return localVarFp.getUsersV1RolesCompanyIdListGet(companyId, authorization, sessionId, options).then((request) => request(axios, basePath));
3782
+ },
3681
3783
  /**
3682
3784
  *
3683
3785
  * @summary Invite
@@ -3724,6 +3826,19 @@ export class RolesApi extends BaseAPI {
3724
3826
  getUserPermissionsV1RolesCompanyIdMeGet(companyId, authorization, sessionId, options) {
3725
3827
  return RolesApiFp(this.configuration).getUserPermissionsV1RolesCompanyIdMeGet(companyId, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
3726
3828
  }
3829
+ /**
3830
+ *
3831
+ * @summary Get Users
3832
+ * @param {string} companyId
3833
+ * @param {string} [authorization]
3834
+ * @param {string} [sessionId]
3835
+ * @param {*} [options] Override http request option.
3836
+ * @throws {RequiredError}
3837
+ * @memberof RolesApi
3838
+ */
3839
+ getUsersV1RolesCompanyIdListGet(companyId, authorization, sessionId, options) {
3840
+ return RolesApiFp(this.configuration).getUsersV1RolesCompanyIdListGet(companyId, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
3841
+ }
3727
3842
  /**
3728
3843
  *
3729
3844
  * @summary Invite
@@ -3833,12 +3948,18 @@ export const TasksApiAxiosParamCreator = function (configuration) {
3833
3948
  * @param {string} companyId
3834
3949
  * @param {number} [page]
3835
3950
  * @param {number} [elements]
3951
+ * @param {string | null} [dueDateFrom]
3952
+ * @param {string | null} [dueDateTo]
3953
+ * @param {TaskPriority | null} [priority]
3954
+ * @param {TaskStatus | null} [status]
3955
+ * @param {OrderBy | null} [orderBy]
3956
+ * @param {ListTasksForCompanyV1TasksCompanyGetOrderEnum} [order]
3836
3957
  * @param {string} [authorization]
3837
3958
  * @param {string} [sessionId]
3838
3959
  * @param {*} [options] Override http request option.
3839
3960
  * @throws {RequiredError}
3840
3961
  */
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 = {}) {
3962
+ 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
3963
  // verify required parameter 'companyId' is not null or undefined
3843
3964
  assertParamExists('listTasksForCompanyV1TasksCompanyGet', 'companyId', companyId);
3844
3965
  const localVarPath = `/v1/tasks/company`;
@@ -3860,6 +3981,28 @@ export const TasksApiAxiosParamCreator = function (configuration) {
3860
3981
  if (elements !== undefined) {
3861
3982
  localVarQueryParameter['elements'] = elements;
3862
3983
  }
3984
+ if (dueDateFrom !== undefined) {
3985
+ localVarQueryParameter['due_date_from'] = (dueDateFrom instanceof Date) ?
3986
+ dueDateFrom.toISOString() :
3987
+ dueDateFrom;
3988
+ }
3989
+ if (dueDateTo !== undefined) {
3990
+ localVarQueryParameter['due_date_to'] = (dueDateTo instanceof Date) ?
3991
+ dueDateTo.toISOString() :
3992
+ dueDateTo;
3993
+ }
3994
+ if (priority !== undefined) {
3995
+ localVarQueryParameter['priority'] = priority;
3996
+ }
3997
+ if (status !== undefined) {
3998
+ localVarQueryParameter['status'] = status;
3999
+ }
4000
+ if (orderBy !== undefined) {
4001
+ localVarQueryParameter['order_by'] = orderBy;
4002
+ }
4003
+ if (order !== undefined) {
4004
+ localVarQueryParameter['order'] = order;
4005
+ }
3863
4006
  if (authorization != null) {
3864
4007
  localVarHeaderParameter['Authorization'] = String(authorization);
3865
4008
  }
@@ -3877,12 +4020,18 @@ export const TasksApiAxiosParamCreator = function (configuration) {
3877
4020
  * @param {string} companyId
3878
4021
  * @param {number} [page]
3879
4022
  * @param {number} [elements]
4023
+ * @param {string | null} [dueDateFrom]
4024
+ * @param {string | null} [dueDateTo]
4025
+ * @param {TaskPriority | null} [priority]
4026
+ * @param {TaskStatus | null} [status]
4027
+ * @param {OrderBy | null} [orderBy]
4028
+ * @param {ListTasksForUserV1TasksUserGetOrderEnum} [order]
3880
4029
  * @param {string} [authorization]
3881
4030
  * @param {string} [sessionId]
3882
4031
  * @param {*} [options] Override http request option.
3883
4032
  * @throws {RequiredError}
3884
4033
  */
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 = {}) {
4034
+ 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
4035
  // verify required parameter 'companyId' is not null or undefined
3887
4036
  assertParamExists('listTasksForUserV1TasksUserGet', 'companyId', companyId);
3888
4037
  const localVarPath = `/v1/tasks/user`;
@@ -3904,6 +4053,28 @@ export const TasksApiAxiosParamCreator = function (configuration) {
3904
4053
  if (elements !== undefined) {
3905
4054
  localVarQueryParameter['elements'] = elements;
3906
4055
  }
4056
+ if (dueDateFrom !== undefined) {
4057
+ localVarQueryParameter['due_date_from'] = (dueDateFrom instanceof Date) ?
4058
+ dueDateFrom.toISOString() :
4059
+ dueDateFrom;
4060
+ }
4061
+ if (dueDateTo !== undefined) {
4062
+ localVarQueryParameter['due_date_to'] = (dueDateTo instanceof Date) ?
4063
+ dueDateTo.toISOString() :
4064
+ dueDateTo;
4065
+ }
4066
+ if (priority !== undefined) {
4067
+ localVarQueryParameter['priority'] = priority;
4068
+ }
4069
+ if (status !== undefined) {
4070
+ localVarQueryParameter['status'] = status;
4071
+ }
4072
+ if (orderBy !== undefined) {
4073
+ localVarQueryParameter['order_by'] = orderBy;
4074
+ }
4075
+ if (order !== undefined) {
4076
+ localVarQueryParameter['order'] = order;
4077
+ }
3907
4078
  if (authorization != null) {
3908
4079
  localVarHeaderParameter['Authorization'] = String(authorization);
3909
4080
  }
@@ -3950,6 +4121,41 @@ export const TasksApiAxiosParamCreator = function (configuration) {
3950
4121
  options: localVarRequestOptions,
3951
4122
  };
3952
4123
  }),
4124
+ /**
4125
+ *
4126
+ * @summary Update Task Status
4127
+ * @param {UpdateTaskStatus} updateTaskStatus
4128
+ * @param {string} [authorization]
4129
+ * @param {string} [sessionId]
4130
+ * @param {*} [options] Override http request option.
4131
+ * @throws {RequiredError}
4132
+ */
4133
+ 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 = {}) {
4134
+ // verify required parameter 'updateTaskStatus' is not null or undefined
4135
+ assertParamExists('updateTaskStatusV1TasksStatusPatch', 'updateTaskStatus', updateTaskStatus);
4136
+ const localVarPath = `/v1/tasks/status`;
4137
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4138
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4139
+ let baseOptions;
4140
+ if (configuration) {
4141
+ baseOptions = configuration.baseOptions;
4142
+ }
4143
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
4144
+ const localVarHeaderParameter = {};
4145
+ const localVarQueryParameter = {};
4146
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4147
+ if (authorization != null) {
4148
+ localVarHeaderParameter['Authorization'] = String(authorization);
4149
+ }
4150
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4151
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4152
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4153
+ localVarRequestOptions.data = serializeDataIfNeeded(updateTaskStatus, localVarRequestOptions, configuration);
4154
+ return {
4155
+ url: toPathString(localVarUrlObj),
4156
+ options: localVarRequestOptions,
4157
+ };
4158
+ }),
3953
4159
  /**
3954
4160
  *
3955
4161
  * @summary Update Task
@@ -4036,15 +4242,21 @@ export const TasksApiFp = function (configuration) {
4036
4242
  * @param {string} companyId
4037
4243
  * @param {number} [page]
4038
4244
  * @param {number} [elements]
4245
+ * @param {string | null} [dueDateFrom]
4246
+ * @param {string | null} [dueDateTo]
4247
+ * @param {TaskPriority | null} [priority]
4248
+ * @param {TaskStatus | null} [status]
4249
+ * @param {OrderBy | null} [orderBy]
4250
+ * @param {ListTasksForCompanyV1TasksCompanyGetOrderEnum} [order]
4039
4251
  * @param {string} [authorization]
4040
4252
  * @param {string} [sessionId]
4041
4253
  * @param {*} [options] Override http request option.
4042
4254
  * @throws {RequiredError}
4043
4255
  */
4044
- listTasksForCompanyV1TasksCompanyGet(companyId, page, elements, authorization, sessionId, options) {
4256
+ listTasksForCompanyV1TasksCompanyGet(companyId, page, elements, dueDateFrom, dueDateTo, priority, status, orderBy, order, authorization, sessionId, options) {
4045
4257
  return __awaiter(this, void 0, void 0, function* () {
4046
4258
  var _a, _b, _c;
4047
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listTasksForCompanyV1TasksCompanyGet(companyId, page, elements, authorization, sessionId, options);
4259
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listTasksForCompanyV1TasksCompanyGet(companyId, page, elements, dueDateFrom, dueDateTo, priority, status, orderBy, order, authorization, sessionId, options);
4048
4260
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4049
4261
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TasksApi.listTasksForCompanyV1TasksCompanyGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4050
4262
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -4056,15 +4268,21 @@ export const TasksApiFp = function (configuration) {
4056
4268
  * @param {string} companyId
4057
4269
  * @param {number} [page]
4058
4270
  * @param {number} [elements]
4271
+ * @param {string | null} [dueDateFrom]
4272
+ * @param {string | null} [dueDateTo]
4273
+ * @param {TaskPriority | null} [priority]
4274
+ * @param {TaskStatus | null} [status]
4275
+ * @param {OrderBy | null} [orderBy]
4276
+ * @param {ListTasksForUserV1TasksUserGetOrderEnum} [order]
4059
4277
  * @param {string} [authorization]
4060
4278
  * @param {string} [sessionId]
4061
4279
  * @param {*} [options] Override http request option.
4062
4280
  * @throws {RequiredError}
4063
4281
  */
4064
- listTasksForUserV1TasksUserGet(companyId, page, elements, authorization, sessionId, options) {
4282
+ listTasksForUserV1TasksUserGet(companyId, page, elements, dueDateFrom, dueDateTo, priority, status, orderBy, order, authorization, sessionId, options) {
4065
4283
  return __awaiter(this, void 0, void 0, function* () {
4066
4284
  var _a, _b, _c;
4067
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listTasksForUserV1TasksUserGet(companyId, page, elements, authorization, sessionId, options);
4285
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listTasksForUserV1TasksUserGet(companyId, page, elements, dueDateFrom, dueDateTo, priority, status, orderBy, order, authorization, sessionId, options);
4068
4286
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4069
4287
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TasksApi.listTasksForUserV1TasksUserGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4070
4288
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -4088,6 +4306,24 @@ export const TasksApiFp = function (configuration) {
4088
4306
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4089
4307
  });
4090
4308
  },
4309
+ /**
4310
+ *
4311
+ * @summary Update Task Status
4312
+ * @param {UpdateTaskStatus} updateTaskStatus
4313
+ * @param {string} [authorization]
4314
+ * @param {string} [sessionId]
4315
+ * @param {*} [options] Override http request option.
4316
+ * @throws {RequiredError}
4317
+ */
4318
+ updateTaskStatusV1TasksStatusPatch(updateTaskStatus, authorization, sessionId, options) {
4319
+ return __awaiter(this, void 0, void 0, function* () {
4320
+ var _a, _b, _c;
4321
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateTaskStatusV1TasksStatusPatch(updateTaskStatus, authorization, sessionId, options);
4322
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4323
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TasksApi.updateTaskStatusV1TasksStatusPatch']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4324
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4325
+ });
4326
+ },
4091
4327
  /**
4092
4328
  *
4093
4329
  * @summary Update Task
@@ -4145,13 +4381,19 @@ export const TasksApiFactory = function (configuration, basePath, axios) {
4145
4381
  * @param {string} companyId
4146
4382
  * @param {number} [page]
4147
4383
  * @param {number} [elements]
4384
+ * @param {string | null} [dueDateFrom]
4385
+ * @param {string | null} [dueDateTo]
4386
+ * @param {TaskPriority | null} [priority]
4387
+ * @param {TaskStatus | null} [status]
4388
+ * @param {OrderBy | null} [orderBy]
4389
+ * @param {ListTasksForCompanyV1TasksCompanyGetOrderEnum} [order]
4148
4390
  * @param {string} [authorization]
4149
4391
  * @param {string} [sessionId]
4150
4392
  * @param {*} [options] Override http request option.
4151
4393
  * @throws {RequiredError}
4152
4394
  */
4153
- listTasksForCompanyV1TasksCompanyGet(companyId, page, elements, authorization, sessionId, options) {
4154
- return localVarFp.listTasksForCompanyV1TasksCompanyGet(companyId, page, elements, authorization, sessionId, options).then((request) => request(axios, basePath));
4395
+ listTasksForCompanyV1TasksCompanyGet(companyId, page, elements, dueDateFrom, dueDateTo, priority, status, orderBy, order, authorization, sessionId, options) {
4396
+ return localVarFp.listTasksForCompanyV1TasksCompanyGet(companyId, page, elements, dueDateFrom, dueDateTo, priority, status, orderBy, order, authorization, sessionId, options).then((request) => request(axios, basePath));
4155
4397
  },
4156
4398
  /**
4157
4399
  *
@@ -4159,13 +4401,19 @@ export const TasksApiFactory = function (configuration, basePath, axios) {
4159
4401
  * @param {string} companyId
4160
4402
  * @param {number} [page]
4161
4403
  * @param {number} [elements]
4404
+ * @param {string | null} [dueDateFrom]
4405
+ * @param {string | null} [dueDateTo]
4406
+ * @param {TaskPriority | null} [priority]
4407
+ * @param {TaskStatus | null} [status]
4408
+ * @param {OrderBy | null} [orderBy]
4409
+ * @param {ListTasksForUserV1TasksUserGetOrderEnum} [order]
4162
4410
  * @param {string} [authorization]
4163
4411
  * @param {string} [sessionId]
4164
4412
  * @param {*} [options] Override http request option.
4165
4413
  * @throws {RequiredError}
4166
4414
  */
4167
- listTasksForUserV1TasksUserGet(companyId, page, elements, authorization, sessionId, options) {
4168
- return localVarFp.listTasksForUserV1TasksUserGet(companyId, page, elements, authorization, sessionId, options).then((request) => request(axios, basePath));
4415
+ listTasksForUserV1TasksUserGet(companyId, page, elements, dueDateFrom, dueDateTo, priority, status, orderBy, order, authorization, sessionId, options) {
4416
+ return localVarFp.listTasksForUserV1TasksUserGet(companyId, page, elements, dueDateFrom, dueDateTo, priority, status, orderBy, order, authorization, sessionId, options).then((request) => request(axios, basePath));
4169
4417
  },
4170
4418
  /**
4171
4419
  *
@@ -4179,6 +4427,18 @@ export const TasksApiFactory = function (configuration, basePath, axios) {
4179
4427
  requestTaskSchedulingV1TasksSchedulePost(schedulerRequest, authorization, sessionId, options) {
4180
4428
  return localVarFp.requestTaskSchedulingV1TasksSchedulePost(schedulerRequest, authorization, sessionId, options).then((request) => request(axios, basePath));
4181
4429
  },
4430
+ /**
4431
+ *
4432
+ * @summary Update Task Status
4433
+ * @param {UpdateTaskStatus} updateTaskStatus
4434
+ * @param {string} [authorization]
4435
+ * @param {string} [sessionId]
4436
+ * @param {*} [options] Override http request option.
4437
+ * @throws {RequiredError}
4438
+ */
4439
+ updateTaskStatusV1TasksStatusPatch(updateTaskStatus, authorization, sessionId, options) {
4440
+ return localVarFp.updateTaskStatusV1TasksStatusPatch(updateTaskStatus, authorization, sessionId, options).then((request) => request(axios, basePath));
4441
+ },
4182
4442
  /**
4183
4443
  *
4184
4444
  * @summary Update Task
@@ -4232,14 +4492,20 @@ export class TasksApi extends BaseAPI {
4232
4492
  * @param {string} companyId
4233
4493
  * @param {number} [page]
4234
4494
  * @param {number} [elements]
4495
+ * @param {string | null} [dueDateFrom]
4496
+ * @param {string | null} [dueDateTo]
4497
+ * @param {TaskPriority | null} [priority]
4498
+ * @param {TaskStatus | null} [status]
4499
+ * @param {OrderBy | null} [orderBy]
4500
+ * @param {ListTasksForCompanyV1TasksCompanyGetOrderEnum} [order]
4235
4501
  * @param {string} [authorization]
4236
4502
  * @param {string} [sessionId]
4237
4503
  * @param {*} [options] Override http request option.
4238
4504
  * @throws {RequiredError}
4239
4505
  * @memberof TasksApi
4240
4506
  */
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));
4507
+ listTasksForCompanyV1TasksCompanyGet(companyId, page, elements, dueDateFrom, dueDateTo, priority, status, orderBy, order, authorization, sessionId, options) {
4508
+ 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
4509
  }
4244
4510
  /**
4245
4511
  *
@@ -4247,14 +4513,20 @@ export class TasksApi extends BaseAPI {
4247
4513
  * @param {string} companyId
4248
4514
  * @param {number} [page]
4249
4515
  * @param {number} [elements]
4516
+ * @param {string | null} [dueDateFrom]
4517
+ * @param {string | null} [dueDateTo]
4518
+ * @param {TaskPriority | null} [priority]
4519
+ * @param {TaskStatus | null} [status]
4520
+ * @param {OrderBy | null} [orderBy]
4521
+ * @param {ListTasksForUserV1TasksUserGetOrderEnum} [order]
4250
4522
  * @param {string} [authorization]
4251
4523
  * @param {string} [sessionId]
4252
4524
  * @param {*} [options] Override http request option.
4253
4525
  * @throws {RequiredError}
4254
4526
  * @memberof TasksApi
4255
4527
  */
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));
4528
+ listTasksForUserV1TasksUserGet(companyId, page, elements, dueDateFrom, dueDateTo, priority, status, orderBy, order, authorization, sessionId, options) {
4529
+ 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
4530
  }
4259
4531
  /**
4260
4532
  *
@@ -4269,6 +4541,19 @@ export class TasksApi extends BaseAPI {
4269
4541
  requestTaskSchedulingV1TasksSchedulePost(schedulerRequest, authorization, sessionId, options) {
4270
4542
  return TasksApiFp(this.configuration).requestTaskSchedulingV1TasksSchedulePost(schedulerRequest, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
4271
4543
  }
4544
+ /**
4545
+ *
4546
+ * @summary Update Task Status
4547
+ * @param {UpdateTaskStatus} updateTaskStatus
4548
+ * @param {string} [authorization]
4549
+ * @param {string} [sessionId]
4550
+ * @param {*} [options] Override http request option.
4551
+ * @throws {RequiredError}
4552
+ * @memberof TasksApi
4553
+ */
4554
+ updateTaskStatusV1TasksStatusPatch(updateTaskStatus, authorization, sessionId, options) {
4555
+ return TasksApiFp(this.configuration).updateTaskStatusV1TasksStatusPatch(updateTaskStatus, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
4556
+ }
4272
4557
  /**
4273
4558
  *
4274
4559
  * @summary Update Task
@@ -4283,6 +4568,20 @@ export class TasksApi extends BaseAPI {
4283
4568
  return TasksApiFp(this.configuration).updateTaskV1TasksPut(updateTaskSchema, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
4284
4569
  }
4285
4570
  }
4571
+ /**
4572
+ * @export
4573
+ */
4574
+ export const ListTasksForCompanyV1TasksCompanyGetOrderEnum = {
4575
+ Asc: 'asc',
4576
+ Desc: 'desc'
4577
+ };
4578
+ /**
4579
+ * @export
4580
+ */
4581
+ export const ListTasksForUserV1TasksUserGetOrderEnum = {
4582
+ Asc: 'asc',
4583
+ Desc: 'desc'
4584
+ };
4286
4585
  /**
4287
4586
  * UserApi - axios parameter creator
4288
4587
  * @export
package/dist/index.d.ts CHANGED
@@ -11,4 +11,3 @@
11
11
  */
12
12
  export * from "./api";
13
13
  export * from "./configuration";
14
- export * from "./sdk";
package/dist/index.js CHANGED
@@ -13,4 +13,3 @@
13
13
  */
14
14
  export * from "./api";
15
15
  export * from "./configuration";
16
- export * from "./sdk";
@@ -17,4 +17,6 @@
17
17
 
18
18
  * `Tasks` (value: `'tasks'`)
19
19
 
20
+ * `TaskScheduler` (value: `'task_scheduler'`)
21
+
20
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)
@@ -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]
@@ -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,22 @@
1
+ # PaginationResponseTaskWithUser
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **items** | [**Array<TaskWithUser>**](TaskWithUser.md) | | [default to undefined]
9
+ **total** | **number** | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { PaginationResponseTaskWithUser } from './api';
15
+
16
+ const instance: PaginationResponseTaskWithUser = {
17
+ items,
18
+ total,
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/docs/RolesApi.md CHANGED
@@ -5,6 +5,7 @@ All URIs are relative to *http://localhost*
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
7
  |[**getUserPermissionsV1RolesCompanyIdMeGet**](#getuserpermissionsv1rolescompanyidmeget) | **GET** /v1/roles/{company_id}/me | Get User Permissions|
8
+ |[**getUsersV1RolesCompanyIdListGet**](#getusersv1rolescompanyidlistget) | **GET** /v1/roles/{company_id}/list | Get Users|
8
9
  |[**inviteV1RolesInvitesPost**](#invitev1rolesinvitespost) | **POST** /v1/roles/invites | Invite|
9
10
  |[**removePeopleV1RolesInvitesDelete**](#removepeoplev1rolesinvitesdelete) | **DELETE** /v1/roles/invites | Remove People|
10
11
 
@@ -57,6 +58,63 @@ No authorization required
57
58
  - **Accept**: application/json
58
59
 
59
60
 
61
+ ### HTTP response details
62
+ | Status code | Description | Response headers |
63
+ |-------------|-------------|------------------|
64
+ |**200** | Successful Response | - |
65
+ |**422** | Validation Error | - |
66
+
67
+ [[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)
68
+
69
+ # **getUsersV1RolesCompanyIdListGet**
70
+ > Array<UserWithId> getUsersV1RolesCompanyIdListGet()
71
+
72
+
73
+ ### Example
74
+
75
+ ```typescript
76
+ import {
77
+ RolesApi,
78
+ Configuration
79
+ } from './api';
80
+
81
+ const configuration = new Configuration();
82
+ const apiInstance = new RolesApi(configuration);
83
+
84
+ let companyId: string; // (default to undefined)
85
+ let authorization: string; // (optional) (default to undefined)
86
+ let sessionId: string; // (optional) (default to undefined)
87
+
88
+ const { status, data } = await apiInstance.getUsersV1RolesCompanyIdListGet(
89
+ companyId,
90
+ authorization,
91
+ sessionId
92
+ );
93
+ ```
94
+
95
+ ### Parameters
96
+
97
+ |Name | Type | Description | Notes|
98
+ |------------- | ------------- | ------------- | -------------|
99
+ | **companyId** | [**string**] | | defaults to undefined|
100
+ | **authorization** | [**string**] | | (optional) defaults to undefined|
101
+ | **sessionId** | [**string**] | | (optional) defaults to undefined|
102
+
103
+
104
+ ### Return type
105
+
106
+ **Array<UserWithId>**
107
+
108
+ ### Authorization
109
+
110
+ No authorization required
111
+
112
+ ### HTTP request headers
113
+
114
+ - **Content-Type**: Not defined
115
+ - **Accept**: application/json
116
+
117
+
60
118
  ### HTTP response details
61
119
  | Status code | Description | Response headers |
62
120
  |-------------|-------------|------------------|