@factorialco/api-client 3.0.0-beta.2026100127 → 3.0.0-beta.2026100129

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.
@@ -1170,6 +1170,64 @@ export const getApi20261001ResourcesCompaniesLegalEntitiesById = (options) => (o
1170
1170
  url: '/api/2026-10-01/resources/companies/legal_entities/{id}',
1171
1171
  ...options
1172
1172
  });
1173
+ /**
1174
+ * Reads all Additional compensations
1175
+ *
1176
+ * Retrieves additional compensations. At least one of `ids`, `contract_version_ids`, `employee_ids`, or `payroll_concept_ids` must be supplied to scope the response.
1177
+ */
1178
+ export const getApi20261001ResourcesCompensationsAdditionalCompensations = (options) => (options?.client ?? client).get({
1179
+ security: [{ scheme: 'bearer', type: 'http' }, { name: 'x-api-key', type: 'apiKey' }],
1180
+ url: '/api/2026-10-01/resources/compensations/additional_compensations',
1181
+ ...options
1182
+ });
1183
+ /**
1184
+ * Creates an Additional compensation
1185
+ *
1186
+ * Creates an additional compensation for a contract version.
1187
+ */
1188
+ export const postApi20261001ResourcesCompensationsAdditionalCompensations = (options) => (options?.client ?? client).post({
1189
+ security: [{ scheme: 'bearer', type: 'http' }, { name: 'x-api-key', type: 'apiKey' }],
1190
+ url: '/api/2026-10-01/resources/compensations/additional_compensations',
1191
+ ...options,
1192
+ headers: {
1193
+ 'Content-Type': 'application/json',
1194
+ ...options?.headers
1195
+ }
1196
+ });
1197
+ /**
1198
+ * Deletes an Additional compensation
1199
+ *
1200
+ * Deletes an additional compensation. Cascades to the linked amount strategy and (when applicable) per-worked-day definition, and re-points any compensation policies that referenced the destroyed strategy.
1201
+ */
1202
+ export const deleteApi20261001ResourcesCompensationsAdditionalCompensationsById = (options) => (options.client ?? client).delete({
1203
+ security: [{ scheme: 'bearer', type: 'http' }, { name: 'x-api-key', type: 'apiKey' }],
1204
+ url: '/api/2026-10-01/resources/compensations/additional_compensations/{id}',
1205
+ ...options
1206
+ });
1207
+ /**
1208
+ * Reads a single Additional compensation
1209
+ *
1210
+ * Retrieves additional compensations. At least one of `ids`, `contract_version_ids`, `employee_ids`, or `payroll_concept_ids` must be supplied to scope the response.
1211
+ */
1212
+ export const getApi20261001ResourcesCompensationsAdditionalCompensationsById = (options) => (options.client ?? client).get({
1213
+ security: [{ scheme: 'bearer', type: 'http' }, { name: 'x-api-key', type: 'apiKey' }],
1214
+ url: '/api/2026-10-01/resources/compensations/additional_compensations/{id}',
1215
+ ...options
1216
+ });
1217
+ /**
1218
+ * Updates an Additional compensation
1219
+ *
1220
+ * Updates an additional compensation. Identity fields (`contract_version_id`, `payroll_concept_id`, `company_id`) are immutable once created.
1221
+ */
1222
+ export const putApi20261001ResourcesCompensationsAdditionalCompensationsById = (options) => (options.client ?? client).put({
1223
+ security: [{ scheme: 'bearer', type: 'http' }, { name: 'x-api-key', type: 'apiKey' }],
1224
+ url: '/api/2026-10-01/resources/compensations/additional_compensations/{id}',
1225
+ ...options,
1226
+ headers: {
1227
+ 'Content-Type': 'application/json',
1228
+ ...options.headers
1229
+ }
1230
+ });
1173
1231
  /**
1174
1232
  * Reads all Concepts
1175
1233
  *
@@ -1336,6 +1394,26 @@ export const getApi20261001ResourcesCompensationsPayrollRunsById = (options) =>
1336
1394
  url: '/api/2026-10-01/resources/compensations/payroll_runs/{id}',
1337
1395
  ...options
1338
1396
  });
1397
+ /**
1398
+ * Reads all Payroll run employees compensations
1399
+ *
1400
+ * Retrieves payroll-run employee compensation records.
1401
+ */
1402
+ export const getApi20261001ResourcesCompensationsPayrollRunEmployeesCompensations = (options) => (options?.client ?? client).get({
1403
+ security: [{ scheme: 'bearer', type: 'http' }, { name: 'x-api-key', type: 'apiKey' }],
1404
+ url: '/api/2026-10-01/resources/compensations/payroll_run_employees_compensations',
1405
+ ...options
1406
+ });
1407
+ /**
1408
+ * Reads a single Payroll run employees compensation
1409
+ *
1410
+ * Retrieves payroll-run employee compensation records.
1411
+ */
1412
+ export const getApi20261001ResourcesCompensationsPayrollRunEmployeesCompensationsById = (options) => (options.client ?? client).get({
1413
+ security: [{ scheme: 'bearer', type: 'http' }, { name: 'x-api-key', type: 'apiKey' }],
1414
+ url: '/api/2026-10-01/resources/compensations/payroll_run_employees_compensations/{id}',
1415
+ ...options
1416
+ });
1339
1417
  /**
1340
1418
  * Reads all Compensations
1341
1419
  *
@@ -2076,7 +2154,7 @@ export const postApi20261001ResourcesDocumentsDocumentsRestoreFromTrashBin = (op
2076
2154
  /**
2077
2155
  * Bulk creates a Download url
2078
2156
  *
2079
- * This endpoint generate temporal urls for a list of documents. The urls let you download the documents.
2157
+ * This endpoint generates temporary urls for a list of between 1 and 100 documents. The urls let you download the documents.
2080
2158
  */
2081
2159
  export const postApi20261001ResourcesDocumentsDownloadUrlsBulkCreate = (options) => (options?.client ?? client).post({
2082
2160
  security: [{ scheme: 'bearer', type: 'http' }, { name: 'x-api-key', type: 'apiKey' }],
@@ -6153,7 +6231,7 @@ export const putApi20261001ResourcesTimeoffAllowanceIncidencesById = (options) =
6153
6231
  /**
6154
6232
  * Reads all Allowance stats
6155
6233
  *
6156
- * Retrieves the employee time off counters for a specific allowance with a reference date
6234
+ * Retrieves the employee time off counters for a specific allowance with a reference date. Read without employee_ids it pages by employee with a cursor: limit and meta.total count employees rather than stats, so a page carries every stat those employees have, and the page parameter is not supported there - follow meta.end_cursor instead.
6157
6235
  */
6158
6236
  export const getApi20261001ResourcesTimeoffAllowanceStats = (options) => (options?.client ?? client).get({
6159
6237
  security: [{ scheme: 'bearer', type: 'http' }, { name: 'x-api-key', type: 'apiKey' }],
@@ -6163,7 +6241,7 @@ export const getApi20261001ResourcesTimeoffAllowanceStats = (options) => (option
6163
6241
  /**
6164
6242
  * Reads a single Allowance stat
6165
6243
  *
6166
- * Retrieves the employee time off counters for a specific allowance with a reference date
6244
+ * Retrieves the employee time off counters for a specific allowance with a reference date. Read without employee_ids it pages by employee with a cursor: limit and meta.total count employees rather than stats, so a page carries every stat those employees have, and the page parameter is not supported there - follow meta.end_cursor instead.
6167
6245
  */
6168
6246
  export const getApi20261001ResourcesTimeoffAllowanceStatsById = (options) => (options.client ?? client).get({
6169
6247
  security: [{ scheme: 'bearer', type: 'http' }, { name: 'x-api-key', type: 'apiKey' }],