tuix-timesheets-api 0.6.162 → 0.6.164
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 +1 -0
- package/apis/TuixTimesheetsClientApi.js +158 -143
- package/apis/TuixTimesheetsClientApi.js.map +1 -1
- package/apis/TuixTimesheetsClientApi.ts +218 -195
- package/models/MarkEmployeeInvoicePaidDTO.js +51 -0
- package/models/MarkEmployeeInvoicePaidDTO.js.map +1 -0
- package/models/MarkEmployeeInvoicePaidDTO.ts +66 -0
- package/models/index.js +1 -0
- package/models/index.js.map +1 -1
- package/models/index.ts +1 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -165,38 +165,6 @@ class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
165
165
|
async approveTimesheet(requestParameters, initOverrides) {
|
|
166
166
|
await this.approveTimesheetRaw(requestParameters, initOverrides);
|
|
167
167
|
}
|
|
168
|
-
/**
|
|
169
|
-
* Get commit statistics for the authenticated user
|
|
170
|
-
* Get my commits
|
|
171
|
-
*/
|
|
172
|
-
async commitsGetRaw(requestParameters, initOverrides) {
|
|
173
|
-
const queryParameters = {};
|
|
174
|
-
if (requestParameters.from !== undefined) {
|
|
175
|
-
queryParameters['from'] = requestParameters.from;
|
|
176
|
-
}
|
|
177
|
-
if (requestParameters.to !== undefined) {
|
|
178
|
-
queryParameters['to'] = requestParameters.to;
|
|
179
|
-
}
|
|
180
|
-
if (requestParameters.groupBy !== undefined) {
|
|
181
|
-
queryParameters['groupBy'] = requestParameters.groupBy;
|
|
182
|
-
}
|
|
183
|
-
const headerParameters = {};
|
|
184
|
-
const response = await this.request({
|
|
185
|
-
path: `/commits`,
|
|
186
|
-
method: 'GET',
|
|
187
|
-
headers: headerParameters,
|
|
188
|
-
query: queryParameters,
|
|
189
|
-
}, initOverrides);
|
|
190
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.GithubCommitCountDTOFromJSON));
|
|
191
|
-
}
|
|
192
|
-
/**
|
|
193
|
-
* Get commit statistics for the authenticated user
|
|
194
|
-
* Get my commits
|
|
195
|
-
*/
|
|
196
|
-
async commitsGet(requestParameters = {}, initOverrides) {
|
|
197
|
-
const response = await this.commitsGetRaw(requestParameters, initOverrides);
|
|
198
|
-
return await response.value();
|
|
199
|
-
}
|
|
200
168
|
/**
|
|
201
169
|
* Create client
|
|
202
170
|
*/
|
|
@@ -291,6 +259,37 @@ class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
291
259
|
const response = await this.createEmployeeInvoiceRaw(requestParameters, initOverrides);
|
|
292
260
|
return await response.value();
|
|
293
261
|
}
|
|
262
|
+
/**
|
|
263
|
+
* Create a new GitHub user account
|
|
264
|
+
* Create GitHub user
|
|
265
|
+
*/
|
|
266
|
+
async createGithubUserRaw(requestParameters, initOverrides) {
|
|
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.');
|
|
269
|
+
}
|
|
270
|
+
const queryParameters = {};
|
|
271
|
+
const headerParameters = {};
|
|
272
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
273
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
274
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // auth0Authorizer authentication
|
|
275
|
+
}
|
|
276
|
+
const response = await this.request({
|
|
277
|
+
path: `/github-users`,
|
|
278
|
+
method: 'POST',
|
|
279
|
+
headers: headerParameters,
|
|
280
|
+
query: queryParameters,
|
|
281
|
+
body: (0, index_1.CreateGithubUserDTOToJSON)(requestParameters.createGithubUserDTO),
|
|
282
|
+
}, initOverrides);
|
|
283
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GithubUserDTOFromJSON)(jsonValue));
|
|
284
|
+
}
|
|
285
|
+
/**
|
|
286
|
+
* Create a new GitHub user account
|
|
287
|
+
* Create GitHub user
|
|
288
|
+
*/
|
|
289
|
+
async createGithubUser(requestParameters, initOverrides) {
|
|
290
|
+
const response = await this.createGithubUserRaw(requestParameters, initOverrides);
|
|
291
|
+
return await response.value();
|
|
292
|
+
}
|
|
294
293
|
/**
|
|
295
294
|
* Allows a user to add a holiday
|
|
296
295
|
*/
|
|
@@ -583,6 +582,31 @@ class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
583
582
|
async deleteEmployeeInvoice(requestParameters, initOverrides) {
|
|
584
583
|
await this.deleteEmployeeInvoiceRaw(requestParameters, initOverrides);
|
|
585
584
|
}
|
|
585
|
+
/**
|
|
586
|
+
* Delete the authenticated user\'s GitHub account
|
|
587
|
+
* Delete GitHub user
|
|
588
|
+
*/
|
|
589
|
+
async deleteGithubUserRaw(initOverrides) {
|
|
590
|
+
const queryParameters = {};
|
|
591
|
+
const headerParameters = {};
|
|
592
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
593
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // auth0Authorizer authentication
|
|
594
|
+
}
|
|
595
|
+
const response = await this.request({
|
|
596
|
+
path: `/github-users`,
|
|
597
|
+
method: 'DELETE',
|
|
598
|
+
headers: headerParameters,
|
|
599
|
+
query: queryParameters,
|
|
600
|
+
}, initOverrides);
|
|
601
|
+
return new runtime.VoidApiResponse(response);
|
|
602
|
+
}
|
|
603
|
+
/**
|
|
604
|
+
* Delete the authenticated user\'s GitHub account
|
|
605
|
+
* Delete GitHub user
|
|
606
|
+
*/
|
|
607
|
+
async deleteGithubUser(initOverrides) {
|
|
608
|
+
await this.deleteGithubUserRaw(initOverrides);
|
|
609
|
+
}
|
|
586
610
|
/**
|
|
587
611
|
* Delete a holiday
|
|
588
612
|
* Delete a holiday
|
|
@@ -900,41 +924,6 @@ class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
900
924
|
const response = await this.downloadTimesheetPdfRaw(requestParameters, initOverrides);
|
|
901
925
|
return await response.value();
|
|
902
926
|
}
|
|
903
|
-
/**
|
|
904
|
-
* Get commit statistics for a specific user
|
|
905
|
-
* Get commits by user ID
|
|
906
|
-
*/
|
|
907
|
-
async employeesUserIdCommitsGetRaw(requestParameters, initOverrides) {
|
|
908
|
-
if (requestParameters.userId === null || requestParameters.userId === undefined) {
|
|
909
|
-
throw new runtime.RequiredError('userId', 'Required parameter requestParameters.userId was null or undefined when calling employeesUserIdCommitsGet.');
|
|
910
|
-
}
|
|
911
|
-
const queryParameters = {};
|
|
912
|
-
if (requestParameters.from !== undefined) {
|
|
913
|
-
queryParameters['from'] = requestParameters.from;
|
|
914
|
-
}
|
|
915
|
-
if (requestParameters.to !== undefined) {
|
|
916
|
-
queryParameters['to'] = requestParameters.to;
|
|
917
|
-
}
|
|
918
|
-
if (requestParameters.groupBy !== undefined) {
|
|
919
|
-
queryParameters['groupBy'] = requestParameters.groupBy;
|
|
920
|
-
}
|
|
921
|
-
const headerParameters = {};
|
|
922
|
-
const response = await this.request({
|
|
923
|
-
path: `/employees/{userId}/commits`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters.userId))),
|
|
924
|
-
method: 'GET',
|
|
925
|
-
headers: headerParameters,
|
|
926
|
-
query: queryParameters,
|
|
927
|
-
}, initOverrides);
|
|
928
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.GithubCommitCountDTOFromJSON));
|
|
929
|
-
}
|
|
930
|
-
/**
|
|
931
|
-
* Get commit statistics for a specific user
|
|
932
|
-
* Get commits by user ID
|
|
933
|
-
*/
|
|
934
|
-
async employeesUserIdCommitsGet(requestParameters, initOverrides) {
|
|
935
|
-
const response = await this.employeesUserIdCommitsGetRaw(requestParameters, initOverrides);
|
|
936
|
-
return await response.value();
|
|
937
|
-
}
|
|
938
927
|
/**
|
|
939
928
|
* Get an adjustedTimesheet
|
|
940
929
|
* Get an adjustedTimesheet
|
|
@@ -1102,6 +1091,44 @@ class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
1102
1091
|
const response = await this.getClientsRaw(requestParameters, initOverrides);
|
|
1103
1092
|
return await response.value();
|
|
1104
1093
|
}
|
|
1094
|
+
/**
|
|
1095
|
+
* Get commit statistics for a specific user
|
|
1096
|
+
* Get commits by user ID
|
|
1097
|
+
*/
|
|
1098
|
+
async getCommitsByUserIDRaw(requestParameters, initOverrides) {
|
|
1099
|
+
if (requestParameters.userId === null || requestParameters.userId === undefined) {
|
|
1100
|
+
throw new runtime.RequiredError('userId', 'Required parameter requestParameters.userId was null or undefined when calling getCommitsByUserID.');
|
|
1101
|
+
}
|
|
1102
|
+
const queryParameters = {};
|
|
1103
|
+
if (requestParameters.from !== undefined) {
|
|
1104
|
+
queryParameters['from'] = requestParameters.from;
|
|
1105
|
+
}
|
|
1106
|
+
if (requestParameters.to !== undefined) {
|
|
1107
|
+
queryParameters['to'] = requestParameters.to;
|
|
1108
|
+
}
|
|
1109
|
+
if (requestParameters.groupBy !== undefined) {
|
|
1110
|
+
queryParameters['groupBy'] = requestParameters.groupBy;
|
|
1111
|
+
}
|
|
1112
|
+
const headerParameters = {};
|
|
1113
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1114
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // auth0Authorizer authentication
|
|
1115
|
+
}
|
|
1116
|
+
const response = await this.request({
|
|
1117
|
+
path: `/employees/{userId}/commits`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters.userId))),
|
|
1118
|
+
method: 'GET',
|
|
1119
|
+
headers: headerParameters,
|
|
1120
|
+
query: queryParameters,
|
|
1121
|
+
}, initOverrides);
|
|
1122
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.GithubCommitCountDTOFromJSON));
|
|
1123
|
+
}
|
|
1124
|
+
/**
|
|
1125
|
+
* Get commit statistics for a specific user
|
|
1126
|
+
* Get commits by user ID
|
|
1127
|
+
*/
|
|
1128
|
+
async getCommitsByUserID(requestParameters, initOverrides) {
|
|
1129
|
+
const response = await this.getCommitsByUserIDRaw(requestParameters, initOverrides);
|
|
1130
|
+
return await response.value();
|
|
1131
|
+
}
|
|
1105
1132
|
/**
|
|
1106
1133
|
* Get all companies a user belongs to
|
|
1107
1134
|
* Get all companies a user belongs to
|
|
@@ -1294,6 +1321,32 @@ class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
1294
1321
|
const response = await this.getEmployeesRaw(requestParameters, initOverrides);
|
|
1295
1322
|
return await response.value();
|
|
1296
1323
|
}
|
|
1324
|
+
/**
|
|
1325
|
+
* Get GitHub account for the authenticated user
|
|
1326
|
+
* Get GitHub account
|
|
1327
|
+
*/
|
|
1328
|
+
async getGithubAccountRaw(initOverrides) {
|
|
1329
|
+
const queryParameters = {};
|
|
1330
|
+
const headerParameters = {};
|
|
1331
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1332
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // auth0Authorizer authentication
|
|
1333
|
+
}
|
|
1334
|
+
const response = await this.request({
|
|
1335
|
+
path: `/github-accounts`,
|
|
1336
|
+
method: 'GET',
|
|
1337
|
+
headers: headerParameters,
|
|
1338
|
+
query: queryParameters,
|
|
1339
|
+
}, initOverrides);
|
|
1340
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GithubAccountDTOFromJSON)(jsonValue));
|
|
1341
|
+
}
|
|
1342
|
+
/**
|
|
1343
|
+
* Get GitHub account for the authenticated user
|
|
1344
|
+
* Get GitHub account
|
|
1345
|
+
*/
|
|
1346
|
+
async getGithubAccount(initOverrides) {
|
|
1347
|
+
const response = await this.getGithubAccountRaw(initOverrides);
|
|
1348
|
+
return await response.value();
|
|
1349
|
+
}
|
|
1297
1350
|
/**
|
|
1298
1351
|
* Get a global timesheet
|
|
1299
1352
|
* Get a global timesheet
|
|
@@ -1501,6 +1554,41 @@ class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
1501
1554
|
const response = await this.getMyAccountRaw(initOverrides);
|
|
1502
1555
|
return await response.value();
|
|
1503
1556
|
}
|
|
1557
|
+
/**
|
|
1558
|
+
* Get commit statistics for the authenticated user
|
|
1559
|
+
* Get my commits
|
|
1560
|
+
*/
|
|
1561
|
+
async getMyCommitsRaw(requestParameters, initOverrides) {
|
|
1562
|
+
const queryParameters = {};
|
|
1563
|
+
if (requestParameters.from !== undefined) {
|
|
1564
|
+
queryParameters['from'] = requestParameters.from;
|
|
1565
|
+
}
|
|
1566
|
+
if (requestParameters.to !== undefined) {
|
|
1567
|
+
queryParameters['to'] = requestParameters.to;
|
|
1568
|
+
}
|
|
1569
|
+
if (requestParameters.groupBy !== undefined) {
|
|
1570
|
+
queryParameters['groupBy'] = requestParameters.groupBy;
|
|
1571
|
+
}
|
|
1572
|
+
const headerParameters = {};
|
|
1573
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1574
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // auth0Authorizer authentication
|
|
1575
|
+
}
|
|
1576
|
+
const response = await this.request({
|
|
1577
|
+
path: `/commits`,
|
|
1578
|
+
method: 'GET',
|
|
1579
|
+
headers: headerParameters,
|
|
1580
|
+
query: queryParameters,
|
|
1581
|
+
}, initOverrides);
|
|
1582
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.GithubCommitCountDTOFromJSON));
|
|
1583
|
+
}
|
|
1584
|
+
/**
|
|
1585
|
+
* Get commit statistics for the authenticated user
|
|
1586
|
+
* Get my commits
|
|
1587
|
+
*/
|
|
1588
|
+
async getMyCommits(requestParameters = {}, initOverrides) {
|
|
1589
|
+
const response = await this.getMyCommitsRaw(requestParameters, initOverrides);
|
|
1590
|
+
return await response.value();
|
|
1591
|
+
}
|
|
1504
1592
|
/**
|
|
1505
1593
|
* Get template by id
|
|
1506
1594
|
* Get template by id
|
|
@@ -1965,79 +2053,6 @@ class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
1965
2053
|
const response = await this.getUserTokensRaw(requestParameters, initOverrides);
|
|
1966
2054
|
return await response.value();
|
|
1967
2055
|
}
|
|
1968
|
-
/**
|
|
1969
|
-
* Get GitHub account for the authenticated user
|
|
1970
|
-
* Get GitHub account
|
|
1971
|
-
*/
|
|
1972
|
-
async githubAccountsGetRaw(initOverrides) {
|
|
1973
|
-
const queryParameters = {};
|
|
1974
|
-
const headerParameters = {};
|
|
1975
|
-
const response = await this.request({
|
|
1976
|
-
path: `/github-accounts`,
|
|
1977
|
-
method: 'GET',
|
|
1978
|
-
headers: headerParameters,
|
|
1979
|
-
query: queryParameters,
|
|
1980
|
-
}, initOverrides);
|
|
1981
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GithubAccountDTOFromJSON)(jsonValue));
|
|
1982
|
-
}
|
|
1983
|
-
/**
|
|
1984
|
-
* Get GitHub account for the authenticated user
|
|
1985
|
-
* Get GitHub account
|
|
1986
|
-
*/
|
|
1987
|
-
async githubAccountsGet(initOverrides) {
|
|
1988
|
-
const response = await this.githubAccountsGetRaw(initOverrides);
|
|
1989
|
-
return await response.value();
|
|
1990
|
-
}
|
|
1991
|
-
/**
|
|
1992
|
-
* Delete the authenticated user\'s GitHub account
|
|
1993
|
-
* Delete GitHub user
|
|
1994
|
-
*/
|
|
1995
|
-
async githubUsersDeleteRaw(initOverrides) {
|
|
1996
|
-
const queryParameters = {};
|
|
1997
|
-
const headerParameters = {};
|
|
1998
|
-
const response = await this.request({
|
|
1999
|
-
path: `/github-users`,
|
|
2000
|
-
method: 'DELETE',
|
|
2001
|
-
headers: headerParameters,
|
|
2002
|
-
query: queryParameters,
|
|
2003
|
-
}, initOverrides);
|
|
2004
|
-
return new runtime.VoidApiResponse(response);
|
|
2005
|
-
}
|
|
2006
|
-
/**
|
|
2007
|
-
* Delete the authenticated user\'s GitHub account
|
|
2008
|
-
* Delete GitHub user
|
|
2009
|
-
*/
|
|
2010
|
-
async githubUsersDelete(initOverrides) {
|
|
2011
|
-
await this.githubUsersDeleteRaw(initOverrides);
|
|
2012
|
-
}
|
|
2013
|
-
/**
|
|
2014
|
-
* Create a new GitHub user account
|
|
2015
|
-
* Create GitHub user
|
|
2016
|
-
*/
|
|
2017
|
-
async githubUsersPostRaw(requestParameters, initOverrides) {
|
|
2018
|
-
if (requestParameters.createGithubUserDTO === null || requestParameters.createGithubUserDTO === undefined) {
|
|
2019
|
-
throw new runtime.RequiredError('createGithubUserDTO', 'Required parameter requestParameters.createGithubUserDTO was null or undefined when calling githubUsersPost.');
|
|
2020
|
-
}
|
|
2021
|
-
const queryParameters = {};
|
|
2022
|
-
const headerParameters = {};
|
|
2023
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
2024
|
-
const response = await this.request({
|
|
2025
|
-
path: `/github-users`,
|
|
2026
|
-
method: 'POST',
|
|
2027
|
-
headers: headerParameters,
|
|
2028
|
-
query: queryParameters,
|
|
2029
|
-
body: (0, index_1.CreateGithubUserDTOToJSON)(requestParameters.createGithubUserDTO),
|
|
2030
|
-
}, initOverrides);
|
|
2031
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GithubUserDTOFromJSON)(jsonValue));
|
|
2032
|
-
}
|
|
2033
|
-
/**
|
|
2034
|
-
* Create a new GitHub user account
|
|
2035
|
-
* Create GitHub user
|
|
2036
|
-
*/
|
|
2037
|
-
async githubUsersPost(requestParameters, initOverrides) {
|
|
2038
|
-
const response = await this.githubUsersPostRaw(requestParameters, initOverrides);
|
|
2039
|
-
return await response.value();
|
|
2040
|
-
}
|
|
2041
2056
|
/**
|
|
2042
2057
|
*
|
|
2043
2058
|
*/
|
|
@@ -2100,8 +2115,8 @@ class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
2100
2115
|
if (requestParameters.employeeInvoiceId === null || requestParameters.employeeInvoiceId === undefined) {
|
|
2101
2116
|
throw new runtime.RequiredError('employeeInvoiceId', 'Required parameter requestParameters.employeeInvoiceId was null or undefined when calling markEmployeeInvoiceAsPaid.');
|
|
2102
2117
|
}
|
|
2103
|
-
if (requestParameters.
|
|
2104
|
-
throw new runtime.RequiredError('
|
|
2118
|
+
if (requestParameters.markEmployeeInvoicePaidDTO === null || requestParameters.markEmployeeInvoicePaidDTO === undefined) {
|
|
2119
|
+
throw new runtime.RequiredError('markEmployeeInvoicePaidDTO', 'Required parameter requestParameters.markEmployeeInvoicePaidDTO was null or undefined when calling markEmployeeInvoiceAsPaid.');
|
|
2105
2120
|
}
|
|
2106
2121
|
const queryParameters = {};
|
|
2107
2122
|
const headerParameters = {};
|
|
@@ -2114,7 +2129,7 @@ class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
2114
2129
|
method: 'POST',
|
|
2115
2130
|
headers: headerParameters,
|
|
2116
2131
|
query: queryParameters,
|
|
2117
|
-
body: (0, index_1.
|
|
2132
|
+
body: (0, index_1.MarkEmployeeInvoicePaidDTOToJSON)(requestParameters.markEmployeeInvoicePaidDTO),
|
|
2118
2133
|
}, initOverrides);
|
|
2119
2134
|
return new runtime.VoidApiResponse(response);
|
|
2120
2135
|
}
|