@factorialco/api-client 3.0.0-beta.2026100124 → 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.
@@ -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 = {
@@ -5157,25 +5187,38 @@ export type MarketplaceInstallationSettings = {
5157
5187
  leave_types: Array<{
5158
5188
  id: string;
5159
5189
  value: string;
5190
+ forfait_jours?: boolean;
5160
5191
  }>;
5161
5192
  /**
5162
- * Legal Entity file numbers
5193
+ * Timeoff allowance codes
5163
5194
  */
5164
- file_numbers: Array<{
5165
- legal_entity_id: string;
5195
+ timeoff_allowance_code: Array<{
5196
+ id: string;
5166
5197
  value: string;
5167
5198
  }>;
5168
5199
  /**
5169
- * Workplace establishment codes
5200
+ * Company-level code
5170
5201
  */
5171
- establishment_codes: Array<{
5172
- location_id: string;
5202
+ company_code?: string;
5203
+ /**
5204
+ * Legal entity codes (id is the legal entity id)
5205
+ */
5206
+ legal_entities: Array<{
5207
+ id: string;
5173
5208
  value: string;
5174
5209
  }>;
5175
5210
  /**
5176
- * Timeoff allowance codes
5211
+ * Workplace codes (id is the location id)
5177
5212
  */
5178
- timeoff_allowance_code: Array<{
5213
+ locations: Array<{
5214
+ id: string;
5215
+ value: string;
5216
+ }>;
5217
+ /**
5218
+ * Payroll concept codes per legal entity (id is the payroll concept id)
5219
+ */
5220
+ payroll_concept_codes: Array<{
5221
+ legal_entity_id: string;
5179
5222
  id: string;
5180
5223
  value: string;
5181
5224
  }>;
@@ -7822,6 +7865,20 @@ export type TimeoffBlockedPeriodsPolicy = {
7822
7865
  */
7823
7866
  legal_entity_ids?: Array<string>;
7824
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
+ };
7825
7882
  export type TimeoffLeave = {
7826
7883
  /**
7827
7884
  * Identifier of the Leave
@@ -11256,10 +11313,29 @@ export type GetApi20261001ResourcesAttendanceWorkedTimesData = {
11256
11313
  body?: never;
11257
11314
  path?: never;
11258
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
+ */
11259
11323
  start_on?: string;
11324
+ /**
11325
+ * End of the date range to fetch worked times for (inclusive). Required together with start_on.
11326
+ */
11260
11327
  end_on?: string;
11328
+ /**
11329
+ * Employee IDs to filter the date-range query by. When omitted, all attendable employees are returned.
11330
+ */
11261
11331
  'employee_ids[]'?: Array<string>;
11332
+ /**
11333
+ * Whether to include the time range category on each worked time block.
11334
+ */
11262
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
+ */
11263
11339
  include_non_attendable_employees: boolean;
11264
11340
  };
11265
11341
  url: '/api/2026-10-01/resources/attendance/worked_times';
@@ -11274,6 +11350,24 @@ export type GetApi20261001ResourcesAttendanceWorkedTimesResponses = {
11274
11350
  };
11275
11351
  };
11276
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];
11277
11371
  export type GetApi20261001ResourcesBankingBankAccountsData = {
11278
11372
  body?: never;
11279
11373
  path?: never;
@@ -15829,6 +15923,9 @@ export type GetApi20261001ResourcesFinanceCostCentersData = {
15829
15923
  path?: never;
15830
15924
  query?: {
15831
15925
  'ids[]'?: Array<string>;
15926
+ /**
15927
+ * Company id to filter cost centers by.
15928
+ */
15832
15929
  company_id?: string;
15833
15930
  'legal_entity_ids[]'?: Array<string>;
15834
15931
  include_actives_on_date?: string;
@@ -15848,10 +15945,25 @@ export type GetApi20261001ResourcesFinanceCostCentersResponses = {
15848
15945
  export type GetApi20261001ResourcesFinanceCostCentersResponse = GetApi20261001ResourcesFinanceCostCentersResponses[keyof GetApi20261001ResourcesFinanceCostCentersResponses];
15849
15946
  export type PostApi20261001ResourcesFinanceCostCentersData = {
15850
15947
  body?: {
15948
+ /**
15949
+ * Name of the cost center.
15950
+ */
15851
15951
  name: string;
15952
+ /**
15953
+ * Company id the cost center belongs to.
15954
+ */
15852
15955
  company_id: string;
15956
+ /**
15957
+ * Legal entity id the cost center belongs to.
15958
+ */
15853
15959
  legal_entity_id?: string;
15960
+ /**
15961
+ * Optional unique code of the cost center.
15962
+ */
15854
15963
  code?: string;
15964
+ /**
15965
+ * Optional free text describing the cost center.
15966
+ */
15855
15967
  description?: string;
15856
15968
  };
15857
15969
  path?: never;
@@ -15897,11 +16009,26 @@ export type GetApi20261001ResourcesFinanceCostCentersByIdResponses = {
15897
16009
  export type GetApi20261001ResourcesFinanceCostCentersByIdResponse = GetApi20261001ResourcesFinanceCostCentersByIdResponses[keyof GetApi20261001ResourcesFinanceCostCentersByIdResponses];
15898
16010
  export type PostApi20261001ResourcesFinanceCostCentersEditData = {
15899
16011
  body?: {
16012
+ /**
16013
+ * Id of the cost center to edit.
16014
+ */
15900
16015
  id: string;
16016
+ /**
16017
+ * New name of the cost center.
16018
+ */
15901
16019
  name?: string;
16020
+ /**
16021
+ * New code of the cost center.
16022
+ */
15902
16023
  code?: string;
16024
+ /**
16025
+ * New description of the cost center.
16026
+ */
15903
16027
  description?: string;
15904
- company_id: string;
16028
+ /**
16029
+ * Deprecated and unused; the company is derived from the authenticated credentials.
16030
+ */
16031
+ company_id?: string;
15905
16032
  };
15906
16033
  path?: never;
15907
16034
  query?: never;
@@ -16804,6 +16931,10 @@ export type GetApi20261001ResourcesIntegrationsSyncRunsData = {
16804
16931
  body?: never;
16805
16932
  path?: never;
16806
16933
  query: {
16934
+ /**
16935
+ * identifier of sync run
16936
+ */
16937
+ 'ids[]'?: Array<string>;
16807
16938
  /**
16808
16939
  * UUID of the marketplace integration to filter sync runs by.
16809
16940
  */
@@ -16825,6 +16956,24 @@ export type GetApi20261001ResourcesIntegrationsSyncRunsResponses = {
16825
16956
  };
16826
16957
  };
16827
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];
16828
16977
  export type PostApi20261001ResourcesIntegrationsSyncRunOutputsData = {
16829
16978
  body?: {
16830
16979
  /**
@@ -16835,6 +16984,10 @@ export type PostApi20261001ResourcesIntegrationsSyncRunOutputsData = {
16835
16984
  * The CSV file to upload as the sync run output
16836
16985
  */
16837
16986
  file: Blob | File;
16987
+ /**
16988
+ * Optional custom name for the uploaded file. When omitted, a standardized name is generated.
16989
+ */
16990
+ file_name: string;
16838
16991
  };
16839
16992
  path?: never;
16840
16993
  query?: never;
@@ -24138,6 +24291,43 @@ export type PutApi20261001ResourcesTimeoffBlockedPeriodsByIdResponses = {
24138
24291
  200: TimeoffBlockedPeriodsPolicy;
24139
24292
  };
24140
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];
24141
24331
  export type GetApi20261001ResourcesTimeoffLeavesData = {
24142
24332
  body?: never;
24143
24333
  path?: never;