@factorialco/api-client 4.0.0-beta.2027010121 → 4.0.0-beta.2027010123

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.
@@ -803,7 +803,7 @@ export const putApi20270101ResourcesAttendanceOvertimeRequestsById = (options) =
803
803
  /**
804
804
  * Approves an Overtime request
805
805
  *
806
- * Approves an Overtime request
806
+ * Approves an Overtime request. Only a pending approver of the request can approve it, so the call must be made with an approver's OAuth token. API keys are not linked to an approver and get a 403.
807
807
  */
808
808
  export const postApi20270101ResourcesAttendanceOvertimeRequestsApprove = (options) => (options?.client ?? client).post({
809
809
  security: [{ scheme: 'bearer', type: 'http' }, { name: 'x-api-key', type: 'apiKey' }],
@@ -817,7 +817,7 @@ export const postApi20270101ResourcesAttendanceOvertimeRequestsApprove = (option
817
817
  /**
818
818
  * Rejects an Overtime request
819
819
  *
820
- * Rejects an Overtime request
820
+ * Rejects an Overtime request. Only a pending approver of the request can reject it, so the call must be made with an approver's OAuth token. API keys are not linked to an approver and get a 403.
821
821
  */
822
822
  export const postApi20270101ResourcesAttendanceOvertimeRequestsReject = (options) => (options?.client ?? client).post({
823
823
  security: [{ scheme: 'bearer', type: 'http' }, { name: 'x-api-key', type: 'apiKey' }],
@@ -3208,6 +3208,47 @@ export const putApi20270101ResourcesFinanceTaxTypesById = (options) => (options.
3208
3208
  ...options.headers
3209
3209
  }
3210
3210
  });
3211
+ /**
3212
+ * Reads all Goals
3213
+ *
3214
+ * Retrieves goals
3215
+ */
3216
+ export const getApi20270101ResourcesGoalsGoals = (options) => (options?.client ?? client).get({
3217
+ querySerializer: { parameters: { people_group_criteria: { object: { style: 'form' } } } },
3218
+ security: [{ scheme: 'bearer', type: 'http' }, { name: 'x-api-key', type: 'apiKey' }],
3219
+ url: '/api/2027-01-01/resources/goals/goals',
3220
+ ...options
3221
+ });
3222
+ /**
3223
+ * Reads a single Goal
3224
+ *
3225
+ * Retrieves goals
3226
+ */
3227
+ export const getApi20270101ResourcesGoalsGoalsById = (options) => (options.client ?? client).get({
3228
+ security: [{ scheme: 'bearer', type: 'http' }, { name: 'x-api-key', type: 'apiKey' }],
3229
+ url: '/api/2027-01-01/resources/goals/goals/{id}',
3230
+ ...options
3231
+ });
3232
+ /**
3233
+ * Reads all Target periods
3234
+ *
3235
+ * Retrieves the target periods of goals. Requires ids or goal_ids
3236
+ */
3237
+ export const getApi20270101ResourcesGoalsTargetPeriods = (options) => (options?.client ?? client).get({
3238
+ security: [{ scheme: 'bearer', type: 'http' }, { name: 'x-api-key', type: 'apiKey' }],
3239
+ url: '/api/2027-01-01/resources/goals/target_periods',
3240
+ ...options
3241
+ });
3242
+ /**
3243
+ * Reads a single Target period
3244
+ *
3245
+ * Retrieves the target periods of goals. Requires ids or goal_ids
3246
+ */
3247
+ export const getApi20270101ResourcesGoalsTargetPeriodsById = (options) => (options.client ?? client).get({
3248
+ security: [{ scheme: 'bearer', type: 'http' }, { name: 'x-api-key', type: 'apiKey' }],
3249
+ url: '/api/2027-01-01/resources/goals/target_periods/{id}',
3250
+ ...options
3251
+ });
3211
3252
  /**
3212
3253
  * Reads all Company holidays
3213
3254
  *
@@ -6804,6 +6845,50 @@ export const postApi20270101ResourcesTimeoffLeavesReject = (options) => (options
6804
6845
  ...options?.headers
6805
6846
  }
6806
6847
  });
6848
+ /**
6849
+ * Reads leave change requests
6850
+ *
6851
+ * Returns the change requests on the leaves the caller can see.
6852
+ */
6853
+ export const getApi20270101ResourcesTimeoffLeaveChangeRequests = (options) => (options?.client ?? client).get({
6854
+ security: [{ scheme: 'bearer', type: 'http' }, { name: 'x-api-key', type: 'apiKey' }],
6855
+ url: '/api/2027-01-01/resources/timeoff/leave_change_requests',
6856
+ ...options
6857
+ });
6858
+ /**
6859
+ * Requests a change to an approved leave
6860
+ *
6861
+ * The owner of an approved leave proposes new values for it, or its cancellation, when they can't make that change directly. The request goes to the employee's approval flow and the leave doesn't change until it is approved. A leave can have only one pending request, and a leave that has started can't be changed.
6862
+ */
6863
+ export const postApi20270101ResourcesTimeoffLeaveChangeRequests = (options) => (options?.client ?? client).post({
6864
+ security: [{ scheme: 'bearer', type: 'http' }, { name: 'x-api-key', type: 'apiKey' }],
6865
+ url: '/api/2027-01-01/resources/timeoff/leave_change_requests',
6866
+ ...options,
6867
+ headers: {
6868
+ 'Content-Type': 'application/json',
6869
+ ...options?.headers
6870
+ }
6871
+ });
6872
+ /**
6873
+ * Withdraws a leave change request
6874
+ *
6875
+ * Withdraws a pending change request. The request is kept, closed as withdrawn, and its approval stops. Only its author or the leave's owner can withdraw it.
6876
+ */
6877
+ export const deleteApi20270101ResourcesTimeoffLeaveChangeRequestsById = (options) => (options.client ?? client).delete({
6878
+ security: [{ scheme: 'bearer', type: 'http' }, { name: 'x-api-key', type: 'apiKey' }],
6879
+ url: '/api/2027-01-01/resources/timeoff/leave_change_requests/{id}',
6880
+ ...options
6881
+ });
6882
+ /**
6883
+ * Reads leave change requests
6884
+ *
6885
+ * Returns the change requests on the leaves the caller can see.
6886
+ */
6887
+ export const getApi20270101ResourcesTimeoffLeaveChangeRequestsById = (options) => (options.client ?? client).get({
6888
+ security: [{ scheme: 'bearer', type: 'http' }, { name: 'x-api-key', type: 'apiKey' }],
6889
+ url: '/api/2027-01-01/resources/timeoff/leave_change_requests/{id}',
6890
+ ...options
6891
+ });
6807
6892
  /**
6808
6893
  * Reads all Leave types
6809
6894
  *