@factorialco/api-client 3.0.0-beta.2026100107 → 3.0.0-beta.2026100108
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 +17 -11
- package/dist/cjs/generated/index.js.map +1 -1
- package/dist/cjs/generated/sdk.gen.d.ts +39 -3
- package/dist/cjs/generated/sdk.gen.d.ts.map +1 -1
- package/dist/cjs/generated/sdk.gen.js +86 -12
- package/dist/cjs/generated/sdk.gen.js.map +1 -1
- package/dist/cjs/generated/types.gen.d.ts +343 -4
- package/dist/cjs/generated/types.gen.d.ts.map +1 -1
- package/dist/cjs/sdk.d.ts +57 -1
- package/dist/cjs/sdk.d.ts.map +1 -1
- package/dist/cjs/sdk.js +66 -4
- 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 +39 -3
- package/dist/esm/generated/sdk.gen.d.ts.map +1 -1
- package/dist/esm/generated/sdk.gen.js +70 -2
- package/dist/esm/generated/sdk.gen.js.map +1 -1
- package/dist/esm/generated/types.gen.d.ts +343 -4
- package/dist/esm/generated/types.gen.d.ts.map +1 -1
- package/dist/esm/sdk.d.ts +57 -1
- package/dist/esm/sdk.d.ts.map +1 -1
- package/dist/esm/sdk.js +61 -1
- package/dist/esm/sdk.js.map +1 -1
- package/package.json +1 -1
|
@@ -1345,6 +1345,122 @@ 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 CompensationsPayrollRun = {
|
|
1408
|
+
/**
|
|
1409
|
+
* Payroll run id
|
|
1410
|
+
*/
|
|
1411
|
+
id: string;
|
|
1412
|
+
/**
|
|
1413
|
+
* Localized label for the run (month and year)
|
|
1414
|
+
*/
|
|
1415
|
+
label: string;
|
|
1416
|
+
/**
|
|
1417
|
+
* Start date of the run period
|
|
1418
|
+
*/
|
|
1419
|
+
starts_on: string;
|
|
1420
|
+
/**
|
|
1421
|
+
* End date of the run period
|
|
1422
|
+
*/
|
|
1423
|
+
ends_on: string;
|
|
1424
|
+
/**
|
|
1425
|
+
* Run status (open, in_review, completed, etc.)
|
|
1426
|
+
*/
|
|
1427
|
+
status: string;
|
|
1428
|
+
/**
|
|
1429
|
+
* Whether the run is locked
|
|
1430
|
+
*/
|
|
1431
|
+
locked: boolean;
|
|
1432
|
+
/**
|
|
1433
|
+
* When the run was locked, if it is locked
|
|
1434
|
+
*/
|
|
1435
|
+
locked_at?: string;
|
|
1436
|
+
/**
|
|
1437
|
+
* Parent cycle id (nil for off-cycle runs)
|
|
1438
|
+
*/
|
|
1439
|
+
cycle_id?: string;
|
|
1440
|
+
/**
|
|
1441
|
+
* Owning company id
|
|
1442
|
+
*/
|
|
1443
|
+
company_id: string;
|
|
1444
|
+
/**
|
|
1445
|
+
* Payment type (regular / extra_pay)
|
|
1446
|
+
*/
|
|
1447
|
+
payment_type?: 'regular' | 'severance' | 'extra_pay' | 'delayed_payment' | 'bonus_benefit' | 'salary_advance' | 'rate_difference';
|
|
1448
|
+
/**
|
|
1449
|
+
* Effective closure date (override if present, otherwise computed closure_date)
|
|
1450
|
+
*/
|
|
1451
|
+
closure_date?: string;
|
|
1452
|
+
/**
|
|
1453
|
+
* Date when alerts are dispatched
|
|
1454
|
+
*/
|
|
1455
|
+
alerts_date?: string;
|
|
1456
|
+
/**
|
|
1457
|
+
* Timestamp when the run record was created
|
|
1458
|
+
*/
|
|
1459
|
+
created_at?: string;
|
|
1460
|
+
/**
|
|
1461
|
+
* Timestamp when the run record was last updated
|
|
1462
|
+
*/
|
|
1463
|
+
updated_at?: string;
|
|
1348
1464
|
};
|
|
1349
1465
|
export type ContractsCompensation = {
|
|
1350
1466
|
/**
|
|
@@ -10546,17 +10662,25 @@ export type GetApi20261001ResourcesCompensationsConceptsData = {
|
|
|
10546
10662
|
path?: never;
|
|
10547
10663
|
query?: {
|
|
10548
10664
|
/**
|
|
10549
|
-
*
|
|
10665
|
+
* Filter by concept ids
|
|
10550
10666
|
*/
|
|
10551
10667
|
'ids[]'?: Array<string>;
|
|
10552
10668
|
/**
|
|
10553
|
-
*
|
|
10669
|
+
* Filter by concept categories
|
|
10554
10670
|
*/
|
|
10555
10671
|
'categories[]'?: 'earnings_fixed_salary' | 'earnings_variable' | 'earnings_benefits_in_kind' | 'earnings_others' | 'deductions' | 'company_contribution' | 'summarized_values';
|
|
10556
10672
|
/**
|
|
10557
|
-
*
|
|
10673
|
+
* When true, returns only active concepts
|
|
10558
10674
|
*/
|
|
10559
10675
|
with_active_status?: boolean;
|
|
10676
|
+
/**
|
|
10677
|
+
* When true, returns active concepts only; when false, only inactive
|
|
10678
|
+
*/
|
|
10679
|
+
enabled?: boolean;
|
|
10680
|
+
/**
|
|
10681
|
+
* When true, returns only default concepts
|
|
10682
|
+
*/
|
|
10683
|
+
default?: boolean;
|
|
10560
10684
|
};
|
|
10561
10685
|
url: '/api/2026-10-01/resources/compensations/concepts';
|
|
10562
10686
|
};
|
|
@@ -10570,11 +10694,45 @@ export type GetApi20261001ResourcesCompensationsConceptsResponses = {
|
|
|
10570
10694
|
};
|
|
10571
10695
|
};
|
|
10572
10696
|
export type GetApi20261001ResourcesCompensationsConceptsResponse = GetApi20261001ResourcesCompensationsConceptsResponses[keyof GetApi20261001ResourcesCompensationsConceptsResponses];
|
|
10697
|
+
export type PostApi20261001ResourcesCompensationsConceptsData = {
|
|
10698
|
+
body?: {
|
|
10699
|
+
/**
|
|
10700
|
+
* Concept category
|
|
10701
|
+
*/
|
|
10702
|
+
category: 'earnings_fixed_salary' | 'earnings_variable' | 'earnings_benefits_in_kind' | 'earnings_others' | 'deductions' | 'company_contribution' | 'summarized_values';
|
|
10703
|
+
/**
|
|
10704
|
+
* Company id that owns the concept
|
|
10705
|
+
*/
|
|
10706
|
+
company_id: string;
|
|
10707
|
+
/**
|
|
10708
|
+
* Concept description
|
|
10709
|
+
*/
|
|
10710
|
+
description?: string;
|
|
10711
|
+
/**
|
|
10712
|
+
* Display label
|
|
10713
|
+
*/
|
|
10714
|
+
label: string;
|
|
10715
|
+
/**
|
|
10716
|
+
* Unit type
|
|
10717
|
+
*/
|
|
10718
|
+
unit_type?: 'distance' | 'money' | 'time' | 'unit';
|
|
10719
|
+
};
|
|
10720
|
+
path?: never;
|
|
10721
|
+
query?: never;
|
|
10722
|
+
url: '/api/2026-10-01/resources/compensations/concepts';
|
|
10723
|
+
};
|
|
10724
|
+
export type PostApi20261001ResourcesCompensationsConceptsResponses = {
|
|
10725
|
+
/**
|
|
10726
|
+
* CREATED
|
|
10727
|
+
*/
|
|
10728
|
+
201: CompensationsConcept;
|
|
10729
|
+
};
|
|
10730
|
+
export type PostApi20261001ResourcesCompensationsConceptsResponse = PostApi20261001ResourcesCompensationsConceptsResponses[keyof PostApi20261001ResourcesCompensationsConceptsResponses];
|
|
10573
10731
|
export type GetApi20261001ResourcesCompensationsConceptsByIdData = {
|
|
10574
10732
|
body?: never;
|
|
10575
10733
|
path: {
|
|
10576
10734
|
/**
|
|
10577
|
-
*
|
|
10735
|
+
* Filter by concept ids
|
|
10578
10736
|
*/
|
|
10579
10737
|
id: string;
|
|
10580
10738
|
};
|
|
@@ -10588,6 +10746,187 @@ export type GetApi20261001ResourcesCompensationsConceptsByIdResponses = {
|
|
|
10588
10746
|
200: CompensationsConcept;
|
|
10589
10747
|
};
|
|
10590
10748
|
export type GetApi20261001ResourcesCompensationsConceptsByIdResponse = GetApi20261001ResourcesCompensationsConceptsByIdResponses[keyof GetApi20261001ResourcesCompensationsConceptsByIdResponses];
|
|
10749
|
+
export type PutApi20261001ResourcesCompensationsConceptsByIdData = {
|
|
10750
|
+
body?: {
|
|
10751
|
+
/**
|
|
10752
|
+
* The identifier of the concept to update
|
|
10753
|
+
*/
|
|
10754
|
+
id: string;
|
|
10755
|
+
/**
|
|
10756
|
+
* Concept category (custom concepts only)
|
|
10757
|
+
*/
|
|
10758
|
+
category?: 'earnings_fixed_salary' | 'earnings_variable' | 'earnings_benefits_in_kind' | 'earnings_others' | 'deductions' | 'company_contribution' | 'summarized_values';
|
|
10759
|
+
/**
|
|
10760
|
+
* Concept description (custom concepts only)
|
|
10761
|
+
*/
|
|
10762
|
+
description?: string;
|
|
10763
|
+
/**
|
|
10764
|
+
* Display label (custom concepts only)
|
|
10765
|
+
*/
|
|
10766
|
+
label?: string;
|
|
10767
|
+
/**
|
|
10768
|
+
* Unit type (custom concepts only)
|
|
10769
|
+
*/
|
|
10770
|
+
unit_type?: 'distance' | 'money' | 'time' | 'unit';
|
|
10771
|
+
/**
|
|
10772
|
+
* Marks the concept as labor cost (custom concepts only)
|
|
10773
|
+
*/
|
|
10774
|
+
labor_cost?: boolean;
|
|
10775
|
+
/**
|
|
10776
|
+
* Activates / deactivates the concept (default and custom concepts)
|
|
10777
|
+
*/
|
|
10778
|
+
enabled?: boolean;
|
|
10779
|
+
};
|
|
10780
|
+
path: {
|
|
10781
|
+
/**
|
|
10782
|
+
* The identifier of the concept to update
|
|
10783
|
+
*/
|
|
10784
|
+
id: string;
|
|
10785
|
+
};
|
|
10786
|
+
query?: never;
|
|
10787
|
+
url: '/api/2026-10-01/resources/compensations/concepts/{id}';
|
|
10788
|
+
};
|
|
10789
|
+
export type PutApi20261001ResourcesCompensationsConceptsByIdResponses = {
|
|
10790
|
+
/**
|
|
10791
|
+
* OK
|
|
10792
|
+
*/
|
|
10793
|
+
200: CompensationsConcept;
|
|
10794
|
+
};
|
|
10795
|
+
export type PutApi20261001ResourcesCompensationsConceptsByIdResponse = PutApi20261001ResourcesCompensationsConceptsByIdResponses[keyof PutApi20261001ResourcesCompensationsConceptsByIdResponses];
|
|
10796
|
+
export type GetApi20261001ResourcesCompensationsCyclesData = {
|
|
10797
|
+
body?: never;
|
|
10798
|
+
path?: never;
|
|
10799
|
+
query?: {
|
|
10800
|
+
/**
|
|
10801
|
+
* Compensation cycle ids
|
|
10802
|
+
*/
|
|
10803
|
+
'ids[]'?: Array<string>;
|
|
10804
|
+
/**
|
|
10805
|
+
* Filter by single company id
|
|
10806
|
+
*/
|
|
10807
|
+
company_id?: string;
|
|
10808
|
+
/**
|
|
10809
|
+
* Filter by company ids
|
|
10810
|
+
*/
|
|
10811
|
+
'company_ids[]'?: Array<string>;
|
|
10812
|
+
/**
|
|
10813
|
+
* Cycle recurrence (e.g. monthly)
|
|
10814
|
+
*/
|
|
10815
|
+
recurrence?: string;
|
|
10816
|
+
/**
|
|
10817
|
+
* Cycle currency (ISO-4217)
|
|
10818
|
+
*/
|
|
10819
|
+
currency?: string;
|
|
10820
|
+
/**
|
|
10821
|
+
* Cycle country (ISO-3166 alpha-2 lowercase)
|
|
10822
|
+
*/
|
|
10823
|
+
country?: string;
|
|
10824
|
+
/**
|
|
10825
|
+
* Include archived cycles in the response
|
|
10826
|
+
*/
|
|
10827
|
+
include_archived?: boolean;
|
|
10828
|
+
/**
|
|
10829
|
+
* Include hidden cycles in the response
|
|
10830
|
+
*/
|
|
10831
|
+
include_hidden?: boolean;
|
|
10832
|
+
};
|
|
10833
|
+
url: '/api/2026-10-01/resources/compensations/cycles';
|
|
10834
|
+
};
|
|
10835
|
+
export type GetApi20261001ResourcesCompensationsCyclesResponses = {
|
|
10836
|
+
/**
|
|
10837
|
+
* OK
|
|
10838
|
+
*/
|
|
10839
|
+
200: {
|
|
10840
|
+
data?: Array<CompensationsCycle>;
|
|
10841
|
+
meta?: PagedIndexMeta;
|
|
10842
|
+
};
|
|
10843
|
+
};
|
|
10844
|
+
export type GetApi20261001ResourcesCompensationsCyclesResponse = GetApi20261001ResourcesCompensationsCyclesResponses[keyof GetApi20261001ResourcesCompensationsCyclesResponses];
|
|
10845
|
+
export type GetApi20261001ResourcesCompensationsCyclesByIdData = {
|
|
10846
|
+
body?: never;
|
|
10847
|
+
path: {
|
|
10848
|
+
/**
|
|
10849
|
+
* Compensation cycle ids
|
|
10850
|
+
*/
|
|
10851
|
+
id: string;
|
|
10852
|
+
};
|
|
10853
|
+
query?: never;
|
|
10854
|
+
url: '/api/2026-10-01/resources/compensations/cycles/{id}';
|
|
10855
|
+
};
|
|
10856
|
+
export type GetApi20261001ResourcesCompensationsCyclesByIdResponses = {
|
|
10857
|
+
/**
|
|
10858
|
+
* OK
|
|
10859
|
+
*/
|
|
10860
|
+
200: CompensationsCycle;
|
|
10861
|
+
};
|
|
10862
|
+
export type GetApi20261001ResourcesCompensationsCyclesByIdResponse = GetApi20261001ResourcesCompensationsCyclesByIdResponses[keyof GetApi20261001ResourcesCompensationsCyclesByIdResponses];
|
|
10863
|
+
export type GetApi20261001ResourcesCompensationsPayrollRunsData = {
|
|
10864
|
+
body?: never;
|
|
10865
|
+
path?: never;
|
|
10866
|
+
query?: {
|
|
10867
|
+
/**
|
|
10868
|
+
* Filter by payroll run ids
|
|
10869
|
+
*/
|
|
10870
|
+
'ids[]'?: Array<string>;
|
|
10871
|
+
/**
|
|
10872
|
+
* Lower bound for the run end date (ends_on >= from)
|
|
10873
|
+
*/
|
|
10874
|
+
from?: string;
|
|
10875
|
+
/**
|
|
10876
|
+
* Upper bound for the run start date (starts_on <= to)
|
|
10877
|
+
*/
|
|
10878
|
+
to?: string;
|
|
10879
|
+
/**
|
|
10880
|
+
* Filter by company id (single)
|
|
10881
|
+
*/
|
|
10882
|
+
company_id?: string;
|
|
10883
|
+
/**
|
|
10884
|
+
* Filter by parent cycle ids
|
|
10885
|
+
*/
|
|
10886
|
+
'cycle_ids[]'?: Array<string>;
|
|
10887
|
+
/**
|
|
10888
|
+
* Filter by run statuses
|
|
10889
|
+
*/
|
|
10890
|
+
'statuses[]'?: Array<string>;
|
|
10891
|
+
/**
|
|
10892
|
+
* Filter by payment types (regular, extra_pay)
|
|
10893
|
+
*/
|
|
10894
|
+
'payment_types[]'?: 'regular' | 'severance' | 'extra_pay' | 'delayed_payment' | 'bonus_benefit' | 'salary_advance' | 'rate_difference';
|
|
10895
|
+
/**
|
|
10896
|
+
* Include hidden cycles' runs in the response
|
|
10897
|
+
*/
|
|
10898
|
+
include_hidden?: boolean;
|
|
10899
|
+
};
|
|
10900
|
+
url: '/api/2026-10-01/resources/compensations/payroll_runs';
|
|
10901
|
+
};
|
|
10902
|
+
export type GetApi20261001ResourcesCompensationsPayrollRunsResponses = {
|
|
10903
|
+
/**
|
|
10904
|
+
* OK
|
|
10905
|
+
*/
|
|
10906
|
+
200: {
|
|
10907
|
+
data?: Array<CompensationsPayrollRun>;
|
|
10908
|
+
meta?: PagedIndexMeta;
|
|
10909
|
+
};
|
|
10910
|
+
};
|
|
10911
|
+
export type GetApi20261001ResourcesCompensationsPayrollRunsResponse = GetApi20261001ResourcesCompensationsPayrollRunsResponses[keyof GetApi20261001ResourcesCompensationsPayrollRunsResponses];
|
|
10912
|
+
export type GetApi20261001ResourcesCompensationsPayrollRunsByIdData = {
|
|
10913
|
+
body?: never;
|
|
10914
|
+
path: {
|
|
10915
|
+
/**
|
|
10916
|
+
* Filter by payroll run ids
|
|
10917
|
+
*/
|
|
10918
|
+
id: string;
|
|
10919
|
+
};
|
|
10920
|
+
query?: never;
|
|
10921
|
+
url: '/api/2026-10-01/resources/compensations/payroll_runs/{id}';
|
|
10922
|
+
};
|
|
10923
|
+
export type GetApi20261001ResourcesCompensationsPayrollRunsByIdResponses = {
|
|
10924
|
+
/**
|
|
10925
|
+
* OK
|
|
10926
|
+
*/
|
|
10927
|
+
200: CompensationsPayrollRun;
|
|
10928
|
+
};
|
|
10929
|
+
export type GetApi20261001ResourcesCompensationsPayrollRunsByIdResponse = GetApi20261001ResourcesCompensationsPayrollRunsByIdResponses[keyof GetApi20261001ResourcesCompensationsPayrollRunsByIdResponses];
|
|
10591
10930
|
export type GetApi20261001ResourcesContractsCompensationsData = {
|
|
10592
10931
|
body?: never;
|
|
10593
10932
|
path?: never;
|