tuix-projects-service-client 0.0.113 → 0.0.115

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/apis/ClientApi.ts CHANGED
@@ -307,7 +307,7 @@ export interface AddJiraAccountRequest {
307
307
  createJiraAccountDTO: CreateJiraAccountDTO;
308
308
  }
309
309
 
310
- export interface ApiUpdateTimesheetEntriesRequest {
310
+ export interface ApiUpdateTimesheetEntryRequest {
311
311
  /**
312
312
  * Project ID
313
313
  */
@@ -317,9 +317,13 @@ export interface ApiUpdateTimesheetEntriesRequest {
317
317
  */
318
318
  timesheetId: string;
319
319
  /**
320
- * Entries to update, each one identified by its id
320
+ * Timesheet entry ID (one day of the timesheet)
321
321
  */
322
- timesheetEntryUpdateDTO: Array<TimesheetEntryUpdateDTO>;
322
+ entryId: string;
323
+ /**
324
+ * Entry to update
325
+ */
326
+ timesheetEntryUpdateDTO: TimesheetEntryUpdateDTO;
323
327
  }
324
328
 
325
329
  export interface ApproveAdjustedTimesheetRequest {
@@ -980,7 +984,7 @@ export interface SendTimesheetRequest {
980
984
  timesheetId: string;
981
985
  }
982
986
 
983
- export interface UpdateAdjustedEntriesRequest {
987
+ export interface UpdateAdjustedEntryRequest {
984
988
  /**
985
989
  * Project ID
986
990
  */
@@ -990,9 +994,13 @@ export interface UpdateAdjustedEntriesRequest {
990
994
  */
991
995
  timesheetId: string;
992
996
  /**
993
- * Entries to update, each one identified by its id
997
+ * Adjusted timesheet entry ID
998
+ */
999
+ entryId: string;
1000
+ /**
1001
+ * Entry to update
994
1002
  */
995
- adjustedTimesheetUpdateEntryDTO: Array<AdjustedTimesheetUpdateEntryDTO>;
1003
+ adjustedTimesheetUpdateEntryDTO: AdjustedTimesheetUpdateEntryDTO;
996
1004
  }
997
1005
 
998
1006
  export interface UpdateClientRequest {
@@ -1028,7 +1036,7 @@ export interface UpdateEmployeeDataRequest {
1028
1036
  employeeUpdateDTO: EmployeeUpdateDTO;
1029
1037
  }
1030
1038
 
1031
- export interface UpdateGlobalTimesheetEntriesRequest {
1039
+ export interface UpdateGlobalTimesheetEntryRequest {
1032
1040
  /**
1033
1041
  * Project ID
1034
1042
  */
@@ -1038,9 +1046,13 @@ export interface UpdateGlobalTimesheetEntriesRequest {
1038
1046
  */
1039
1047
  timesheetId: string;
1040
1048
  /**
1041
- * Entries to update, each one identified by its id
1049
+ * Global timesheet entry ID
1050
+ */
1051
+ entryId: string;
1052
+ /**
1053
+ * Entry to update
1042
1054
  */
1043
- globalTimesheetEntryUpdateDTO: Array<GlobalTimesheetEntryUpdateDTO>;
1055
+ globalTimesheetEntryUpdateDTO: GlobalTimesheetEntryUpdateDTO;
1044
1056
  }
1045
1057
 
1046
1058
  export interface UpdateProjectRequest {
@@ -1072,7 +1084,7 @@ export interface UpdateTeamRequest {
1072
1084
  teamUpdateDTO: TeamUpdateDTO;
1073
1085
  }
1074
1086
 
1075
- export interface UpdateTimesheetEntriesRequest {
1087
+ export interface UpdateTimesheetEntryRequest {
1076
1088
  /**
1077
1089
  * Project ID
1078
1090
  */
@@ -1082,9 +1094,13 @@ export interface UpdateTimesheetEntriesRequest {
1082
1094
  */
1083
1095
  timesheetId: string;
1084
1096
  /**
1085
- * Entries to update, each one identified by its id
1097
+ * Timesheet entry ID (one day of the timesheet)
1086
1098
  */
1087
- timesheetEntryUpdateDTO: Array<TimesheetEntryUpdateDTO>;
1099
+ entryId: string;
1100
+ /**
1101
+ * Entry to update
1102
+ */
1103
+ timesheetEntryUpdateDTO: TimesheetEntryUpdateDTO;
1088
1104
  }
1089
1105
 
1090
1106
  /**
@@ -1206,27 +1222,34 @@ export class ClientApi extends runtime.BaseAPI {
1206
1222
  }
1207
1223
 
1208
1224
  /**
1209
- * Creates request options for apiUpdateTimesheetEntries without sending the request
1225
+ * Creates request options for apiUpdateTimesheetEntry without sending the request
1210
1226
  */
1211
- async apiUpdateTimesheetEntriesRequestOpts(requestParameters: ApiUpdateTimesheetEntriesRequest): Promise<runtime.RequestOpts> {
1227
+ async apiUpdateTimesheetEntryRequestOpts(requestParameters: ApiUpdateTimesheetEntryRequest): Promise<runtime.RequestOpts> {
1212
1228
  if (requestParameters['projectId'] == null) {
1213
1229
  throw new runtime.RequiredError(
1214
1230
  'projectId',
1215
- 'Required parameter "projectId" was null or undefined when calling apiUpdateTimesheetEntries().'
1231
+ 'Required parameter "projectId" was null or undefined when calling apiUpdateTimesheetEntry().'
1216
1232
  );
1217
1233
  }
1218
1234
 
1219
1235
  if (requestParameters['timesheetId'] == null) {
1220
1236
  throw new runtime.RequiredError(
1221
1237
  'timesheetId',
1222
- 'Required parameter "timesheetId" was null or undefined when calling apiUpdateTimesheetEntries().'
1238
+ 'Required parameter "timesheetId" was null or undefined when calling apiUpdateTimesheetEntry().'
1239
+ );
1240
+ }
1241
+
1242
+ if (requestParameters['entryId'] == null) {
1243
+ throw new runtime.RequiredError(
1244
+ 'entryId',
1245
+ 'Required parameter "entryId" was null or undefined when calling apiUpdateTimesheetEntry().'
1223
1246
  );
1224
1247
  }
1225
1248
 
1226
1249
  if (requestParameters['timesheetEntryUpdateDTO'] == null) {
1227
1250
  throw new runtime.RequiredError(
1228
1251
  'timesheetEntryUpdateDTO',
1229
- 'Required parameter "timesheetEntryUpdateDTO" was null or undefined when calling apiUpdateTimesheetEntries().'
1252
+ 'Required parameter "timesheetEntryUpdateDTO" was null or undefined when calling apiUpdateTimesheetEntry().'
1230
1253
  );
1231
1254
  }
1232
1255
 
@@ -1241,36 +1264,37 @@ export class ClientApi extends runtime.BaseAPI {
1241
1264
  }
1242
1265
 
1243
1266
 
1244
- let urlPath = `/api/projects/{projectId}/timesheets/{timesheetId}/entries`;
1267
+ let urlPath = `/api/projects/{projectId}/timesheets/{timesheetId}/entries/{entryId}`;
1245
1268
  urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
1246
1269
  urlPath = urlPath.replace('{timesheetId}', encodeURIComponent(String(requestParameters['timesheetId'])));
1270
+ urlPath = urlPath.replace('{entryId}', encodeURIComponent(String(requestParameters['entryId'])));
1247
1271
 
1248
1272
  return {
1249
1273
  path: urlPath,
1250
1274
  method: 'PATCH',
1251
1275
  headers: headerParameters,
1252
1276
  query: queryParameters,
1253
- body: requestParameters['timesheetEntryUpdateDTO']!.map(TimesheetEntryUpdateDTOToJSON),
1277
+ body: TimesheetEntryUpdateDTOToJSON(requestParameters['timesheetEntryUpdateDTO']),
1254
1278
  };
1255
1279
  }
1256
1280
 
1257
1281
  /**
1258
- * Update one or more days of an employee timesheet. Only possible while the timesheet is OPEN. Internal endpoint.
1259
- * Update timesheet entries
1282
+ * Update or change the hours of a day in an employee timesheet. Only possible while the timesheet is OPEN. Internal endpoint.
1283
+ * Update a timesheet entry
1260
1284
  */
1261
- async apiUpdateTimesheetEntriesRaw(requestParameters: ApiUpdateTimesheetEntriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
1262
- const requestOptions = await this.apiUpdateTimesheetEntriesRequestOpts(requestParameters);
1285
+ async apiUpdateTimesheetEntryRaw(requestParameters: ApiUpdateTimesheetEntryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
1286
+ const requestOptions = await this.apiUpdateTimesheetEntryRequestOpts(requestParameters);
1263
1287
  const response = await this.request(requestOptions, initOverrides);
1264
1288
 
1265
1289
  return new runtime.VoidApiResponse(response);
1266
1290
  }
1267
1291
 
1268
1292
  /**
1269
- * Update one or more days of an employee timesheet. Only possible while the timesheet is OPEN. Internal endpoint.
1270
- * Update timesheet entries
1293
+ * Update or change the hours of a day in an employee timesheet. Only possible while the timesheet is OPEN. Internal endpoint.
1294
+ * Update a timesheet entry
1271
1295
  */
1272
- async apiUpdateTimesheetEntries(requestParameters: ApiUpdateTimesheetEntriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
1273
- await this.apiUpdateTimesheetEntriesRaw(requestParameters, initOverrides);
1296
+ async apiUpdateTimesheetEntry(requestParameters: ApiUpdateTimesheetEntryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
1297
+ await this.apiUpdateTimesheetEntryRaw(requestParameters, initOverrides);
1274
1298
  }
1275
1299
 
1276
1300
  /**
@@ -4939,27 +4963,34 @@ export class ClientApi extends runtime.BaseAPI {
4939
4963
  }
4940
4964
 
4941
4965
  /**
4942
- * Creates request options for updateAdjustedEntries without sending the request
4966
+ * Creates request options for updateAdjustedEntry without sending the request
4943
4967
  */
4944
- async updateAdjustedEntriesRequestOpts(requestParameters: UpdateAdjustedEntriesRequest): Promise<runtime.RequestOpts> {
4968
+ async updateAdjustedEntryRequestOpts(requestParameters: UpdateAdjustedEntryRequest): Promise<runtime.RequestOpts> {
4945
4969
  if (requestParameters['projectId'] == null) {
4946
4970
  throw new runtime.RequiredError(
4947
4971
  'projectId',
4948
- 'Required parameter "projectId" was null or undefined when calling updateAdjustedEntries().'
4972
+ 'Required parameter "projectId" was null or undefined when calling updateAdjustedEntry().'
4949
4973
  );
4950
4974
  }
4951
4975
 
4952
4976
  if (requestParameters['timesheetId'] == null) {
4953
4977
  throw new runtime.RequiredError(
4954
4978
  'timesheetId',
4955
- 'Required parameter "timesheetId" was null or undefined when calling updateAdjustedEntries().'
4979
+ 'Required parameter "timesheetId" was null or undefined when calling updateAdjustedEntry().'
4980
+ );
4981
+ }
4982
+
4983
+ if (requestParameters['entryId'] == null) {
4984
+ throw new runtime.RequiredError(
4985
+ 'entryId',
4986
+ 'Required parameter "entryId" was null or undefined when calling updateAdjustedEntry().'
4956
4987
  );
4957
4988
  }
4958
4989
 
4959
4990
  if (requestParameters['adjustedTimesheetUpdateEntryDTO'] == null) {
4960
4991
  throw new runtime.RequiredError(
4961
4992
  'adjustedTimesheetUpdateEntryDTO',
4962
- 'Required parameter "adjustedTimesheetUpdateEntryDTO" was null or undefined when calling updateAdjustedEntries().'
4993
+ 'Required parameter "adjustedTimesheetUpdateEntryDTO" was null or undefined when calling updateAdjustedEntry().'
4963
4994
  );
4964
4995
  }
4965
4996
 
@@ -4974,36 +5005,37 @@ export class ClientApi extends runtime.BaseAPI {
4974
5005
  }
4975
5006
 
4976
5007
 
4977
- let urlPath = `/projects/{projectId}/adjusted-timesheets/{timesheetId}/entries`;
5008
+ let urlPath = `/projects/{projectId}/adjusted-timesheets/{timesheetId}/entries/{entryId}`;
4978
5009
  urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
4979
5010
  urlPath = urlPath.replace('{timesheetId}', encodeURIComponent(String(requestParameters['timesheetId'])));
5011
+ urlPath = urlPath.replace('{entryId}', encodeURIComponent(String(requestParameters['entryId'])));
4980
5012
 
4981
5013
  return {
4982
5014
  path: urlPath,
4983
5015
  method: 'PATCH',
4984
5016
  headers: headerParameters,
4985
5017
  query: queryParameters,
4986
- body: requestParameters['adjustedTimesheetUpdateEntryDTO']!.map(AdjustedTimesheetUpdateEntryDTOToJSON),
5018
+ body: AdjustedTimesheetUpdateEntryDTOToJSON(requestParameters['adjustedTimesheetUpdateEntryDTO']),
4987
5019
  };
4988
5020
  }
4989
5021
 
4990
5022
  /**
4991
- * Update one or more days of an adjusted timesheet. Only possible while the adjusted timesheet is OPEN.
4992
- * Update adjusted timesheet entries
5023
+ * Update or change the hours of a day in an adjusted timesheet. Only possible while the adjusted timesheet is OPEN.
5024
+ * Update an adjusted timesheet entry
4993
5025
  */
4994
- async updateAdjustedEntriesRaw(requestParameters: UpdateAdjustedEntriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AdjustedTimesheetEntryDTO>>> {
4995
- const requestOptions = await this.updateAdjustedEntriesRequestOpts(requestParameters);
5026
+ async updateAdjustedEntryRaw(requestParameters: UpdateAdjustedEntryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AdjustedTimesheetEntryDTO>> {
5027
+ const requestOptions = await this.updateAdjustedEntryRequestOpts(requestParameters);
4996
5028
  const response = await this.request(requestOptions, initOverrides);
4997
5029
 
4998
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(AdjustedTimesheetEntryDTOFromJSON));
5030
+ return new runtime.JSONApiResponse(response, (jsonValue) => AdjustedTimesheetEntryDTOFromJSON(jsonValue));
4999
5031
  }
5000
5032
 
5001
5033
  /**
5002
- * Update one or more days of an adjusted timesheet. Only possible while the adjusted timesheet is OPEN.
5003
- * Update adjusted timesheet entries
5034
+ * Update or change the hours of a day in an adjusted timesheet. Only possible while the adjusted timesheet is OPEN.
5035
+ * Update an adjusted timesheet entry
5004
5036
  */
5005
- async updateAdjustedEntries(requestParameters: UpdateAdjustedEntriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AdjustedTimesheetEntryDTO>> {
5006
- const response = await this.updateAdjustedEntriesRaw(requestParameters, initOverrides);
5037
+ async updateAdjustedEntry(requestParameters: UpdateAdjustedEntryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AdjustedTimesheetEntryDTO> {
5038
+ const response = await this.updateAdjustedEntryRaw(requestParameters, initOverrides);
5007
5039
  return await response.value();
5008
5040
  }
5009
5041
 
@@ -5191,27 +5223,34 @@ export class ClientApi extends runtime.BaseAPI {
5191
5223
  }
5192
5224
 
5193
5225
  /**
5194
- * Creates request options for updateGlobalTimesheetEntries without sending the request
5226
+ * Creates request options for updateGlobalTimesheetEntry without sending the request
5195
5227
  */
5196
- async updateGlobalTimesheetEntriesRequestOpts(requestParameters: UpdateGlobalTimesheetEntriesRequest): Promise<runtime.RequestOpts> {
5228
+ async updateGlobalTimesheetEntryRequestOpts(requestParameters: UpdateGlobalTimesheetEntryRequest): Promise<runtime.RequestOpts> {
5197
5229
  if (requestParameters['projectId'] == null) {
5198
5230
  throw new runtime.RequiredError(
5199
5231
  'projectId',
5200
- 'Required parameter "projectId" was null or undefined when calling updateGlobalTimesheetEntries().'
5232
+ 'Required parameter "projectId" was null or undefined when calling updateGlobalTimesheetEntry().'
5201
5233
  );
5202
5234
  }
5203
5235
 
5204
5236
  if (requestParameters['timesheetId'] == null) {
5205
5237
  throw new runtime.RequiredError(
5206
5238
  'timesheetId',
5207
- 'Required parameter "timesheetId" was null or undefined when calling updateGlobalTimesheetEntries().'
5239
+ 'Required parameter "timesheetId" was null or undefined when calling updateGlobalTimesheetEntry().'
5240
+ );
5241
+ }
5242
+
5243
+ if (requestParameters['entryId'] == null) {
5244
+ throw new runtime.RequiredError(
5245
+ 'entryId',
5246
+ 'Required parameter "entryId" was null or undefined when calling updateGlobalTimesheetEntry().'
5208
5247
  );
5209
5248
  }
5210
5249
 
5211
5250
  if (requestParameters['globalTimesheetEntryUpdateDTO'] == null) {
5212
5251
  throw new runtime.RequiredError(
5213
5252
  'globalTimesheetEntryUpdateDTO',
5214
- 'Required parameter "globalTimesheetEntryUpdateDTO" was null or undefined when calling updateGlobalTimesheetEntries().'
5253
+ 'Required parameter "globalTimesheetEntryUpdateDTO" was null or undefined when calling updateGlobalTimesheetEntry().'
5215
5254
  );
5216
5255
  }
5217
5256
 
@@ -5226,36 +5265,37 @@ export class ClientApi extends runtime.BaseAPI {
5226
5265
  }
5227
5266
 
5228
5267
 
5229
- let urlPath = `/projects/{projectId}/global-timesheets/{timesheetId}/entries`;
5268
+ let urlPath = `/projects/{projectId}/global-timesheets/{timesheetId}/entries/{entryId}`;
5230
5269
  urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
5231
5270
  urlPath = urlPath.replace('{timesheetId}', encodeURIComponent(String(requestParameters['timesheetId'])));
5271
+ urlPath = urlPath.replace('{entryId}', encodeURIComponent(String(requestParameters['entryId'])));
5232
5272
 
5233
5273
  return {
5234
5274
  path: urlPath,
5235
5275
  method: 'PATCH',
5236
5276
  headers: headerParameters,
5237
5277
  query: queryParameters,
5238
- body: requestParameters['globalTimesheetEntryUpdateDTO']!.map(GlobalTimesheetEntryUpdateDTOToJSON),
5278
+ body: GlobalTimesheetEntryUpdateDTOToJSON(requestParameters['globalTimesheetEntryUpdateDTO']),
5239
5279
  };
5240
5280
  }
5241
5281
 
5242
5282
  /**
5243
- * Update the hours or comments of one or more days of a global timesheet. Only possible while the global timesheet is OPEN.
5244
- * Update global timesheet entries
5283
+ * Update or change the hours or comments of a day in a global timesheet. Only possible while the global timesheet is OPEN.
5284
+ * Update a global timesheet entry
5245
5285
  */
5246
- async updateGlobalTimesheetEntriesRaw(requestParameters: UpdateGlobalTimesheetEntriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<GlobalTimesheetEntryDTO>>> {
5247
- const requestOptions = await this.updateGlobalTimesheetEntriesRequestOpts(requestParameters);
5286
+ async updateGlobalTimesheetEntryRaw(requestParameters: UpdateGlobalTimesheetEntryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GlobalTimesheetEntryDTO>> {
5287
+ const requestOptions = await this.updateGlobalTimesheetEntryRequestOpts(requestParameters);
5248
5288
  const response = await this.request(requestOptions, initOverrides);
5249
5289
 
5250
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(GlobalTimesheetEntryDTOFromJSON));
5290
+ return new runtime.JSONApiResponse(response, (jsonValue) => GlobalTimesheetEntryDTOFromJSON(jsonValue));
5251
5291
  }
5252
5292
 
5253
5293
  /**
5254
- * Update the hours or comments of one or more days of a global timesheet. Only possible while the global timesheet is OPEN.
5255
- * Update global timesheet entries
5294
+ * Update or change the hours or comments of a day in a global timesheet. Only possible while the global timesheet is OPEN.
5295
+ * Update a global timesheet entry
5256
5296
  */
5257
- async updateGlobalTimesheetEntries(requestParameters: UpdateGlobalTimesheetEntriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<GlobalTimesheetEntryDTO>> {
5258
- const response = await this.updateGlobalTimesheetEntriesRaw(requestParameters, initOverrides);
5297
+ async updateGlobalTimesheetEntry(requestParameters: UpdateGlobalTimesheetEntryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GlobalTimesheetEntryDTO> {
5298
+ const response = await this.updateGlobalTimesheetEntryRaw(requestParameters, initOverrides);
5259
5299
  return await response.value();
5260
5300
  }
5261
5301
 
@@ -5434,27 +5474,34 @@ export class ClientApi extends runtime.BaseAPI {
5434
5474
  }
5435
5475
 
5436
5476
  /**
5437
- * Creates request options for updateTimesheetEntries without sending the request
5477
+ * Creates request options for updateTimesheetEntry without sending the request
5438
5478
  */
5439
- async updateTimesheetEntriesRequestOpts(requestParameters: UpdateTimesheetEntriesRequest): Promise<runtime.RequestOpts> {
5479
+ async updateTimesheetEntryRequestOpts(requestParameters: UpdateTimesheetEntryRequest): Promise<runtime.RequestOpts> {
5440
5480
  if (requestParameters['projectId'] == null) {
5441
5481
  throw new runtime.RequiredError(
5442
5482
  'projectId',
5443
- 'Required parameter "projectId" was null or undefined when calling updateTimesheetEntries().'
5483
+ 'Required parameter "projectId" was null or undefined when calling updateTimesheetEntry().'
5444
5484
  );
5445
5485
  }
5446
5486
 
5447
5487
  if (requestParameters['timesheetId'] == null) {
5448
5488
  throw new runtime.RequiredError(
5449
5489
  'timesheetId',
5450
- 'Required parameter "timesheetId" was null or undefined when calling updateTimesheetEntries().'
5490
+ 'Required parameter "timesheetId" was null or undefined when calling updateTimesheetEntry().'
5491
+ );
5492
+ }
5493
+
5494
+ if (requestParameters['entryId'] == null) {
5495
+ throw new runtime.RequiredError(
5496
+ 'entryId',
5497
+ 'Required parameter "entryId" was null or undefined when calling updateTimesheetEntry().'
5451
5498
  );
5452
5499
  }
5453
5500
 
5454
5501
  if (requestParameters['timesheetEntryUpdateDTO'] == null) {
5455
5502
  throw new runtime.RequiredError(
5456
5503
  'timesheetEntryUpdateDTO',
5457
- 'Required parameter "timesheetEntryUpdateDTO" was null or undefined when calling updateTimesheetEntries().'
5504
+ 'Required parameter "timesheetEntryUpdateDTO" was null or undefined when calling updateTimesheetEntry().'
5458
5505
  );
5459
5506
  }
5460
5507
 
@@ -5469,36 +5516,37 @@ export class ClientApi extends runtime.BaseAPI {
5469
5516
  }
5470
5517
 
5471
5518
 
5472
- let urlPath = `/projects/{projectId}/timesheets/{timesheetId}/entries`;
5519
+ let urlPath = `/projects/{projectId}/timesheets/{timesheetId}/entries/{entryId}`;
5473
5520
  urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
5474
5521
  urlPath = urlPath.replace('{timesheetId}', encodeURIComponent(String(requestParameters['timesheetId'])));
5522
+ urlPath = urlPath.replace('{entryId}', encodeURIComponent(String(requestParameters['entryId'])));
5475
5523
 
5476
5524
  return {
5477
5525
  path: urlPath,
5478
5526
  method: 'PATCH',
5479
5527
  headers: headerParameters,
5480
5528
  query: queryParameters,
5481
- body: requestParameters['timesheetEntryUpdateDTO']!.map(TimesheetEntryUpdateDTOToJSON),
5529
+ body: TimesheetEntryUpdateDTOToJSON(requestParameters['timesheetEntryUpdateDTO']),
5482
5530
  };
5483
5531
  }
5484
5532
 
5485
5533
  /**
5486
- * Update one or more days of an employee timesheet. Only possible while the timesheet is OPEN.
5487
- * Update timesheet entries
5534
+ * Update or change the hours of a day in an employee timesheet. Only possible while the timesheet is OPEN.
5535
+ * Update a timesheet entry
5488
5536
  */
5489
- async updateTimesheetEntriesRaw(requestParameters: UpdateTimesheetEntriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
5490
- const requestOptions = await this.updateTimesheetEntriesRequestOpts(requestParameters);
5537
+ async updateTimesheetEntryRaw(requestParameters: UpdateTimesheetEntryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
5538
+ const requestOptions = await this.updateTimesheetEntryRequestOpts(requestParameters);
5491
5539
  const response = await this.request(requestOptions, initOverrides);
5492
5540
 
5493
5541
  return new runtime.VoidApiResponse(response);
5494
5542
  }
5495
5543
 
5496
5544
  /**
5497
- * Update one or more days of an employee timesheet. Only possible while the timesheet is OPEN.
5498
- * Update timesheet entries
5545
+ * Update or change the hours of a day in an employee timesheet. Only possible while the timesheet is OPEN.
5546
+ * Update a timesheet entry
5499
5547
  */
5500
- async updateTimesheetEntries(requestParameters: UpdateTimesheetEntriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
5501
- await this.updateTimesheetEntriesRaw(requestParameters, initOverrides);
5548
+ async updateTimesheetEntry(requestParameters: UpdateTimesheetEntryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
5549
+ await this.updateTimesheetEntryRaw(requestParameters, initOverrides);
5502
5550
  }
5503
5551
 
5504
5552
  }
@@ -9,7 +9,6 @@ Name | Type
9
9
  `checkIn` | string
10
10
  `checkOut` | string
11
11
  `comments` | string
12
- `id` | string
13
12
  `pause` | number
14
13
 
15
14
  ## Example
@@ -22,7 +21,6 @@ const example = {
22
21
  "checkIn": null,
23
22
  "checkOut": null,
24
23
  "comments": null,
25
- "id": null,
26
24
  "pause": null,
27
25
  } satisfies AdjustedTimesheetUpdateEntryDTO
28
26