@factorialco/api-client 4.0.0-beta.2027010122 → 4.0.0-beta.2027010124

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 +19 -13
  4. package/dist/cjs/generated/index.js.map +1 -1
  5. package/dist/cjs/generated/sdk.gen.d.ts +39 -3
  6. package/dist/cjs/generated/sdk.gen.d.ts.map +1 -1
  7. package/dist/cjs/generated/sdk.gen.js +84 -14
  8. package/dist/cjs/generated/sdk.gen.js.map +1 -1
  9. package/dist/cjs/generated/types.gen.d.ts +640 -11
  10. package/dist/cjs/generated/types.gen.d.ts.map +1 -1
  11. package/dist/cjs/sdk.d.ts +57 -1
  12. package/dist/cjs/sdk.d.ts.map +1 -1
  13. package/dist/cjs/sdk.js +73 -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 +39 -3
  24. package/dist/esm/generated/sdk.gen.d.ts.map +1 -1
  25. package/dist/esm/generated/sdk.gen.js +66 -2
  26. package/dist/esm/generated/sdk.gen.js.map +1 -1
  27. package/dist/esm/generated/types.gen.d.ts +640 -11
  28. package/dist/esm/generated/types.gen.d.ts.map +1 -1
  29. package/dist/esm/sdk.d.ts +57 -1
  30. package/dist/esm/sdk.d.ts.map +1 -1
  31. package/dist/esm/sdk.js +67 -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
@@ -1297,6 +1327,9 @@ export type BookkeepersManagementIncidence = {
1297
1327
  * name of the incidence (aka employee update). It also represent the incidence type. For example a new hire incidence will be
1298
1328
  */
1299
1329
  name: string;
1330
+ /**
1331
+ * Name of the custom leave type, for custom leave incidences (aka employee updates) only. Null for every other type, including manual incidences.
1332
+ */
1300
1333
  custom_name?: string;
1301
1334
  /**
1302
1335
  * 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 +1340,15 @@ export type BookkeepersManagementIncidence = {
1307
1340
  */
1308
1341
  target_type: string;
1309
1342
  /**
1310
- * The date the incidence (aka employee update) starts.
1343
+ * The date the incidence (aka employee update) takes effect. For a manual incidence, the effective date entered. For a leave, its first day.
1311
1344
  */
1312
1345
  starts_on?: string;
1313
1346
  /**
1314
- * The date the incidence (aka employee update) end.
1347
+ * 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
1348
  */
1316
1349
  ends_on?: string;
1317
1350
  /**
1318
- * The date the incidence (aka employee update) was read.
1351
+ * 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
1352
  */
1320
1353
  read_at?: string;
1321
1354
  status: string;
@@ -2790,7 +2823,7 @@ export type CostCentersResourceDistribution = {
2790
2823
  */
2791
2824
  resource_type: string;
2792
2825
  /**
2793
- * ID of the record the row belongs to. For an expense, this is its `expenses_expensable_id`.
2826
+ * ID of the record the row belongs to. For an expense, this is its `expenses_expensable_id`; for a financial document, its `id`.
2794
2827
  */
2795
2828
  resource_id: string;
2796
2829
  /**
@@ -8747,6 +8780,120 @@ export type TimeoffLeave = {
8747
8780
  */
8748
8781
  days_taken: number;
8749
8782
  };
8783
+ export type TimeoffLeaveChangeRequest = {
8784
+ /**
8785
+ * Identifier of the change request.
8786
+ */
8787
+ id: string;
8788
+ /**
8789
+ * Identifier of the company.
8790
+ */
8791
+ company_id: string;
8792
+ /**
8793
+ * Identifier of the leave the request proposes to change.
8794
+ */
8795
+ leave_id: string;
8796
+ /**
8797
+ * Identifier of the employee who owns the leave.
8798
+ */
8799
+ employee_id: string;
8800
+ /**
8801
+ * Access that created the request (the owner, or One on their behalf).
8802
+ */
8803
+ author_id: string;
8804
+ /**
8805
+ * update_leave or cancel_leave.
8806
+ */
8807
+ request_type: 'update_leave' | 'cancel_leave';
8808
+ /**
8809
+ * pending, approved, rejected or withdrawn.
8810
+ */
8811
+ status: 'pending' | 'approved' | 'rejected' | 'withdrawn';
8812
+ /**
8813
+ * True once approved, false once rejected, null while pending or withdrawn.
8814
+ */
8815
+ approved?: boolean;
8816
+ /**
8817
+ * When the request was withdrawn, if it was.
8818
+ */
8819
+ withdrawn_at?: string;
8820
+ /**
8821
+ * Why it was withdrawn - author, leave_updated (the leave was edited directly), leave_deleted or leave_started (the leave or its proposed first day started before a decision).
8822
+ */
8823
+ withdrawal_cause?: 'author' | 'leave_updated' | 'leave_deleted' | 'leave_started';
8824
+ /**
8825
+ * First day once approved, the current one when the request keeps it (read from the leave as it is now). Null for a cancellation.
8826
+ */
8827
+ start_on?: string;
8828
+ /**
8829
+ * Last day once approved, the current one when the request keeps it (read from the leave as it is now). Null for a cancellation.
8830
+ */
8831
+ finish_on?: string;
8832
+ /**
8833
+ * Half day once approved, the current one when the request keeps it (read from the leave as it is now). Null for a cancellation.
8834
+ */
8835
+ half_day?: string;
8836
+ /**
8837
+ * Start time once approved, the current one when the request keeps it (read from the leave as it is now). Null for a cancellation.
8838
+ */
8839
+ start_time?: string;
8840
+ /**
8841
+ * Hours in cents of an hour once approved, the current ones when the request keeps them (read from the leave as it is now). Null for a cancellation.
8842
+ */
8843
+ hours_amount_in_cents?: number;
8844
+ /**
8845
+ * Leave type once approved, the current one when the request keeps it (read from the leave as it is now). Null for a cancellation.
8846
+ */
8847
+ leave_type_id?: string;
8848
+ /**
8849
+ * Proposed description, null when the request keeps it.
8850
+ */
8851
+ description?: string;
8852
+ /**
8853
+ * Why the employee asks for the change.
8854
+ */
8855
+ reason?: string;
8856
+ /**
8857
+ * Why the approver rejected it.
8858
+ */
8859
+ rejected_reason?: string;
8860
+ /**
8861
+ * Current first day of the leave, read from the leave as it is now, so a decided request shows the leave after the decision.
8862
+ */
8863
+ current_start_on: string;
8864
+ /**
8865
+ * Current last day of the leave, read from the leave as it is now, so a decided request shows the leave after the decision.
8866
+ */
8867
+ current_finish_on?: string;
8868
+ /**
8869
+ * Current half day of the leave, read from the leave as it is now, so a decided request shows the leave after the decision.
8870
+ */
8871
+ current_half_day?: string;
8872
+ /**
8873
+ * Current start time of the leave, read from the leave as it is now, so a decided request shows the leave after the decision.
8874
+ */
8875
+ current_start_time?: string;
8876
+ /**
8877
+ * Current hours of the leave in cents of an hour, read from the leave as it is now, so a decided request shows the leave after the decision.
8878
+ */
8879
+ current_hours_amount_in_cents?: number;
8880
+ /**
8881
+ * Current leave type of the leave, read from the leave as it is now, so a decided request shows the leave after the decision.
8882
+ */
8883
+ current_leave_type_id: string;
8884
+ /**
8885
+ * Days the leave would take with the proposed values, with the same meaning as the leave's `days_taken`. 0 for a cancellation, and null when the reader can't see the leave's details.
8886
+ */
8887
+ proposed_days_taken?: number;
8888
+ /**
8889
+ * When the request was created.
8890
+ */
8891
+ created_at: string;
8892
+ /**
8893
+ * When the request was last updated.
8894
+ */
8895
+ updated_at: string;
8896
+ };
8750
8897
  export type TimeoffLeaveType = {
8751
8898
  /**
8752
8899
  * Identifier of the leave type
@@ -13665,6 +13812,151 @@ export type PutApi20270101ResourcesAtsQuestionsByIdResponses = {
13665
13812
  200: AtsQuestion;
13666
13813
  };
13667
13814
  export type PutApi20270101ResourcesAtsQuestionsByIdResponse = PutApi20270101ResourcesAtsQuestionsByIdResponses[keyof PutApi20270101ResourcesAtsQuestionsByIdResponses];
13815
+ export type GetApi20270101ResourcesAtsReferralsData = {
13816
+ body?: never;
13817
+ path?: never;
13818
+ query?: {
13819
+ /**
13820
+ * Filter by referral IDs.
13821
+ */
13822
+ 'ids[]'?: Array<string>;
13823
+ /**
13824
+ * Filter by the access that made the referral.
13825
+ */
13826
+ access_id?: string;
13827
+ };
13828
+ url: '/api/2027-01-01/resources/ats/referrals';
13829
+ };
13830
+ export type GetApi20270101ResourcesAtsReferralsErrors = {
13831
+ /**
13832
+ * Bad Request (malformed_request)
13833
+ */
13834
+ 400: ErrorResponse;
13835
+ /**
13836
+ * Unauthorized (unauthorized)
13837
+ */
13838
+ 401: ErrorResponse;
13839
+ /**
13840
+ * Payment Required (payment_required)
13841
+ */
13842
+ 402: ErrorResponse;
13843
+ /**
13844
+ * Forbidden (forbidden)
13845
+ */
13846
+ 403: ErrorResponse;
13847
+ /**
13848
+ * Not Found (missing_resource)
13849
+ */
13850
+ 404: ErrorResponse;
13851
+ /**
13852
+ * Conflict (invalid_state)
13853
+ */
13854
+ 409: ErrorResponse;
13855
+ /**
13856
+ * Gone
13857
+ */
13858
+ 410: ErrorResponse;
13859
+ /**
13860
+ * Unprocessable Entity (default, validation_failed)
13861
+ */
13862
+ 422: ErrorResponse;
13863
+ /**
13864
+ * Precondition Required
13865
+ */
13866
+ 428: ErrorResponse;
13867
+ /**
13868
+ * Internal Server Error
13869
+ */
13870
+ 500: ErrorResponse;
13871
+ /**
13872
+ * Bad Gateway (malformed_resource)
13873
+ */
13874
+ 502: ErrorResponse;
13875
+ /**
13876
+ * Gateway Timeout (service_unreachable)
13877
+ */
13878
+ 504: ErrorResponse;
13879
+ };
13880
+ export type GetApi20270101ResourcesAtsReferralsError = GetApi20270101ResourcesAtsReferralsErrors[keyof GetApi20270101ResourcesAtsReferralsErrors];
13881
+ export type GetApi20270101ResourcesAtsReferralsResponses = {
13882
+ /**
13883
+ * OK
13884
+ */
13885
+ 200: {
13886
+ data?: Array<AtsReferral>;
13887
+ meta?: PagedIndexMeta;
13888
+ };
13889
+ };
13890
+ export type GetApi20270101ResourcesAtsReferralsResponse = GetApi20270101ResourcesAtsReferralsResponses[keyof GetApi20270101ResourcesAtsReferralsResponses];
13891
+ export type GetApi20270101ResourcesAtsReferralsByIdData = {
13892
+ body?: never;
13893
+ path: {
13894
+ /**
13895
+ * Filter by referral IDs.
13896
+ */
13897
+ id: string;
13898
+ };
13899
+ query?: never;
13900
+ url: '/api/2027-01-01/resources/ats/referrals/{id}';
13901
+ };
13902
+ export type GetApi20270101ResourcesAtsReferralsByIdErrors = {
13903
+ /**
13904
+ * Bad Request (malformed_request)
13905
+ */
13906
+ 400: ErrorResponse;
13907
+ /**
13908
+ * Unauthorized (unauthorized)
13909
+ */
13910
+ 401: ErrorResponse;
13911
+ /**
13912
+ * Payment Required (payment_required)
13913
+ */
13914
+ 402: ErrorResponse;
13915
+ /**
13916
+ * Forbidden (forbidden)
13917
+ */
13918
+ 403: ErrorResponse;
13919
+ /**
13920
+ * Not Found (missing_resource)
13921
+ */
13922
+ 404: ErrorResponse;
13923
+ /**
13924
+ * Conflict (invalid_state)
13925
+ */
13926
+ 409: ErrorResponse;
13927
+ /**
13928
+ * Gone
13929
+ */
13930
+ 410: ErrorResponse;
13931
+ /**
13932
+ * Unprocessable Entity (default, validation_failed)
13933
+ */
13934
+ 422: ErrorResponse;
13935
+ /**
13936
+ * Precondition Required
13937
+ */
13938
+ 428: ErrorResponse;
13939
+ /**
13940
+ * Internal Server Error
13941
+ */
13942
+ 500: ErrorResponse;
13943
+ /**
13944
+ * Bad Gateway (malformed_resource)
13945
+ */
13946
+ 502: ErrorResponse;
13947
+ /**
13948
+ * Gateway Timeout (service_unreachable)
13949
+ */
13950
+ 504: ErrorResponse;
13951
+ };
13952
+ export type GetApi20270101ResourcesAtsReferralsByIdError = GetApi20270101ResourcesAtsReferralsByIdErrors[keyof GetApi20270101ResourcesAtsReferralsByIdErrors];
13953
+ export type GetApi20270101ResourcesAtsReferralsByIdResponses = {
13954
+ /**
13955
+ * OK
13956
+ */
13957
+ 200: AtsReferral;
13958
+ };
13959
+ export type GetApi20270101ResourcesAtsReferralsByIdResponse = GetApi20270101ResourcesAtsReferralsByIdResponses[keyof GetApi20270101ResourcesAtsReferralsByIdResponses];
13668
13960
  export type GetApi20270101ResourcesAtsRejectionReasonsData = {
13669
13961
  body?: never;
13670
13962
  path?: never;
@@ -17400,11 +17692,11 @@ export type GetApi20270101ResourcesBookkeepersManagementIncidencesData = {
17400
17692
  */
17401
17693
  'status[]'?: Array<string>;
17402
17694
  /**
17403
- * Get the incidence (aka employee update) that start safter this date (included).
17695
+ * 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.
17404
17696
  */
17405
17697
  starts_on?: string;
17406
17698
  /**
17407
- * Get the incidence (aka employee update) that ends before this date (included).
17699
+ * End of the date range, inclusive. It bounds the incidence's starts_on, not its ends_on. Applied only together with starts_on.
17408
17700
  */
17409
17701
  ends_on?: string;
17410
17702
  /**
@@ -17588,11 +17880,11 @@ export type PutApi20270101ResourcesBookkeepersManagementIncidencesByIdData = {
17588
17880
  has_message?: boolean;
17589
17881
  message_from?: string;
17590
17882
  /**
17591
- * Date in which the incidence (aka employee update) was read
17883
+ * 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.
17592
17884
  */
17593
17885
  read_at?: string;
17594
17886
  /**
17595
- * Boolean that indicate if the incidence is read
17887
+ * Marks the incidence (aka employee update) as read by the bookkeeper, like read_at. Ignored unless the caller is a bookkeeper.
17596
17888
  */
17597
17889
  mark_as_read?: boolean;
17598
17890
  };
@@ -23329,11 +23621,11 @@ export type GetApi20270101ResourcesCostCentersResourceDistributionsData = {
23329
23621
  path?: never;
23330
23622
  query: {
23331
23623
  /**
23332
- * Type of the records to read the split of. Supported values: `expenses/expensable` (expenses, mileages and per diems).
23624
+ * Type of the records to read the split of. Supported values: `expenses/expensable` (expenses, mileages and per diems) and `finance/financial_document` (financial documents, such as purchase invoices).
23333
23625
  */
23334
23626
  resource_type: string;
23335
23627
  /**
23336
- * IDs of the records to read the split of, at most 100 per request. For expenses, mileages and per diems, pass their `expenses_expensable_id`.
23628
+ * IDs of the records to read the split of, at most 100 per request. For expenses, mileages and per diems, pass their `expenses_expensable_id`; for financial documents, their `id`.
23337
23629
  */
23338
23630
  'resource_ids[]': Array<string>;
23339
23631
  };
@@ -55390,6 +55682,333 @@ export type PostApi20270101ResourcesTimeoffLeavesRejectResponses = {
55390
55682
  200: TimeoffLeave;
55391
55683
  };
55392
55684
  export type PostApi20270101ResourcesTimeoffLeavesRejectResponse = PostApi20270101ResourcesTimeoffLeavesRejectResponses[keyof PostApi20270101ResourcesTimeoffLeavesRejectResponses];
55685
+ export type GetApi20270101ResourcesTimeoffLeaveChangeRequestsData = {
55686
+ body?: never;
55687
+ path?: never;
55688
+ query?: {
55689
+ /**
55690
+ * Return only the change requests with these ids.
55691
+ */
55692
+ 'ids[]'?: Array<string>;
55693
+ /**
55694
+ * Return only the change requests on these leaves.
55695
+ */
55696
+ 'leave_ids[]'?: Array<string>;
55697
+ /**
55698
+ * Return only the change requests of these employees.
55699
+ */
55700
+ 'employee_ids[]'?: Array<string>;
55701
+ /**
55702
+ * Set to true to return only the requests still awaiting a decision. Passing false has no effect.
55703
+ */
55704
+ pending?: boolean;
55705
+ };
55706
+ url: '/api/2027-01-01/resources/timeoff/leave_change_requests';
55707
+ };
55708
+ export type GetApi20270101ResourcesTimeoffLeaveChangeRequestsErrors = {
55709
+ /**
55710
+ * Bad Request (malformed_request)
55711
+ */
55712
+ 400: ErrorResponse;
55713
+ /**
55714
+ * Unauthorized (unauthorized)
55715
+ */
55716
+ 401: ErrorResponse;
55717
+ /**
55718
+ * Payment Required (payment_required)
55719
+ */
55720
+ 402: ErrorResponse;
55721
+ /**
55722
+ * Forbidden (forbidden)
55723
+ */
55724
+ 403: ErrorResponse;
55725
+ /**
55726
+ * Not Found (missing_resource)
55727
+ */
55728
+ 404: ErrorResponse;
55729
+ /**
55730
+ * Conflict (invalid_state)
55731
+ */
55732
+ 409: ErrorResponse;
55733
+ /**
55734
+ * Gone
55735
+ */
55736
+ 410: ErrorResponse;
55737
+ /**
55738
+ * Unprocessable Entity (default, validation_failed)
55739
+ */
55740
+ 422: ErrorResponse;
55741
+ /**
55742
+ * Precondition Required
55743
+ */
55744
+ 428: ErrorResponse;
55745
+ /**
55746
+ * Internal Server Error
55747
+ */
55748
+ 500: ErrorResponse;
55749
+ /**
55750
+ * Bad Gateway (malformed_resource)
55751
+ */
55752
+ 502: ErrorResponse;
55753
+ /**
55754
+ * Gateway Timeout (service_unreachable)
55755
+ */
55756
+ 504: ErrorResponse;
55757
+ };
55758
+ export type GetApi20270101ResourcesTimeoffLeaveChangeRequestsError = GetApi20270101ResourcesTimeoffLeaveChangeRequestsErrors[keyof GetApi20270101ResourcesTimeoffLeaveChangeRequestsErrors];
55759
+ export type GetApi20270101ResourcesTimeoffLeaveChangeRequestsResponses = {
55760
+ /**
55761
+ * OK
55762
+ */
55763
+ 200: {
55764
+ data?: Array<TimeoffLeaveChangeRequest>;
55765
+ meta?: PagedIndexMeta;
55766
+ };
55767
+ };
55768
+ export type GetApi20270101ResourcesTimeoffLeaveChangeRequestsResponse = GetApi20270101ResourcesTimeoffLeaveChangeRequestsResponses[keyof GetApi20270101ResourcesTimeoffLeaveChangeRequestsResponses];
55769
+ export type PostApi20270101ResourcesTimeoffLeaveChangeRequestsData = {
55770
+ body?: {
55771
+ /**
55772
+ * Id of the approved leave to change.
55773
+ */
55774
+ leave_id: string;
55775
+ /**
55776
+ * update_leave to propose new values, cancel_leave to cancel the leave.
55777
+ */
55778
+ request_type: 'update_leave' | 'cancel_leave';
55779
+ /**
55780
+ * Proposed first day. Omit it to keep the current one.
55781
+ */
55782
+ start_on?: string;
55783
+ /**
55784
+ * Proposed last day. Omit it to keep the current one.
55785
+ */
55786
+ finish_on?: string;
55787
+ /**
55788
+ * Proposed half day (beggining_of_day or end_of_day), or an empty string to make a half-day leave a full day. Omit it to keep the current one.
55789
+ */
55790
+ half_day?: string;
55791
+ /**
55792
+ * Proposed start time for an hourly leave. Omit it to keep the current one.
55793
+ */
55794
+ start_time?: string;
55795
+ /**
55796
+ * Proposed hours for an hourly leave, in cents of an hour. Omit it to keep the current one.
55797
+ */
55798
+ hours_amount_in_cents?: number;
55799
+ /**
55800
+ * Proposed leave type. Omit it to keep the current one.
55801
+ */
55802
+ leave_type_id?: string;
55803
+ /**
55804
+ * Proposed description of the leave. Omit it to keep the current one.
55805
+ */
55806
+ description?: string;
55807
+ /**
55808
+ * Why the employee asks for the change.
55809
+ */
55810
+ reason?: string;
55811
+ };
55812
+ path?: never;
55813
+ query?: never;
55814
+ url: '/api/2027-01-01/resources/timeoff/leave_change_requests';
55815
+ };
55816
+ export type PostApi20270101ResourcesTimeoffLeaveChangeRequestsErrors = {
55817
+ /**
55818
+ * Bad Request (malformed_request)
55819
+ */
55820
+ 400: ErrorResponse;
55821
+ /**
55822
+ * Unauthorized (unauthorized)
55823
+ */
55824
+ 401: ErrorResponse;
55825
+ /**
55826
+ * Payment Required (payment_required)
55827
+ */
55828
+ 402: ErrorResponse;
55829
+ /**
55830
+ * Forbidden (forbidden)
55831
+ */
55832
+ 403: ErrorResponse;
55833
+ /**
55834
+ * Not Found (missing_resource)
55835
+ */
55836
+ 404: ErrorResponse;
55837
+ /**
55838
+ * Conflict (invalid_state)
55839
+ */
55840
+ 409: ErrorResponse;
55841
+ /**
55842
+ * Gone
55843
+ */
55844
+ 410: ErrorResponse;
55845
+ /**
55846
+ * Unprocessable Entity (default, validation_failed)
55847
+ */
55848
+ 422: ErrorResponse;
55849
+ /**
55850
+ * Precondition Required
55851
+ */
55852
+ 428: ErrorResponse;
55853
+ /**
55854
+ * Internal Server Error
55855
+ */
55856
+ 500: ErrorResponse;
55857
+ /**
55858
+ * Bad Gateway (malformed_resource)
55859
+ */
55860
+ 502: ErrorResponse;
55861
+ /**
55862
+ * Gateway Timeout (service_unreachable)
55863
+ */
55864
+ 504: ErrorResponse;
55865
+ };
55866
+ export type PostApi20270101ResourcesTimeoffLeaveChangeRequestsError = PostApi20270101ResourcesTimeoffLeaveChangeRequestsErrors[keyof PostApi20270101ResourcesTimeoffLeaveChangeRequestsErrors];
55867
+ export type PostApi20270101ResourcesTimeoffLeaveChangeRequestsResponses = {
55868
+ /**
55869
+ * CREATED
55870
+ */
55871
+ 201: TimeoffLeaveChangeRequest;
55872
+ };
55873
+ export type PostApi20270101ResourcesTimeoffLeaveChangeRequestsResponse = PostApi20270101ResourcesTimeoffLeaveChangeRequestsResponses[keyof PostApi20270101ResourcesTimeoffLeaveChangeRequestsResponses];
55874
+ export type DeleteApi20270101ResourcesTimeoffLeaveChangeRequestsByIdData = {
55875
+ body?: never;
55876
+ path: {
55877
+ /**
55878
+ * Id of the change request to withdraw.
55879
+ */
55880
+ id: string;
55881
+ };
55882
+ query?: never;
55883
+ url: '/api/2027-01-01/resources/timeoff/leave_change_requests/{id}';
55884
+ };
55885
+ export type DeleteApi20270101ResourcesTimeoffLeaveChangeRequestsByIdErrors = {
55886
+ /**
55887
+ * Bad Request (malformed_request)
55888
+ */
55889
+ 400: ErrorResponse;
55890
+ /**
55891
+ * Unauthorized (unauthorized)
55892
+ */
55893
+ 401: ErrorResponse;
55894
+ /**
55895
+ * Payment Required (payment_required)
55896
+ */
55897
+ 402: ErrorResponse;
55898
+ /**
55899
+ * Forbidden (forbidden)
55900
+ */
55901
+ 403: ErrorResponse;
55902
+ /**
55903
+ * Not Found (missing_resource)
55904
+ */
55905
+ 404: ErrorResponse;
55906
+ /**
55907
+ * Conflict (invalid_state)
55908
+ */
55909
+ 409: ErrorResponse;
55910
+ /**
55911
+ * Gone
55912
+ */
55913
+ 410: ErrorResponse;
55914
+ /**
55915
+ * Unprocessable Entity (default, validation_failed)
55916
+ */
55917
+ 422: ErrorResponse;
55918
+ /**
55919
+ * Precondition Required
55920
+ */
55921
+ 428: ErrorResponse;
55922
+ /**
55923
+ * Internal Server Error
55924
+ */
55925
+ 500: ErrorResponse;
55926
+ /**
55927
+ * Bad Gateway (malformed_resource)
55928
+ */
55929
+ 502: ErrorResponse;
55930
+ /**
55931
+ * Gateway Timeout (service_unreachable)
55932
+ */
55933
+ 504: ErrorResponse;
55934
+ };
55935
+ export type DeleteApi20270101ResourcesTimeoffLeaveChangeRequestsByIdError = DeleteApi20270101ResourcesTimeoffLeaveChangeRequestsByIdErrors[keyof DeleteApi20270101ResourcesTimeoffLeaveChangeRequestsByIdErrors];
55936
+ export type DeleteApi20270101ResourcesTimeoffLeaveChangeRequestsByIdResponses = {
55937
+ /**
55938
+ * OK
55939
+ */
55940
+ 200: TimeoffLeaveChangeRequest;
55941
+ };
55942
+ export type DeleteApi20270101ResourcesTimeoffLeaveChangeRequestsByIdResponse = DeleteApi20270101ResourcesTimeoffLeaveChangeRequestsByIdResponses[keyof DeleteApi20270101ResourcesTimeoffLeaveChangeRequestsByIdResponses];
55943
+ export type GetApi20270101ResourcesTimeoffLeaveChangeRequestsByIdData = {
55944
+ body?: never;
55945
+ path: {
55946
+ /**
55947
+ * Return only the change requests with these ids.
55948
+ */
55949
+ id: string;
55950
+ };
55951
+ query?: never;
55952
+ url: '/api/2027-01-01/resources/timeoff/leave_change_requests/{id}';
55953
+ };
55954
+ export type GetApi20270101ResourcesTimeoffLeaveChangeRequestsByIdErrors = {
55955
+ /**
55956
+ * Bad Request (malformed_request)
55957
+ */
55958
+ 400: ErrorResponse;
55959
+ /**
55960
+ * Unauthorized (unauthorized)
55961
+ */
55962
+ 401: ErrorResponse;
55963
+ /**
55964
+ * Payment Required (payment_required)
55965
+ */
55966
+ 402: ErrorResponse;
55967
+ /**
55968
+ * Forbidden (forbidden)
55969
+ */
55970
+ 403: ErrorResponse;
55971
+ /**
55972
+ * Not Found (missing_resource)
55973
+ */
55974
+ 404: ErrorResponse;
55975
+ /**
55976
+ * Conflict (invalid_state)
55977
+ */
55978
+ 409: ErrorResponse;
55979
+ /**
55980
+ * Gone
55981
+ */
55982
+ 410: ErrorResponse;
55983
+ /**
55984
+ * Unprocessable Entity (default, validation_failed)
55985
+ */
55986
+ 422: ErrorResponse;
55987
+ /**
55988
+ * Precondition Required
55989
+ */
55990
+ 428: ErrorResponse;
55991
+ /**
55992
+ * Internal Server Error
55993
+ */
55994
+ 500: ErrorResponse;
55995
+ /**
55996
+ * Bad Gateway (malformed_resource)
55997
+ */
55998
+ 502: ErrorResponse;
55999
+ /**
56000
+ * Gateway Timeout (service_unreachable)
56001
+ */
56002
+ 504: ErrorResponse;
56003
+ };
56004
+ export type GetApi20270101ResourcesTimeoffLeaveChangeRequestsByIdError = GetApi20270101ResourcesTimeoffLeaveChangeRequestsByIdErrors[keyof GetApi20270101ResourcesTimeoffLeaveChangeRequestsByIdErrors];
56005
+ export type GetApi20270101ResourcesTimeoffLeaveChangeRequestsByIdResponses = {
56006
+ /**
56007
+ * OK
56008
+ */
56009
+ 200: TimeoffLeaveChangeRequest;
56010
+ };
56011
+ export type GetApi20270101ResourcesTimeoffLeaveChangeRequestsByIdResponse = GetApi20270101ResourcesTimeoffLeaveChangeRequestsByIdResponses[keyof GetApi20270101ResourcesTimeoffLeaveChangeRequestsByIdResponses];
55393
56012
  export type GetApi20270101ResourcesTimeoffLeaveTypesData = {
55394
56013
  body?: never;
55395
56014
  path?: never;
@@ -61686,6 +62305,16 @@ export type PostWebhooks__Ats__JobPosting__UpdatesWebhookRequest = {
61686
62305
  path?: never;
61687
62306
  query?: never;
61688
62307
  };
62308
+ /**
62309
+ * Callback payload
62310
+ */
62311
+ export type PostWebhooks__Ats__Referral__CreatesWebhookPayload = AtsReferral;
62312
+ export type PostWebhooks__Ats__Referral__CreatesWebhookRequest = {
62313
+ body: PostWebhooks__Ats__Referral__CreatesWebhookPayload;
62314
+ key: 'Webhooks > Ats > Referral > Creates';
62315
+ path?: never;
62316
+ query?: never;
62317
+ };
61689
62318
  /**
61690
62319
  * Callback payload
61691
62320
  */