@factorialco/api-client 4.0.0-beta.2027010101 → 4.0.0-beta.2027010102

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.
@@ -1736,6 +1736,20 @@ export type CompensationsPayrollRunEmployeesCompensation = {
1736
1736
  */
1737
1737
  amount?: number;
1738
1738
  };
1739
+ export type CompensationsPayrollRunParticipant = {
1740
+ /**
1741
+ * Identifier of the (payroll run, employee) pair
1742
+ */
1743
+ id: string;
1744
+ /**
1745
+ * Payroll run id
1746
+ */
1747
+ payroll_run_id: string;
1748
+ /**
1749
+ * Employee id
1750
+ */
1751
+ employee_id: string;
1752
+ };
1739
1753
  export type ContractsCompensation = {
1740
1754
  /**
1741
1755
  * Unique identifier of the compensation
@@ -4165,7 +4179,7 @@ export type ExpensesMileage = {
4165
4179
  */
4166
4180
  status: string;
4167
4181
  /**
4168
- * The distance travelled, expressed in `units`
4182
+ * The distance travelled, in hundredths of `units` (a 12.5 km trip is 1250)
4169
4183
  */
4170
4184
  mileage?: number;
4171
4185
  /**
@@ -13162,6 +13176,31 @@ export type GetApi20270101ResourcesCompensationsPayrollRunEmployeesCompensations
13162
13176
  200: CompensationsPayrollRunEmployeesCompensation;
13163
13177
  };
13164
13178
  export type GetApi20270101ResourcesCompensationsPayrollRunEmployeesCompensationsByIdResponse = GetApi20270101ResourcesCompensationsPayrollRunEmployeesCompensationsByIdResponses[keyof GetApi20270101ResourcesCompensationsPayrollRunEmployeesCompensationsByIdResponses];
13179
+ export type GetApi20270101ResourcesCompensationsPayrollRunParticipantsData = {
13180
+ body?: never;
13181
+ path?: never;
13182
+ query: {
13183
+ /**
13184
+ * Regular payroll run ids, at most 5, refers to compensations/payroll_runs endpoint. The only use case so far requests a single run; the limit of 5 leaves margin for future integrations while keeping each request cheap.
13185
+ */
13186
+ 'payroll_run_ids[]': Array<string>;
13187
+ /**
13188
+ * Only consider these employees, refers to employees/employees endpoint. When omitted, every employee the caller can see is considered.
13189
+ */
13190
+ 'employee_ids[]'?: Array<string>;
13191
+ };
13192
+ url: '/api/2027-01-01/resources/compensations/payroll_run_participants';
13193
+ };
13194
+ export type GetApi20270101ResourcesCompensationsPayrollRunParticipantsResponses = {
13195
+ /**
13196
+ * OK
13197
+ */
13198
+ 200: {
13199
+ data?: Array<CompensationsPayrollRunParticipant>;
13200
+ meta?: PagedIndexMeta;
13201
+ };
13202
+ };
13203
+ export type GetApi20270101ResourcesCompensationsPayrollRunParticipantsResponse = GetApi20270101ResourcesCompensationsPayrollRunParticipantsResponses[keyof GetApi20270101ResourcesCompensationsPayrollRunParticipantsResponses];
13165
13204
  export type GetApi20270101ResourcesContractsCompensationsData = {
13166
13205
  body?: never;
13167
13206
  path?: never;