@factorialco/api-client 3.0.0-beta.2026100107 → 3.0.0-beta.2026100109

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.
@@ -1345,6 +1345,234 @@ export type CompensationsConcept = {
1345
1345
  * What the concept's amount is measured in (e.g. `money`, a quantity of units)
1346
1346
  */
1347
1347
  unit_type?: 'distance' | 'money' | 'time' | 'unit';
1348
+ /**
1349
+ * Whether the concept is enabled for the company
1350
+ */
1351
+ enabled: boolean;
1352
+ /**
1353
+ * Timestamp when the concept was created
1354
+ */
1355
+ created_at?: string;
1356
+ /**
1357
+ * Timestamp when the concept was last updated
1358
+ */
1359
+ updated_at?: string;
1360
+ };
1361
+ export type CompensationsCycle = {
1362
+ /**
1363
+ * Unique identifier of the compensation cycle
1364
+ */
1365
+ id: string;
1366
+ /**
1367
+ * ID of the company that owns the cycle
1368
+ */
1369
+ company_id: string;
1370
+ /**
1371
+ * How often the cycle recurs (e.g. `monthly`)
1372
+ */
1373
+ recurrence: string;
1374
+ /**
1375
+ * Date of the first payment in the cycle
1376
+ */
1377
+ first_payment?: string;
1378
+ /**
1379
+ * ISO 4217 currency code the cycle pays in
1380
+ */
1381
+ currency?: string;
1382
+ /**
1383
+ * ISO country code the cycle applies to
1384
+ */
1385
+ country?: string;
1386
+ /**
1387
+ * Day of the period on which the cycle's runs close
1388
+ */
1389
+ closure_day?: number;
1390
+ /**
1391
+ * Day of the period on which alerts for the cycle are dispatched
1392
+ */
1393
+ alerts_day?: number;
1394
+ /**
1395
+ * Timestamp of archival (null if active)
1396
+ */
1397
+ archived_at?: string;
1398
+ /**
1399
+ * Timestamp when the cycle record was created
1400
+ */
1401
+ created_at?: string;
1402
+ /**
1403
+ * Timestamp when the cycle record was last updated
1404
+ */
1405
+ updated_at?: string;
1406
+ };
1407
+ export type CompensationsEmployeesCompensation = {
1408
+ /**
1409
+ * Employee compensation id
1410
+ */
1411
+ id: string;
1412
+ /**
1413
+ * Employee id (participant of the payroll run)
1414
+ */
1415
+ payroll_run_employee_id: string;
1416
+ /**
1417
+ * Payroll concept id
1418
+ */
1419
+ payroll_concept_id: string;
1420
+ /**
1421
+ * Parent payroll run id
1422
+ */
1423
+ payroll_run_id: string;
1424
+ /**
1425
+ * Amount strategy discriminator
1426
+ */
1427
+ amount_strategy_type: 'compensations_fixed_amount_strategy' | 'compensations_variable_amount_strategy' | 'compensations_per_worked_day_amount_strategy';
1428
+ /**
1429
+ * Amount strategy id
1430
+ */
1431
+ amount_strategy_id: string;
1432
+ /**
1433
+ * Manual override of the strategy-computed amount (nullable)
1434
+ */
1435
+ amount_overwritten?: number;
1436
+ /**
1437
+ * Whether the amount is a manual override
1438
+ */
1439
+ amount_is_overwritten: boolean;
1440
+ /**
1441
+ * Row projection type (always `compensation` on this endpoint)
1442
+ */
1443
+ result_type?: 'compensation' | 'payroll_result';
1444
+ /**
1445
+ * Source type discriminator (nullable — dashboard-created rows have no source)
1446
+ */
1447
+ source_type?: 'compensations_compensationpolicy' | 'timesettings_customtimerangecategory' | 'expenses_expensable' | 'expenses_expense' | 'expenses_mileage' | 'benefits_compensation' | 'salary_advance_request' | 'incentives_compensationplanrequest' | 'attendance_review';
1448
+ /**
1449
+ * Source id (nullable — dashboard-created rows have no source)
1450
+ */
1451
+ source_id?: string;
1452
+ /**
1453
+ * Employee id of the author (nullable)
1454
+ */
1455
+ created_by_employee_id?: string;
1456
+ /**
1457
+ * Employee id of the last updater (nullable)
1458
+ */
1459
+ last_updated_by_employee_id?: string;
1460
+ /**
1461
+ * Timestamp when the compensation record was created
1462
+ */
1463
+ created_at: string;
1464
+ /**
1465
+ * Timestamp when the compensation record was last updated
1466
+ */
1467
+ updated_at: string;
1468
+ };
1469
+ export type CompensationsPayrollResult = {
1470
+ /**
1471
+ * Payroll result id
1472
+ */
1473
+ id: string;
1474
+ /**
1475
+ * Parent payroll run id
1476
+ */
1477
+ payroll_run_id: string;
1478
+ /**
1479
+ * Employee id (participant of the payroll run)
1480
+ */
1481
+ payroll_run_employee_id: string;
1482
+ /**
1483
+ * Payroll concept id
1484
+ */
1485
+ payroll_concept_id: string;
1486
+ /**
1487
+ * Amount strategy discriminator
1488
+ */
1489
+ amount_strategy_type: 'compensations_fixed_amount_strategy' | 'compensations_variable_amount_strategy' | 'compensations_per_worked_day_amount_strategy';
1490
+ /**
1491
+ * Amount strategy id
1492
+ */
1493
+ amount_strategy_id: string;
1494
+ /**
1495
+ * Manual override of the strategy-computed amount (nullable)
1496
+ */
1497
+ amount_overwritten?: number;
1498
+ /**
1499
+ * Whether the amount is a manual override
1500
+ */
1501
+ amount_is_overwritten: boolean;
1502
+ /**
1503
+ * Source type discriminator (always present for payroll_result)
1504
+ */
1505
+ source_type: 'compensations_compensationpolicy' | 'timesettings_customtimerangecategory' | 'expenses_expensable' | 'expenses_expense' | 'expenses_mileage' | 'benefits_compensation' | 'salary_advance_request' | 'incentives_compensationplanrequest' | 'attendance_review';
1506
+ /**
1507
+ * Source id (always present for payroll_result)
1508
+ */
1509
+ source_id: string;
1510
+ /**
1511
+ * Timestamp when the payroll_result row was created
1512
+ */
1513
+ created_at: string;
1514
+ /**
1515
+ * Timestamp when the payroll_result row was last updated
1516
+ */
1517
+ updated_at: string;
1518
+ };
1519
+ export type CompensationsPayrollRun = {
1520
+ /**
1521
+ * Payroll run id
1522
+ */
1523
+ id: string;
1524
+ /**
1525
+ * Localized label for the run (month and year)
1526
+ */
1527
+ label: string;
1528
+ /**
1529
+ * Start date of the run period
1530
+ */
1531
+ starts_on: string;
1532
+ /**
1533
+ * End date of the run period
1534
+ */
1535
+ ends_on: string;
1536
+ /**
1537
+ * Run status (open, in_review, completed, etc.)
1538
+ */
1539
+ status: string;
1540
+ /**
1541
+ * Whether the run is locked
1542
+ */
1543
+ locked: boolean;
1544
+ /**
1545
+ * When the run was locked, if it is locked
1546
+ */
1547
+ locked_at?: string;
1548
+ /**
1549
+ * Parent cycle id (nil for off-cycle runs)
1550
+ */
1551
+ cycle_id?: string;
1552
+ /**
1553
+ * Owning company id
1554
+ */
1555
+ company_id: string;
1556
+ /**
1557
+ * Payment type (regular / extra_pay)
1558
+ */
1559
+ payment_type?: 'regular' | 'severance' | 'extra_pay' | 'delayed_payment' | 'bonus_benefit' | 'salary_advance' | 'rate_difference';
1560
+ /**
1561
+ * Effective closure date (override if present, otherwise computed closure_date)
1562
+ */
1563
+ closure_date?: string;
1564
+ /**
1565
+ * Date when alerts are dispatched
1566
+ */
1567
+ alerts_date?: string;
1568
+ /**
1569
+ * Timestamp when the run record was created
1570
+ */
1571
+ created_at?: string;
1572
+ /**
1573
+ * Timestamp when the run record was last updated
1574
+ */
1575
+ updated_at?: string;
1348
1576
  };
1349
1577
  export type ContractsCompensation = {
1350
1578
  /**
@@ -4226,7 +4454,7 @@ export type IntegrationsSyncableItem = {
4226
4454
  /**
4227
4455
  * Type of the syncable item
4228
4456
  */
4229
- syncable_type: 'compensations/compensation' | 'expenses/expense' | 'employee_updates/leave' | 'finance/vendor';
4457
+ syncable_type: 'compensations/compensation' | 'expenses/expense' | 'employee_updates/leave' | 'employee_updates/worked_time' | 'finance/vendor';
4230
4458
  };
4231
4459
  export type IntegrationsSyncableSyncRun = {
4232
4460
  /**
@@ -5680,9 +5908,9 @@ export type ProcurementPurchaseOrder = {
5680
5908
  */
5681
5909
  vendor_id?: string;
5682
5910
  /**
5683
- * Identifier of the purchase request that generated this purchase order
5911
+ * Identifier of the purchase request that generated this purchase order, if any. Externally-created purchase orders (e.g. synced from an ERP) have no purchase request.
5684
5912
  */
5685
- purchase_request_id: string;
5913
+ purchase_request_id?: string;
5686
5914
  /**
5687
5915
  * Identifier of the legal entity that owns this purchase order
5688
5916
  */
@@ -6112,6 +6340,59 @@ export type ProjectManagementProjectWorker = {
6112
6340
  */
6113
6341
  spending_cost_cents?: number;
6114
6342
  };
6343
+ export type ProjectManagementRate = {
6344
+ /**
6345
+ * The id of the rate
6346
+ */
6347
+ id: string;
6348
+ /**
6349
+ * The id of the company the rate belongs to
6350
+ */
6351
+ company_id: string;
6352
+ /**
6353
+ * The id of the project the rate belongs to
6354
+ */
6355
+ project_id?: string;
6356
+ quote_id?: string;
6357
+ reference_rate_id?: string;
6358
+ /**
6359
+ * The id of the resource the rate applies to. Together with resource_kind it forms the resource's composite identity.
6360
+ */
6361
+ resource_id: string;
6362
+ /**
6363
+ * The kind of resource the rate applies to. Together with resource_id it forms the resource's composite identity.
6364
+ */
6365
+ resource_kind: 'project_worker' | 'project' | 'employee' | 'job_catalog_tree_node';
6366
+ /**
6367
+ * The date from which the rate applies
6368
+ */
6369
+ starts_on: string;
6370
+ ends_on?: string;
6371
+ /**
6372
+ * The charging cost in cents
6373
+ */
6374
+ charging_cost_cents: number;
6375
+ /**
6376
+ * The billing rate in cents
6377
+ */
6378
+ billing_rate_cents: number;
6379
+ /**
6380
+ * The markup-on-cost percentage in cents (e.g. 3000 = 30%)
6381
+ */
6382
+ markup_percentage_cents: number;
6383
+ /**
6384
+ * Computed profit margin on price in cents = (billing - charging) / billing * 10000. Returns 0 when billing equals charging, and -10000 when billing is zero.
6385
+ */
6386
+ margin_percentage_cents: number;
6387
+ /**
6388
+ * The currency of the rate
6389
+ */
6390
+ currency: string;
6391
+ /**
6392
+ * Whether the rate is custom
6393
+ */
6394
+ unlinked: boolean;
6395
+ };
6115
6396
  export type ProjectManagementSubproject = {
6116
6397
  /**
6117
6398
  * The id of the subproject
@@ -9745,7 +10026,7 @@ export type PostApi20261001ResourcesAttendanceShiftsData = {
9745
10026
  /**
9746
10027
  * Source of the shift creation
9747
10028
  */
9748
- source?: 'desktop' | 'mobile' | 'face_recognition' | 'qr_code' | 'mobile_geolocation' | 'shared_device' | 'api' | 'system';
10029
+ source?: 'desktop' | 'mobile' | 'face_recognition' | 'qr_code' | 'mobile_geolocation' | 'shared_device' | 'api' | 'system' | 'one_assistant';
9749
10030
  /**
9750
10031
  * Id of the break configuration
9751
10032
  */
@@ -10546,17 +10827,25 @@ export type GetApi20261001ResourcesCompensationsConceptsData = {
10546
10827
  path?: never;
10547
10828
  query?: {
10548
10829
  /**
10549
- * The ids of the concepts
10830
+ * Filter by concept ids
10550
10831
  */
10551
10832
  'ids[]'?: Array<string>;
10552
10833
  /**
10553
- * The categories of the concept
10834
+ * Filter by concept categories
10554
10835
  */
10555
10836
  'categories[]'?: 'earnings_fixed_salary' | 'earnings_variable' | 'earnings_benefits_in_kind' | 'earnings_others' | 'deductions' | 'company_contribution' | 'summarized_values';
10556
10837
  /**
10557
- * Whether to return only active concepts
10838
+ * When true, returns only active concepts
10558
10839
  */
10559
10840
  with_active_status?: boolean;
10841
+ /**
10842
+ * When true, returns active concepts only; when false, only inactive
10843
+ */
10844
+ enabled?: boolean;
10845
+ /**
10846
+ * When true, returns only default concepts
10847
+ */
10848
+ default?: boolean;
10560
10849
  };
10561
10850
  url: '/api/2026-10-01/resources/compensations/concepts';
10562
10851
  };
@@ -10570,11 +10859,45 @@ export type GetApi20261001ResourcesCompensationsConceptsResponses = {
10570
10859
  };
10571
10860
  };
10572
10861
  export type GetApi20261001ResourcesCompensationsConceptsResponse = GetApi20261001ResourcesCompensationsConceptsResponses[keyof GetApi20261001ResourcesCompensationsConceptsResponses];
10862
+ export type PostApi20261001ResourcesCompensationsConceptsData = {
10863
+ body?: {
10864
+ /**
10865
+ * Concept category
10866
+ */
10867
+ category: 'earnings_fixed_salary' | 'earnings_variable' | 'earnings_benefits_in_kind' | 'earnings_others' | 'deductions' | 'company_contribution' | 'summarized_values';
10868
+ /**
10869
+ * Company id that owns the concept
10870
+ */
10871
+ company_id: string;
10872
+ /**
10873
+ * Concept description
10874
+ */
10875
+ description?: string;
10876
+ /**
10877
+ * Display label
10878
+ */
10879
+ label: string;
10880
+ /**
10881
+ * Unit type
10882
+ */
10883
+ unit_type?: 'distance' | 'money' | 'time' | 'unit';
10884
+ };
10885
+ path?: never;
10886
+ query?: never;
10887
+ url: '/api/2026-10-01/resources/compensations/concepts';
10888
+ };
10889
+ export type PostApi20261001ResourcesCompensationsConceptsResponses = {
10890
+ /**
10891
+ * CREATED
10892
+ */
10893
+ 201: CompensationsConcept;
10894
+ };
10895
+ export type PostApi20261001ResourcesCompensationsConceptsResponse = PostApi20261001ResourcesCompensationsConceptsResponses[keyof PostApi20261001ResourcesCompensationsConceptsResponses];
10573
10896
  export type GetApi20261001ResourcesCompensationsConceptsByIdData = {
10574
10897
  body?: never;
10575
10898
  path: {
10576
10899
  /**
10577
- * The ids of the concepts
10900
+ * Filter by concept ids
10578
10901
  */
10579
10902
  id: string;
10580
10903
  };
@@ -10588,6 +10911,297 @@ export type GetApi20261001ResourcesCompensationsConceptsByIdResponses = {
10588
10911
  200: CompensationsConcept;
10589
10912
  };
10590
10913
  export type GetApi20261001ResourcesCompensationsConceptsByIdResponse = GetApi20261001ResourcesCompensationsConceptsByIdResponses[keyof GetApi20261001ResourcesCompensationsConceptsByIdResponses];
10914
+ export type PutApi20261001ResourcesCompensationsConceptsByIdData = {
10915
+ body?: {
10916
+ /**
10917
+ * The identifier of the concept to update
10918
+ */
10919
+ id: string;
10920
+ /**
10921
+ * Concept category (custom concepts only)
10922
+ */
10923
+ category?: 'earnings_fixed_salary' | 'earnings_variable' | 'earnings_benefits_in_kind' | 'earnings_others' | 'deductions' | 'company_contribution' | 'summarized_values';
10924
+ /**
10925
+ * Concept description (custom concepts only)
10926
+ */
10927
+ description?: string;
10928
+ /**
10929
+ * Display label (custom concepts only)
10930
+ */
10931
+ label?: string;
10932
+ /**
10933
+ * Unit type (custom concepts only)
10934
+ */
10935
+ unit_type?: 'distance' | 'money' | 'time' | 'unit';
10936
+ /**
10937
+ * Marks the concept as labor cost (custom concepts only)
10938
+ */
10939
+ labor_cost?: boolean;
10940
+ /**
10941
+ * Activates / deactivates the concept (default and custom concepts)
10942
+ */
10943
+ enabled?: boolean;
10944
+ };
10945
+ path: {
10946
+ /**
10947
+ * The identifier of the concept to update
10948
+ */
10949
+ id: string;
10950
+ };
10951
+ query?: never;
10952
+ url: '/api/2026-10-01/resources/compensations/concepts/{id}';
10953
+ };
10954
+ export type PutApi20261001ResourcesCompensationsConceptsByIdResponses = {
10955
+ /**
10956
+ * OK
10957
+ */
10958
+ 200: CompensationsConcept;
10959
+ };
10960
+ export type PutApi20261001ResourcesCompensationsConceptsByIdResponse = PutApi20261001ResourcesCompensationsConceptsByIdResponses[keyof PutApi20261001ResourcesCompensationsConceptsByIdResponses];
10961
+ export type GetApi20261001ResourcesCompensationsCyclesData = {
10962
+ body?: never;
10963
+ path?: never;
10964
+ query?: {
10965
+ /**
10966
+ * Compensation cycle ids
10967
+ */
10968
+ 'ids[]'?: Array<string>;
10969
+ /**
10970
+ * Filter by single company id
10971
+ */
10972
+ company_id?: string;
10973
+ /**
10974
+ * Filter by company ids
10975
+ */
10976
+ 'company_ids[]'?: Array<string>;
10977
+ /**
10978
+ * Cycle recurrence (e.g. monthly)
10979
+ */
10980
+ recurrence?: string;
10981
+ /**
10982
+ * Cycle currency (ISO-4217)
10983
+ */
10984
+ currency?: string;
10985
+ /**
10986
+ * Cycle country (ISO-3166 alpha-2 lowercase)
10987
+ */
10988
+ country?: string;
10989
+ /**
10990
+ * Include archived cycles in the response
10991
+ */
10992
+ include_archived?: boolean;
10993
+ /**
10994
+ * Include hidden cycles in the response
10995
+ */
10996
+ include_hidden?: boolean;
10997
+ };
10998
+ url: '/api/2026-10-01/resources/compensations/cycles';
10999
+ };
11000
+ export type GetApi20261001ResourcesCompensationsCyclesResponses = {
11001
+ /**
11002
+ * OK
11003
+ */
11004
+ 200: {
11005
+ data?: Array<CompensationsCycle>;
11006
+ meta?: PagedIndexMeta;
11007
+ };
11008
+ };
11009
+ export type GetApi20261001ResourcesCompensationsCyclesResponse = GetApi20261001ResourcesCompensationsCyclesResponses[keyof GetApi20261001ResourcesCompensationsCyclesResponses];
11010
+ export type GetApi20261001ResourcesCompensationsCyclesByIdData = {
11011
+ body?: never;
11012
+ path: {
11013
+ /**
11014
+ * Compensation cycle ids
11015
+ */
11016
+ id: string;
11017
+ };
11018
+ query?: never;
11019
+ url: '/api/2026-10-01/resources/compensations/cycles/{id}';
11020
+ };
11021
+ export type GetApi20261001ResourcesCompensationsCyclesByIdResponses = {
11022
+ /**
11023
+ * OK
11024
+ */
11025
+ 200: CompensationsCycle;
11026
+ };
11027
+ export type GetApi20261001ResourcesCompensationsCyclesByIdResponse = GetApi20261001ResourcesCompensationsCyclesByIdResponses[keyof GetApi20261001ResourcesCompensationsCyclesByIdResponses];
11028
+ export type GetApi20261001ResourcesCompensationsEmployeesCompensationsData = {
11029
+ body?: never;
11030
+ path?: never;
11031
+ query?: {
11032
+ /**
11033
+ * Employee compensation ids
11034
+ */
11035
+ 'ids[]'?: Array<string>;
11036
+ /**
11037
+ * Filter by payroll run ids, refers to compensations/payroll_runs endpoint.
11038
+ */
11039
+ 'payroll_run_ids[]'?: Array<string>;
11040
+ /**
11041
+ * Filter by parent cycle ids, refers to compensations/cycles endpoint.
11042
+ */
11043
+ 'cycle_ids[]'?: Array<string>;
11044
+ /**
11045
+ * Filter by employee ids (participants of the payroll run)
11046
+ */
11047
+ 'payroll_run_employee_ids[]'?: Array<string>;
11048
+ /**
11049
+ * Filter by payroll concept ids, refers to compensations/concepts endpoint.
11050
+ */
11051
+ 'payroll_concept_ids[]'?: Array<string>;
11052
+ };
11053
+ url: '/api/2026-10-01/resources/compensations/employees_compensations';
11054
+ };
11055
+ export type GetApi20261001ResourcesCompensationsEmployeesCompensationsResponses = {
11056
+ /**
11057
+ * OK
11058
+ */
11059
+ 200: {
11060
+ data?: Array<CompensationsEmployeesCompensation>;
11061
+ meta?: PagedIndexMeta;
11062
+ };
11063
+ };
11064
+ export type GetApi20261001ResourcesCompensationsEmployeesCompensationsResponse = GetApi20261001ResourcesCompensationsEmployeesCompensationsResponses[keyof GetApi20261001ResourcesCompensationsEmployeesCompensationsResponses];
11065
+ export type GetApi20261001ResourcesCompensationsEmployeesCompensationsByIdData = {
11066
+ body?: never;
11067
+ path: {
11068
+ /**
11069
+ * Employee compensation ids
11070
+ */
11071
+ id: string;
11072
+ };
11073
+ query?: never;
11074
+ url: '/api/2026-10-01/resources/compensations/employees_compensations/{id}';
11075
+ };
11076
+ export type GetApi20261001ResourcesCompensationsEmployeesCompensationsByIdResponses = {
11077
+ /**
11078
+ * OK
11079
+ */
11080
+ 200: CompensationsEmployeesCompensation;
11081
+ };
11082
+ export type GetApi20261001ResourcesCompensationsEmployeesCompensationsByIdResponse = GetApi20261001ResourcesCompensationsEmployeesCompensationsByIdResponses[keyof GetApi20261001ResourcesCompensationsEmployeesCompensationsByIdResponses];
11083
+ export type GetApi20261001ResourcesCompensationsPayrollResultsData = {
11084
+ body?: never;
11085
+ path?: never;
11086
+ query?: {
11087
+ /**
11088
+ * Payroll result ids
11089
+ */
11090
+ 'ids[]'?: Array<string>;
11091
+ /**
11092
+ * Filter by payroll run ids, refers to compensations/payroll_runs endpoint.
11093
+ */
11094
+ 'payroll_run_ids[]'?: Array<string>;
11095
+ /**
11096
+ * Filter by parent cycle ids, refers to compensations/cycles endpoint.
11097
+ */
11098
+ 'cycle_ids[]'?: Array<string>;
11099
+ /**
11100
+ * Filter by employee ids (participants of the payroll run)
11101
+ */
11102
+ 'payroll_run_employee_ids[]'?: Array<string>;
11103
+ /**
11104
+ * Filter by payroll concept ids, refers to compensations/concepts endpoint.
11105
+ */
11106
+ 'payroll_concept_ids[]'?: Array<string>;
11107
+ };
11108
+ url: '/api/2026-10-01/resources/compensations/payroll_results';
11109
+ };
11110
+ export type GetApi20261001ResourcesCompensationsPayrollResultsResponses = {
11111
+ /**
11112
+ * OK
11113
+ */
11114
+ 200: {
11115
+ data?: Array<CompensationsPayrollResult>;
11116
+ meta?: PagedIndexMeta;
11117
+ };
11118
+ };
11119
+ export type GetApi20261001ResourcesCompensationsPayrollResultsResponse = GetApi20261001ResourcesCompensationsPayrollResultsResponses[keyof GetApi20261001ResourcesCompensationsPayrollResultsResponses];
11120
+ export type GetApi20261001ResourcesCompensationsPayrollResultsByIdData = {
11121
+ body?: never;
11122
+ path: {
11123
+ /**
11124
+ * Payroll result ids
11125
+ */
11126
+ id: string;
11127
+ };
11128
+ query?: never;
11129
+ url: '/api/2026-10-01/resources/compensations/payroll_results/{id}';
11130
+ };
11131
+ export type GetApi20261001ResourcesCompensationsPayrollResultsByIdResponses = {
11132
+ /**
11133
+ * OK
11134
+ */
11135
+ 200: CompensationsPayrollResult;
11136
+ };
11137
+ export type GetApi20261001ResourcesCompensationsPayrollResultsByIdResponse = GetApi20261001ResourcesCompensationsPayrollResultsByIdResponses[keyof GetApi20261001ResourcesCompensationsPayrollResultsByIdResponses];
11138
+ export type GetApi20261001ResourcesCompensationsPayrollRunsData = {
11139
+ body?: never;
11140
+ path?: never;
11141
+ query?: {
11142
+ /**
11143
+ * Filter by payroll run ids
11144
+ */
11145
+ 'ids[]'?: Array<string>;
11146
+ /**
11147
+ * Lower bound for the run end date (ends_on >= from)
11148
+ */
11149
+ from?: string;
11150
+ /**
11151
+ * Upper bound for the run start date (starts_on <= to)
11152
+ */
11153
+ to?: string;
11154
+ /**
11155
+ * Filter by company id (single)
11156
+ */
11157
+ company_id?: string;
11158
+ /**
11159
+ * Filter by parent cycle ids
11160
+ */
11161
+ 'cycle_ids[]'?: Array<string>;
11162
+ /**
11163
+ * Filter by run statuses
11164
+ */
11165
+ 'statuses[]'?: Array<string>;
11166
+ /**
11167
+ * Filter by payment types (regular, extra_pay)
11168
+ */
11169
+ 'payment_types[]'?: 'regular' | 'severance' | 'extra_pay' | 'delayed_payment' | 'bonus_benefit' | 'salary_advance' | 'rate_difference';
11170
+ /**
11171
+ * Include hidden cycles' runs in the response
11172
+ */
11173
+ include_hidden?: boolean;
11174
+ };
11175
+ url: '/api/2026-10-01/resources/compensations/payroll_runs';
11176
+ };
11177
+ export type GetApi20261001ResourcesCompensationsPayrollRunsResponses = {
11178
+ /**
11179
+ * OK
11180
+ */
11181
+ 200: {
11182
+ data?: Array<CompensationsPayrollRun>;
11183
+ meta?: PagedIndexMeta;
11184
+ };
11185
+ };
11186
+ export type GetApi20261001ResourcesCompensationsPayrollRunsResponse = GetApi20261001ResourcesCompensationsPayrollRunsResponses[keyof GetApi20261001ResourcesCompensationsPayrollRunsResponses];
11187
+ export type GetApi20261001ResourcesCompensationsPayrollRunsByIdData = {
11188
+ body?: never;
11189
+ path: {
11190
+ /**
11191
+ * Filter by payroll run ids
11192
+ */
11193
+ id: string;
11194
+ };
11195
+ query?: never;
11196
+ url: '/api/2026-10-01/resources/compensations/payroll_runs/{id}';
11197
+ };
11198
+ export type GetApi20261001ResourcesCompensationsPayrollRunsByIdResponses = {
11199
+ /**
11200
+ * OK
11201
+ */
11202
+ 200: CompensationsPayrollRun;
11203
+ };
11204
+ export type GetApi20261001ResourcesCompensationsPayrollRunsByIdResponse = GetApi20261001ResourcesCompensationsPayrollRunsByIdResponses[keyof GetApi20261001ResourcesCompensationsPayrollRunsByIdResponses];
10591
11205
  export type GetApi20261001ResourcesContractsCompensationsData = {
10592
11206
  body?: never;
10593
11207
  path?: never;
@@ -19830,6 +20444,97 @@ export type PostApi20261001ResourcesProjectManagementProjectWorkersUnassignRespo
19830
20444
  200: ProjectManagementProjectWorker;
19831
20445
  };
19832
20446
  export type PostApi20261001ResourcesProjectManagementProjectWorkersUnassignResponse = PostApi20261001ResourcesProjectManagementProjectWorkersUnassignResponses[keyof PostApi20261001ResourcesProjectManagementProjectWorkersUnassignResponses];
20447
+ export type GetApi20261001ResourcesProjectManagementRatesData = {
20448
+ body?: never;
20449
+ path?: never;
20450
+ query: {
20451
+ /**
20452
+ * Filter rates by IDs
20453
+ */
20454
+ 'ids[]': Array<string>;
20455
+ /**
20456
+ * Filter rates by company ID
20457
+ */
20458
+ company_id: string;
20459
+ /**
20460
+ * Filter rates by project ID
20461
+ */
20462
+ project_id: string;
20463
+ /**
20464
+ * Filter rates by canonical resource identity (numeric id or tree node uuid)
20465
+ */
20466
+ 'resource_ids[]': Array<string>;
20467
+ /**
20468
+ * Filter rates by the kind of resource they apply to.
20469
+ */
20470
+ resource_kind: 'project_worker' | 'project' | 'employee' | 'job_catalog_tree_node';
20471
+ /**
20472
+ * Filter rates by reference rate ID
20473
+ */
20474
+ reference_rate_id: string;
20475
+ /**
20476
+ * Filter rates by job catalog role or level name
20477
+ */
20478
+ role_or_level: string;
20479
+ /**
20480
+ * Filter rates by employee name
20481
+ */
20482
+ employee_name: string;
20483
+ /**
20484
+ * Filter rates by quote ID
20485
+ */
20486
+ quote_id: string;
20487
+ /**
20488
+ * If true, retrieve only currently active rates.
20489
+ */
20490
+ only_active: boolean;
20491
+ /**
20492
+ * If true, retrieve only rates that are not linked to a project.
20493
+ */
20494
+ without_project: boolean;
20495
+ /**
20496
+ * If true, retrieve only rates that are not linked to a quote.
20497
+ */
20498
+ without_quote: boolean;
20499
+ /**
20500
+ * Filter rates by record type
20501
+ */
20502
+ record_type: string;
20503
+ /**
20504
+ * Filter rates by reference rate IDs
20505
+ */
20506
+ 'reference_rate_ids[]': Array<string>;
20507
+ };
20508
+ url: '/api/2026-10-01/resources/project_management/rates';
20509
+ };
20510
+ export type GetApi20261001ResourcesProjectManagementRatesResponses = {
20511
+ /**
20512
+ * OK
20513
+ */
20514
+ 200: {
20515
+ data?: Array<ProjectManagementRate>;
20516
+ meta?: PagedIndexMeta;
20517
+ };
20518
+ };
20519
+ export type GetApi20261001ResourcesProjectManagementRatesResponse = GetApi20261001ResourcesProjectManagementRatesResponses[keyof GetApi20261001ResourcesProjectManagementRatesResponses];
20520
+ export type GetApi20261001ResourcesProjectManagementRatesByIdData = {
20521
+ body?: never;
20522
+ path: {
20523
+ /**
20524
+ * Filter rates by IDs
20525
+ */
20526
+ id: string;
20527
+ };
20528
+ query?: never;
20529
+ url: '/api/2026-10-01/resources/project_management/rates/{id}';
20530
+ };
20531
+ export type GetApi20261001ResourcesProjectManagementRatesByIdResponses = {
20532
+ /**
20533
+ * OK
20534
+ */
20535
+ 200: ProjectManagementRate;
20536
+ };
20537
+ export type GetApi20261001ResourcesProjectManagementRatesByIdResponse = GetApi20261001ResourcesProjectManagementRatesByIdResponses[keyof GetApi20261001ResourcesProjectManagementRatesByIdResponses];
19833
20538
  export type GetApi20261001ResourcesProjectManagementSubprojectsData = {
19834
20539
  body?: never;
19835
20540
  path?: never;