@factorialco/api-client 3.0.0-beta.2026100137 → 3.0.0-beta.2026100139
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 +15 -8
- package/dist/cjs/generated/index.js.map +1 -1
- package/dist/cjs/generated/sdk.gen.d.ts +48 -6
- package/dist/cjs/generated/sdk.gen.d.ts.map +1 -1
- package/dist/cjs/generated/sdk.gen.js +99 -10
- package/dist/cjs/generated/sdk.gen.js.map +1 -1
- package/dist/cjs/generated/types.gen.d.ts +283 -2
- package/dist/cjs/generated/types.gen.d.ts.map +1 -1
- package/dist/cjs/sdk.d.ts +71 -1
- package/dist/cjs/sdk.d.ts.map +1 -1
- package/dist/cjs/sdk.js +86 -3
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/cjs/webhooks.d.ts +7 -1
- package/dist/cjs/webhooks.d.ts.map +1 -1
- package/dist/cjs/webhooks.js +2 -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 +48 -6
- package/dist/esm/generated/sdk.gen.d.ts.map +1 -1
- package/dist/esm/generated/sdk.gen.js +87 -5
- package/dist/esm/generated/sdk.gen.js.map +1 -1
- package/dist/esm/generated/types.gen.d.ts +283 -2
- package/dist/esm/generated/types.gen.d.ts.map +1 -1
- package/dist/esm/sdk.d.ts +71 -1
- package/dist/esm/sdk.d.ts.map +1 -1
- package/dist/esm/sdk.js +80 -1
- package/dist/esm/sdk.js.map +1 -1
- package/dist/esm/webhooks.d.ts +7 -1
- package/dist/esm/webhooks.d.ts.map +1 -1
- package/dist/esm/webhooks.js +2 -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__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__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__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
|
|
@@ -6855,6 +6855,42 @@ export type PostsPost = {
|
|
|
6855
6855
|
posts_group_id?: string;
|
|
6856
6856
|
comments_count: number;
|
|
6857
6857
|
};
|
|
6858
|
+
export type ProcessesMaterializedProcess = {
|
|
6859
|
+
/**
|
|
6860
|
+
* identifier of the workflow run.
|
|
6861
|
+
*/
|
|
6862
|
+
id: string;
|
|
6863
|
+
/**
|
|
6864
|
+
* identifier of the workflow this run follows. Refers to the /processes/processes endpoint.
|
|
6865
|
+
*/
|
|
6866
|
+
process_id: string;
|
|
6867
|
+
/**
|
|
6868
|
+
* state of the run: `running` while the person is going through it, `finalized` once every step is done, `archived` when it was cancelled.
|
|
6869
|
+
*/
|
|
6870
|
+
status: string;
|
|
6871
|
+
/**
|
|
6872
|
+
* when the run finished. Null while it is still running.
|
|
6873
|
+
*/
|
|
6874
|
+
finalized_at?: string;
|
|
6875
|
+
};
|
|
6876
|
+
export type ProcessesProcess = {
|
|
6877
|
+
/**
|
|
6878
|
+
* identifier of the workflow.
|
|
6879
|
+
*/
|
|
6880
|
+
id: string;
|
|
6881
|
+
/**
|
|
6882
|
+
* name of the workflow, as it reads in the product.
|
|
6883
|
+
*/
|
|
6884
|
+
name: string;
|
|
6885
|
+
/**
|
|
6886
|
+
* description of the workflow.
|
|
6887
|
+
*/
|
|
6888
|
+
description?: string;
|
|
6889
|
+
/**
|
|
6890
|
+
* what the workflow is for: `onboarding`, `offboarding`, `training` or `custom`.
|
|
6891
|
+
*/
|
|
6892
|
+
category?: 'onboarding' | 'offboarding' | 'training' | 'custom';
|
|
6893
|
+
};
|
|
6858
6894
|
export type ProcurementPoFieldValue = {
|
|
6859
6895
|
/**
|
|
6860
6896
|
* The id of the field value
|
|
@@ -7898,6 +7934,18 @@ export type TeamsMembership = {
|
|
|
7898
7934
|
* Whether the employee is a lead of the team or not
|
|
7899
7935
|
*/
|
|
7900
7936
|
lead: boolean;
|
|
7937
|
+
/**
|
|
7938
|
+
* IDs of the teams this membership originates from (nested teams). In a company with nested teams, a direct membership includes the team itself; an inherited one, the sub-team(s) where the employee is a direct member. Only populated on reads that compute source attribution — reads filtered by a single team, or by a single employee with `with_source_attribution` enabled. Empty otherwise, including create, update and delete responses, and always empty for companies without nested teams. An empty array does not distinguish "computed and genuinely empty" from "not computed for this read" or "could not be computed", so only apply attribution-dependent logic to a read you explicitly shaped for it. A team-anchored read stops attributing above roughly a thousand members of the filtered team: past that the attribution is not computed at all and every row comes back empty, behind a normal `200`.
|
|
7939
|
+
*/
|
|
7940
|
+
source_team_ids: Array<string>;
|
|
7941
|
+
/**
|
|
7942
|
+
* IDs of the ancestor teams that receive an inherited membership through this row (nested teams) — the teams this membership rolls up into. Populated under the same conditions as `source_team_ids`; empty otherwise.
|
|
7943
|
+
*/
|
|
7944
|
+
parent_team_ids: Array<string>;
|
|
7945
|
+
/**
|
|
7946
|
+
* Whether the employee is a direct member of the team (nested teams). Always present. `true` means direct member; `false` means the row exists only through inheritance from a sub-team; `null` means not computed for this read. Only computed on reads filtered by a single employee with `with_source_attribution` enabled — always `null` otherwise, including create, update and delete responses and companies without nested teams. `null` is also returned when directness could not be resolved for a transient reason, even with `with_source_attribution` enabled, so never treat `null` as `false` — retry the read instead.
|
|
7947
|
+
*/
|
|
7948
|
+
direct?: boolean;
|
|
7901
7949
|
};
|
|
7902
7950
|
export type TeamsTeam = {
|
|
7903
7951
|
/**
|
|
@@ -7912,6 +7960,9 @@ export type TeamsTeam = {
|
|
|
7912
7960
|
* Free-text description of the team
|
|
7913
7961
|
*/
|
|
7914
7962
|
description?: string;
|
|
7963
|
+
/**
|
|
7964
|
+
* URL of the team's avatar image (null when the team has none)
|
|
7965
|
+
*/
|
|
7915
7966
|
avatar?: string;
|
|
7916
7967
|
/**
|
|
7917
7968
|
* IDs of the employees who are members of this team
|
|
@@ -7925,6 +7976,14 @@ export type TeamsTeam = {
|
|
|
7925
7976
|
* ID of the company this team belongs to
|
|
7926
7977
|
*/
|
|
7927
7978
|
company_id: string;
|
|
7979
|
+
/**
|
|
7980
|
+
* Depth of this team in the nested-team hierarchy: 1 for a top-level team, 2 for its children, and so on. Returned by read, create and move; null on update and delete, which do not change the hierarchy, and always null for companies without nested teams.
|
|
7981
|
+
*/
|
|
7982
|
+
depth?: number;
|
|
7983
|
+
/**
|
|
7984
|
+
* ID of the parent team this team is nested under (null for a root team). Returned by read, create and move; null on update and delete, which do not change the hierarchy, and always null for companies without nested teams.
|
|
7985
|
+
*/
|
|
7986
|
+
parent_team_id?: string;
|
|
7928
7987
|
};
|
|
7929
7988
|
export type TimeoffAllowance = {
|
|
7930
7989
|
/**
|
|
@@ -8650,6 +8709,32 @@ export type TimeSettingsBreakConfiguration = {
|
|
|
8650
8709
|
paid: boolean;
|
|
8651
8710
|
archived: boolean;
|
|
8652
8711
|
};
|
|
8712
|
+
export type TimeSettingsSplitCustomTimeRangeCategory = {
|
|
8713
|
+
/**
|
|
8714
|
+
* Split custom time range category identifier.
|
|
8715
|
+
*/
|
|
8716
|
+
id: string;
|
|
8717
|
+
/**
|
|
8718
|
+
* The parent custom time range category's name (the split has no name of its own); combine with time_type to label the split, e.g. "Night work (overtime)".
|
|
8719
|
+
*/
|
|
8720
|
+
name: string;
|
|
8721
|
+
/**
|
|
8722
|
+
* Whether the split covers regular or overtime work.
|
|
8723
|
+
*/
|
|
8724
|
+
time_type: 'regular' | 'overtime' | 'any_time';
|
|
8725
|
+
/**
|
|
8726
|
+
* Whether the split is active, i.e. its parent category is not archived.
|
|
8727
|
+
*/
|
|
8728
|
+
active: boolean;
|
|
8729
|
+
/**
|
|
8730
|
+
* Company the category belongs to.
|
|
8731
|
+
*/
|
|
8732
|
+
company_id: string;
|
|
8733
|
+
/**
|
|
8734
|
+
* Parent custom time range category this split belongs to.
|
|
8735
|
+
*/
|
|
8736
|
+
custom_time_range_category_id: string;
|
|
8737
|
+
};
|
|
8653
8738
|
export type TrainingsCategory = {
|
|
8654
8739
|
id: string;
|
|
8655
8740
|
name: string;
|
|
@@ -21659,6 +21744,79 @@ export type PutApi20261001ResourcesPostsPostsByIdResponses = {
|
|
|
21659
21744
|
200: PostsPost;
|
|
21660
21745
|
};
|
|
21661
21746
|
export type PutApi20261001ResourcesPostsPostsByIdResponse = PutApi20261001ResourcesPostsPostsByIdResponses[keyof PutApi20261001ResourcesPostsPostsByIdResponses];
|
|
21747
|
+
export type PostApi20261001ResourcesProcessesMaterializedProcessesData = {
|
|
21748
|
+
body?: {
|
|
21749
|
+
/**
|
|
21750
|
+
* identifier of the company the workflow belongs to.
|
|
21751
|
+
*/
|
|
21752
|
+
company_id: string;
|
|
21753
|
+
/**
|
|
21754
|
+
* identifier of the workflow to assign. Read /processes/processes to find it.
|
|
21755
|
+
*/
|
|
21756
|
+
process_id: string;
|
|
21757
|
+
/**
|
|
21758
|
+
* identifier of the employee to assign, refers to the /employees/employees endpoint. The employee needs whatever the workflow's steps read about them — typically manager, team and contract — before being assigned; a step that cannot resolve them blocks until an admin unblocks it.
|
|
21759
|
+
*/
|
|
21760
|
+
employee_id?: string;
|
|
21761
|
+
};
|
|
21762
|
+
path?: never;
|
|
21763
|
+
query?: never;
|
|
21764
|
+
url: '/api/2026-10-01/resources/processes/materialized_processes';
|
|
21765
|
+
};
|
|
21766
|
+
export type PostApi20261001ResourcesProcessesMaterializedProcessesResponses = {
|
|
21767
|
+
/**
|
|
21768
|
+
* CREATED
|
|
21769
|
+
*/
|
|
21770
|
+
201: ProcessesMaterializedProcess;
|
|
21771
|
+
};
|
|
21772
|
+
export type PostApi20261001ResourcesProcessesMaterializedProcessesResponse = PostApi20261001ResourcesProcessesMaterializedProcessesResponses[keyof PostApi20261001ResourcesProcessesMaterializedProcessesResponses];
|
|
21773
|
+
export type GetApi20261001ResourcesProcessesProcessesData = {
|
|
21774
|
+
body?: never;
|
|
21775
|
+
path?: never;
|
|
21776
|
+
query?: {
|
|
21777
|
+
/**
|
|
21778
|
+
* identifiers of the workflows to return.
|
|
21779
|
+
*/
|
|
21780
|
+
'ids[]'?: Array<string>;
|
|
21781
|
+
/**
|
|
21782
|
+
* return only workflows of these categories: `onboarding`, `offboarding`, `training` or `custom`.
|
|
21783
|
+
*/
|
|
21784
|
+
'categories[]'?: 'onboarding' | 'offboarding' | 'training' | 'custom';
|
|
21785
|
+
/**
|
|
21786
|
+
* return only workflows whose name contains this text.
|
|
21787
|
+
*/
|
|
21788
|
+
name?: string;
|
|
21789
|
+
};
|
|
21790
|
+
url: '/api/2026-10-01/resources/processes/processes';
|
|
21791
|
+
};
|
|
21792
|
+
export type GetApi20261001ResourcesProcessesProcessesResponses = {
|
|
21793
|
+
/**
|
|
21794
|
+
* OK
|
|
21795
|
+
*/
|
|
21796
|
+
200: {
|
|
21797
|
+
data?: Array<ProcessesProcess>;
|
|
21798
|
+
meta?: PagedIndexMeta;
|
|
21799
|
+
};
|
|
21800
|
+
};
|
|
21801
|
+
export type GetApi20261001ResourcesProcessesProcessesResponse = GetApi20261001ResourcesProcessesProcessesResponses[keyof GetApi20261001ResourcesProcessesProcessesResponses];
|
|
21802
|
+
export type GetApi20261001ResourcesProcessesProcessesByIdData = {
|
|
21803
|
+
body?: never;
|
|
21804
|
+
path: {
|
|
21805
|
+
/**
|
|
21806
|
+
* identifiers of the workflows to return.
|
|
21807
|
+
*/
|
|
21808
|
+
id: string;
|
|
21809
|
+
};
|
|
21810
|
+
query?: never;
|
|
21811
|
+
url: '/api/2026-10-01/resources/processes/processes/{id}';
|
|
21812
|
+
};
|
|
21813
|
+
export type GetApi20261001ResourcesProcessesProcessesByIdResponses = {
|
|
21814
|
+
/**
|
|
21815
|
+
* OK
|
|
21816
|
+
*/
|
|
21817
|
+
200: ProcessesProcess;
|
|
21818
|
+
};
|
|
21819
|
+
export type GetApi20261001ResourcesProcessesProcessesByIdResponse = GetApi20261001ResourcesProcessesProcessesByIdResponses[keyof GetApi20261001ResourcesProcessesProcessesByIdResponses];
|
|
21662
21820
|
export type GetApi20261001ResourcesProcurementPoFieldValuesData = {
|
|
21663
21821
|
body?: never;
|
|
21664
21822
|
path?: never;
|
|
@@ -24479,6 +24637,10 @@ export type GetApi20261001ResourcesTeamsMembershipsData = {
|
|
|
24479
24637
|
* Return only the memberships of these employees.
|
|
24480
24638
|
*/
|
|
24481
24639
|
'employee_ids[]'?: Array<string>;
|
|
24640
|
+
/**
|
|
24641
|
+
* Populate `direct`, `source_team_ids` and `parent_team_ids` on each returned membership (nested teams). Only honoured when filtering by a single `employee_ids` value without `team_ids` — the read that attributes one employee's own memberships, and the only one that resolves `direct`. Reads filtered by a single team already return `source_team_ids`/`parent_team_ids` without this flag (`direct` stays null there); bulk reads ignore it entirely. Unsupported filter combinations return `200` with empty attribution rather than an error. Attribution is resolved per employee and is significantly more expensive than a plain read: intended for per-profile lookups, not bulk synchronization.
|
|
24642
|
+
*/
|
|
24643
|
+
with_source_attribution?: boolean;
|
|
24482
24644
|
};
|
|
24483
24645
|
url: '/api/2026-10-01/resources/teams/memberships';
|
|
24484
24646
|
};
|
|
@@ -24503,7 +24665,7 @@ export type PostApi20261001ResourcesTeamsMembershipsData = {
|
|
|
24503
24665
|
*/
|
|
24504
24666
|
employee_id: string;
|
|
24505
24667
|
/**
|
|
24506
|
-
* Makes the employee a lead of the team.
|
|
24668
|
+
* Makes the employee a lead of the team. Omit it to leave an existing row's flag untouched; a new row is created without leadership.
|
|
24507
24669
|
*/
|
|
24508
24670
|
lead?: boolean;
|
|
24509
24671
|
};
|
|
@@ -24581,6 +24743,32 @@ export type PutApi20261001ResourcesTeamsMembershipsByIdResponses = {
|
|
|
24581
24743
|
200: TeamsMembership;
|
|
24582
24744
|
};
|
|
24583
24745
|
export type PutApi20261001ResourcesTeamsMembershipsByIdResponse = PutApi20261001ResourcesTeamsMembershipsByIdResponses[keyof PutApi20261001ResourcesTeamsMembershipsByIdResponses];
|
|
24746
|
+
export type PostApi20261001ResourcesTeamsMembershipsMoveData = {
|
|
24747
|
+
body?: {
|
|
24748
|
+
/**
|
|
24749
|
+
* ID of the membership to move (must be a direct membership)
|
|
24750
|
+
*/
|
|
24751
|
+
id: string;
|
|
24752
|
+
/**
|
|
24753
|
+
* ID of the destination team
|
|
24754
|
+
*/
|
|
24755
|
+
destination_team_id: string;
|
|
24756
|
+
/**
|
|
24757
|
+
* Whether the employee should be a lead in the destination team. Omit it to keep the membership's current lead flag; pass false to move the employee and drop their leadership. Worth being explicit when restructuring: omitting it carries leadership across, so a lead of a small team who lands in a large one leads the large one.
|
|
24758
|
+
*/
|
|
24759
|
+
lead?: boolean;
|
|
24760
|
+
};
|
|
24761
|
+
path?: never;
|
|
24762
|
+
query?: never;
|
|
24763
|
+
url: '/api/2026-10-01/resources/teams/memberships/move';
|
|
24764
|
+
};
|
|
24765
|
+
export type PostApi20261001ResourcesTeamsMembershipsMoveResponses = {
|
|
24766
|
+
/**
|
|
24767
|
+
* OK
|
|
24768
|
+
*/
|
|
24769
|
+
200: TeamsMembership;
|
|
24770
|
+
};
|
|
24771
|
+
export type PostApi20261001ResourcesTeamsMembershipsMoveResponse = PostApi20261001ResourcesTeamsMembershipsMoveResponses[keyof PostApi20261001ResourcesTeamsMembershipsMoveResponses];
|
|
24584
24772
|
export type GetApi20261001ResourcesTeamsTeamsData = {
|
|
24585
24773
|
body?: never;
|
|
24586
24774
|
path?: never;
|
|
@@ -24612,6 +24800,10 @@ export type PostApi20261001ResourcesTeamsTeamsData = {
|
|
|
24612
24800
|
* Description of the team
|
|
24613
24801
|
*/
|
|
24614
24802
|
description?: string;
|
|
24803
|
+
/**
|
|
24804
|
+
* ID of the parent team to nest the new team under (omit or null for a root team). Requires the nested teams feature and permission to manage the parent team; the hierarchy is capped at 4 levels.
|
|
24805
|
+
*/
|
|
24806
|
+
parent_team_id?: string;
|
|
24615
24807
|
};
|
|
24616
24808
|
path?: never;
|
|
24617
24809
|
query?: never;
|
|
@@ -24695,6 +24887,28 @@ export type PutApi20261001ResourcesTeamsTeamsByIdResponses = {
|
|
|
24695
24887
|
200: TeamsTeam;
|
|
24696
24888
|
};
|
|
24697
24889
|
export type PutApi20261001ResourcesTeamsTeamsByIdResponse = PutApi20261001ResourcesTeamsTeamsByIdResponses[keyof PutApi20261001ResourcesTeamsTeamsByIdResponses];
|
|
24890
|
+
export type PostApi20261001ResourcesTeamsTeamsMoveData = {
|
|
24891
|
+
body?: {
|
|
24892
|
+
/**
|
|
24893
|
+
* ID of the team to move
|
|
24894
|
+
*/
|
|
24895
|
+
id: string;
|
|
24896
|
+
/**
|
|
24897
|
+
* ID of the new parent team (required); null moves the team to the root of the hierarchy.
|
|
24898
|
+
*/
|
|
24899
|
+
destination_parent_team_id?: string;
|
|
24900
|
+
};
|
|
24901
|
+
path?: never;
|
|
24902
|
+
query?: never;
|
|
24903
|
+
url: '/api/2026-10-01/resources/teams/teams/move';
|
|
24904
|
+
};
|
|
24905
|
+
export type PostApi20261001ResourcesTeamsTeamsMoveResponses = {
|
|
24906
|
+
/**
|
|
24907
|
+
* OK
|
|
24908
|
+
*/
|
|
24909
|
+
200: TeamsTeam;
|
|
24910
|
+
};
|
|
24911
|
+
export type PostApi20261001ResourcesTeamsTeamsMoveResponse = PostApi20261001ResourcesTeamsTeamsMoveResponses[keyof PostApi20261001ResourcesTeamsTeamsMoveResponses];
|
|
24698
24912
|
export type GetApi20261001ResourcesTimeoffAllowancesData = {
|
|
24699
24913
|
body?: never;
|
|
24700
24914
|
path?: never;
|
|
@@ -26626,6 +26840,53 @@ export type PutApi20261001ResourcesTimeSettingsBreakConfigurationsByIdResponses
|
|
|
26626
26840
|
200: TimeSettingsBreakConfiguration;
|
|
26627
26841
|
};
|
|
26628
26842
|
export type PutApi20261001ResourcesTimeSettingsBreakConfigurationsByIdResponse = PutApi20261001ResourcesTimeSettingsBreakConfigurationsByIdResponses[keyof PutApi20261001ResourcesTimeSettingsBreakConfigurationsByIdResponses];
|
|
26843
|
+
export type GetApi20261001ResourcesTimeSettingsSplitCustomTimeRangeCategoriesData = {
|
|
26844
|
+
body?: never;
|
|
26845
|
+
path?: never;
|
|
26846
|
+
query?: {
|
|
26847
|
+
/**
|
|
26848
|
+
* Split custom time range category IDs to filter by.
|
|
26849
|
+
*/
|
|
26850
|
+
'ids[]'?: Array<string>;
|
|
26851
|
+
/**
|
|
26852
|
+
* Company ID to scope the query to.
|
|
26853
|
+
*/
|
|
26854
|
+
company_id?: string;
|
|
26855
|
+
/**
|
|
26856
|
+
* Filter by whether the category is active.
|
|
26857
|
+
*/
|
|
26858
|
+
active?: boolean;
|
|
26859
|
+
};
|
|
26860
|
+
url: '/api/2026-10-01/resources/time_settings/split_custom_time_range_categories';
|
|
26861
|
+
};
|
|
26862
|
+
export type GetApi20261001ResourcesTimeSettingsSplitCustomTimeRangeCategoriesResponses = {
|
|
26863
|
+
/**
|
|
26864
|
+
* OK
|
|
26865
|
+
*/
|
|
26866
|
+
200: {
|
|
26867
|
+
data?: Array<TimeSettingsSplitCustomTimeRangeCategory>;
|
|
26868
|
+
meta?: PagedIndexMeta;
|
|
26869
|
+
};
|
|
26870
|
+
};
|
|
26871
|
+
export type GetApi20261001ResourcesTimeSettingsSplitCustomTimeRangeCategoriesResponse = GetApi20261001ResourcesTimeSettingsSplitCustomTimeRangeCategoriesResponses[keyof GetApi20261001ResourcesTimeSettingsSplitCustomTimeRangeCategoriesResponses];
|
|
26872
|
+
export type GetApi20261001ResourcesTimeSettingsSplitCustomTimeRangeCategoriesByIdData = {
|
|
26873
|
+
body?: never;
|
|
26874
|
+
path: {
|
|
26875
|
+
/**
|
|
26876
|
+
* Split custom time range category IDs to filter by.
|
|
26877
|
+
*/
|
|
26878
|
+
id: string;
|
|
26879
|
+
};
|
|
26880
|
+
query?: never;
|
|
26881
|
+
url: '/api/2026-10-01/resources/time_settings/split_custom_time_range_categories/{id}';
|
|
26882
|
+
};
|
|
26883
|
+
export type GetApi20261001ResourcesTimeSettingsSplitCustomTimeRangeCategoriesByIdResponses = {
|
|
26884
|
+
/**
|
|
26885
|
+
* OK
|
|
26886
|
+
*/
|
|
26887
|
+
200: TimeSettingsSplitCustomTimeRangeCategory;
|
|
26888
|
+
};
|
|
26889
|
+
export type GetApi20261001ResourcesTimeSettingsSplitCustomTimeRangeCategoriesByIdResponse = GetApi20261001ResourcesTimeSettingsSplitCustomTimeRangeCategoriesByIdResponses[keyof GetApi20261001ResourcesTimeSettingsSplitCustomTimeRangeCategoriesByIdResponses];
|
|
26629
26890
|
export type GetApi20261001ResourcesTrainingsCategoriesData = {
|
|
26630
26891
|
body?: never;
|
|
26631
26892
|
path?: never;
|
|
@@ -29004,6 +29265,16 @@ export type PostWebhooks__Teams__Membership__DeletesWebhookRequest = {
|
|
|
29004
29265
|
path?: never;
|
|
29005
29266
|
query?: never;
|
|
29006
29267
|
};
|
|
29268
|
+
/**
|
|
29269
|
+
* Callback payload
|
|
29270
|
+
*/
|
|
29271
|
+
export type PostWebhooks__Teams__Membership__MovesWebhookPayload = TeamsMembership;
|
|
29272
|
+
export type PostWebhooks__Teams__Membership__MovesWebhookRequest = {
|
|
29273
|
+
body: PostWebhooks__Teams__Membership__MovesWebhookPayload;
|
|
29274
|
+
key: 'Webhooks > Teams > Membership > Moves';
|
|
29275
|
+
path?: never;
|
|
29276
|
+
query?: never;
|
|
29277
|
+
};
|
|
29007
29278
|
/**
|
|
29008
29279
|
* Callback payload
|
|
29009
29280
|
*/
|
|
@@ -29034,6 +29305,16 @@ export type PostWebhooks__Teams__Team__DeletesWebhookRequest = {
|
|
|
29034
29305
|
path?: never;
|
|
29035
29306
|
query?: never;
|
|
29036
29307
|
};
|
|
29308
|
+
/**
|
|
29309
|
+
* Callback payload
|
|
29310
|
+
*/
|
|
29311
|
+
export type PostWebhooks__Teams__Team__MovesWebhookPayload = TeamsTeam;
|
|
29312
|
+
export type PostWebhooks__Teams__Team__MovesWebhookRequest = {
|
|
29313
|
+
body: PostWebhooks__Teams__Team__MovesWebhookPayload;
|
|
29314
|
+
key: 'Webhooks > Teams > Team > Moves';
|
|
29315
|
+
path?: never;
|
|
29316
|
+
query?: never;
|
|
29317
|
+
};
|
|
29037
29318
|
/**
|
|
29038
29319
|
* Callback payload
|
|
29039
29320
|
*/
|