tuix-timesheets-api 0.68.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.
@@ -20,9 +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,
25
- CreateGithubUserDTO,
28
+ CreateGithubUserRequestDTO,
26
29
  CreateJiraAccountDTO,
27
30
  CreateJiraUserDTO,
28
31
  CreateTokenResponseDTO,
@@ -31,9 +34,6 @@ import type {
31
34
  EmployeeInvoiceDTO,
32
35
  EmployeeUpdateDTO,
33
36
  ErrorDTO,
34
- GithubAccountDTO,
35
- GithubCommitCountDTO,
36
- GithubUserDTO,
37
37
  GlobalTimesheetDTO,
38
38
  GlobalTimesheetEntryDTO,
39
39
  GlobalTimesheetEntryUpdateDTO,
@@ -80,12 +80,18 @@ import {
80
80
  AdjustedTimesheetUpdateEntryDTOToJSON,
81
81
  ClientDTOFromJSON,
82
82
  ClientDTOToJSON,
83
+ ClientGithubAccountDTOFromJSON,
84
+ ClientGithubAccountDTOToJSON,
85
+ ClientGithubCommitCountDTOFromJSON,
86
+ ClientGithubCommitCountDTOToJSON,
87
+ ClientGithubUserDTOFromJSON,
88
+ ClientGithubUserDTOToJSON,
83
89
  CompanyDTOFromJSON,
84
90
  CompanyDTOToJSON,
85
91
  CreateEmployeeInvoiceInputDTOFromJSON,
86
92
  CreateEmployeeInvoiceInputDTOToJSON,
87
- CreateGithubUserDTOFromJSON,
88
- CreateGithubUserDTOToJSON,
93
+ CreateGithubUserRequestDTOFromJSON,
94
+ CreateGithubUserRequestDTOToJSON,
89
95
  CreateJiraAccountDTOFromJSON,
90
96
  CreateJiraAccountDTOToJSON,
91
97
  CreateJiraUserDTOFromJSON,
@@ -102,12 +108,6 @@ import {
102
108
  EmployeeUpdateDTOToJSON,
103
109
  ErrorDTOFromJSON,
104
110
  ErrorDTOToJSON,
105
- GithubAccountDTOFromJSON,
106
- GithubAccountDTOToJSON,
107
- GithubCommitCountDTOFromJSON,
108
- GithubCommitCountDTOToJSON,
109
- GithubUserDTOFromJSON,
110
- GithubUserDTOToJSON,
111
111
  GlobalTimesheetDTOFromJSON,
112
112
  GlobalTimesheetDTOToJSON,
113
113
  GlobalTimesheetEntryDTOFromJSON,
@@ -211,7 +211,7 @@ export interface CreateEmployeeInvoiceRequest {
211
211
  }
212
212
 
213
213
  export interface CreateGithubUserRequest {
214
- createGithubUserDTO: CreateGithubUserDTO;
214
+ createGithubUserRequestDTO: CreateGithubUserRequestDTO;
215
215
  }
216
216
 
217
217
  export interface CreateHolidayRequest {
@@ -797,9 +797,9 @@ export class TuixTimesheetsClientApi extends runtime.BaseAPI {
797
797
  * Create a new GitHub user account
798
798
  * Create GitHub user
799
799
  */
800
- async createGithubUserRaw(requestParameters: CreateGithubUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GithubUserDTO>> {
801
- if (requestParameters.createGithubUserDTO === null || requestParameters.createGithubUserDTO === undefined) {
802
- throw new runtime.RequiredError('createGithubUserDTO','Required parameter requestParameters.createGithubUserDTO was null or undefined when calling createGithubUser.');
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
803
  }
804
804
 
805
805
  const queryParameters: any = {};
@@ -817,17 +817,17 @@ export class TuixTimesheetsClientApi extends runtime.BaseAPI {
817
817
  method: 'POST',
818
818
  headers: headerParameters,
819
819
  query: queryParameters,
820
- body: CreateGithubUserDTOToJSON(requestParameters.createGithubUserDTO),
820
+ body: CreateGithubUserRequestDTOToJSON(requestParameters.createGithubUserRequestDTO),
821
821
  }, initOverrides);
822
822
 
823
- return new runtime.JSONApiResponse(response, (jsonValue) => GithubUserDTOFromJSON(jsonValue));
823
+ return new runtime.JSONApiResponse(response, (jsonValue) => ClientGithubUserDTOFromJSON(jsonValue));
824
824
  }
825
825
 
826
826
  /**
827
827
  * Create a new GitHub user account
828
828
  * Create GitHub user
829
829
  */
830
- async createGithubUser(requestParameters: CreateGithubUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GithubUserDTO> {
830
+ async createGithubUser(requestParameters: CreateGithubUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ClientGithubUserDTO> {
831
831
  const response = await this.createGithubUserRaw(requestParameters, initOverrides);
832
832
  return await response.value();
833
833
  }
@@ -1774,7 +1774,7 @@ export class TuixTimesheetsClientApi extends runtime.BaseAPI {
1774
1774
  * Get commit statistics for a specific user
1775
1775
  * Get commits by user ID
1776
1776
  */
1777
- async getCommitsByUserIDRaw(requestParameters: GetCommitsByUserIDRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<GithubCommitCountDTO>>> {
1777
+ async getCommitsByUserIDRaw(requestParameters: GetCommitsByUserIDRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ClientGithubCommitCountDTO>>> {
1778
1778
  if (requestParameters.userId === null || requestParameters.userId === undefined) {
1779
1779
  throw new runtime.RequiredError('userId','Required parameter requestParameters.userId was null or undefined when calling getCommitsByUserID.');
1780
1780
  }
@@ -1814,14 +1814,14 @@ export class TuixTimesheetsClientApi extends runtime.BaseAPI {
1814
1814
  query: queryParameters,
1815
1815
  }, initOverrides);
1816
1816
 
1817
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(GithubCommitCountDTOFromJSON));
1817
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ClientGithubCommitCountDTOFromJSON));
1818
1818
  }
1819
1819
 
1820
1820
  /**
1821
1821
  * Get commit statistics for a specific user
1822
1822
  * Get commits by user ID
1823
1823
  */
1824
- async getCommitsByUserID(requestParameters: GetCommitsByUserIDRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<GithubCommitCountDTO>> {
1824
+ async getCommitsByUserID(requestParameters: GetCommitsByUserIDRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ClientGithubCommitCountDTO>> {
1825
1825
  const response = await this.getCommitsByUserIDRaw(requestParameters, initOverrides);
1826
1826
  return await response.value();
1827
1827
  }
@@ -2082,7 +2082,7 @@ export class TuixTimesheetsClientApi extends runtime.BaseAPI {
2082
2082
  * Get GitHub account for the authenticated user
2083
2083
  * Get GitHub account
2084
2084
  */
2085
- async getGithubAccountRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GithubAccountDTO>> {
2085
+ async getGithubAccountRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ClientGithubAccountDTO>> {
2086
2086
  const queryParameters: any = {};
2087
2087
 
2088
2088
  const headerParameters: runtime.HTTPHeaders = {};
@@ -2098,14 +2098,14 @@ export class TuixTimesheetsClientApi extends runtime.BaseAPI {
2098
2098
  query: queryParameters,
2099
2099
  }, initOverrides);
2100
2100
 
2101
- return new runtime.JSONApiResponse(response, (jsonValue) => GithubAccountDTOFromJSON(jsonValue));
2101
+ return new runtime.JSONApiResponse(response, (jsonValue) => ClientGithubAccountDTOFromJSON(jsonValue));
2102
2102
  }
2103
2103
 
2104
2104
  /**
2105
2105
  * Get GitHub account for the authenticated user
2106
2106
  * Get GitHub account
2107
2107
  */
2108
- async getGithubAccount(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GithubAccountDTO> {
2108
+ async getGithubAccount(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ClientGithubAccountDTO> {
2109
2109
  const response = await this.getGithubAccountRaw(initOverrides);
2110
2110
  return await response.value();
2111
2111
  }
@@ -2386,7 +2386,7 @@ export class TuixTimesheetsClientApi extends runtime.BaseAPI {
2386
2386
  * Get commit statistics for the authenticated user
2387
2387
  * Get my commits
2388
2388
  */
2389
- async getMyCommitsRaw(requestParameters: GetMyCommitsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<GithubCommitCountDTO>>> {
2389
+ async getMyCommitsRaw(requestParameters: GetMyCommitsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ClientGithubCommitCountDTO>>> {
2390
2390
  if (requestParameters.from === null || requestParameters.from === undefined) {
2391
2391
  throw new runtime.RequiredError('from','Required parameter requestParameters.from was null or undefined when calling getMyCommits.');
2392
2392
  }
@@ -2422,14 +2422,14 @@ export class TuixTimesheetsClientApi extends runtime.BaseAPI {
2422
2422
  query: queryParameters,
2423
2423
  }, initOverrides);
2424
2424
 
2425
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(GithubCommitCountDTOFromJSON));
2425
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ClientGithubCommitCountDTOFromJSON));
2426
2426
  }
2427
2427
 
2428
2428
  /**
2429
2429
  * Get commit statistics for the authenticated user
2430
2430
  * Get my commits
2431
2431
  */
2432
- async getMyCommits(requestParameters: GetMyCommitsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<GithubCommitCountDTO>> {
2432
+ async getMyCommits(requestParameters: GetMyCommitsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ClientGithubCommitCountDTO>> {
2433
2433
  const response = await this.getMyCommitsRaw(requestParameters, initOverrides);
2434
2434
  return await response.value();
2435
2435
  }
@@ -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"}
@@ -16,31 +16,31 @@ import { exists, mapValues } from '../runtime';
16
16
  /**
17
17
  *
18
18
  * @export
19
- * @interface GithubAccountDTO
19
+ * @interface ClientGithubAccountDTO
20
20
  */
21
- export interface GithubAccountDTO {
21
+ export interface ClientGithubAccountDTO {
22
22
  /**
23
23
  *
24
24
  * @type {string}
25
- * @memberof GithubAccountDTO
25
+ * @memberof ClientGithubAccountDTO
26
26
  */
27
27
  username?: string;
28
28
  }
29
29
 
30
30
  /**
31
- * Check if a given object implements the GithubAccountDTO interface.
31
+ * Check if a given object implements the ClientGithubAccountDTO interface.
32
32
  */
33
- export function instanceOfGithubAccountDTO(value: object): boolean {
33
+ export function instanceOfClientGithubAccountDTO(value: object): boolean {
34
34
  let isInstance = true;
35
35
 
36
36
  return isInstance;
37
37
  }
38
38
 
39
- export function GithubAccountDTOFromJSON(json: any): GithubAccountDTO {
40
- return GithubAccountDTOFromJSONTyped(json, false);
39
+ export function ClientGithubAccountDTOFromJSON(json: any): ClientGithubAccountDTO {
40
+ return ClientGithubAccountDTOFromJSONTyped(json, false);
41
41
  }
42
42
 
43
- export function GithubAccountDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): GithubAccountDTO {
43
+ export function ClientGithubAccountDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClientGithubAccountDTO {
44
44
  if ((json === undefined) || (json === null)) {
45
45
  return json;
46
46
  }
@@ -50,7 +50,7 @@ export function GithubAccountDTOFromJSONTyped(json: any, ignoreDiscriminator: bo
50
50
  };
51
51
  }
52
52
 
53
- export function GithubAccountDTOToJSON(value?: GithubAccountDTO | null): any {
53
+ export function ClientGithubAccountDTOToJSON(value?: ClientGithubAccountDTO | null): any {
54
54
  if (value === undefined) {
55
55
  return undefined;
56
56
  }
@@ -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"}
@@ -0,0 +1,120 @@
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 { ClientGithubAccountDTO } from './ClientGithubAccountDTO';
17
+ import {
18
+ ClientGithubAccountDTOFromJSON,
19
+ ClientGithubAccountDTOFromJSONTyped,
20
+ ClientGithubAccountDTOToJSON,
21
+ } from './ClientGithubAccountDTO';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface ClientGithubUserDTO
27
+ */
28
+ export interface ClientGithubUserDTO {
29
+ /**
30
+ *
31
+ * @type {boolean}
32
+ * @memberof ClientGithubUserDTO
33
+ */
34
+ active?: boolean;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof ClientGithubUserDTO
39
+ */
40
+ email?: string;
41
+ /**
42
+ *
43
+ * @type {string}
44
+ * @memberof ClientGithubUserDTO
45
+ */
46
+ firstName?: string;
47
+ /**
48
+ *
49
+ * @type {ClientGithubAccountDTO}
50
+ * @memberof ClientGithubUserDTO
51
+ */
52
+ githubAccount?: ClientGithubAccountDTO;
53
+ /**
54
+ *
55
+ * @type {string}
56
+ * @memberof ClientGithubUserDTO
57
+ */
58
+ id?: string;
59
+ /**
60
+ *
61
+ * @type {string}
62
+ * @memberof ClientGithubUserDTO
63
+ */
64
+ lastName?: string;
65
+ /**
66
+ *
67
+ * @type {string}
68
+ * @memberof ClientGithubUserDTO
69
+ */
70
+ userId?: string;
71
+ }
72
+
73
+ /**
74
+ * Check if a given object implements the ClientGithubUserDTO interface.
75
+ */
76
+ export function instanceOfClientGithubUserDTO(value: object): boolean {
77
+ let isInstance = true;
78
+
79
+ return isInstance;
80
+ }
81
+
82
+ export function ClientGithubUserDTOFromJSON(json: any): ClientGithubUserDTO {
83
+ return ClientGithubUserDTOFromJSONTyped(json, false);
84
+ }
85
+
86
+ export function ClientGithubUserDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClientGithubUserDTO {
87
+ if ((json === undefined) || (json === null)) {
88
+ return json;
89
+ }
90
+ return {
91
+
92
+ 'active': !exists(json, 'active') ? undefined : json['active'],
93
+ 'email': !exists(json, 'email') ? undefined : json['email'],
94
+ 'firstName': !exists(json, 'firstName') ? undefined : json['firstName'],
95
+ 'githubAccount': !exists(json, 'githubAccount') ? undefined : ClientGithubAccountDTOFromJSON(json['githubAccount']),
96
+ 'id': !exists(json, 'id') ? undefined : json['id'],
97
+ 'lastName': !exists(json, 'lastName') ? undefined : json['lastName'],
98
+ 'userId': !exists(json, 'userId') ? undefined : json['userId'],
99
+ };
100
+ }
101
+
102
+ export function ClientGithubUserDTOToJSON(value?: ClientGithubUserDTO | null): any {
103
+ if (value === undefined) {
104
+ return undefined;
105
+ }
106
+ if (value === null) {
107
+ return null;
108
+ }
109
+ return {
110
+
111
+ 'active': value.active,
112
+ 'email': value.email,
113
+ 'firstName': value.firstName,
114
+ 'githubAccount': ClientGithubAccountDTOToJSON(value.githubAccount),
115
+ 'id': value.id,
116
+ 'lastName': value.lastName,
117
+ 'userId': value.userId,
118
+ };
119
+ }
120
+
@@ -13,11 +13,11 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.CreateGithubUserDTOToJSON = exports.CreateGithubUserDTOFromJSONTyped = exports.CreateGithubUserDTOFromJSON = exports.instanceOfCreateGithubUserDTO = void 0;
16
+ exports.CreateGithubUserRequestDTOToJSON = exports.CreateGithubUserRequestDTOFromJSONTyped = exports.CreateGithubUserRequestDTOFromJSON = exports.instanceOfCreateGithubUserRequestDTO = void 0;
17
17
  /**
18
- * Check if a given object implements the CreateGithubUserDTO interface.
18
+ * Check if a given object implements the CreateGithubUserRequestDTO interface.
19
19
  */
20
- function instanceOfCreateGithubUserDTO(value) {
20
+ function instanceOfCreateGithubUserRequestDTO(value) {
21
21
  let isInstance = true;
22
22
  isInstance = isInstance && "email" in value;
23
23
  isInstance = isInstance && "firstName" in value;
@@ -25,12 +25,12 @@ function instanceOfCreateGithubUserDTO(value) {
25
25
  isInstance = isInstance && "token" in value;
26
26
  return isInstance;
27
27
  }
28
- exports.instanceOfCreateGithubUserDTO = instanceOfCreateGithubUserDTO;
29
- function CreateGithubUserDTOFromJSON(json) {
30
- return CreateGithubUserDTOFromJSONTyped(json, false);
28
+ exports.instanceOfCreateGithubUserRequestDTO = instanceOfCreateGithubUserRequestDTO;
29
+ function CreateGithubUserRequestDTOFromJSON(json) {
30
+ return CreateGithubUserRequestDTOFromJSONTyped(json, false);
31
31
  }
32
- exports.CreateGithubUserDTOFromJSON = CreateGithubUserDTOFromJSON;
33
- function CreateGithubUserDTOFromJSONTyped(json, ignoreDiscriminator) {
32
+ exports.CreateGithubUserRequestDTOFromJSON = CreateGithubUserRequestDTOFromJSON;
33
+ function CreateGithubUserRequestDTOFromJSONTyped(json, ignoreDiscriminator) {
34
34
  if ((json === undefined) || (json === null)) {
35
35
  return json;
36
36
  }
@@ -41,8 +41,8 @@ function CreateGithubUserDTOFromJSONTyped(json, ignoreDiscriminator) {
41
41
  'token': json['token'],
42
42
  };
43
43
  }
44
- exports.CreateGithubUserDTOFromJSONTyped = CreateGithubUserDTOFromJSONTyped;
45
- function CreateGithubUserDTOToJSON(value) {
44
+ exports.CreateGithubUserRequestDTOFromJSONTyped = CreateGithubUserRequestDTOFromJSONTyped;
45
+ function CreateGithubUserRequestDTOToJSON(value) {
46
46
  if (value === undefined) {
47
47
  return undefined;
48
48
  }
@@ -56,5 +56,5 @@ function CreateGithubUserDTOToJSON(value) {
56
56
  'token': value.token,
57
57
  };
58
58
  }
59
- exports.CreateGithubUserDTOToJSON = CreateGithubUserDTOToJSON;
60
- //# sourceMappingURL=CreateGithubUserDTO.js.map
59
+ exports.CreateGithubUserRequestDTOToJSON = CreateGithubUserRequestDTOToJSON;
60
+ //# sourceMappingURL=CreateGithubUserRequestDTO.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreateGithubUserRequestDTO.js","sourceRoot":"","sources":["CreateGithubUserRequestDTO.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAmCH;;GAEG;AACH,SAAgB,oCAAoC,CAAC,KAAa;IAC9D,IAAI,UAAU,GAAG,IAAI,CAAC;IACtB,UAAU,GAAG,UAAU,IAAI,OAAO,IAAI,KAAK,CAAC;IAC5C,UAAU,GAAG,UAAU,IAAI,WAAW,IAAI,KAAK,CAAC;IAChD,UAAU,GAAG,UAAU,IAAI,UAAU,IAAI,KAAK,CAAC;IAC/C,UAAU,GAAG,UAAU,IAAI,OAAO,IAAI,KAAK,CAAC;IAE5C,OAAO,UAAU,CAAC;AACtB,CAAC;AARD,oFAQC;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,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC;QACtB,WAAW,EAAE,IAAI,CAAC,WAAW,CAAC;QAC9B,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC;QAC5B,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC;KACzB,CAAC;AACN,CAAC;AAXD,0FAWC;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,OAAO,EAAE,KAAK,CAAC,KAAK;QACpB,WAAW,EAAE,KAAK,CAAC,SAAS;QAC5B,UAAU,EAAE,KAAK,CAAC,QAAQ;QAC1B,OAAO,EAAE,KAAK,CAAC,KAAK;KACvB,CAAC;AACN,CAAC;AAdD,4EAcC"}