@factorialco/api-client 4.0.0-beta.2027010123 → 4.0.0-beta.2027010125

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.
Files changed (37) hide show
  1. package/dist/cjs/generated/index.d.ts +2 -2
  2. package/dist/cjs/generated/index.d.ts.map +1 -1
  3. package/dist/cjs/generated/index.js +14 -12
  4. package/dist/cjs/generated/index.js.map +1 -1
  5. package/dist/cjs/generated/sdk.gen.d.ts +13 -1
  6. package/dist/cjs/generated/sdk.gen.d.ts.map +1 -1
  7. package/dist/cjs/generated/sdk.gen.js +39 -17
  8. package/dist/cjs/generated/sdk.gen.js.map +1 -1
  9. package/dist/cjs/generated/types.gen.d.ts +244 -12
  10. package/dist/cjs/generated/types.gen.d.ts.map +1 -1
  11. package/dist/cjs/sdk.d.ts +27 -1
  12. package/dist/cjs/sdk.d.ts.map +1 -1
  13. package/dist/cjs/sdk.js +37 -5
  14. package/dist/cjs/sdk.js.map +1 -1
  15. package/dist/cjs/webhooks.d.ts +5 -2
  16. package/dist/cjs/webhooks.d.ts.map +1 -1
  17. package/dist/cjs/webhooks.js +1 -0
  18. package/dist/cjs/webhooks.js.map +1 -1
  19. package/dist/esm/generated/index.d.ts +2 -2
  20. package/dist/esm/generated/index.d.ts.map +1 -1
  21. package/dist/esm/generated/index.js +1 -1
  22. package/dist/esm/generated/index.js.map +1 -1
  23. package/dist/esm/generated/sdk.gen.d.ts +13 -1
  24. package/dist/esm/generated/sdk.gen.d.ts.map +1 -1
  25. package/dist/esm/generated/sdk.gen.js +25 -5
  26. package/dist/esm/generated/sdk.gen.js.map +1 -1
  27. package/dist/esm/generated/types.gen.d.ts +244 -12
  28. package/dist/esm/generated/types.gen.d.ts.map +1 -1
  29. package/dist/esm/sdk.d.ts +27 -1
  30. package/dist/esm/sdk.d.ts.map +1 -1
  31. package/dist/esm/sdk.js +32 -1
  32. package/dist/esm/sdk.js.map +1 -1
  33. package/dist/esm/webhooks.d.ts +5 -2
  34. package/dist/esm/webhooks.d.ts.map +1 -1
  35. package/dist/esm/webhooks.js +1 -0
  36. package/dist/esm/webhooks.js.map +1 -1
  37. 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__SubprojectWorker__BulkAssignsWebhookRequest | PostWebhooks__ProjectManagement__SubprojectWorker__CreatesWebhookRequest | PostWebhooks__ProjectManagement__SubprojectWorker__UnassignsWebhookRequest | 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__MovesWebhookRequest | PostWebhooks__Teams__Membership__UpdatesWebhookRequest | PostWebhooks__Teams__Team__CreatesWebhookRequest | PostWebhooks__Teams__Team__DeletesWebhookRequest | PostWebhooks__Teams__Team__MovesWebhookRequest | 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;
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__Ats__Referral__CreatesWebhookRequest | 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__SubprojectWorker__BulkAssignsWebhookRequest | PostWebhooks__ProjectManagement__SubprojectWorker__CreatesWebhookRequest | PostWebhooks__ProjectManagement__SubprojectWorker__UnassignsWebhookRequest | 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__MovesWebhookRequest | PostWebhooks__Teams__Membership__UpdatesWebhookRequest | PostWebhooks__Teams__Team__CreatesWebhookRequest | PostWebhooks__Teams__Team__DeletesWebhookRequest | PostWebhooks__Teams__Team__MovesWebhookRequest | 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
@@ -656,6 +656,36 @@ export type AtsQuestion = {
656
656
  disqualifies?: boolean;
657
657
  }>;
658
658
  };
659
+ export type AtsReferral = {
660
+ /**
661
+ * Referral identifier.
662
+ */
663
+ id: string;
664
+ /**
665
+ * The access that made the referral.
666
+ */
667
+ access_id: string;
668
+ /**
669
+ * Identifier of the company.
670
+ */
671
+ company_id: string;
672
+ /**
673
+ * The referred candidate.
674
+ */
675
+ ats_candidate_id: string;
676
+ /**
677
+ * The application created for the referral.
678
+ */
679
+ ats_application_id: string;
680
+ /**
681
+ * When the referral was made.
682
+ */
683
+ created_at: string;
684
+ /**
685
+ * When the referral was last updated.
686
+ */
687
+ updated_at: string;
688
+ };
659
689
  export type AtsRejectionReason = {
660
690
  /**
661
691
  * Rejection reason identifier
@@ -774,6 +804,18 @@ export type AttendanceEditTimesheetRequest = {
774
804
  * Id of the clock-out work area within the workplace
775
805
  */
776
806
  clock_out_work_area_id?: string;
807
+ /**
808
+ * Id of the employee's project assignment the work is logged on once approved
809
+ */
810
+ project_worker_id?: string;
811
+ /**
812
+ * Id of the project phase the work is logged on once approved
813
+ */
814
+ subproject_id?: string;
815
+ /**
816
+ * Id of the project task the work is logged on once approved
817
+ */
818
+ project_task_id?: string;
777
819
  };
778
820
  export type AttendanceEstimatedTime = {
779
821
  date: string;
@@ -1297,6 +1339,9 @@ export type BookkeepersManagementIncidence = {
1297
1339
  * name of the incidence (aka employee update). It also represent the incidence type. For example a new hire incidence will be
1298
1340
  */
1299
1341
  name: string;
1342
+ /**
1343
+ * Name of the custom leave type, for custom leave incidences (aka employee updates) only. Null for every other type, including manual incidences.
1344
+ */
1300
1345
  custom_name?: string;
1301
1346
  /**
1302
1347
  * The incidence (aka employee update) is also related to a another resource, for example for a leave target, the target identifier will be the leave id.
@@ -1307,15 +1352,15 @@ export type BookkeepersManagementIncidence = {
1307
1352
  */
1308
1353
  target_type: string;
1309
1354
  /**
1310
- * The date the incidence (aka employee update) starts.
1355
+ * The date the incidence (aka employee update) takes effect. For a manual incidence, the effective date entered. For a leave, its first day.
1311
1356
  */
1312
1357
  starts_on?: string;
1313
1358
  /**
1314
- * The date the incidence (aka employee update) end.
1359
+ * The last date the incidence (aka employee update) applies to. For a manual incidence, the same as starts_on. For a leave, its last day.
1315
1360
  */
1316
1361
  ends_on?: string;
1317
1362
  /**
1318
- * The date the incidence (aka employee update) was read.
1363
+ * When a bookkeeper last read the incidence (aka employee update). Set on creation, cleared to null whenever the incidence changes or is reopened, and set again when a bookkeeper reads it. Null means it changed since a bookkeeper last read it.
1319
1364
  */
1320
1365
  read_at?: string;
1321
1366
  status: string;
@@ -3212,13 +3257,17 @@ export type EmployeesEmployee = {
3212
3257
  */
3213
3258
  legal_entity_id?: string;
3214
3259
  /**
3215
- * location id of the employee, references to locations/locations.
3260
+ * Default workplace ID of the employee. References locations/locations.
3216
3261
  */
3217
3262
  location_id: string;
3218
3263
  /**
3219
3264
  * Default work area ID for the employee at the default workplace. References locations/work_areas.
3220
3265
  */
3221
3266
  default_work_area_id?: string;
3267
+ /**
3268
+ * All assigned workplace IDs, including the default workplace assignment. References locations/locations. Returned when include_locations=true; otherwise null.
3269
+ */
3270
+ employees_location_ids?: Array<string>;
3222
3271
  /**
3223
3272
  * creation date of the employee.
3224
3273
  */
@@ -6567,7 +6616,7 @@ export type PerformanceReviewProcess = {
6567
6616
  /**
6568
6617
  * Missing or invalid information to be able to start the review process
6569
6618
  */
6570
- start_validation_errors: 'missing_deadline' | 'invalid_deadline' | 'missing_title' | 'missing_target_strategy' | 'missing_target_strategy_members' | 'missing_reviewer_strategy' | 'missing_questions' | 'missing_potential_reviewers' | 'invalid_section_weights_sum';
6619
+ start_validation_errors: 'missing_deadline' | 'invalid_deadline' | 'missing_title' | 'missing_target_strategy' | 'missing_target_strategy_members' | 'missing_reviewer_strategy' | 'missing_questions' | 'missing_potential_reviewers' | 'invalid_section_weights_sum' | 'missing_participant_goals' | 'goals_unavailable';
6571
6620
  /**
6572
6621
  * Whether the review process is archived or not
6573
6622
  */
@@ -13779,6 +13828,151 @@ export type PutApi20270101ResourcesAtsQuestionsByIdResponses = {
13779
13828
  200: AtsQuestion;
13780
13829
  };
13781
13830
  export type PutApi20270101ResourcesAtsQuestionsByIdResponse = PutApi20270101ResourcesAtsQuestionsByIdResponses[keyof PutApi20270101ResourcesAtsQuestionsByIdResponses];
13831
+ export type GetApi20270101ResourcesAtsReferralsData = {
13832
+ body?: never;
13833
+ path?: never;
13834
+ query?: {
13835
+ /**
13836
+ * Filter by referral IDs.
13837
+ */
13838
+ 'ids[]'?: Array<string>;
13839
+ /**
13840
+ * Filter by the access that made the referral.
13841
+ */
13842
+ access_id?: string;
13843
+ };
13844
+ url: '/api/2027-01-01/resources/ats/referrals';
13845
+ };
13846
+ export type GetApi20270101ResourcesAtsReferralsErrors = {
13847
+ /**
13848
+ * Bad Request (malformed_request)
13849
+ */
13850
+ 400: ErrorResponse;
13851
+ /**
13852
+ * Unauthorized (unauthorized)
13853
+ */
13854
+ 401: ErrorResponse;
13855
+ /**
13856
+ * Payment Required (payment_required)
13857
+ */
13858
+ 402: ErrorResponse;
13859
+ /**
13860
+ * Forbidden (forbidden)
13861
+ */
13862
+ 403: ErrorResponse;
13863
+ /**
13864
+ * Not Found (missing_resource)
13865
+ */
13866
+ 404: ErrorResponse;
13867
+ /**
13868
+ * Conflict (invalid_state)
13869
+ */
13870
+ 409: ErrorResponse;
13871
+ /**
13872
+ * Gone
13873
+ */
13874
+ 410: ErrorResponse;
13875
+ /**
13876
+ * Unprocessable Entity (default, validation_failed)
13877
+ */
13878
+ 422: ErrorResponse;
13879
+ /**
13880
+ * Precondition Required
13881
+ */
13882
+ 428: ErrorResponse;
13883
+ /**
13884
+ * Internal Server Error
13885
+ */
13886
+ 500: ErrorResponse;
13887
+ /**
13888
+ * Bad Gateway (malformed_resource)
13889
+ */
13890
+ 502: ErrorResponse;
13891
+ /**
13892
+ * Gateway Timeout (service_unreachable)
13893
+ */
13894
+ 504: ErrorResponse;
13895
+ };
13896
+ export type GetApi20270101ResourcesAtsReferralsError = GetApi20270101ResourcesAtsReferralsErrors[keyof GetApi20270101ResourcesAtsReferralsErrors];
13897
+ export type GetApi20270101ResourcesAtsReferralsResponses = {
13898
+ /**
13899
+ * OK
13900
+ */
13901
+ 200: {
13902
+ data?: Array<AtsReferral>;
13903
+ meta?: PagedIndexMeta;
13904
+ };
13905
+ };
13906
+ export type GetApi20270101ResourcesAtsReferralsResponse = GetApi20270101ResourcesAtsReferralsResponses[keyof GetApi20270101ResourcesAtsReferralsResponses];
13907
+ export type GetApi20270101ResourcesAtsReferralsByIdData = {
13908
+ body?: never;
13909
+ path: {
13910
+ /**
13911
+ * Filter by referral IDs.
13912
+ */
13913
+ id: string;
13914
+ };
13915
+ query?: never;
13916
+ url: '/api/2027-01-01/resources/ats/referrals/{id}';
13917
+ };
13918
+ export type GetApi20270101ResourcesAtsReferralsByIdErrors = {
13919
+ /**
13920
+ * Bad Request (malformed_request)
13921
+ */
13922
+ 400: ErrorResponse;
13923
+ /**
13924
+ * Unauthorized (unauthorized)
13925
+ */
13926
+ 401: ErrorResponse;
13927
+ /**
13928
+ * Payment Required (payment_required)
13929
+ */
13930
+ 402: ErrorResponse;
13931
+ /**
13932
+ * Forbidden (forbidden)
13933
+ */
13934
+ 403: ErrorResponse;
13935
+ /**
13936
+ * Not Found (missing_resource)
13937
+ */
13938
+ 404: ErrorResponse;
13939
+ /**
13940
+ * Conflict (invalid_state)
13941
+ */
13942
+ 409: ErrorResponse;
13943
+ /**
13944
+ * Gone
13945
+ */
13946
+ 410: ErrorResponse;
13947
+ /**
13948
+ * Unprocessable Entity (default, validation_failed)
13949
+ */
13950
+ 422: ErrorResponse;
13951
+ /**
13952
+ * Precondition Required
13953
+ */
13954
+ 428: ErrorResponse;
13955
+ /**
13956
+ * Internal Server Error
13957
+ */
13958
+ 500: ErrorResponse;
13959
+ /**
13960
+ * Bad Gateway (malformed_resource)
13961
+ */
13962
+ 502: ErrorResponse;
13963
+ /**
13964
+ * Gateway Timeout (service_unreachable)
13965
+ */
13966
+ 504: ErrorResponse;
13967
+ };
13968
+ export type GetApi20270101ResourcesAtsReferralsByIdError = GetApi20270101ResourcesAtsReferralsByIdErrors[keyof GetApi20270101ResourcesAtsReferralsByIdErrors];
13969
+ export type GetApi20270101ResourcesAtsReferralsByIdResponses = {
13970
+ /**
13971
+ * OK
13972
+ */
13973
+ 200: AtsReferral;
13974
+ };
13975
+ export type GetApi20270101ResourcesAtsReferralsByIdResponse = GetApi20270101ResourcesAtsReferralsByIdResponses[keyof GetApi20270101ResourcesAtsReferralsByIdResponses];
13782
13976
  export type GetApi20270101ResourcesAtsRejectionReasonsData = {
13783
13977
  body?: never;
13784
13978
  path?: never;
@@ -14386,6 +14580,18 @@ export type PostApi20270101ResourcesAttendanceEditTimesheetRequestsData = {
14386
14580
  * Id of the clock-out work area within the workplace.
14387
14581
  */
14388
14582
  clock_out_work_area_id?: string;
14583
+ /**
14584
+ * Id of the employee's project assignment to log the work on once the request is approved.
14585
+ */
14586
+ project_worker_id?: string;
14587
+ /**
14588
+ * Id of the project phase, with project_worker_id.
14589
+ */
14590
+ subproject_id?: string;
14591
+ /**
14592
+ * Id of the project task, with project_worker_id.
14593
+ */
14594
+ project_task_id?: string;
14389
14595
  };
14390
14596
  path?: never;
14391
14597
  query?: never;
@@ -14642,6 +14848,18 @@ export type PutApi20270101ResourcesAttendanceEditTimesheetRequestsByIdData = {
14642
14848
  * Id of the clock-out work area within the workplace.
14643
14849
  */
14644
14850
  clock_out_work_area_id?: string;
14851
+ /**
14852
+ * Id of the employee's project assignment to log the work on once the request is approved.
14853
+ */
14854
+ project_worker_id?: string;
14855
+ /**
14856
+ * Id of the project phase, with project_worker_id.
14857
+ */
14858
+ subproject_id?: string;
14859
+ /**
14860
+ * Id of the project task, with project_worker_id.
14861
+ */
14862
+ project_task_id?: string;
14645
14863
  };
14646
14864
  path: {
14647
14865
  /**
@@ -17514,11 +17732,11 @@ export type GetApi20270101ResourcesBookkeepersManagementIncidencesData = {
17514
17732
  */
17515
17733
  'status[]'?: Array<string>;
17516
17734
  /**
17517
- * Get the incidence (aka employee update) that start safter this date (included).
17735
+ * Start of the date range, inclusive. Returns the incidences (aka employee updates) whose starts_on falls within the range, plus those with no starts_on yet. Applied only together with ends_on.
17518
17736
  */
17519
17737
  starts_on?: string;
17520
17738
  /**
17521
- * Get the incidence (aka employee update) that ends before this date (included).
17739
+ * End of the date range, inclusive. It bounds the incidence's starts_on, not its ends_on. Applied only together with starts_on.
17522
17740
  */
17523
17741
  ends_on?: string;
17524
17742
  /**
@@ -17702,11 +17920,11 @@ export type PutApi20270101ResourcesBookkeepersManagementIncidencesByIdData = {
17702
17920
  has_message?: boolean;
17703
17921
  message_from?: string;
17704
17922
  /**
17705
- * Date in which the incidence (aka employee update) was read
17923
+ * Marks the incidence (aka employee update) as read by the bookkeeper. The stored value is the time of the request, not the value sent. Ignored unless the caller is a bookkeeper.
17706
17924
  */
17707
17925
  read_at?: string;
17708
17926
  /**
17709
- * Boolean that indicate if the incidence is read
17927
+ * Marks the incidence (aka employee update) as read by the bookkeeper, like read_at. Ignored unless the caller is a bookkeeper.
17710
17928
  */
17711
17929
  mark_as_read?: boolean;
17712
17930
  };
@@ -26225,6 +26443,10 @@ export type GetApi20270101ResourcesEmployeesEmployeesData = {
26225
26443
  * filter by employee name.
26226
26444
  */
26227
26445
  full_text_name?: string;
26446
+ /**
26447
+ * Include all assigned workplace IDs in employees_location_ids. Defaults to false, which returns null for that field.
26448
+ */
26449
+ include_locations?: boolean;
26228
26450
  /**
26229
26451
  * Filter employees by their latest update timestamp (`updated_at`), on or after this date. Only the date is considered; any time component is ignored (matching starts at 00:00:00 of the given date). Note: `updated_at` only stores the most recent update, so an employee updated multiple times is matched solely by its latest update, not by earlier ones.
26230
26452
  */
@@ -38017,11 +38239,11 @@ export type GetApi20270101ResourcesPayrollIntegrationsBaseCodesData = {
38017
38239
  */
38018
38240
  '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';
38019
38241
  /**
38020
- * Related object ID. Used together with codeable_type
38242
+ * Related object ID. Combine it with codeable_type, as ids of different types can match
38021
38243
  */
38022
38244
  codeable_id?: string;
38023
38245
  /**
38024
- * Related object type. Used together with codeable_id
38246
+ * Related object type
38025
38247
  */
38026
38248
  codeable_type?: string;
38027
38249
  };
@@ -62127,6 +62349,16 @@ export type PostWebhooks__Ats__JobPosting__UpdatesWebhookRequest = {
62127
62349
  path?: never;
62128
62350
  query?: never;
62129
62351
  };
62352
+ /**
62353
+ * Callback payload
62354
+ */
62355
+ export type PostWebhooks__Ats__Referral__CreatesWebhookPayload = AtsReferral;
62356
+ export type PostWebhooks__Ats__Referral__CreatesWebhookRequest = {
62357
+ body: PostWebhooks__Ats__Referral__CreatesWebhookPayload;
62358
+ key: 'Webhooks > Ats > Referral > Creates';
62359
+ path?: never;
62360
+ query?: never;
62361
+ };
62130
62362
  /**
62131
62363
  * Callback payload
62132
62364
  */