@factorialco/api-client 3.0.0-beta.2026100127 → 3.0.0-beta.2026100129
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 +20 -12
- package/dist/cjs/generated/index.js.map +1 -1
- package/dist/cjs/generated/sdk.gen.d.ts +46 -4
- package/dist/cjs/generated/sdk.gen.d.ts.map +1 -1
- package/dist/cjs/generated/sdk.gen.js +99 -13
- package/dist/cjs/generated/sdk.gen.js.map +1 -1
- package/dist/cjs/generated/types.gen.d.ts +373 -11
- package/dist/cjs/generated/types.gen.d.ts.map +1 -1
- package/dist/cjs/sdk.d.ts +59 -1
- package/dist/cjs/sdk.d.ts.map +1 -1
- package/dist/cjs/sdk.js +69 -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 +46 -4
- package/dist/esm/generated/sdk.gen.d.ts.map +1 -1
- package/dist/esm/generated/sdk.gen.js +81 -3
- package/dist/esm/generated/sdk.gen.js.map +1 -1
- package/dist/esm/generated/types.gen.d.ts +373 -11
- package/dist/esm/generated/types.gen.d.ts.map +1 -1
- package/dist/esm/sdk.d.ts +59 -1
- package/dist/esm/sdk.d.ts.map +1 -1
- package/dist/esm/sdk.js +63 -1
- package/dist/esm/sdk.js.map +1 -1
- package/package.json +1 -1
|
@@ -1367,6 +1367,75 @@ export type CompaniesLegalEntity = {
|
|
|
1367
1367
|
*/
|
|
1368
1368
|
address_line_2?: string;
|
|
1369
1369
|
};
|
|
1370
|
+
export type CompensationsAdditionalCompensation = {
|
|
1371
|
+
/**
|
|
1372
|
+
* The identifier of the additional compensation
|
|
1373
|
+
*/
|
|
1374
|
+
id: string;
|
|
1375
|
+
/**
|
|
1376
|
+
* Contract version this additional compensation is attached to
|
|
1377
|
+
*/
|
|
1378
|
+
contract_version_id: string;
|
|
1379
|
+
/**
|
|
1380
|
+
* Company id
|
|
1381
|
+
*/
|
|
1382
|
+
company_id: string;
|
|
1383
|
+
/**
|
|
1384
|
+
* Payroll concept classifying this additional compensation
|
|
1385
|
+
*/
|
|
1386
|
+
payroll_concept_id: string;
|
|
1387
|
+
/**
|
|
1388
|
+
* Employee id derived from the contract version
|
|
1389
|
+
*/
|
|
1390
|
+
employee_id: string;
|
|
1391
|
+
/**
|
|
1392
|
+
* Recurrence label. One of `monthly`, `every_2_months`, `every_3_months`, `every_4_months`, `every_5_months`, `every_6_months`, `every_7_months`, `every_8_months`, `every_9_months`, `every_10_months`, `every_11_months`, `every_12_months`.
|
|
1393
|
+
*/
|
|
1394
|
+
recurrence?: string;
|
|
1395
|
+
/**
|
|
1396
|
+
* Date of the first payment
|
|
1397
|
+
*/
|
|
1398
|
+
first_payment_on?: string;
|
|
1399
|
+
/**
|
|
1400
|
+
* Free-text description
|
|
1401
|
+
*/
|
|
1402
|
+
description?: string;
|
|
1403
|
+
/**
|
|
1404
|
+
* Amount strategy discriminator — one of `contracts_fixed_amount_strategy`, `contracts_variable_amount_strategy`, `contracts_per_worked_day_amount_strategy`
|
|
1405
|
+
*/
|
|
1406
|
+
amount_strategy_type: 'contracts_fixed_amount_strategy' | 'contracts_variable_amount_strategy' | 'contracts_per_worked_day_amount_strategy';
|
|
1407
|
+
/**
|
|
1408
|
+
* Amount strategy id
|
|
1409
|
+
*/
|
|
1410
|
+
amount_strategy_id: string;
|
|
1411
|
+
/**
|
|
1412
|
+
* Amount value (Fixed / PerWorkedDay strategies)
|
|
1413
|
+
*/
|
|
1414
|
+
amount?: number;
|
|
1415
|
+
/**
|
|
1416
|
+
* Upper limit (Variable strategy only)
|
|
1417
|
+
*/
|
|
1418
|
+
upper_limit?: number;
|
|
1419
|
+
/**
|
|
1420
|
+
* Definition object populated for PerWorkedDay strategies. Carries `calculation_source`, `reference_time`, `minimum_amount_of_hours_in_minutes`, `work_locations`, `timeoff_leave_type_ids`, and `eligible_days`. `null` for Fixed / Variable strategies.
|
|
1421
|
+
*/
|
|
1422
|
+
per_worked_day_definition: {
|
|
1423
|
+
calculation_source: string;
|
|
1424
|
+
reference_time: string;
|
|
1425
|
+
minimum_amount_of_hours_in_minutes?: number;
|
|
1426
|
+
work_locations?: Array<string>;
|
|
1427
|
+
timeoff_leave_type_ids?: Array<string>;
|
|
1428
|
+
eligible_days?: Array<string>;
|
|
1429
|
+
};
|
|
1430
|
+
/**
|
|
1431
|
+
* Timestamp when the additional compensation was created
|
|
1432
|
+
*/
|
|
1433
|
+
created_at: string;
|
|
1434
|
+
/**
|
|
1435
|
+
* Timestamp when the additional compensation was last updated
|
|
1436
|
+
*/
|
|
1437
|
+
updated_at: string;
|
|
1438
|
+
};
|
|
1370
1439
|
export type CompensationsConcept = {
|
|
1371
1440
|
/**
|
|
1372
1441
|
* The identifier of the concept
|
|
@@ -1497,15 +1566,15 @@ export type CompensationsEmployeesCompensation = {
|
|
|
1497
1566
|
*/
|
|
1498
1567
|
amount_is_overwritten: boolean;
|
|
1499
1568
|
/**
|
|
1500
|
-
*
|
|
1569
|
+
* Record projection type (always `compensation` on this endpoint)
|
|
1501
1570
|
*/
|
|
1502
1571
|
result_type?: 'compensation' | 'payroll_result';
|
|
1503
1572
|
/**
|
|
1504
|
-
* Source type discriminator (nullable — dashboard-created
|
|
1573
|
+
* Source type discriminator (nullable — dashboard-created records have no source)
|
|
1505
1574
|
*/
|
|
1506
1575
|
source_type?: 'compensations_compensationpolicy' | 'timesettings_customtimerangecategory' | 'expenses_expensable' | 'expenses_expense' | 'expenses_mileage' | 'benefits_compensation' | 'salary_advance_request' | 'incentives_compensationplanrequest' | 'attendance_review';
|
|
1507
1576
|
/**
|
|
1508
|
-
* Source id (nullable — dashboard-created
|
|
1577
|
+
* Source id (nullable — dashboard-created records have no source)
|
|
1509
1578
|
*/
|
|
1510
1579
|
source_id?: string;
|
|
1511
1580
|
/**
|
|
@@ -1629,6 +1698,44 @@ export type CompensationsPayrollRun = {
|
|
|
1629
1698
|
*/
|
|
1630
1699
|
updated_at?: string;
|
|
1631
1700
|
};
|
|
1701
|
+
export type CompensationsPayrollRunEmployeesCompensation = {
|
|
1702
|
+
/**
|
|
1703
|
+
* Payroll run employee compensation id
|
|
1704
|
+
*/
|
|
1705
|
+
id: string;
|
|
1706
|
+
/**
|
|
1707
|
+
* Employee id (participant of the payroll run)
|
|
1708
|
+
*/
|
|
1709
|
+
payroll_run_employee_id: string;
|
|
1710
|
+
/**
|
|
1711
|
+
* Payroll concept id
|
|
1712
|
+
*/
|
|
1713
|
+
payroll_concept_id: string;
|
|
1714
|
+
/**
|
|
1715
|
+
* Parent payroll run id
|
|
1716
|
+
*/
|
|
1717
|
+
payroll_run_id: string;
|
|
1718
|
+
/**
|
|
1719
|
+
* Record projection type — `compensation` (input) or `payroll_result` (computed)
|
|
1720
|
+
*/
|
|
1721
|
+
result_type: string;
|
|
1722
|
+
/**
|
|
1723
|
+
* Amount strategy discriminator
|
|
1724
|
+
*/
|
|
1725
|
+
amount_strategy_type: 'compensations_fixed_amount_strategy' | 'compensations_variable_amount_strategy' | 'compensations_per_worked_day_amount_strategy';
|
|
1726
|
+
/**
|
|
1727
|
+
* When the record was created
|
|
1728
|
+
*/
|
|
1729
|
+
created_at: string;
|
|
1730
|
+
/**
|
|
1731
|
+
* When the record was last updated
|
|
1732
|
+
*/
|
|
1733
|
+
updated_at: string;
|
|
1734
|
+
/**
|
|
1735
|
+
* Aggregated compensation value for this concept and employee within the payroll run, in minor units. For `payroll_result` records, this is the value the bookkeeper computed for that concept (e.g. net pay).
|
|
1736
|
+
*/
|
|
1737
|
+
amount?: number;
|
|
1738
|
+
};
|
|
1632
1739
|
export type ContractsCompensation = {
|
|
1633
1740
|
/**
|
|
1634
1741
|
* Unique identifier of the compensation
|
|
@@ -3430,7 +3537,7 @@ export type ExpensesExpensable = {
|
|
|
3430
3537
|
*/
|
|
3431
3538
|
effective_on?: string;
|
|
3432
3539
|
/**
|
|
3433
|
-
* The
|
|
3540
|
+
* The date and time the expensable was submitted for review. Null while it is a draft; set at submission and never cleared, so it is always present once an approval flow or a policy check runs (they start at submission). Compare it with `effective_on` to measure how late a document was submitted.
|
|
3434
3541
|
*/
|
|
3435
3542
|
review_request_at?: string;
|
|
3436
3543
|
/**
|
|
@@ -10991,6 +11098,10 @@ export type PostApi20261001ResourcesAttendanceShiftsData = {
|
|
|
10991
11098
|
* Id of the location related
|
|
10992
11099
|
*/
|
|
10993
11100
|
workplace_id?: string;
|
|
11101
|
+
/**
|
|
11102
|
+
* Id of the project worker the shift is imputed to. A time record for that project is created with the shift.
|
|
11103
|
+
*/
|
|
11104
|
+
project_worker_id?: string;
|
|
10994
11105
|
};
|
|
10995
11106
|
path?: never;
|
|
10996
11107
|
query?: never;
|
|
@@ -11815,6 +11926,190 @@ export type GetApi20261001ResourcesCompaniesLegalEntitiesByIdResponses = {
|
|
|
11815
11926
|
200: CompaniesLegalEntity;
|
|
11816
11927
|
};
|
|
11817
11928
|
export type GetApi20261001ResourcesCompaniesLegalEntitiesByIdResponse = GetApi20261001ResourcesCompaniesLegalEntitiesByIdResponses[keyof GetApi20261001ResourcesCompaniesLegalEntitiesByIdResponses];
|
|
11929
|
+
export type GetApi20261001ResourcesCompensationsAdditionalCompensationsData = {
|
|
11930
|
+
body?: never;
|
|
11931
|
+
path?: never;
|
|
11932
|
+
query?: {
|
|
11933
|
+
/**
|
|
11934
|
+
* Filter by additional compensation ids
|
|
11935
|
+
*/
|
|
11936
|
+
'ids[]'?: Array<string>;
|
|
11937
|
+
/**
|
|
11938
|
+
* Filter by contract version ids, refers to contracts/contract_versions endpoint.
|
|
11939
|
+
*/
|
|
11940
|
+
'contract_version_ids[]'?: Array<string>;
|
|
11941
|
+
/**
|
|
11942
|
+
* Filter by employee ids, refers to employees/employees endpoint.
|
|
11943
|
+
*/
|
|
11944
|
+
'employee_ids[]'?: Array<string>;
|
|
11945
|
+
/**
|
|
11946
|
+
* Filter by payroll concept ids, refers to compensations/concepts endpoint.
|
|
11947
|
+
*/
|
|
11948
|
+
'payroll_concept_ids[]'?: Array<string>;
|
|
11949
|
+
};
|
|
11950
|
+
url: '/api/2026-10-01/resources/compensations/additional_compensations';
|
|
11951
|
+
};
|
|
11952
|
+
export type GetApi20261001ResourcesCompensationsAdditionalCompensationsResponses = {
|
|
11953
|
+
/**
|
|
11954
|
+
* OK
|
|
11955
|
+
*/
|
|
11956
|
+
200: {
|
|
11957
|
+
data?: Array<CompensationsAdditionalCompensation>;
|
|
11958
|
+
meta?: PagedIndexMeta;
|
|
11959
|
+
};
|
|
11960
|
+
};
|
|
11961
|
+
export type GetApi20261001ResourcesCompensationsAdditionalCompensationsResponse = GetApi20261001ResourcesCompensationsAdditionalCompensationsResponses[keyof GetApi20261001ResourcesCompensationsAdditionalCompensationsResponses];
|
|
11962
|
+
export type PostApi20261001ResourcesCompensationsAdditionalCompensationsData = {
|
|
11963
|
+
body?: {
|
|
11964
|
+
/**
|
|
11965
|
+
* Target contract version id, refers to contracts/contract_versions endpoint.
|
|
11966
|
+
*/
|
|
11967
|
+
contract_version_id: string;
|
|
11968
|
+
/**
|
|
11969
|
+
* Payroll concept id, refers to compensations/concepts endpoint.
|
|
11970
|
+
*/
|
|
11971
|
+
payroll_concept_id: string;
|
|
11972
|
+
/**
|
|
11973
|
+
* Amount strategy discriminator
|
|
11974
|
+
*/
|
|
11975
|
+
amount_strategy_type: 'contracts_fixed_amount_strategy' | 'contracts_variable_amount_strategy' | 'contracts_per_worked_day_amount_strategy';
|
|
11976
|
+
/**
|
|
11977
|
+
* Amount value (required for Fixed and PerWorkedDay strategies)
|
|
11978
|
+
*/
|
|
11979
|
+
amount?: number;
|
|
11980
|
+
/**
|
|
11981
|
+
* Upper limit for Variable strategy (ignored for others)
|
|
11982
|
+
*/
|
|
11983
|
+
upper_limit?: number;
|
|
11984
|
+
/**
|
|
11985
|
+
* Definition object required when `amount_strategy_type = contracts_per_worked_day_amount_strategy`. Carries `calculation_source`, `reference_time`, `minimum_amount_of_hours_in_minutes`, `work_locations`, `timeoff_leave_type_ids`, and `eligible_days`.
|
|
11986
|
+
*/
|
|
11987
|
+
per_worked_day_definition: {
|
|
11988
|
+
calculation_source: string;
|
|
11989
|
+
reference_time: string;
|
|
11990
|
+
minimum_amount_of_hours_in_minutes?: number;
|
|
11991
|
+
work_locations?: Array<string>;
|
|
11992
|
+
timeoff_leave_type_ids?: Array<string>;
|
|
11993
|
+
eligible_days?: Array<string>;
|
|
11994
|
+
};
|
|
11995
|
+
/**
|
|
11996
|
+
* Free-text description
|
|
11997
|
+
*/
|
|
11998
|
+
description?: string;
|
|
11999
|
+
/**
|
|
12000
|
+
* Recurrence label. One of `monthly`, `every_2_months`, `every_3_months`, `every_4_months`, `every_5_months`, `every_6_months`, `every_7_months`, `every_8_months`, `every_9_months`, `every_10_months`, `every_11_months`, `every_12_months`.
|
|
12001
|
+
*/
|
|
12002
|
+
recurrence?: 'monthly' | 'every_2_months' | 'every_3_months' | 'every_4_months' | 'every_5_months' | 'every_6_months' | 'every_7_months' | 'every_8_months' | 'every_9_months' | 'every_10_months' | 'every_11_months' | 'every_12_months';
|
|
12003
|
+
/**
|
|
12004
|
+
* Date of the first payment (must be on or after the contract version's effective month)
|
|
12005
|
+
*/
|
|
12006
|
+
first_payment_on?: string;
|
|
12007
|
+
};
|
|
12008
|
+
path?: never;
|
|
12009
|
+
query?: never;
|
|
12010
|
+
url: '/api/2026-10-01/resources/compensations/additional_compensations';
|
|
12011
|
+
};
|
|
12012
|
+
export type PostApi20261001ResourcesCompensationsAdditionalCompensationsResponses = {
|
|
12013
|
+
/**
|
|
12014
|
+
* CREATED
|
|
12015
|
+
*/
|
|
12016
|
+
201: CompensationsAdditionalCompensation;
|
|
12017
|
+
};
|
|
12018
|
+
export type PostApi20261001ResourcesCompensationsAdditionalCompensationsResponse = PostApi20261001ResourcesCompensationsAdditionalCompensationsResponses[keyof PostApi20261001ResourcesCompensationsAdditionalCompensationsResponses];
|
|
12019
|
+
export type DeleteApi20261001ResourcesCompensationsAdditionalCompensationsByIdData = {
|
|
12020
|
+
body?: never;
|
|
12021
|
+
path: {
|
|
12022
|
+
/**
|
|
12023
|
+
* Additional compensation id to delete
|
|
12024
|
+
*/
|
|
12025
|
+
id: string;
|
|
12026
|
+
};
|
|
12027
|
+
query?: never;
|
|
12028
|
+
url: '/api/2026-10-01/resources/compensations/additional_compensations/{id}';
|
|
12029
|
+
};
|
|
12030
|
+
export type DeleteApi20261001ResourcesCompensationsAdditionalCompensationsByIdResponses = {
|
|
12031
|
+
/**
|
|
12032
|
+
* OK
|
|
12033
|
+
*/
|
|
12034
|
+
200: CompensationsAdditionalCompensation;
|
|
12035
|
+
};
|
|
12036
|
+
export type DeleteApi20261001ResourcesCompensationsAdditionalCompensationsByIdResponse = DeleteApi20261001ResourcesCompensationsAdditionalCompensationsByIdResponses[keyof DeleteApi20261001ResourcesCompensationsAdditionalCompensationsByIdResponses];
|
|
12037
|
+
export type GetApi20261001ResourcesCompensationsAdditionalCompensationsByIdData = {
|
|
12038
|
+
body?: never;
|
|
12039
|
+
path: {
|
|
12040
|
+
/**
|
|
12041
|
+
* Filter by additional compensation ids
|
|
12042
|
+
*/
|
|
12043
|
+
id: string;
|
|
12044
|
+
};
|
|
12045
|
+
query?: never;
|
|
12046
|
+
url: '/api/2026-10-01/resources/compensations/additional_compensations/{id}';
|
|
12047
|
+
};
|
|
12048
|
+
export type GetApi20261001ResourcesCompensationsAdditionalCompensationsByIdResponses = {
|
|
12049
|
+
/**
|
|
12050
|
+
* OK
|
|
12051
|
+
*/
|
|
12052
|
+
200: CompensationsAdditionalCompensation;
|
|
12053
|
+
};
|
|
12054
|
+
export type GetApi20261001ResourcesCompensationsAdditionalCompensationsByIdResponse = GetApi20261001ResourcesCompensationsAdditionalCompensationsByIdResponses[keyof GetApi20261001ResourcesCompensationsAdditionalCompensationsByIdResponses];
|
|
12055
|
+
export type PutApi20261001ResourcesCompensationsAdditionalCompensationsByIdData = {
|
|
12056
|
+
body?: {
|
|
12057
|
+
/**
|
|
12058
|
+
* Additional compensation id
|
|
12059
|
+
*/
|
|
12060
|
+
id: string;
|
|
12061
|
+
/**
|
|
12062
|
+
* Amount strategy discriminator
|
|
12063
|
+
*/
|
|
12064
|
+
amount_strategy_type?: 'contracts_fixed_amount_strategy' | 'contracts_variable_amount_strategy' | 'contracts_per_worked_day_amount_strategy';
|
|
12065
|
+
/**
|
|
12066
|
+
* Updated amount value (Fixed and PerWorkedDay strategies)
|
|
12067
|
+
*/
|
|
12068
|
+
amount?: number;
|
|
12069
|
+
/**
|
|
12070
|
+
* Updated upper limit (Variable strategy only)
|
|
12071
|
+
*/
|
|
12072
|
+
upper_limit?: number;
|
|
12073
|
+
/**
|
|
12074
|
+
* Definition object for PerWorkedDay strategies. Same shape as on create — replaces the previous definition when supplied.
|
|
12075
|
+
*/
|
|
12076
|
+
per_worked_day_definition: {
|
|
12077
|
+
calculation_source: string;
|
|
12078
|
+
reference_time: string;
|
|
12079
|
+
minimum_amount_of_hours_in_minutes?: number;
|
|
12080
|
+
work_locations?: Array<string>;
|
|
12081
|
+
timeoff_leave_type_ids?: Array<string>;
|
|
12082
|
+
eligible_days?: Array<string>;
|
|
12083
|
+
};
|
|
12084
|
+
/**
|
|
12085
|
+
* Free-text description
|
|
12086
|
+
*/
|
|
12087
|
+
description?: string;
|
|
12088
|
+
/**
|
|
12089
|
+
* Recurrence label. Same enum as on create.
|
|
12090
|
+
*/
|
|
12091
|
+
recurrence?: 'monthly' | 'every_2_months' | 'every_3_months' | 'every_4_months' | 'every_5_months' | 'every_6_months' | 'every_7_months' | 'every_8_months' | 'every_9_months' | 'every_10_months' | 'every_11_months' | 'every_12_months';
|
|
12092
|
+
/**
|
|
12093
|
+
* Date of the first payment
|
|
12094
|
+
*/
|
|
12095
|
+
first_payment_on?: string;
|
|
12096
|
+
};
|
|
12097
|
+
path: {
|
|
12098
|
+
/**
|
|
12099
|
+
* Additional compensation id
|
|
12100
|
+
*/
|
|
12101
|
+
id: string;
|
|
12102
|
+
};
|
|
12103
|
+
query?: never;
|
|
12104
|
+
url: '/api/2026-10-01/resources/compensations/additional_compensations/{id}';
|
|
12105
|
+
};
|
|
12106
|
+
export type PutApi20261001ResourcesCompensationsAdditionalCompensationsByIdResponses = {
|
|
12107
|
+
/**
|
|
12108
|
+
* OK
|
|
12109
|
+
*/
|
|
12110
|
+
200: CompensationsAdditionalCompensation;
|
|
12111
|
+
};
|
|
12112
|
+
export type PutApi20261001ResourcesCompensationsAdditionalCompensationsByIdResponse = PutApi20261001ResourcesCompensationsAdditionalCompensationsByIdResponses[keyof PutApi20261001ResourcesCompensationsAdditionalCompensationsByIdResponses];
|
|
11818
12113
|
export type GetApi20261001ResourcesCompensationsConceptsData = {
|
|
11819
12114
|
body?: never;
|
|
11820
12115
|
path?: never;
|
|
@@ -12149,7 +12444,7 @@ export type PutApi20261001ResourcesCompensationsEmployeesCompensationsByIdData =
|
|
|
12149
12444
|
id: string;
|
|
12150
12445
|
amount?: number;
|
|
12151
12446
|
/**
|
|
12152
|
-
* Manual override of the strategy-computed amount; not allowed on fixed-strategy
|
|
12447
|
+
* Manual override of the strategy-computed amount; not allowed on fixed-strategy records (422 `overwrite_not_applicable`)
|
|
12153
12448
|
*/
|
|
12154
12449
|
amount_overwritten?: number;
|
|
12155
12450
|
/**
|
|
@@ -12311,6 +12606,65 @@ export type GetApi20261001ResourcesCompensationsPayrollRunsByIdResponses = {
|
|
|
12311
12606
|
200: CompensationsPayrollRun;
|
|
12312
12607
|
};
|
|
12313
12608
|
export type GetApi20261001ResourcesCompensationsPayrollRunsByIdResponse = GetApi20261001ResourcesCompensationsPayrollRunsByIdResponses[keyof GetApi20261001ResourcesCompensationsPayrollRunsByIdResponses];
|
|
12609
|
+
export type GetApi20261001ResourcesCompensationsPayrollRunEmployeesCompensationsData = {
|
|
12610
|
+
body?: never;
|
|
12611
|
+
path?: never;
|
|
12612
|
+
query?: {
|
|
12613
|
+
/**
|
|
12614
|
+
* Payroll run employee compensation ids
|
|
12615
|
+
*/
|
|
12616
|
+
'ids[]'?: Array<string>;
|
|
12617
|
+
/**
|
|
12618
|
+
* Filter by payroll run ids, refers to compensations/payroll_runs endpoint.
|
|
12619
|
+
*/
|
|
12620
|
+
'payroll_run_ids[]'?: Array<string>;
|
|
12621
|
+
/**
|
|
12622
|
+
* Filter by employee ids (participants of the payroll run)
|
|
12623
|
+
*/
|
|
12624
|
+
'payroll_run_employee_ids[]'?: Array<string>;
|
|
12625
|
+
/**
|
|
12626
|
+
* Filter by payroll concept ids, refers to compensations/concepts endpoint.
|
|
12627
|
+
*/
|
|
12628
|
+
'payroll_concept_ids[]'?: Array<string>;
|
|
12629
|
+
/**
|
|
12630
|
+
* Filter by record projection type — `compensation` (input) or `payroll_result` (computed)
|
|
12631
|
+
*/
|
|
12632
|
+
result_type?: 'compensation' | 'payroll_result';
|
|
12633
|
+
/**
|
|
12634
|
+
* Filter by legal entity ids, refers to companies/legal_entities endpoint.
|
|
12635
|
+
*/
|
|
12636
|
+
'legal_entity_ids[]'?: Array<string>;
|
|
12637
|
+
};
|
|
12638
|
+
url: '/api/2026-10-01/resources/compensations/payroll_run_employees_compensations';
|
|
12639
|
+
};
|
|
12640
|
+
export type GetApi20261001ResourcesCompensationsPayrollRunEmployeesCompensationsResponses = {
|
|
12641
|
+
/**
|
|
12642
|
+
* OK
|
|
12643
|
+
*/
|
|
12644
|
+
200: {
|
|
12645
|
+
data?: Array<CompensationsPayrollRunEmployeesCompensation>;
|
|
12646
|
+
meta?: PagedIndexMeta;
|
|
12647
|
+
};
|
|
12648
|
+
};
|
|
12649
|
+
export type GetApi20261001ResourcesCompensationsPayrollRunEmployeesCompensationsResponse = GetApi20261001ResourcesCompensationsPayrollRunEmployeesCompensationsResponses[keyof GetApi20261001ResourcesCompensationsPayrollRunEmployeesCompensationsResponses];
|
|
12650
|
+
export type GetApi20261001ResourcesCompensationsPayrollRunEmployeesCompensationsByIdData = {
|
|
12651
|
+
body?: never;
|
|
12652
|
+
path: {
|
|
12653
|
+
/**
|
|
12654
|
+
* Payroll run employee compensation ids
|
|
12655
|
+
*/
|
|
12656
|
+
id: string;
|
|
12657
|
+
};
|
|
12658
|
+
query?: never;
|
|
12659
|
+
url: '/api/2026-10-01/resources/compensations/payroll_run_employees_compensations/{id}';
|
|
12660
|
+
};
|
|
12661
|
+
export type GetApi20261001ResourcesCompensationsPayrollRunEmployeesCompensationsByIdResponses = {
|
|
12662
|
+
/**
|
|
12663
|
+
* OK
|
|
12664
|
+
*/
|
|
12665
|
+
200: CompensationsPayrollRunEmployeesCompensation;
|
|
12666
|
+
};
|
|
12667
|
+
export type GetApi20261001ResourcesCompensationsPayrollRunEmployeesCompensationsByIdResponse = GetApi20261001ResourcesCompensationsPayrollRunEmployeesCompensationsByIdResponses[keyof GetApi20261001ResourcesCompensationsPayrollRunEmployeesCompensationsByIdResponses];
|
|
12314
12668
|
export type GetApi20261001ResourcesContractsCompensationsData = {
|
|
12315
12669
|
body?: never;
|
|
12316
12670
|
path?: never;
|
|
@@ -14179,7 +14533,7 @@ export type PostApi20261001ResourcesDocumentsDocumentsRestoreFromTrashBinRespons
|
|
|
14179
14533
|
export type PostApi20261001ResourcesDocumentsDownloadUrlsBulkCreateData = {
|
|
14180
14534
|
body?: {
|
|
14181
14535
|
/**
|
|
14182
|
-
* list of document identifiers.
|
|
14536
|
+
* list of document identifiers (between 1 and 100).
|
|
14183
14537
|
*/
|
|
14184
14538
|
ids?: Array<string>;
|
|
14185
14539
|
};
|
|
@@ -14448,11 +14802,15 @@ export type PutApi20261001ResourcesEmployeesEmployeesByIdData = {
|
|
|
14448
14802
|
*/
|
|
14449
14803
|
country?: string;
|
|
14450
14804
|
/**
|
|
14451
|
-
* bank account number of the employee.
|
|
14805
|
+
* bank account number of the employee, in the format given by bank_number_format.
|
|
14452
14806
|
*/
|
|
14453
14807
|
bank_number?: string;
|
|
14454
14808
|
/**
|
|
14455
|
-
*
|
|
14809
|
+
* format of bank_number. Required when bank_number is set.
|
|
14810
|
+
*/
|
|
14811
|
+
bank_number_format?: 'iban' | 'sort_code_and_account_number' | 'routing_number_and_account_number' | 'clabe' | 'other' | 'bank_name_and_account_number';
|
|
14812
|
+
/**
|
|
14813
|
+
* SWIFT/BIC for iban, the sort code for sort_code_and_account_number, the routing number for routing_number_and_account_number, the bank name for bank_name_and_account_number. Required for those three formats.
|
|
14456
14814
|
*/
|
|
14457
14815
|
swift_bic?: string;
|
|
14458
14816
|
/**
|
|
@@ -24137,7 +24495,7 @@ export type GetApi20261001ResourcesTimeoffAllowanceStatsData = {
|
|
|
24137
24495
|
*/
|
|
24138
24496
|
'ids[]'?: Array<string>;
|
|
24139
24497
|
/**
|
|
24140
|
-
*
|
|
24498
|
+
* IDs of the employees to read allowance stats for, at most 25 per request. Leave it empty to read every employee you have access to. Naming an employee you cannot access returns an empty page rather than the stats for the others.
|
|
24141
24499
|
*/
|
|
24142
24500
|
'employee_ids[]'?: Array<string>;
|
|
24143
24501
|
/**
|
|
@@ -24149,7 +24507,7 @@ export type GetApi20261001ResourcesTimeoffAllowanceStatsData = {
|
|
|
24149
24507
|
*/
|
|
24150
24508
|
reference_date?: string;
|
|
24151
24509
|
/**
|
|
24152
|
-
* When provided, computes the stats as if the employee were moved to this target time off policy effective the day AFTER reference_date, so pass the day before the change date - for a change effective on 2026-08-03, send reference_date=2026-08-02. This truncates the source policy's current cycle at that boundary so available_days reflects the prorated balance that would actually transfer or be discarded on the change, rather than the full entitlement. Purely a read - nothing is persisted. Requires the policy timeline feature; without it the result is identical to an un-simulated read.
|
|
24510
|
+
* When provided, computes the stats as if the employee were moved to this target time off policy effective the day AFTER reference_date, so pass the day before the change date - for a change effective on 2026-08-03, send reference_date=2026-08-02. This truncates the source policy's current cycle at that boundary so available_days reflects the prorated balance that would actually transfer or be discarded on the change, rather than the full entitlement. Purely a read - nothing is persisted. Requires the policy timeline feature; without it the result is identical to an un-simulated read. Can only be used together with employee_ids, because a simulation needs every employee in the read to belong to the target policy's company - which a company-wide read cannot guarantee.
|
|
24153
24511
|
*/
|
|
24154
24512
|
simulate_policy_change_to_id?: string;
|
|
24155
24513
|
};
|
|
@@ -24974,6 +25332,10 @@ export type PostApi20261001ResourcesTimeoffPoliciesData = {
|
|
|
24974
25332
|
* Company ID.
|
|
24975
25333
|
*/
|
|
24976
25334
|
company_id?: string;
|
|
25335
|
+
/**
|
|
25336
|
+
* ID of an existing policy to copy. When set, the new policy is created with a copy of that policy's allowances and no employees assigned. Omit it to create a policy from scratch.
|
|
25337
|
+
*/
|
|
25338
|
+
based_on_policy_id?: string;
|
|
24977
25339
|
};
|
|
24978
25340
|
path?: never;
|
|
24979
25341
|
query?: never;
|
|
@@ -26571,7 +26933,7 @@ export type PostApi20261001ResourcesTrainingsTrainingMembershipsBulkCreateData =
|
|
|
26571
26933
|
/**
|
|
26572
26934
|
* ids for the accesses to be assigned in a training
|
|
26573
26935
|
*/
|
|
26574
|
-
employee_ids
|
|
26936
|
+
employee_ids?: Array<string>;
|
|
26575
26937
|
/**
|
|
26576
26938
|
* Training id to be assigned
|
|
26577
26939
|
*/
|