tuix-timesheets-api 0.6.87 → 0.6.89
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 +7 -5
- package/apis/TuixTimesheetsClientApi.js +63 -18
- package/apis/TuixTimesheetsClientApi.js.map +1 -1
- package/apis/TuixTimesheetsClientApi.ts +115 -43
- package/models/GithubAccount.js +0 -4
- package/models/GithubAccount.js.map +1 -1
- package/models/GithubAccount.ts +0 -16
- package/models/GithubLogsResponseDto.js +52 -0
- package/models/GithubLogsResponseDto.js.map +1 -0
- package/models/GithubLogsResponseDto.ts +73 -0
- package/models/GithubUserDto.js +61 -0
- package/models/GithubUserDto.js.map +1 -0
- package/models/GithubUserDto.ts +100 -0
- package/models/JiraAccount.js +3 -3
- package/models/JiraAccount.js.map +1 -1
- package/models/JiraAccount.ts +9 -9
- package/models/{LogsResponseDto.js → JiraLogsResponseDto.js} +12 -12
- package/models/JiraLogsResponseDto.js.map +1 -0
- package/models/{LogsResponseDto.ts → JiraLogsResponseDto.ts} +9 -9
- package/models/{SyncDataDto.js → JiraSyncDataDto.js} +12 -12
- package/models/JiraSyncDataDto.js.map +1 -0
- package/models/{SyncDataDto.ts → JiraSyncDataDto.ts} +10 -10
- package/models/{SyncDataResponseDto.js → JiraSyncDataResponseDto.js} +12 -12
- package/models/JiraSyncDataResponseDto.js.map +1 -0
- package/models/{SyncDataResponseDto.ts → JiraSyncDataResponseDto.ts} +14 -14
- package/models/{User.js → JiraUserDto.js} +12 -12
- package/models/JiraUserDto.js.map +1 -0
- package/models/{User.ts → JiraUserDto.ts} +14 -14
- package/models/{SyncDataByAccountDto.js → SyncGithubDataByAccountDto.js} +12 -12
- package/models/SyncGithubDataByAccountDto.js.map +1 -0
- package/models/{SyncDataByAccountDto.ts → SyncGithubDataByAccountDto.ts} +13 -13
- package/models/SyncGithubDataResponseDto.js +3 -3
- package/models/SyncGithubDataResponseDto.js.map +1 -1
- package/models/SyncGithubDataResponseDto.ts +9 -9
- package/models/index.js +7 -5
- package/models/index.js.map +1 -1
- package/models/index.ts +7 -5
- package/package.json +1 -1
- package/models/LogsResponseDto.js.map +0 -1
- package/models/SyncDataByAccountDto.js.map +0 -1
- package/models/SyncDataDto.js.map +0 -1
- package/models/SyncDataResponseDto.js.map +0 -1
- package/models/User.js.map +0 -1
|
@@ -32,11 +32,16 @@ import type {
|
|
|
32
32
|
EmployeeUpdateDTO,
|
|
33
33
|
ErrorDTO,
|
|
34
34
|
GithubAccountDto,
|
|
35
|
+
GithubLogsResponseDto,
|
|
36
|
+
GithubUserDto,
|
|
35
37
|
GlobalTimesheetDTO,
|
|
36
38
|
GlobalTimesheetEntryDTO,
|
|
37
39
|
GlobalTimesheetEntryUpdateDTO,
|
|
38
40
|
JiraAccount,
|
|
39
|
-
|
|
41
|
+
JiraLogsResponseDto,
|
|
42
|
+
JiraSyncDataDto,
|
|
43
|
+
JiraSyncDataResponseDto,
|
|
44
|
+
JiraUserDto,
|
|
40
45
|
MatchPullRequestResponseDto,
|
|
41
46
|
PaginatedAdjustedTimesheets,
|
|
42
47
|
PaginatedClientInvoices,
|
|
@@ -57,8 +62,6 @@ import type {
|
|
|
57
62
|
SendNewsletterDto,
|
|
58
63
|
Subscription,
|
|
59
64
|
SubscriptionsSentResponseDto,
|
|
60
|
-
SyncDataDto,
|
|
61
|
-
SyncDataResponseDto,
|
|
62
65
|
SyncGithubDataResponseDto,
|
|
63
66
|
SyncTicketsResponseDto,
|
|
64
67
|
TeamUpdateDTO,
|
|
@@ -66,7 +69,6 @@ import type {
|
|
|
66
69
|
TimesheetEntryUpdateDTO,
|
|
67
70
|
UpdateJiraAccountDto,
|
|
68
71
|
UpdateUserDto,
|
|
69
|
-
User,
|
|
70
72
|
UserDTOSc,
|
|
71
73
|
} from '../models/index';
|
|
72
74
|
import {
|
|
@@ -104,6 +106,10 @@ import {
|
|
|
104
106
|
ErrorDTOToJSON,
|
|
105
107
|
GithubAccountDtoFromJSON,
|
|
106
108
|
GithubAccountDtoToJSON,
|
|
109
|
+
GithubLogsResponseDtoFromJSON,
|
|
110
|
+
GithubLogsResponseDtoToJSON,
|
|
111
|
+
GithubUserDtoFromJSON,
|
|
112
|
+
GithubUserDtoToJSON,
|
|
107
113
|
GlobalTimesheetDTOFromJSON,
|
|
108
114
|
GlobalTimesheetDTOToJSON,
|
|
109
115
|
GlobalTimesheetEntryDTOFromJSON,
|
|
@@ -112,8 +118,14 @@ import {
|
|
|
112
118
|
GlobalTimesheetEntryUpdateDTOToJSON,
|
|
113
119
|
JiraAccountFromJSON,
|
|
114
120
|
JiraAccountToJSON,
|
|
115
|
-
|
|
116
|
-
|
|
121
|
+
JiraLogsResponseDtoFromJSON,
|
|
122
|
+
JiraLogsResponseDtoToJSON,
|
|
123
|
+
JiraSyncDataDtoFromJSON,
|
|
124
|
+
JiraSyncDataDtoToJSON,
|
|
125
|
+
JiraSyncDataResponseDtoFromJSON,
|
|
126
|
+
JiraSyncDataResponseDtoToJSON,
|
|
127
|
+
JiraUserDtoFromJSON,
|
|
128
|
+
JiraUserDtoToJSON,
|
|
117
129
|
MatchPullRequestResponseDtoFromJSON,
|
|
118
130
|
MatchPullRequestResponseDtoToJSON,
|
|
119
131
|
PaginatedAdjustedTimesheetsFromJSON,
|
|
@@ -154,10 +166,6 @@ import {
|
|
|
154
166
|
SubscriptionToJSON,
|
|
155
167
|
SubscriptionsSentResponseDtoFromJSON,
|
|
156
168
|
SubscriptionsSentResponseDtoToJSON,
|
|
157
|
-
SyncDataDtoFromJSON,
|
|
158
|
-
SyncDataDtoToJSON,
|
|
159
|
-
SyncDataResponseDtoFromJSON,
|
|
160
|
-
SyncDataResponseDtoToJSON,
|
|
161
169
|
SyncGithubDataResponseDtoFromJSON,
|
|
162
170
|
SyncGithubDataResponseDtoToJSON,
|
|
163
171
|
SyncTicketsResponseDtoFromJSON,
|
|
@@ -172,8 +180,6 @@ import {
|
|
|
172
180
|
UpdateJiraAccountDtoToJSON,
|
|
173
181
|
UpdateUserDtoFromJSON,
|
|
174
182
|
UpdateUserDtoToJSON,
|
|
175
|
-
UserFromJSON,
|
|
176
|
-
UserToJSON,
|
|
177
183
|
UserDTOScFromJSON,
|
|
178
184
|
UserDTOScToJSON,
|
|
179
185
|
} from '../models/index';
|
|
@@ -287,6 +293,14 @@ export interface EmployeesEmployeeIdGetRequest {
|
|
|
287
293
|
employeeId: string;
|
|
288
294
|
}
|
|
289
295
|
|
|
296
|
+
export interface GeGithubLogsRequest {
|
|
297
|
+
startDate: Date;
|
|
298
|
+
endDate: Date;
|
|
299
|
+
username?: string;
|
|
300
|
+
userId?: string;
|
|
301
|
+
includeClassRepositories?: boolean;
|
|
302
|
+
}
|
|
303
|
+
|
|
290
304
|
export interface GetAdjustedTimesheetRequest {
|
|
291
305
|
projectId: string;
|
|
292
306
|
timesheetId: string;
|
|
@@ -424,7 +438,7 @@ export interface SendTimesheetRequest {
|
|
|
424
438
|
}
|
|
425
439
|
|
|
426
440
|
export interface SyncJiraDataRequest {
|
|
427
|
-
|
|
441
|
+
jiraSyncDataDto: JiraSyncDataDto;
|
|
428
442
|
}
|
|
429
443
|
|
|
430
444
|
export interface UpdateAdjustedEntryRequest {
|
|
@@ -521,7 +535,7 @@ export class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
521
535
|
}
|
|
522
536
|
|
|
523
537
|
const response = await this.request({
|
|
524
|
-
path: `/users/jira-accounts`,
|
|
538
|
+
path: `/jira-users/jira-accounts`,
|
|
525
539
|
method: 'POST',
|
|
526
540
|
headers: headerParameters,
|
|
527
541
|
query: queryParameters,
|
|
@@ -815,7 +829,7 @@ export class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
815
829
|
/**
|
|
816
830
|
*
|
|
817
831
|
*/
|
|
818
|
-
async createGithubUserRaw(requestParameters: CreateGithubUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
832
|
+
async createGithubUserRaw(requestParameters: CreateGithubUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GithubUserDto>> {
|
|
819
833
|
if (requestParameters.createUserDto === null || requestParameters.createUserDto === undefined) {
|
|
820
834
|
throw new runtime.RequiredError('createUserDto','Required parameter requestParameters.createUserDto was null or undefined when calling createGithubUser.');
|
|
821
835
|
}
|
|
@@ -838,13 +852,13 @@ export class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
838
852
|
body: CreateUserDtoToJSON(requestParameters.createUserDto),
|
|
839
853
|
}, initOverrides);
|
|
840
854
|
|
|
841
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
855
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GithubUserDtoFromJSON(jsonValue));
|
|
842
856
|
}
|
|
843
857
|
|
|
844
858
|
/**
|
|
845
859
|
*
|
|
846
860
|
*/
|
|
847
|
-
async createGithubUser(requestParameters: CreateGithubUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
861
|
+
async createGithubUser(requestParameters: CreateGithubUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GithubUserDto> {
|
|
848
862
|
const response = await this.createGithubUserRaw(requestParameters, initOverrides);
|
|
849
863
|
return await response.value();
|
|
850
864
|
}
|
|
@@ -852,7 +866,7 @@ export class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
852
866
|
/**
|
|
853
867
|
* Create a new user
|
|
854
868
|
*/
|
|
855
|
-
async createJiraUserRaw(requestParameters: CreateJiraUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
869
|
+
async createJiraUserRaw(requestParameters: CreateJiraUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<JiraUserDto>> {
|
|
856
870
|
if (requestParameters.createUserDto === null || requestParameters.createUserDto === undefined) {
|
|
857
871
|
throw new runtime.RequiredError('createUserDto','Required parameter requestParameters.createUserDto was null or undefined when calling createJiraUser.');
|
|
858
872
|
}
|
|
@@ -868,20 +882,20 @@ export class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
868
882
|
}
|
|
869
883
|
|
|
870
884
|
const response = await this.request({
|
|
871
|
-
path: `/users`,
|
|
885
|
+
path: `/jira-users`,
|
|
872
886
|
method: 'POST',
|
|
873
887
|
headers: headerParameters,
|
|
874
888
|
query: queryParameters,
|
|
875
889
|
body: CreateUserDtoToJSON(requestParameters.createUserDto),
|
|
876
890
|
}, initOverrides);
|
|
877
891
|
|
|
878
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
892
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => JiraUserDtoFromJSON(jsonValue));
|
|
879
893
|
}
|
|
880
894
|
|
|
881
895
|
/**
|
|
882
896
|
* Create a new user
|
|
883
897
|
*/
|
|
884
|
-
async createJiraUser(requestParameters: CreateJiraUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
898
|
+
async createJiraUser(requestParameters: CreateJiraUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JiraUserDto> {
|
|
885
899
|
const response = await this.createJiraUserRaw(requestParameters, initOverrides);
|
|
886
900
|
return await response.value();
|
|
887
901
|
}
|
|
@@ -1443,6 +1457,64 @@ export class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
1443
1457
|
return await response.value();
|
|
1444
1458
|
}
|
|
1445
1459
|
|
|
1460
|
+
/**
|
|
1461
|
+
*
|
|
1462
|
+
*/
|
|
1463
|
+
async geGithubLogsRaw(requestParameters: GeGithubLogsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GithubLogsResponseDto>> {
|
|
1464
|
+
if (requestParameters.startDate === null || requestParameters.startDate === undefined) {
|
|
1465
|
+
throw new runtime.RequiredError('startDate','Required parameter requestParameters.startDate was null or undefined when calling geGithubLogs.');
|
|
1466
|
+
}
|
|
1467
|
+
|
|
1468
|
+
if (requestParameters.endDate === null || requestParameters.endDate === undefined) {
|
|
1469
|
+
throw new runtime.RequiredError('endDate','Required parameter requestParameters.endDate was null or undefined when calling geGithubLogs.');
|
|
1470
|
+
}
|
|
1471
|
+
|
|
1472
|
+
const queryParameters: any = {};
|
|
1473
|
+
|
|
1474
|
+
if (requestParameters.startDate !== undefined) {
|
|
1475
|
+
queryParameters['startDate'] = (requestParameters.startDate as any).toISOString().substring(0,10);
|
|
1476
|
+
}
|
|
1477
|
+
|
|
1478
|
+
if (requestParameters.endDate !== undefined) {
|
|
1479
|
+
queryParameters['endDate'] = (requestParameters.endDate as any).toISOString().substring(0,10);
|
|
1480
|
+
}
|
|
1481
|
+
|
|
1482
|
+
if (requestParameters.username !== undefined) {
|
|
1483
|
+
queryParameters['username'] = requestParameters.username;
|
|
1484
|
+
}
|
|
1485
|
+
|
|
1486
|
+
if (requestParameters.userId !== undefined) {
|
|
1487
|
+
queryParameters['userId'] = requestParameters.userId;
|
|
1488
|
+
}
|
|
1489
|
+
|
|
1490
|
+
if (requestParameters.includeClassRepositories !== undefined) {
|
|
1491
|
+
queryParameters['includeClassRepositories'] = requestParameters.includeClassRepositories;
|
|
1492
|
+
}
|
|
1493
|
+
|
|
1494
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1495
|
+
|
|
1496
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1497
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // auth0Authorizer authentication
|
|
1498
|
+
}
|
|
1499
|
+
|
|
1500
|
+
const response = await this.request({
|
|
1501
|
+
path: `/github-logs`,
|
|
1502
|
+
method: 'GET',
|
|
1503
|
+
headers: headerParameters,
|
|
1504
|
+
query: queryParameters,
|
|
1505
|
+
}, initOverrides);
|
|
1506
|
+
|
|
1507
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GithubLogsResponseDtoFromJSON(jsonValue));
|
|
1508
|
+
}
|
|
1509
|
+
|
|
1510
|
+
/**
|
|
1511
|
+
*
|
|
1512
|
+
*/
|
|
1513
|
+
async geGithubLogs(requestParameters: GeGithubLogsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GithubLogsResponseDto> {
|
|
1514
|
+
const response = await this.geGithubLogsRaw(requestParameters, initOverrides);
|
|
1515
|
+
return await response.value();
|
|
1516
|
+
}
|
|
1517
|
+
|
|
1446
1518
|
/**
|
|
1447
1519
|
* Get an adjustedTimesheet
|
|
1448
1520
|
* Get an adjustedTimesheet
|
|
@@ -1970,7 +2042,7 @@ export class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
1970
2042
|
}
|
|
1971
2043
|
|
|
1972
2044
|
const response = await this.request({
|
|
1973
|
-
path: `/users/jira-accounts`,
|
|
2045
|
+
path: `/jira-users/jira-accounts`,
|
|
1974
2046
|
method: 'GET',
|
|
1975
2047
|
headers: headerParameters,
|
|
1976
2048
|
query: queryParameters,
|
|
@@ -1990,7 +2062,7 @@ export class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
1990
2062
|
/**
|
|
1991
2063
|
* Get Jira logs
|
|
1992
2064
|
*/
|
|
1993
|
-
async getJiraLogsRaw(requestParameters: GetJiraLogsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
2065
|
+
async getJiraLogsRaw(requestParameters: GetJiraLogsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<JiraLogsResponseDto>> {
|
|
1994
2066
|
if (requestParameters.startDate === null || requestParameters.startDate === undefined) {
|
|
1995
2067
|
throw new runtime.RequiredError('startDate','Required parameter requestParameters.startDate was null or undefined when calling getJiraLogs.');
|
|
1996
2068
|
}
|
|
@@ -2024,19 +2096,19 @@ export class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
2024
2096
|
}
|
|
2025
2097
|
|
|
2026
2098
|
const response = await this.request({
|
|
2027
|
-
path: `/logs`,
|
|
2099
|
+
path: `/jira-logs`,
|
|
2028
2100
|
method: 'GET',
|
|
2029
2101
|
headers: headerParameters,
|
|
2030
2102
|
query: queryParameters,
|
|
2031
2103
|
}, initOverrides);
|
|
2032
2104
|
|
|
2033
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
2105
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => JiraLogsResponseDtoFromJSON(jsonValue));
|
|
2034
2106
|
}
|
|
2035
2107
|
|
|
2036
2108
|
/**
|
|
2037
2109
|
* Get Jira logs
|
|
2038
2110
|
*/
|
|
2039
|
-
async getJiraLogs(requestParameters: GetJiraLogsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
2111
|
+
async getJiraLogs(requestParameters: GetJiraLogsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JiraLogsResponseDto> {
|
|
2040
2112
|
const response = await this.getJiraLogsRaw(requestParameters, initOverrides);
|
|
2041
2113
|
return await response.value();
|
|
2042
2114
|
}
|
|
@@ -2044,7 +2116,7 @@ export class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
2044
2116
|
/**
|
|
2045
2117
|
* Get user
|
|
2046
2118
|
*/
|
|
2047
|
-
async getJiraUserRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<
|
|
2119
|
+
async getJiraUserRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<JiraUserDto>>> {
|
|
2048
2120
|
const queryParameters: any = {};
|
|
2049
2121
|
|
|
2050
2122
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -2054,19 +2126,19 @@ export class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
2054
2126
|
}
|
|
2055
2127
|
|
|
2056
2128
|
const response = await this.request({
|
|
2057
|
-
path: `/users`,
|
|
2129
|
+
path: `/jira-users`,
|
|
2058
2130
|
method: 'GET',
|
|
2059
2131
|
headers: headerParameters,
|
|
2060
2132
|
query: queryParameters,
|
|
2061
2133
|
}, initOverrides);
|
|
2062
2134
|
|
|
2063
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(
|
|
2135
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(JiraUserDtoFromJSON));
|
|
2064
2136
|
}
|
|
2065
2137
|
|
|
2066
2138
|
/**
|
|
2067
2139
|
* Get user
|
|
2068
2140
|
*/
|
|
2069
|
-
async getJiraUser(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<
|
|
2141
|
+
async getJiraUser(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<JiraUserDto>> {
|
|
2070
2142
|
const response = await this.getJiraUserRaw(initOverrides);
|
|
2071
2143
|
return await response.value();
|
|
2072
2144
|
}
|
|
@@ -2810,7 +2882,7 @@ export class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
2810
2882
|
}
|
|
2811
2883
|
|
|
2812
2884
|
const response = await this.request({
|
|
2813
|
-
path: `/github`,
|
|
2885
|
+
path: `/github/sync`,
|
|
2814
2886
|
method: 'POST',
|
|
2815
2887
|
headers: headerParameters,
|
|
2816
2888
|
query: queryParameters,
|
|
@@ -2830,9 +2902,9 @@ export class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
2830
2902
|
/**
|
|
2831
2903
|
* Sync jira data
|
|
2832
2904
|
*/
|
|
2833
|
-
async syncJiraDataRaw(requestParameters: SyncJiraDataRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<
|
|
2834
|
-
if (requestParameters.
|
|
2835
|
-
throw new runtime.RequiredError('
|
|
2905
|
+
async syncJiraDataRaw(requestParameters: SyncJiraDataRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<JiraSyncDataResponseDto>>> {
|
|
2906
|
+
if (requestParameters.jiraSyncDataDto === null || requestParameters.jiraSyncDataDto === undefined) {
|
|
2907
|
+
throw new runtime.RequiredError('jiraSyncDataDto','Required parameter requestParameters.jiraSyncDataDto was null or undefined when calling syncJiraData.');
|
|
2836
2908
|
}
|
|
2837
2909
|
|
|
2838
2910
|
const queryParameters: any = {};
|
|
@@ -2846,20 +2918,20 @@ export class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
2846
2918
|
}
|
|
2847
2919
|
|
|
2848
2920
|
const response = await this.request({
|
|
2849
|
-
path: `/sync`,
|
|
2921
|
+
path: `/jira-sync`,
|
|
2850
2922
|
method: 'POST',
|
|
2851
2923
|
headers: headerParameters,
|
|
2852
2924
|
query: queryParameters,
|
|
2853
|
-
body:
|
|
2925
|
+
body: JiraSyncDataDtoToJSON(requestParameters.jiraSyncDataDto),
|
|
2854
2926
|
}, initOverrides);
|
|
2855
2927
|
|
|
2856
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(
|
|
2928
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(JiraSyncDataResponseDtoFromJSON));
|
|
2857
2929
|
}
|
|
2858
2930
|
|
|
2859
2931
|
/**
|
|
2860
2932
|
* Sync jira data
|
|
2861
2933
|
*/
|
|
2862
|
-
async syncJiraData(requestParameters: SyncJiraDataRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<
|
|
2934
|
+
async syncJiraData(requestParameters: SyncJiraDataRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<JiraSyncDataResponseDto>> {
|
|
2863
2935
|
const response = await this.syncJiraDataRaw(requestParameters, initOverrides);
|
|
2864
2936
|
return await response.value();
|
|
2865
2937
|
}
|
|
@@ -3146,7 +3218,7 @@ export class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
3146
3218
|
}
|
|
3147
3219
|
|
|
3148
3220
|
const response = await this.request({
|
|
3149
|
-
path: `/users/jira-accounts/{jiraAccountId}`.replace(`{${"jiraAccountId"}}`, encodeURIComponent(String(requestParameters.jiraAccountId))),
|
|
3221
|
+
path: `/jira-users/jira-accounts/{jiraAccountId}`.replace(`{${"jiraAccountId"}}`, encodeURIComponent(String(requestParameters.jiraAccountId))),
|
|
3150
3222
|
method: 'PATCH',
|
|
3151
3223
|
headers: headerParameters,
|
|
3152
3224
|
query: queryParameters,
|
|
@@ -3167,7 +3239,7 @@ export class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
3167
3239
|
/**
|
|
3168
3240
|
* Update user
|
|
3169
3241
|
*/
|
|
3170
|
-
async updateJiraUserRaw(requestParameters: UpdateJiraUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
3242
|
+
async updateJiraUserRaw(requestParameters: UpdateJiraUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<JiraUserDto>> {
|
|
3171
3243
|
if (requestParameters.updateUserDto === null || requestParameters.updateUserDto === undefined) {
|
|
3172
3244
|
throw new runtime.RequiredError('updateUserDto','Required parameter requestParameters.updateUserDto was null or undefined when calling updateJiraUser.');
|
|
3173
3245
|
}
|
|
@@ -3183,20 +3255,20 @@ export class TuixTimesheetsClientApi extends runtime.BaseAPI {
|
|
|
3183
3255
|
}
|
|
3184
3256
|
|
|
3185
3257
|
const response = await this.request({
|
|
3186
|
-
path: `/users`,
|
|
3258
|
+
path: `/jira-users`,
|
|
3187
3259
|
method: 'PATCH',
|
|
3188
3260
|
headers: headerParameters,
|
|
3189
3261
|
query: queryParameters,
|
|
3190
3262
|
body: UpdateUserDtoToJSON(requestParameters.updateUserDto),
|
|
3191
3263
|
}, initOverrides);
|
|
3192
3264
|
|
|
3193
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
3265
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => JiraUserDtoFromJSON(jsonValue));
|
|
3194
3266
|
}
|
|
3195
3267
|
|
|
3196
3268
|
/**
|
|
3197
3269
|
* Update user
|
|
3198
3270
|
*/
|
|
3199
|
-
async updateJiraUser(requestParameters: UpdateJiraUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
3271
|
+
async updateJiraUser(requestParameters: UpdateJiraUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JiraUserDto> {
|
|
3200
3272
|
const response = await this.updateJiraUserRaw(requestParameters, initOverrides);
|
|
3201
3273
|
return await response.value();
|
|
3202
3274
|
}
|
package/models/GithubAccount.js
CHANGED
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.GithubAccountToJSON = exports.GithubAccountFromJSONTyped = exports.GithubAccountFromJSON = exports.instanceOfGithubAccount = void 0;
|
|
17
|
-
const User_1 = require("./User");
|
|
18
17
|
/**
|
|
19
18
|
* Check if a given object implements the GithubAccount interface.
|
|
20
19
|
*/
|
|
@@ -23,7 +22,6 @@ function instanceOfGithubAccount(value) {
|
|
|
23
22
|
isInstance = isInstance && "username" in value;
|
|
24
23
|
isInstance = isInstance && "accountCreationDate" in value;
|
|
25
24
|
isInstance = isInstance && "token" in value;
|
|
26
|
-
isInstance = isInstance && "user" in value;
|
|
27
25
|
return isInstance;
|
|
28
26
|
}
|
|
29
27
|
exports.instanceOfGithubAccount = instanceOfGithubAccount;
|
|
@@ -39,7 +37,6 @@ function GithubAccountFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
37
|
'username': json['username'],
|
|
40
38
|
'accountCreationDate': (new Date(json['accountCreationDate'])),
|
|
41
39
|
'token': json['token'],
|
|
42
|
-
'user': (0, User_1.UserFromJSON)(json['user']),
|
|
43
40
|
};
|
|
44
41
|
}
|
|
45
42
|
exports.GithubAccountFromJSONTyped = GithubAccountFromJSONTyped;
|
|
@@ -54,7 +51,6 @@ function GithubAccountToJSON(value) {
|
|
|
54
51
|
'username': value.username,
|
|
55
52
|
'accountCreationDate': (value.accountCreationDate.toISOString()),
|
|
56
53
|
'token': value.token,
|
|
57
|
-
'user': (0, User_1.UserToJSON)(value.user),
|
|
58
54
|
};
|
|
59
55
|
}
|
|
60
56
|
exports.GithubAccountToJSON = GithubAccountToJSON;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GithubAccount.js","sourceRoot":"","sources":["GithubAccount.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;
|
|
1
|
+
{"version":3,"file":"GithubAccount.js","sourceRoot":"","sources":["GithubAccount.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AA6BH;;GAEG;AACH,SAAgB,uBAAuB,CAAC,KAAa;IACjD,IAAI,UAAU,GAAG,IAAI,CAAC;IACtB,UAAU,GAAG,UAAU,IAAI,UAAU,IAAI,KAAK,CAAC;IAC/C,UAAU,GAAG,UAAU,IAAI,qBAAqB,IAAI,KAAK,CAAC;IAC1D,UAAU,GAAG,UAAU,IAAI,OAAO,IAAI,KAAK,CAAC;IAE5C,OAAO,UAAU,CAAC;AACtB,CAAC;AAPD,0DAOC;AAED,SAAgB,qBAAqB,CAAC,IAAS;IAC3C,OAAO,0BAA0B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACnD,CAAC;AAFD,sDAEC;AAED,SAAgB,0BAA0B,CAAC,IAAS,EAAE,mBAA4B;IAC9E,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,IAAI,CAAC,UAAU,CAAC;QAC5B,qBAAqB,EAAE,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC,CAAC;QAC9D,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC;KACzB,CAAC;AACN,CAAC;AAVD,gEAUC;AAED,SAAgB,mBAAmB,CAAC,KAA4B;IAC5D,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;QAC1B,qBAAqB,EAAE,CAAC,KAAK,CAAC,mBAAmB,CAAC,WAAW,EAAE,CAAC;QAChE,OAAO,EAAE,KAAK,CAAC,KAAK;KACvB,CAAC;AACN,CAAC;AAbD,kDAaC"}
|
package/models/GithubAccount.ts
CHANGED
|
@@ -13,13 +13,6 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { exists, mapValues } from '../runtime';
|
|
16
|
-
import type { User } from './User';
|
|
17
|
-
import {
|
|
18
|
-
UserFromJSON,
|
|
19
|
-
UserFromJSONTyped,
|
|
20
|
-
UserToJSON,
|
|
21
|
-
} from './User';
|
|
22
|
-
|
|
23
16
|
/**
|
|
24
17
|
*
|
|
25
18
|
* @export
|
|
@@ -44,12 +37,6 @@ export interface GithubAccount {
|
|
|
44
37
|
* @memberof GithubAccount
|
|
45
38
|
*/
|
|
46
39
|
token: string;
|
|
47
|
-
/**
|
|
48
|
-
*
|
|
49
|
-
* @type {User}
|
|
50
|
-
* @memberof GithubAccount
|
|
51
|
-
*/
|
|
52
|
-
user: User;
|
|
53
40
|
}
|
|
54
41
|
|
|
55
42
|
/**
|
|
@@ -60,7 +47,6 @@ export function instanceOfGithubAccount(value: object): boolean {
|
|
|
60
47
|
isInstance = isInstance && "username" in value;
|
|
61
48
|
isInstance = isInstance && "accountCreationDate" in value;
|
|
62
49
|
isInstance = isInstance && "token" in value;
|
|
63
|
-
isInstance = isInstance && "user" in value;
|
|
64
50
|
|
|
65
51
|
return isInstance;
|
|
66
52
|
}
|
|
@@ -78,7 +64,6 @@ export function GithubAccountFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
78
64
|
'username': json['username'],
|
|
79
65
|
'accountCreationDate': (new Date(json['accountCreationDate'])),
|
|
80
66
|
'token': json['token'],
|
|
81
|
-
'user': UserFromJSON(json['user']),
|
|
82
67
|
};
|
|
83
68
|
}
|
|
84
69
|
|
|
@@ -94,7 +79,6 @@ export function GithubAccountToJSON(value?: GithubAccount | null): any {
|
|
|
94
79
|
'username': value.username,
|
|
95
80
|
'accountCreationDate': (value.accountCreationDate.toISOString()),
|
|
96
81
|
'token': value.token,
|
|
97
|
-
'user': UserToJSON(value.user),
|
|
98
82
|
};
|
|
99
83
|
}
|
|
100
84
|
|
|
@@ -0,0 +1,52 @@
|
|
|
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.GithubLogsResponseDtoToJSON = exports.GithubLogsResponseDtoFromJSONTyped = exports.GithubLogsResponseDtoFromJSON = exports.instanceOfGithubLogsResponseDto = void 0;
|
|
17
|
+
const LogsRepositoryDto_1 = require("./LogsRepositoryDto");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the GithubLogsResponseDto interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfGithubLogsResponseDto(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
isInstance = isInstance && "repositories" in value;
|
|
24
|
+
return isInstance;
|
|
25
|
+
}
|
|
26
|
+
exports.instanceOfGithubLogsResponseDto = instanceOfGithubLogsResponseDto;
|
|
27
|
+
function GithubLogsResponseDtoFromJSON(json) {
|
|
28
|
+
return GithubLogsResponseDtoFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
exports.GithubLogsResponseDtoFromJSON = GithubLogsResponseDtoFromJSON;
|
|
31
|
+
function GithubLogsResponseDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if ((json === undefined) || (json === null)) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'repositories': (json['repositories'].map(LogsRepositoryDto_1.LogsRepositoryDtoFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
exports.GithubLogsResponseDtoFromJSONTyped = GithubLogsResponseDtoFromJSONTyped;
|
|
40
|
+
function GithubLogsResponseDtoToJSON(value) {
|
|
41
|
+
if (value === undefined) {
|
|
42
|
+
return undefined;
|
|
43
|
+
}
|
|
44
|
+
if (value === null) {
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'repositories': (value.repositories.map(LogsRepositoryDto_1.LogsRepositoryDtoToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
exports.GithubLogsResponseDtoToJSON = GithubLogsResponseDtoToJSON;
|
|
52
|
+
//# sourceMappingURL=GithubLogsResponseDto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GithubLogsResponseDto.js","sourceRoot":"","sources":["GithubLogsResponseDto.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAIH,2DAI6B;AAgB7B;;GAEG;AACH,SAAgB,+BAA+B,CAAC,KAAa;IACzD,IAAI,UAAU,GAAG,IAAI,CAAC;IACtB,UAAU,GAAG,UAAU,IAAI,cAAc,IAAI,KAAK,CAAC;IAEnD,OAAO,UAAU,CAAC;AACtB,CAAC;AALD,0EAKC;AAED,SAAgB,6BAA6B,CAAC,IAAS;IACnD,OAAO,kCAAkC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC3D,CAAC;AAFD,sEAEC;AAED,SAAgB,kCAAkC,CAAC,IAAS,EAAE,mBAA4B;IACtF,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE,CAAC;QAC1C,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,cAAc,EAAE,CAAE,IAAI,CAAC,cAAc,CAAgB,CAAC,GAAG,CAAC,6CAAyB,CAAC,CAAC;KACxF,CAAC;AACN,CAAC;AARD,gFAQC;AAED,SAAgB,2BAA2B,CAAC,KAAoC;IAC5E,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,cAAc,EAAE,CAAE,KAAK,CAAC,YAA2B,CAAC,GAAG,CAAC,2CAAuB,CAAC,CAAC;KACpF,CAAC;AACN,CAAC;AAXD,kEAWC"}
|
|
@@ -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
|
+
import type { LogsRepositoryDto } from './LogsRepositoryDto';
|
|
17
|
+
import {
|
|
18
|
+
LogsRepositoryDtoFromJSON,
|
|
19
|
+
LogsRepositoryDtoFromJSONTyped,
|
|
20
|
+
LogsRepositoryDtoToJSON,
|
|
21
|
+
} from './LogsRepositoryDto';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface GithubLogsResponseDto
|
|
27
|
+
*/
|
|
28
|
+
export interface GithubLogsResponseDto {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {Array<LogsRepositoryDto>}
|
|
32
|
+
* @memberof GithubLogsResponseDto
|
|
33
|
+
*/
|
|
34
|
+
repositories: Array<LogsRepositoryDto>;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the GithubLogsResponseDto interface.
|
|
39
|
+
*/
|
|
40
|
+
export function instanceOfGithubLogsResponseDto(value: object): boolean {
|
|
41
|
+
let isInstance = true;
|
|
42
|
+
isInstance = isInstance && "repositories" in value;
|
|
43
|
+
|
|
44
|
+
return isInstance;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function GithubLogsResponseDtoFromJSON(json: any): GithubLogsResponseDto {
|
|
48
|
+
return GithubLogsResponseDtoFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function GithubLogsResponseDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): GithubLogsResponseDto {
|
|
52
|
+
if ((json === undefined) || (json === null)) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
|
|
57
|
+
'repositories': ((json['repositories'] as Array<any>).map(LogsRepositoryDtoFromJSON)),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function GithubLogsResponseDtoToJSON(value?: GithubLogsResponseDto | null): any {
|
|
62
|
+
if (value === undefined) {
|
|
63
|
+
return undefined;
|
|
64
|
+
}
|
|
65
|
+
if (value === null) {
|
|
66
|
+
return null;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'repositories': ((value.repositories as Array<any>).map(LogsRepositoryDtoToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,61 @@
|
|
|
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.GithubUserDtoToJSON = exports.GithubUserDtoFromJSONTyped = exports.GithubUserDtoFromJSON = exports.instanceOfGithubUserDto = void 0;
|
|
17
|
+
const GithubAccount_1 = require("./GithubAccount");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the GithubUserDto interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfGithubUserDto(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
isInstance = isInstance && "firstName" in value;
|
|
24
|
+
isInstance = isInstance && "lastName" in value;
|
|
25
|
+
isInstance = isInstance && "email" in value;
|
|
26
|
+
isInstance = isInstance && "githubAccount" in value;
|
|
27
|
+
return isInstance;
|
|
28
|
+
}
|
|
29
|
+
exports.instanceOfGithubUserDto = instanceOfGithubUserDto;
|
|
30
|
+
function GithubUserDtoFromJSON(json) {
|
|
31
|
+
return GithubUserDtoFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
exports.GithubUserDtoFromJSON = GithubUserDtoFromJSON;
|
|
34
|
+
function GithubUserDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if ((json === undefined) || (json === null)) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'firstName': json['firstName'],
|
|
40
|
+
'lastName': json['lastName'],
|
|
41
|
+
'email': json['email'],
|
|
42
|
+
'githubAccount': (0, GithubAccount_1.GithubAccountFromJSON)(json['githubAccount']),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
exports.GithubUserDtoFromJSONTyped = GithubUserDtoFromJSONTyped;
|
|
46
|
+
function GithubUserDtoToJSON(value) {
|
|
47
|
+
if (value === undefined) {
|
|
48
|
+
return undefined;
|
|
49
|
+
}
|
|
50
|
+
if (value === null) {
|
|
51
|
+
return null;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'firstName': value.firstName,
|
|
55
|
+
'lastName': value.lastName,
|
|
56
|
+
'email': value.email,
|
|
57
|
+
'githubAccount': (0, GithubAccount_1.GithubAccountToJSON)(value.githubAccount),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
exports.GithubUserDtoToJSON = GithubUserDtoToJSON;
|
|
61
|
+
//# sourceMappingURL=GithubUserDto.js.map
|