tuix-timesheets-api 0.61.0 → 0.63.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +3 -3
- package/apis/TuixTimesheetsClientApi.js +133 -104
- package/apis/TuixTimesheetsClientApi.js.map +1 -1
- package/apis/TuixTimesheetsClientApi.ts +201 -157
- package/models/{CreateGithubUserDto.js → CreateGithubUserDTO.js} +15 -15
- package/models/CreateGithubUserDTO.js.map +1 -0
- package/models/{CreateGithubUserDto.ts → CreateGithubUserDTO.ts} +18 -18
- package/models/GithubAccountDTO.js +51 -0
- package/models/GithubAccountDTO.js.map +1 -0
- package/models/{GithubAccountDto.ts → GithubAccountDTO.ts} +11 -12
- package/models/GithubCommitCountDTO.js +5 -5
- package/models/GithubCommitCountDTO.js.map +1 -1
- package/models/GithubCommitCountDTO.ts +9 -9
- package/models/GithubUserDTO.js +70 -0
- package/models/GithubUserDTO.js.map +1 -0
- package/models/GithubUserDTO.ts +127 -0
- package/models/index.js +3 -3
- package/models/index.ts +3 -3
- package/package.json +1 -1
- package/models/CreateGithubUserDto.js.map +0 -1
- package/models/GithubAccountDto.js +0 -51
- package/models/GithubAccountDto.js.map +0 -1
- package/models/GithubUserDto.js +0 -55
- package/models/GithubUserDto.js.map +0 -1
- package/models/GithubUserDto.ts +0 -82
package/.openapi-generator/FILES
CHANGED
|
@@ -11,7 +11,7 @@ models/ClientDTO.ts
|
|
|
11
11
|
models/ClientInvoiceDTO.ts
|
|
12
12
|
models/CompanyDTO.ts
|
|
13
13
|
models/CreateEmployeeInvoiceInputDTO.ts
|
|
14
|
-
models/
|
|
14
|
+
models/CreateGithubUserDTO.ts
|
|
15
15
|
models/CreateJiraAccountDto.ts
|
|
16
16
|
models/CreateJiraUserDto.ts
|
|
17
17
|
models/CreateSubscriptionDTO.ts
|
|
@@ -23,9 +23,9 @@ models/EmployeeInvoiceDTO.ts
|
|
|
23
23
|
models/EmployeeProjectDTO.ts
|
|
24
24
|
models/EmployeeUpdateDTO.ts
|
|
25
25
|
models/ErrorDTO.ts
|
|
26
|
-
models/
|
|
26
|
+
models/GithubAccountDTO.ts
|
|
27
27
|
models/GithubCommitCountDTO.ts
|
|
28
|
-
models/
|
|
28
|
+
models/GithubUserDTO.ts
|
|
29
29
|
models/GlobalTimesheetDTO.ts
|
|
30
30
|
models/GlobalTimesheetEntryDTO.ts
|
|
31
31
|
models/GlobalTimesheetEntryUpdateDTO.ts
|
|
@@ -36,7 +36,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
36
36
|
return result;
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
39
|
+
exports.GetMyCommitsGroupByEnum = exports.GetCommitsByUserIDGroupByEnum = exports.TuixTimesheetsClientApi = void 0;
|
|
40
40
|
const runtime = __importStar(require("../runtime"));
|
|
41
41
|
const index_1 = require("../models/index");
|
|
42
42
|
/**
|
|
@@ -260,11 +260,12 @@ class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
260
260
|
return await response.value();
|
|
261
261
|
}
|
|
262
262
|
/**
|
|
263
|
-
*
|
|
263
|
+
* Create a new GitHub user account
|
|
264
|
+
* Create GitHub user
|
|
264
265
|
*/
|
|
265
266
|
async createGithubUserRaw(requestParameters, initOverrides) {
|
|
266
|
-
if (requestParameters.
|
|
267
|
-
throw new runtime.RequiredError('
|
|
267
|
+
if (requestParameters.createGithubUserDTO === null || requestParameters.createGithubUserDTO === undefined) {
|
|
268
|
+
throw new runtime.RequiredError('createGithubUserDTO', 'Required parameter requestParameters.createGithubUserDTO was null or undefined when calling createGithubUser.');
|
|
268
269
|
}
|
|
269
270
|
const queryParameters = {};
|
|
270
271
|
const headerParameters = {};
|
|
@@ -277,12 +278,13 @@ class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
277
278
|
method: 'POST',
|
|
278
279
|
headers: headerParameters,
|
|
279
280
|
query: queryParameters,
|
|
280
|
-
body: (0, index_1.
|
|
281
|
+
body: (0, index_1.CreateGithubUserDTOToJSON)(requestParameters.createGithubUserDTO),
|
|
281
282
|
}, initOverrides);
|
|
282
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.
|
|
283
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GithubUserDTOFromJSON)(jsonValue));
|
|
283
284
|
}
|
|
284
285
|
/**
|
|
285
|
-
*
|
|
286
|
+
* Create a new GitHub user account
|
|
287
|
+
* Create GitHub user
|
|
286
288
|
*/
|
|
287
289
|
async createGithubUser(requestParameters, initOverrides) {
|
|
288
290
|
const response = await this.createGithubUserRaw(requestParameters, initOverrides);
|
|
@@ -581,7 +583,8 @@ class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
581
583
|
await this.deleteEmployeeInvoiceRaw(requestParameters, initOverrides);
|
|
582
584
|
}
|
|
583
585
|
/**
|
|
584
|
-
*
|
|
586
|
+
* Delete the authenticated user\'s GitHub account
|
|
587
|
+
* Delete GitHub user
|
|
585
588
|
*/
|
|
586
589
|
async deleteGithubUserRaw(initOverrides) {
|
|
587
590
|
const queryParameters = {};
|
|
@@ -598,7 +601,8 @@ class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
598
601
|
return new runtime.VoidApiResponse(response);
|
|
599
602
|
}
|
|
600
603
|
/**
|
|
601
|
-
*
|
|
604
|
+
* Delete the authenticated user\'s GitHub account
|
|
605
|
+
* Delete GitHub user
|
|
602
606
|
*/
|
|
603
607
|
async deleteGithubUser(initOverrides) {
|
|
604
608
|
await this.deleteGithubUserRaw(initOverrides);
|
|
@@ -920,89 +924,6 @@ class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
920
924
|
const response = await this.downloadTimesheetPdfRaw(requestParameters, initOverrides);
|
|
921
925
|
return await response.value();
|
|
922
926
|
}
|
|
923
|
-
/**
|
|
924
|
-
*/
|
|
925
|
-
async employeesControllerGetCommitsByUserIdRaw(requestParameters, initOverrides) {
|
|
926
|
-
if (requestParameters.from === null || requestParameters.from === undefined) {
|
|
927
|
-
throw new runtime.RequiredError('from', 'Required parameter requestParameters.from was null or undefined when calling employeesControllerGetCommitsByUserId.');
|
|
928
|
-
}
|
|
929
|
-
if (requestParameters.to === null || requestParameters.to === undefined) {
|
|
930
|
-
throw new runtime.RequiredError('to', 'Required parameter requestParameters.to was null or undefined when calling employeesControllerGetCommitsByUserId.');
|
|
931
|
-
}
|
|
932
|
-
if (requestParameters.groupBy === null || requestParameters.groupBy === undefined) {
|
|
933
|
-
throw new runtime.RequiredError('groupBy', 'Required parameter requestParameters.groupBy was null or undefined when calling employeesControllerGetCommitsByUserId.');
|
|
934
|
-
}
|
|
935
|
-
if (requestParameters.userId === null || requestParameters.userId === undefined) {
|
|
936
|
-
throw new runtime.RequiredError('userId', 'Required parameter requestParameters.userId was null or undefined when calling employeesControllerGetCommitsByUserId.');
|
|
937
|
-
}
|
|
938
|
-
const queryParameters = {};
|
|
939
|
-
if (requestParameters.from !== undefined) {
|
|
940
|
-
queryParameters['from'] = requestParameters.from.toISOString().substring(0, 10);
|
|
941
|
-
}
|
|
942
|
-
if (requestParameters.to !== undefined) {
|
|
943
|
-
queryParameters['to'] = requestParameters.to.toISOString().substring(0, 10);
|
|
944
|
-
}
|
|
945
|
-
if (requestParameters.groupBy !== undefined) {
|
|
946
|
-
queryParameters['groupBy'] = requestParameters.groupBy;
|
|
947
|
-
}
|
|
948
|
-
const headerParameters = {};
|
|
949
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
950
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // auth0Authorizer authentication
|
|
951
|
-
}
|
|
952
|
-
const response = await this.request({
|
|
953
|
-
path: `/employees/{userId}/commits`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters.userId))),
|
|
954
|
-
method: 'GET',
|
|
955
|
-
headers: headerParameters,
|
|
956
|
-
query: queryParameters,
|
|
957
|
-
}, initOverrides);
|
|
958
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.GithubCommitCountDTOFromJSON));
|
|
959
|
-
}
|
|
960
|
-
/**
|
|
961
|
-
*/
|
|
962
|
-
async employeesControllerGetCommitsByUserId(requestParameters, initOverrides) {
|
|
963
|
-
const response = await this.employeesControllerGetCommitsByUserIdRaw(requestParameters, initOverrides);
|
|
964
|
-
return await response.value();
|
|
965
|
-
}
|
|
966
|
-
/**
|
|
967
|
-
*/
|
|
968
|
-
async employeesControllerGetMyCommitsRaw(requestParameters, initOverrides) {
|
|
969
|
-
if (requestParameters.from === null || requestParameters.from === undefined) {
|
|
970
|
-
throw new runtime.RequiredError('from', 'Required parameter requestParameters.from was null or undefined when calling employeesControllerGetMyCommits.');
|
|
971
|
-
}
|
|
972
|
-
if (requestParameters.to === null || requestParameters.to === undefined) {
|
|
973
|
-
throw new runtime.RequiredError('to', 'Required parameter requestParameters.to was null or undefined when calling employeesControllerGetMyCommits.');
|
|
974
|
-
}
|
|
975
|
-
if (requestParameters.groupBy === null || requestParameters.groupBy === undefined) {
|
|
976
|
-
throw new runtime.RequiredError('groupBy', 'Required parameter requestParameters.groupBy was null or undefined when calling employeesControllerGetMyCommits.');
|
|
977
|
-
}
|
|
978
|
-
const queryParameters = {};
|
|
979
|
-
if (requestParameters.from !== undefined) {
|
|
980
|
-
queryParameters['from'] = requestParameters.from.toISOString().substring(0, 10);
|
|
981
|
-
}
|
|
982
|
-
if (requestParameters.to !== undefined) {
|
|
983
|
-
queryParameters['to'] = requestParameters.to.toISOString().substring(0, 10);
|
|
984
|
-
}
|
|
985
|
-
if (requestParameters.groupBy !== undefined) {
|
|
986
|
-
queryParameters['groupBy'] = requestParameters.groupBy;
|
|
987
|
-
}
|
|
988
|
-
const headerParameters = {};
|
|
989
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
990
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // auth0Authorizer authentication
|
|
991
|
-
}
|
|
992
|
-
const response = await this.request({
|
|
993
|
-
path: `/commits`,
|
|
994
|
-
method: 'GET',
|
|
995
|
-
headers: headerParameters,
|
|
996
|
-
query: queryParameters,
|
|
997
|
-
}, initOverrides);
|
|
998
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.GithubCommitCountDTOFromJSON));
|
|
999
|
-
}
|
|
1000
|
-
/**
|
|
1001
|
-
*/
|
|
1002
|
-
async employeesControllerGetMyCommits(requestParameters, initOverrides) {
|
|
1003
|
-
const response = await this.employeesControllerGetMyCommitsRaw(requestParameters, initOverrides);
|
|
1004
|
-
return await response.value();
|
|
1005
|
-
}
|
|
1006
927
|
/**
|
|
1007
928
|
* Get an adjustedTimesheet
|
|
1008
929
|
* Get an adjustedTimesheet
|
|
@@ -1115,6 +1036,9 @@ class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
1115
1036
|
if (requestParameters.pageSize !== undefined) {
|
|
1116
1037
|
queryParameters['pageSize'] = requestParameters.pageSize;
|
|
1117
1038
|
}
|
|
1039
|
+
if (requestParameters.search !== undefined) {
|
|
1040
|
+
queryParameters['search'] = requestParameters.search;
|
|
1041
|
+
}
|
|
1118
1042
|
const headerParameters = {};
|
|
1119
1043
|
if (this.configuration && this.configuration.apiKey) {
|
|
1120
1044
|
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // auth0Authorizer authentication
|
|
@@ -1170,12 +1094,59 @@ class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
1170
1094
|
const response = await this.getClientsRaw(requestParameters, initOverrides);
|
|
1171
1095
|
return await response.value();
|
|
1172
1096
|
}
|
|
1097
|
+
/**
|
|
1098
|
+
* Get commit statistics for a specific user
|
|
1099
|
+
* Get commits by user ID
|
|
1100
|
+
*/
|
|
1101
|
+
async getCommitsByUserIDRaw(requestParameters, initOverrides) {
|
|
1102
|
+
if (requestParameters.userId === null || requestParameters.userId === undefined) {
|
|
1103
|
+
throw new runtime.RequiredError('userId', 'Required parameter requestParameters.userId was null or undefined when calling getCommitsByUserID.');
|
|
1104
|
+
}
|
|
1105
|
+
if (requestParameters.from === null || requestParameters.from === undefined) {
|
|
1106
|
+
throw new runtime.RequiredError('from', 'Required parameter requestParameters.from was null or undefined when calling getCommitsByUserID.');
|
|
1107
|
+
}
|
|
1108
|
+
if (requestParameters.to === null || requestParameters.to === undefined) {
|
|
1109
|
+
throw new runtime.RequiredError('to', 'Required parameter requestParameters.to was null or undefined when calling getCommitsByUserID.');
|
|
1110
|
+
}
|
|
1111
|
+
const queryParameters = {};
|
|
1112
|
+
if (requestParameters.from !== undefined) {
|
|
1113
|
+
queryParameters['from'] = requestParameters.from.toISOString().substring(0, 10);
|
|
1114
|
+
}
|
|
1115
|
+
if (requestParameters.to !== undefined) {
|
|
1116
|
+
queryParameters['to'] = requestParameters.to.toISOString().substring(0, 10);
|
|
1117
|
+
}
|
|
1118
|
+
if (requestParameters.groupBy !== undefined) {
|
|
1119
|
+
queryParameters['groupBy'] = requestParameters.groupBy;
|
|
1120
|
+
}
|
|
1121
|
+
const headerParameters = {};
|
|
1122
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1123
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // auth0Authorizer authentication
|
|
1124
|
+
}
|
|
1125
|
+
const response = await this.request({
|
|
1126
|
+
path: `/employees/{userId}/commits`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters.userId))),
|
|
1127
|
+
method: 'GET',
|
|
1128
|
+
headers: headerParameters,
|
|
1129
|
+
query: queryParameters,
|
|
1130
|
+
}, initOverrides);
|
|
1131
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.GithubCommitCountDTOFromJSON));
|
|
1132
|
+
}
|
|
1133
|
+
/**
|
|
1134
|
+
* Get commit statistics for a specific user
|
|
1135
|
+
* Get commits by user ID
|
|
1136
|
+
*/
|
|
1137
|
+
async getCommitsByUserID(requestParameters, initOverrides) {
|
|
1138
|
+
const response = await this.getCommitsByUserIDRaw(requestParameters, initOverrides);
|
|
1139
|
+
return await response.value();
|
|
1140
|
+
}
|
|
1173
1141
|
/**
|
|
1174
1142
|
* Get all companies a user belongs to
|
|
1175
1143
|
* Get all companies a user belongs to
|
|
1176
1144
|
*/
|
|
1177
|
-
async getCompaniesRaw(initOverrides) {
|
|
1145
|
+
async getCompaniesRaw(requestParameters, initOverrides) {
|
|
1178
1146
|
const queryParameters = {};
|
|
1147
|
+
if (requestParameters.search !== undefined) {
|
|
1148
|
+
queryParameters['search'] = requestParameters.search;
|
|
1149
|
+
}
|
|
1179
1150
|
const headerParameters = {};
|
|
1180
1151
|
if (this.configuration && this.configuration.apiKey) {
|
|
1181
1152
|
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // auth0Authorizer authentication
|
|
@@ -1192,8 +1163,8 @@ class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
1192
1163
|
* Get all companies a user belongs to
|
|
1193
1164
|
* Get all companies a user belongs to
|
|
1194
1165
|
*/
|
|
1195
|
-
async getCompanies(initOverrides) {
|
|
1196
|
-
const response = await this.getCompaniesRaw(initOverrides);
|
|
1166
|
+
async getCompanies(requestParameters = {}, initOverrides) {
|
|
1167
|
+
const response = await this.getCompaniesRaw(requestParameters, initOverrides);
|
|
1197
1168
|
return await response.value();
|
|
1198
1169
|
}
|
|
1199
1170
|
/**
|
|
@@ -1269,6 +1240,9 @@ class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
1269
1240
|
if (requestParameters.pageSize !== undefined) {
|
|
1270
1241
|
queryParameters['pageSize'] = requestParameters.pageSize;
|
|
1271
1242
|
}
|
|
1243
|
+
if (requestParameters.search !== undefined) {
|
|
1244
|
+
queryParameters['search'] = requestParameters.search;
|
|
1245
|
+
}
|
|
1272
1246
|
const headerParameters = {};
|
|
1273
1247
|
if (this.configuration && this.configuration.apiKey) {
|
|
1274
1248
|
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // auth0Authorizer authentication
|
|
@@ -1342,6 +1316,9 @@ class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
1342
1316
|
if (requestParameters.activated !== undefined) {
|
|
1343
1317
|
queryParameters['activated'] = requestParameters.activated;
|
|
1344
1318
|
}
|
|
1319
|
+
if (requestParameters.search !== undefined) {
|
|
1320
|
+
queryParameters['search'] = requestParameters.search;
|
|
1321
|
+
}
|
|
1345
1322
|
const headerParameters = {};
|
|
1346
1323
|
if (this.configuration && this.configuration.apiKey) {
|
|
1347
1324
|
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // auth0Authorizer authentication
|
|
@@ -1363,7 +1340,8 @@ class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
1363
1340
|
return await response.value();
|
|
1364
1341
|
}
|
|
1365
1342
|
/**
|
|
1366
|
-
*
|
|
1343
|
+
* Get GitHub account for the authenticated user
|
|
1344
|
+
* Get GitHub account
|
|
1367
1345
|
*/
|
|
1368
1346
|
async getGithubAccountRaw(initOverrides) {
|
|
1369
1347
|
const queryParameters = {};
|
|
@@ -1377,10 +1355,11 @@ class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
1377
1355
|
headers: headerParameters,
|
|
1378
1356
|
query: queryParameters,
|
|
1379
1357
|
}, initOverrides);
|
|
1380
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.
|
|
1358
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GithubAccountDTOFromJSON)(jsonValue));
|
|
1381
1359
|
}
|
|
1382
1360
|
/**
|
|
1383
|
-
*
|
|
1361
|
+
* Get GitHub account for the authenticated user
|
|
1362
|
+
* Get GitHub account
|
|
1384
1363
|
*/
|
|
1385
1364
|
async getGithubAccount(initOverrides) {
|
|
1386
1365
|
const response = await this.getGithubAccountRaw(initOverrides);
|
|
@@ -1467,6 +1446,9 @@ class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
1467
1446
|
if (requestParameters.pageSize !== undefined) {
|
|
1468
1447
|
queryParameters['pageSize'] = requestParameters.pageSize;
|
|
1469
1448
|
}
|
|
1449
|
+
if (requestParameters.search !== undefined) {
|
|
1450
|
+
queryParameters['search'] = requestParameters.search;
|
|
1451
|
+
}
|
|
1470
1452
|
const headerParameters = {};
|
|
1471
1453
|
if (this.configuration && this.configuration.apiKey) {
|
|
1472
1454
|
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // auth0Authorizer authentication
|
|
@@ -1500,6 +1482,9 @@ class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
1500
1482
|
if (requestParameters.pageSize !== undefined) {
|
|
1501
1483
|
queryParameters['pageSize'] = requestParameters.pageSize;
|
|
1502
1484
|
}
|
|
1485
|
+
if (requestParameters.search !== undefined) {
|
|
1486
|
+
queryParameters['search'] = requestParameters.search;
|
|
1487
|
+
}
|
|
1503
1488
|
const headerParameters = {};
|
|
1504
1489
|
if (this.configuration && this.configuration.apiKey) {
|
|
1505
1490
|
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // auth0Authorizer authentication
|
|
@@ -1593,6 +1578,47 @@ class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
1593
1578
|
const response = await this.getMyAccountRaw(initOverrides);
|
|
1594
1579
|
return await response.value();
|
|
1595
1580
|
}
|
|
1581
|
+
/**
|
|
1582
|
+
* Get commit statistics for the authenticated user
|
|
1583
|
+
* Get my commits
|
|
1584
|
+
*/
|
|
1585
|
+
async getMyCommitsRaw(requestParameters, initOverrides) {
|
|
1586
|
+
if (requestParameters.from === null || requestParameters.from === undefined) {
|
|
1587
|
+
throw new runtime.RequiredError('from', 'Required parameter requestParameters.from was null or undefined when calling getMyCommits.');
|
|
1588
|
+
}
|
|
1589
|
+
if (requestParameters.to === null || requestParameters.to === undefined) {
|
|
1590
|
+
throw new runtime.RequiredError('to', 'Required parameter requestParameters.to was null or undefined when calling getMyCommits.');
|
|
1591
|
+
}
|
|
1592
|
+
const queryParameters = {};
|
|
1593
|
+
if (requestParameters.from !== undefined) {
|
|
1594
|
+
queryParameters['from'] = requestParameters.from.toISOString().substring(0, 10);
|
|
1595
|
+
}
|
|
1596
|
+
if (requestParameters.to !== undefined) {
|
|
1597
|
+
queryParameters['to'] = requestParameters.to.toISOString().substring(0, 10);
|
|
1598
|
+
}
|
|
1599
|
+
if (requestParameters.groupBy !== undefined) {
|
|
1600
|
+
queryParameters['groupBy'] = requestParameters.groupBy;
|
|
1601
|
+
}
|
|
1602
|
+
const headerParameters = {};
|
|
1603
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1604
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // auth0Authorizer authentication
|
|
1605
|
+
}
|
|
1606
|
+
const response = await this.request({
|
|
1607
|
+
path: `/commits`,
|
|
1608
|
+
method: 'GET',
|
|
1609
|
+
headers: headerParameters,
|
|
1610
|
+
query: queryParameters,
|
|
1611
|
+
}, initOverrides);
|
|
1612
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.GithubCommitCountDTOFromJSON));
|
|
1613
|
+
}
|
|
1614
|
+
/**
|
|
1615
|
+
* Get commit statistics for the authenticated user
|
|
1616
|
+
* Get my commits
|
|
1617
|
+
*/
|
|
1618
|
+
async getMyCommits(requestParameters, initOverrides) {
|
|
1619
|
+
const response = await this.getMyCommitsRaw(requestParameters, initOverrides);
|
|
1620
|
+
return await response.value();
|
|
1621
|
+
}
|
|
1596
1622
|
/**
|
|
1597
1623
|
* Get template by id
|
|
1598
1624
|
* Get template by id
|
|
@@ -1936,8 +1962,8 @@ class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
1936
1962
|
return await response.value();
|
|
1937
1963
|
}
|
|
1938
1964
|
/**
|
|
1939
|
-
* Get all timesheets in a project
|
|
1940
|
-
* Get all timesheets in a project
|
|
1965
|
+
* Get all timesheets in a project without timesheet entries.
|
|
1966
|
+
* Get all timesheets in a project without timesheet entries.
|
|
1941
1967
|
*/
|
|
1942
1968
|
async getTimesheetsRaw(requestParameters, initOverrides) {
|
|
1943
1969
|
if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
|
|
@@ -1950,6 +1976,9 @@ class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
1950
1976
|
if (requestParameters.pageSize !== undefined) {
|
|
1951
1977
|
queryParameters['pageSize'] = requestParameters.pageSize;
|
|
1952
1978
|
}
|
|
1979
|
+
if (requestParameters.search !== undefined) {
|
|
1980
|
+
queryParameters['search'] = requestParameters.search;
|
|
1981
|
+
}
|
|
1953
1982
|
const headerParameters = {};
|
|
1954
1983
|
if (this.configuration && this.configuration.apiKey) {
|
|
1955
1984
|
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // auth0Authorizer authentication
|
|
@@ -1963,8 +1992,8 @@ class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
1963
1992
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PaginatedTimesheetsFromJSON)(jsonValue));
|
|
1964
1993
|
}
|
|
1965
1994
|
/**
|
|
1966
|
-
* Get all timesheets in a project
|
|
1967
|
-
* Get all timesheets in a project
|
|
1995
|
+
* Get all timesheets in a project without timesheet entries.
|
|
1996
|
+
* Get all timesheets in a project without timesheet entries.
|
|
1968
1997
|
*/
|
|
1969
1998
|
async getTimesheets(requestParameters, initOverrides) {
|
|
1970
1999
|
const response = await this.getTimesheetsRaw(requestParameters, initOverrides);
|
|
@@ -2798,7 +2827,7 @@ exports.TuixTimesheetsClientApi = TuixTimesheetsClientApi;
|
|
|
2798
2827
|
/**
|
|
2799
2828
|
* @export
|
|
2800
2829
|
*/
|
|
2801
|
-
exports.
|
|
2830
|
+
exports.GetCommitsByUserIDGroupByEnum = {
|
|
2802
2831
|
HourOfDay: 'hourOfDay',
|
|
2803
2832
|
Year: 'year',
|
|
2804
2833
|
Month: 'month',
|
|
@@ -2807,7 +2836,7 @@ exports.EmployeesControllerGetCommitsByUserIdGroupByEnum = {
|
|
|
2807
2836
|
/**
|
|
2808
2837
|
* @export
|
|
2809
2838
|
*/
|
|
2810
|
-
exports.
|
|
2839
|
+
exports.GetMyCommitsGroupByEnum = {
|
|
2811
2840
|
HourOfDay: 'hourOfDay',
|
|
2812
2841
|
Year: 'year',
|
|
2813
2842
|
Month: 'month',
|