tuix-timesheets-api 0.6.85 → 0.6.87

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 (35) hide show
  1. package/.openapi-generator/FILES +9 -0
  2. package/apis/TuixTimesheetsClientApi.js +101 -0
  3. package/apis/TuixTimesheetsClientApi.js.map +1 -1
  4. package/apis/TuixTimesheetsClientApi.ts +140 -0
  5. package/models/GithubAccount.js +61 -0
  6. package/models/GithubAccount.js.map +1 -0
  7. package/models/GithubAccount.ts +100 -0
  8. package/models/GithubAccountDto.js +51 -0
  9. package/models/GithubAccountDto.js.map +1 -0
  10. package/models/GithubAccountDto.ts +66 -0
  11. package/models/LogsBranchDto.js +58 -0
  12. package/models/LogsBranchDto.js.map +1 -0
  13. package/models/LogsBranchDto.ts +91 -0
  14. package/models/LogsCommitDto.js +54 -0
  15. package/models/LogsCommitDto.js.map +1 -0
  16. package/models/LogsCommitDto.ts +75 -0
  17. package/models/LogsRepositoryDto.js +58 -0
  18. package/models/LogsRepositoryDto.js.map +1 -0
  19. package/models/LogsRepositoryDto.ts +91 -0
  20. package/models/MatchPullRequestDto.js +93 -0
  21. package/models/MatchPullRequestDto.js.map +1 -0
  22. package/models/MatchPullRequestDto.ts +192 -0
  23. package/models/MatchPullRequestResponseDto.js +52 -0
  24. package/models/MatchPullRequestResponseDto.js.map +1 -0
  25. package/models/MatchPullRequestResponseDto.ts +73 -0
  26. package/models/SyncDataByAccountDto.js +63 -0
  27. package/models/SyncDataByAccountDto.js.map +1 -0
  28. package/models/SyncDataByAccountDto.ts +102 -0
  29. package/models/SyncGithubDataResponseDto.js +52 -0
  30. package/models/SyncGithubDataResponseDto.js.map +1 -0
  31. package/models/SyncGithubDataResponseDto.ts +73 -0
  32. package/models/index.js +9 -0
  33. package/models/index.js.map +1 -1
  34. package/models/index.ts +9 -0
  35. package/package.json +1 -1
@@ -31,11 +31,13 @@ import type {
31
31
  EmployeeInvoiceDTO,
32
32
  EmployeeUpdateDTO,
33
33
  ErrorDTO,
34
+ GithubAccountDto,
34
35
  GlobalTimesheetDTO,
35
36
  GlobalTimesheetEntryDTO,
36
37
  GlobalTimesheetEntryUpdateDTO,
37
38
  JiraAccount,
38
39
  LogsResponseDto,
40
+ MatchPullRequestResponseDto,
39
41
  PaginatedAdjustedTimesheets,
40
42
  PaginatedClientInvoices,
41
43
  PaginatedClients,
@@ -57,6 +59,7 @@ import type {
57
59
  SubscriptionsSentResponseDto,
58
60
  SyncDataDto,
59
61
  SyncDataResponseDto,
62
+ SyncGithubDataResponseDto,
60
63
  SyncTicketsResponseDto,
61
64
  TeamUpdateDTO,
62
65
  TimesheetDTO,
@@ -99,6 +102,8 @@ import {
99
102
  EmployeeUpdateDTOToJSON,
100
103
  ErrorDTOFromJSON,
101
104
  ErrorDTOToJSON,
105
+ GithubAccountDtoFromJSON,
106
+ GithubAccountDtoToJSON,
102
107
  GlobalTimesheetDTOFromJSON,
103
108
  GlobalTimesheetDTOToJSON,
104
109
  GlobalTimesheetEntryDTOFromJSON,
@@ -109,6 +114,8 @@ import {
109
114
  JiraAccountToJSON,
110
115
  LogsResponseDtoFromJSON,
111
116
  LogsResponseDtoToJSON,
117
+ MatchPullRequestResponseDtoFromJSON,
118
+ MatchPullRequestResponseDtoToJSON,
112
119
  PaginatedAdjustedTimesheetsFromJSON,
113
120
  PaginatedAdjustedTimesheetsToJSON,
114
121
  PaginatedClientInvoicesFromJSON,
@@ -151,6 +158,8 @@ import {
151
158
  SyncDataDtoToJSON,
152
159
  SyncDataResponseDtoFromJSON,
153
160
  SyncDataResponseDtoToJSON,
161
+ SyncGithubDataResponseDtoFromJSON,
162
+ SyncGithubDataResponseDtoToJSON,
154
163
  SyncTicketsResponseDtoFromJSON,
155
164
  SyncTicketsResponseDtoToJSON,
156
165
  TeamUpdateDTOFromJSON,
@@ -205,6 +214,10 @@ export interface CreateEmployeeInvoiceRequest {
205
214
  createEmployeeInvoiceInputDTO: CreateEmployeeInvoiceInputDTO;
206
215
  }
207
216
 
217
+ export interface CreateGithubUserRequest {
218
+ createUserDto: CreateUserDto;
219
+ }
220
+
208
221
  export interface CreateJiraUserRequest {
209
222
  createUserDto: CreateUserDto;
210
223
  }
@@ -799,6 +812,43 @@ export class TuixTimesheetsClientApi extends runtime.BaseAPI {
799
812
  return await response.value();
800
813
  }
801
814
 
815
+ /**
816
+ *
817
+ */
818
+ async createGithubUserRaw(requestParameters: CreateGithubUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<User>> {
819
+ if (requestParameters.createUserDto === null || requestParameters.createUserDto === undefined) {
820
+ throw new runtime.RequiredError('createUserDto','Required parameter requestParameters.createUserDto was null or undefined when calling createGithubUser.');
821
+ }
822
+
823
+ const queryParameters: any = {};
824
+
825
+ const headerParameters: runtime.HTTPHeaders = {};
826
+
827
+ headerParameters['Content-Type'] = 'application/json';
828
+
829
+ if (this.configuration && this.configuration.apiKey) {
830
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // auth0Authorizer authentication
831
+ }
832
+
833
+ const response = await this.request({
834
+ path: `/github-users`,
835
+ method: 'POST',
836
+ headers: headerParameters,
837
+ query: queryParameters,
838
+ body: CreateUserDtoToJSON(requestParameters.createUserDto),
839
+ }, initOverrides);
840
+
841
+ return new runtime.JSONApiResponse(response, (jsonValue) => UserFromJSON(jsonValue));
842
+ }
843
+
844
+ /**
845
+ *
846
+ */
847
+ async createGithubUser(requestParameters: CreateGithubUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<User> {
848
+ const response = await this.createGithubUserRaw(requestParameters, initOverrides);
849
+ return await response.value();
850
+ }
851
+
802
852
  /**
803
853
  * Create a new user
804
854
  */
@@ -1793,6 +1843,36 @@ export class TuixTimesheetsClientApi extends runtime.BaseAPI {
1793
1843
  return await response.value();
1794
1844
  }
1795
1845
 
1846
+ /**
1847
+ *
1848
+ */
1849
+ async getGithubAccountRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GithubAccountDto>> {
1850
+ const queryParameters: any = {};
1851
+
1852
+ const headerParameters: runtime.HTTPHeaders = {};
1853
+
1854
+ if (this.configuration && this.configuration.apiKey) {
1855
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // auth0Authorizer authentication
1856
+ }
1857
+
1858
+ const response = await this.request({
1859
+ path: `/github-accounts`,
1860
+ method: 'GET',
1861
+ headers: headerParameters,
1862
+ query: queryParameters,
1863
+ }, initOverrides);
1864
+
1865
+ return new runtime.JSONApiResponse(response, (jsonValue) => GithubAccountDtoFromJSON(jsonValue));
1866
+ }
1867
+
1868
+ /**
1869
+ *
1870
+ */
1871
+ async getGithubAccount(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GithubAccountDto> {
1872
+ const response = await this.getGithubAccountRaw(initOverrides);
1873
+ return await response.value();
1874
+ }
1875
+
1796
1876
  /**
1797
1877
  * Get a global timesheet
1798
1878
  * Get a global timesheet
@@ -2496,6 +2576,36 @@ export class TuixTimesheetsClientApi extends runtime.BaseAPI {
2496
2576
  return await response.value();
2497
2577
  }
2498
2578
 
2579
+ /**
2580
+ *
2581
+ */
2582
+ async matchGithubPullRequestsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MatchPullRequestResponseDto>> {
2583
+ const queryParameters: any = {};
2584
+
2585
+ const headerParameters: runtime.HTTPHeaders = {};
2586
+
2587
+ if (this.configuration && this.configuration.apiKey) {
2588
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // auth0Authorizer authentication
2589
+ }
2590
+
2591
+ const response = await this.request({
2592
+ path: `/process/pull-requests`,
2593
+ method: 'POST',
2594
+ headers: headerParameters,
2595
+ query: queryParameters,
2596
+ }, initOverrides);
2597
+
2598
+ return new runtime.JSONApiResponse(response, (jsonValue) => MatchPullRequestResponseDtoFromJSON(jsonValue));
2599
+ }
2600
+
2601
+ /**
2602
+ *
2603
+ */
2604
+ async matchGithubPullRequests(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MatchPullRequestResponseDto> {
2605
+ const response = await this.matchGithubPullRequestsRaw(initOverrides);
2606
+ return await response.value();
2607
+ }
2608
+
2499
2609
  /**
2500
2610
  *
2501
2611
  */
@@ -2687,6 +2797,36 @@ export class TuixTimesheetsClientApi extends runtime.BaseAPI {
2687
2797
  await this.sendTimesheetRaw(requestParameters, initOverrides);
2688
2798
  }
2689
2799
 
2800
+ /**
2801
+ *
2802
+ */
2803
+ async syncGithubDataRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SyncGithubDataResponseDto>> {
2804
+ const queryParameters: any = {};
2805
+
2806
+ const headerParameters: runtime.HTTPHeaders = {};
2807
+
2808
+ if (this.configuration && this.configuration.apiKey) {
2809
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // auth0Authorizer authentication
2810
+ }
2811
+
2812
+ const response = await this.request({
2813
+ path: `/github`,
2814
+ method: 'POST',
2815
+ headers: headerParameters,
2816
+ query: queryParameters,
2817
+ }, initOverrides);
2818
+
2819
+ return new runtime.JSONApiResponse(response, (jsonValue) => SyncGithubDataResponseDtoFromJSON(jsonValue));
2820
+ }
2821
+
2822
+ /**
2823
+ *
2824
+ */
2825
+ async syncGithubData(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SyncGithubDataResponseDto> {
2826
+ const response = await this.syncGithubDataRaw(initOverrides);
2827
+ return await response.value();
2828
+ }
2829
+
2690
2830
  /**
2691
2831
  * Sync jira data
2692
2832
  */
@@ -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.GithubAccountToJSON = exports.GithubAccountFromJSONTyped = exports.GithubAccountFromJSON = exports.instanceOfGithubAccount = void 0;
17
+ const User_1 = require("./User");
18
+ /**
19
+ * Check if a given object implements the GithubAccount interface.
20
+ */
21
+ function instanceOfGithubAccount(value) {
22
+ let isInstance = true;
23
+ isInstance = isInstance && "username" in value;
24
+ isInstance = isInstance && "accountCreationDate" in value;
25
+ isInstance = isInstance && "token" in value;
26
+ isInstance = isInstance && "user" in value;
27
+ return isInstance;
28
+ }
29
+ exports.instanceOfGithubAccount = instanceOfGithubAccount;
30
+ function GithubAccountFromJSON(json) {
31
+ return GithubAccountFromJSONTyped(json, false);
32
+ }
33
+ exports.GithubAccountFromJSON = GithubAccountFromJSON;
34
+ function GithubAccountFromJSONTyped(json, ignoreDiscriminator) {
35
+ if ((json === undefined) || (json === null)) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'username': json['username'],
40
+ 'accountCreationDate': (new Date(json['accountCreationDate'])),
41
+ 'token': json['token'],
42
+ 'user': (0, User_1.UserFromJSON)(json['user']),
43
+ };
44
+ }
45
+ exports.GithubAccountFromJSONTyped = GithubAccountFromJSONTyped;
46
+ function GithubAccountToJSON(value) {
47
+ if (value === undefined) {
48
+ return undefined;
49
+ }
50
+ if (value === null) {
51
+ return null;
52
+ }
53
+ return {
54
+ 'username': value.username,
55
+ 'accountCreationDate': (value.accountCreationDate.toISOString()),
56
+ 'token': value.token,
57
+ 'user': (0, User_1.UserToJSON)(value.user),
58
+ };
59
+ }
60
+ exports.GithubAccountToJSON = GithubAccountToJSON;
61
+ //# sourceMappingURL=GithubAccount.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GithubAccount.js","sourceRoot":"","sources":["GithubAccount.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAIH,iCAIgB;AAkChB;;GAEG;AACH,SAAgB,uBAAuB,CAAC,KAAa;IACjD,IAAI,UA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,IAAA,iBAAU,EAAC,KAAK,CAAC,IAAI,CAAC;KACjC,CAAC;AACN,CAAC;AAdD,kDAcC"}
@@ -0,0 +1,100 @@
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 { User } from './User';
17
+ import {
18
+ UserFromJSON,
19
+ UserFromJSONTyped,
20
+ UserToJSON,
21
+ } from './User';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface GithubAccount
27
+ */
28
+ export interface GithubAccount {
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof GithubAccount
33
+ */
34
+ username: string;
35
+ /**
36
+ *
37
+ * @type {Date}
38
+ * @memberof GithubAccount
39
+ */
40
+ accountCreationDate: Date;
41
+ /**
42
+ *
43
+ * @type {string}
44
+ * @memberof GithubAccount
45
+ */
46
+ token: string;
47
+ /**
48
+ *
49
+ * @type {User}
50
+ * @memberof GithubAccount
51
+ */
52
+ user: User;
53
+ }
54
+
55
+ /**
56
+ * Check if a given object implements the GithubAccount interface.
57
+ */
58
+ export function instanceOfGithubAccount(value: object): boolean {
59
+ let isInstance = true;
60
+ isInstance = isInstance && "username" in value;
61
+ isInstance = isInstance && "accountCreationDate" in value;
62
+ isInstance = isInstance && "token" in value;
63
+ isInstance = isInstance && "user" in value;
64
+
65
+ return isInstance;
66
+ }
67
+
68
+ export function GithubAccountFromJSON(json: any): GithubAccount {
69
+ return GithubAccountFromJSONTyped(json, false);
70
+ }
71
+
72
+ export function GithubAccountFromJSONTyped(json: any, ignoreDiscriminator: boolean): GithubAccount {
73
+ if ((json === undefined) || (json === null)) {
74
+ return json;
75
+ }
76
+ return {
77
+
78
+ 'username': json['username'],
79
+ 'accountCreationDate': (new Date(json['accountCreationDate'])),
80
+ 'token': json['token'],
81
+ 'user': UserFromJSON(json['user']),
82
+ };
83
+ }
84
+
85
+ export function GithubAccountToJSON(value?: GithubAccount | null): any {
86
+ if (value === undefined) {
87
+ return undefined;
88
+ }
89
+ if (value === null) {
90
+ return null;
91
+ }
92
+ return {
93
+
94
+ 'username': value.username,
95
+ 'accountCreationDate': (value.accountCreationDate.toISOString()),
96
+ 'token': value.token,
97
+ 'user': UserToJSON(value.user),
98
+ };
99
+ }
100
+
@@ -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.GithubAccountDtoToJSON = exports.GithubAccountDtoFromJSONTyped = exports.GithubAccountDtoFromJSON = exports.instanceOfGithubAccountDto = void 0;
17
+ /**
18
+ * Check if a given object implements the GithubAccountDto interface.
19
+ */
20
+ function instanceOfGithubAccountDto(value) {
21
+ let isInstance = true;
22
+ isInstance = isInstance && "username" in value;
23
+ return isInstance;
24
+ }
25
+ exports.instanceOfGithubAccountDto = instanceOfGithubAccountDto;
26
+ function GithubAccountDtoFromJSON(json) {
27
+ return GithubAccountDtoFromJSONTyped(json, false);
28
+ }
29
+ exports.GithubAccountDtoFromJSON = GithubAccountDtoFromJSON;
30
+ function GithubAccountDtoFromJSONTyped(json, ignoreDiscriminator) {
31
+ if ((json === undefined) || (json === null)) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'username': json['username'],
36
+ };
37
+ }
38
+ exports.GithubAccountDtoFromJSONTyped = GithubAccountDtoFromJSONTyped;
39
+ function GithubAccountDtoToJSON(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.GithubAccountDtoToJSON = GithubAccountDtoToJSON;
51
+ //# sourceMappingURL=GithubAccountDto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GithubAccountDto.js","sourceRoot":"","sources":["GithubAccountDto.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAiBH;;GAEG;AACH,SAAgB,0BAA0B,CAAC,KAAa;IACpD,IAAI,UAAU,GAAG,IAAI,CAAC;IACtB,UAAU,GAAG,UAAU,IAAI,UAAU,IAAI,KAAK,CAAC;IAE/C,OAAO,UAAU,CAAC;AACtB,CAAC;AALD,gEAKC;AAED,SAAgB,wBAAwB,CAAC,IAAS;IAC9C,OAAO,6BAA6B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACtD,CAAC;AAFD,4DAEC;AAED,SAAgB,6BAA6B,CAAC,IAAS,EAAE,mBAA4B;IACjF,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;KAC/B,CAAC;AACN,CAAC;AARD,sEAQC;AAED,SAAgB,sBAAsB,CAAC,KAA+B;IAClE,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,wDAWC"}
@@ -0,0 +1,66 @@
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 GithubAccountDto
20
+ */
21
+ export interface GithubAccountDto {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof GithubAccountDto
26
+ */
27
+ username: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the GithubAccountDto interface.
32
+ */
33
+ export function instanceOfGithubAccountDto(value: object): boolean {
34
+ let isInstance = true;
35
+ isInstance = isInstance && "username" in value;
36
+
37
+ return isInstance;
38
+ }
39
+
40
+ export function GithubAccountDtoFromJSON(json: any): GithubAccountDto {
41
+ return GithubAccountDtoFromJSONTyped(json, false);
42
+ }
43
+
44
+ export function GithubAccountDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): GithubAccountDto {
45
+ if ((json === undefined) || (json === null)) {
46
+ return json;
47
+ }
48
+ return {
49
+
50
+ 'username': json['username'],
51
+ };
52
+ }
53
+
54
+ export function GithubAccountDtoToJSON(value?: GithubAccountDto | null): any {
55
+ if (value === undefined) {
56
+ return undefined;
57
+ }
58
+ if (value === null) {
59
+ return null;
60
+ }
61
+ return {
62
+
63
+ 'username': value.username,
64
+ };
65
+ }
66
+
@@ -0,0 +1,58 @@
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.LogsBranchDtoToJSON = exports.LogsBranchDtoFromJSONTyped = exports.LogsBranchDtoFromJSON = exports.instanceOfLogsBranchDto = void 0;
17
+ const LogsCommitDto_1 = require("./LogsCommitDto");
18
+ /**
19
+ * Check if a given object implements the LogsBranchDto interface.
20
+ */
21
+ function instanceOfLogsBranchDto(value) {
22
+ let isInstance = true;
23
+ isInstance = isInstance && "name" in value;
24
+ isInstance = isInstance && "pushDate" in value;
25
+ isInstance = isInstance && "commits" in value;
26
+ return isInstance;
27
+ }
28
+ exports.instanceOfLogsBranchDto = instanceOfLogsBranchDto;
29
+ function LogsBranchDtoFromJSON(json) {
30
+ return LogsBranchDtoFromJSONTyped(json, false);
31
+ }
32
+ exports.LogsBranchDtoFromJSON = LogsBranchDtoFromJSON;
33
+ function LogsBranchDtoFromJSONTyped(json, ignoreDiscriminator) {
34
+ if ((json === undefined) || (json === null)) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'name': json['name'],
39
+ 'pushDate': (new Date(json['pushDate'])),
40
+ 'commits': (json['commits'].map(LogsCommitDto_1.LogsCommitDtoFromJSON)),
41
+ };
42
+ }
43
+ exports.LogsBranchDtoFromJSONTyped = LogsBranchDtoFromJSONTyped;
44
+ function LogsBranchDtoToJSON(value) {
45
+ if (value === undefined) {
46
+ return undefined;
47
+ }
48
+ if (value === null) {
49
+ return null;
50
+ }
51
+ return {
52
+ 'name': value.name,
53
+ 'pushDate': (value.pushDate.toISOString()),
54
+ 'commits': (value.commits.map(LogsCommitDto_1.LogsCommitDtoToJSON)),
55
+ };
56
+ }
57
+ exports.LogsBranchDtoToJSON = LogsBranchDtoToJSON;
58
+ //# sourceMappingURL=LogsBranchDto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LogsBranchDto.js","sourceRoot":"","sources":["LogsBranchDto.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAIH,mDAIyB;AA4BzB;;GAEG;AACH,SAAgB,uBAAuB,CAAC,KAAa;IACjD,IAA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@
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 { LogsCommitDto } from './LogsCommitDto';
17
+ import {
18
+ LogsCommitDtoFromJSON,
19
+ LogsCommitDtoFromJSONTyped,
20
+ LogsCommitDtoToJSON,
21
+ } from './LogsCommitDto';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface LogsBranchDto
27
+ */
28
+ export interface LogsBranchDto {
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof LogsBranchDto
33
+ */
34
+ name: string;
35
+ /**
36
+ *
37
+ * @type {Date}
38
+ * @memberof LogsBranchDto
39
+ */
40
+ pushDate: Date;
41
+ /**
42
+ *
43
+ * @type {Array<LogsCommitDto>}
44
+ * @memberof LogsBranchDto
45
+ */
46
+ commits: Array<LogsCommitDto>;
47
+ }
48
+
49
+ /**
50
+ * Check if a given object implements the LogsBranchDto interface.
51
+ */
52
+ export function instanceOfLogsBranchDto(value: object): boolean {
53
+ let isInstance = true;
54
+ isInstance = isInstance && "name" in value;
55
+ isInstance = isInstance && "pushDate" in value;
56
+ isInstance = isInstance && "commits" in value;
57
+
58
+ return isInstance;
59
+ }
60
+
61
+ export function LogsBranchDtoFromJSON(json: any): LogsBranchDto {
62
+ return LogsBranchDtoFromJSONTyped(json, false);
63
+ }
64
+
65
+ export function LogsBranchDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LogsBranchDto {
66
+ if ((json === undefined) || (json === null)) {
67
+ return json;
68
+ }
69
+ return {
70
+
71
+ 'name': json['name'],
72
+ 'pushDate': (new Date(json['pushDate'])),
73
+ 'commits': ((json['commits'] as Array<any>).map(LogsCommitDtoFromJSON)),
74
+ };
75
+ }
76
+
77
+ export function LogsBranchDtoToJSON(value?: LogsBranchDto | null): any {
78
+ if (value === undefined) {
79
+ return undefined;
80
+ }
81
+ if (value === null) {
82
+ return null;
83
+ }
84
+ return {
85
+
86
+ 'name': value.name,
87
+ 'pushDate': (value.pushDate.toISOString()),
88
+ 'commits': ((value.commits as Array<any>).map(LogsCommitDtoToJSON)),
89
+ };
90
+ }
91
+