@@ -264,3 +264,71 @@ def refresh_token(self) -> Optional[Tuple[Dict[str, Any], requests.Response]]:
264
264
content , response = self ._request_wrapper ('POST' , '/refresh-token' , request_body = request_body )
265
265
self .token_dict = content
266
266
return content , response
267
+
268
+ #########################################
269
+ # Public Method : 労務関係API (将来的に大きく変更される可能性があります)
270
+ # 労務管理がりようできる組織は限られています。利用する場合は、AnnoFabにお問い合わせください。
271
+ #########################################
272
+ def get_labor_control (
273
+ self ,
274
+ query_params : Optional [Dict [str , Any ]] = None
275
+ ) -> Tuple [Any , requests .Response ]:
276
+ """労務管理関連データを一括で取得します。
277
+
278
+
279
+ Args:
280
+ query_params: Query Parameters
281
+
282
+ Returns:
283
+ Tuple[Task, requests.Response]
284
+
285
+
286
+ """
287
+ url_path = f'/labor-control'
288
+ http_method = 'GET'
289
+ keyword_params : Dict [str , Any ] = {
290
+ 'query_params' : query_params ,
291
+ }
292
+ return self ._request_wrapper (http_method , url_path , ** keyword_params )
293
+
294
+ def put_labor_control (
295
+ self ,
296
+ request_body : Dict [str , Any ]
297
+ ) -> Tuple [Any , requests .Response ]:
298
+ """労務管理関連データを更新します。
299
+
300
+
301
+ Args:
302
+ request_body: Request Body
303
+
304
+ Returns:
305
+ Tuple[Task, requests.Response]
306
+
307
+
308
+ """
309
+ url_path = f'/labor-control'
310
+ http_method = 'PUT'
311
+ keyword_params : Dict [str , Any ] = {
312
+ 'request_body' : request_body ,
313
+ }
314
+ return self ._request_wrapper (http_method , url_path , ** keyword_params )
315
+
316
+ def delete_labor_control (
317
+ self ,
318
+ data_id : str
319
+ ) -> Tuple [Any , requests .Response ]:
320
+ """労務管理関連データを削除します。
321
+
322
+
323
+ Args:
324
+ data_id: 削除したい労務管理関連データID。
325
+
326
+ Returns:
327
+ Tuple[Task, None]
328
+
329
+
330
+ """
331
+ url_path = f'/labor-control/{ data_id } '
332
+ http_method = 'DELETE'
333
+ keyword_params : Dict [str , Any ] = {}
334
+ return self ._request_wrapper (http_method , url_path , ** keyword_params )
0 commit comments