@factorialco/api-client 3.0.0-beta.2026100127 → 3.0.0-beta.2026100128
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 +12 -10
- package/dist/cjs/generated/index.js.map +1 -1
- package/dist/cjs/generated/sdk.gen.d.ts +16 -4
- package/dist/cjs/generated/sdk.gen.d.ts.map +1 -1
- package/dist/cjs/generated/sdk.gen.js +35 -13
- package/dist/cjs/generated/sdk.gen.js.map +1 -1
- package/dist/cjs/generated/types.gen.d.ts +119 -10
- package/dist/cjs/generated/types.gen.d.ts.map +1 -1
- package/dist/cjs/sdk.d.ts +27 -1
- package/dist/cjs/sdk.d.ts.map +1 -1
- package/dist/cjs/sdk.js +34 -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 +16 -4
- package/dist/esm/generated/sdk.gen.d.ts.map +1 -1
- package/dist/esm/generated/sdk.gen.js +23 -3
- package/dist/esm/generated/sdk.gen.js.map +1 -1
- package/dist/esm/generated/types.gen.d.ts +119 -10
- package/dist/esm/generated/types.gen.d.ts.map +1 -1
- package/dist/esm/sdk.d.ts +27 -1
- package/dist/esm/sdk.d.ts.map +1 -1
- package/dist/esm/sdk.js +29 -1
- package/dist/esm/sdk.js.map +1 -1
- package/package.json +1 -1
|
@@ -1497,15 +1497,15 @@ export type CompensationsEmployeesCompensation = {
|
|
|
1497
1497
|
*/
|
|
1498
1498
|
amount_is_overwritten: boolean;
|
|
1499
1499
|
/**
|
|
1500
|
-
*
|
|
1500
|
+
* Record projection type (always `compensation` on this endpoint)
|
|
1501
1501
|
*/
|
|
1502
1502
|
result_type?: 'compensation' | 'payroll_result';
|
|
1503
1503
|
/**
|
|
1504
|
-
* Source type discriminator (nullable — dashboard-created
|
|
1504
|
+
* Source type discriminator (nullable — dashboard-created records have no source)
|
|
1505
1505
|
*/
|
|
1506
1506
|
source_type?: 'compensations_compensationpolicy' | 'timesettings_customtimerangecategory' | 'expenses_expensable' | 'expenses_expense' | 'expenses_mileage' | 'benefits_compensation' | 'salary_advance_request' | 'incentives_compensationplanrequest' | 'attendance_review';
|
|
1507
1507
|
/**
|
|
1508
|
-
* Source id (nullable — dashboard-created
|
|
1508
|
+
* Source id (nullable — dashboard-created records have no source)
|
|
1509
1509
|
*/
|
|
1510
1510
|
source_id?: string;
|
|
1511
1511
|
/**
|
|
@@ -1629,6 +1629,44 @@ export type CompensationsPayrollRun = {
|
|
|
1629
1629
|
*/
|
|
1630
1630
|
updated_at?: string;
|
|
1631
1631
|
};
|
|
1632
|
+
export type CompensationsPayrollRunEmployeesCompensation = {
|
|
1633
|
+
/**
|
|
1634
|
+
* Payroll run employee compensation id
|
|
1635
|
+
*/
|
|
1636
|
+
id: string;
|
|
1637
|
+
/**
|
|
1638
|
+
* Employee id (participant of the payroll run)
|
|
1639
|
+
*/
|
|
1640
|
+
payroll_run_employee_id: string;
|
|
1641
|
+
/**
|
|
1642
|
+
* Payroll concept id
|
|
1643
|
+
*/
|
|
1644
|
+
payroll_concept_id: string;
|
|
1645
|
+
/**
|
|
1646
|
+
* Parent payroll run id
|
|
1647
|
+
*/
|
|
1648
|
+
payroll_run_id: string;
|
|
1649
|
+
/**
|
|
1650
|
+
* Record projection type — `compensation` (input) or `payroll_result` (computed)
|
|
1651
|
+
*/
|
|
1652
|
+
result_type: string;
|
|
1653
|
+
/**
|
|
1654
|
+
* Amount strategy discriminator
|
|
1655
|
+
*/
|
|
1656
|
+
amount_strategy_type: 'compensations_fixed_amount_strategy' | 'compensations_variable_amount_strategy' | 'compensations_per_worked_day_amount_strategy';
|
|
1657
|
+
/**
|
|
1658
|
+
* When the record was created
|
|
1659
|
+
*/
|
|
1660
|
+
created_at: string;
|
|
1661
|
+
/**
|
|
1662
|
+
* When the record was last updated
|
|
1663
|
+
*/
|
|
1664
|
+
updated_at: string;
|
|
1665
|
+
/**
|
|
1666
|
+
* 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).
|
|
1667
|
+
*/
|
|
1668
|
+
amount?: number;
|
|
1669
|
+
};
|
|
1632
1670
|
export type ContractsCompensation = {
|
|
1633
1671
|
/**
|
|
1634
1672
|
* Unique identifier of the compensation
|
|
@@ -10991,6 +11029,10 @@ export type PostApi20261001ResourcesAttendanceShiftsData = {
|
|
|
10991
11029
|
* Id of the location related
|
|
10992
11030
|
*/
|
|
10993
11031
|
workplace_id?: string;
|
|
11032
|
+
/**
|
|
11033
|
+
* Id of the project worker the shift is imputed to. A time record for that project is created with the shift.
|
|
11034
|
+
*/
|
|
11035
|
+
project_worker_id?: string;
|
|
10994
11036
|
};
|
|
10995
11037
|
path?: never;
|
|
10996
11038
|
query?: never;
|
|
@@ -12149,7 +12191,7 @@ export type PutApi20261001ResourcesCompensationsEmployeesCompensationsByIdData =
|
|
|
12149
12191
|
id: string;
|
|
12150
12192
|
amount?: number;
|
|
12151
12193
|
/**
|
|
12152
|
-
* Manual override of the strategy-computed amount; not allowed on fixed-strategy
|
|
12194
|
+
* Manual override of the strategy-computed amount; not allowed on fixed-strategy records (422 `overwrite_not_applicable`)
|
|
12153
12195
|
*/
|
|
12154
12196
|
amount_overwritten?: number;
|
|
12155
12197
|
/**
|
|
@@ -12311,6 +12353,65 @@ export type GetApi20261001ResourcesCompensationsPayrollRunsByIdResponses = {
|
|
|
12311
12353
|
200: CompensationsPayrollRun;
|
|
12312
12354
|
};
|
|
12313
12355
|
export type GetApi20261001ResourcesCompensationsPayrollRunsByIdResponse = GetApi20261001ResourcesCompensationsPayrollRunsByIdResponses[keyof GetApi20261001ResourcesCompensationsPayrollRunsByIdResponses];
|
|
12356
|
+
export type GetApi20261001ResourcesCompensationsPayrollRunEmployeesCompensationsData = {
|
|
12357
|
+
body?: never;
|
|
12358
|
+
path?: never;
|
|
12359
|
+
query?: {
|
|
12360
|
+
/**
|
|
12361
|
+
* Payroll run employee compensation ids
|
|
12362
|
+
*/
|
|
12363
|
+
'ids[]'?: Array<string>;
|
|
12364
|
+
/**
|
|
12365
|
+
* Filter by payroll run ids, refers to compensations/payroll_runs endpoint.
|
|
12366
|
+
*/
|
|
12367
|
+
'payroll_run_ids[]'?: Array<string>;
|
|
12368
|
+
/**
|
|
12369
|
+
* Filter by employee ids (participants of the payroll run)
|
|
12370
|
+
*/
|
|
12371
|
+
'payroll_run_employee_ids[]'?: Array<string>;
|
|
12372
|
+
/**
|
|
12373
|
+
* Filter by payroll concept ids, refers to compensations/concepts endpoint.
|
|
12374
|
+
*/
|
|
12375
|
+
'payroll_concept_ids[]'?: Array<string>;
|
|
12376
|
+
/**
|
|
12377
|
+
* Filter by record projection type — `compensation` (input) or `payroll_result` (computed)
|
|
12378
|
+
*/
|
|
12379
|
+
result_type?: 'compensation' | 'payroll_result';
|
|
12380
|
+
/**
|
|
12381
|
+
* Filter by legal entity ids, refers to companies/legal_entities endpoint.
|
|
12382
|
+
*/
|
|
12383
|
+
'legal_entity_ids[]'?: Array<string>;
|
|
12384
|
+
};
|
|
12385
|
+
url: '/api/2026-10-01/resources/compensations/payroll_run_employees_compensations';
|
|
12386
|
+
};
|
|
12387
|
+
export type GetApi20261001ResourcesCompensationsPayrollRunEmployeesCompensationsResponses = {
|
|
12388
|
+
/**
|
|
12389
|
+
* OK
|
|
12390
|
+
*/
|
|
12391
|
+
200: {
|
|
12392
|
+
data?: Array<CompensationsPayrollRunEmployeesCompensation>;
|
|
12393
|
+
meta?: PagedIndexMeta;
|
|
12394
|
+
};
|
|
12395
|
+
};
|
|
12396
|
+
export type GetApi20261001ResourcesCompensationsPayrollRunEmployeesCompensationsResponse = GetApi20261001ResourcesCompensationsPayrollRunEmployeesCompensationsResponses[keyof GetApi20261001ResourcesCompensationsPayrollRunEmployeesCompensationsResponses];
|
|
12397
|
+
export type GetApi20261001ResourcesCompensationsPayrollRunEmployeesCompensationsByIdData = {
|
|
12398
|
+
body?: never;
|
|
12399
|
+
path: {
|
|
12400
|
+
/**
|
|
12401
|
+
* Payroll run employee compensation ids
|
|
12402
|
+
*/
|
|
12403
|
+
id: string;
|
|
12404
|
+
};
|
|
12405
|
+
query?: never;
|
|
12406
|
+
url: '/api/2026-10-01/resources/compensations/payroll_run_employees_compensations/{id}';
|
|
12407
|
+
};
|
|
12408
|
+
export type GetApi20261001ResourcesCompensationsPayrollRunEmployeesCompensationsByIdResponses = {
|
|
12409
|
+
/**
|
|
12410
|
+
* OK
|
|
12411
|
+
*/
|
|
12412
|
+
200: CompensationsPayrollRunEmployeesCompensation;
|
|
12413
|
+
};
|
|
12414
|
+
export type GetApi20261001ResourcesCompensationsPayrollRunEmployeesCompensationsByIdResponse = GetApi20261001ResourcesCompensationsPayrollRunEmployeesCompensationsByIdResponses[keyof GetApi20261001ResourcesCompensationsPayrollRunEmployeesCompensationsByIdResponses];
|
|
12314
12415
|
export type GetApi20261001ResourcesContractsCompensationsData = {
|
|
12315
12416
|
body?: never;
|
|
12316
12417
|
path?: never;
|
|
@@ -14179,7 +14280,7 @@ export type PostApi20261001ResourcesDocumentsDocumentsRestoreFromTrashBinRespons
|
|
|
14179
14280
|
export type PostApi20261001ResourcesDocumentsDownloadUrlsBulkCreateData = {
|
|
14180
14281
|
body?: {
|
|
14181
14282
|
/**
|
|
14182
|
-
* list of document identifiers.
|
|
14283
|
+
* list of document identifiers (between 1 and 100).
|
|
14183
14284
|
*/
|
|
14184
14285
|
ids?: Array<string>;
|
|
14185
14286
|
};
|
|
@@ -14448,11 +14549,15 @@ export type PutApi20261001ResourcesEmployeesEmployeesByIdData = {
|
|
|
14448
14549
|
*/
|
|
14449
14550
|
country?: string;
|
|
14450
14551
|
/**
|
|
14451
|
-
* bank account number of the employee.
|
|
14552
|
+
* bank account number of the employee, in the format given by bank_number_format.
|
|
14452
14553
|
*/
|
|
14453
14554
|
bank_number?: string;
|
|
14454
14555
|
/**
|
|
14455
|
-
*
|
|
14556
|
+
* format of bank_number. Required when bank_number is set.
|
|
14557
|
+
*/
|
|
14558
|
+
bank_number_format?: 'iban' | 'sort_code_and_account_number' | 'routing_number_and_account_number' | 'clabe' | 'other' | 'bank_name_and_account_number';
|
|
14559
|
+
/**
|
|
14560
|
+
* 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
14561
|
*/
|
|
14457
14562
|
swift_bic?: string;
|
|
14458
14563
|
/**
|
|
@@ -24137,7 +24242,7 @@ export type GetApi20261001ResourcesTimeoffAllowanceStatsData = {
|
|
|
24137
24242
|
*/
|
|
24138
24243
|
'ids[]'?: Array<string>;
|
|
24139
24244
|
/**
|
|
24140
|
-
*
|
|
24245
|
+
* 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
24246
|
*/
|
|
24142
24247
|
'employee_ids[]'?: Array<string>;
|
|
24143
24248
|
/**
|
|
@@ -24149,7 +24254,7 @@ export type GetApi20261001ResourcesTimeoffAllowanceStatsData = {
|
|
|
24149
24254
|
*/
|
|
24150
24255
|
reference_date?: string;
|
|
24151
24256
|
/**
|
|
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.
|
|
24257
|
+
* 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
24258
|
*/
|
|
24154
24259
|
simulate_policy_change_to_id?: string;
|
|
24155
24260
|
};
|
|
@@ -24974,6 +25079,10 @@ export type PostApi20261001ResourcesTimeoffPoliciesData = {
|
|
|
24974
25079
|
* Company ID.
|
|
24975
25080
|
*/
|
|
24976
25081
|
company_id?: string;
|
|
25082
|
+
/**
|
|
25083
|
+
* 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.
|
|
25084
|
+
*/
|
|
25085
|
+
based_on_policy_id?: string;
|
|
24977
25086
|
};
|
|
24978
25087
|
path?: never;
|
|
24979
25088
|
query?: never;
|
|
@@ -26571,7 +26680,7 @@ export type PostApi20261001ResourcesTrainingsTrainingMembershipsBulkCreateData =
|
|
|
26571
26680
|
/**
|
|
26572
26681
|
* ids for the accesses to be assigned in a training
|
|
26573
26682
|
*/
|
|
26574
|
-
employee_ids
|
|
26683
|
+
employee_ids?: Array<string>;
|
|
26575
26684
|
/**
|
|
26576
26685
|
* Training id to be assigned
|
|
26577
26686
|
*/
|