tuix-timesheets-api 0.6.159 → 0.6.161

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.
Files changed (38) hide show
  1. package/.openapi-generator/FILES +3 -4
  2. package/apis/TuixTimesheetsClientApi.js +187 -136
  3. package/apis/TuixTimesheetsClientApi.js.map +1 -1
  4. package/apis/TuixTimesheetsClientApi.ts +272 -192
  5. package/models/CreateEmployeeInvoiceInputDTO.js +3 -0
  6. package/models/CreateEmployeeInvoiceInputDTO.js.map +1 -1
  7. package/models/CreateEmployeeInvoiceInputDTO.ts +8 -0
  8. package/models/{CreateGithubUserDto.js → CreateGithubUserDTO.js} +15 -15
  9. package/models/CreateGithubUserDTO.js.map +1 -0
  10. package/models/{CreateGithubUserDto.ts → CreateGithubUserDTO.ts} +18 -18
  11. package/models/EmployeeInvoiceDTO.js +3 -0
  12. package/models/EmployeeInvoiceDTO.js.map +1 -1
  13. package/models/EmployeeInvoiceDTO.ts +8 -0
  14. package/models/GithubAccountDTO.js +51 -0
  15. package/models/GithubAccountDTO.js.map +1 -0
  16. package/models/{GithubAccountDto.ts → GithubAccountDTO.ts} +11 -12
  17. package/models/GithubCommitCountDTO.js +5 -6
  18. package/models/GithubCommitCountDTO.js.map +1 -1
  19. package/models/GithubCommitCountDTO.ts +8 -10
  20. package/models/GithubUserDTO.js +61 -0
  21. package/models/GithubUserDTO.js.map +1 -0
  22. package/models/GithubUserDTO.ts +105 -0
  23. package/models/SubscriptionSentDTO.js +3 -3
  24. package/models/SubscriptionSentDTO.js.map +1 -1
  25. package/models/SubscriptionSentDTO.ts +9 -9
  26. package/models/index.js +3 -4
  27. package/models/index.js.map +1 -1
  28. package/models/index.ts +3 -4
  29. package/package.json +1 -1
  30. package/models/CreateGithubUserDto.js.map +0 -1
  31. package/models/GithubAccountDto.js +0 -51
  32. package/models/GithubAccountDto.js.map +0 -1
  33. package/models/GithubUserDto.js +0 -55
  34. package/models/GithubUserDto.js.map +0 -1
  35. package/models/GithubUserDto.ts +0 -82
  36. package/models/TuixSubscriptionsServiceInternalModelsSubscription.js +0 -59
  37. package/models/TuixSubscriptionsServiceInternalModelsSubscription.js.map +0 -1
  38. package/models/TuixSubscriptionsServiceInternalModelsSubscription.ts +0 -97
@@ -11,7 +11,7 @@ models/ClientDTO.ts
11
11
  models/ClientInvoiceDTO.ts
12
12
  models/CompanyDTO.ts
13
13
  models/CreateEmployeeInvoiceInputDTO.ts
14
- models/CreateGithubUserDto.ts
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/GithubAccountDto.ts
26
+ models/GithubAccountDTO.ts
27
27
  models/GithubCommitCountDTO.ts
28
- models/GithubUserDto.ts
28
+ models/GithubUserDTO.ts
29
29
  models/GlobalTimesheetDTO.ts
30
30
  models/GlobalTimesheetEntryDTO.ts
31
31
  models/GlobalTimesheetEntryUpdateDTO.ts
@@ -67,7 +67,6 @@ models/TimesheetEntryUpdateDTO.ts
67
67
  models/TokenDTO.ts
68
68
  models/TokenInputDTO.ts
69
69
  models/TokenValidationErrorDTO.ts
70
- models/TuixSubscriptionsServiceInternalModelsSubscription.ts
71
70
  models/UpdateUserDto.ts
72
71
  models/UserEnrollDTO.ts
73
72
  models/index.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.EmployeesControllerGetMyCommitsGroupByEnum = exports.EmployeesControllerGetCommitsByUserIdGroupByEnum = exports.TuixTimesheetsClientApi = void 0;
39
+ exports.TuixTimesheetsClientApi = void 0;
40
40
  const runtime = __importStar(require("../runtime"));
41
41
  const index_1 = require("../models/index");
42
42
  /**
@@ -165,6 +165,38 @@ 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
+ }
168
200
  /**
169
201
  * Create client
170
202
  */
@@ -259,35 +291,6 @@ class TuixTimesheetsClientApi extends runtime.BaseAPI {
259
291
  const response = await this.createEmployeeInvoiceRaw(requestParameters, initOverrides);
260
292
  return await response.value();
261
293
  }
262
- /**
263
- *
264
- */
265
- async createGithubUserRaw(requestParameters, initOverrides) {
266
- if (requestParameters.createGithubUserDto === null || requestParameters.createGithubUserDto === undefined) {
267
- throw new runtime.RequiredError('createGithubUserDto', 'Required parameter requestParameters.createGithubUserDto was null or undefined when calling createGithubUser.');
268
- }
269
- const queryParameters = {};
270
- const headerParameters = {};
271
- headerParameters['Content-Type'] = 'application/json';
272
- if (this.configuration && this.configuration.apiKey) {
273
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // auth0Authorizer authentication
274
- }
275
- const response = await this.request({
276
- path: `/github-users`,
277
- method: 'POST',
278
- headers: headerParameters,
279
- query: queryParameters,
280
- body: (0, index_1.CreateGithubUserDtoToJSON)(requestParameters.createGithubUserDto),
281
- }, initOverrides);
282
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GithubUserDtoFromJSON)(jsonValue));
283
- }
284
- /**
285
- *
286
- */
287
- async createGithubUser(requestParameters, initOverrides) {
288
- const response = await this.createGithubUserRaw(requestParameters, initOverrides);
289
- return await response.value();
290
- }
291
294
  /**
292
295
  * Allows a user to add a holiday
293
296
  */
@@ -550,16 +553,23 @@ class TuixTimesheetsClientApi extends runtime.BaseAPI {
550
553
  await this.deleteEmployeeRaw(requestParameters, initOverrides);
551
554
  }
552
555
  /**
553
- *
556
+ * Delete an employee invoice
557
+ * Delete an employee invoice
554
558
  */
555
- async deleteGithubUserRaw(initOverrides) {
559
+ async deleteEmployeeInvoiceRaw(requestParameters, initOverrides) {
560
+ if (requestParameters.userId === null || requestParameters.userId === undefined) {
561
+ throw new runtime.RequiredError('userId', 'Required parameter requestParameters.userId was null or undefined when calling deleteEmployeeInvoice.');
562
+ }
563
+ if (requestParameters.employeeInvoiceId === null || requestParameters.employeeInvoiceId === undefined) {
564
+ throw new runtime.RequiredError('employeeInvoiceId', 'Required parameter requestParameters.employeeInvoiceId was null or undefined when calling deleteEmployeeInvoice.');
565
+ }
556
566
  const queryParameters = {};
557
567
  const headerParameters = {};
558
568
  if (this.configuration && this.configuration.apiKey) {
559
569
  headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // auth0Authorizer authentication
560
570
  }
561
571
  const response = await this.request({
562
- path: `/github-users`,
572
+ path: `/employees/{userId}/invoices/{employeeInvoiceId}`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters.userId))).replace(`{${"employeeInvoiceId"}}`, encodeURIComponent(String(requestParameters.employeeInvoiceId))),
563
573
  method: 'DELETE',
564
574
  headers: headerParameters,
565
575
  query: queryParameters,
@@ -567,10 +577,11 @@ class TuixTimesheetsClientApi extends runtime.BaseAPI {
567
577
  return new runtime.VoidApiResponse(response);
568
578
  }
569
579
  /**
570
- *
580
+ * Delete an employee invoice
581
+ * Delete an employee invoice
571
582
  */
572
- async deleteGithubUser(initOverrides) {
573
- await this.deleteGithubUserRaw(initOverrides);
583
+ async deleteEmployeeInvoice(requestParameters, initOverrides) {
584
+ await this.deleteEmployeeInvoiceRaw(requestParameters, initOverrides);
574
585
  }
575
586
  /**
576
587
  * Delete a holiday
@@ -890,34 +901,24 @@ class TuixTimesheetsClientApi extends runtime.BaseAPI {
890
901
  return await response.value();
891
902
  }
892
903
  /**
904
+ * Get commit statistics for a specific user
905
+ * Get commits by user ID
893
906
  */
894
- async employeesControllerGetCommitsByUserIdRaw(requestParameters, initOverrides) {
895
- if (requestParameters.from === null || requestParameters.from === undefined) {
896
- throw new runtime.RequiredError('from', 'Required parameter requestParameters.from was null or undefined when calling employeesControllerGetCommitsByUserId.');
897
- }
898
- if (requestParameters.to === null || requestParameters.to === undefined) {
899
- throw new runtime.RequiredError('to', 'Required parameter requestParameters.to was null or undefined when calling employeesControllerGetCommitsByUserId.');
900
- }
901
- if (requestParameters.groupBy === null || requestParameters.groupBy === undefined) {
902
- throw new runtime.RequiredError('groupBy', 'Required parameter requestParameters.groupBy was null or undefined when calling employeesControllerGetCommitsByUserId.');
903
- }
907
+ async employeesUserIdCommitsGetRaw(requestParameters, initOverrides) {
904
908
  if (requestParameters.userId === null || requestParameters.userId === undefined) {
905
- throw new runtime.RequiredError('userId', 'Required parameter requestParameters.userId was null or undefined when calling employeesControllerGetCommitsByUserId.');
909
+ throw new runtime.RequiredError('userId', 'Required parameter requestParameters.userId was null or undefined when calling employeesUserIdCommitsGet.');
906
910
  }
907
911
  const queryParameters = {};
908
912
  if (requestParameters.from !== undefined) {
909
- queryParameters['from'] = requestParameters.from.toISOString().substring(0, 10);
913
+ queryParameters['from'] = requestParameters.from;
910
914
  }
911
915
  if (requestParameters.to !== undefined) {
912
- queryParameters['to'] = requestParameters.to.toISOString().substring(0, 10);
916
+ queryParameters['to'] = requestParameters.to;
913
917
  }
914
918
  if (requestParameters.groupBy !== undefined) {
915
919
  queryParameters['groupBy'] = requestParameters.groupBy;
916
920
  }
917
921
  const headerParameters = {};
918
- if (this.configuration && this.configuration.apiKey) {
919
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // auth0Authorizer authentication
920
- }
921
922
  const response = await this.request({
922
923
  path: `/employees/{userId}/commits`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters.userId))),
923
924
  method: 'GET',
@@ -927,49 +928,11 @@ class TuixTimesheetsClientApi extends runtime.BaseAPI {
927
928
  return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.GithubCommitCountDTOFromJSON));
928
929
  }
929
930
  /**
931
+ * Get commit statistics for a specific user
932
+ * Get commits by user ID
930
933
  */
931
- async employeesControllerGetCommitsByUserId(requestParameters, initOverrides) {
932
- const response = await this.employeesControllerGetCommitsByUserIdRaw(requestParameters, initOverrides);
933
- return await response.value();
934
- }
935
- /**
936
- */
937
- async employeesControllerGetMyCommitsRaw(requestParameters, initOverrides) {
938
- if (requestParameters.from === null || requestParameters.from === undefined) {
939
- throw new runtime.RequiredError('from', 'Required parameter requestParameters.from was null or undefined when calling employeesControllerGetMyCommits.');
940
- }
941
- if (requestParameters.to === null || requestParameters.to === undefined) {
942
- throw new runtime.RequiredError('to', 'Required parameter requestParameters.to was null or undefined when calling employeesControllerGetMyCommits.');
943
- }
944
- if (requestParameters.groupBy === null || requestParameters.groupBy === undefined) {
945
- throw new runtime.RequiredError('groupBy', 'Required parameter requestParameters.groupBy was null or undefined when calling employeesControllerGetMyCommits.');
946
- }
947
- const queryParameters = {};
948
- if (requestParameters.from !== undefined) {
949
- queryParameters['from'] = requestParameters.from.toISOString().substring(0, 10);
950
- }
951
- if (requestParameters.to !== undefined) {
952
- queryParameters['to'] = requestParameters.to.toISOString().substring(0, 10);
953
- }
954
- if (requestParameters.groupBy !== undefined) {
955
- queryParameters['groupBy'] = requestParameters.groupBy;
956
- }
957
- const headerParameters = {};
958
- if (this.configuration && this.configuration.apiKey) {
959
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // auth0Authorizer authentication
960
- }
961
- const response = await this.request({
962
- path: `/commits`,
963
- method: 'GET',
964
- headers: headerParameters,
965
- query: queryParameters,
966
- }, initOverrides);
967
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.GithubCommitCountDTOFromJSON));
968
- }
969
- /**
970
- */
971
- async employeesControllerGetMyCommits(requestParameters, initOverrides) {
972
- const response = await this.employeesControllerGetMyCommitsRaw(requestParameters, initOverrides);
934
+ async employeesUserIdCommitsGet(requestParameters, initOverrides) {
935
+ const response = await this.employeesUserIdCommitsGetRaw(requestParameters, initOverrides);
973
936
  return await response.value();
974
937
  }
975
938
  /**
@@ -1019,6 +982,9 @@ class TuixTimesheetsClientApi extends runtime.BaseAPI {
1019
982
  if (requestParameters.pageSize !== undefined) {
1020
983
  queryParameters['pageSize'] = requestParameters.pageSize;
1021
984
  }
985
+ if (requestParameters.search !== undefined) {
986
+ queryParameters['search'] = requestParameters.search;
987
+ }
1022
988
  const headerParameters = {};
1023
989
  if (this.configuration && this.configuration.apiKey) {
1024
990
  headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // auth0Authorizer authentication
@@ -1113,6 +1079,9 @@ class TuixTimesheetsClientApi extends runtime.BaseAPI {
1113
1079
  if (requestParameters.pageSize !== undefined) {
1114
1080
  queryParameters['pageSize'] = requestParameters.pageSize;
1115
1081
  }
1082
+ if (requestParameters.search !== undefined) {
1083
+ queryParameters['search'] = requestParameters.search;
1084
+ }
1116
1085
  const headerParameters = {};
1117
1086
  if (this.configuration && this.configuration.apiKey) {
1118
1087
  headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // auth0Authorizer authentication
@@ -1267,6 +1236,9 @@ class TuixTimesheetsClientApi extends runtime.BaseAPI {
1267
1236
  if (requestParameters.pageSize !== undefined) {
1268
1237
  queryParameters['pageSize'] = requestParameters.pageSize;
1269
1238
  }
1239
+ if (requestParameters.search !== undefined) {
1240
+ queryParameters['search'] = requestParameters.search;
1241
+ }
1270
1242
  const headerParameters = {};
1271
1243
  if (this.configuration && this.configuration.apiKey) {
1272
1244
  headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // auth0Authorizer authentication
@@ -1322,30 +1294,6 @@ class TuixTimesheetsClientApi extends runtime.BaseAPI {
1322
1294
  const response = await this.getEmployeesRaw(requestParameters, initOverrides);
1323
1295
  return await response.value();
1324
1296
  }
1325
- /**
1326
- *
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
- *
1344
- */
1345
- async getGithubAccount(initOverrides) {
1346
- const response = await this.getGithubAccountRaw(initOverrides);
1347
- return await response.value();
1348
- }
1349
1297
  /**
1350
1298
  * Get a global timesheet
1351
1299
  * Get a global timesheet
@@ -1393,6 +1341,9 @@ class TuixTimesheetsClientApi extends runtime.BaseAPI {
1393
1341
  if (requestParameters.pageSize !== undefined) {
1394
1342
  queryParameters['pageSize'] = requestParameters.pageSize;
1395
1343
  }
1344
+ if (requestParameters.search !== undefined) {
1345
+ queryParameters['search'] = requestParameters.search;
1346
+ }
1396
1347
  const headerParameters = {};
1397
1348
  if (this.configuration && this.configuration.apiKey) {
1398
1349
  headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // auth0Authorizer authentication
@@ -1651,6 +1602,9 @@ class TuixTimesheetsClientApi extends runtime.BaseAPI {
1651
1602
  if (requestParameters.pageSize !== undefined) {
1652
1603
  queryParameters['pageSize'] = requestParameters.pageSize;
1653
1604
  }
1605
+ if (requestParameters.search !== undefined) {
1606
+ queryParameters['search'] = requestParameters.search;
1607
+ }
1654
1608
  const headerParameters = {};
1655
1609
  if (this.configuration && this.configuration.apiKey) {
1656
1610
  headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // auth0Authorizer authentication
@@ -1683,6 +1637,9 @@ class TuixTimesheetsClientApi extends runtime.BaseAPI {
1683
1637
  if (requestParameters.pageSize !== undefined) {
1684
1638
  queryParameters['pageSize'] = requestParameters.pageSize;
1685
1639
  }
1640
+ if (requestParameters.search !== undefined) {
1641
+ queryParameters['search'] = requestParameters.search;
1642
+ }
1686
1643
  const headerParameters = {};
1687
1644
  if (this.configuration && this.configuration.apiKey) {
1688
1645
  headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // auth0Authorizer authentication
@@ -1765,6 +1722,9 @@ class TuixTimesheetsClientApi extends runtime.BaseAPI {
1765
1722
  if (requestParameters.pageSize !== undefined) {
1766
1723
  queryParameters['pageSize'] = requestParameters.pageSize;
1767
1724
  }
1725
+ if (requestParameters.search !== undefined) {
1726
+ queryParameters['search'] = requestParameters.search;
1727
+ }
1768
1728
  const headerParameters = {};
1769
1729
  if (this.configuration && this.configuration.apiKey) {
1770
1730
  headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // auth0Authorizer authentication
@@ -2005,6 +1965,79 @@ class TuixTimesheetsClientApi extends runtime.BaseAPI {
2005
1965
  const response = await this.getUserTokensRaw(requestParameters, initOverrides);
2006
1966
  return await response.value();
2007
1967
  }
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
+ }
2008
2041
  /**
2009
2042
  *
2010
2043
  */
@@ -2092,6 +2125,42 @@ class TuixTimesheetsClientApi extends runtime.BaseAPI {
2092
2125
  async markInvoiceAsPaid(requestParameters, initOverrides) {
2093
2126
  await this.markInvoiceAsPaidRaw(requestParameters, initOverrides);
2094
2127
  }
2128
+ /**
2129
+ * Mark an employee invoice as paid
2130
+ * Mark an employee invoice as paid
2131
+ */
2132
+ async markInvoiceAsPaid_1Raw(requestParameters, initOverrides) {
2133
+ if (requestParameters.userId === null || requestParameters.userId === undefined) {
2134
+ throw new runtime.RequiredError('userId', 'Required parameter requestParameters.userId was null or undefined when calling markInvoiceAsPaid_1.');
2135
+ }
2136
+ if (requestParameters.employeeInvoiceId === null || requestParameters.employeeInvoiceId === undefined) {
2137
+ throw new runtime.RequiredError('employeeInvoiceId', 'Required parameter requestParameters.employeeInvoiceId was null or undefined when calling markInvoiceAsPaid_1.');
2138
+ }
2139
+ if (requestParameters.markInvoicePaidDTO === null || requestParameters.markInvoicePaidDTO === undefined) {
2140
+ throw new runtime.RequiredError('markInvoicePaidDTO', 'Required parameter requestParameters.markInvoicePaidDTO was null or undefined when calling markInvoiceAsPaid_1.');
2141
+ }
2142
+ const queryParameters = {};
2143
+ const headerParameters = {};
2144
+ headerParameters['Content-Type'] = 'application/json';
2145
+ if (this.configuration && this.configuration.apiKey) {
2146
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // auth0Authorizer authentication
2147
+ }
2148
+ const response = await this.request({
2149
+ path: `/employees/{userId}/invoices/{employeeInvoiceId}/mark-paid`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters.userId))).replace(`{${"employeeInvoiceId"}}`, encodeURIComponent(String(requestParameters.employeeInvoiceId))),
2150
+ method: 'POST',
2151
+ headers: headerParameters,
2152
+ query: queryParameters,
2153
+ body: (0, index_1.MarkInvoicePaidDTOToJSON)(requestParameters.markInvoicePaidDTO),
2154
+ }, initOverrides);
2155
+ return new runtime.VoidApiResponse(response);
2156
+ }
2157
+ /**
2158
+ * Mark an employee invoice as paid
2159
+ * Mark an employee invoice as paid
2160
+ */
2161
+ async markInvoiceAsPaid_1(requestParameters, initOverrides) {
2162
+ await this.markInvoiceAsPaid_1Raw(requestParameters, initOverrides);
2163
+ }
2095
2164
  /**
2096
2165
  * Open a sent timesheet
2097
2166
  * Open a sent timesheet
@@ -2707,22 +2776,4 @@ class TuixTimesheetsClientApi extends runtime.BaseAPI {
2707
2776
  }
2708
2777
  }
2709
2778
  exports.TuixTimesheetsClientApi = TuixTimesheetsClientApi;
2710
- /**
2711
- * @export
2712
- */
2713
- exports.EmployeesControllerGetCommitsByUserIdGroupByEnum = {
2714
- HourOfDay: 'hourOfDay',
2715
- Year: 'year',
2716
- Month: 'month',
2717
- Day: 'day'
2718
- };
2719
- /**
2720
- * @export
2721
- */
2722
- exports.EmployeesControllerGetMyCommitsGroupByEnum = {
2723
- HourOfDay: 'hourOfDay',
2724
- Year: 'year',
2725
- Month: 'month',
2726
- Day: 'day'
2727
- };
2728
2779
  //# sourceMappingURL=TuixTimesheetsClientApi.js.map