@factorialco/api-client 3.0.0-beta.2026100133 → 3.0.0-beta.2026100135
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 +14 -11
- package/dist/cjs/generated/index.js.map +1 -1
- package/dist/cjs/generated/sdk.gen.d.ts +19 -1
- package/dist/cjs/generated/sdk.gen.d.ts.map +1 -1
- package/dist/cjs/generated/sdk.gen.js +86 -53
- package/dist/cjs/generated/sdk.gen.js.map +1 -1
- package/dist/cjs/generated/types.gen.d.ts +147 -7
- package/dist/cjs/generated/types.gen.d.ts.map +1 -1
- package/dist/cjs/sdk.d.ts +51 -1
- package/dist/cjs/sdk.d.ts.map +1 -1
- package/dist/cjs/sdk.js +61 -5
- package/dist/cjs/sdk.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 +19 -1
- package/dist/esm/generated/sdk.gen.d.ts.map +1 -1
- package/dist/esm/generated/sdk.gen.js +72 -42
- package/dist/esm/generated/sdk.gen.js.map +1 -1
- package/dist/esm/generated/types.gen.d.ts +147 -7
- package/dist/esm/generated/types.gen.d.ts.map +1 -1
- package/dist/esm/sdk.d.ts +51 -1
- package/dist/esm/sdk.d.ts.map +1 -1
- package/dist/esm/sdk.js +55 -1
- package/dist/esm/sdk.js.map +1 -1
- package/package.json +1 -1
|
@@ -1798,6 +1798,70 @@ export type ContractsCompensation = {
|
|
|
1798
1798
|
*/
|
|
1799
1799
|
minimum_amount_of_hours_in_cents?: number;
|
|
1800
1800
|
};
|
|
1801
|
+
export type ContractsContract = {
|
|
1802
|
+
/**
|
|
1803
|
+
* contract identifier
|
|
1804
|
+
*/
|
|
1805
|
+
id: string;
|
|
1806
|
+
/**
|
|
1807
|
+
* employee identifier
|
|
1808
|
+
*/
|
|
1809
|
+
employee_id: string;
|
|
1810
|
+
/**
|
|
1811
|
+
* ISO country code the contract is governed by
|
|
1812
|
+
*/
|
|
1813
|
+
country: string;
|
|
1814
|
+
/**
|
|
1815
|
+
* ID of the company that owns the contract
|
|
1816
|
+
*/
|
|
1817
|
+
company_id: string;
|
|
1818
|
+
/**
|
|
1819
|
+
* ID of the legal entity the employee is contracted under
|
|
1820
|
+
*/
|
|
1821
|
+
legal_entity_id: string;
|
|
1822
|
+
/**
|
|
1823
|
+
* contract start date
|
|
1824
|
+
*/
|
|
1825
|
+
starts_on: string;
|
|
1826
|
+
/**
|
|
1827
|
+
* contract end date
|
|
1828
|
+
*/
|
|
1829
|
+
ends_on?: string;
|
|
1830
|
+
/**
|
|
1831
|
+
* Whether this is a discontinuous (intermittent) contract
|
|
1832
|
+
*/
|
|
1833
|
+
is_discontinuous: boolean;
|
|
1834
|
+
/**
|
|
1835
|
+
* Whether the contract is already over, currently in force, or has not started yet
|
|
1836
|
+
*/
|
|
1837
|
+
schedule: 'expired' | 'ongoing' | 'upcoming';
|
|
1838
|
+
};
|
|
1839
|
+
export type ContractsContractActivityPeriod = {
|
|
1840
|
+
/**
|
|
1841
|
+
* Identifier of the period, built from the contract id and the period start date. Periods are derived rather than stored, so this id is stable only while the underlying contract versions do not change.
|
|
1842
|
+
*/
|
|
1843
|
+
id: string;
|
|
1844
|
+
/**
|
|
1845
|
+
* ID of the contract this period belongs to.
|
|
1846
|
+
*/
|
|
1847
|
+
contract_id: string;
|
|
1848
|
+
/**
|
|
1849
|
+
* ID of the employee who holds the contract.
|
|
1850
|
+
*/
|
|
1851
|
+
employee_id: string;
|
|
1852
|
+
/**
|
|
1853
|
+
* Whether the employee is working during this period (activity) or not (inactivity). Only discontinuous contracts produce inactivity periods.
|
|
1854
|
+
*/
|
|
1855
|
+
type: 'activity' | 'inactivity';
|
|
1856
|
+
/**
|
|
1857
|
+
* First day of the period.
|
|
1858
|
+
*/
|
|
1859
|
+
activity_period_starts_on: string;
|
|
1860
|
+
/**
|
|
1861
|
+
* Last day of the period, or null when the period is still open ended.
|
|
1862
|
+
*/
|
|
1863
|
+
activity_period_ends_on?: string;
|
|
1864
|
+
};
|
|
1801
1865
|
export type ContractsContractTemplate = {
|
|
1802
1866
|
/**
|
|
1803
1867
|
* Unique identifier for the contract template
|
|
@@ -1833,6 +1897,10 @@ export type ContractsContractVersion = {
|
|
|
1833
1897
|
* nationality country code of the employee (Spain ES, United Kingdom GB).
|
|
1834
1898
|
*/
|
|
1835
1899
|
country?: string;
|
|
1900
|
+
/**
|
|
1901
|
+
* contract identifier, refers to the /contracts/contracts endpoint. Use it to read the contract this version belongs to, and its activity periods.
|
|
1902
|
+
*/
|
|
1903
|
+
contracts_contract_id?: string;
|
|
1836
1904
|
/**
|
|
1837
1905
|
* job title of the employee.
|
|
1838
1906
|
*/
|
|
@@ -4829,7 +4897,7 @@ export type IntegrationsSyncableItem = {
|
|
|
4829
4897
|
/**
|
|
4830
4898
|
* Type of the syncable item
|
|
4831
4899
|
*/
|
|
4832
|
-
syncable_type: 'compensations/compensation' | 'expenses/expense' | 'employee_updates/leave' | 'employee_updates/new_hire' | 'employee_updates/worked_time' | 'finance/vendor';
|
|
4900
|
+
syncable_type: 'compensations/compensation' | 'expenses/expense' | 'employee_updates/leave' | 'employee_updates/new_hire' | 'employee_updates/termination' | 'employee_updates/worked_time' | 'finance/vendor';
|
|
4833
4901
|
};
|
|
4834
4902
|
export type IntegrationsSyncableState = {
|
|
4835
4903
|
/**
|
|
@@ -5312,6 +5380,10 @@ export type MarketplaceInstallationSettings = {
|
|
|
5312
5380
|
* Company-level code
|
|
5313
5381
|
*/
|
|
5314
5382
|
company_code?: string;
|
|
5383
|
+
/**
|
|
5384
|
+
* Consultant identifier for the installation (e.g. the DATEV Beraternummer)
|
|
5385
|
+
*/
|
|
5386
|
+
consultant_id?: string;
|
|
5315
5387
|
/**
|
|
5316
5388
|
* Legal entity codes (id is the legal entity id)
|
|
5317
5389
|
*/
|
|
@@ -12812,6 +12884,74 @@ export type PutApi20261001ResourcesContractsCompensationsByIdResponses = {
|
|
|
12812
12884
|
200: ContractsCompensation;
|
|
12813
12885
|
};
|
|
12814
12886
|
export type PutApi20261001ResourcesContractsCompensationsByIdResponse = PutApi20261001ResourcesContractsCompensationsByIdResponses[keyof PutApi20261001ResourcesContractsCompensationsByIdResponses];
|
|
12887
|
+
export type GetApi20261001ResourcesContractsContractsData = {
|
|
12888
|
+
body?: never;
|
|
12889
|
+
path?: never;
|
|
12890
|
+
query?: {
|
|
12891
|
+
/**
|
|
12892
|
+
* Return only the contracts with these ids.
|
|
12893
|
+
*/
|
|
12894
|
+
'ids[]'?: Array<string>;
|
|
12895
|
+
/**
|
|
12896
|
+
* Return only the contracts of these employees.
|
|
12897
|
+
*/
|
|
12898
|
+
'employee_ids[]'?: Array<string>;
|
|
12899
|
+
/**
|
|
12900
|
+
* Return only the contracts starting exactly on this date. This is an equality match on the contract's start date, not a lower bound.
|
|
12901
|
+
*/
|
|
12902
|
+
starts_on?: string;
|
|
12903
|
+
};
|
|
12904
|
+
url: '/api/2026-10-01/resources/contracts/contracts';
|
|
12905
|
+
};
|
|
12906
|
+
export type GetApi20261001ResourcesContractsContractsResponses = {
|
|
12907
|
+
/**
|
|
12908
|
+
* OK
|
|
12909
|
+
*/
|
|
12910
|
+
200: {
|
|
12911
|
+
data?: Array<ContractsContract>;
|
|
12912
|
+
meta?: PagedIndexMeta;
|
|
12913
|
+
};
|
|
12914
|
+
};
|
|
12915
|
+
export type GetApi20261001ResourcesContractsContractsResponse = GetApi20261001ResourcesContractsContractsResponses[keyof GetApi20261001ResourcesContractsContractsResponses];
|
|
12916
|
+
export type GetApi20261001ResourcesContractsContractsByIdData = {
|
|
12917
|
+
body?: never;
|
|
12918
|
+
path: {
|
|
12919
|
+
/**
|
|
12920
|
+
* Return only the contracts with these ids.
|
|
12921
|
+
*/
|
|
12922
|
+
id: string;
|
|
12923
|
+
};
|
|
12924
|
+
query?: never;
|
|
12925
|
+
url: '/api/2026-10-01/resources/contracts/contracts/{id}';
|
|
12926
|
+
};
|
|
12927
|
+
export type GetApi20261001ResourcesContractsContractsByIdResponses = {
|
|
12928
|
+
/**
|
|
12929
|
+
* OK
|
|
12930
|
+
*/
|
|
12931
|
+
200: ContractsContract;
|
|
12932
|
+
};
|
|
12933
|
+
export type GetApi20261001ResourcesContractsContractsByIdResponse = GetApi20261001ResourcesContractsContractsByIdResponses[keyof GetApi20261001ResourcesContractsContractsByIdResponses];
|
|
12934
|
+
export type GetApi20261001ResourcesContractsContractActivityPeriodsData = {
|
|
12935
|
+
body?: never;
|
|
12936
|
+
path?: never;
|
|
12937
|
+
query: {
|
|
12938
|
+
/**
|
|
12939
|
+
* The contract whose periods are returned. Required — periods are computed per contract rather than stored, so they cannot be listed across a company.
|
|
12940
|
+
*/
|
|
12941
|
+
contract_id: string;
|
|
12942
|
+
};
|
|
12943
|
+
url: '/api/2026-10-01/resources/contracts/contract_activity_periods';
|
|
12944
|
+
};
|
|
12945
|
+
export type GetApi20261001ResourcesContractsContractActivityPeriodsResponses = {
|
|
12946
|
+
/**
|
|
12947
|
+
* OK
|
|
12948
|
+
*/
|
|
12949
|
+
200: {
|
|
12950
|
+
data?: Array<ContractsContractActivityPeriod>;
|
|
12951
|
+
meta?: PagedIndexMeta;
|
|
12952
|
+
};
|
|
12953
|
+
};
|
|
12954
|
+
export type GetApi20261001ResourcesContractsContractActivityPeriodsResponse = GetApi20261001ResourcesContractsContractActivityPeriodsResponses[keyof GetApi20261001ResourcesContractsContractActivityPeriodsResponses];
|
|
12815
12955
|
export type GetApi20261001ResourcesContractsContractTemplatesData = {
|
|
12816
12956
|
body?: never;
|
|
12817
12957
|
path?: never;
|
|
@@ -17459,13 +17599,13 @@ export type GetApi20261001ResourcesIntegrationsSyncRunsResponse = GetApi20261001
|
|
|
17459
17599
|
export type PostApi20261001ResourcesIntegrationsSyncRunsData = {
|
|
17460
17600
|
body?: {
|
|
17461
17601
|
/**
|
|
17462
|
-
* Identifier of the company the sync run belongs to.
|
|
17602
|
+
* Identifier of the company the sync run belongs to. Optional: defaults to the company the credential is scoped to.
|
|
17463
17603
|
*/
|
|
17464
|
-
company_id
|
|
17604
|
+
company_id?: string;
|
|
17465
17605
|
/**
|
|
17466
|
-
* UUID of the marketplace integration to create a sync run for.
|
|
17606
|
+
* UUID of the marketplace integration to create a sync run for. Optional: defaults to the integration the OAuth credential belongs to. Sending a different one is rejected.
|
|
17467
17607
|
*/
|
|
17468
|
-
marketplace_integration_uuid
|
|
17608
|
+
marketplace_integration_uuid?: string;
|
|
17469
17609
|
};
|
|
17470
17610
|
path?: never;
|
|
17471
17611
|
query?: never;
|
|
@@ -17664,9 +17804,9 @@ export type PostApi20261001ResourcesIntegrationsSyncableSyncRunsBulkUpsertData =
|
|
|
17664
17804
|
*/
|
|
17665
17805
|
external_identifier: string;
|
|
17666
17806
|
/**
|
|
17667
|
-
* The Factorial resource type this item maps to
|
|
17807
|
+
* The Factorial resource type this item maps to. Same values returned by GET /syncable_items.
|
|
17668
17808
|
*/
|
|
17669
|
-
syncable_type: '
|
|
17809
|
+
syncable_type: 'compensations/compensation' | 'expenses/expense' | 'employee_updates/leave' | 'employee_updates/new_hire' | 'employee_updates/termination' | 'employee_updates/worked_time' | 'finance/vendor';
|
|
17670
17810
|
/**
|
|
17671
17811
|
* Outcome of processing the item
|
|
17672
17812
|
*/
|