tuix-timesheets-api 0.69.0 → 0.70.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 +4 -0
- package/apis/TuixTimesheetsClientApi.js +186 -1
- package/apis/TuixTimesheetsClientApi.js.map +1 -1
- package/apis/TuixTimesheetsClientApi.ts +260 -0
- package/models/ClientGithubAccountDTO.js +51 -0
- package/models/ClientGithubAccountDTO.js.map +1 -0
- package/models/ClientGithubAccountDTO.ts +65 -0
- package/models/ClientGithubCommitCountDTO.js +53 -0
- package/models/ClientGithubCommitCountDTO.js.map +1 -0
- package/models/ClientGithubCommitCountDTO.ts +73 -0
- package/models/ClientGithubUserDTO.js +64 -0
- package/models/ClientGithubUserDTO.js.map +1 -0
- package/models/ClientGithubUserDTO.ts +120 -0
- package/models/CreateGithubUserRequestDTO.js +60 -0
- package/models/CreateGithubUserRequestDTO.js.map +1 -0
- package/models/CreateGithubUserRequestDTO.ts +93 -0
- package/models/index.js +4 -0
- package/models/index.js.map +1 -1
- package/models/index.ts +4 -0
- package/package.json +1 -1
|
@@ -20,8 +20,12 @@ import type {
|
|
|
20
20
|
AdjustedTimesheetEntryDTO,
|
|
21
21
|
AdjustedTimesheetUpdateEntryDTO,
|
|
22
22
|
ClientDTO,
|
|
23
|
+
ClientGithubAccountDTO,
|
|
24
|
+
ClientGithubCommitCountDTO,
|
|
25
|
+
ClientGithubUserDTO,
|
|
23
26
|
CompanyDTO,
|
|
24
27
|
CreateEmployeeInvoiceInputDTO,
|
|
28
|
+
CreateGithubUserRequestDTO,
|
|
25
29
|
CreateJiraAccountDTO,
|
|
26
30
|
CreateJiraUserDTO,
|
|
27
31
|
CreateTokenResponseDTO,
|
|
@@ -76,10 +80,18 @@ import {
|
|
|
76
80
|
AdjustedTimesheetUpdateEntryDTOToJSON,
|
|
77
81
|
ClientDTOFromJSON,
|
|
78
82
|
ClientDTOToJSON,
|
|
83
|
+
ClientGithubAccountDTOFromJSON,
|
|
84
|
+
ClientGithubAccountDTOToJSON,
|
|
85
|
+
ClientGithubCommitCountDTOFromJSON,
|
|
86
|
+
ClientGithubCommitCountDTOToJSON,
|
|
87
|
+
ClientGithubUserDTOFromJSON,
|
|
88
|
+
ClientGithubUserDTOToJSON,
|
|
79
89
|
CompanyDTOFromJSON,
|
|
80
90
|
CompanyDTOToJSON,
|
|
81
91
|
CreateEmployeeInvoiceInputDTOFromJSON,
|
|
82
92
|
CreateEmployeeInvoiceInputDTOToJSON,
|
|
93
|
+
CreateGithubUserRequestDTOFromJSON,
|
|
94
|
+
CreateGithubUserRequestDTOToJSON,
|
|
83
95
|
CreateJiraAccountDTOFromJSON,
|
|
84
96
|
CreateJiraAccountDTOToJSON,
|
|
85
97
|
CreateJiraUserDTOFromJSON,
|
|
@@ -198,6 +210,10 @@ export interface CreateEmployeeInvoiceRequest {
|
|
|
198
210
|
createEmployeeInvoiceInputDTO: CreateEmployeeInvoiceInputDTO;
|
|
199
211
|
}
|
|
200
212
|
|
|
213
|
+
export interface CreateGithubUserRequest {
|
|
214
|
+
createGithubUserRequestDTO: CreateGithubUserRequestDTO;
|
|
215
|
+
}
|
|
216
|
+
|
|
201
217
|
export interface CreateHolidayRequest {
|
|
202
218
|
holidayCreateDTO: HolidayCreateDTO;
|
|
203
219
|
}
|
|
@@ -301,6 +317,13 @@ export interface GetClientsRequest {
|
|
|
301
317
|
search?: string;
|
|
302
318
|
}
|
|
303
319
|
|
|
320
|
+
export interface GetCommitsByUserIDRequest {
|
|
321
|
+
userId: string;
|
|
322
|
+
from: Date;
|
|
323
|
+
to: Date;
|
|
324
|
+
groupBy?: GetCommitsByUserIDGroupByEnum;
|
|
325
|
+
}
|
|
326
|
+
|
|
304
327
|
export interface GetCompaniesRequest {
|
|
305
328
|
search?: string;
|
|
306
329
|
}
|
|
@@ -359,6 +382,12 @@ export interface GetHolidaysByEmployeeRequest {
|
|
|
359
382
|
search?: string;
|
|
360
383
|
}
|
|
361
384
|
|
|
385
|
+
export interface GetMyCommitsRequest {
|
|
386
|
+
from: Date;
|
|
387
|
+
to: Date;
|
|
388
|
+
groupBy?: GetMyCommitsGroupByEnum;
|
|
389
|
+
}
|
|
390
|
+
|
|
362
391
|
export interface GetProjectByIdRequest {
|
|
363
392
|
projectId: string;
|
|
364
393
|
}
|
|
@@ -764,6 +793,45 @@ export class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
764
793
|
return await response.value();
|
|
765
794
|
}
|
|
766
795
|
|
|
796
|
+
/**
|
|
797
|
+
* Create a new GitHub user account
|
|
798
|
+
* Create GitHub user
|
|
799
|
+
*/
|
|
800
|
+
async createGithubUserRaw(requestParameters: CreateGithubUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ClientGithubUserDTO>> {
|
|
801
|
+
if (requestParameters.createGithubUserRequestDTO === null || requestParameters.createGithubUserRequestDTO === undefined) {
|
|
802
|
+
throw new runtime.RequiredError('createGithubUserRequestDTO','Required parameter requestParameters.createGithubUserRequestDTO was null or undefined when calling createGithubUser.');
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
const queryParameters: any = {};
|
|
806
|
+
|
|
807
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
808
|
+
|
|
809
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
810
|
+
|
|
811
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
812
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // auth0Authorizer authentication
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
const response = await this.request({
|
|
816
|
+
path: `/github-users`,
|
|
817
|
+
method: 'POST',
|
|
818
|
+
headers: headerParameters,
|
|
819
|
+
query: queryParameters,
|
|
820
|
+
body: CreateGithubUserRequestDTOToJSON(requestParameters.createGithubUserRequestDTO),
|
|
821
|
+
}, initOverrides);
|
|
822
|
+
|
|
823
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ClientGithubUserDTOFromJSON(jsonValue));
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
/**
|
|
827
|
+
* Create a new GitHub user account
|
|
828
|
+
* Create GitHub user
|
|
829
|
+
*/
|
|
830
|
+
async createGithubUser(requestParameters: CreateGithubUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ClientGithubUserDTO> {
|
|
831
|
+
const response = await this.createGithubUserRaw(requestParameters, initOverrides);
|
|
832
|
+
return await response.value();
|
|
833
|
+
}
|
|
834
|
+
|
|
767
835
|
/**
|
|
768
836
|
* Allows a user to add a holiday
|
|
769
837
|
*/
|
|
@@ -1101,6 +1169,37 @@ export class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
1101
1169
|
await this.deleteEmployeeInvoiceRaw(requestParameters, initOverrides);
|
|
1102
1170
|
}
|
|
1103
1171
|
|
|
1172
|
+
/**
|
|
1173
|
+
* Delete the authenticated user\'s GitHub account
|
|
1174
|
+
* Delete GitHub user
|
|
1175
|
+
*/
|
|
1176
|
+
async deleteGithubUserRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
1177
|
+
const queryParameters: any = {};
|
|
1178
|
+
|
|
1179
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1180
|
+
|
|
1181
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1182
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // auth0Authorizer authentication
|
|
1183
|
+
}
|
|
1184
|
+
|
|
1185
|
+
const response = await this.request({
|
|
1186
|
+
path: `/github-users`,
|
|
1187
|
+
method: 'DELETE',
|
|
1188
|
+
headers: headerParameters,
|
|
1189
|
+
query: queryParameters,
|
|
1190
|
+
}, initOverrides);
|
|
1191
|
+
|
|
1192
|
+
return new runtime.VoidApiResponse(response);
|
|
1193
|
+
}
|
|
1194
|
+
|
|
1195
|
+
/**
|
|
1196
|
+
* Delete the authenticated user\'s GitHub account
|
|
1197
|
+
* Delete GitHub user
|
|
1198
|
+
*/
|
|
1199
|
+
async deleteGithubUser(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
1200
|
+
await this.deleteGithubUserRaw(initOverrides);
|
|
1201
|
+
}
|
|
1202
|
+
|
|
1104
1203
|
/**
|
|
1105
1204
|
* Delete a holiday
|
|
1106
1205
|
* Delete a holiday
|
|
@@ -1671,6 +1770,62 @@ export class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
1671
1770
|
return await response.value();
|
|
1672
1771
|
}
|
|
1673
1772
|
|
|
1773
|
+
/**
|
|
1774
|
+
* Get commit statistics for a specific user
|
|
1775
|
+
* Get commits by user ID
|
|
1776
|
+
*/
|
|
1777
|
+
async getCommitsByUserIDRaw(requestParameters: GetCommitsByUserIDRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ClientGithubCommitCountDTO>>> {
|
|
1778
|
+
if (requestParameters.userId === null || requestParameters.userId === undefined) {
|
|
1779
|
+
throw new runtime.RequiredError('userId','Required parameter requestParameters.userId was null or undefined when calling getCommitsByUserID.');
|
|
1780
|
+
}
|
|
1781
|
+
|
|
1782
|
+
if (requestParameters.from === null || requestParameters.from === undefined) {
|
|
1783
|
+
throw new runtime.RequiredError('from','Required parameter requestParameters.from was null or undefined when calling getCommitsByUserID.');
|
|
1784
|
+
}
|
|
1785
|
+
|
|
1786
|
+
if (requestParameters.to === null || requestParameters.to === undefined) {
|
|
1787
|
+
throw new runtime.RequiredError('to','Required parameter requestParameters.to was null or undefined when calling getCommitsByUserID.');
|
|
1788
|
+
}
|
|
1789
|
+
|
|
1790
|
+
const queryParameters: any = {};
|
|
1791
|
+
|
|
1792
|
+
if (requestParameters.from !== undefined) {
|
|
1793
|
+
queryParameters['from'] = (requestParameters.from as any).toISOString().substring(0,10);
|
|
1794
|
+
}
|
|
1795
|
+
|
|
1796
|
+
if (requestParameters.to !== undefined) {
|
|
1797
|
+
queryParameters['to'] = (requestParameters.to as any).toISOString().substring(0,10);
|
|
1798
|
+
}
|
|
1799
|
+
|
|
1800
|
+
if (requestParameters.groupBy !== undefined) {
|
|
1801
|
+
queryParameters['groupBy'] = requestParameters.groupBy;
|
|
1802
|
+
}
|
|
1803
|
+
|
|
1804
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1805
|
+
|
|
1806
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1807
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // auth0Authorizer authentication
|
|
1808
|
+
}
|
|
1809
|
+
|
|
1810
|
+
const response = await this.request({
|
|
1811
|
+
path: `/employees/{userId}/commits`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters.userId))),
|
|
1812
|
+
method: 'GET',
|
|
1813
|
+
headers: headerParameters,
|
|
1814
|
+
query: queryParameters,
|
|
1815
|
+
}, initOverrides);
|
|
1816
|
+
|
|
1817
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ClientGithubCommitCountDTOFromJSON));
|
|
1818
|
+
}
|
|
1819
|
+
|
|
1820
|
+
/**
|
|
1821
|
+
* Get commit statistics for a specific user
|
|
1822
|
+
* Get commits by user ID
|
|
1823
|
+
*/
|
|
1824
|
+
async getCommitsByUserID(requestParameters: GetCommitsByUserIDRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ClientGithubCommitCountDTO>> {
|
|
1825
|
+
const response = await this.getCommitsByUserIDRaw(requestParameters, initOverrides);
|
|
1826
|
+
return await response.value();
|
|
1827
|
+
}
|
|
1828
|
+
|
|
1674
1829
|
/**
|
|
1675
1830
|
* Get all companies a user belongs to
|
|
1676
1831
|
* Get all companies a user belongs to
|
|
@@ -1923,6 +2078,38 @@ export class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
1923
2078
|
return await response.value();
|
|
1924
2079
|
}
|
|
1925
2080
|
|
|
2081
|
+
/**
|
|
2082
|
+
* Get GitHub account for the authenticated user
|
|
2083
|
+
* Get GitHub account
|
|
2084
|
+
*/
|
|
2085
|
+
async getGithubAccountRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ClientGithubAccountDTO>> {
|
|
2086
|
+
const queryParameters: any = {};
|
|
2087
|
+
|
|
2088
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2089
|
+
|
|
2090
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2091
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // auth0Authorizer authentication
|
|
2092
|
+
}
|
|
2093
|
+
|
|
2094
|
+
const response = await this.request({
|
|
2095
|
+
path: `/github-accounts`,
|
|
2096
|
+
method: 'GET',
|
|
2097
|
+
headers: headerParameters,
|
|
2098
|
+
query: queryParameters,
|
|
2099
|
+
}, initOverrides);
|
|
2100
|
+
|
|
2101
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ClientGithubAccountDTOFromJSON(jsonValue));
|
|
2102
|
+
}
|
|
2103
|
+
|
|
2104
|
+
/**
|
|
2105
|
+
* Get GitHub account for the authenticated user
|
|
2106
|
+
* Get GitHub account
|
|
2107
|
+
*/
|
|
2108
|
+
async getGithubAccount(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ClientGithubAccountDTO> {
|
|
2109
|
+
const response = await this.getGithubAccountRaw(initOverrides);
|
|
2110
|
+
return await response.value();
|
|
2111
|
+
}
|
|
2112
|
+
|
|
1926
2113
|
/**
|
|
1927
2114
|
* Get a global timesheet
|
|
1928
2115
|
* Get a global timesheet
|
|
@@ -2195,6 +2382,58 @@ export class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
2195
2382
|
return await response.value();
|
|
2196
2383
|
}
|
|
2197
2384
|
|
|
2385
|
+
/**
|
|
2386
|
+
* Get commit statistics for the authenticated user
|
|
2387
|
+
* Get my commits
|
|
2388
|
+
*/
|
|
2389
|
+
async getMyCommitsRaw(requestParameters: GetMyCommitsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ClientGithubCommitCountDTO>>> {
|
|
2390
|
+
if (requestParameters.from === null || requestParameters.from === undefined) {
|
|
2391
|
+
throw new runtime.RequiredError('from','Required parameter requestParameters.from was null or undefined when calling getMyCommits.');
|
|
2392
|
+
}
|
|
2393
|
+
|
|
2394
|
+
if (requestParameters.to === null || requestParameters.to === undefined) {
|
|
2395
|
+
throw new runtime.RequiredError('to','Required parameter requestParameters.to was null or undefined when calling getMyCommits.');
|
|
2396
|
+
}
|
|
2397
|
+
|
|
2398
|
+
const queryParameters: any = {};
|
|
2399
|
+
|
|
2400
|
+
if (requestParameters.from !== undefined) {
|
|
2401
|
+
queryParameters['from'] = (requestParameters.from as any).toISOString().substring(0,10);
|
|
2402
|
+
}
|
|
2403
|
+
|
|
2404
|
+
if (requestParameters.to !== undefined) {
|
|
2405
|
+
queryParameters['to'] = (requestParameters.to as any).toISOString().substring(0,10);
|
|
2406
|
+
}
|
|
2407
|
+
|
|
2408
|
+
if (requestParameters.groupBy !== undefined) {
|
|
2409
|
+
queryParameters['groupBy'] = requestParameters.groupBy;
|
|
2410
|
+
}
|
|
2411
|
+
|
|
2412
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2413
|
+
|
|
2414
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2415
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // auth0Authorizer authentication
|
|
2416
|
+
}
|
|
2417
|
+
|
|
2418
|
+
const response = await this.request({
|
|
2419
|
+
path: `/commits`,
|
|
2420
|
+
method: 'GET',
|
|
2421
|
+
headers: headerParameters,
|
|
2422
|
+
query: queryParameters,
|
|
2423
|
+
}, initOverrides);
|
|
2424
|
+
|
|
2425
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ClientGithubCommitCountDTOFromJSON));
|
|
2426
|
+
}
|
|
2427
|
+
|
|
2428
|
+
/**
|
|
2429
|
+
* Get commit statistics for the authenticated user
|
|
2430
|
+
* Get my commits
|
|
2431
|
+
*/
|
|
2432
|
+
async getMyCommits(requestParameters: GetMyCommitsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ClientGithubCommitCountDTO>> {
|
|
2433
|
+
const response = await this.getMyCommitsRaw(requestParameters, initOverrides);
|
|
2434
|
+
return await response.value();
|
|
2435
|
+
}
|
|
2436
|
+
|
|
2198
2437
|
/**
|
|
2199
2438
|
* Get a project
|
|
2200
2439
|
* Get a project by ID
|
|
@@ -3274,3 +3513,24 @@ export class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
3274
3513
|
}
|
|
3275
3514
|
|
|
3276
3515
|
}
|
|
3516
|
+
|
|
3517
|
+
/**
|
|
3518
|
+
* @export
|
|
3519
|
+
*/
|
|
3520
|
+
export const GetCommitsByUserIDGroupByEnum = {
|
|
3521
|
+
HourOfDay: 'hourOfDay',
|
|
3522
|
+
Year: 'year',
|
|
3523
|
+
Month: 'month',
|
|
3524
|
+
Day: 'day'
|
|
3525
|
+
} as const;
|
|
3526
|
+
export type GetCommitsByUserIDGroupByEnum = typeof GetCommitsByUserIDGroupByEnum[keyof typeof GetCommitsByUserIDGroupByEnum];
|
|
3527
|
+
/**
|
|
3528
|
+
* @export
|
|
3529
|
+
*/
|
|
3530
|
+
export const GetMyCommitsGroupByEnum = {
|
|
3531
|
+
HourOfDay: 'hourOfDay',
|
|
3532
|
+
Year: 'year',
|
|
3533
|
+
Month: 'month',
|
|
3534
|
+
Day: 'day'
|
|
3535
|
+
} as const;
|
|
3536
|
+
export type GetMyCommitsGroupByEnum = typeof GetMyCommitsGroupByEnum[keyof typeof GetMyCommitsGroupByEnum];
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Tuix Services
|
|
6
|
+
* Tuix Services API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ClientGithubAccountDTOToJSON = exports.ClientGithubAccountDTOFromJSONTyped = exports.ClientGithubAccountDTOFromJSON = exports.instanceOfClientGithubAccountDTO = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the ClientGithubAccountDTO interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfClientGithubAccountDTO(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
return isInstance;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfClientGithubAccountDTO = instanceOfClientGithubAccountDTO;
|
|
26
|
+
function ClientGithubAccountDTOFromJSON(json) {
|
|
27
|
+
return ClientGithubAccountDTOFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.ClientGithubAccountDTOFromJSON = ClientGithubAccountDTOFromJSON;
|
|
30
|
+
function ClientGithubAccountDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if ((json === undefined) || (json === null)) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'username': !(0, runtime_1.exists)(json, 'username') ? undefined : json['username'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
exports.ClientGithubAccountDTOFromJSONTyped = ClientGithubAccountDTOFromJSONTyped;
|
|
39
|
+
function ClientGithubAccountDTOToJSON(value) {
|
|
40
|
+
if (value === undefined) {
|
|
41
|
+
return undefined;
|
|
42
|
+
}
|
|
43
|
+
if (value === null) {
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'username': value.username,
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
exports.ClientGithubAccountDTOToJSON = ClientGithubAccountDTOToJSON;
|
|
51
|
+
//# sourceMappingURL=ClientGithubAccountDTO.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ClientGithubAccountDTO.js","sourceRoot":"","sources":["ClientGithubAccountDTO.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAEH,wCAA+C;AAe/C;;GAEG;AACH,SAAgB,gCAAgC,CAAC,KAAa;IAC1D,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAJD,4EAIC;AAED,SAAgB,8BAA8B,CAAC,IAAS;IACpD,OAAO,mCAAmC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC5D,CAAC;AAFD,wEAEC;AAED,SAAgB,mCAAmC,CAAC,IAAS,EAAE,mBAA4B;IACvF,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE,CAAC;QAC1C,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,UAAU,EAAE,CAAC,IAAA,gBAAM,EAAC,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC;KACvE,CAAC;AACN,CAAC;AARD,kFAQC;AAED,SAAgB,4BAA4B,CAAC,KAAqC;IAC9E,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QACtB,OAAO,SAAS,CAAC;IACrB,CAAC;IACD,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,UAAU,EAAE,KAAK,CAAC,QAAQ;KAC7B,CAAC;AACN,CAAC;AAXD,oEAWC"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Tuix Services
|
|
5
|
+
* Tuix Services API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ClientGithubAccountDTO
|
|
20
|
+
*/
|
|
21
|
+
export interface ClientGithubAccountDTO {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ClientGithubAccountDTO
|
|
26
|
+
*/
|
|
27
|
+
username?: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the ClientGithubAccountDTO interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfClientGithubAccountDTO(value: object): boolean {
|
|
34
|
+
let isInstance = true;
|
|
35
|
+
|
|
36
|
+
return isInstance;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function ClientGithubAccountDTOFromJSON(json: any): ClientGithubAccountDTO {
|
|
40
|
+
return ClientGithubAccountDTOFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function ClientGithubAccountDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClientGithubAccountDTO {
|
|
44
|
+
if ((json === undefined) || (json === null)) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
|
|
49
|
+
'username': !exists(json, 'username') ? undefined : json['username'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function ClientGithubAccountDTOToJSON(value?: ClientGithubAccountDTO | null): any {
|
|
54
|
+
if (value === undefined) {
|
|
55
|
+
return undefined;
|
|
56
|
+
}
|
|
57
|
+
if (value === null) {
|
|
58
|
+
return null;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'username': value.username,
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Tuix Services
|
|
6
|
+
* Tuix Services API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ClientGithubCommitCountDTOToJSON = exports.ClientGithubCommitCountDTOFromJSONTyped = exports.ClientGithubCommitCountDTOFromJSON = exports.instanceOfClientGithubCommitCountDTO = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the ClientGithubCommitCountDTO interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfClientGithubCommitCountDTO(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
return isInstance;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfClientGithubCommitCountDTO = instanceOfClientGithubCommitCountDTO;
|
|
26
|
+
function ClientGithubCommitCountDTOFromJSON(json) {
|
|
27
|
+
return ClientGithubCommitCountDTOFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.ClientGithubCommitCountDTOFromJSON = ClientGithubCommitCountDTOFromJSON;
|
|
30
|
+
function ClientGithubCommitCountDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if ((json === undefined) || (json === null)) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'commitCount': !(0, runtime_1.exists)(json, 'commitCount') ? undefined : json['commitCount'],
|
|
36
|
+
'groupPeriod': !(0, runtime_1.exists)(json, 'groupPeriod') ? undefined : json['groupPeriod'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
exports.ClientGithubCommitCountDTOFromJSONTyped = ClientGithubCommitCountDTOFromJSONTyped;
|
|
40
|
+
function ClientGithubCommitCountDTOToJSON(value) {
|
|
41
|
+
if (value === undefined) {
|
|
42
|
+
return undefined;
|
|
43
|
+
}
|
|
44
|
+
if (value === null) {
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'commitCount': value.commitCount,
|
|
49
|
+
'groupPeriod': value.groupPeriod,
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
exports.ClientGithubCommitCountDTOToJSON = ClientGithubCommitCountDTOToJSON;
|
|
53
|
+
//# sourceMappingURL=ClientGithubCommitCountDTO.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ClientGithubCommitCountDTO.js","sourceRoot":"","sources":["ClientGithubCommitCountDTO.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAEH,wCAA+C;AAqB/C;;GAEG;AACH,SAAgB,oCAAoC,CAAC,KAAa;IAC9D,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAJD,oFAIC;AAED,SAAgB,kCAAkC,CAAC,IAAS;IACxD,OAAO,uCAAuC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAChE,CAAC;AAFD,gFAEC;AAED,SAAgB,uCAAuC,CAAC,IAAS,EAAE,mBAA4B;IAC3F,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE,CAAC;QAC1C,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,aAAa,EAAE,CAAC,IAAA,gBAAM,EAAC,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC;QAC7E,aAAa,EAAE,CAAC,IAAA,gBAAM,EAAC,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC;KAChF,CAAC;AACN,CAAC;AATD,0FASC;AAED,SAAgB,gCAAgC,CAAC,KAAyC;IACtF,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QACtB,OAAO,SAAS,CAAC;IACrB,CAAC;IACD,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,aAAa,EAAE,KAAK,CAAC,WAAW;QAChC,aAAa,EAAE,KAAK,CAAC,WAAW;KACnC,CAAC;AACN,CAAC;AAZD,4EAYC"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Tuix Services
|
|
5
|
+
* Tuix Services API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ClientGithubCommitCountDTO
|
|
20
|
+
*/
|
|
21
|
+
export interface ClientGithubCommitCountDTO {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof ClientGithubCommitCountDTO
|
|
26
|
+
*/
|
|
27
|
+
commitCount?: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ClientGithubCommitCountDTO
|
|
32
|
+
*/
|
|
33
|
+
groupPeriod?: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the ClientGithubCommitCountDTO interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfClientGithubCommitCountDTO(value: object): boolean {
|
|
40
|
+
let isInstance = true;
|
|
41
|
+
|
|
42
|
+
return isInstance;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function ClientGithubCommitCountDTOFromJSON(json: any): ClientGithubCommitCountDTO {
|
|
46
|
+
return ClientGithubCommitCountDTOFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function ClientGithubCommitCountDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClientGithubCommitCountDTO {
|
|
50
|
+
if ((json === undefined) || (json === null)) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'commitCount': !exists(json, 'commitCount') ? undefined : json['commitCount'],
|
|
56
|
+
'groupPeriod': !exists(json, 'groupPeriod') ? undefined : json['groupPeriod'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function ClientGithubCommitCountDTOToJSON(value?: ClientGithubCommitCountDTO | null): any {
|
|
61
|
+
if (value === undefined) {
|
|
62
|
+
return undefined;
|
|
63
|
+
}
|
|
64
|
+
if (value === null) {
|
|
65
|
+
return null;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'commitCount': value.commitCount,
|
|
70
|
+
'groupPeriod': value.groupPeriod,
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Tuix Services
|
|
6
|
+
* Tuix Services API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ClientGithubUserDTOToJSON = exports.ClientGithubUserDTOFromJSONTyped = exports.ClientGithubUserDTOFromJSON = exports.instanceOfClientGithubUserDTO = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
const ClientGithubAccountDTO_1 = require("./ClientGithubAccountDTO");
|
|
19
|
+
/**
|
|
20
|
+
* Check if a given object implements the ClientGithubUserDTO interface.
|
|
21
|
+
*/
|
|
22
|
+
function instanceOfClientGithubUserDTO(value) {
|
|
23
|
+
let isInstance = true;
|
|
24
|
+
return isInstance;
|
|
25
|
+
}
|
|
26
|
+
exports.instanceOfClientGithubUserDTO = instanceOfClientGithubUserDTO;
|
|
27
|
+
function ClientGithubUserDTOFromJSON(json) {
|
|
28
|
+
return ClientGithubUserDTOFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
exports.ClientGithubUserDTOFromJSON = ClientGithubUserDTOFromJSON;
|
|
31
|
+
function ClientGithubUserDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if ((json === undefined) || (json === null)) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'active': !(0, runtime_1.exists)(json, 'active') ? undefined : json['active'],
|
|
37
|
+
'email': !(0, runtime_1.exists)(json, 'email') ? undefined : json['email'],
|
|
38
|
+
'firstName': !(0, runtime_1.exists)(json, 'firstName') ? undefined : json['firstName'],
|
|
39
|
+
'githubAccount': !(0, runtime_1.exists)(json, 'githubAccount') ? undefined : (0, ClientGithubAccountDTO_1.ClientGithubAccountDTOFromJSON)(json['githubAccount']),
|
|
40
|
+
'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
|
|
41
|
+
'lastName': !(0, runtime_1.exists)(json, 'lastName') ? undefined : json['lastName'],
|
|
42
|
+
'userId': !(0, runtime_1.exists)(json, 'userId') ? undefined : json['userId'],
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
exports.ClientGithubUserDTOFromJSONTyped = ClientGithubUserDTOFromJSONTyped;
|
|
46
|
+
function ClientGithubUserDTOToJSON(value) {
|
|
47
|
+
if (value === undefined) {
|
|
48
|
+
return undefined;
|
|
49
|
+
}
|
|
50
|
+
if (value === null) {
|
|
51
|
+
return null;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'active': value.active,
|
|
55
|
+
'email': value.email,
|
|
56
|
+
'firstName': value.firstName,
|
|
57
|
+
'githubAccount': (0, ClientGithubAccountDTO_1.ClientGithubAccountDTOToJSON)(value.githubAccount),
|
|
58
|
+
'id': value.id,
|
|
59
|
+
'lastName': value.lastName,
|
|
60
|
+
'userId': value.userId,
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
exports.ClientGithubUserDTOToJSON = ClientGithubUserDTOToJSON;
|
|
64
|
+
//# sourceMappingURL=ClientGithubUserDTO.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ClientGithubUserDTO.js","sourceRoot":"","sources":["ClientGithubUserDTO.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAEH,wCAA+C;AAE/C,qEAIkC;AAoDlC;;GAEG;AACH,SAAgB,6BAA6B,CAAC,KAAa;IACvD,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAJD,sEAIC;AAED,SAAgB,2BAA2B,CAAC,IAAS;IACjD,OAAO,gCAAgC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACzD,CAAC;AAFD,kEAEC;AAED,SAAgB,gCAAgC,CAAC,IAAS,EAAE,mBAA4B;IACpF,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE,CAAC;QAC1C,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,QAAQ,EAAE,CAAC,IAAA,gBAAM,EAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC;QAC9D,OAAO,EAAE,CAAC,IAAA,gBAAM,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC;QAC3D,WAAW,EAAE,CAAC,IAAA,gBAAM,EAAC,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC;QACvE,eAAe,EAAE,CAAC,IAAA,gBAAM,EAAC,IAAI,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAA,uDAA8B,EAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QACnH,IAAI,EAAE,CAAC,IAAA,gBAAM,EAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;QAClD,UAAU,EAAE,CAAC,IAAA,gBAAM,EAAC,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC;QACpE,QAAQ,EAAE,CAAC,IAAA,gBAAM,EAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC;KACjE,CAAC;AACN,CAAC;AAdD,4EAcC;AAED,SAAgB,yBAAyB,CAAC,KAAkC;IACxE,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QACtB,OAAO,SAAS,CAAC;IACrB,CAAC;IACD,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,QAAQ,EAAE,KAAK,CAAC,MAAM;QACtB,OAAO,EAAE,KAAK,CAAC,KAAK;QACpB,WAAW,EAAE,KAAK,CAAC,SAAS;QAC5B,eAAe,EAAE,IAAA,qDAA4B,EAAC,KAAK,CAAC,aAAa,CAAC;QAClE,IAAI,EAAE,KAAK,CAAC,EAAE;QACd,UAAU,EAAE,KAAK,CAAC,QAAQ;QAC1B,QAAQ,EAAE,KAAK,CAAC,MAAM;KACzB,CAAC;AACN,CAAC;AAjBD,8DAiBC"}
|