@factorialco/api-client 4.0.0-beta.2027010116 → 4.0.0-beta.2027010118

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.
@@ -1076,6 +1076,24 @@ export type AttendanceWorkedTime = {
1076
1076
  */
1077
1077
  id: string;
1078
1078
  };
1079
+ export type AuthenticationEmployee = {
1080
+ /**
1081
+ * employee identifier, refers to /employees/employees endpoint.
1082
+ */
1083
+ id: string;
1084
+ /**
1085
+ * company identifier.
1086
+ */
1087
+ company_id: string;
1088
+ /**
1089
+ * the email the employee currently logs in with. It only changes once the email change is confirmed.
1090
+ */
1091
+ login_email?: string;
1092
+ /**
1093
+ * the email waiting for confirmation, or null when there is no pending email change.
1094
+ */
1095
+ unconfirmed_login_email?: string;
1096
+ };
1079
1097
  export type BankingBankAccount = {
1080
1098
  /**
1081
1099
  * Factorial unique identifier.
@@ -4391,6 +4409,10 @@ export type ExpensesPerDiem = {
4391
4409
  * The subcategory of the per diem.
4392
4410
  */
4393
4411
  subcategory?: string;
4412
+ /**
4413
+ * The ID of the custom category of the per diem (a per diem subcategory, or the per diem category itself).
4414
+ */
4415
+ category_id?: string;
4394
4416
  /**
4395
4417
  * The status of the per diem.
4396
4418
  */
@@ -6024,7 +6046,7 @@ export type PayrollIntegrationsBaseCode = {
6024
6046
  /**
6025
6047
  * Integration name
6026
6048
  */
6027
- integration: 'a3innuva' | 'a3nom' | 'agenda' | 'paierh' | 'yeap_paierh' | 'silae' | 'sage100' | 'datev' | 'datev_api' | 'datev_lug_api' | 'datev_lauds' | 'team_system' | 'zucchetti' | 'gispaghe' | 'job_sistemi';
6049
+ integration: 'a3innuva' | 'a3nom' | 'adp_france' | 'agenda' | 'paierh' | 'yeap_paierh' | 'silae' | 'sage100' | 'datev' | 'datev_api' | 'datev_lug_api' | 'datev_lauds' | 'team_system' | 'zucchetti' | 'gispaghe' | 'job_sistemi';
6028
6050
  };
6029
6051
  export type PerformanceAgreement = {
6030
6052
  /**
@@ -9121,7 +9143,7 @@ export type TrainingsTraining = {
9121
9143
  /**
9122
9144
  * Training status. Can be one of the following values
9123
9145
  */
9124
- status?: 'draft' | 'active' | 'deleted';
9146
+ status?: 'draft' | 'active' | 'deleted' | 'pending';
9125
9147
  /**
9126
9148
  * Year of the training
9127
9149
  */
@@ -16563,6 +16585,148 @@ export type GetApi20270101ResourcesAttendanceWorkedTimesByIdResponses = {
16563
16585
  200: AttendanceWorkedTime;
16564
16586
  };
16565
16587
  export type GetApi20270101ResourcesAttendanceWorkedTimesByIdResponse = GetApi20270101ResourcesAttendanceWorkedTimesByIdResponses[keyof GetApi20270101ResourcesAttendanceWorkedTimesByIdResponses];
16588
+ export type PostApi20270101ResourcesAuthenticationEmailChangesData = {
16589
+ body?: {
16590
+ /**
16591
+ * the employee whose login email changes, refers to /employees/employees endpoint.
16592
+ */
16593
+ employee_id: string;
16594
+ /**
16595
+ * the email the employee will log in with.
16596
+ */
16597
+ new_email: string;
16598
+ };
16599
+ path?: never;
16600
+ query?: never;
16601
+ url: '/api/2027-01-01/resources/authentication/email_changes';
16602
+ };
16603
+ export type PostApi20270101ResourcesAuthenticationEmailChangesErrors = {
16604
+ /**
16605
+ * Bad Request (malformed_request)
16606
+ */
16607
+ 400: ErrorResponse;
16608
+ /**
16609
+ * Unauthorized (unauthorized)
16610
+ */
16611
+ 401: ErrorResponse;
16612
+ /**
16613
+ * Payment Required (payment_required)
16614
+ */
16615
+ 402: ErrorResponse;
16616
+ /**
16617
+ * Forbidden (forbidden)
16618
+ */
16619
+ 403: ErrorResponse;
16620
+ /**
16621
+ * Not Found (missing_resource)
16622
+ */
16623
+ 404: ErrorResponse;
16624
+ /**
16625
+ * Conflict (invalid_state)
16626
+ */
16627
+ 409: ErrorResponse;
16628
+ /**
16629
+ * Gone
16630
+ */
16631
+ 410: ErrorResponse;
16632
+ /**
16633
+ * Unprocessable Entity (default, validation_failed)
16634
+ */
16635
+ 422: ErrorResponse;
16636
+ /**
16637
+ * Precondition Required
16638
+ */
16639
+ 428: ErrorResponse;
16640
+ /**
16641
+ * Internal Server Error
16642
+ */
16643
+ 500: ErrorResponse;
16644
+ /**
16645
+ * Bad Gateway (malformed_resource)
16646
+ */
16647
+ 502: ErrorResponse;
16648
+ /**
16649
+ * Gateway Timeout (service_unreachable)
16650
+ */
16651
+ 504: ErrorResponse;
16652
+ };
16653
+ export type PostApi20270101ResourcesAuthenticationEmailChangesError = PostApi20270101ResourcesAuthenticationEmailChangesErrors[keyof PostApi20270101ResourcesAuthenticationEmailChangesErrors];
16654
+ export type PostApi20270101ResourcesAuthenticationEmailChangesResponses = {
16655
+ /**
16656
+ * CREATED
16657
+ */
16658
+ 201: AuthenticationEmployee;
16659
+ };
16660
+ export type PostApi20270101ResourcesAuthenticationEmailChangesResponse = PostApi20270101ResourcesAuthenticationEmailChangesResponses[keyof PostApi20270101ResourcesAuthenticationEmailChangesResponses];
16661
+ export type PostApi20270101ResourcesAuthenticationEmailChangesCancelData = {
16662
+ body?: {
16663
+ /**
16664
+ * the employee whose pending login email change is cancelled, refers to /employees/employees endpoint.
16665
+ */
16666
+ employee_id: string;
16667
+ };
16668
+ path?: never;
16669
+ query?: never;
16670
+ url: '/api/2027-01-01/resources/authentication/email_changes/cancel';
16671
+ };
16672
+ export type PostApi20270101ResourcesAuthenticationEmailChangesCancelErrors = {
16673
+ /**
16674
+ * Bad Request (malformed_request)
16675
+ */
16676
+ 400: ErrorResponse;
16677
+ /**
16678
+ * Unauthorized (unauthorized)
16679
+ */
16680
+ 401: ErrorResponse;
16681
+ /**
16682
+ * Payment Required (payment_required)
16683
+ */
16684
+ 402: ErrorResponse;
16685
+ /**
16686
+ * Forbidden (forbidden)
16687
+ */
16688
+ 403: ErrorResponse;
16689
+ /**
16690
+ * Not Found (missing_resource)
16691
+ */
16692
+ 404: ErrorResponse;
16693
+ /**
16694
+ * Conflict (invalid_state)
16695
+ */
16696
+ 409: ErrorResponse;
16697
+ /**
16698
+ * Gone
16699
+ */
16700
+ 410: ErrorResponse;
16701
+ /**
16702
+ * Unprocessable Entity (default, validation_failed)
16703
+ */
16704
+ 422: ErrorResponse;
16705
+ /**
16706
+ * Precondition Required
16707
+ */
16708
+ 428: ErrorResponse;
16709
+ /**
16710
+ * Internal Server Error
16711
+ */
16712
+ 500: ErrorResponse;
16713
+ /**
16714
+ * Bad Gateway (malformed_resource)
16715
+ */
16716
+ 502: ErrorResponse;
16717
+ /**
16718
+ * Gateway Timeout (service_unreachable)
16719
+ */
16720
+ 504: ErrorResponse;
16721
+ };
16722
+ export type PostApi20270101ResourcesAuthenticationEmailChangesCancelError = PostApi20270101ResourcesAuthenticationEmailChangesCancelErrors[keyof PostApi20270101ResourcesAuthenticationEmailChangesCancelErrors];
16723
+ export type PostApi20270101ResourcesAuthenticationEmailChangesCancelResponses = {
16724
+ /**
16725
+ * OK
16726
+ */
16727
+ 200: AuthenticationEmployee;
16728
+ };
16729
+ export type PostApi20270101ResourcesAuthenticationEmailChangesCancelResponse = PostApi20270101ResourcesAuthenticationEmailChangesCancelResponses[keyof PostApi20270101ResourcesAuthenticationEmailChangesCancelResponses];
16566
16730
  export type GetApi20270101ResourcesBankingBankAccountsData = {
16567
16731
  body?: never;
16568
16732
  path?: never;
@@ -17420,7 +17584,7 @@ export type GetApi20270101ResourcesCompaniesLegalEntitiesData = {
17420
17584
  */
17421
17585
  'ids[]'?: Array<string>;
17422
17586
  /**
17423
- * identifier of the employees asigned to the legal entity
17587
+ * identifier of the employees assigned to the legal entity
17424
17588
  */
17425
17589
  'employees_ids[]'?: Array<string>;
17426
17590
  /**
@@ -18369,7 +18533,7 @@ export type PutApi20270101ResourcesCompensationsConceptsByIdData = {
18369
18533
  */
18370
18534
  label?: string;
18371
18535
  /**
18372
- * Unit type (custom concepts only)
18536
+ * Unit type (custom concepts only). It can't be changed once the concept is created, so a different value is rejected
18373
18537
  */
18374
18538
  unit_type?: 'distance' | 'money' | 'time' | 'unit';
18375
18539
  /**
@@ -26352,6 +26516,10 @@ export type PostApi20270101ResourcesEmployeesEmployeesCreateWithContractData = {
26352
26516
  * the uuid of nodes in the job catalog tree. For now it only supports level nodes. From this point in the job catalog tree you can get the full ancestor path to the root node including the role. Refer to job_catalog/tree_nodes endpoint.
26353
26517
  */
26354
26518
  job_catalog_tree_node_uuid?: string;
26519
+ /**
26520
+ * job title of the employee's first contract, at most 255 characters.
26521
+ */
26522
+ job_title?: string;
26355
26523
  /**
26356
26524
  * team id of the employee.
26357
26525
  */
@@ -37262,7 +37430,7 @@ export type GetApi20270101ResourcesPayrollIntegrationsBaseCodesData = {
37262
37430
  /**
37263
37431
  * Payroll Integration names
37264
37432
  */
37265
- 'integrations[]': 'a3innuva' | 'a3nom' | 'agenda' | 'paierh' | 'yeap_paierh' | 'silae' | 'sage100' | 'datev' | 'datev_api' | 'datev_lug_api' | 'datev_lauds' | 'team_system' | 'zucchetti' | 'gispaghe' | 'job_sistemi';
37433
+ 'integrations[]': 'a3innuva' | 'a3nom' | 'adp_france' | 'agenda' | 'paierh' | 'yeap_paierh' | 'silae' | 'sage100' | 'datev' | 'datev_api' | 'datev_lug_api' | 'datev_lauds' | 'team_system' | 'zucchetti' | 'gispaghe' | 'job_sistemi';
37266
37434
  /**
37267
37435
  * Related object ID. Used together with codeable_type
37268
37436
  */
@@ -37352,7 +37520,7 @@ export type PostApi20270101ResourcesPayrollIntegrationsBaseCodesData = {
37352
37520
  /**
37353
37521
  * Integration name
37354
37522
  */
37355
- integration: 'a3innuva' | 'a3nom' | 'agenda' | 'paierh' | 'yeap_paierh' | 'silae' | 'sage100' | 'datev' | 'datev_api' | 'datev_lug_api' | 'datev_lauds' | 'team_system' | 'zucchetti' | 'gispaghe' | 'job_sistemi';
37523
+ integration: 'a3innuva' | 'a3nom' | 'adp_france' | 'agenda' | 'paierh' | 'yeap_paierh' | 'silae' | 'sage100' | 'datev' | 'datev_api' | 'datev_lug_api' | 'datev_lauds' | 'team_system' | 'zucchetti' | 'gispaghe' | 'job_sistemi';
37356
37524
  };
37357
37525
  path?: never;
37358
37526
  query?: never;