@factorialco/api-client 3.0.0-beta.2026100125 → 3.0.0-beta.2026100126
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 +14 -11
- package/dist/cjs/generated/index.js.map +1 -1
- package/dist/cjs/generated/sdk.gen.d.ts +19 -1
- package/dist/cjs/generated/sdk.gen.d.ts.map +1 -1
- package/dist/cjs/generated/sdk.gen.js +44 -11
- package/dist/cjs/generated/sdk.gen.js.map +1 -1
- package/dist/cjs/generated/types.gen.d.ts +174 -1
- package/dist/cjs/generated/types.gen.d.ts.map +1 -1
- package/dist/cjs/sdk.d.ts +29 -1
- package/dist/cjs/sdk.d.ts.map +1 -1
- package/dist/cjs/sdk.js +33 -2
- 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 +19 -1
- package/dist/esm/generated/sdk.gen.d.ts.map +1 -1
- package/dist/esm/generated/sdk.gen.js +30 -0
- package/dist/esm/generated/sdk.gen.js.map +1 -1
- package/dist/esm/generated/types.gen.d.ts +174 -1
- package/dist/esm/generated/types.gen.d.ts.map +1 -1
- package/dist/esm/sdk.d.ts +29 -1
- package/dist/esm/sdk.d.ts.map +1 -1
- package/dist/esm/sdk.js +31 -1
- package/dist/esm/sdk.js.map +1 -1
- package/package.json +20 -11
|
@@ -4185,15 +4185,45 @@ export type FinanceContact = {
|
|
|
4185
4185
|
phone_number?: string;
|
|
4186
4186
|
};
|
|
4187
4187
|
export type FinanceCostCenter = {
|
|
4188
|
+
/**
|
|
4189
|
+
* Factorial id of the cost center.
|
|
4190
|
+
*/
|
|
4188
4191
|
id: string;
|
|
4192
|
+
/**
|
|
4193
|
+
* Name of the cost center.
|
|
4194
|
+
*/
|
|
4189
4195
|
name: string;
|
|
4196
|
+
/**
|
|
4197
|
+
* Company id the cost center belongs to.
|
|
4198
|
+
*/
|
|
4190
4199
|
company_id: string;
|
|
4200
|
+
/**
|
|
4201
|
+
* Legal entity id the cost center belongs to.
|
|
4202
|
+
*/
|
|
4191
4203
|
legal_entity_id?: string;
|
|
4204
|
+
/**
|
|
4205
|
+
* Optional unique code of the cost center.
|
|
4206
|
+
*/
|
|
4192
4207
|
code?: string;
|
|
4208
|
+
/**
|
|
4209
|
+
* Optional free text describing the cost center.
|
|
4210
|
+
*/
|
|
4193
4211
|
description?: string;
|
|
4212
|
+
/**
|
|
4213
|
+
* Number of employees currently assigned to the cost center.
|
|
4214
|
+
*/
|
|
4194
4215
|
active_employees_count: number;
|
|
4216
|
+
/**
|
|
4217
|
+
* Number of employees ever assigned to the cost center.
|
|
4218
|
+
*/
|
|
4195
4219
|
historical_employees_count: number;
|
|
4220
|
+
/**
|
|
4221
|
+
* Whether the cost center is active or inactive.
|
|
4222
|
+
*/
|
|
4196
4223
|
status: string;
|
|
4224
|
+
/**
|
|
4225
|
+
* Date the cost center was deactivated, if inactive.
|
|
4226
|
+
*/
|
|
4197
4227
|
deactivation_date?: string;
|
|
4198
4228
|
};
|
|
4199
4229
|
export type FinanceCostCenterMembership = {
|
|
@@ -7835,6 +7865,20 @@ export type TimeoffBlockedPeriodsPolicy = {
|
|
|
7835
7865
|
*/
|
|
7836
7866
|
legal_entity_ids?: Array<string>;
|
|
7837
7867
|
};
|
|
7868
|
+
export type TimeoffFrenchLeaveDayCount = {
|
|
7869
|
+
/**
|
|
7870
|
+
* Identifier of the leave this count belongs to
|
|
7871
|
+
*/
|
|
7872
|
+
leave_id: string;
|
|
7873
|
+
/**
|
|
7874
|
+
* The counted quantity, expressed in the unit given by `unit`
|
|
7875
|
+
*/
|
|
7876
|
+
amount: number;
|
|
7877
|
+
/**
|
|
7878
|
+
* Whether the amount is a number of days or of hours
|
|
7879
|
+
*/
|
|
7880
|
+
unit: 'days' | 'hours';
|
|
7881
|
+
};
|
|
7838
7882
|
export type TimeoffLeave = {
|
|
7839
7883
|
/**
|
|
7840
7884
|
* Identifier of the Leave
|
|
@@ -11269,10 +11313,29 @@ export type GetApi20261001ResourcesAttendanceWorkedTimesData = {
|
|
|
11269
11313
|
body?: never;
|
|
11270
11314
|
path?: never;
|
|
11271
11315
|
query: {
|
|
11316
|
+
/**
|
|
11317
|
+
* Composite worked time id combining the employee_id and date, formatted as <employee_id>_<YYYY-MM-DD>.
|
|
11318
|
+
*/
|
|
11319
|
+
'ids[]'?: Array<string>;
|
|
11320
|
+
/**
|
|
11321
|
+
* Start of the date range to fetch worked times for (inclusive). Required together with end_on.
|
|
11322
|
+
*/
|
|
11272
11323
|
start_on?: string;
|
|
11324
|
+
/**
|
|
11325
|
+
* End of the date range to fetch worked times for (inclusive). Required together with start_on.
|
|
11326
|
+
*/
|
|
11273
11327
|
end_on?: string;
|
|
11328
|
+
/**
|
|
11329
|
+
* Employee IDs to filter the date-range query by. When omitted, all attendable employees are returned.
|
|
11330
|
+
*/
|
|
11274
11331
|
'employee_ids[]'?: Array<string>;
|
|
11332
|
+
/**
|
|
11333
|
+
* Whether to include the time range category on each worked time block.
|
|
11334
|
+
*/
|
|
11275
11335
|
include_time_range_category: boolean;
|
|
11336
|
+
/**
|
|
11337
|
+
* Whether to include employees excluded from attendance (attendable=false) in the result. Forced to true when filtering by a single employee, so their historical worked time is returned even if they are no longer attendable.
|
|
11338
|
+
*/
|
|
11276
11339
|
include_non_attendable_employees: boolean;
|
|
11277
11340
|
};
|
|
11278
11341
|
url: '/api/2026-10-01/resources/attendance/worked_times';
|
|
@@ -11287,6 +11350,24 @@ export type GetApi20261001ResourcesAttendanceWorkedTimesResponses = {
|
|
|
11287
11350
|
};
|
|
11288
11351
|
};
|
|
11289
11352
|
export type GetApi20261001ResourcesAttendanceWorkedTimesResponse = GetApi20261001ResourcesAttendanceWorkedTimesResponses[keyof GetApi20261001ResourcesAttendanceWorkedTimesResponses];
|
|
11353
|
+
export type GetApi20261001ResourcesAttendanceWorkedTimesByIdData = {
|
|
11354
|
+
body?: never;
|
|
11355
|
+
path: {
|
|
11356
|
+
/**
|
|
11357
|
+
* Composite worked time id combining the employee_id and date, formatted as <employee_id>_<YYYY-MM-DD>.
|
|
11358
|
+
*/
|
|
11359
|
+
id: string;
|
|
11360
|
+
};
|
|
11361
|
+
query?: never;
|
|
11362
|
+
url: '/api/2026-10-01/resources/attendance/worked_times/{id}';
|
|
11363
|
+
};
|
|
11364
|
+
export type GetApi20261001ResourcesAttendanceWorkedTimesByIdResponses = {
|
|
11365
|
+
/**
|
|
11366
|
+
* OK
|
|
11367
|
+
*/
|
|
11368
|
+
200: AttendanceWorkedTime;
|
|
11369
|
+
};
|
|
11370
|
+
export type GetApi20261001ResourcesAttendanceWorkedTimesByIdResponse = GetApi20261001ResourcesAttendanceWorkedTimesByIdResponses[keyof GetApi20261001ResourcesAttendanceWorkedTimesByIdResponses];
|
|
11290
11371
|
export type GetApi20261001ResourcesBankingBankAccountsData = {
|
|
11291
11372
|
body?: never;
|
|
11292
11373
|
path?: never;
|
|
@@ -15842,6 +15923,9 @@ export type GetApi20261001ResourcesFinanceCostCentersData = {
|
|
|
15842
15923
|
path?: never;
|
|
15843
15924
|
query?: {
|
|
15844
15925
|
'ids[]'?: Array<string>;
|
|
15926
|
+
/**
|
|
15927
|
+
* Company id to filter cost centers by.
|
|
15928
|
+
*/
|
|
15845
15929
|
company_id?: string;
|
|
15846
15930
|
'legal_entity_ids[]'?: Array<string>;
|
|
15847
15931
|
include_actives_on_date?: string;
|
|
@@ -15861,10 +15945,25 @@ export type GetApi20261001ResourcesFinanceCostCentersResponses = {
|
|
|
15861
15945
|
export type GetApi20261001ResourcesFinanceCostCentersResponse = GetApi20261001ResourcesFinanceCostCentersResponses[keyof GetApi20261001ResourcesFinanceCostCentersResponses];
|
|
15862
15946
|
export type PostApi20261001ResourcesFinanceCostCentersData = {
|
|
15863
15947
|
body?: {
|
|
15948
|
+
/**
|
|
15949
|
+
* Name of the cost center.
|
|
15950
|
+
*/
|
|
15864
15951
|
name: string;
|
|
15952
|
+
/**
|
|
15953
|
+
* Company id the cost center belongs to.
|
|
15954
|
+
*/
|
|
15865
15955
|
company_id: string;
|
|
15956
|
+
/**
|
|
15957
|
+
* Legal entity id the cost center belongs to.
|
|
15958
|
+
*/
|
|
15866
15959
|
legal_entity_id?: string;
|
|
15960
|
+
/**
|
|
15961
|
+
* Optional unique code of the cost center.
|
|
15962
|
+
*/
|
|
15867
15963
|
code?: string;
|
|
15964
|
+
/**
|
|
15965
|
+
* Optional free text describing the cost center.
|
|
15966
|
+
*/
|
|
15868
15967
|
description?: string;
|
|
15869
15968
|
};
|
|
15870
15969
|
path?: never;
|
|
@@ -15910,11 +16009,26 @@ export type GetApi20261001ResourcesFinanceCostCentersByIdResponses = {
|
|
|
15910
16009
|
export type GetApi20261001ResourcesFinanceCostCentersByIdResponse = GetApi20261001ResourcesFinanceCostCentersByIdResponses[keyof GetApi20261001ResourcesFinanceCostCentersByIdResponses];
|
|
15911
16010
|
export type PostApi20261001ResourcesFinanceCostCentersEditData = {
|
|
15912
16011
|
body?: {
|
|
16012
|
+
/**
|
|
16013
|
+
* Id of the cost center to edit.
|
|
16014
|
+
*/
|
|
15913
16015
|
id: string;
|
|
16016
|
+
/**
|
|
16017
|
+
* New name of the cost center.
|
|
16018
|
+
*/
|
|
15914
16019
|
name?: string;
|
|
16020
|
+
/**
|
|
16021
|
+
* New code of the cost center.
|
|
16022
|
+
*/
|
|
15915
16023
|
code?: string;
|
|
16024
|
+
/**
|
|
16025
|
+
* New description of the cost center.
|
|
16026
|
+
*/
|
|
15916
16027
|
description?: string;
|
|
15917
|
-
|
|
16028
|
+
/**
|
|
16029
|
+
* Deprecated and unused; the company is derived from the authenticated credentials.
|
|
16030
|
+
*/
|
|
16031
|
+
company_id?: string;
|
|
15918
16032
|
};
|
|
15919
16033
|
path?: never;
|
|
15920
16034
|
query?: never;
|
|
@@ -16817,6 +16931,10 @@ export type GetApi20261001ResourcesIntegrationsSyncRunsData = {
|
|
|
16817
16931
|
body?: never;
|
|
16818
16932
|
path?: never;
|
|
16819
16933
|
query: {
|
|
16934
|
+
/**
|
|
16935
|
+
* identifier of sync run
|
|
16936
|
+
*/
|
|
16937
|
+
'ids[]'?: Array<string>;
|
|
16820
16938
|
/**
|
|
16821
16939
|
* UUID of the marketplace integration to filter sync runs by.
|
|
16822
16940
|
*/
|
|
@@ -16838,6 +16956,24 @@ export type GetApi20261001ResourcesIntegrationsSyncRunsResponses = {
|
|
|
16838
16956
|
};
|
|
16839
16957
|
};
|
|
16840
16958
|
export type GetApi20261001ResourcesIntegrationsSyncRunsResponse = GetApi20261001ResourcesIntegrationsSyncRunsResponses[keyof GetApi20261001ResourcesIntegrationsSyncRunsResponses];
|
|
16959
|
+
export type GetApi20261001ResourcesIntegrationsSyncRunsByIdData = {
|
|
16960
|
+
body?: never;
|
|
16961
|
+
path: {
|
|
16962
|
+
/**
|
|
16963
|
+
* identifier of sync run
|
|
16964
|
+
*/
|
|
16965
|
+
id: string;
|
|
16966
|
+
};
|
|
16967
|
+
query?: never;
|
|
16968
|
+
url: '/api/2026-10-01/resources/integrations/sync_runs/{id}';
|
|
16969
|
+
};
|
|
16970
|
+
export type GetApi20261001ResourcesIntegrationsSyncRunsByIdResponses = {
|
|
16971
|
+
/**
|
|
16972
|
+
* OK
|
|
16973
|
+
*/
|
|
16974
|
+
200: IntegrationsSyncRun;
|
|
16975
|
+
};
|
|
16976
|
+
export type GetApi20261001ResourcesIntegrationsSyncRunsByIdResponse = GetApi20261001ResourcesIntegrationsSyncRunsByIdResponses[keyof GetApi20261001ResourcesIntegrationsSyncRunsByIdResponses];
|
|
16841
16977
|
export type PostApi20261001ResourcesIntegrationsSyncRunOutputsData = {
|
|
16842
16978
|
body?: {
|
|
16843
16979
|
/**
|
|
@@ -24155,6 +24291,43 @@ export type PutApi20261001ResourcesTimeoffBlockedPeriodsByIdResponses = {
|
|
|
24155
24291
|
200: TimeoffBlockedPeriodsPolicy;
|
|
24156
24292
|
};
|
|
24157
24293
|
export type PutApi20261001ResourcesTimeoffBlockedPeriodsByIdResponse = PutApi20261001ResourcesTimeoffBlockedPeriodsByIdResponses[keyof PutApi20261001ResourcesTimeoffBlockedPeriodsByIdResponses];
|
|
24294
|
+
export type GetApi20261001ResourcesTimeoffFrenchLeaveDayCountsData = {
|
|
24295
|
+
body?: never;
|
|
24296
|
+
path?: never;
|
|
24297
|
+
query: {
|
|
24298
|
+
/**
|
|
24299
|
+
* Only return day counts for these leaves. Required unless `from` and `to` are sent
|
|
24300
|
+
*/
|
|
24301
|
+
'leave_ids[]'?: Array<string>;
|
|
24302
|
+
/**
|
|
24303
|
+
* Only return day counts for leaves belonging to these employees
|
|
24304
|
+
*/
|
|
24305
|
+
'employee_ids[]'?: Array<string>;
|
|
24306
|
+
/**
|
|
24307
|
+
* Start of the period the count is computed over (YYYY-MM-DD). Leaves are filtered to those overlapping the period, and a leave extending beyond it is counted only for the days inside. Must be sent together with `to`. Required unless `leave_ids` is sent.
|
|
24308
|
+
*/
|
|
24309
|
+
from?: string;
|
|
24310
|
+
/**
|
|
24311
|
+
* End of the period the count is computed over (YYYY-MM-DD). Must be sent together with `from`. Required unless `leave_ids` is sent.
|
|
24312
|
+
*/
|
|
24313
|
+
to?: string;
|
|
24314
|
+
/**
|
|
24315
|
+
* Include leaves that have been deleted
|
|
24316
|
+
*/
|
|
24317
|
+
include_deleted: boolean;
|
|
24318
|
+
};
|
|
24319
|
+
url: '/api/2026-10-01/resources/timeoff/french_leave_day_counts';
|
|
24320
|
+
};
|
|
24321
|
+
export type GetApi20261001ResourcesTimeoffFrenchLeaveDayCountsResponses = {
|
|
24322
|
+
/**
|
|
24323
|
+
* OK
|
|
24324
|
+
*/
|
|
24325
|
+
200: {
|
|
24326
|
+
data?: Array<TimeoffFrenchLeaveDayCount>;
|
|
24327
|
+
meta?: PagedIndexMeta;
|
|
24328
|
+
};
|
|
24329
|
+
};
|
|
24330
|
+
export type GetApi20261001ResourcesTimeoffFrenchLeaveDayCountsResponse = GetApi20261001ResourcesTimeoffFrenchLeaveDayCountsResponses[keyof GetApi20261001ResourcesTimeoffFrenchLeaveDayCountsResponses];
|
|
24158
24331
|
export type GetApi20261001ResourcesTimeoffLeavesData = {
|
|
24159
24332
|
body?: never;
|
|
24160
24333
|
path?: never;
|