@factorialco/api-client 3.0.0-beta.2026100135 → 3.0.0-beta.2026100137
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/dist/cjs/generated/index.d.ts +2 -2
- package/dist/cjs/generated/index.d.ts.map +1 -1
- package/dist/cjs/generated/index.js +9 -6
- package/dist/cjs/generated/index.js.map +1 -1
- package/dist/cjs/generated/sdk.gen.d.ts +20 -1
- package/dist/cjs/generated/sdk.gen.d.ts.map +1 -1
- package/dist/cjs/generated/sdk.gen.js +57 -11
- package/dist/cjs/generated/sdk.gen.js.map +1 -1
- package/dist/cjs/generated/types.gen.d.ts +472 -13
- package/dist/cjs/generated/types.gen.d.ts.map +1 -1
- package/dist/cjs/sdk.d.ts +13 -1
- package/dist/cjs/sdk.d.ts.map +1 -1
- package/dist/cjs/sdk.js +21 -5
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/cjs/webhooks.d.ts +4 -1
- package/dist/cjs/webhooks.d.ts.map +1 -1
- package/dist/cjs/webhooks.js +1 -0
- package/dist/cjs/webhooks.js.map +1 -1
- package/dist/esm/generated/index.d.ts +2 -2
- package/dist/esm/generated/index.d.ts.map +1 -1
- package/dist/esm/generated/index.js +1 -1
- package/dist/esm/generated/index.js.map +1 -1
- package/dist/esm/generated/sdk.gen.d.ts +20 -1
- package/dist/esm/generated/sdk.gen.d.ts.map +1 -1
- package/dist/esm/generated/sdk.gen.js +43 -0
- package/dist/esm/generated/sdk.gen.js.map +1 -1
- package/dist/esm/generated/types.gen.d.ts +472 -13
- package/dist/esm/generated/types.gen.d.ts.map +1 -1
- package/dist/esm/sdk.d.ts +13 -1
- package/dist/esm/sdk.d.ts.map +1 -1
- package/dist/esm/sdk.js +16 -1
- package/dist/esm/sdk.js.map +1 -1
- package/dist/esm/webhooks.d.ts +4 -1
- package/dist/esm/webhooks.d.ts.map +1 -1
- package/dist/esm/webhooks.js +1 -0
- package/dist/esm/webhooks.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export type ClientOptions = {
|
|
2
2
|
baseUrl: 'https://api.factorialhr.com' | 'https://api.demo.factorial.dev' | 'https://api.eu2.demo.factorial.dev' | (string & {});
|
|
3
3
|
};
|
|
4
|
-
export type Webhooks = PostWebhooks__ApiPublic__WebhookSubscription__CreatesWebhookRequest | PostWebhooks__ApiPublic__WebhookSubscription__DeletesWebhookRequest | PostWebhooks__ApiPublic__WebhookSubscription__UpdatesWebhookRequest | PostWebhooks__Ats__Application__AppliesWebhookRequest | PostWebhooks__Ats__Application__CreatesWebhookRequest | PostWebhooks__Ats__Application__CreateFromEmployeesWebhookRequest | PostWebhooks__Ats__Application__DeletesWebhookRequest | PostWebhooks__Ats__Application__UpdatesWebhookRequest | PostWebhooks__Ats__Candidate__CreatesWebhookRequest | PostWebhooks__Ats__Candidate__DeletesWebhookRequest | PostWebhooks__Ats__Candidate__UpdatesWebhookRequest | PostWebhooks__Ats__EvaluationForm__SaveAsTemplatesWebhookRequest | PostWebhooks__Ats__JobPosting__CreatesWebhookRequest | PostWebhooks__Ats__JobPosting__DeletesWebhookRequest | PostWebhooks__Ats__JobPosting__DuplicatesWebhookRequest | PostWebhooks__Ats__JobPosting__UpdatesWebhookRequest | PostWebhooks__Attendance__Shift__AutofillsWebhookRequest | PostWebhooks__Attendance__Shift__BreakEndsWebhookRequest | PostWebhooks__Attendance__Shift__BreakStartsWebhookRequest | PostWebhooks__Attendance__Shift__ClockInsWebhookRequest | PostWebhooks__Attendance__Shift__ClockOutsWebhookRequest | PostWebhooks__Attendance__Shift__CreatesWebhookRequest | PostWebhooks__Attendance__Shift__DeletesWebhookRequest | PostWebhooks__Attendance__Shift__ToggleClocksWebhookRequest | PostWebhooks__Attendance__Shift__UpdatesWebhookRequest | PostWebhooks__Banking__BankAccountNumber__UpsertsWebhookRequest | PostWebhooks__BookkeepersManagement__Incidence__UpdatesWebhookRequest | PostWebhooks__Companies__LegalEntity__CreatesWebhookRequest | PostWebhooks__Contracts__ContractVersionRequest__ApprovesWebhookRequest | PostWebhooks__Contracts__ContractVersionRequest__CreatePromoteRequestsWebhookRequest | PostWebhooks__Contracts__ContractVersionRequest__DeletesWebhookRequest | PostWebhooks__Contracts__ContractVersionRequest__RejectsWebhookRequest | PostWebhooks__Contracts__ContractVersion__CreatesWebhookRequest | PostWebhooks__Contracts__ContractVersion__DeletesWebhookRequest | PostWebhooks__Contracts__ContractVersion__UpdatesWebhookRequest | PostWebhooks__CustomResources__Schema__CreatesWebhookRequest | PostWebhooks__Documents__Document__BulkCreatesWebhookRequest | PostWebhooks__Documents__Document__CreatesWebhookRequest | PostWebhooks__Documents__Document__DeletesWebhookRequest | PostWebhooks__Documents__Document__MoveToTrashBinsWebhookRequest | PostWebhooks__Documents__Document__RestoreFromTrashBinsWebhookRequest | PostWebhooks__Documents__Document__UpdatesWebhookRequest | PostWebhooks__Documents__Folder__CreatesWebhookRequest | PostWebhooks__Documents__Folder__UpdatesWebhookRequest | PostWebhooks__Employees__Employee__CreateWithContractsWebhookRequest | PostWebhooks__Employees__Employee__InvitesWebhookRequest | PostWebhooks__Employees__Employee__SetRegularAccessStartDatesWebhookRequest | PostWebhooks__Employees__Employee__TerminatesWebhookRequest | PostWebhooks__Employees__Employee__UnterminatesWebhookRequest | PostWebhooks__Employees__Employee__UpdatesWebhookRequest | PostWebhooks__Expenses__Expensable__BulkSetToPaidsWebhookRequest | PostWebhooks__Expenses__Expensable__UpdateReimbursableAmountsWebhookRequest | PostWebhooks__Finance__CostCenter__CreatesWebhookRequest | PostWebhooks__Finance__CostCenter__DeletesWebhookRequest | PostWebhooks__Finance__CostCenter__EditsWebhookRequest | PostWebhooks__Locations__Location__CreatesWebhookRequest | PostWebhooks__Locations__Location__DeletesWebhookRequest | PostWebhooks__Locations__Location__UpdatesWebhookRequest | PostWebhooks__Payroll__PolicyPeriod__ChangeStatusesWebhookRequest | PostWebhooks__Payroll__Supplement__CreatesWebhookRequest | PostWebhooks__Payroll__Supplement__DeletesWebhookRequest | PostWebhooks__Payroll__Supplement__UpdatesWebhookRequest | PostWebhooks__PayrollIntegrationsBase__Code__CreatesWebhookRequest | PostWebhooks__PayrollIntegrationsBase__Code__DeletesWebhookRequest | PostWebhooks__PayrollIntegrationsBase__Code__UpdatesWebhookRequest | PostWebhooks__Performance__ReviewProcess__CreatesWebhookRequest | PostWebhooks__Performance__ReviewProcess__CreateFromTemplatesWebhookRequest | PostWebhooks__Performance__ReviewProcess__DeletesWebhookRequest | PostWebhooks__Performance__ReviewProcess__DuplicatesWebhookRequest | PostWebhooks__Performance__ReviewProcess__RemindInBulksWebhookRequest | PostWebhooks__Performance__ReviewProcess__RemoveSchedulesWebhookRequest | PostWebhooks__Performance__ReviewProcess__ReopensWebhookRequest | PostWebhooks__Performance__ReviewProcess__SchedulesWebhookRequest | PostWebhooks__Performance__ReviewProcess__StartsWebhookRequest | PostWebhooks__Performance__ReviewProcess__StopsWebhookRequest | PostWebhooks__Performance__ReviewProcess__ToggleArchivesWebhookRequest | PostWebhooks__Performance__ReviewProcess__UpdateAgreementsConfigurationsWebhookRequest | PostWebhooks__Performance__ReviewProcess__UpdateBasicInfosWebhookRequest | PostWebhooks__Performance__ReviewProcess__UpdateCompetenciesAssessmentsConfigurationsWebhookRequest | PostWebhooks__Performance__ReviewProcess__UpdateDeadlinesWebhookRequest | PostWebhooks__Performance__ReviewProcess__UpdateEmployeeScoreConfigurationsWebhookRequest | PostWebhooks__Performance__ReviewProcess__UpdateReviewerStrategiesWebhookRequest | PostWebhooks__Performance__ReviewProcess__UpdateSchedulesWebhookRequest | PostWebhooks__Performance__ReviewProcess__UpdateTargetStrategiesWebhookRequest | PostWebhooks__ProjectManagement__TimeRecord__CreatesWebhookRequest | PostWebhooks__ProjectManagement__TimeRecord__DeletesWebhookRequest | PostWebhooks__ProjectManagement__TimeRecord__UpdateImputedMinutesWebhookRequest | PostWebhooks__ProjectManagement__TimeRecord__UpdateObservationsWebhookRequest | PostWebhooks__ProjectManagement__TimeRecord__UpdateProjectWorkersWebhookRequest | PostWebhooks__ShiftManagement__Shift__BulkCreatesWebhookRequest | PostWebhooks__ShiftManagement__Shift__BulkDeletesWebhookRequest | PostWebhooks__ShiftManagement__Shift__CreatesWebhookRequest | PostWebhooks__ShiftManagement__Shift__DeletesWebhookRequest | PostWebhooks__Tasks__Task__BulkCreatesWebhookRequest | PostWebhooks__Tasks__Task__BulkDeletesWebhookRequest | PostWebhooks__Tasks__Task__BulkUpdatesWebhookRequest | PostWebhooks__Tasks__Task__CopiesWebhookRequest | PostWebhooks__Tasks__Task__CreatesWebhookRequest | PostWebhooks__Tasks__Task__CreateCommentsWebhookRequest | PostWebhooks__Tasks__Task__DeletesWebhookRequest | PostWebhooks__Tasks__Task__UpdatesWebhookRequest | PostWebhooks__Teams__Membership__BulkUpsertsWebhookRequest | PostWebhooks__Teams__Membership__CreatesWebhookRequest | PostWebhooks__Teams__Membership__DeletesWebhookRequest | PostWebhooks__Teams__Membership__UpdatesWebhookRequest | PostWebhooks__Teams__Team__CreatesWebhookRequest | PostWebhooks__Teams__Team__DeletesWebhookRequest | PostWebhooks__Teams__Team__ProjectsWebhookRequest | PostWebhooks__Teams__Team__UpdatesWebhookRequest | PostWebhooks__Timeoff__BlockedPeriod__CreatesWebhookRequest | PostWebhooks__Timeoff__BlockedPeriod__DeletesWebhookRequest | PostWebhooks__Timeoff__BlockedPeriod__UpdatesWebhookRequest | PostWebhooks__Timeoff__LeaveType__CreatesWebhookRequest | PostWebhooks__Timeoff__LeaveType__UpdatesWebhookRequest | PostWebhooks__Timeoff__Leave__ApprovesWebhookRequest | PostWebhooks__Timeoff__Leave__CreatesWebhookRequest | PostWebhooks__Timeoff__Leave__DeletesWebhookRequest | PostWebhooks__Timeoff__Leave__RejectsWebhookRequest | PostWebhooks__Timeoff__Leave__UpdatesWebhookRequest | PostWebhooks__Timeoff__Policy__CreatesWebhookRequest | PostWebhooks__Timeoff__Policy__DeletesWebhookRequest | PostWebhooks__Timeoff__Policy__UpdatesWebhookRequest | PostWebhooks__Trainings__Category__CreatesWebhookRequest | PostWebhooks__Trainings__Category__DeletesWebhookRequest | PostWebhooks__Trainings__Category__UpdatesWebhookRequest | PostWebhooks__Trainings__Training__BulkDeletesWebhookRequest | PostWebhooks__Trainings__Training__BulkUpdateCatalogsWebhookRequest | PostWebhooks__Trainings__Training__CreatesWebhookRequest | PostWebhooks__Trainings__Training__DeletesWebhookRequest | PostWebhooks__Trainings__Training__UpdatesWebhookRequest | PostWebhooks__Trainings__Training__UpdateStatusesWebhookRequest | PostWebhooks__WorkSchedule__Schedule__CreatesWebhookRequest | PostWebhooks__WorkSchedule__Schedule__ToggleArchivesWebhookRequest | PostWebhooks__WorkSchedule__Schedule__UpdatesWebhookRequest;
|
|
4
|
+
export type Webhooks = PostWebhooks__ApiPublic__WebhookSubscription__CreatesWebhookRequest | PostWebhooks__ApiPublic__WebhookSubscription__DeletesWebhookRequest | PostWebhooks__ApiPublic__WebhookSubscription__UpdatesWebhookRequest | PostWebhooks__Ats__Application__AppliesWebhookRequest | PostWebhooks__Ats__Application__CreatesWebhookRequest | PostWebhooks__Ats__Application__CreateFromEmployeesWebhookRequest | PostWebhooks__Ats__Application__DeletesWebhookRequest | PostWebhooks__Ats__Application__UpdatesWebhookRequest | PostWebhooks__Ats__Candidate__CreatesWebhookRequest | PostWebhooks__Ats__Candidate__DeletesWebhookRequest | PostWebhooks__Ats__Candidate__UpdatesWebhookRequest | PostWebhooks__Ats__EvaluationForm__SaveAsTemplatesWebhookRequest | PostWebhooks__Ats__JobPosting__CreatesWebhookRequest | PostWebhooks__Ats__JobPosting__DeletesWebhookRequest | PostWebhooks__Ats__JobPosting__DuplicatesWebhookRequest | PostWebhooks__Ats__JobPosting__UpdatesWebhookRequest | PostWebhooks__Attendance__Shift__AutofillsWebhookRequest | PostWebhooks__Attendance__Shift__BreakEndsWebhookRequest | PostWebhooks__Attendance__Shift__BreakStartsWebhookRequest | PostWebhooks__Attendance__Shift__ClockInsWebhookRequest | PostWebhooks__Attendance__Shift__ClockOutsWebhookRequest | PostWebhooks__Attendance__Shift__CreatesWebhookRequest | PostWebhooks__Attendance__Shift__DeletesWebhookRequest | PostWebhooks__Attendance__Shift__ToggleClocksWebhookRequest | PostWebhooks__Attendance__Shift__UpdatesWebhookRequest | PostWebhooks__Banking__BankAccountNumber__UpsertsWebhookRequest | PostWebhooks__BookkeepersManagement__Incidence__UpdatesWebhookRequest | PostWebhooks__Companies__LegalEntity__CreatesWebhookRequest | PostWebhooks__Contracts__ContractVersionRequest__ApprovesWebhookRequest | PostWebhooks__Contracts__ContractVersionRequest__CreatePromoteRequestsWebhookRequest | PostWebhooks__Contracts__ContractVersionRequest__DeletesWebhookRequest | PostWebhooks__Contracts__ContractVersionRequest__RejectsWebhookRequest | PostWebhooks__Contracts__ContractVersion__CreatesWebhookRequest | PostWebhooks__Contracts__ContractVersion__DeletesWebhookRequest | PostWebhooks__Contracts__ContractVersion__UpdatesWebhookRequest | PostWebhooks__CustomResources__Schema__CreatesWebhookRequest | PostWebhooks__Documents__Document__BulkCreatesWebhookRequest | PostWebhooks__Documents__Document__CreatesWebhookRequest | PostWebhooks__Documents__Document__DeletesWebhookRequest | PostWebhooks__Documents__Document__MoveToTrashBinsWebhookRequest | PostWebhooks__Documents__Document__RestoreFromTrashBinsWebhookRequest | PostWebhooks__Documents__Document__UpdatesWebhookRequest | PostWebhooks__Documents__Folder__CreatesWebhookRequest | PostWebhooks__Documents__Folder__UpdatesWebhookRequest | PostWebhooks__Employees__Employee__CreateWithContractsWebhookRequest | PostWebhooks__Employees__Employee__InvitesWebhookRequest | PostWebhooks__Employees__Employee__SetRegularAccessStartDatesWebhookRequest | PostWebhooks__Employees__Employee__TerminatesWebhookRequest | PostWebhooks__Employees__Employee__UnterminatesWebhookRequest | PostWebhooks__Employees__Employee__UpdatesWebhookRequest | PostWebhooks__Expenses__Expensable__BulkSetToPaidsWebhookRequest | PostWebhooks__Expenses__Expensable__UpdateReimbursableAmountsWebhookRequest | PostWebhooks__Finance__CostCenter__CreatesWebhookRequest | PostWebhooks__Finance__CostCenter__DeletesWebhookRequest | PostWebhooks__Finance__CostCenter__EditsWebhookRequest | PostWebhooks__Locations__Location__CreatesWebhookRequest | PostWebhooks__Locations__Location__DeletesWebhookRequest | PostWebhooks__Locations__Location__UpdatesWebhookRequest | PostWebhooks__Payroll__PolicyPeriod__ChangeStatusesWebhookRequest | PostWebhooks__Payroll__Supplement__CreatesWebhookRequest | PostWebhooks__Payroll__Supplement__DeletesWebhookRequest | PostWebhooks__Payroll__Supplement__UpdatesWebhookRequest | PostWebhooks__PayrollIntegrationsBase__Code__CreatesWebhookRequest | PostWebhooks__PayrollIntegrationsBase__Code__DeletesWebhookRequest | PostWebhooks__PayrollIntegrationsBase__Code__UpdatesWebhookRequest | PostWebhooks__Performance__ReviewProcess__CreatesWebhookRequest | PostWebhooks__Performance__ReviewProcess__CreateFromTemplatesWebhookRequest | PostWebhooks__Performance__ReviewProcess__DeletesWebhookRequest | PostWebhooks__Performance__ReviewProcess__DuplicatesWebhookRequest | PostWebhooks__Performance__ReviewProcess__RemindInBulksWebhookRequest | PostWebhooks__Performance__ReviewProcess__RemoveSchedulesWebhookRequest | PostWebhooks__Performance__ReviewProcess__ReopensWebhookRequest | PostWebhooks__Performance__ReviewProcess__SchedulesWebhookRequest | PostWebhooks__Performance__ReviewProcess__StartsWebhookRequest | PostWebhooks__Performance__ReviewProcess__StopsWebhookRequest | PostWebhooks__Performance__ReviewProcess__ToggleArchivesWebhookRequest | PostWebhooks__Performance__ReviewProcess__UpdateAgreementsConfigurationsWebhookRequest | PostWebhooks__Performance__ReviewProcess__UpdateBasicInfosWebhookRequest | PostWebhooks__Performance__ReviewProcess__UpdateCompetenciesAssessmentsConfigurationsWebhookRequest | PostWebhooks__Performance__ReviewProcess__UpdateDeadlinesWebhookRequest | PostWebhooks__Performance__ReviewProcess__UpdateEmployeeScoreConfigurationsWebhookRequest | PostWebhooks__Performance__ReviewProcess__UpdateReviewerStrategiesWebhookRequest | PostWebhooks__Performance__ReviewProcess__UpdateSchedulesWebhookRequest | PostWebhooks__Performance__ReviewProcess__UpdateTargetStrategiesWebhookRequest | PostWebhooks__ProjectManagement__TimeRecord__CreatesWebhookRequest | PostWebhooks__ProjectManagement__TimeRecord__DeletesWebhookRequest | PostWebhooks__ProjectManagement__TimeRecord__UpdateImputedMinutesWebhookRequest | PostWebhooks__ProjectManagement__TimeRecord__UpdateObservationsWebhookRequest | PostWebhooks__ProjectManagement__TimeRecord__UpdateProjectWorkersWebhookRequest | PostWebhooks__ShiftManagement__Shift__BulkCreatesWebhookRequest | PostWebhooks__ShiftManagement__Shift__BulkDeletesWebhookRequest | PostWebhooks__ShiftManagement__Shift__CreatesWebhookRequest | PostWebhooks__ShiftManagement__Shift__DeletesWebhookRequest | PostWebhooks__Tasks__Task__BulkCreatesWebhookRequest | PostWebhooks__Tasks__Task__BulkDeletesWebhookRequest | PostWebhooks__Tasks__Task__BulkUpdatesWebhookRequest | PostWebhooks__Tasks__Task__CopiesWebhookRequest | PostWebhooks__Tasks__Task__CreatesWebhookRequest | PostWebhooks__Tasks__Task__CreateCommentsWebhookRequest | PostWebhooks__Tasks__Task__DeletesWebhookRequest | PostWebhooks__Tasks__Task__UpdatesWebhookRequest | PostWebhooks__Teams__Membership__BulkUpsertsWebhookRequest | PostWebhooks__Teams__Membership__CreatesWebhookRequest | PostWebhooks__Teams__Membership__DeletesWebhookRequest | PostWebhooks__Teams__Membership__UpdatesWebhookRequest | PostWebhooks__Teams__Team__CreatesWebhookRequest | PostWebhooks__Teams__Team__DeletesWebhookRequest | PostWebhooks__Teams__Team__ProjectsWebhookRequest | PostWebhooks__Teams__Team__UpdatesWebhookRequest | PostWebhooks__Timeoff__BlockedPeriod__CreatesWebhookRequest | PostWebhooks__Timeoff__BlockedPeriod__DeletesWebhookRequest | PostWebhooks__Timeoff__BlockedPeriod__UpdatesWebhookRequest | PostWebhooks__Timeoff__LeaveType__CreatesWebhookRequest | PostWebhooks__Timeoff__LeaveType__UpdatesWebhookRequest | PostWebhooks__Timeoff__Leave__ApprovesWebhookRequest | PostWebhooks__Timeoff__Leave__BulkDeletesWebhookRequest | PostWebhooks__Timeoff__Leave__CreatesWebhookRequest | PostWebhooks__Timeoff__Leave__DeletesWebhookRequest | PostWebhooks__Timeoff__Leave__RejectsWebhookRequest | PostWebhooks__Timeoff__Leave__UpdatesWebhookRequest | PostWebhooks__Timeoff__Policy__CreatesWebhookRequest | PostWebhooks__Timeoff__Policy__DeletesWebhookRequest | PostWebhooks__Timeoff__Policy__UpdatesWebhookRequest | PostWebhooks__Trainings__Category__CreatesWebhookRequest | PostWebhooks__Trainings__Category__DeletesWebhookRequest | PostWebhooks__Trainings__Category__UpdatesWebhookRequest | PostWebhooks__Trainings__Training__BulkDeletesWebhookRequest | PostWebhooks__Trainings__Training__BulkUpdateCatalogsWebhookRequest | PostWebhooks__Trainings__Training__CreatesWebhookRequest | PostWebhooks__Trainings__Training__DeletesWebhookRequest | PostWebhooks__Trainings__Training__UpdatesWebhookRequest | PostWebhooks__Trainings__Training__UpdateStatusesWebhookRequest | PostWebhooks__WorkSchedule__Schedule__CreatesWebhookRequest | PostWebhooks__WorkSchedule__Schedule__ToggleArchivesWebhookRequest | PostWebhooks__WorkSchedule__Schedule__UpdatesWebhookRequest;
|
|
5
5
|
export type ApiPublicCredential = {
|
|
6
6
|
/**
|
|
7
7
|
* company id for all kind of accesses
|
|
@@ -1624,13 +1624,13 @@ export type CompensationsPayrollResult = {
|
|
|
1624
1624
|
*/
|
|
1625
1625
|
amount_is_overwritten: boolean;
|
|
1626
1626
|
/**
|
|
1627
|
-
* Source type discriminator (
|
|
1627
|
+
* Source type discriminator (null for rows imported through the bulk_create endpoint)
|
|
1628
1628
|
*/
|
|
1629
|
-
source_type
|
|
1629
|
+
source_type?: 'compensations_compensationpolicy' | 'timesettings_customtimerangecategory' | 'expenses_expensable' | 'expenses_expense' | 'expenses_mileage' | 'benefits_compensation' | 'salary_advance_request' | 'incentives_compensationplanrequest' | 'attendance_review';
|
|
1630
1630
|
/**
|
|
1631
|
-
* Source id (
|
|
1631
|
+
* Source id, paired with source_type (null for rows imported through the bulk_create endpoint)
|
|
1632
1632
|
*/
|
|
1633
|
-
source_id
|
|
1633
|
+
source_id?: string;
|
|
1634
1634
|
/**
|
|
1635
1635
|
* Timestamp when the payroll_result row was created
|
|
1636
1636
|
*/
|
|
@@ -2368,6 +2368,238 @@ export type ContractsGermanContractType = {
|
|
|
2368
2368
|
*/
|
|
2369
2369
|
name: string;
|
|
2370
2370
|
};
|
|
2371
|
+
export type ContractsContractFlow = {
|
|
2372
|
+
/**
|
|
2373
|
+
* identifier of the contract version created by the change. Refers to the /contracts/contract_versions endpoint.
|
|
2374
|
+
*/
|
|
2375
|
+
contract_version_id: string;
|
|
2376
|
+
/**
|
|
2377
|
+
* identifier of the contract opened by the change, under the target legal entity. Refers to the /contracts/contracts endpoint.
|
|
2378
|
+
*/
|
|
2379
|
+
contracts_contract_id?: string;
|
|
2380
|
+
/**
|
|
2381
|
+
* employee identifier, refers to /employees/employees endpoint.
|
|
2382
|
+
*/
|
|
2383
|
+
employee_id: string;
|
|
2384
|
+
/**
|
|
2385
|
+
* the day the new contract version takes effect. The employee moves to the target legal entity on this date.
|
|
2386
|
+
*/
|
|
2387
|
+
effective_on: string;
|
|
2388
|
+
/**
|
|
2389
|
+
* ISO country code the new contract is governed by, taken from the target legal entity.
|
|
2390
|
+
*/
|
|
2391
|
+
country?: string;
|
|
2392
|
+
/**
|
|
2393
|
+
* job title of the employee.
|
|
2394
|
+
*/
|
|
2395
|
+
job_title?: string;
|
|
2396
|
+
/**
|
|
2397
|
+
* job catalog level identifier, refers to /job_catalog/levels endpoint.
|
|
2398
|
+
*/
|
|
2399
|
+
job_catalog_level_id?: string;
|
|
2400
|
+
/**
|
|
2401
|
+
* the uuid node 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.
|
|
2402
|
+
*/
|
|
2403
|
+
job_catalog_tree_node_uuid?: string;
|
|
2404
|
+
/**
|
|
2405
|
+
* the day the new contract starts. Defaults to effective_on.
|
|
2406
|
+
*/
|
|
2407
|
+
starts_on?: string;
|
|
2408
|
+
/**
|
|
2409
|
+
* the day the employee is terminated. It has nothing to do with trial period, these are concepts totally unrelated.
|
|
2410
|
+
*/
|
|
2411
|
+
ends_on?: string;
|
|
2412
|
+
/**
|
|
2413
|
+
* boolean that indicates if the employee asociated to this contract belongs to a payroll policy.
|
|
2414
|
+
*/
|
|
2415
|
+
has_payroll: boolean;
|
|
2416
|
+
/**
|
|
2417
|
+
* a flag that indicates if the contract version has ever had a trial period.
|
|
2418
|
+
*/
|
|
2419
|
+
has_trial_period?: boolean;
|
|
2420
|
+
/**
|
|
2421
|
+
* when the trial period ends. If there is no date, it means that the employee has never been in trial. This date is not related with the end date of a contract.
|
|
2422
|
+
*/
|
|
2423
|
+
trial_period_ends_on?: string;
|
|
2424
|
+
/**
|
|
2425
|
+
* the amount of money the employee earns in cents.
|
|
2426
|
+
*/
|
|
2427
|
+
salary_amount?: number;
|
|
2428
|
+
/**
|
|
2429
|
+
* the frequency of the salary payment.
|
|
2430
|
+
*/
|
|
2431
|
+
salary_frequency?: string;
|
|
2432
|
+
/**
|
|
2433
|
+
* the days of the week the employee works.
|
|
2434
|
+
*/
|
|
2435
|
+
working_week_days?: string;
|
|
2436
|
+
/**
|
|
2437
|
+
* the amount of hours the employee works.
|
|
2438
|
+
*/
|
|
2439
|
+
working_hours?: number;
|
|
2440
|
+
/**
|
|
2441
|
+
* the frequency of the working hours.
|
|
2442
|
+
*/
|
|
2443
|
+
working_hours_frequency?: string;
|
|
2444
|
+
/**
|
|
2445
|
+
* the maximum amount of hours the employee can work in a year.
|
|
2446
|
+
*/
|
|
2447
|
+
max_legal_yearly_hours?: number;
|
|
2448
|
+
/**
|
|
2449
|
+
* the maximum amount of hours the employee can work in a week.
|
|
2450
|
+
*/
|
|
2451
|
+
maximum_weekly_hours?: number;
|
|
2452
|
+
/**
|
|
2453
|
+
* Defines whether a bank holiday should be considered as a workable or non-workable day.
|
|
2454
|
+
*/
|
|
2455
|
+
bank_holiday_treatment: 'workable' | 'non_workable';
|
|
2456
|
+
/**
|
|
2457
|
+
* Working time percentage in cents (e.g., when an employee is working part-time, the percentage of full-time hours they are working).
|
|
2458
|
+
*/
|
|
2459
|
+
working_time_percentage_in_cents?: number;
|
|
2460
|
+
/**
|
|
2461
|
+
* Allows companies to define how annual working hours are spread across the year to ensure compliance with legal limits.
|
|
2462
|
+
*/
|
|
2463
|
+
annual_working_time_distribution?: 'limit_workdays' | 'limit_daily_hours';
|
|
2464
|
+
/**
|
|
2465
|
+
* the minimum amount of minutes the employee must rest between working periods.
|
|
2466
|
+
*/
|
|
2467
|
+
min_rest_minutes_between_days?: number;
|
|
2468
|
+
/**
|
|
2469
|
+
* the maximum amount of minutes the employee can work in a day.
|
|
2470
|
+
*/
|
|
2471
|
+
max_work_minutes_per_day?: number;
|
|
2472
|
+
/**
|
|
2473
|
+
* the maximum amount of days the employee can work in a row.
|
|
2474
|
+
*/
|
|
2475
|
+
max_work_days_in_row?: number;
|
|
2476
|
+
/**
|
|
2477
|
+
* the minimum amount of hours the employee must rest in a row.
|
|
2478
|
+
*/
|
|
2479
|
+
min_rest_hours_in_row?: number;
|
|
2480
|
+
/**
|
|
2481
|
+
* the date the contract version was created.
|
|
2482
|
+
*/
|
|
2483
|
+
created_at: string;
|
|
2484
|
+
/**
|
|
2485
|
+
* the date of the last contract version update.
|
|
2486
|
+
*/
|
|
2487
|
+
updated_at: string;
|
|
2488
|
+
/**
|
|
2489
|
+
* Country-specific contract data, resolved against the target legal entity's template rather than the employee's current one.
|
|
2490
|
+
*/
|
|
2491
|
+
version_data?: {
|
|
2492
|
+
country_data?: {
|
|
2493
|
+
/**
|
|
2494
|
+
* Country code (e.g. es, fr, de, pt).
|
|
2495
|
+
*/
|
|
2496
|
+
country: string;
|
|
2497
|
+
fields: Array<{
|
|
2498
|
+
name: string;
|
|
2499
|
+
field_name: string;
|
|
2500
|
+
value_label?: string;
|
|
2501
|
+
value_id: string;
|
|
2502
|
+
}>;
|
|
2503
|
+
/**
|
|
2504
|
+
* Identifiers of the materialized_template_fragment records that produced this country data. After a legal entity change they are the target legal entity's fragments.
|
|
2505
|
+
*
|
|
2506
|
+
*/
|
|
2507
|
+
template_fragments: {
|
|
2508
|
+
company_fragment_id?: string;
|
|
2509
|
+
country_fragment_id?: string;
|
|
2510
|
+
legal_entity_fragment_id?: string;
|
|
2511
|
+
};
|
|
2512
|
+
};
|
|
2513
|
+
};
|
|
2514
|
+
/**
|
|
2515
|
+
* flag that indicates if the contract has teleworking.
|
|
2516
|
+
*/
|
|
2517
|
+
es_has_teleworking_contract?: boolean;
|
|
2518
|
+
/**
|
|
2519
|
+
* the group of cotization of the employee.
|
|
2520
|
+
*/
|
|
2521
|
+
contracts_es_tariff_group_id?: string;
|
|
2522
|
+
/**
|
|
2523
|
+
* the group of cotization of the employee.
|
|
2524
|
+
*/
|
|
2525
|
+
es_cotization_group?: number;
|
|
2526
|
+
/**
|
|
2527
|
+
* observations of the contract.
|
|
2528
|
+
*/
|
|
2529
|
+
es_contract_observations?: string;
|
|
2530
|
+
/**
|
|
2531
|
+
* the job description of the employee.
|
|
2532
|
+
*/
|
|
2533
|
+
es_job_description?: string;
|
|
2534
|
+
/**
|
|
2535
|
+
* contract type identifier.
|
|
2536
|
+
*/
|
|
2537
|
+
es_contract_type_id?: string;
|
|
2538
|
+
/**
|
|
2539
|
+
* working day type identifier.
|
|
2540
|
+
*/
|
|
2541
|
+
es_working_day_type_id?: string;
|
|
2542
|
+
/**
|
|
2543
|
+
* education level identifier.
|
|
2544
|
+
*/
|
|
2545
|
+
es_education_level_id?: string;
|
|
2546
|
+
/**
|
|
2547
|
+
* professional category identifier.
|
|
2548
|
+
*/
|
|
2549
|
+
es_professional_category_id?: string;
|
|
2550
|
+
/**
|
|
2551
|
+
* employee type.
|
|
2552
|
+
*/
|
|
2553
|
+
fr_employee_type?: string;
|
|
2554
|
+
/**
|
|
2555
|
+
* flag that indicates if the employee is allowed to work within the framework of a fixed number of days.
|
|
2556
|
+
*/
|
|
2557
|
+
fr_forfait_jours: boolean;
|
|
2558
|
+
/**
|
|
2559
|
+
* the number of days the employee is allowed to work.
|
|
2560
|
+
*/
|
|
2561
|
+
fr_jours_par_an?: number;
|
|
2562
|
+
/**
|
|
2563
|
+
* coefficient for france contracts.
|
|
2564
|
+
*/
|
|
2565
|
+
fr_coefficient?: string;
|
|
2566
|
+
/**
|
|
2567
|
+
* contract type identifier.
|
|
2568
|
+
*/
|
|
2569
|
+
fr_contract_type_id?: string;
|
|
2570
|
+
/**
|
|
2571
|
+
* level identifier.
|
|
2572
|
+
*/
|
|
2573
|
+
fr_level_id?: string;
|
|
2574
|
+
/**
|
|
2575
|
+
* step identifier.
|
|
2576
|
+
*/
|
|
2577
|
+
fr_step_id?: string;
|
|
2578
|
+
/**
|
|
2579
|
+
* mutual identifier.
|
|
2580
|
+
*/
|
|
2581
|
+
fr_mutual_id?: string;
|
|
2582
|
+
/**
|
|
2583
|
+
* professional category identifier.
|
|
2584
|
+
*/
|
|
2585
|
+
fr_professional_category_id?: string;
|
|
2586
|
+
/**
|
|
2587
|
+
* work type identifier.
|
|
2588
|
+
*/
|
|
2589
|
+
fr_work_type_id?: string;
|
|
2590
|
+
/**
|
|
2591
|
+
* contract type identifier.
|
|
2592
|
+
*/
|
|
2593
|
+
de_contract_type_id?: string;
|
|
2594
|
+
/**
|
|
2595
|
+
* Identifier for the German base salary type. References a payroll concept available via the /payroll/concepts endpoint.
|
|
2596
|
+
*/
|
|
2597
|
+
de_base_salary_type_id?: string;
|
|
2598
|
+
/**
|
|
2599
|
+
* contract type identifier.
|
|
2600
|
+
*/
|
|
2601
|
+
pt_contract_type_id?: string;
|
|
2602
|
+
};
|
|
2371
2603
|
export type ContractsMaterializedTemplate = {
|
|
2372
2604
|
/**
|
|
2373
2605
|
* Synthetic identifier for this materialized template, composed as {company_id}-{template_type}-{legal_entity_id}-{country_code}. Used as a stable cursor reference for pagination.
|
|
@@ -2862,7 +3094,7 @@ export type EmployeesEmployee = {
|
|
|
2862
3094
|
*/
|
|
2863
3095
|
identifier_type?: string;
|
|
2864
3096
|
/**
|
|
2865
|
-
*
|
|
3097
|
+
* company communications email of the employee (falls back to the login email). Not the personal email.
|
|
2866
3098
|
*/
|
|
2867
3099
|
email?: string;
|
|
2868
3100
|
/**
|
|
@@ -2994,7 +3226,7 @@ export type EmployeesEmployee = {
|
|
|
2994
3226
|
*/
|
|
2995
3227
|
contact_number?: string;
|
|
2996
3228
|
/**
|
|
2997
|
-
* personal email of the employee.
|
|
3229
|
+
* personal (non-corporate) email of the employee, shown as "Personal email" in the profile.
|
|
2998
3230
|
*/
|
|
2999
3231
|
personal_email?: string;
|
|
3000
3232
|
/**
|
|
@@ -4897,7 +5129,7 @@ export type IntegrationsSyncableItem = {
|
|
|
4897
5129
|
/**
|
|
4898
5130
|
* Type of the syncable item
|
|
4899
5131
|
*/
|
|
4900
|
-
syncable_type: 'compensations/compensation' | 'expenses/expense' | 'employee_updates/leave' | 'employee_updates/new_hire' | 'employee_updates/termination' | 'employee_updates/worked_time' | 'finance/vendor';
|
|
5132
|
+
syncable_type: 'compensations/compensation' | 'expenses/expense' | 'employee_updates/contract_change' | 'employee_updates/leave' | 'employee_updates/new_hire' | 'employee_updates/personal_change_id' | 'employee_updates/personal_change_name' | 'employee_updates/personal_change_irpf' | 'employee_updates/personal_change_bank' | 'employee_updates/personal_change_gender' | 'employee_updates/personal_change_health_insurance' | 'employee_updates/personal_change_address' | 'employee_updates/personal_change_residence' | 'employee_updates/personal_change_workplace' | 'employee_updates/personal_change_nationality' | 'employee_updates/personal_change_email' | 'employee_updates/personal_change_phone_number' | 'employee_updates/personal_change_permits_and_certificates' | 'employee_updates/personal_change_taxes_and_deductions' | 'employee_updates/personal_change_work_activity' | 'employee_updates/personal_change_birth_name' | 'employee_updates/personal_change_academic_title' | 'employee_updates/personal_change_country_of_birth' | 'employee_updates/personal_change_place_of_birth' | 'employee_updates/termination' | 'employee_updates/worked_time' | 'finance/vendor';
|
|
4901
5133
|
};
|
|
4902
5134
|
export type IntegrationsSyncableState = {
|
|
4903
5135
|
/**
|
|
@@ -4909,7 +5141,7 @@ export type IntegrationsSyncableState = {
|
|
|
4909
5141
|
*/
|
|
4910
5142
|
syncable_id?: string;
|
|
4911
5143
|
/**
|
|
4912
|
-
* The resource
|
|
5144
|
+
* The resource of the linked record, in "namespace/resource" form. Combined with syncable_id, uniquely identifies the Factorial record this state is linked to.
|
|
4913
5145
|
*/
|
|
4914
5146
|
resource_syncable_type: string;
|
|
4915
5147
|
/**
|
|
@@ -4939,6 +5171,10 @@ export type IntegrationsSyncableState = {
|
|
|
4939
5171
|
* Timestamp when the linked Factorial record was deleted, if any
|
|
4940
5172
|
*/
|
|
4941
5173
|
syncable_deleted_at?: string;
|
|
5174
|
+
/**
|
|
5175
|
+
* The type of synchronization this state represents, in "namespace/resource" form. Describes what is being synced independently of the resource_syncable_type that carries the id.
|
|
5176
|
+
*/
|
|
5177
|
+
sync_type: 'compensations/compensation' | 'expenses/expense' | 'employee_updates/contract_change' | 'employee_updates/leave' | 'employee_updates/new_hire' | 'employee_updates/personal_change_id' | 'employee_updates/personal_change_name' | 'employee_updates/personal_change_irpf' | 'employee_updates/personal_change_bank' | 'employee_updates/personal_change_gender' | 'employee_updates/personal_change_health_insurance' | 'employee_updates/personal_change_address' | 'employee_updates/personal_change_residence' | 'employee_updates/personal_change_workplace' | 'employee_updates/personal_change_nationality' | 'employee_updates/personal_change_email' | 'employee_updates/personal_change_phone_number' | 'employee_updates/personal_change_permits_and_certificates' | 'employee_updates/personal_change_taxes_and_deductions' | 'employee_updates/personal_change_work_activity' | 'employee_updates/personal_change_birth_name' | 'employee_updates/personal_change_academic_title' | 'employee_updates/personal_change_country_of_birth' | 'employee_updates/personal_change_place_of_birth' | 'employee_updates/termination' | 'employee_updates/worked_time' | 'finance/vendor';
|
|
4942
5178
|
};
|
|
4943
5179
|
export type IntegrationsSyncableSyncRun = {
|
|
4944
5180
|
/**
|
|
@@ -5550,6 +5786,18 @@ export type PayrollEmployeesGermanEmployeeDatum = {
|
|
|
5550
5786
|
* Identifier of the employee
|
|
5551
5787
|
*/
|
|
5552
5788
|
employee_id: string;
|
|
5789
|
+
/**
|
|
5790
|
+
* Birth name of the employee, if different from the current surname
|
|
5791
|
+
*/
|
|
5792
|
+
birth_name?: string;
|
|
5793
|
+
/**
|
|
5794
|
+
* Country of birth of the employee, as a DATEV nationality key
|
|
5795
|
+
*/
|
|
5796
|
+
country_of_birth?: string;
|
|
5797
|
+
/**
|
|
5798
|
+
* Place of birth (city) of the employee
|
|
5799
|
+
*/
|
|
5800
|
+
place_of_birth?: string;
|
|
5553
5801
|
/**
|
|
5554
5802
|
* Expiration date of the employee's work permit
|
|
5555
5803
|
*/
|
|
@@ -12638,6 +12886,46 @@ export type GetApi20261001ResourcesCompensationsPayrollResultsByIdResponses = {
|
|
|
12638
12886
|
200: CompensationsPayrollResult;
|
|
12639
12887
|
};
|
|
12640
12888
|
export type GetApi20261001ResourcesCompensationsPayrollResultsByIdResponse = GetApi20261001ResourcesCompensationsPayrollResultsByIdResponses[keyof GetApi20261001ResourcesCompensationsPayrollResultsByIdResponses];
|
|
12889
|
+
export type PostApi20261001ResourcesCompensationsPayrollResultsBulkCreateData = {
|
|
12890
|
+
body?: {
|
|
12891
|
+
/**
|
|
12892
|
+
* Parent payroll run id, refers to compensations/payroll_runs endpoint.
|
|
12893
|
+
*/
|
|
12894
|
+
payroll_run_id: string;
|
|
12895
|
+
/**
|
|
12896
|
+
* One entry per employee (maximum 1000 amounts in total per request)
|
|
12897
|
+
*/
|
|
12898
|
+
results: Array<{
|
|
12899
|
+
/**
|
|
12900
|
+
* Employee id, refers to employees/employees endpoint.
|
|
12901
|
+
*/
|
|
12902
|
+
employee_id: string;
|
|
12903
|
+
/**
|
|
12904
|
+
* One entry per payroll concept
|
|
12905
|
+
*/
|
|
12906
|
+
items: Array<{
|
|
12907
|
+
/**
|
|
12908
|
+
* Payroll concept id, refers to compensations/concepts endpoint.
|
|
12909
|
+
*/
|
|
12910
|
+
payroll_concept_id: string;
|
|
12911
|
+
/**
|
|
12912
|
+
* Signed amount in the concept's minor unit (cents for money concepts)
|
|
12913
|
+
*/
|
|
12914
|
+
amount: number;
|
|
12915
|
+
}>;
|
|
12916
|
+
}>;
|
|
12917
|
+
};
|
|
12918
|
+
path?: never;
|
|
12919
|
+
query?: never;
|
|
12920
|
+
url: '/api/2026-10-01/resources/compensations/payroll_results/bulk_create';
|
|
12921
|
+
};
|
|
12922
|
+
export type PostApi20261001ResourcesCompensationsPayrollResultsBulkCreateResponses = {
|
|
12923
|
+
/**
|
|
12924
|
+
* OK
|
|
12925
|
+
*/
|
|
12926
|
+
200: Array<CompensationsPayrollResult>;
|
|
12927
|
+
};
|
|
12928
|
+
export type PostApi20261001ResourcesCompensationsPayrollResultsBulkCreateResponse = PostApi20261001ResourcesCompensationsPayrollResultsBulkCreateResponses[keyof PostApi20261001ResourcesCompensationsPayrollResultsBulkCreateResponses];
|
|
12641
12929
|
export type GetApi20261001ResourcesCompensationsPayrollRunsData = {
|
|
12642
12930
|
body?: never;
|
|
12643
12931
|
path?: never;
|
|
@@ -13513,6 +13801,125 @@ export type GetApi20261001ResourcesContractsGermanContractTypesByIdResponses = {
|
|
|
13513
13801
|
200: ContractsGermanContractType;
|
|
13514
13802
|
};
|
|
13515
13803
|
export type GetApi20261001ResourcesContractsGermanContractTypesByIdResponse = GetApi20261001ResourcesContractsGermanContractTypesByIdResponses[keyof GetApi20261001ResourcesContractsGermanContractTypesByIdResponses];
|
|
13804
|
+
export type PostApi20261001ResourcesContractsLegalEntityChangesData = {
|
|
13805
|
+
body?: {
|
|
13806
|
+
/**
|
|
13807
|
+
* The legal entity the employee is moving to. A new contract and contract version are created under this legal entity.
|
|
13808
|
+
*/
|
|
13809
|
+
target_legal_entity_id: string;
|
|
13810
|
+
/**
|
|
13811
|
+
* The terms of the contract version that opens the new contract. Same fields as the contract version create endpoint.
|
|
13812
|
+
*/
|
|
13813
|
+
contract_details: {
|
|
13814
|
+
/**
|
|
13815
|
+
* the day the new contract version takes effect. The employee moves to the target legal entity on this date.
|
|
13816
|
+
*/
|
|
13817
|
+
effective_on: string;
|
|
13818
|
+
/**
|
|
13819
|
+
* employee identifier, refers to /employees/employees endpoint.
|
|
13820
|
+
*/
|
|
13821
|
+
employee_id: string;
|
|
13822
|
+
/**
|
|
13823
|
+
* the day the employee is terminated.
|
|
13824
|
+
*/
|
|
13825
|
+
ends_on?: string;
|
|
13826
|
+
/**
|
|
13827
|
+
* a flag that indicates if the employee has a trial period.
|
|
13828
|
+
*/
|
|
13829
|
+
has_trial_period?: boolean;
|
|
13830
|
+
/**
|
|
13831
|
+
* the uuid node in the job catalog tree. For now it only supports level nodes. Refer to job_catalog/tree_nodes endpoint.
|
|
13832
|
+
*/
|
|
13833
|
+
job_catalog_tree_node_uuid?: string;
|
|
13834
|
+
/**
|
|
13835
|
+
* job title of the employee.
|
|
13836
|
+
*/
|
|
13837
|
+
job_title?: string;
|
|
13838
|
+
/**
|
|
13839
|
+
* the amount of money the employee earns in cents. When adding a salary to a contract that previously had none, both salary_amount and salary_frequency must be provided together.
|
|
13840
|
+
*/
|
|
13841
|
+
salary_amount?: number;
|
|
13842
|
+
/**
|
|
13843
|
+
* the frequency of the salary payment. When adding a salary to a contract that previously had none, both salary_amount and salary_frequency must be provided together.
|
|
13844
|
+
*/
|
|
13845
|
+
salary_frequency?: string;
|
|
13846
|
+
/**
|
|
13847
|
+
* when the trial period ends.
|
|
13848
|
+
*/
|
|
13849
|
+
trial_period_ends_on?: string;
|
|
13850
|
+
/**
|
|
13851
|
+
* the amount of hours the employee works.
|
|
13852
|
+
*/
|
|
13853
|
+
working_hours?: number;
|
|
13854
|
+
/**
|
|
13855
|
+
* the frequency of the working hours.
|
|
13856
|
+
*/
|
|
13857
|
+
working_hours_frequency?: string;
|
|
13858
|
+
/**
|
|
13859
|
+
* the days of the week the employee works.
|
|
13860
|
+
*/
|
|
13861
|
+
working_week_days?: string;
|
|
13862
|
+
/**
|
|
13863
|
+
* the maximum amount of hours the employee can work in a year.
|
|
13864
|
+
*/
|
|
13865
|
+
max_legal_yearly_hours?: number;
|
|
13866
|
+
/**
|
|
13867
|
+
* the maximum amount of hours the employee can work in a week.
|
|
13868
|
+
*/
|
|
13869
|
+
maximum_weekly_hours?: number;
|
|
13870
|
+
/**
|
|
13871
|
+
* Defines whether a bank holiday should be considered as a workable or non-workable day.
|
|
13872
|
+
*/
|
|
13873
|
+
bank_holiday_treatment?: 'workable' | 'non_workable';
|
|
13874
|
+
/**
|
|
13875
|
+
* Working time percentage in cents (e.g., when an employee is working part-time, the percentage of full-time hours they are working).
|
|
13876
|
+
*/
|
|
13877
|
+
working_time_percentage_in_cents?: number;
|
|
13878
|
+
/**
|
|
13879
|
+
* Allows companies to define how annual working hours are spread across the year to ensure compliance with legal limits.
|
|
13880
|
+
*/
|
|
13881
|
+
annual_working_time_distribution?: 'limit_workdays' | 'limit_daily_hours';
|
|
13882
|
+
/**
|
|
13883
|
+
* Identifier for the German base salary type. References a payroll concept available via the /payroll/concepts endpoint.
|
|
13884
|
+
*/
|
|
13885
|
+
de_base_salary_type_id?: string;
|
|
13886
|
+
/**
|
|
13887
|
+
* List of country-specific field inputs (e.g. contract_type) for the new version. They are validated against the TARGET legal entity's template: discover valid field_name/value_id combinations via GET /resources/contracts/materialized_templates.
|
|
13888
|
+
*
|
|
13889
|
+
*/
|
|
13890
|
+
country_data_inputs?: Array<{
|
|
13891
|
+
/**
|
|
13892
|
+
* The templated field to set (e.g. contract_type).
|
|
13893
|
+
*/
|
|
13894
|
+
field_name: string;
|
|
13895
|
+
/**
|
|
13896
|
+
* The id of the option to assign to the field.
|
|
13897
|
+
*/
|
|
13898
|
+
value_id: string;
|
|
13899
|
+
/**
|
|
13900
|
+
* Only used when the option was sourced from an installed payroll integration (e.g. A3innuva). Leave unset for regular field inputs.
|
|
13901
|
+
*
|
|
13902
|
+
*/
|
|
13903
|
+
integration_source?: string;
|
|
13904
|
+
/**
|
|
13905
|
+
* Only used together with integration_source, to label an option that does not yet exist locally. Leave unset for regular field inputs.
|
|
13906
|
+
*
|
|
13907
|
+
*/
|
|
13908
|
+
label?: string;
|
|
13909
|
+
}>;
|
|
13910
|
+
};
|
|
13911
|
+
};
|
|
13912
|
+
path?: never;
|
|
13913
|
+
query?: never;
|
|
13914
|
+
url: '/api/2026-10-01/resources/contracts/legal_entity_changes';
|
|
13915
|
+
};
|
|
13916
|
+
export type PostApi20261001ResourcesContractsLegalEntityChangesResponses = {
|
|
13917
|
+
/**
|
|
13918
|
+
* CREATED
|
|
13919
|
+
*/
|
|
13920
|
+
201: ContractsContractFlow;
|
|
13921
|
+
};
|
|
13922
|
+
export type PostApi20261001ResourcesContractsLegalEntityChangesResponse = PostApi20261001ResourcesContractsLegalEntityChangesResponses[keyof PostApi20261001ResourcesContractsLegalEntityChangesResponses];
|
|
13516
13923
|
export type GetApi20261001ResourcesContractsMaterializedTemplatesData = {
|
|
13517
13924
|
body?: never;
|
|
13518
13925
|
path?: never;
|
|
@@ -15137,7 +15544,7 @@ export type PostApi20261001ResourcesEmployeesEmployeesCreateWithContractData = {
|
|
|
15137
15544
|
*/
|
|
15138
15545
|
last_name: string;
|
|
15139
15546
|
/**
|
|
15140
|
-
*
|
|
15547
|
+
* login email of the new employee. Not the personal email.
|
|
15141
15548
|
*/
|
|
15142
15549
|
email: string;
|
|
15143
15550
|
/**
|
|
@@ -17671,11 +18078,11 @@ export type GetApi20261001ResourcesIntegrationsSyncableStatesData = {
|
|
|
17671
18078
|
*/
|
|
17672
18079
|
'ids[]'?: Array<string>;
|
|
17673
18080
|
/**
|
|
17674
|
-
* Filter syncable states by the identifiers of the linked API resource, identified by resource_syncable_type field
|
|
18081
|
+
* Filter syncable states by the identifiers of the linked API resource, identified by the resource_syncable_type field
|
|
17675
18082
|
*/
|
|
17676
18083
|
'syncable_ids[]'?: Array<string>;
|
|
17677
18084
|
/**
|
|
17678
|
-
* The resource
|
|
18085
|
+
* The resource of the linked records, in "namespace/resource" form. Required when filtering by syncable_ids.
|
|
17679
18086
|
*/
|
|
17680
18087
|
resource_syncable_type?: string;
|
|
17681
18088
|
/**
|
|
@@ -17806,7 +18213,7 @@ export type PostApi20261001ResourcesIntegrationsSyncableSyncRunsBulkUpsertData =
|
|
|
17806
18213
|
/**
|
|
17807
18214
|
* The Factorial resource type this item maps to. Same values returned by GET /syncable_items.
|
|
17808
18215
|
*/
|
|
17809
|
-
syncable_type: 'compensations/compensation' | 'expenses/expense' | 'employee_updates/leave' | 'employee_updates/new_hire' | 'employee_updates/termination' | 'employee_updates/worked_time' | 'finance/vendor';
|
|
18216
|
+
syncable_type: 'compensations/compensation' | 'expenses/expense' | 'employee_updates/contract_change' | 'employee_updates/leave' | 'employee_updates/new_hire' | 'employee_updates/personal_change_id' | 'employee_updates/personal_change_name' | 'employee_updates/personal_change_irpf' | 'employee_updates/personal_change_bank' | 'employee_updates/personal_change_gender' | 'employee_updates/personal_change_health_insurance' | 'employee_updates/personal_change_address' | 'employee_updates/personal_change_residence' | 'employee_updates/personal_change_workplace' | 'employee_updates/personal_change_nationality' | 'employee_updates/personal_change_email' | 'employee_updates/personal_change_phone_number' | 'employee_updates/personal_change_permits_and_certificates' | 'employee_updates/personal_change_taxes_and_deductions' | 'employee_updates/personal_change_work_activity' | 'employee_updates/personal_change_birth_name' | 'employee_updates/personal_change_academic_title' | 'employee_updates/personal_change_country_of_birth' | 'employee_updates/personal_change_place_of_birth' | 'employee_updates/termination' | 'employee_updates/worked_time' | 'finance/vendor';
|
|
17810
18217
|
/**
|
|
17811
18218
|
* Outcome of processing the item
|
|
17812
18219
|
*/
|
|
@@ -19045,6 +19452,18 @@ export type PostApi20261001ResourcesPayrollEmployeesGermanEmployeeDataData = {
|
|
|
19045
19452
|
* Identifier of the employee
|
|
19046
19453
|
*/
|
|
19047
19454
|
employee_id: string;
|
|
19455
|
+
/**
|
|
19456
|
+
* Birth name of the employee, if different from the current surname
|
|
19457
|
+
*/
|
|
19458
|
+
birth_name?: string;
|
|
19459
|
+
/**
|
|
19460
|
+
* Country of birth of the employee, as a DATEV nationality key
|
|
19461
|
+
*/
|
|
19462
|
+
country_of_birth?: string;
|
|
19463
|
+
/**
|
|
19464
|
+
* Place of birth (city) of the employee
|
|
19465
|
+
*/
|
|
19466
|
+
place_of_birth?: string;
|
|
19048
19467
|
/**
|
|
19049
19468
|
* Expiration date of the employee's work permit
|
|
19050
19469
|
*/
|
|
@@ -19161,6 +19580,18 @@ export type PutApi20261001ResourcesPayrollEmployeesGermanEmployeeDataByIdData =
|
|
|
19161
19580
|
* Identifier of the German employee data record
|
|
19162
19581
|
*/
|
|
19163
19582
|
id: string;
|
|
19583
|
+
/**
|
|
19584
|
+
* Birth name of the employee, if different from the current surname
|
|
19585
|
+
*/
|
|
19586
|
+
birth_name?: string;
|
|
19587
|
+
/**
|
|
19588
|
+
* Country of birth of the employee, as a DATEV nationality key
|
|
19589
|
+
*/
|
|
19590
|
+
country_of_birth?: string;
|
|
19591
|
+
/**
|
|
19592
|
+
* Place of birth (city) of the employee
|
|
19593
|
+
*/
|
|
19594
|
+
place_of_birth?: string;
|
|
19164
19595
|
/**
|
|
19165
19596
|
* Expiration date of the employee's work permit
|
|
19166
19597
|
*/
|
|
@@ -25280,6 +25711,24 @@ export type PostApi20261001ResourcesTimeoffLeavesApproveAllResponses = {
|
|
|
25280
25711
|
200: TimeoffLeave;
|
|
25281
25712
|
};
|
|
25282
25713
|
export type PostApi20261001ResourcesTimeoffLeavesApproveAllResponse = PostApi20261001ResourcesTimeoffLeavesApproveAllResponses[keyof PostApi20261001ResourcesTimeoffLeavesApproveAllResponses];
|
|
25714
|
+
export type PostApi20261001ResourcesTimeoffLeavesBulkDeleteData = {
|
|
25715
|
+
body?: {
|
|
25716
|
+
/**
|
|
25717
|
+
* Identifiers of the leaves to cancel
|
|
25718
|
+
*/
|
|
25719
|
+
ids: Array<string>;
|
|
25720
|
+
};
|
|
25721
|
+
path?: never;
|
|
25722
|
+
query?: never;
|
|
25723
|
+
url: '/api/2026-10-01/resources/timeoff/leaves/bulk_delete';
|
|
25724
|
+
};
|
|
25725
|
+
export type PostApi20261001ResourcesTimeoffLeavesBulkDeleteResponses = {
|
|
25726
|
+
/**
|
|
25727
|
+
* OK
|
|
25728
|
+
*/
|
|
25729
|
+
200: Array<TimeoffLeave>;
|
|
25730
|
+
};
|
|
25731
|
+
export type PostApi20261001ResourcesTimeoffLeavesBulkDeleteResponse = PostApi20261001ResourcesTimeoffLeavesBulkDeleteResponses[keyof PostApi20261001ResourcesTimeoffLeavesBulkDeleteResponses];
|
|
25283
25732
|
export type PostApi20261001ResourcesTimeoffLeavesRejectData = {
|
|
25284
25733
|
body?: {
|
|
25285
25734
|
/**
|
|
@@ -28665,6 +29114,16 @@ export type PostWebhooks__Timeoff__Leave__ApprovesWebhookRequest = {
|
|
|
28665
29114
|
path?: never;
|
|
28666
29115
|
query?: never;
|
|
28667
29116
|
};
|
|
29117
|
+
/**
|
|
29118
|
+
* Callback payload
|
|
29119
|
+
*/
|
|
29120
|
+
export type PostWebhooks__Timeoff__Leave__BulkDeletesWebhookPayload = TimeoffLeave;
|
|
29121
|
+
export type PostWebhooks__Timeoff__Leave__BulkDeletesWebhookRequest = {
|
|
29122
|
+
body: PostWebhooks__Timeoff__Leave__BulkDeletesWebhookPayload;
|
|
29123
|
+
key: 'Webhooks > Timeoff > Leave > Bulk deletes';
|
|
29124
|
+
path?: never;
|
|
29125
|
+
query?: never;
|
|
29126
|
+
};
|
|
28668
29127
|
/**
|
|
28669
29128
|
* Callback payload
|
|
28670
29129
|
*/
|