@factorialco/api-client 4.0.0-beta.2027010125 → 4.0.0-beta.2027010127

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.
@@ -3592,6 +3592,68 @@ export const getApi20270101ResourcesJobCatalogTreeNodes = (options) => (options.
3592
3592
  url: '/api/2027-01-01/resources/job_catalog/tree_nodes',
3593
3593
  ...options
3594
3594
  });
3595
+ /**
3596
+ * List employee workplace assignments
3597
+ *
3598
+ * Return workplace assignments. Filter by employee_ids to list the workplaces of specific employees.
3599
+ */
3600
+ export const getApi20270101ResourcesLocationsEmployeesLocations = (options) => (options?.client ?? client).get({
3601
+ security: [{ scheme: 'bearer', type: 'http' }, { name: 'x-api-key', type: 'apiKey' }],
3602
+ url: '/api/2027-01-01/resources/locations/employees_locations',
3603
+ ...options
3604
+ });
3605
+ /**
3606
+ * List employee workplace assignments
3607
+ *
3608
+ * Return workplace assignments. Filter by employee_ids to list the workplaces of specific employees.
3609
+ */
3610
+ export const getApi20270101ResourcesLocationsEmployeesLocationsById = (options) => (options.client ?? client).get({
3611
+ security: [{ scheme: 'bearer', type: 'http' }, { name: 'x-api-key', type: 'apiKey' }],
3612
+ url: '/api/2027-01-01/resources/locations/employees_locations/{id}',
3613
+ ...options
3614
+ });
3615
+ /**
3616
+ * Replace an employee's workplace assignments
3617
+ *
3618
+ * Assign exactly the supplied workplaces and remove other assignments. The list must retain the current default workplace. The response contains the complete resulting assignment list, including unchanged assignments. To replace the default, assign its replacement, set that assignment as default, then remove the old workplace.
3619
+ */
3620
+ export const postApi20270101ResourcesLocationsEmployeesLocationsBulkAssign = (options) => (options?.client ?? client).post({
3621
+ security: [{ scheme: 'bearer', type: 'http' }, { name: 'x-api-key', type: 'apiKey' }],
3622
+ url: '/api/2027-01-01/resources/locations/employees_locations/bulk_assign',
3623
+ ...options,
3624
+ headers: {
3625
+ 'Content-Type': 'application/json',
3626
+ ...options?.headers
3627
+ }
3628
+ });
3629
+ /**
3630
+ * Set an employee's default workplace
3631
+ *
3632
+ * Make an existing workplace assignment the default and update the employee's default workplace.
3633
+ */
3634
+ export const postApi20270101ResourcesLocationsEmployeesLocationsSetAsDefault = (options) => (options?.client ?? client).post({
3635
+ security: [{ scheme: 'bearer', type: 'http' }, { name: 'x-api-key', type: 'apiKey' }],
3636
+ url: '/api/2027-01-01/resources/locations/employees_locations/set_as_default',
3637
+ ...options,
3638
+ headers: {
3639
+ 'Content-Type': 'application/json',
3640
+ ...options?.headers
3641
+ }
3642
+ });
3643
+ /**
3644
+ * Remove an employee's workplace assignment
3645
+ *
3646
+ * Remove a workplace assignment. Choose another default before removing the current default workplace.
3647
+ */
3648
+ export const postApi20270101ResourcesLocationsEmployeesLocationsUnassign = (options) => (options?.client ?? client).post({
3649
+ security: [{ scheme: 'bearer', type: 'http' }, { name: 'x-api-key', type: 'apiKey' }],
3650
+ url: '/api/2027-01-01/resources/locations/employees_locations/unassign',
3651
+ ...options,
3652
+ headers: {
3653
+ 'Content-Type': 'application/json',
3654
+ ...options?.headers
3655
+ }
3656
+ });
3595
3657
  /**
3596
3658
  * Reads all Locations
3597
3659
  *
@@ -6146,6 +6208,20 @@ export const postApi20270101ResourcesShiftManagementShiftsBulkDelete = (options)
6146
6208
  ...options?.headers
6147
6209
  }
6148
6210
  });
6211
+ /**
6212
+ * Publishes draft shifts
6213
+ *
6214
+ * Publishes the draft shifts and rest days of the selected employees between two dates, so employees can see them. It publishes the same set as the "Publish" action of the shifts planner, and optionally notifies the employees. If the filters match no employee, nothing is published. Only the drafts included in the request are checked for conflicts, against each other and against the employee's leaves and rest days. A draft that overlaps a shift that is already published is not detected. When a conflict blocks the publish, nothing is published and the 409 response lists each conflict in messages.shift_conflicts as a JSON string with shift_id, employee_id, conflicting_shift_ids, conflicting_leave_ids and conflicting_rest_day_ids. With skip_conflicts, the employees with conflicts are left out instead. Returns the shifts that were published. Up to 31 days can be published per request.
6215
+ */
6216
+ export const postApi20270101ResourcesShiftManagementShiftsPublish = (options) => (options?.client ?? client).post({
6217
+ security: [{ scheme: 'bearer', type: 'http' }, { name: 'x-api-key', type: 'apiKey' }],
6218
+ url: '/api/2027-01-01/resources/shift_management/shifts/publish',
6219
+ ...options,
6220
+ headers: {
6221
+ 'Content-Type': 'application/json',
6222
+ ...options?.headers
6223
+ }
6224
+ });
6149
6225
  /**
6150
6226
  * Reads all Tasks
6151
6227
  *