tuix-timesheets-api 0.6.175 → 0.6.177
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 +0 -4
- package/apis/TuixTimesheetsClientApi.js +13 -186
- package/apis/TuixTimesheetsClientApi.js.map +1 -1
- package/apis/TuixTimesheetsClientApi.ts +16 -260
- package/models/SlackAccountResponseDTO.js +2 -2
- package/models/SlackAccountResponseDTO.js.map +1 -1
- package/models/SlackAccountResponseDTO.ts +3 -2
- package/models/index.js +0 -4
- package/models/index.js.map +1 -1
- package/models/index.ts +0 -4
- package/package.json +1 -1
- package/models/CreateGithubUserDTO.js +0 -60
- package/models/CreateGithubUserDTO.js.map +0 -1
- package/models/CreateGithubUserDTO.ts +0 -93
- package/models/GithubAccountDTO.js +0 -51
- package/models/GithubAccountDTO.js.map +0 -1
- package/models/GithubAccountDTO.ts +0 -65
- package/models/GithubCommitCountDTO.js +0 -54
- package/models/GithubCommitCountDTO.js.map +0 -1
- package/models/GithubCommitCountDTO.ts +0 -75
- package/models/GithubUserDTO.js +0 -70
- package/models/GithubUserDTO.js.map +0 -1
- package/models/GithubUserDTO.ts +0 -127
package/.openapi-generator/FILES
CHANGED
|
@@ -11,7 +11,6 @@ models/ClientDTO.ts
|
|
|
11
11
|
models/ClientInvoiceDTO.ts
|
|
12
12
|
models/CompanyDTO.ts
|
|
13
13
|
models/CreateEmployeeInvoiceInputDTO.ts
|
|
14
|
-
models/CreateGithubUserDTO.ts
|
|
15
14
|
models/CreateJiraAccountDTO.ts
|
|
16
15
|
models/CreateJiraUserDTO.ts
|
|
17
16
|
models/CreateTokenResponseDTO.ts
|
|
@@ -21,9 +20,6 @@ models/EmployeeInvoiceDTO.ts
|
|
|
21
20
|
models/EmployeeProjectDTO.ts
|
|
22
21
|
models/EmployeeUpdateDTO.ts
|
|
23
22
|
models/ErrorDTO.ts
|
|
24
|
-
models/GithubAccountDTO.ts
|
|
25
|
-
models/GithubCommitCountDTO.ts
|
|
26
|
-
models/GithubUserDTO.ts
|
|
27
23
|
models/GlobalTimesheetDTO.ts
|
|
28
24
|
models/GlobalTimesheetEntryDTO.ts
|
|
29
25
|
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.TuixTimesheetsClientApi = void 0;
|
|
40
40
|
const runtime = __importStar(require("../runtime"));
|
|
41
41
|
const index_1 = require("../models/index");
|
|
42
42
|
/**
|
|
@@ -261,37 +261,6 @@ class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
261
261
|
const response = await this.createEmployeeInvoiceRaw(requestParameters, initOverrides);
|
|
262
262
|
return await response.value();
|
|
263
263
|
}
|
|
264
|
-
/**
|
|
265
|
-
* Create a new GitHub user account
|
|
266
|
-
* Create GitHub user
|
|
267
|
-
*/
|
|
268
|
-
async createGithubUserRaw(requestParameters, initOverrides) {
|
|
269
|
-
if (requestParameters.createGithubUserDTO === null || requestParameters.createGithubUserDTO === undefined) {
|
|
270
|
-
throw new runtime.RequiredError('createGithubUserDTO', 'Required parameter requestParameters.createGithubUserDTO was null or undefined when calling createGithubUser.');
|
|
271
|
-
}
|
|
272
|
-
const queryParameters = {};
|
|
273
|
-
const headerParameters = {};
|
|
274
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
275
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
276
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // auth0Authorizer authentication
|
|
277
|
-
}
|
|
278
|
-
const response = await this.request({
|
|
279
|
-
path: `/github-users`,
|
|
280
|
-
method: 'POST',
|
|
281
|
-
headers: headerParameters,
|
|
282
|
-
query: queryParameters,
|
|
283
|
-
body: (0, index_1.CreateGithubUserDTOToJSON)(requestParameters.createGithubUserDTO),
|
|
284
|
-
}, initOverrides);
|
|
285
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GithubUserDTOFromJSON)(jsonValue));
|
|
286
|
-
}
|
|
287
|
-
/**
|
|
288
|
-
* Create a new GitHub user account
|
|
289
|
-
* Create GitHub user
|
|
290
|
-
*/
|
|
291
|
-
async createGithubUser(requestParameters, initOverrides) {
|
|
292
|
-
const response = await this.createGithubUserRaw(requestParameters, initOverrides);
|
|
293
|
-
return await response.value();
|
|
294
|
-
}
|
|
295
264
|
/**
|
|
296
265
|
* Allows a user to add a holiday
|
|
297
266
|
*/
|
|
@@ -394,6 +363,9 @@ class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
394
363
|
const queryParameters = {};
|
|
395
364
|
const headerParameters = {};
|
|
396
365
|
headerParameters['Content-Type'] = 'application/json';
|
|
366
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
367
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // auth0Authorizer authentication
|
|
368
|
+
}
|
|
397
369
|
const response = await this.request({
|
|
398
370
|
path: `/slackbot-users`,
|
|
399
371
|
method: 'POST',
|
|
@@ -557,31 +529,6 @@ class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
557
529
|
async deleteEmployeeInvoice(requestParameters, initOverrides) {
|
|
558
530
|
await this.deleteEmployeeInvoiceRaw(requestParameters, initOverrides);
|
|
559
531
|
}
|
|
560
|
-
/**
|
|
561
|
-
* Delete the authenticated user\'s GitHub account
|
|
562
|
-
* Delete GitHub user
|
|
563
|
-
*/
|
|
564
|
-
async deleteGithubUserRaw(initOverrides) {
|
|
565
|
-
const queryParameters = {};
|
|
566
|
-
const headerParameters = {};
|
|
567
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
568
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // auth0Authorizer authentication
|
|
569
|
-
}
|
|
570
|
-
const response = await this.request({
|
|
571
|
-
path: `/github-users`,
|
|
572
|
-
method: 'DELETE',
|
|
573
|
-
headers: headerParameters,
|
|
574
|
-
query: queryParameters,
|
|
575
|
-
}, initOverrides);
|
|
576
|
-
return new runtime.VoidApiResponse(response);
|
|
577
|
-
}
|
|
578
|
-
/**
|
|
579
|
-
* Delete the authenticated user\'s GitHub account
|
|
580
|
-
* Delete GitHub user
|
|
581
|
-
*/
|
|
582
|
-
async deleteGithubUser(initOverrides) {
|
|
583
|
-
await this.deleteGithubUserRaw(initOverrides);
|
|
584
|
-
}
|
|
585
532
|
/**
|
|
586
533
|
* Delete a holiday
|
|
587
534
|
* Delete a holiday
|
|
@@ -645,6 +592,9 @@ class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
645
592
|
async deleteSlackUserRaw(initOverrides) {
|
|
646
593
|
const queryParameters = {};
|
|
647
594
|
const headerParameters = {};
|
|
595
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
596
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // auth0Authorizer authentication
|
|
597
|
+
}
|
|
648
598
|
const response = await this.request({
|
|
649
599
|
path: `/slackbot-users`,
|
|
650
600
|
method: 'DELETE',
|
|
@@ -1043,50 +993,6 @@ class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
1043
993
|
const response = await this.getClientsRaw(requestParameters, initOverrides);
|
|
1044
994
|
return await response.value();
|
|
1045
995
|
}
|
|
1046
|
-
/**
|
|
1047
|
-
* Get commit statistics for a specific user
|
|
1048
|
-
* Get commits by user ID
|
|
1049
|
-
*/
|
|
1050
|
-
async getCommitsByUserIDRaw(requestParameters, initOverrides) {
|
|
1051
|
-
if (requestParameters.userId === null || requestParameters.userId === undefined) {
|
|
1052
|
-
throw new runtime.RequiredError('userId', 'Required parameter requestParameters.userId was null or undefined when calling getCommitsByUserID.');
|
|
1053
|
-
}
|
|
1054
|
-
if (requestParameters.from === null || requestParameters.from === undefined) {
|
|
1055
|
-
throw new runtime.RequiredError('from', 'Required parameter requestParameters.from was null or undefined when calling getCommitsByUserID.');
|
|
1056
|
-
}
|
|
1057
|
-
if (requestParameters.to === null || requestParameters.to === undefined) {
|
|
1058
|
-
throw new runtime.RequiredError('to', 'Required parameter requestParameters.to was null or undefined when calling getCommitsByUserID.');
|
|
1059
|
-
}
|
|
1060
|
-
const queryParameters = {};
|
|
1061
|
-
if (requestParameters.from !== undefined) {
|
|
1062
|
-
queryParameters['from'] = requestParameters.from.toISOString().substring(0, 10);
|
|
1063
|
-
}
|
|
1064
|
-
if (requestParameters.to !== undefined) {
|
|
1065
|
-
queryParameters['to'] = requestParameters.to.toISOString().substring(0, 10);
|
|
1066
|
-
}
|
|
1067
|
-
if (requestParameters.groupBy !== undefined) {
|
|
1068
|
-
queryParameters['groupBy'] = requestParameters.groupBy;
|
|
1069
|
-
}
|
|
1070
|
-
const headerParameters = {};
|
|
1071
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1072
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // auth0Authorizer authentication
|
|
1073
|
-
}
|
|
1074
|
-
const response = await this.request({
|
|
1075
|
-
path: `/employees/{userId}/commits`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters.userId))),
|
|
1076
|
-
method: 'GET',
|
|
1077
|
-
headers: headerParameters,
|
|
1078
|
-
query: queryParameters,
|
|
1079
|
-
}, initOverrides);
|
|
1080
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.GithubCommitCountDTOFromJSON));
|
|
1081
|
-
}
|
|
1082
|
-
/**
|
|
1083
|
-
* Get commit statistics for a specific user
|
|
1084
|
-
* Get commits by user ID
|
|
1085
|
-
*/
|
|
1086
|
-
async getCommitsByUserID(requestParameters, initOverrides) {
|
|
1087
|
-
const response = await this.getCommitsByUserIDRaw(requestParameters, initOverrides);
|
|
1088
|
-
return await response.value();
|
|
1089
|
-
}
|
|
1090
996
|
/**
|
|
1091
997
|
* Get all companies a user belongs to
|
|
1092
998
|
* Get all companies a user belongs to
|
|
@@ -1288,32 +1194,6 @@ class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
1288
1194
|
const response = await this.getEmployeesRaw(requestParameters, initOverrides);
|
|
1289
1195
|
return await response.value();
|
|
1290
1196
|
}
|
|
1291
|
-
/**
|
|
1292
|
-
* Get GitHub account for the authenticated user
|
|
1293
|
-
* Get GitHub account
|
|
1294
|
-
*/
|
|
1295
|
-
async getGithubAccountRaw(initOverrides) {
|
|
1296
|
-
const queryParameters = {};
|
|
1297
|
-
const headerParameters = {};
|
|
1298
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1299
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // auth0Authorizer authentication
|
|
1300
|
-
}
|
|
1301
|
-
const response = await this.request({
|
|
1302
|
-
path: `/github-accounts`,
|
|
1303
|
-
method: 'GET',
|
|
1304
|
-
headers: headerParameters,
|
|
1305
|
-
query: queryParameters,
|
|
1306
|
-
}, initOverrides);
|
|
1307
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GithubAccountDTOFromJSON)(jsonValue));
|
|
1308
|
-
}
|
|
1309
|
-
/**
|
|
1310
|
-
* Get GitHub account for the authenticated user
|
|
1311
|
-
* Get GitHub account
|
|
1312
|
-
*/
|
|
1313
|
-
async getGithubAccount(initOverrides) {
|
|
1314
|
-
const response = await this.getGithubAccountRaw(initOverrides);
|
|
1315
|
-
return await response.value();
|
|
1316
|
-
}
|
|
1317
1197
|
/**
|
|
1318
1198
|
* Get a global timesheet
|
|
1319
1199
|
* Get a global timesheet
|
|
@@ -1531,47 +1411,6 @@ class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
1531
1411
|
const response = await this.getMyAccountRaw(initOverrides);
|
|
1532
1412
|
return await response.value();
|
|
1533
1413
|
}
|
|
1534
|
-
/**
|
|
1535
|
-
* Get commit statistics for the authenticated user
|
|
1536
|
-
* Get my commits
|
|
1537
|
-
*/
|
|
1538
|
-
async getMyCommitsRaw(requestParameters, initOverrides) {
|
|
1539
|
-
if (requestParameters.from === null || requestParameters.from === undefined) {
|
|
1540
|
-
throw new runtime.RequiredError('from', 'Required parameter requestParameters.from was null or undefined when calling getMyCommits.');
|
|
1541
|
-
}
|
|
1542
|
-
if (requestParameters.to === null || requestParameters.to === undefined) {
|
|
1543
|
-
throw new runtime.RequiredError('to', 'Required parameter requestParameters.to was null or undefined when calling getMyCommits.');
|
|
1544
|
-
}
|
|
1545
|
-
const queryParameters = {};
|
|
1546
|
-
if (requestParameters.from !== undefined) {
|
|
1547
|
-
queryParameters['from'] = requestParameters.from.toISOString().substring(0, 10);
|
|
1548
|
-
}
|
|
1549
|
-
if (requestParameters.to !== undefined) {
|
|
1550
|
-
queryParameters['to'] = requestParameters.to.toISOString().substring(0, 10);
|
|
1551
|
-
}
|
|
1552
|
-
if (requestParameters.groupBy !== undefined) {
|
|
1553
|
-
queryParameters['groupBy'] = requestParameters.groupBy;
|
|
1554
|
-
}
|
|
1555
|
-
const headerParameters = {};
|
|
1556
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
1557
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // auth0Authorizer authentication
|
|
1558
|
-
}
|
|
1559
|
-
const response = await this.request({
|
|
1560
|
-
path: `/commits`,
|
|
1561
|
-
method: 'GET',
|
|
1562
|
-
headers: headerParameters,
|
|
1563
|
-
query: queryParameters,
|
|
1564
|
-
}, initOverrides);
|
|
1565
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.GithubCommitCountDTOFromJSON));
|
|
1566
|
-
}
|
|
1567
|
-
/**
|
|
1568
|
-
* Get commit statistics for the authenticated user
|
|
1569
|
-
* Get my commits
|
|
1570
|
-
*/
|
|
1571
|
-
async getMyCommits(requestParameters, initOverrides) {
|
|
1572
|
-
const response = await this.getMyCommitsRaw(requestParameters, initOverrides);
|
|
1573
|
-
return await response.value();
|
|
1574
|
-
}
|
|
1575
1414
|
/**
|
|
1576
1415
|
* Get a project
|
|
1577
1416
|
* Get a project by ID
|
|
@@ -1678,6 +1517,9 @@ class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
1678
1517
|
async getSlackAccountRaw(initOverrides) {
|
|
1679
1518
|
const queryParameters = {};
|
|
1680
1519
|
const headerParameters = {};
|
|
1520
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1521
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // auth0Authorizer authentication
|
|
1522
|
+
}
|
|
1681
1523
|
const response = await this.request({
|
|
1682
1524
|
path: `/slack-accounts`,
|
|
1683
1525
|
method: 'GET',
|
|
@@ -2332,6 +2174,9 @@ class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
2332
2174
|
const queryParameters = {};
|
|
2333
2175
|
const headerParameters = {};
|
|
2334
2176
|
headerParameters['Content-Type'] = 'application/json';
|
|
2177
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2178
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // auth0Authorizer authentication
|
|
2179
|
+
}
|
|
2335
2180
|
const response = await this.request({
|
|
2336
2181
|
path: `/slackbot-users/{userId}`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters.userId))),
|
|
2337
2182
|
method: 'PATCH',
|
|
@@ -2423,22 +2268,4 @@ class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
2423
2268
|
}
|
|
2424
2269
|
}
|
|
2425
2270
|
exports.TuixTimesheetsClientApi = TuixTimesheetsClientApi;
|
|
2426
|
-
/**
|
|
2427
|
-
* @export
|
|
2428
|
-
*/
|
|
2429
|
-
exports.GetCommitsByUserIDGroupByEnum = {
|
|
2430
|
-
HourOfDay: 'hourOfDay',
|
|
2431
|
-
Year: 'year',
|
|
2432
|
-
Month: 'month',
|
|
2433
|
-
Day: 'day'
|
|
2434
|
-
};
|
|
2435
|
-
/**
|
|
2436
|
-
* @export
|
|
2437
|
-
*/
|
|
2438
|
-
exports.GetMyCommitsGroupByEnum = {
|
|
2439
|
-
HourOfDay: 'hourOfDay',
|
|
2440
|
-
Year: 'year',
|
|
2441
|
-
Month: 'month',
|
|
2442
|
-
Day: 'day'
|
|
2443
|
-
};
|
|
2444
2271
|
//# sourceMappingURL=TuixTimesheetsClientApi.js.map
|