@factorialco/api-client 3.0.0-beta.2026100137 → 3.0.0-beta.2026100138
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 +13 -8
- package/dist/cjs/generated/index.js.map +1 -1
- package/dist/cjs/generated/sdk.gen.d.ts +36 -6
- package/dist/cjs/generated/sdk.gen.d.ts.map +1 -1
- package/dist/cjs/generated/sdk.gen.js +77 -10
- package/dist/cjs/generated/sdk.gen.js.map +1 -1
- package/dist/cjs/generated/types.gen.d.ts +210 -2
- package/dist/cjs/generated/types.gen.d.ts.map +1 -1
- package/dist/cjs/sdk.d.ts +45 -1
- package/dist/cjs/sdk.d.ts.map +1 -1
- package/dist/cjs/sdk.js +57 -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 +36 -6
- package/dist/esm/generated/sdk.gen.d.ts.map +1 -1
- package/dist/esm/generated/sdk.gen.js +67 -5
- package/dist/esm/generated/sdk.gen.js.map +1 -1
- package/dist/esm/generated/types.gen.d.ts +210 -2
- package/dist/esm/generated/types.gen.d.ts.map +1 -1
- package/dist/esm/sdk.d.ts +45 -1
- package/dist/esm/sdk.d.ts.map +1 -1
- package/dist/esm/sdk.js +52 -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
|
/**
|
|
@@ -21659,6 +21718,79 @@ export type PutApi20261001ResourcesPostsPostsByIdResponses = {
|
|
|
21659
21718
|
200: PostsPost;
|
|
21660
21719
|
};
|
|
21661
21720
|
export type PutApi20261001ResourcesPostsPostsByIdResponse = PutApi20261001ResourcesPostsPostsByIdResponses[keyof PutApi20261001ResourcesPostsPostsByIdResponses];
|
|
21721
|
+
export type PostApi20261001ResourcesProcessesMaterializedProcessesData = {
|
|
21722
|
+
body?: {
|
|
21723
|
+
/**
|
|
21724
|
+
* identifier of the company the workflow belongs to.
|
|
21725
|
+
*/
|
|
21726
|
+
company_id: string;
|
|
21727
|
+
/**
|
|
21728
|
+
* identifier of the workflow to assign. Read /processes/processes to find it.
|
|
21729
|
+
*/
|
|
21730
|
+
process_id: string;
|
|
21731
|
+
/**
|
|
21732
|
+
* 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.
|
|
21733
|
+
*/
|
|
21734
|
+
employee_id?: string;
|
|
21735
|
+
};
|
|
21736
|
+
path?: never;
|
|
21737
|
+
query?: never;
|
|
21738
|
+
url: '/api/2026-10-01/resources/processes/materialized_processes';
|
|
21739
|
+
};
|
|
21740
|
+
export type PostApi20261001ResourcesProcessesMaterializedProcessesResponses = {
|
|
21741
|
+
/**
|
|
21742
|
+
* CREATED
|
|
21743
|
+
*/
|
|
21744
|
+
201: ProcessesMaterializedProcess;
|
|
21745
|
+
};
|
|
21746
|
+
export type PostApi20261001ResourcesProcessesMaterializedProcessesResponse = PostApi20261001ResourcesProcessesMaterializedProcessesResponses[keyof PostApi20261001ResourcesProcessesMaterializedProcessesResponses];
|
|
21747
|
+
export type GetApi20261001ResourcesProcessesProcessesData = {
|
|
21748
|
+
body?: never;
|
|
21749
|
+
path?: never;
|
|
21750
|
+
query?: {
|
|
21751
|
+
/**
|
|
21752
|
+
* identifiers of the workflows to return.
|
|
21753
|
+
*/
|
|
21754
|
+
'ids[]'?: Array<string>;
|
|
21755
|
+
/**
|
|
21756
|
+
* return only workflows of these categories: `onboarding`, `offboarding`, `training` or `custom`.
|
|
21757
|
+
*/
|
|
21758
|
+
'categories[]'?: 'onboarding' | 'offboarding' | 'training' | 'custom';
|
|
21759
|
+
/**
|
|
21760
|
+
* return only workflows whose name contains this text.
|
|
21761
|
+
*/
|
|
21762
|
+
name?: string;
|
|
21763
|
+
};
|
|
21764
|
+
url: '/api/2026-10-01/resources/processes/processes';
|
|
21765
|
+
};
|
|
21766
|
+
export type GetApi20261001ResourcesProcessesProcessesResponses = {
|
|
21767
|
+
/**
|
|
21768
|
+
* OK
|
|
21769
|
+
*/
|
|
21770
|
+
200: {
|
|
21771
|
+
data?: Array<ProcessesProcess>;
|
|
21772
|
+
meta?: PagedIndexMeta;
|
|
21773
|
+
};
|
|
21774
|
+
};
|
|
21775
|
+
export type GetApi20261001ResourcesProcessesProcessesResponse = GetApi20261001ResourcesProcessesProcessesResponses[keyof GetApi20261001ResourcesProcessesProcessesResponses];
|
|
21776
|
+
export type GetApi20261001ResourcesProcessesProcessesByIdData = {
|
|
21777
|
+
body?: never;
|
|
21778
|
+
path: {
|
|
21779
|
+
/**
|
|
21780
|
+
* identifiers of the workflows to return.
|
|
21781
|
+
*/
|
|
21782
|
+
id: string;
|
|
21783
|
+
};
|
|
21784
|
+
query?: never;
|
|
21785
|
+
url: '/api/2026-10-01/resources/processes/processes/{id}';
|
|
21786
|
+
};
|
|
21787
|
+
export type GetApi20261001ResourcesProcessesProcessesByIdResponses = {
|
|
21788
|
+
/**
|
|
21789
|
+
* OK
|
|
21790
|
+
*/
|
|
21791
|
+
200: ProcessesProcess;
|
|
21792
|
+
};
|
|
21793
|
+
export type GetApi20261001ResourcesProcessesProcessesByIdResponse = GetApi20261001ResourcesProcessesProcessesByIdResponses[keyof GetApi20261001ResourcesProcessesProcessesByIdResponses];
|
|
21662
21794
|
export type GetApi20261001ResourcesProcurementPoFieldValuesData = {
|
|
21663
21795
|
body?: never;
|
|
21664
21796
|
path?: never;
|
|
@@ -24479,6 +24611,10 @@ export type GetApi20261001ResourcesTeamsMembershipsData = {
|
|
|
24479
24611
|
* Return only the memberships of these employees.
|
|
24480
24612
|
*/
|
|
24481
24613
|
'employee_ids[]'?: Array<string>;
|
|
24614
|
+
/**
|
|
24615
|
+
* 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.
|
|
24616
|
+
*/
|
|
24617
|
+
with_source_attribution?: boolean;
|
|
24482
24618
|
};
|
|
24483
24619
|
url: '/api/2026-10-01/resources/teams/memberships';
|
|
24484
24620
|
};
|
|
@@ -24503,7 +24639,7 @@ export type PostApi20261001ResourcesTeamsMembershipsData = {
|
|
|
24503
24639
|
*/
|
|
24504
24640
|
employee_id: string;
|
|
24505
24641
|
/**
|
|
24506
|
-
* Makes the employee a lead of the team.
|
|
24642
|
+
* 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
24643
|
*/
|
|
24508
24644
|
lead?: boolean;
|
|
24509
24645
|
};
|
|
@@ -24581,6 +24717,32 @@ export type PutApi20261001ResourcesTeamsMembershipsByIdResponses = {
|
|
|
24581
24717
|
200: TeamsMembership;
|
|
24582
24718
|
};
|
|
24583
24719
|
export type PutApi20261001ResourcesTeamsMembershipsByIdResponse = PutApi20261001ResourcesTeamsMembershipsByIdResponses[keyof PutApi20261001ResourcesTeamsMembershipsByIdResponses];
|
|
24720
|
+
export type PostApi20261001ResourcesTeamsMembershipsMoveData = {
|
|
24721
|
+
body?: {
|
|
24722
|
+
/**
|
|
24723
|
+
* ID of the membership to move (must be a direct membership)
|
|
24724
|
+
*/
|
|
24725
|
+
id: string;
|
|
24726
|
+
/**
|
|
24727
|
+
* ID of the destination team
|
|
24728
|
+
*/
|
|
24729
|
+
destination_team_id: string;
|
|
24730
|
+
/**
|
|
24731
|
+
* 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.
|
|
24732
|
+
*/
|
|
24733
|
+
lead?: boolean;
|
|
24734
|
+
};
|
|
24735
|
+
path?: never;
|
|
24736
|
+
query?: never;
|
|
24737
|
+
url: '/api/2026-10-01/resources/teams/memberships/move';
|
|
24738
|
+
};
|
|
24739
|
+
export type PostApi20261001ResourcesTeamsMembershipsMoveResponses = {
|
|
24740
|
+
/**
|
|
24741
|
+
* OK
|
|
24742
|
+
*/
|
|
24743
|
+
200: TeamsMembership;
|
|
24744
|
+
};
|
|
24745
|
+
export type PostApi20261001ResourcesTeamsMembershipsMoveResponse = PostApi20261001ResourcesTeamsMembershipsMoveResponses[keyof PostApi20261001ResourcesTeamsMembershipsMoveResponses];
|
|
24584
24746
|
export type GetApi20261001ResourcesTeamsTeamsData = {
|
|
24585
24747
|
body?: never;
|
|
24586
24748
|
path?: never;
|
|
@@ -24612,6 +24774,10 @@ export type PostApi20261001ResourcesTeamsTeamsData = {
|
|
|
24612
24774
|
* Description of the team
|
|
24613
24775
|
*/
|
|
24614
24776
|
description?: string;
|
|
24777
|
+
/**
|
|
24778
|
+
* 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.
|
|
24779
|
+
*/
|
|
24780
|
+
parent_team_id?: string;
|
|
24615
24781
|
};
|
|
24616
24782
|
path?: never;
|
|
24617
24783
|
query?: never;
|
|
@@ -24695,6 +24861,28 @@ export type PutApi20261001ResourcesTeamsTeamsByIdResponses = {
|
|
|
24695
24861
|
200: TeamsTeam;
|
|
24696
24862
|
};
|
|
24697
24863
|
export type PutApi20261001ResourcesTeamsTeamsByIdResponse = PutApi20261001ResourcesTeamsTeamsByIdResponses[keyof PutApi20261001ResourcesTeamsTeamsByIdResponses];
|
|
24864
|
+
export type PostApi20261001ResourcesTeamsTeamsMoveData = {
|
|
24865
|
+
body?: {
|
|
24866
|
+
/**
|
|
24867
|
+
* ID of the team to move
|
|
24868
|
+
*/
|
|
24869
|
+
id: string;
|
|
24870
|
+
/**
|
|
24871
|
+
* ID of the new parent team (required); null moves the team to the root of the hierarchy.
|
|
24872
|
+
*/
|
|
24873
|
+
destination_parent_team_id?: string;
|
|
24874
|
+
};
|
|
24875
|
+
path?: never;
|
|
24876
|
+
query?: never;
|
|
24877
|
+
url: '/api/2026-10-01/resources/teams/teams/move';
|
|
24878
|
+
};
|
|
24879
|
+
export type PostApi20261001ResourcesTeamsTeamsMoveResponses = {
|
|
24880
|
+
/**
|
|
24881
|
+
* OK
|
|
24882
|
+
*/
|
|
24883
|
+
200: TeamsTeam;
|
|
24884
|
+
};
|
|
24885
|
+
export type PostApi20261001ResourcesTeamsTeamsMoveResponse = PostApi20261001ResourcesTeamsTeamsMoveResponses[keyof PostApi20261001ResourcesTeamsTeamsMoveResponses];
|
|
24698
24886
|
export type GetApi20261001ResourcesTimeoffAllowancesData = {
|
|
24699
24887
|
body?: never;
|
|
24700
24888
|
path?: never;
|
|
@@ -29004,6 +29192,16 @@ export type PostWebhooks__Teams__Membership__DeletesWebhookRequest = {
|
|
|
29004
29192
|
path?: never;
|
|
29005
29193
|
query?: never;
|
|
29006
29194
|
};
|
|
29195
|
+
/**
|
|
29196
|
+
* Callback payload
|
|
29197
|
+
*/
|
|
29198
|
+
export type PostWebhooks__Teams__Membership__MovesWebhookPayload = TeamsMembership;
|
|
29199
|
+
export type PostWebhooks__Teams__Membership__MovesWebhookRequest = {
|
|
29200
|
+
body: PostWebhooks__Teams__Membership__MovesWebhookPayload;
|
|
29201
|
+
key: 'Webhooks > Teams > Membership > Moves';
|
|
29202
|
+
path?: never;
|
|
29203
|
+
query?: never;
|
|
29204
|
+
};
|
|
29007
29205
|
/**
|
|
29008
29206
|
* Callback payload
|
|
29009
29207
|
*/
|
|
@@ -29034,6 +29232,16 @@ export type PostWebhooks__Teams__Team__DeletesWebhookRequest = {
|
|
|
29034
29232
|
path?: never;
|
|
29035
29233
|
query?: never;
|
|
29036
29234
|
};
|
|
29235
|
+
/**
|
|
29236
|
+
* Callback payload
|
|
29237
|
+
*/
|
|
29238
|
+
export type PostWebhooks__Teams__Team__MovesWebhookPayload = TeamsTeam;
|
|
29239
|
+
export type PostWebhooks__Teams__Team__MovesWebhookRequest = {
|
|
29240
|
+
body: PostWebhooks__Teams__Team__MovesWebhookPayload;
|
|
29241
|
+
key: 'Webhooks > Teams > Team > Moves';
|
|
29242
|
+
path?: never;
|
|
29243
|
+
query?: never;
|
|
29244
|
+
};
|
|
29037
29245
|
/**
|
|
29038
29246
|
* Callback payload
|
|
29039
29247
|
*/
|