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

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.
@@ -6024,7 +6042,7 @@ export type PayrollIntegrationsBaseCode = {
6024
6042
  /**
6025
6043
  * Integration name
6026
6044
  */
6027
- integration: 'a3innuva' | 'a3nom' | 'agenda' | 'paierh' | 'yeap_paierh' | 'silae' | 'sage100' | 'datev' | 'datev_api' | 'datev_lug_api' | 'datev_lauds' | 'team_system' | 'zucchetti' | 'gispaghe' | 'job_sistemi';
6045
+ 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
6046
  };
6029
6047
  export type PerformanceAgreement = {
6030
6048
  /**
@@ -9121,7 +9139,7 @@ export type TrainingsTraining = {
9121
9139
  /**
9122
9140
  * Training status. Can be one of the following values
9123
9141
  */
9124
- status?: 'draft' | 'active' | 'deleted';
9142
+ status?: 'draft' | 'active' | 'deleted' | 'pending';
9125
9143
  /**
9126
9144
  * Year of the training
9127
9145
  */
@@ -16563,6 +16581,148 @@ export type GetApi20270101ResourcesAttendanceWorkedTimesByIdResponses = {
16563
16581
  200: AttendanceWorkedTime;
16564
16582
  };
16565
16583
  export type GetApi20270101ResourcesAttendanceWorkedTimesByIdResponse = GetApi20270101ResourcesAttendanceWorkedTimesByIdResponses[keyof GetApi20270101ResourcesAttendanceWorkedTimesByIdResponses];
16584
+ export type PostApi20270101ResourcesAuthenticationEmailChangesData = {
16585
+ body?: {
16586
+ /**
16587
+ * the employee whose login email changes, refers to /employees/employees endpoint.
16588
+ */
16589
+ employee_id: string;
16590
+ /**
16591
+ * the email the employee will log in with.
16592
+ */
16593
+ new_email: string;
16594
+ };
16595
+ path?: never;
16596
+ query?: never;
16597
+ url: '/api/2027-01-01/resources/authentication/email_changes';
16598
+ };
16599
+ export type PostApi20270101ResourcesAuthenticationEmailChangesErrors = {
16600
+ /**
16601
+ * Bad Request (malformed_request)
16602
+ */
16603
+ 400: ErrorResponse;
16604
+ /**
16605
+ * Unauthorized (unauthorized)
16606
+ */
16607
+ 401: ErrorResponse;
16608
+ /**
16609
+ * Payment Required (payment_required)
16610
+ */
16611
+ 402: ErrorResponse;
16612
+ /**
16613
+ * Forbidden (forbidden)
16614
+ */
16615
+ 403: ErrorResponse;
16616
+ /**
16617
+ * Not Found (missing_resource)
16618
+ */
16619
+ 404: ErrorResponse;
16620
+ /**
16621
+ * Conflict (invalid_state)
16622
+ */
16623
+ 409: ErrorResponse;
16624
+ /**
16625
+ * Gone
16626
+ */
16627
+ 410: ErrorResponse;
16628
+ /**
16629
+ * Unprocessable Entity (default, validation_failed)
16630
+ */
16631
+ 422: ErrorResponse;
16632
+ /**
16633
+ * Precondition Required
16634
+ */
16635
+ 428: ErrorResponse;
16636
+ /**
16637
+ * Internal Server Error
16638
+ */
16639
+ 500: ErrorResponse;
16640
+ /**
16641
+ * Bad Gateway (malformed_resource)
16642
+ */
16643
+ 502: ErrorResponse;
16644
+ /**
16645
+ * Gateway Timeout (service_unreachable)
16646
+ */
16647
+ 504: ErrorResponse;
16648
+ };
16649
+ export type PostApi20270101ResourcesAuthenticationEmailChangesError = PostApi20270101ResourcesAuthenticationEmailChangesErrors[keyof PostApi20270101ResourcesAuthenticationEmailChangesErrors];
16650
+ export type PostApi20270101ResourcesAuthenticationEmailChangesResponses = {
16651
+ /**
16652
+ * CREATED
16653
+ */
16654
+ 201: AuthenticationEmployee;
16655
+ };
16656
+ export type PostApi20270101ResourcesAuthenticationEmailChangesResponse = PostApi20270101ResourcesAuthenticationEmailChangesResponses[keyof PostApi20270101ResourcesAuthenticationEmailChangesResponses];
16657
+ export type PostApi20270101ResourcesAuthenticationEmailChangesCancelData = {
16658
+ body?: {
16659
+ /**
16660
+ * the employee whose pending login email change is cancelled, refers to /employees/employees endpoint.
16661
+ */
16662
+ employee_id: string;
16663
+ };
16664
+ path?: never;
16665
+ query?: never;
16666
+ url: '/api/2027-01-01/resources/authentication/email_changes/cancel';
16667
+ };
16668
+ export type PostApi20270101ResourcesAuthenticationEmailChangesCancelErrors = {
16669
+ /**
16670
+ * Bad Request (malformed_request)
16671
+ */
16672
+ 400: ErrorResponse;
16673
+ /**
16674
+ * Unauthorized (unauthorized)
16675
+ */
16676
+ 401: ErrorResponse;
16677
+ /**
16678
+ * Payment Required (payment_required)
16679
+ */
16680
+ 402: ErrorResponse;
16681
+ /**
16682
+ * Forbidden (forbidden)
16683
+ */
16684
+ 403: ErrorResponse;
16685
+ /**
16686
+ * Not Found (missing_resource)
16687
+ */
16688
+ 404: ErrorResponse;
16689
+ /**
16690
+ * Conflict (invalid_state)
16691
+ */
16692
+ 409: ErrorResponse;
16693
+ /**
16694
+ * Gone
16695
+ */
16696
+ 410: ErrorResponse;
16697
+ /**
16698
+ * Unprocessable Entity (default, validation_failed)
16699
+ */
16700
+ 422: ErrorResponse;
16701
+ /**
16702
+ * Precondition Required
16703
+ */
16704
+ 428: ErrorResponse;
16705
+ /**
16706
+ * Internal Server Error
16707
+ */
16708
+ 500: ErrorResponse;
16709
+ /**
16710
+ * Bad Gateway (malformed_resource)
16711
+ */
16712
+ 502: ErrorResponse;
16713
+ /**
16714
+ * Gateway Timeout (service_unreachable)
16715
+ */
16716
+ 504: ErrorResponse;
16717
+ };
16718
+ export type PostApi20270101ResourcesAuthenticationEmailChangesCancelError = PostApi20270101ResourcesAuthenticationEmailChangesCancelErrors[keyof PostApi20270101ResourcesAuthenticationEmailChangesCancelErrors];
16719
+ export type PostApi20270101ResourcesAuthenticationEmailChangesCancelResponses = {
16720
+ /**
16721
+ * OK
16722
+ */
16723
+ 200: AuthenticationEmployee;
16724
+ };
16725
+ export type PostApi20270101ResourcesAuthenticationEmailChangesCancelResponse = PostApi20270101ResourcesAuthenticationEmailChangesCancelResponses[keyof PostApi20270101ResourcesAuthenticationEmailChangesCancelResponses];
16566
16726
  export type GetApi20270101ResourcesBankingBankAccountsData = {
16567
16727
  body?: never;
16568
16728
  path?: never;
@@ -18369,7 +18529,7 @@ export type PutApi20270101ResourcesCompensationsConceptsByIdData = {
18369
18529
  */
18370
18530
  label?: string;
18371
18531
  /**
18372
- * Unit type (custom concepts only)
18532
+ * Unit type (custom concepts only). It can't be changed once the concept is created, so a different value is rejected
18373
18533
  */
18374
18534
  unit_type?: 'distance' | 'money' | 'time' | 'unit';
18375
18535
  /**
@@ -26352,6 +26512,10 @@ export type PostApi20270101ResourcesEmployeesEmployeesCreateWithContractData = {
26352
26512
  * 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
26513
  */
26354
26514
  job_catalog_tree_node_uuid?: string;
26515
+ /**
26516
+ * job title of the employee's first contract, at most 255 characters.
26517
+ */
26518
+ job_title?: string;
26355
26519
  /**
26356
26520
  * team id of the employee.
26357
26521
  */
@@ -37262,7 +37426,7 @@ export type GetApi20270101ResourcesPayrollIntegrationsBaseCodesData = {
37262
37426
  /**
37263
37427
  * Payroll Integration names
37264
37428
  */
37265
- 'integrations[]': 'a3innuva' | 'a3nom' | 'agenda' | 'paierh' | 'yeap_paierh' | 'silae' | 'sage100' | 'datev' | 'datev_api' | 'datev_lug_api' | 'datev_lauds' | 'team_system' | 'zucchetti' | 'gispaghe' | 'job_sistemi';
37429
+ '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
37430
  /**
37267
37431
  * Related object ID. Used together with codeable_type
37268
37432
  */
@@ -37352,7 +37516,7 @@ export type PostApi20270101ResourcesPayrollIntegrationsBaseCodesData = {
37352
37516
  /**
37353
37517
  * Integration name
37354
37518
  */
37355
- integration: 'a3innuva' | 'a3nom' | 'agenda' | 'paierh' | 'yeap_paierh' | 'silae' | 'sage100' | 'datev' | 'datev_api' | 'datev_lug_api' | 'datev_lauds' | 'team_system' | 'zucchetti' | 'gispaghe' | 'job_sistemi';
37519
+ 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
37520
  };
37357
37521
  path?: never;
37358
37522
  query?: never;