@factorialco/api-client 3.0.0-beta.2026100133 → 3.0.0-beta.2026100134

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.
@@ -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
  */
@@ -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;