tuix-projects-service-client 0.0.111 → 0.0.113

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