tuix-timesheets-api 0.6.44 → 0.6.45

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.
@@ -24,10 +24,14 @@ import type {
24
24
  EmailTemplates,
25
25
  EmployeeDTO,
26
26
  ErrorDTO,
27
+ GlobalTimesheetDTO,
28
+ GlobalTimesheetEntryDTO,
29
+ GlobalTimesheetEntryUpdateDTO,
27
30
  PaginatedAdjustedTimesheets,
28
31
  PaginatedClients,
29
32
  PaginatedEmployeeProjects,
30
33
  PaginatedEmployees,
34
+ PaginatedGlobalTimesheets,
31
35
  PaginatedProjects,
32
36
  PaginatedTimesheets,
33
37
  PaginatedUsers,
@@ -65,6 +69,12 @@ import {
65
69
  EmployeeDTOToJSON,
66
70
  ErrorDTOFromJSON,
67
71
  ErrorDTOToJSON,
72
+ GlobalTimesheetDTOFromJSON,
73
+ GlobalTimesheetDTOToJSON,
74
+ GlobalTimesheetEntryDTOFromJSON,
75
+ GlobalTimesheetEntryDTOToJSON,
76
+ GlobalTimesheetEntryUpdateDTOFromJSON,
77
+ GlobalTimesheetEntryUpdateDTOToJSON,
68
78
  PaginatedAdjustedTimesheetsFromJSON,
69
79
  PaginatedAdjustedTimesheetsToJSON,
70
80
  PaginatedClientsFromJSON,
@@ -73,6 +83,8 @@ import {
73
83
  PaginatedEmployeeProjectsToJSON,
74
84
  PaginatedEmployeesFromJSON,
75
85
  PaginatedEmployeesToJSON,
86
+ PaginatedGlobalTimesheetsFromJSON,
87
+ PaginatedGlobalTimesheetsToJSON,
76
88
  PaginatedProjectsFromJSON,
77
89
  PaginatedProjectsToJSON,
78
90
  PaginatedTimesheetsFromJSON,
@@ -114,6 +126,11 @@ export interface ApproveAdjustedTimesheetRequest {
114
126
  timesheetId: string;
115
127
  }
116
128
 
129
+ export interface ApproveGlobalTimesheetRequest {
130
+ projectId: string;
131
+ timesheetId: string;
132
+ }
133
+
117
134
  export interface ApproveTimesheetRequest {
118
135
  projectId: string;
119
136
  timesheetId: string;
@@ -205,6 +222,15 @@ export interface GetEmployeesRequest {
205
222
  activated?: boolean;
206
223
  }
207
224
 
225
+ export interface GetGlobalTimesheetRequest {
226
+ projectId: string;
227
+ timesheetId: string;
228
+ }
229
+
230
+ export interface GetGlobalTimesheetsRequest {
231
+ projectId: string;
232
+ }
233
+
208
234
  export interface GetPdfTemplateRequest {
209
235
  id: string;
210
236
  }
@@ -295,6 +321,13 @@ export interface UpdateEmployeeDataRequest {
295
321
  employeeDTO: EmployeeDTO;
296
322
  }
297
323
 
324
+ export interface UpdateGlobalTimesheetEntryRequest {
325
+ projectId: string;
326
+ timesheetId: string;
327
+ entryId: string;
328
+ globalTimesheetEntryUpdateDTO: GlobalTimesheetEntryUpdateDTO;
329
+ }
330
+
298
331
  export interface UpdateProjectRequest {
299
332
  projectId: string;
300
333
  projectUpdateDTO: ProjectUpdateDTO;
@@ -371,6 +404,45 @@ export class TuixTimesheetsClientApi extends runtime.BaseAPI {
371
404
  await this.approveAdjustedTimesheetRaw(requestParameters, initOverrides);
372
405
  }
373
406
 
407
+ /**
408
+ * Approve a global timesheet
409
+ * Approve a global timesheet
410
+ */
411
+ async approveGlobalTimesheetRaw(requestParameters: ApproveGlobalTimesheetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
412
+ if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
413
+ throw new runtime.RequiredError('projectId','Required parameter requestParameters.projectId was null or undefined when calling approveGlobalTimesheet.');
414
+ }
415
+
416
+ if (requestParameters.timesheetId === null || requestParameters.timesheetId === undefined) {
417
+ throw new runtime.RequiredError('timesheetId','Required parameter requestParameters.timesheetId was null or undefined when calling approveGlobalTimesheet.');
418
+ }
419
+
420
+ const queryParameters: any = {};
421
+
422
+ const headerParameters: runtime.HTTPHeaders = {};
423
+
424
+ if (this.configuration && this.configuration.apiKey) {
425
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // auth0Authorizer authentication
426
+ }
427
+
428
+ const response = await this.request({
429
+ path: `/projects/{projectId}/global-timesheets/{timesheetId}/approve`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))).replace(`{${"timesheetId"}}`, encodeURIComponent(String(requestParameters.timesheetId))),
430
+ method: 'PATCH',
431
+ headers: headerParameters,
432
+ query: queryParameters,
433
+ }, initOverrides);
434
+
435
+ return new runtime.VoidApiResponse(response);
436
+ }
437
+
438
+ /**
439
+ * Approve a global timesheet
440
+ * Approve a global timesheet
441
+ */
442
+ async approveGlobalTimesheet(requestParameters: ApproveGlobalTimesheetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
443
+ await this.approveGlobalTimesheetRaw(requestParameters, initOverrides);
444
+ }
445
+
374
446
  /**
375
447
  * Approve a timesheet
376
448
  * Approve a timesheet
@@ -1159,6 +1231,82 @@ export class TuixTimesheetsClientApi extends runtime.BaseAPI {
1159
1231
  return await response.value();
1160
1232
  }
1161
1233
 
1234
+ /**
1235
+ * Get a global timesheet
1236
+ * Get a global timesheet
1237
+ */
1238
+ async getGlobalTimesheetRaw(requestParameters: GetGlobalTimesheetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GlobalTimesheetDTO>> {
1239
+ if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
1240
+ throw new runtime.RequiredError('projectId','Required parameter requestParameters.projectId was null or undefined when calling getGlobalTimesheet.');
1241
+ }
1242
+
1243
+ if (requestParameters.timesheetId === null || requestParameters.timesheetId === undefined) {
1244
+ throw new runtime.RequiredError('timesheetId','Required parameter requestParameters.timesheetId was null or undefined when calling getGlobalTimesheet.');
1245
+ }
1246
+
1247
+ const queryParameters: any = {};
1248
+
1249
+ const headerParameters: runtime.HTTPHeaders = {};
1250
+
1251
+ if (this.configuration && this.configuration.apiKey) {
1252
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // auth0Authorizer authentication
1253
+ }
1254
+
1255
+ const response = await this.request({
1256
+ path: `/projects/{projectId}/global-timesheets/{timesheetId}`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))).replace(`{${"timesheetId"}}`, encodeURIComponent(String(requestParameters.timesheetId))),
1257
+ method: 'GET',
1258
+ headers: headerParameters,
1259
+ query: queryParameters,
1260
+ }, initOverrides);
1261
+
1262
+ return new runtime.JSONApiResponse(response, (jsonValue) => GlobalTimesheetDTOFromJSON(jsonValue));
1263
+ }
1264
+
1265
+ /**
1266
+ * Get a global timesheet
1267
+ * Get a global timesheet
1268
+ */
1269
+ async getGlobalTimesheet(requestParameters: GetGlobalTimesheetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GlobalTimesheetDTO> {
1270
+ const response = await this.getGlobalTimesheetRaw(requestParameters, initOverrides);
1271
+ return await response.value();
1272
+ }
1273
+
1274
+ /**
1275
+ * Get all global timesheets in a project
1276
+ * Get all global timesheets in a project
1277
+ */
1278
+ async getGlobalTimesheetsRaw(requestParameters: GetGlobalTimesheetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedGlobalTimesheets>> {
1279
+ if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
1280
+ throw new runtime.RequiredError('projectId','Required parameter requestParameters.projectId was null or undefined when calling getGlobalTimesheets.');
1281
+ }
1282
+
1283
+ const queryParameters: any = {};
1284
+
1285
+ const headerParameters: runtime.HTTPHeaders = {};
1286
+
1287
+ if (this.configuration && this.configuration.apiKey) {
1288
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // auth0Authorizer authentication
1289
+ }
1290
+
1291
+ const response = await this.request({
1292
+ path: `/projects/{projectId}/global-timesheets`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
1293
+ method: 'GET',
1294
+ headers: headerParameters,
1295
+ query: queryParameters,
1296
+ }, initOverrides);
1297
+
1298
+ return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedGlobalTimesheetsFromJSON(jsonValue));
1299
+ }
1300
+
1301
+ /**
1302
+ * Get all global timesheets in a project
1303
+ * Get all global timesheets in a project
1304
+ */
1305
+ async getGlobalTimesheets(requestParameters: GetGlobalTimesheetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedGlobalTimesheets> {
1306
+ const response = await this.getGlobalTimesheetsRaw(requestParameters, initOverrides);
1307
+ return await response.value();
1308
+ }
1309
+
1162
1310
  /**
1163
1311
  * Get template by id
1164
1312
  * Get template by id
@@ -2009,6 +2157,57 @@ export class TuixTimesheetsClientApi extends runtime.BaseAPI {
2009
2157
  return await response.value();
2010
2158
  }
2011
2159
 
2160
+ /**
2161
+ * Update a global timesheet entry
2162
+ * Update a global timesheet entry
2163
+ */
2164
+ async updateGlobalTimesheetEntryRaw(requestParameters: UpdateGlobalTimesheetEntryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GlobalTimesheetEntryDTO>> {
2165
+ if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
2166
+ throw new runtime.RequiredError('projectId','Required parameter requestParameters.projectId was null or undefined when calling updateGlobalTimesheetEntry.');
2167
+ }
2168
+
2169
+ if (requestParameters.timesheetId === null || requestParameters.timesheetId === undefined) {
2170
+ throw new runtime.RequiredError('timesheetId','Required parameter requestParameters.timesheetId was null or undefined when calling updateGlobalTimesheetEntry.');
2171
+ }
2172
+
2173
+ if (requestParameters.entryId === null || requestParameters.entryId === undefined) {
2174
+ throw new runtime.RequiredError('entryId','Required parameter requestParameters.entryId was null or undefined when calling updateGlobalTimesheetEntry.');
2175
+ }
2176
+
2177
+ if (requestParameters.globalTimesheetEntryUpdateDTO === null || requestParameters.globalTimesheetEntryUpdateDTO === undefined) {
2178
+ throw new runtime.RequiredError('globalTimesheetEntryUpdateDTO','Required parameter requestParameters.globalTimesheetEntryUpdateDTO was null or undefined when calling updateGlobalTimesheetEntry.');
2179
+ }
2180
+
2181
+ const queryParameters: any = {};
2182
+
2183
+ const headerParameters: runtime.HTTPHeaders = {};
2184
+
2185
+ headerParameters['Content-Type'] = 'application/json';
2186
+
2187
+ if (this.configuration && this.configuration.apiKey) {
2188
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // auth0Authorizer authentication
2189
+ }
2190
+
2191
+ const response = await this.request({
2192
+ path: `/projects/{projectId}/global-timesheets/{timesheetId}/entries/{entryId}`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))).replace(`{${"timesheetId"}}`, encodeURIComponent(String(requestParameters.timesheetId))).replace(`{${"entryId"}}`, encodeURIComponent(String(requestParameters.entryId))),
2193
+ method: 'PATCH',
2194
+ headers: headerParameters,
2195
+ query: queryParameters,
2196
+ body: GlobalTimesheetEntryUpdateDTOToJSON(requestParameters.globalTimesheetEntryUpdateDTO),
2197
+ }, initOverrides);
2198
+
2199
+ return new runtime.JSONApiResponse(response, (jsonValue) => GlobalTimesheetEntryDTOFromJSON(jsonValue));
2200
+ }
2201
+
2202
+ /**
2203
+ * Update a global timesheet entry
2204
+ * Update a global timesheet entry
2205
+ */
2206
+ async updateGlobalTimesheetEntry(requestParameters: UpdateGlobalTimesheetEntryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GlobalTimesheetEntryDTO> {
2207
+ const response = await this.updateGlobalTimesheetEntryRaw(requestParameters, initOverrides);
2208
+ return await response.value();
2209
+ }
2210
+
2012
2211
  /**
2013
2212
  * Update a project
2014
2213
  * Update a project by ID
@@ -0,0 +1,60 @@
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.GlobalTimesheetDTOToJSON = exports.GlobalTimesheetDTOFromJSONTyped = exports.GlobalTimesheetDTOFromJSON = exports.instanceOfGlobalTimesheetDTO = void 0;
17
+ const runtime_1 = require("../runtime");
18
+ const GlobalTimesheetEntryDTO_1 = require("./GlobalTimesheetEntryDTO");
19
+ /**
20
+ * Check if a given object implements the GlobalTimesheetDTO interface.
21
+ */
22
+ function instanceOfGlobalTimesheetDTO(value) {
23
+ let isInstance = true;
24
+ return isInstance;
25
+ }
26
+ exports.instanceOfGlobalTimesheetDTO = instanceOfGlobalTimesheetDTO;
27
+ function GlobalTimesheetDTOFromJSON(json) {
28
+ return GlobalTimesheetDTOFromJSONTyped(json, false);
29
+ }
30
+ exports.GlobalTimesheetDTOFromJSON = GlobalTimesheetDTOFromJSON;
31
+ function GlobalTimesheetDTOFromJSONTyped(json, ignoreDiscriminator) {
32
+ if ((json === undefined) || (json === null)) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'entries': !(0, runtime_1.exists)(json, 'entries') ? undefined : (json['entries'].map(GlobalTimesheetEntryDTO_1.GlobalTimesheetEntryDTOFromJSON)),
37
+ 'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
38
+ 'month': !(0, runtime_1.exists)(json, 'month') ? undefined : json['month'],
39
+ 'projectID': !(0, runtime_1.exists)(json, 'projectID') ? undefined : json['projectID'],
40
+ 'status': !(0, runtime_1.exists)(json, 'status') ? undefined : json['status'],
41
+ };
42
+ }
43
+ exports.GlobalTimesheetDTOFromJSONTyped = GlobalTimesheetDTOFromJSONTyped;
44
+ function GlobalTimesheetDTOToJSON(value) {
45
+ if (value === undefined) {
46
+ return undefined;
47
+ }
48
+ if (value === null) {
49
+ return null;
50
+ }
51
+ return {
52
+ 'entries': value.entries === undefined ? undefined : (value.entries.map(GlobalTimesheetEntryDTO_1.GlobalTimesheetEntryDTOToJSON)),
53
+ 'id': value.id,
54
+ 'month': value.month,
55
+ 'projectID': value.projectID,
56
+ 'status': value.status,
57
+ };
58
+ }
59
+ exports.GlobalTimesheetDTOToJSON = GlobalTimesheetDTOToJSON;
60
+ //# sourceMappingURL=GlobalTimesheetDTO.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GlobalTimesheetDTO.js","sourceRoot":"","sources":["GlobalTimesheetDTO.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAEH,wCAA+C;AAE/C,uEAImC;AAwCnC;;GAEG;AACH,SAAgB,4BAA4B,CAAC,KAAa;IACtD,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAJD,oEAIC;AAED,SAAgB,0BAA0B,CAAC,IAAS;IAChD,OAAO,+BAA+B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACxD,CAAC;AAFD,gEAEC;AAED,SAAgB,+BAA+B,CAAC,IAAS,EAAE,mBAA4B;IACnF,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE,CAAC;QAC1C,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,SAAS,EAAE,CAAC,IAAA,gBAAM,EAAC,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAE,IAAI,CAAC,SAAS,CAAgB,CAAC,GAAG,CAAC,yDAA+B,CAAC,CAAC;QACxH,IAAI,EAAE,CAAC,IAAA,gBAAM,EAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;QAClD,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,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;AAZD,0EAYC;AAED,SAAgB,wBAAwB,CAAC,KAAiC;IACtE,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,SAAS,EAAE,KAAK,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAE,KAAK,CAAC,OAAsB,CAAC,GAAG,CAAC,uDAA6B,CAAC,CAAC;QACvH,IAAI,EAAE,KAAK,CAAC,EAAE;QACd,OAAO,EAAE,KAAK,CAAC,KAAK;QACpB,WAAW,EAAE,KAAK,CAAC,SAAS;QAC5B,QAAQ,EAAE,KAAK,CAAC,MAAM;KACzB,CAAC;AACN,CAAC;AAfD,4DAeC"}
@@ -0,0 +1,104 @@
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 { GlobalTimesheetEntryDTO } from './GlobalTimesheetEntryDTO';
17
+ import {
18
+ GlobalTimesheetEntryDTOFromJSON,
19
+ GlobalTimesheetEntryDTOFromJSONTyped,
20
+ GlobalTimesheetEntryDTOToJSON,
21
+ } from './GlobalTimesheetEntryDTO';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface GlobalTimesheetDTO
27
+ */
28
+ export interface GlobalTimesheetDTO {
29
+ /**
30
+ *
31
+ * @type {Array<GlobalTimesheetEntryDTO>}
32
+ * @memberof GlobalTimesheetDTO
33
+ */
34
+ entries?: Array<GlobalTimesheetEntryDTO>;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof GlobalTimesheetDTO
39
+ */
40
+ id?: string;
41
+ /**
42
+ *
43
+ * @type {string}
44
+ * @memberof GlobalTimesheetDTO
45
+ */
46
+ month?: string;
47
+ /**
48
+ *
49
+ * @type {string}
50
+ * @memberof GlobalTimesheetDTO
51
+ */
52
+ projectID?: string;
53
+ /**
54
+ *
55
+ * @type {string}
56
+ * @memberof GlobalTimesheetDTO
57
+ */
58
+ status?: string;
59
+ }
60
+
61
+ /**
62
+ * Check if a given object implements the GlobalTimesheetDTO interface.
63
+ */
64
+ export function instanceOfGlobalTimesheetDTO(value: object): boolean {
65
+ let isInstance = true;
66
+
67
+ return isInstance;
68
+ }
69
+
70
+ export function GlobalTimesheetDTOFromJSON(json: any): GlobalTimesheetDTO {
71
+ return GlobalTimesheetDTOFromJSONTyped(json, false);
72
+ }
73
+
74
+ export function GlobalTimesheetDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): GlobalTimesheetDTO {
75
+ if ((json === undefined) || (json === null)) {
76
+ return json;
77
+ }
78
+ return {
79
+
80
+ 'entries': !exists(json, 'entries') ? undefined : ((json['entries'] as Array<any>).map(GlobalTimesheetEntryDTOFromJSON)),
81
+ 'id': !exists(json, 'id') ? undefined : json['id'],
82
+ 'month': !exists(json, 'month') ? undefined : json['month'],
83
+ 'projectID': !exists(json, 'projectID') ? undefined : json['projectID'],
84
+ 'status': !exists(json, 'status') ? undefined : json['status'],
85
+ };
86
+ }
87
+
88
+ export function GlobalTimesheetDTOToJSON(value?: GlobalTimesheetDTO | null): any {
89
+ if (value === undefined) {
90
+ return undefined;
91
+ }
92
+ if (value === null) {
93
+ return null;
94
+ }
95
+ return {
96
+
97
+ 'entries': value.entries === undefined ? undefined : ((value.entries as Array<any>).map(GlobalTimesheetEntryDTOToJSON)),
98
+ 'id': value.id,
99
+ 'month': value.month,
100
+ 'projectID': value.projectID,
101
+ 'status': value.status,
102
+ };
103
+ }
104
+
@@ -0,0 +1,55 @@
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.GlobalTimesheetEntryDTOToJSON = exports.GlobalTimesheetEntryDTOFromJSONTyped = exports.GlobalTimesheetEntryDTOFromJSON = exports.instanceOfGlobalTimesheetEntryDTO = void 0;
17
+ const runtime_1 = require("../runtime");
18
+ /**
19
+ * Check if a given object implements the GlobalTimesheetEntryDTO interface.
20
+ */
21
+ function instanceOfGlobalTimesheetEntryDTO(value) {
22
+ let isInstance = true;
23
+ return isInstance;
24
+ }
25
+ exports.instanceOfGlobalTimesheetEntryDTO = instanceOfGlobalTimesheetEntryDTO;
26
+ function GlobalTimesheetEntryDTOFromJSON(json) {
27
+ return GlobalTimesheetEntryDTOFromJSONTyped(json, false);
28
+ }
29
+ exports.GlobalTimesheetEntryDTOFromJSON = GlobalTimesheetEntryDTOFromJSON;
30
+ function GlobalTimesheetEntryDTOFromJSONTyped(json, ignoreDiscriminator) {
31
+ if ((json === undefined) || (json === null)) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'comments': !(0, runtime_1.exists)(json, 'comments') ? undefined : json['comments'],
36
+ 'day': !(0, runtime_1.exists)(json, 'day') ? undefined : json['day'],
37
+ 'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
38
+ };
39
+ }
40
+ exports.GlobalTimesheetEntryDTOFromJSONTyped = GlobalTimesheetEntryDTOFromJSONTyped;
41
+ function GlobalTimesheetEntryDTOToJSON(value) {
42
+ if (value === undefined) {
43
+ return undefined;
44
+ }
45
+ if (value === null) {
46
+ return null;
47
+ }
48
+ return {
49
+ 'comments': value.comments,
50
+ 'day': value.day,
51
+ 'id': value.id,
52
+ };
53
+ }
54
+ exports.GlobalTimesheetEntryDTOToJSON = GlobalTimesheetEntryDTOToJSON;
55
+ //# sourceMappingURL=GlobalTimesheetEntryDTO.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GlobalTimesheetEntryDTO.js","sourceRoot":"","sources":["GlobalTimesheetEntryDTO.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAEH,wCAA+C;AA2B/C;;GAEG;AACH,SAAgB,iCAAiC,CAAC,KAAa;IAC3D,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAJD,8EAIC;AAED,SAAgB,+BAA+B,CAAC,IAAS;IACrD,OAAO,oCAAoC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC7D,CAAC;AAFD,0EAEC;AAED,SAAgB,oCAAoC,CAAC,IAAS,EAAE,mBAA4B;IACxF,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;QACpE,KAAK,EAAE,CAAC,IAAA,gBAAM,EAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC;QACrD,IAAI,EAAE,CAAC,IAAA,gBAAM,EAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;KACrD,CAAC;AACN,CAAC;AAVD,oFAUC;AAED,SAAgB,6BAA6B,CAAC,KAAsC;IAChF,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,KAAK,EAAE,KAAK,CAAC,GAAG;QAChB,IAAI,EAAE,KAAK,CAAC,EAAE;KACjB,CAAC;AACN,CAAC;AAbD,sEAaC"}
@@ -0,0 +1,81 @@
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 GlobalTimesheetEntryDTO
20
+ */
21
+ export interface GlobalTimesheetEntryDTO {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof GlobalTimesheetEntryDTO
26
+ */
27
+ comments?: string;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof GlobalTimesheetEntryDTO
32
+ */
33
+ day?: number;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof GlobalTimesheetEntryDTO
38
+ */
39
+ id?: string;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the GlobalTimesheetEntryDTO interface.
44
+ */
45
+ export function instanceOfGlobalTimesheetEntryDTO(value: object): boolean {
46
+ let isInstance = true;
47
+
48
+ return isInstance;
49
+ }
50
+
51
+ export function GlobalTimesheetEntryDTOFromJSON(json: any): GlobalTimesheetEntryDTO {
52
+ return GlobalTimesheetEntryDTOFromJSONTyped(json, false);
53
+ }
54
+
55
+ export function GlobalTimesheetEntryDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): GlobalTimesheetEntryDTO {
56
+ if ((json === undefined) || (json === null)) {
57
+ return json;
58
+ }
59
+ return {
60
+
61
+ 'comments': !exists(json, 'comments') ? undefined : json['comments'],
62
+ 'day': !exists(json, 'day') ? undefined : json['day'],
63
+ 'id': !exists(json, 'id') ? undefined : json['id'],
64
+ };
65
+ }
66
+
67
+ export function GlobalTimesheetEntryDTOToJSON(value?: GlobalTimesheetEntryDTO | null): any {
68
+ if (value === undefined) {
69
+ return undefined;
70
+ }
71
+ if (value === null) {
72
+ return null;
73
+ }
74
+ return {
75
+
76
+ 'comments': value.comments,
77
+ 'day': value.day,
78
+ 'id': value.id,
79
+ };
80
+ }
81
+
@@ -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.GlobalTimesheetEntryUpdateDTOToJSON = exports.GlobalTimesheetEntryUpdateDTOFromJSONTyped = exports.GlobalTimesheetEntryUpdateDTOFromJSON = exports.instanceOfGlobalTimesheetEntryUpdateDTO = void 0;
17
+ const runtime_1 = require("../runtime");
18
+ /**
19
+ * Check if a given object implements the GlobalTimesheetEntryUpdateDTO interface.
20
+ */
21
+ function instanceOfGlobalTimesheetEntryUpdateDTO(value) {
22
+ let isInstance = true;
23
+ return isInstance;
24
+ }
25
+ exports.instanceOfGlobalTimesheetEntryUpdateDTO = instanceOfGlobalTimesheetEntryUpdateDTO;
26
+ function GlobalTimesheetEntryUpdateDTOFromJSON(json) {
27
+ return GlobalTimesheetEntryUpdateDTOFromJSONTyped(json, false);
28
+ }
29
+ exports.GlobalTimesheetEntryUpdateDTOFromJSON = GlobalTimesheetEntryUpdateDTOFromJSON;
30
+ function GlobalTimesheetEntryUpdateDTOFromJSONTyped(json, ignoreDiscriminator) {
31
+ if ((json === undefined) || (json === null)) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'comments': !(0, runtime_1.exists)(json, 'comments') ? undefined : json['comments'],
36
+ };
37
+ }
38
+ exports.GlobalTimesheetEntryUpdateDTOFromJSONTyped = GlobalTimesheetEntryUpdateDTOFromJSONTyped;
39
+ function GlobalTimesheetEntryUpdateDTOToJSON(value) {
40
+ if (value === undefined) {
41
+ return undefined;
42
+ }
43
+ if (value === null) {
44
+ return null;
45
+ }
46
+ return {
47
+ 'comments': value.comments,
48
+ };
49
+ }
50
+ exports.GlobalTimesheetEntryUpdateDTOToJSON = GlobalTimesheetEntryUpdateDTOToJSON;
51
+ //# sourceMappingURL=GlobalTimesheetEntryUpdateDTO.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GlobalTimesheetEntryUpdateDTO.js","sourceRoot":"","sources":["GlobalTimesheetEntryUpdateDTO.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAEH,wCAA+C;AAe/C;;GAEG;AACH,SAAgB,uCAAuC,CAAC,KAAa;IACjE,IAAI,UAAU,GAAG,IAAI,CAAC;IAEtB,OAAO,UAAU,CAAC;AACtB,CAAC;AAJD,0FAIC;AAED,SAAgB,qCAAqC,CAAC,IAAS;IAC3D,OAAO,0CAA0C,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACnE,CAAC;AAFD,sFAEC;AAED,SAAgB,0CAA0C,CAAC,IAAS,EAAE,mBAA4B;IAC9F,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,gGAQC;AAED,SAAgB,mCAAmC,CAAC,KAA4C;IAC5F,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,kFAWC"}