@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.
- package/dist/cjs/generated/index.d.ts +2 -2
- package/dist/cjs/generated/index.d.ts.map +1 -1
- package/dist/cjs/generated/index.js +21 -13
- package/dist/cjs/generated/index.js.map +1 -1
- package/dist/cjs/generated/sdk.gen.d.ts +51 -3
- package/dist/cjs/generated/sdk.gen.d.ts.map +1 -1
- package/dist/cjs/generated/sdk.gen.js +103 -10
- package/dist/cjs/generated/sdk.gen.js.map +1 -1
- package/dist/cjs/generated/types.gen.d.ts +1322 -426
- package/dist/cjs/generated/types.gen.d.ts.map +1 -1
- package/dist/cjs/sdk.d.ts +89 -1
- package/dist/cjs/sdk.d.ts.map +1 -1
- package/dist/cjs/sdk.js +113 -4
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/generated/index.d.ts +2 -2
- package/dist/esm/generated/index.d.ts.map +1 -1
- package/dist/esm/generated/index.js +1 -1
- package/dist/esm/generated/index.js.map +1 -1
- package/dist/esm/generated/sdk.gen.d.ts +51 -3
- package/dist/esm/generated/sdk.gen.d.ts.map +1 -1
- package/dist/esm/generated/sdk.gen.js +87 -2
- package/dist/esm/generated/sdk.gen.js.map +1 -1
- package/dist/esm/generated/types.gen.d.ts +1322 -426
- package/dist/esm/generated/types.gen.d.ts.map +1 -1
- package/dist/esm/sdk.d.ts +89 -1
- package/dist/esm/sdk.d.ts.map +1 -1
- package/dist/esm/sdk.js +106 -1
- package/dist/esm/sdk.js.map +1 -1
- package/package.json +1 -1
|
@@ -1023,6 +1023,14 @@ export type AttendanceShift = {
|
|
|
1023
1023
|
* Identifier for the location
|
|
1024
1024
|
*/
|
|
1025
1025
|
workplace_id?: string;
|
|
1026
|
+
/**
|
|
1027
|
+
* Identifier of the work area where the employee clocked in
|
|
1028
|
+
*/
|
|
1029
|
+
clock_in_work_area_id?: string;
|
|
1030
|
+
/**
|
|
1031
|
+
* Identifier of the work area where the employee clocked out
|
|
1032
|
+
*/
|
|
1033
|
+
clock_out_work_area_id?: string;
|
|
1026
1034
|
/**
|
|
1027
1035
|
* Identifier for the break configuration
|
|
1028
1036
|
*/
|
|
@@ -2782,7 +2790,7 @@ export type CostCentersResourceDistribution = {
|
|
|
2782
2790
|
*/
|
|
2783
2791
|
resource_type: string;
|
|
2784
2792
|
/**
|
|
2785
|
-
* ID of the record the row belongs to. For an expense, this is its `expenses_expensable_id`.
|
|
2793
|
+
* ID of the record the row belongs to. For an expense, this is its `expenses_expensable_id`; for a financial document, its `id`.
|
|
2786
2794
|
*/
|
|
2787
2795
|
resource_id: string;
|
|
2788
2796
|
/**
|
|
@@ -5130,6 +5138,58 @@ export type FinanceTaxType = {
|
|
|
5130
5138
|
*/
|
|
5131
5139
|
updated_at: string;
|
|
5132
5140
|
};
|
|
5141
|
+
export type GoalsGoal = {
|
|
5142
|
+
id: string;
|
|
5143
|
+
title: string;
|
|
5144
|
+
author_id: string;
|
|
5145
|
+
start_on: string;
|
|
5146
|
+
end_on: string;
|
|
5147
|
+
/**
|
|
5148
|
+
* how often the goal's attainment is measured (yearly, half_yearly, quarterly or monthly)
|
|
5149
|
+
*/
|
|
5150
|
+
frequency?: 'yearly' | 'half_yearly' | 'quarterly' | 'monthly';
|
|
5151
|
+
/**
|
|
5152
|
+
* how the goal's progress is tracked, either by hand (manual) or derived from its sub-goals (sub_goals)
|
|
5153
|
+
*/
|
|
5154
|
+
tracking: 'manual' | 'sub_goals';
|
|
5155
|
+
/**
|
|
5156
|
+
* what the goal measures (currency, numeric, percentage, qualitative or sub_goal); for a goal tracked by sub-goals, the type its sub-goals share
|
|
5157
|
+
*/
|
|
5158
|
+
measure_type?: 'currency' | 'numeric' | 'percentage' | 'qualitative' | 'sub_goal';
|
|
5159
|
+
/**
|
|
5160
|
+
* how far the goal is towards its target, from 0 upwards (100 means achieved)
|
|
5161
|
+
*/
|
|
5162
|
+
progress_percentage: number;
|
|
5163
|
+
/**
|
|
5164
|
+
* where the goal stands today, worked out from its progress and end date (not_started, on_track, achieved or missed)
|
|
5165
|
+
*/
|
|
5166
|
+
status: 'not_started' | 'on_track' | 'achieved' | 'missed';
|
|
5167
|
+
/**
|
|
5168
|
+
* id of the goal this goal is a sub-goal of. Null for top-level goals
|
|
5169
|
+
*/
|
|
5170
|
+
parent_id?: string;
|
|
5171
|
+
descendant_ids: Array<string>;
|
|
5172
|
+
/**
|
|
5173
|
+
* free text explaining the goal
|
|
5174
|
+
*/
|
|
5175
|
+
description?: string;
|
|
5176
|
+
performance_agreement_id?: string;
|
|
5177
|
+
performance_agreement_action_item_uuid?: string;
|
|
5178
|
+
updated_at: string;
|
|
5179
|
+
};
|
|
5180
|
+
export type GoalsTargetPeriod = {
|
|
5181
|
+
id: string;
|
|
5182
|
+
goal_id: string;
|
|
5183
|
+
starts_on: string;
|
|
5184
|
+
ends_on: string;
|
|
5185
|
+
target_value?: number;
|
|
5186
|
+
start_value: number;
|
|
5187
|
+
current_value: number;
|
|
5188
|
+
current_status: 'not_started' | 'on_track' | 'achieved' | 'missed';
|
|
5189
|
+
current_value_id?: string;
|
|
5190
|
+
progress_percentage?: number;
|
|
5191
|
+
derived: boolean;
|
|
5192
|
+
};
|
|
5133
5193
|
export type HolidaysCompanyHoliday = {
|
|
5134
5194
|
/**
|
|
5135
5195
|
* Company holiday id
|
|
@@ -8687,6 +8747,120 @@ export type TimeoffLeave = {
|
|
|
8687
8747
|
*/
|
|
8688
8748
|
days_taken: number;
|
|
8689
8749
|
};
|
|
8750
|
+
export type TimeoffLeaveChangeRequest = {
|
|
8751
|
+
/**
|
|
8752
|
+
* Identifier of the change request.
|
|
8753
|
+
*/
|
|
8754
|
+
id: string;
|
|
8755
|
+
/**
|
|
8756
|
+
* Identifier of the company.
|
|
8757
|
+
*/
|
|
8758
|
+
company_id: string;
|
|
8759
|
+
/**
|
|
8760
|
+
* Identifier of the leave the request proposes to change.
|
|
8761
|
+
*/
|
|
8762
|
+
leave_id: string;
|
|
8763
|
+
/**
|
|
8764
|
+
* Identifier of the employee who owns the leave.
|
|
8765
|
+
*/
|
|
8766
|
+
employee_id: string;
|
|
8767
|
+
/**
|
|
8768
|
+
* Access that created the request (the owner, or One on their behalf).
|
|
8769
|
+
*/
|
|
8770
|
+
author_id: string;
|
|
8771
|
+
/**
|
|
8772
|
+
* update_leave or cancel_leave.
|
|
8773
|
+
*/
|
|
8774
|
+
request_type: 'update_leave' | 'cancel_leave';
|
|
8775
|
+
/**
|
|
8776
|
+
* pending, approved, rejected or withdrawn.
|
|
8777
|
+
*/
|
|
8778
|
+
status: 'pending' | 'approved' | 'rejected' | 'withdrawn';
|
|
8779
|
+
/**
|
|
8780
|
+
* True once approved, false once rejected, null while pending or withdrawn.
|
|
8781
|
+
*/
|
|
8782
|
+
approved?: boolean;
|
|
8783
|
+
/**
|
|
8784
|
+
* When the request was withdrawn, if it was.
|
|
8785
|
+
*/
|
|
8786
|
+
withdrawn_at?: string;
|
|
8787
|
+
/**
|
|
8788
|
+
* Why it was withdrawn - author, leave_updated (the leave was edited directly), leave_deleted or leave_started (the leave or its proposed first day started before a decision).
|
|
8789
|
+
*/
|
|
8790
|
+
withdrawal_cause?: 'author' | 'leave_updated' | 'leave_deleted' | 'leave_started';
|
|
8791
|
+
/**
|
|
8792
|
+
* First day once approved, the current one when the request keeps it (read from the leave as it is now). Null for a cancellation.
|
|
8793
|
+
*/
|
|
8794
|
+
start_on?: string;
|
|
8795
|
+
/**
|
|
8796
|
+
* Last day once approved, the current one when the request keeps it (read from the leave as it is now). Null for a cancellation.
|
|
8797
|
+
*/
|
|
8798
|
+
finish_on?: string;
|
|
8799
|
+
/**
|
|
8800
|
+
* Half day once approved, the current one when the request keeps it (read from the leave as it is now). Null for a cancellation.
|
|
8801
|
+
*/
|
|
8802
|
+
half_day?: string;
|
|
8803
|
+
/**
|
|
8804
|
+
* Start time once approved, the current one when the request keeps it (read from the leave as it is now). Null for a cancellation.
|
|
8805
|
+
*/
|
|
8806
|
+
start_time?: string;
|
|
8807
|
+
/**
|
|
8808
|
+
* Hours in cents of an hour once approved, the current ones when the request keeps them (read from the leave as it is now). Null for a cancellation.
|
|
8809
|
+
*/
|
|
8810
|
+
hours_amount_in_cents?: number;
|
|
8811
|
+
/**
|
|
8812
|
+
* Leave type once approved, the current one when the request keeps it (read from the leave as it is now). Null for a cancellation.
|
|
8813
|
+
*/
|
|
8814
|
+
leave_type_id?: string;
|
|
8815
|
+
/**
|
|
8816
|
+
* Proposed description, null when the request keeps it.
|
|
8817
|
+
*/
|
|
8818
|
+
description?: string;
|
|
8819
|
+
/**
|
|
8820
|
+
* Why the employee asks for the change.
|
|
8821
|
+
*/
|
|
8822
|
+
reason?: string;
|
|
8823
|
+
/**
|
|
8824
|
+
* Why the approver rejected it.
|
|
8825
|
+
*/
|
|
8826
|
+
rejected_reason?: string;
|
|
8827
|
+
/**
|
|
8828
|
+
* Current first day of the leave, read from the leave as it is now, so a decided request shows the leave after the decision.
|
|
8829
|
+
*/
|
|
8830
|
+
current_start_on: string;
|
|
8831
|
+
/**
|
|
8832
|
+
* Current last day of the leave, read from the leave as it is now, so a decided request shows the leave after the decision.
|
|
8833
|
+
*/
|
|
8834
|
+
current_finish_on?: string;
|
|
8835
|
+
/**
|
|
8836
|
+
* Current half day of the leave, read from the leave as it is now, so a decided request shows the leave after the decision.
|
|
8837
|
+
*/
|
|
8838
|
+
current_half_day?: string;
|
|
8839
|
+
/**
|
|
8840
|
+
* Current start time of the leave, read from the leave as it is now, so a decided request shows the leave after the decision.
|
|
8841
|
+
*/
|
|
8842
|
+
current_start_time?: string;
|
|
8843
|
+
/**
|
|
8844
|
+
* Current hours of the leave in cents of an hour, read from the leave as it is now, so a decided request shows the leave after the decision.
|
|
8845
|
+
*/
|
|
8846
|
+
current_hours_amount_in_cents?: number;
|
|
8847
|
+
/**
|
|
8848
|
+
* Current leave type of the leave, read from the leave as it is now, so a decided request shows the leave after the decision.
|
|
8849
|
+
*/
|
|
8850
|
+
current_leave_type_id: string;
|
|
8851
|
+
/**
|
|
8852
|
+
* Days the leave would take with the proposed values, with the same meaning as the leave's `days_taken`. 0 for a cancellation, and null when the reader can't see the leave's details.
|
|
8853
|
+
*/
|
|
8854
|
+
proposed_days_taken?: number;
|
|
8855
|
+
/**
|
|
8856
|
+
* When the request was created.
|
|
8857
|
+
*/
|
|
8858
|
+
created_at: string;
|
|
8859
|
+
/**
|
|
8860
|
+
* When the request was last updated.
|
|
8861
|
+
*/
|
|
8862
|
+
updated_at: string;
|
|
8863
|
+
};
|
|
8690
8864
|
export type TimeoffLeaveType = {
|
|
8691
8865
|
/**
|
|
8692
8866
|
* Identifier of the leave type
|
|
@@ -15583,11 +15757,19 @@ export type PostApi20270101ResourcesAttendanceShiftsData = {
|
|
|
15583
15757
|
/**
|
|
15584
15758
|
* Source of the shift creation
|
|
15585
15759
|
*/
|
|
15586
|
-
source?: 'desktop' | 'mobile' | 'face_recognition' | 'qr_code' | 'mobile_geolocation' | 'shared_device' | 'api' | 'system' | 'desktop_via_one_assistant' | 'mobile_via_one_assistant' | 'mobile_geolocation_via_one_assistant' | 'one_assistant';
|
|
15760
|
+
source?: 'desktop' | 'mobile' | 'face_recognition' | 'qr_code' | 'mobile_geolocation' | 'shared_device' | 'api' | 'system' | 'desktop_via_one_assistant' | 'mobile_via_one_assistant' | 'mobile_geolocation_via_one_assistant' | 'whatsapp_via_one_assistant' | 'one_assistant';
|
|
15587
15761
|
/**
|
|
15588
15762
|
* Id of the break configuration
|
|
15589
15763
|
*/
|
|
15590
15764
|
time_settings_break_configuration_id?: string;
|
|
15765
|
+
/**
|
|
15766
|
+
* Id of the work area where the employee clocked in. It must belong to the workplace sent in `workplace_id`
|
|
15767
|
+
*/
|
|
15768
|
+
clock_in_work_area_id?: string;
|
|
15769
|
+
/**
|
|
15770
|
+
* Id of the work area where the employee clocked out. It must belong to the workplace sent in `workplace_id`
|
|
15771
|
+
*/
|
|
15772
|
+
clock_out_work_area_id?: string;
|
|
15591
15773
|
/**
|
|
15592
15774
|
* Id of the location related
|
|
15593
15775
|
*/
|
|
@@ -15832,6 +16014,14 @@ export type PutApi20270101ResourcesAttendanceShiftsByIdData = {
|
|
|
15832
16014
|
* Id of the break configuration
|
|
15833
16015
|
*/
|
|
15834
16016
|
time_settings_break_configuration_id?: string;
|
|
16017
|
+
/**
|
|
16018
|
+
* Identifier of the work area where the employee clocked in. It must belong to the shift's workplace
|
|
16019
|
+
*/
|
|
16020
|
+
clock_in_work_area_id?: string;
|
|
16021
|
+
/**
|
|
16022
|
+
* Identifier of the work area where the employee clocked out. It must belong to the shift's workplace
|
|
16023
|
+
*/
|
|
16024
|
+
clock_out_work_area_id?: string;
|
|
15835
16025
|
};
|
|
15836
16026
|
path: {
|
|
15837
16027
|
/**
|
|
@@ -16175,6 +16365,10 @@ export type PostApi20270101ResourcesAttendanceShiftsClockInData = {
|
|
|
16175
16365
|
* Location identifier
|
|
16176
16366
|
*/
|
|
16177
16367
|
workplace_id?: string;
|
|
16368
|
+
/**
|
|
16369
|
+
* Identifier of the work area where the employee clocked in. It must belong to the workplace sent in `workplace_id`
|
|
16370
|
+
*/
|
|
16371
|
+
clock_in_work_area_id?: string;
|
|
16178
16372
|
/**
|
|
16179
16373
|
* Break configuration identifier
|
|
16180
16374
|
*/
|
|
@@ -16276,6 +16470,10 @@ export type PostApi20270101ResourcesAttendanceShiftsClockOutData = {
|
|
|
16276
16470
|
* Notes on the shift record
|
|
16277
16471
|
*/
|
|
16278
16472
|
observations?: string;
|
|
16473
|
+
/**
|
|
16474
|
+
* Identifier of the work area where the employee clocked out. It must belong to the workplace of the open shift
|
|
16475
|
+
*/
|
|
16476
|
+
clock_out_work_area_id?: string;
|
|
16279
16477
|
};
|
|
16280
16478
|
path?: never;
|
|
16281
16479
|
query?: never;
|
|
@@ -23245,11 +23443,11 @@ export type GetApi20270101ResourcesCostCentersResourceDistributionsData = {
|
|
|
23245
23443
|
path?: never;
|
|
23246
23444
|
query: {
|
|
23247
23445
|
/**
|
|
23248
|
-
* Type of the records to read the split of. Supported values: `expenses/expensable` (expenses, mileages and per diems).
|
|
23446
|
+
* Type of the records to read the split of. Supported values: `expenses/expensable` (expenses, mileages and per diems) and `finance/financial_document` (financial documents, such as purchase invoices).
|
|
23249
23447
|
*/
|
|
23250
23448
|
resource_type: string;
|
|
23251
23449
|
/**
|
|
23252
|
-
* IDs of the records to read the split of, at most 100 per request. For expenses, mileages and per diems, pass their `expenses_expensable_id`.
|
|
23450
|
+
* IDs of the records to read the split of, at most 100 per request. For expenses, mileages and per diems, pass their `expenses_expensable_id`; for financial documents, their `id`.
|
|
23253
23451
|
*/
|
|
23254
23452
|
'resource_ids[]': Array<string>;
|
|
23255
23453
|
};
|
|
@@ -32464,38 +32662,95 @@ export type PutApi20270101ResourcesFinanceTaxTypesByIdResponses = {
|
|
|
32464
32662
|
200: FinanceTaxType;
|
|
32465
32663
|
};
|
|
32466
32664
|
export type PutApi20270101ResourcesFinanceTaxTypesByIdResponse = PutApi20270101ResourcesFinanceTaxTypesByIdResponses[keyof PutApi20270101ResourcesFinanceTaxTypesByIdResponses];
|
|
32467
|
-
export type
|
|
32665
|
+
export type GetApi20270101ResourcesGoalsGoalsData = {
|
|
32468
32666
|
body?: never;
|
|
32469
32667
|
path?: never;
|
|
32470
32668
|
query?: {
|
|
32471
32669
|
/**
|
|
32472
|
-
*
|
|
32670
|
+
* Goal ids
|
|
32473
32671
|
*/
|
|
32474
32672
|
'ids[]'?: Array<string>;
|
|
32475
32673
|
/**
|
|
32476
|
-
*
|
|
32674
|
+
* Goals assigned to any of these employees
|
|
32477
32675
|
*/
|
|
32478
|
-
'
|
|
32676
|
+
'assignee_ids[]'?: Array<string>;
|
|
32479
32677
|
/**
|
|
32480
|
-
*
|
|
32678
|
+
* Goals assigned to the active direct reports of any of these employees
|
|
32481
32679
|
*/
|
|
32482
|
-
'
|
|
32680
|
+
'manager_ids[]'?: Array<string>;
|
|
32483
32681
|
/**
|
|
32484
|
-
*
|
|
32682
|
+
* Goals assigned to active employees two or more levels below any of these employees in the reporting line
|
|
32485
32683
|
*/
|
|
32486
|
-
'
|
|
32684
|
+
'indirect_manager_ids[]'?: Array<string>;
|
|
32487
32685
|
/**
|
|
32488
|
-
*
|
|
32686
|
+
* Goals assigned to an employee whose name matches this text
|
|
32489
32687
|
*/
|
|
32490
|
-
|
|
32688
|
+
assignee_search?: string;
|
|
32491
32689
|
/**
|
|
32492
|
-
*
|
|
32690
|
+
* Goals assigned to any of these people groups
|
|
32493
32691
|
*/
|
|
32494
|
-
|
|
32692
|
+
'people_group_ids[]'?: Array<string>;
|
|
32693
|
+
/**
|
|
32694
|
+
* Goals whose audience matches these people group criteria, sent as nested query keys such as people_group_criteria[team_ids][]=1 or people_group_criteria[any_team]=true
|
|
32695
|
+
*/
|
|
32696
|
+
people_group_criteria?: {
|
|
32697
|
+
[key: string]: unknown;
|
|
32698
|
+
};
|
|
32699
|
+
/**
|
|
32700
|
+
* When true, only goals assigned to a single employee; when false, only goals assigned to a group
|
|
32701
|
+
*/
|
|
32702
|
+
individual?: boolean;
|
|
32703
|
+
/**
|
|
32704
|
+
* When true, only individual goals without a parent goal, ordered by assignee name
|
|
32705
|
+
*/
|
|
32706
|
+
individual_top_level?: boolean;
|
|
32707
|
+
/**
|
|
32708
|
+
* Goals linked to any of these performance agreements
|
|
32709
|
+
*/
|
|
32710
|
+
'performance_agreement_ids[]'?: Array<string>;
|
|
32711
|
+
/**
|
|
32712
|
+
* Sub-goals of any of these goals
|
|
32713
|
+
*/
|
|
32714
|
+
'parent_ids[]'?: Array<string>;
|
|
32715
|
+
/**
|
|
32716
|
+
* When true, only goals without a parent goal
|
|
32717
|
+
*/
|
|
32718
|
+
only_root?: boolean;
|
|
32719
|
+
/**
|
|
32720
|
+
* Goals that can become the parent of this goal
|
|
32721
|
+
*/
|
|
32722
|
+
eligible_parent_for_id?: string;
|
|
32723
|
+
/**
|
|
32724
|
+
* Goals that can become a sub-goal of this goal
|
|
32725
|
+
*/
|
|
32726
|
+
eligible_child_for_id?: string;
|
|
32727
|
+
/**
|
|
32728
|
+
* Goals that start on this date
|
|
32729
|
+
*/
|
|
32730
|
+
start_on?: string;
|
|
32731
|
+
/**
|
|
32732
|
+
* Goals that end on this date
|
|
32733
|
+
*/
|
|
32734
|
+
end_on?: string;
|
|
32735
|
+
/**
|
|
32736
|
+
* Goals whose dates overlap this period
|
|
32737
|
+
*/
|
|
32738
|
+
overlaps_period?: {
|
|
32739
|
+
from: string;
|
|
32740
|
+
to: string;
|
|
32741
|
+
};
|
|
32742
|
+
/**
|
|
32743
|
+
* Orders the goals by how close their end date is to this date
|
|
32744
|
+
*/
|
|
32745
|
+
ends_closest_to?: string;
|
|
32746
|
+
/**
|
|
32747
|
+
* Goals measured with this frequency (yearly, half_yearly, quarterly or monthly)
|
|
32748
|
+
*/
|
|
32749
|
+
frequency?: 'yearly' | 'half_yearly' | 'quarterly' | 'monthly';
|
|
32495
32750
|
};
|
|
32496
|
-
url: '/api/2027-01-01/resources/
|
|
32751
|
+
url: '/api/2027-01-01/resources/goals/goals';
|
|
32497
32752
|
};
|
|
32498
|
-
export type
|
|
32753
|
+
export type GetApi20270101ResourcesGoalsGoalsErrors = {
|
|
32499
32754
|
/**
|
|
32500
32755
|
* Bad Request (malformed_request)
|
|
32501
32756
|
*/
|
|
@@ -32545,29 +32800,29 @@ export type GetApi20270101ResourcesHolidaysCompanyHolidaysErrors = {
|
|
|
32545
32800
|
*/
|
|
32546
32801
|
504: ErrorResponse;
|
|
32547
32802
|
};
|
|
32548
|
-
export type
|
|
32549
|
-
export type
|
|
32803
|
+
export type GetApi20270101ResourcesGoalsGoalsError = GetApi20270101ResourcesGoalsGoalsErrors[keyof GetApi20270101ResourcesGoalsGoalsErrors];
|
|
32804
|
+
export type GetApi20270101ResourcesGoalsGoalsResponses = {
|
|
32550
32805
|
/**
|
|
32551
32806
|
* OK
|
|
32552
32807
|
*/
|
|
32553
32808
|
200: {
|
|
32554
|
-
data?: Array<
|
|
32809
|
+
data?: Array<GoalsGoal>;
|
|
32555
32810
|
meta?: PagedIndexMeta;
|
|
32556
32811
|
};
|
|
32557
32812
|
};
|
|
32558
|
-
export type
|
|
32559
|
-
export type
|
|
32813
|
+
export type GetApi20270101ResourcesGoalsGoalsResponse = GetApi20270101ResourcesGoalsGoalsResponses[keyof GetApi20270101ResourcesGoalsGoalsResponses];
|
|
32814
|
+
export type GetApi20270101ResourcesGoalsGoalsByIdData = {
|
|
32560
32815
|
body?: never;
|
|
32561
32816
|
path: {
|
|
32562
32817
|
/**
|
|
32563
|
-
*
|
|
32818
|
+
* Goal ids
|
|
32564
32819
|
*/
|
|
32565
32820
|
id: string;
|
|
32566
32821
|
};
|
|
32567
32822
|
query?: never;
|
|
32568
|
-
url: '/api/2027-01-01/resources/
|
|
32823
|
+
url: '/api/2027-01-01/resources/goals/goals/{id}';
|
|
32569
32824
|
};
|
|
32570
|
-
export type
|
|
32825
|
+
export type GetApi20270101ResourcesGoalsGoalsByIdErrors = {
|
|
32571
32826
|
/**
|
|
32572
32827
|
* Bad Request (malformed_request)
|
|
32573
32828
|
*/
|
|
@@ -32617,110 +32872,38 @@ export type GetApi20270101ResourcesHolidaysCompanyHolidaysByIdErrors = {
|
|
|
32617
32872
|
*/
|
|
32618
32873
|
504: ErrorResponse;
|
|
32619
32874
|
};
|
|
32620
|
-
export type
|
|
32621
|
-
export type
|
|
32875
|
+
export type GetApi20270101ResourcesGoalsGoalsByIdError = GetApi20270101ResourcesGoalsGoalsByIdErrors[keyof GetApi20270101ResourcesGoalsGoalsByIdErrors];
|
|
32876
|
+
export type GetApi20270101ResourcesGoalsGoalsByIdResponses = {
|
|
32622
32877
|
/**
|
|
32623
32878
|
* OK
|
|
32624
32879
|
*/
|
|
32625
|
-
200:
|
|
32880
|
+
200: GoalsGoal;
|
|
32626
32881
|
};
|
|
32627
|
-
export type
|
|
32628
|
-
export type
|
|
32882
|
+
export type GetApi20270101ResourcesGoalsGoalsByIdResponse = GetApi20270101ResourcesGoalsGoalsByIdResponses[keyof GetApi20270101ResourcesGoalsGoalsByIdResponses];
|
|
32883
|
+
export type GetApi20270101ResourcesGoalsTargetPeriodsData = {
|
|
32629
32884
|
body?: never;
|
|
32630
32885
|
path?: never;
|
|
32631
|
-
query
|
|
32886
|
+
query?: {
|
|
32632
32887
|
/**
|
|
32633
|
-
*
|
|
32888
|
+
* Target period ids
|
|
32634
32889
|
*/
|
|
32635
32890
|
'ids[]'?: Array<string>;
|
|
32636
32891
|
/**
|
|
32637
|
-
*
|
|
32892
|
+
* Target periods of any of these goals
|
|
32638
32893
|
*/
|
|
32639
|
-
|
|
32894
|
+
'goal_ids[]'?: Array<string>;
|
|
32640
32895
|
/**
|
|
32641
|
-
*
|
|
32896
|
+
* Target periods that start on this date
|
|
32642
32897
|
*/
|
|
32643
|
-
|
|
32644
|
-
};
|
|
32645
|
-
url: '/api/2027-01-01/resources/integrations/sync_runs';
|
|
32646
|
-
};
|
|
32647
|
-
export type GetApi20270101ResourcesIntegrationsSyncRunsErrors = {
|
|
32648
|
-
/**
|
|
32649
|
-
* Bad Request (malformed_request)
|
|
32650
|
-
*/
|
|
32651
|
-
400: ErrorResponse;
|
|
32652
|
-
/**
|
|
32653
|
-
* Unauthorized (unauthorized)
|
|
32654
|
-
*/
|
|
32655
|
-
401: ErrorResponse;
|
|
32656
|
-
/**
|
|
32657
|
-
* Payment Required (payment_required)
|
|
32658
|
-
*/
|
|
32659
|
-
402: ErrorResponse;
|
|
32660
|
-
/**
|
|
32661
|
-
* Forbidden (forbidden)
|
|
32662
|
-
*/
|
|
32663
|
-
403: ErrorResponse;
|
|
32664
|
-
/**
|
|
32665
|
-
* Not Found (missing_resource)
|
|
32666
|
-
*/
|
|
32667
|
-
404: ErrorResponse;
|
|
32668
|
-
/**
|
|
32669
|
-
* Conflict (invalid_state)
|
|
32670
|
-
*/
|
|
32671
|
-
409: ErrorResponse;
|
|
32672
|
-
/**
|
|
32673
|
-
* Gone
|
|
32674
|
-
*/
|
|
32675
|
-
410: ErrorResponse;
|
|
32676
|
-
/**
|
|
32677
|
-
* Unprocessable Entity (default, validation_failed)
|
|
32678
|
-
*/
|
|
32679
|
-
422: ErrorResponse;
|
|
32680
|
-
/**
|
|
32681
|
-
* Precondition Required
|
|
32682
|
-
*/
|
|
32683
|
-
428: ErrorResponse;
|
|
32684
|
-
/**
|
|
32685
|
-
* Internal Server Error
|
|
32686
|
-
*/
|
|
32687
|
-
500: ErrorResponse;
|
|
32688
|
-
/**
|
|
32689
|
-
* Bad Gateway (malformed_resource)
|
|
32690
|
-
*/
|
|
32691
|
-
502: ErrorResponse;
|
|
32692
|
-
/**
|
|
32693
|
-
* Gateway Timeout (service_unreachable)
|
|
32694
|
-
*/
|
|
32695
|
-
504: ErrorResponse;
|
|
32696
|
-
};
|
|
32697
|
-
export type GetApi20270101ResourcesIntegrationsSyncRunsError = GetApi20270101ResourcesIntegrationsSyncRunsErrors[keyof GetApi20270101ResourcesIntegrationsSyncRunsErrors];
|
|
32698
|
-
export type GetApi20270101ResourcesIntegrationsSyncRunsResponses = {
|
|
32699
|
-
/**
|
|
32700
|
-
* OK
|
|
32701
|
-
*/
|
|
32702
|
-
200: {
|
|
32703
|
-
data?: Array<IntegrationsSyncRun>;
|
|
32704
|
-
meta?: PagedIndexMeta;
|
|
32705
|
-
};
|
|
32706
|
-
};
|
|
32707
|
-
export type GetApi20270101ResourcesIntegrationsSyncRunsResponse = GetApi20270101ResourcesIntegrationsSyncRunsResponses[keyof GetApi20270101ResourcesIntegrationsSyncRunsResponses];
|
|
32708
|
-
export type PostApi20270101ResourcesIntegrationsSyncRunsData = {
|
|
32709
|
-
body?: {
|
|
32710
|
-
/**
|
|
32711
|
-
* Identifier of the company the sync run belongs to. Optional: defaults to the company the credential is scoped to.
|
|
32712
|
-
*/
|
|
32713
|
-
company_id?: string;
|
|
32898
|
+
starts_on?: string;
|
|
32714
32899
|
/**
|
|
32715
|
-
*
|
|
32900
|
+
* Target periods that end on this date
|
|
32716
32901
|
*/
|
|
32717
|
-
|
|
32902
|
+
ends_on?: string;
|
|
32718
32903
|
};
|
|
32719
|
-
|
|
32720
|
-
query?: never;
|
|
32721
|
-
url: '/api/2027-01-01/resources/integrations/sync_runs';
|
|
32904
|
+
url: '/api/2027-01-01/resources/goals/target_periods';
|
|
32722
32905
|
};
|
|
32723
|
-
export type
|
|
32906
|
+
export type GetApi20270101ResourcesGoalsTargetPeriodsErrors = {
|
|
32724
32907
|
/**
|
|
32725
32908
|
* Bad Request (malformed_request)
|
|
32726
32909
|
*/
|
|
@@ -32770,26 +32953,29 @@ export type PostApi20270101ResourcesIntegrationsSyncRunsErrors = {
|
|
|
32770
32953
|
*/
|
|
32771
32954
|
504: ErrorResponse;
|
|
32772
32955
|
};
|
|
32773
|
-
export type
|
|
32774
|
-
export type
|
|
32956
|
+
export type GetApi20270101ResourcesGoalsTargetPeriodsError = GetApi20270101ResourcesGoalsTargetPeriodsErrors[keyof GetApi20270101ResourcesGoalsTargetPeriodsErrors];
|
|
32957
|
+
export type GetApi20270101ResourcesGoalsTargetPeriodsResponses = {
|
|
32775
32958
|
/**
|
|
32776
|
-
*
|
|
32959
|
+
* OK
|
|
32777
32960
|
*/
|
|
32778
|
-
|
|
32961
|
+
200: {
|
|
32962
|
+
data?: Array<GoalsTargetPeriod>;
|
|
32963
|
+
meta?: PagedIndexMeta;
|
|
32964
|
+
};
|
|
32779
32965
|
};
|
|
32780
|
-
export type
|
|
32781
|
-
export type
|
|
32966
|
+
export type GetApi20270101ResourcesGoalsTargetPeriodsResponse = GetApi20270101ResourcesGoalsTargetPeriodsResponses[keyof GetApi20270101ResourcesGoalsTargetPeriodsResponses];
|
|
32967
|
+
export type GetApi20270101ResourcesGoalsTargetPeriodsByIdData = {
|
|
32782
32968
|
body?: never;
|
|
32783
32969
|
path: {
|
|
32784
32970
|
/**
|
|
32785
|
-
*
|
|
32971
|
+
* Target period ids
|
|
32786
32972
|
*/
|
|
32787
32973
|
id: string;
|
|
32788
32974
|
};
|
|
32789
32975
|
query?: never;
|
|
32790
|
-
url: '/api/2027-01-01/resources/
|
|
32976
|
+
url: '/api/2027-01-01/resources/goals/target_periods/{id}';
|
|
32791
32977
|
};
|
|
32792
|
-
export type
|
|
32978
|
+
export type GetApi20270101ResourcesGoalsTargetPeriodsByIdErrors = {
|
|
32793
32979
|
/**
|
|
32794
32980
|
* Bad Request (malformed_request)
|
|
32795
32981
|
*/
|
|
@@ -32839,38 +33025,46 @@ export type GetApi20270101ResourcesIntegrationsSyncRunsByIdErrors = {
|
|
|
32839
33025
|
*/
|
|
32840
33026
|
504: ErrorResponse;
|
|
32841
33027
|
};
|
|
32842
|
-
export type
|
|
32843
|
-
export type
|
|
33028
|
+
export type GetApi20270101ResourcesGoalsTargetPeriodsByIdError = GetApi20270101ResourcesGoalsTargetPeriodsByIdErrors[keyof GetApi20270101ResourcesGoalsTargetPeriodsByIdErrors];
|
|
33029
|
+
export type GetApi20270101ResourcesGoalsTargetPeriodsByIdResponses = {
|
|
32844
33030
|
/**
|
|
32845
33031
|
* OK
|
|
32846
33032
|
*/
|
|
32847
|
-
200:
|
|
33033
|
+
200: GoalsTargetPeriod;
|
|
32848
33034
|
};
|
|
32849
|
-
export type
|
|
32850
|
-
export type
|
|
32851
|
-
body?:
|
|
33035
|
+
export type GetApi20270101ResourcesGoalsTargetPeriodsByIdResponse = GetApi20270101ResourcesGoalsTargetPeriodsByIdResponses[keyof GetApi20270101ResourcesGoalsTargetPeriodsByIdResponses];
|
|
33036
|
+
export type GetApi20270101ResourcesHolidaysCompanyHolidaysData = {
|
|
33037
|
+
body?: never;
|
|
33038
|
+
path?: never;
|
|
33039
|
+
query?: {
|
|
32852
33040
|
/**
|
|
32853
|
-
*
|
|
33041
|
+
* Return only the company holidays with these ids.
|
|
32854
33042
|
*/
|
|
32855
|
-
|
|
33043
|
+
'ids[]'?: Array<string>;
|
|
32856
33044
|
/**
|
|
32857
|
-
*
|
|
33045
|
+
* Return only the holidays declared for these locations. A company holiday always belongs to exactly one location.
|
|
32858
33046
|
*/
|
|
32859
|
-
|
|
33047
|
+
'location_ids[]'?: Array<string>;
|
|
32860
33048
|
/**
|
|
32861
|
-
*
|
|
33049
|
+
* Return only the holidays of the locations that are the default workplace of somebody in these teams. It reaches teams through employees, not directly.
|
|
32862
33050
|
*/
|
|
32863
|
-
|
|
33051
|
+
'team_ids[]'?: Array<string>;
|
|
32864
33052
|
/**
|
|
32865
|
-
*
|
|
33053
|
+
* Filter by the default location of these employees
|
|
32866
33054
|
*/
|
|
32867
|
-
|
|
33055
|
+
'employee_ids[]'?: Array<string>;
|
|
33056
|
+
/**
|
|
33057
|
+
* Return only the holidays falling on or after this date. Usable on its own, as an open-ended lower bound.
|
|
33058
|
+
*/
|
|
33059
|
+
start_at?: string;
|
|
33060
|
+
/**
|
|
33061
|
+
* Return only the holidays falling on or before this date. Usable on its own, as an open-ended upper bound.
|
|
33062
|
+
*/
|
|
33063
|
+
end_at?: string;
|
|
32868
33064
|
};
|
|
32869
|
-
|
|
32870
|
-
query?: never;
|
|
32871
|
-
url: '/api/2027-01-01/resources/integrations/sync_run_outputs';
|
|
33065
|
+
url: '/api/2027-01-01/resources/holidays/company_holidays';
|
|
32872
33066
|
};
|
|
32873
|
-
export type
|
|
33067
|
+
export type GetApi20270101ResourcesHolidaysCompanyHolidaysErrors = {
|
|
32874
33068
|
/**
|
|
32875
33069
|
* Bad Request (malformed_request)
|
|
32876
33070
|
*/
|
|
@@ -32920,42 +33114,29 @@ export type PostApi20270101ResourcesIntegrationsSyncRunOutputsErrors = {
|
|
|
32920
33114
|
*/
|
|
32921
33115
|
504: ErrorResponse;
|
|
32922
33116
|
};
|
|
32923
|
-
export type
|
|
32924
|
-
export type
|
|
33117
|
+
export type GetApi20270101ResourcesHolidaysCompanyHolidaysError = GetApi20270101ResourcesHolidaysCompanyHolidaysErrors[keyof GetApi20270101ResourcesHolidaysCompanyHolidaysErrors];
|
|
33118
|
+
export type GetApi20270101ResourcesHolidaysCompanyHolidaysResponses = {
|
|
32925
33119
|
/**
|
|
32926
|
-
*
|
|
33120
|
+
* OK
|
|
32927
33121
|
*/
|
|
32928
|
-
|
|
33122
|
+
200: {
|
|
33123
|
+
data?: Array<HolidaysCompanyHoliday>;
|
|
33124
|
+
meta?: PagedIndexMeta;
|
|
33125
|
+
};
|
|
32929
33126
|
};
|
|
32930
|
-
export type
|
|
32931
|
-
export type
|
|
33127
|
+
export type GetApi20270101ResourcesHolidaysCompanyHolidaysResponse = GetApi20270101ResourcesHolidaysCompanyHolidaysResponses[keyof GetApi20270101ResourcesHolidaysCompanyHolidaysResponses];
|
|
33128
|
+
export type GetApi20270101ResourcesHolidaysCompanyHolidaysByIdData = {
|
|
32932
33129
|
body?: never;
|
|
32933
|
-
path
|
|
32934
|
-
query?: {
|
|
32935
|
-
/**
|
|
32936
|
-
* Filter syncable states by their identifiers
|
|
32937
|
-
*/
|
|
32938
|
-
'ids[]'?: Array<string>;
|
|
32939
|
-
/**
|
|
32940
|
-
* Filter syncable states by the identifiers of the linked API resource, identified by the resource_syncable_type field
|
|
32941
|
-
*/
|
|
32942
|
-
'syncable_ids[]'?: Array<string>;
|
|
32943
|
-
/**
|
|
32944
|
-
* The type of synchronization to filter by, in "namespace/resource" form. Takes precedence over resource_syncable_type, which is ambiguous when several sync types share a resource (for example employees/employee).
|
|
32945
|
-
*/
|
|
32946
|
-
sync_type?: 'compensations/compensation' | 'expenses/expense' | 'employee_updates/contract_change' | 'employee_updates/leave' | 'employee_updates/new_hire' | 'employee_updates/personal_change_id' | 'employee_updates/personal_change_name' | 'employee_updates/personal_change_irpf' | 'employee_updates/personal_change_bank' | 'employee_updates/personal_change_gender' | 'employee_updates/personal_change_health_insurance' | 'employee_updates/personal_change_address' | 'employee_updates/personal_change_residence' | 'employee_updates/personal_change_workplace' | 'employee_updates/personal_change_nationality' | 'employee_updates/personal_change_email' | 'employee_updates/personal_change_phone_number' | 'employee_updates/personal_change_permits_and_certificates' | 'employee_updates/personal_change_taxes_and_deductions' | 'employee_updates/personal_change_work_activity' | 'employee_updates/personal_change_birth_name' | 'employee_updates/personal_change_academic_title' | 'employee_updates/personal_change_country_of_birth' | 'employee_updates/personal_change_place_of_birth' | 'employee_updates/termination' | 'employee_updates/worked_time' | 'finance/vendor' | 'finance/financial_document' | 'employees/employee' | 'teams/team' | 'teams/membership' | 'finance/journal_entry' | 'procurement/purchase_order';
|
|
32947
|
-
/**
|
|
32948
|
-
* The resource of the linked records, in "namespace/resource" form. Required when filtering by syncable_ids unless sync_type is given.
|
|
32949
|
-
*/
|
|
32950
|
-
resource_syncable_type?: string;
|
|
33130
|
+
path: {
|
|
32951
33131
|
/**
|
|
32952
|
-
*
|
|
33132
|
+
* Return only the company holidays with these ids.
|
|
32953
33133
|
*/
|
|
32954
|
-
|
|
33134
|
+
id: string;
|
|
32955
33135
|
};
|
|
32956
|
-
|
|
33136
|
+
query?: never;
|
|
33137
|
+
url: '/api/2027-01-01/resources/holidays/company_holidays/{id}';
|
|
32957
33138
|
};
|
|
32958
|
-
export type
|
|
33139
|
+
export type GetApi20270101ResourcesHolidaysCompanyHolidaysByIdErrors = {
|
|
32959
33140
|
/**
|
|
32960
33141
|
* Bad Request (malformed_request)
|
|
32961
33142
|
*/
|
|
@@ -33005,29 +33186,34 @@ export type GetApi20270101ResourcesIntegrationsSyncableStatesErrors = {
|
|
|
33005
33186
|
*/
|
|
33006
33187
|
504: ErrorResponse;
|
|
33007
33188
|
};
|
|
33008
|
-
export type
|
|
33009
|
-
export type
|
|
33189
|
+
export type GetApi20270101ResourcesHolidaysCompanyHolidaysByIdError = GetApi20270101ResourcesHolidaysCompanyHolidaysByIdErrors[keyof GetApi20270101ResourcesHolidaysCompanyHolidaysByIdErrors];
|
|
33190
|
+
export type GetApi20270101ResourcesHolidaysCompanyHolidaysByIdResponses = {
|
|
33010
33191
|
/**
|
|
33011
33192
|
* OK
|
|
33012
33193
|
*/
|
|
33013
|
-
200:
|
|
33014
|
-
data?: Array<IntegrationsSyncableState>;
|
|
33015
|
-
meta?: PagedIndexMeta;
|
|
33016
|
-
};
|
|
33194
|
+
200: HolidaysCompanyHoliday;
|
|
33017
33195
|
};
|
|
33018
|
-
export type
|
|
33019
|
-
export type
|
|
33196
|
+
export type GetApi20270101ResourcesHolidaysCompanyHolidaysByIdResponse = GetApi20270101ResourcesHolidaysCompanyHolidaysByIdResponses[keyof GetApi20270101ResourcesHolidaysCompanyHolidaysByIdResponses];
|
|
33197
|
+
export type GetApi20270101ResourcesIntegrationsSyncRunsData = {
|
|
33020
33198
|
body?: never;
|
|
33021
|
-
path
|
|
33199
|
+
path?: never;
|
|
33200
|
+
query: {
|
|
33022
33201
|
/**
|
|
33023
|
-
*
|
|
33202
|
+
* identifier of sync run
|
|
33024
33203
|
*/
|
|
33025
|
-
|
|
33204
|
+
'ids[]'?: Array<string>;
|
|
33205
|
+
/**
|
|
33206
|
+
* UUID of the marketplace integration to filter sync runs by.
|
|
33207
|
+
*/
|
|
33208
|
+
marketplace_integration_uuid: string;
|
|
33209
|
+
/**
|
|
33210
|
+
* Filter sync runs by their creation timestamp (`created_at`), on or after this timestamp (inclusive).
|
|
33211
|
+
*/
|
|
33212
|
+
created_at_gteq: string;
|
|
33026
33213
|
};
|
|
33027
|
-
|
|
33028
|
-
url: '/api/2027-01-01/resources/integrations/syncable_states/{id}';
|
|
33214
|
+
url: '/api/2027-01-01/resources/integrations/sync_runs';
|
|
33029
33215
|
};
|
|
33030
|
-
export type
|
|
33216
|
+
export type GetApi20270101ResourcesIntegrationsSyncRunsErrors = {
|
|
33031
33217
|
/**
|
|
33032
33218
|
* Bad Request (malformed_request)
|
|
33033
33219
|
*/
|
|
@@ -33077,30 +33263,33 @@ export type GetApi20270101ResourcesIntegrationsSyncableStatesByIdErrors = {
|
|
|
33077
33263
|
*/
|
|
33078
33264
|
504: ErrorResponse;
|
|
33079
33265
|
};
|
|
33080
|
-
export type
|
|
33081
|
-
export type
|
|
33266
|
+
export type GetApi20270101ResourcesIntegrationsSyncRunsError = GetApi20270101ResourcesIntegrationsSyncRunsErrors[keyof GetApi20270101ResourcesIntegrationsSyncRunsErrors];
|
|
33267
|
+
export type GetApi20270101ResourcesIntegrationsSyncRunsResponses = {
|
|
33082
33268
|
/**
|
|
33083
33269
|
* OK
|
|
33084
33270
|
*/
|
|
33085
|
-
200:
|
|
33271
|
+
200: {
|
|
33272
|
+
data?: Array<IntegrationsSyncRun>;
|
|
33273
|
+
meta?: PagedIndexMeta;
|
|
33274
|
+
};
|
|
33086
33275
|
};
|
|
33087
|
-
export type
|
|
33088
|
-
export type
|
|
33089
|
-
body?:
|
|
33090
|
-
path?: never;
|
|
33091
|
-
query?: {
|
|
33276
|
+
export type GetApi20270101ResourcesIntegrationsSyncRunsResponse = GetApi20270101ResourcesIntegrationsSyncRunsResponses[keyof GetApi20270101ResourcesIntegrationsSyncRunsResponses];
|
|
33277
|
+
export type PostApi20270101ResourcesIntegrationsSyncRunsData = {
|
|
33278
|
+
body?: {
|
|
33092
33279
|
/**
|
|
33093
|
-
*
|
|
33280
|
+
* Identifier of the company the sync run belongs to. Optional: defaults to the company the credential is scoped to.
|
|
33094
33281
|
*/
|
|
33095
|
-
|
|
33282
|
+
company_id?: string;
|
|
33096
33283
|
/**
|
|
33097
|
-
*
|
|
33284
|
+
* UUID of the marketplace integration to create a sync run for. Optional: defaults to the integration the OAuth credential belongs to. Sending a different one is rejected.
|
|
33098
33285
|
*/
|
|
33099
|
-
|
|
33286
|
+
marketplace_integration_uuid?: string;
|
|
33100
33287
|
};
|
|
33101
|
-
|
|
33288
|
+
path?: never;
|
|
33289
|
+
query?: never;
|
|
33290
|
+
url: '/api/2027-01-01/resources/integrations/sync_runs';
|
|
33102
33291
|
};
|
|
33103
|
-
export type
|
|
33292
|
+
export type PostApi20270101ResourcesIntegrationsSyncRunsErrors = {
|
|
33104
33293
|
/**
|
|
33105
33294
|
* Bad Request (malformed_request)
|
|
33106
33295
|
*/
|
|
@@ -33150,29 +33339,26 @@ export type GetApi20270101ResourcesIntegrationsSyncableSyncRunsErrors = {
|
|
|
33150
33339
|
*/
|
|
33151
33340
|
504: ErrorResponse;
|
|
33152
33341
|
};
|
|
33153
|
-
export type
|
|
33154
|
-
export type
|
|
33342
|
+
export type PostApi20270101ResourcesIntegrationsSyncRunsError = PostApi20270101ResourcesIntegrationsSyncRunsErrors[keyof PostApi20270101ResourcesIntegrationsSyncRunsErrors];
|
|
33343
|
+
export type PostApi20270101ResourcesIntegrationsSyncRunsResponses = {
|
|
33155
33344
|
/**
|
|
33156
|
-
*
|
|
33345
|
+
* CREATED
|
|
33157
33346
|
*/
|
|
33158
|
-
|
|
33159
|
-
data?: Array<IntegrationsSyncableSyncRun>;
|
|
33160
|
-
meta?: PagedIndexMeta;
|
|
33161
|
-
};
|
|
33347
|
+
201: IntegrationsSyncRun;
|
|
33162
33348
|
};
|
|
33163
|
-
export type
|
|
33164
|
-
export type
|
|
33349
|
+
export type PostApi20270101ResourcesIntegrationsSyncRunsResponse = PostApi20270101ResourcesIntegrationsSyncRunsResponses[keyof PostApi20270101ResourcesIntegrationsSyncRunsResponses];
|
|
33350
|
+
export type GetApi20270101ResourcesIntegrationsSyncRunsByIdData = {
|
|
33165
33351
|
body?: never;
|
|
33166
33352
|
path: {
|
|
33167
33353
|
/**
|
|
33168
|
-
*
|
|
33354
|
+
* identifier of sync run
|
|
33169
33355
|
*/
|
|
33170
33356
|
id: string;
|
|
33171
33357
|
};
|
|
33172
33358
|
query?: never;
|
|
33173
|
-
url: '/api/2027-01-01/resources/integrations/
|
|
33359
|
+
url: '/api/2027-01-01/resources/integrations/sync_runs/{id}';
|
|
33174
33360
|
};
|
|
33175
|
-
export type
|
|
33361
|
+
export type GetApi20270101ResourcesIntegrationsSyncRunsByIdErrors = {
|
|
33176
33362
|
/**
|
|
33177
33363
|
* Bad Request (malformed_request)
|
|
33178
33364
|
*/
|
|
@@ -33222,45 +33408,38 @@ export type GetApi20270101ResourcesIntegrationsSyncableSyncRunsByIdErrors = {
|
|
|
33222
33408
|
*/
|
|
33223
33409
|
504: ErrorResponse;
|
|
33224
33410
|
};
|
|
33225
|
-
export type
|
|
33226
|
-
export type
|
|
33411
|
+
export type GetApi20270101ResourcesIntegrationsSyncRunsByIdError = GetApi20270101ResourcesIntegrationsSyncRunsByIdErrors[keyof GetApi20270101ResourcesIntegrationsSyncRunsByIdErrors];
|
|
33412
|
+
export type GetApi20270101ResourcesIntegrationsSyncRunsByIdResponses = {
|
|
33227
33413
|
/**
|
|
33228
33414
|
* OK
|
|
33229
33415
|
*/
|
|
33230
|
-
200:
|
|
33416
|
+
200: IntegrationsSyncRun;
|
|
33231
33417
|
};
|
|
33232
|
-
export type
|
|
33233
|
-
export type
|
|
33418
|
+
export type GetApi20270101ResourcesIntegrationsSyncRunsByIdResponse = GetApi20270101ResourcesIntegrationsSyncRunsByIdResponses[keyof GetApi20270101ResourcesIntegrationsSyncRunsByIdResponses];
|
|
33419
|
+
export type PostApi20270101ResourcesIntegrationsSyncRunOutputsData = {
|
|
33234
33420
|
body?: {
|
|
33235
33421
|
/**
|
|
33236
|
-
* Identifier of the
|
|
33237
|
-
*/
|
|
33238
|
-
id: string;
|
|
33239
|
-
/**
|
|
33240
|
-
* Status of the syncable sync run
|
|
33422
|
+
* Identifier of the sync run this output belongs to
|
|
33241
33423
|
*/
|
|
33242
|
-
|
|
33424
|
+
sync_run_id: string;
|
|
33243
33425
|
/**
|
|
33244
|
-
*
|
|
33426
|
+
* The CSV file to upload as the sync run output
|
|
33245
33427
|
*/
|
|
33246
|
-
|
|
33247
|
-
[key: string]: unknown;
|
|
33248
|
-
};
|
|
33428
|
+
file: Blob | File;
|
|
33249
33429
|
/**
|
|
33250
|
-
*
|
|
33430
|
+
* Optional custom name for the uploaded file. When omitted, a standardized name is generated.
|
|
33251
33431
|
*/
|
|
33252
|
-
|
|
33253
|
-
};
|
|
33254
|
-
path: {
|
|
33432
|
+
file_name: string;
|
|
33255
33433
|
/**
|
|
33256
|
-
*
|
|
33434
|
+
* Optional JSON array with the digest of the record behind each syncable sync run in the file, as synced, used to detect later changes to it. Only kept for integrations whose app computes the digest; each digest is at most 64 characters.
|
|
33257
33435
|
*/
|
|
33258
|
-
|
|
33436
|
+
digests?: string;
|
|
33259
33437
|
};
|
|
33438
|
+
path?: never;
|
|
33260
33439
|
query?: never;
|
|
33261
|
-
url: '/api/2027-01-01/resources/integrations/
|
|
33440
|
+
url: '/api/2027-01-01/resources/integrations/sync_run_outputs';
|
|
33262
33441
|
};
|
|
33263
|
-
export type
|
|
33442
|
+
export type PostApi20270101ResourcesIntegrationsSyncRunOutputsErrors = {
|
|
33264
33443
|
/**
|
|
33265
33444
|
* Bad Request (malformed_request)
|
|
33266
33445
|
*/
|
|
@@ -33310,53 +33489,443 @@ export type PutApi20270101ResourcesIntegrationsSyncableSyncRunsByIdErrors = {
|
|
|
33310
33489
|
*/
|
|
33311
33490
|
504: ErrorResponse;
|
|
33312
33491
|
};
|
|
33313
|
-
export type
|
|
33314
|
-
export type
|
|
33492
|
+
export type PostApi20270101ResourcesIntegrationsSyncRunOutputsError = PostApi20270101ResourcesIntegrationsSyncRunOutputsErrors[keyof PostApi20270101ResourcesIntegrationsSyncRunOutputsErrors];
|
|
33493
|
+
export type PostApi20270101ResourcesIntegrationsSyncRunOutputsResponses = {
|
|
33315
33494
|
/**
|
|
33316
|
-
*
|
|
33495
|
+
* CREATED
|
|
33317
33496
|
*/
|
|
33318
|
-
|
|
33497
|
+
201: IntegrationsSyncRunOutput;
|
|
33319
33498
|
};
|
|
33320
|
-
export type
|
|
33321
|
-
export type
|
|
33322
|
-
body?:
|
|
33499
|
+
export type PostApi20270101ResourcesIntegrationsSyncRunOutputsResponse = PostApi20270101ResourcesIntegrationsSyncRunOutputsResponses[keyof PostApi20270101ResourcesIntegrationsSyncRunOutputsResponses];
|
|
33500
|
+
export type GetApi20270101ResourcesIntegrationsSyncableStatesData = {
|
|
33501
|
+
body?: never;
|
|
33502
|
+
path?: never;
|
|
33503
|
+
query?: {
|
|
33323
33504
|
/**
|
|
33324
|
-
*
|
|
33505
|
+
* Filter syncable states by their identifiers
|
|
33325
33506
|
*/
|
|
33326
|
-
|
|
33507
|
+
'ids[]'?: Array<string>;
|
|
33327
33508
|
/**
|
|
33328
|
-
*
|
|
33509
|
+
* Filter syncable states by the identifiers of the linked API resource, identified by the resource_syncable_type field
|
|
33329
33510
|
*/
|
|
33330
|
-
|
|
33331
|
-
|
|
33332
|
-
|
|
33333
|
-
|
|
33334
|
-
|
|
33335
|
-
|
|
33336
|
-
|
|
33337
|
-
|
|
33338
|
-
|
|
33339
|
-
|
|
33340
|
-
|
|
33341
|
-
|
|
33342
|
-
|
|
33343
|
-
/**
|
|
33344
|
-
* The Factorial record this item resolved to (link). Only fills a missing link; re-linking to a different record is rejected.
|
|
33345
|
-
*/
|
|
33346
|
-
syncable_id?: string;
|
|
33347
|
-
/**
|
|
33348
|
-
* Error or validation messages for failed rows
|
|
33349
|
-
*/
|
|
33350
|
-
error_messages?: {
|
|
33351
|
-
[key: string]: unknown;
|
|
33352
|
-
};
|
|
33353
|
-
}>;
|
|
33511
|
+
'syncable_ids[]'?: Array<string>;
|
|
33512
|
+
/**
|
|
33513
|
+
* The type of synchronization to filter by, in "namespace/resource" form. Takes precedence over resource_syncable_type, which is ambiguous when several sync types share a resource (for example employees/employee).
|
|
33514
|
+
*/
|
|
33515
|
+
sync_type?: 'compensations/compensation' | 'expenses/expense' | 'employee_updates/contract_change' | 'employee_updates/leave' | 'employee_updates/new_hire' | 'employee_updates/personal_change_id' | 'employee_updates/personal_change_name' | 'employee_updates/personal_change_irpf' | 'employee_updates/personal_change_bank' | 'employee_updates/personal_change_gender' | 'employee_updates/personal_change_health_insurance' | 'employee_updates/personal_change_address' | 'employee_updates/personal_change_residence' | 'employee_updates/personal_change_workplace' | 'employee_updates/personal_change_nationality' | 'employee_updates/personal_change_email' | 'employee_updates/personal_change_phone_number' | 'employee_updates/personal_change_permits_and_certificates' | 'employee_updates/personal_change_taxes_and_deductions' | 'employee_updates/personal_change_work_activity' | 'employee_updates/personal_change_birth_name' | 'employee_updates/personal_change_academic_title' | 'employee_updates/personal_change_country_of_birth' | 'employee_updates/personal_change_place_of_birth' | 'employee_updates/termination' | 'employee_updates/worked_time' | 'finance/vendor' | 'finance/financial_document' | 'employees/employee' | 'teams/team' | 'teams/membership' | 'finance/journal_entry' | 'procurement/purchase_order';
|
|
33516
|
+
/**
|
|
33517
|
+
* The resource of the linked records, in "namespace/resource" form. Required when filtering by syncable_ids unless sync_type is given.
|
|
33518
|
+
*/
|
|
33519
|
+
resource_syncable_type?: string;
|
|
33520
|
+
/**
|
|
33521
|
+
* Filter syncable states by the UUID of the marketplace integration
|
|
33522
|
+
*/
|
|
33523
|
+
integration_uuid?: string;
|
|
33354
33524
|
};
|
|
33355
|
-
|
|
33356
|
-
query?: never;
|
|
33357
|
-
url: '/api/2027-01-01/resources/integrations/syncable_sync_runs/bulk_upsert';
|
|
33525
|
+
url: '/api/2027-01-01/resources/integrations/syncable_states';
|
|
33358
33526
|
};
|
|
33359
|
-
export type
|
|
33527
|
+
export type GetApi20270101ResourcesIntegrationsSyncableStatesErrors = {
|
|
33528
|
+
/**
|
|
33529
|
+
* Bad Request (malformed_request)
|
|
33530
|
+
*/
|
|
33531
|
+
400: ErrorResponse;
|
|
33532
|
+
/**
|
|
33533
|
+
* Unauthorized (unauthorized)
|
|
33534
|
+
*/
|
|
33535
|
+
401: ErrorResponse;
|
|
33536
|
+
/**
|
|
33537
|
+
* Payment Required (payment_required)
|
|
33538
|
+
*/
|
|
33539
|
+
402: ErrorResponse;
|
|
33540
|
+
/**
|
|
33541
|
+
* Forbidden (forbidden)
|
|
33542
|
+
*/
|
|
33543
|
+
403: ErrorResponse;
|
|
33544
|
+
/**
|
|
33545
|
+
* Not Found (missing_resource)
|
|
33546
|
+
*/
|
|
33547
|
+
404: ErrorResponse;
|
|
33548
|
+
/**
|
|
33549
|
+
* Conflict (invalid_state)
|
|
33550
|
+
*/
|
|
33551
|
+
409: ErrorResponse;
|
|
33552
|
+
/**
|
|
33553
|
+
* Gone
|
|
33554
|
+
*/
|
|
33555
|
+
410: ErrorResponse;
|
|
33556
|
+
/**
|
|
33557
|
+
* Unprocessable Entity (default, validation_failed)
|
|
33558
|
+
*/
|
|
33559
|
+
422: ErrorResponse;
|
|
33560
|
+
/**
|
|
33561
|
+
* Precondition Required
|
|
33562
|
+
*/
|
|
33563
|
+
428: ErrorResponse;
|
|
33564
|
+
/**
|
|
33565
|
+
* Internal Server Error
|
|
33566
|
+
*/
|
|
33567
|
+
500: ErrorResponse;
|
|
33568
|
+
/**
|
|
33569
|
+
* Bad Gateway (malformed_resource)
|
|
33570
|
+
*/
|
|
33571
|
+
502: ErrorResponse;
|
|
33572
|
+
/**
|
|
33573
|
+
* Gateway Timeout (service_unreachable)
|
|
33574
|
+
*/
|
|
33575
|
+
504: ErrorResponse;
|
|
33576
|
+
};
|
|
33577
|
+
export type GetApi20270101ResourcesIntegrationsSyncableStatesError = GetApi20270101ResourcesIntegrationsSyncableStatesErrors[keyof GetApi20270101ResourcesIntegrationsSyncableStatesErrors];
|
|
33578
|
+
export type GetApi20270101ResourcesIntegrationsSyncableStatesResponses = {
|
|
33579
|
+
/**
|
|
33580
|
+
* OK
|
|
33581
|
+
*/
|
|
33582
|
+
200: {
|
|
33583
|
+
data?: Array<IntegrationsSyncableState>;
|
|
33584
|
+
meta?: PagedIndexMeta;
|
|
33585
|
+
};
|
|
33586
|
+
};
|
|
33587
|
+
export type GetApi20270101ResourcesIntegrationsSyncableStatesResponse = GetApi20270101ResourcesIntegrationsSyncableStatesResponses[keyof GetApi20270101ResourcesIntegrationsSyncableStatesResponses];
|
|
33588
|
+
export type GetApi20270101ResourcesIntegrationsSyncableStatesByIdData = {
|
|
33589
|
+
body?: never;
|
|
33590
|
+
path: {
|
|
33591
|
+
/**
|
|
33592
|
+
* Filter syncable states by their identifiers
|
|
33593
|
+
*/
|
|
33594
|
+
id: string;
|
|
33595
|
+
};
|
|
33596
|
+
query?: never;
|
|
33597
|
+
url: '/api/2027-01-01/resources/integrations/syncable_states/{id}';
|
|
33598
|
+
};
|
|
33599
|
+
export type GetApi20270101ResourcesIntegrationsSyncableStatesByIdErrors = {
|
|
33600
|
+
/**
|
|
33601
|
+
* Bad Request (malformed_request)
|
|
33602
|
+
*/
|
|
33603
|
+
400: ErrorResponse;
|
|
33604
|
+
/**
|
|
33605
|
+
* Unauthorized (unauthorized)
|
|
33606
|
+
*/
|
|
33607
|
+
401: ErrorResponse;
|
|
33608
|
+
/**
|
|
33609
|
+
* Payment Required (payment_required)
|
|
33610
|
+
*/
|
|
33611
|
+
402: ErrorResponse;
|
|
33612
|
+
/**
|
|
33613
|
+
* Forbidden (forbidden)
|
|
33614
|
+
*/
|
|
33615
|
+
403: ErrorResponse;
|
|
33616
|
+
/**
|
|
33617
|
+
* Not Found (missing_resource)
|
|
33618
|
+
*/
|
|
33619
|
+
404: ErrorResponse;
|
|
33620
|
+
/**
|
|
33621
|
+
* Conflict (invalid_state)
|
|
33622
|
+
*/
|
|
33623
|
+
409: ErrorResponse;
|
|
33624
|
+
/**
|
|
33625
|
+
* Gone
|
|
33626
|
+
*/
|
|
33627
|
+
410: ErrorResponse;
|
|
33628
|
+
/**
|
|
33629
|
+
* Unprocessable Entity (default, validation_failed)
|
|
33630
|
+
*/
|
|
33631
|
+
422: ErrorResponse;
|
|
33632
|
+
/**
|
|
33633
|
+
* Precondition Required
|
|
33634
|
+
*/
|
|
33635
|
+
428: ErrorResponse;
|
|
33636
|
+
/**
|
|
33637
|
+
* Internal Server Error
|
|
33638
|
+
*/
|
|
33639
|
+
500: ErrorResponse;
|
|
33640
|
+
/**
|
|
33641
|
+
* Bad Gateway (malformed_resource)
|
|
33642
|
+
*/
|
|
33643
|
+
502: ErrorResponse;
|
|
33644
|
+
/**
|
|
33645
|
+
* Gateway Timeout (service_unreachable)
|
|
33646
|
+
*/
|
|
33647
|
+
504: ErrorResponse;
|
|
33648
|
+
};
|
|
33649
|
+
export type GetApi20270101ResourcesIntegrationsSyncableStatesByIdError = GetApi20270101ResourcesIntegrationsSyncableStatesByIdErrors[keyof GetApi20270101ResourcesIntegrationsSyncableStatesByIdErrors];
|
|
33650
|
+
export type GetApi20270101ResourcesIntegrationsSyncableStatesByIdResponses = {
|
|
33651
|
+
/**
|
|
33652
|
+
* OK
|
|
33653
|
+
*/
|
|
33654
|
+
200: IntegrationsSyncableState;
|
|
33655
|
+
};
|
|
33656
|
+
export type GetApi20270101ResourcesIntegrationsSyncableStatesByIdResponse = GetApi20270101ResourcesIntegrationsSyncableStatesByIdResponses[keyof GetApi20270101ResourcesIntegrationsSyncableStatesByIdResponses];
|
|
33657
|
+
export type GetApi20270101ResourcesIntegrationsSyncableSyncRunsData = {
|
|
33658
|
+
body?: never;
|
|
33659
|
+
path?: never;
|
|
33660
|
+
query?: {
|
|
33661
|
+
/**
|
|
33662
|
+
* Filter syncable sync runs by their identifiers
|
|
33663
|
+
*/
|
|
33664
|
+
'ids[]'?: Array<string>;
|
|
33665
|
+
/**
|
|
33666
|
+
* Filter syncable sync runs by the sync runs they belong to
|
|
33667
|
+
*/
|
|
33668
|
+
'sync_run_ids[]'?: Array<string>;
|
|
33669
|
+
};
|
|
33670
|
+
url: '/api/2027-01-01/resources/integrations/syncable_sync_runs';
|
|
33671
|
+
};
|
|
33672
|
+
export type GetApi20270101ResourcesIntegrationsSyncableSyncRunsErrors = {
|
|
33673
|
+
/**
|
|
33674
|
+
* Bad Request (malformed_request)
|
|
33675
|
+
*/
|
|
33676
|
+
400: ErrorResponse;
|
|
33677
|
+
/**
|
|
33678
|
+
* Unauthorized (unauthorized)
|
|
33679
|
+
*/
|
|
33680
|
+
401: ErrorResponse;
|
|
33681
|
+
/**
|
|
33682
|
+
* Payment Required (payment_required)
|
|
33683
|
+
*/
|
|
33684
|
+
402: ErrorResponse;
|
|
33685
|
+
/**
|
|
33686
|
+
* Forbidden (forbidden)
|
|
33687
|
+
*/
|
|
33688
|
+
403: ErrorResponse;
|
|
33689
|
+
/**
|
|
33690
|
+
* Not Found (missing_resource)
|
|
33691
|
+
*/
|
|
33692
|
+
404: ErrorResponse;
|
|
33693
|
+
/**
|
|
33694
|
+
* Conflict (invalid_state)
|
|
33695
|
+
*/
|
|
33696
|
+
409: ErrorResponse;
|
|
33697
|
+
/**
|
|
33698
|
+
* Gone
|
|
33699
|
+
*/
|
|
33700
|
+
410: ErrorResponse;
|
|
33701
|
+
/**
|
|
33702
|
+
* Unprocessable Entity (default, validation_failed)
|
|
33703
|
+
*/
|
|
33704
|
+
422: ErrorResponse;
|
|
33705
|
+
/**
|
|
33706
|
+
* Precondition Required
|
|
33707
|
+
*/
|
|
33708
|
+
428: ErrorResponse;
|
|
33709
|
+
/**
|
|
33710
|
+
* Internal Server Error
|
|
33711
|
+
*/
|
|
33712
|
+
500: ErrorResponse;
|
|
33713
|
+
/**
|
|
33714
|
+
* Bad Gateway (malformed_resource)
|
|
33715
|
+
*/
|
|
33716
|
+
502: ErrorResponse;
|
|
33717
|
+
/**
|
|
33718
|
+
* Gateway Timeout (service_unreachable)
|
|
33719
|
+
*/
|
|
33720
|
+
504: ErrorResponse;
|
|
33721
|
+
};
|
|
33722
|
+
export type GetApi20270101ResourcesIntegrationsSyncableSyncRunsError = GetApi20270101ResourcesIntegrationsSyncableSyncRunsErrors[keyof GetApi20270101ResourcesIntegrationsSyncableSyncRunsErrors];
|
|
33723
|
+
export type GetApi20270101ResourcesIntegrationsSyncableSyncRunsResponses = {
|
|
33724
|
+
/**
|
|
33725
|
+
* OK
|
|
33726
|
+
*/
|
|
33727
|
+
200: {
|
|
33728
|
+
data?: Array<IntegrationsSyncableSyncRun>;
|
|
33729
|
+
meta?: PagedIndexMeta;
|
|
33730
|
+
};
|
|
33731
|
+
};
|
|
33732
|
+
export type GetApi20270101ResourcesIntegrationsSyncableSyncRunsResponse = GetApi20270101ResourcesIntegrationsSyncableSyncRunsResponses[keyof GetApi20270101ResourcesIntegrationsSyncableSyncRunsResponses];
|
|
33733
|
+
export type GetApi20270101ResourcesIntegrationsSyncableSyncRunsByIdData = {
|
|
33734
|
+
body?: never;
|
|
33735
|
+
path: {
|
|
33736
|
+
/**
|
|
33737
|
+
* Filter syncable sync runs by their identifiers
|
|
33738
|
+
*/
|
|
33739
|
+
id: string;
|
|
33740
|
+
};
|
|
33741
|
+
query?: never;
|
|
33742
|
+
url: '/api/2027-01-01/resources/integrations/syncable_sync_runs/{id}';
|
|
33743
|
+
};
|
|
33744
|
+
export type GetApi20270101ResourcesIntegrationsSyncableSyncRunsByIdErrors = {
|
|
33745
|
+
/**
|
|
33746
|
+
* Bad Request (malformed_request)
|
|
33747
|
+
*/
|
|
33748
|
+
400: ErrorResponse;
|
|
33749
|
+
/**
|
|
33750
|
+
* Unauthorized (unauthorized)
|
|
33751
|
+
*/
|
|
33752
|
+
401: ErrorResponse;
|
|
33753
|
+
/**
|
|
33754
|
+
* Payment Required (payment_required)
|
|
33755
|
+
*/
|
|
33756
|
+
402: ErrorResponse;
|
|
33757
|
+
/**
|
|
33758
|
+
* Forbidden (forbidden)
|
|
33759
|
+
*/
|
|
33760
|
+
403: ErrorResponse;
|
|
33761
|
+
/**
|
|
33762
|
+
* Not Found (missing_resource)
|
|
33763
|
+
*/
|
|
33764
|
+
404: ErrorResponse;
|
|
33765
|
+
/**
|
|
33766
|
+
* Conflict (invalid_state)
|
|
33767
|
+
*/
|
|
33768
|
+
409: ErrorResponse;
|
|
33769
|
+
/**
|
|
33770
|
+
* Gone
|
|
33771
|
+
*/
|
|
33772
|
+
410: ErrorResponse;
|
|
33773
|
+
/**
|
|
33774
|
+
* Unprocessable Entity (default, validation_failed)
|
|
33775
|
+
*/
|
|
33776
|
+
422: ErrorResponse;
|
|
33777
|
+
/**
|
|
33778
|
+
* Precondition Required
|
|
33779
|
+
*/
|
|
33780
|
+
428: ErrorResponse;
|
|
33781
|
+
/**
|
|
33782
|
+
* Internal Server Error
|
|
33783
|
+
*/
|
|
33784
|
+
500: ErrorResponse;
|
|
33785
|
+
/**
|
|
33786
|
+
* Bad Gateway (malformed_resource)
|
|
33787
|
+
*/
|
|
33788
|
+
502: ErrorResponse;
|
|
33789
|
+
/**
|
|
33790
|
+
* Gateway Timeout (service_unreachable)
|
|
33791
|
+
*/
|
|
33792
|
+
504: ErrorResponse;
|
|
33793
|
+
};
|
|
33794
|
+
export type GetApi20270101ResourcesIntegrationsSyncableSyncRunsByIdError = GetApi20270101ResourcesIntegrationsSyncableSyncRunsByIdErrors[keyof GetApi20270101ResourcesIntegrationsSyncableSyncRunsByIdErrors];
|
|
33795
|
+
export type GetApi20270101ResourcesIntegrationsSyncableSyncRunsByIdResponses = {
|
|
33796
|
+
/**
|
|
33797
|
+
* OK
|
|
33798
|
+
*/
|
|
33799
|
+
200: IntegrationsSyncableSyncRun;
|
|
33800
|
+
};
|
|
33801
|
+
export type GetApi20270101ResourcesIntegrationsSyncableSyncRunsByIdResponse = GetApi20270101ResourcesIntegrationsSyncableSyncRunsByIdResponses[keyof GetApi20270101ResourcesIntegrationsSyncableSyncRunsByIdResponses];
|
|
33802
|
+
export type PutApi20270101ResourcesIntegrationsSyncableSyncRunsByIdData = {
|
|
33803
|
+
body?: {
|
|
33804
|
+
/**
|
|
33805
|
+
* Identifier of the syncable sync run
|
|
33806
|
+
*/
|
|
33807
|
+
id: string;
|
|
33808
|
+
/**
|
|
33809
|
+
* Status of the syncable sync run
|
|
33810
|
+
*/
|
|
33811
|
+
status: 'success' | 'failed' | 'invalid';
|
|
33812
|
+
/**
|
|
33813
|
+
* Error or validation messages of the syncable sync run
|
|
33814
|
+
*/
|
|
33815
|
+
error_messages?: {
|
|
33816
|
+
[key: string]: unknown;
|
|
33817
|
+
};
|
|
33818
|
+
/**
|
|
33819
|
+
* Digest of the record as it was synced, used to detect later changes to it. Only kept for integrations whose app computes the digest; at most 64 characters.
|
|
33820
|
+
*/
|
|
33821
|
+
payload_digest?: string;
|
|
33822
|
+
};
|
|
33823
|
+
path: {
|
|
33824
|
+
/**
|
|
33825
|
+
* Identifier of the syncable sync run
|
|
33826
|
+
*/
|
|
33827
|
+
id: string;
|
|
33828
|
+
};
|
|
33829
|
+
query?: never;
|
|
33830
|
+
url: '/api/2027-01-01/resources/integrations/syncable_sync_runs/{id}';
|
|
33831
|
+
};
|
|
33832
|
+
export type PutApi20270101ResourcesIntegrationsSyncableSyncRunsByIdErrors = {
|
|
33833
|
+
/**
|
|
33834
|
+
* Bad Request (malformed_request)
|
|
33835
|
+
*/
|
|
33836
|
+
400: ErrorResponse;
|
|
33837
|
+
/**
|
|
33838
|
+
* Unauthorized (unauthorized)
|
|
33839
|
+
*/
|
|
33840
|
+
401: ErrorResponse;
|
|
33841
|
+
/**
|
|
33842
|
+
* Payment Required (payment_required)
|
|
33843
|
+
*/
|
|
33844
|
+
402: ErrorResponse;
|
|
33845
|
+
/**
|
|
33846
|
+
* Forbidden (forbidden)
|
|
33847
|
+
*/
|
|
33848
|
+
403: ErrorResponse;
|
|
33849
|
+
/**
|
|
33850
|
+
* Not Found (missing_resource)
|
|
33851
|
+
*/
|
|
33852
|
+
404: ErrorResponse;
|
|
33853
|
+
/**
|
|
33854
|
+
* Conflict (invalid_state)
|
|
33855
|
+
*/
|
|
33856
|
+
409: ErrorResponse;
|
|
33857
|
+
/**
|
|
33858
|
+
* Gone
|
|
33859
|
+
*/
|
|
33860
|
+
410: ErrorResponse;
|
|
33861
|
+
/**
|
|
33862
|
+
* Unprocessable Entity (default, validation_failed)
|
|
33863
|
+
*/
|
|
33864
|
+
422: ErrorResponse;
|
|
33865
|
+
/**
|
|
33866
|
+
* Precondition Required
|
|
33867
|
+
*/
|
|
33868
|
+
428: ErrorResponse;
|
|
33869
|
+
/**
|
|
33870
|
+
* Internal Server Error
|
|
33871
|
+
*/
|
|
33872
|
+
500: ErrorResponse;
|
|
33873
|
+
/**
|
|
33874
|
+
* Bad Gateway (malformed_resource)
|
|
33875
|
+
*/
|
|
33876
|
+
502: ErrorResponse;
|
|
33877
|
+
/**
|
|
33878
|
+
* Gateway Timeout (service_unreachable)
|
|
33879
|
+
*/
|
|
33880
|
+
504: ErrorResponse;
|
|
33881
|
+
};
|
|
33882
|
+
export type PutApi20270101ResourcesIntegrationsSyncableSyncRunsByIdError = PutApi20270101ResourcesIntegrationsSyncableSyncRunsByIdErrors[keyof PutApi20270101ResourcesIntegrationsSyncableSyncRunsByIdErrors];
|
|
33883
|
+
export type PutApi20270101ResourcesIntegrationsSyncableSyncRunsByIdResponses = {
|
|
33884
|
+
/**
|
|
33885
|
+
* OK
|
|
33886
|
+
*/
|
|
33887
|
+
200: IntegrationsSyncableSyncRun;
|
|
33888
|
+
};
|
|
33889
|
+
export type PutApi20270101ResourcesIntegrationsSyncableSyncRunsByIdResponse = PutApi20270101ResourcesIntegrationsSyncableSyncRunsByIdResponses[keyof PutApi20270101ResourcesIntegrationsSyncableSyncRunsByIdResponses];
|
|
33890
|
+
export type PostApi20270101ResourcesIntegrationsSyncableSyncRunsBulkUpsertData = {
|
|
33891
|
+
body?: {
|
|
33892
|
+
/**
|
|
33893
|
+
* Identifier of the sync run the reported items belong to
|
|
33894
|
+
*/
|
|
33895
|
+
sync_run_id: string;
|
|
33896
|
+
/**
|
|
33897
|
+
* Outcome of each item the external system discovered/processed for this run. Rows are matched by (sync_run_id, external_identifier, syncable_type).
|
|
33898
|
+
*/
|
|
33899
|
+
items: Array<{
|
|
33900
|
+
/**
|
|
33901
|
+
* Identifier of the item in the external system
|
|
33902
|
+
*/
|
|
33903
|
+
external_identifier: string;
|
|
33904
|
+
/**
|
|
33905
|
+
* The Factorial resource type this item maps to. Same values returned by GET /syncable_items.
|
|
33906
|
+
*/
|
|
33907
|
+
syncable_type: 'compensations/compensation' | 'expenses/expense' | 'employee_updates/contract_change' | 'employee_updates/leave' | 'employee_updates/new_hire' | 'employee_updates/personal_change_id' | 'employee_updates/personal_change_name' | 'employee_updates/personal_change_irpf' | 'employee_updates/personal_change_bank' | 'employee_updates/personal_change_gender' | 'employee_updates/personal_change_health_insurance' | 'employee_updates/personal_change_address' | 'employee_updates/personal_change_residence' | 'employee_updates/personal_change_workplace' | 'employee_updates/personal_change_nationality' | 'employee_updates/personal_change_email' | 'employee_updates/personal_change_phone_number' | 'employee_updates/personal_change_permits_and_certificates' | 'employee_updates/personal_change_taxes_and_deductions' | 'employee_updates/personal_change_work_activity' | 'employee_updates/personal_change_birth_name' | 'employee_updates/personal_change_academic_title' | 'employee_updates/personal_change_country_of_birth' | 'employee_updates/personal_change_place_of_birth' | 'employee_updates/termination' | 'employee_updates/worked_time' | 'finance/vendor' | 'finance/financial_document' | 'employees/employee' | 'teams/team' | 'teams/membership' | 'finance/journal_entry' | 'procurement/purchase_order';
|
|
33908
|
+
/**
|
|
33909
|
+
* Outcome of processing the item
|
|
33910
|
+
*/
|
|
33911
|
+
status: 'running' | 'success' | 'failed' | 'invalid';
|
|
33912
|
+
/**
|
|
33913
|
+
* The Factorial record this item resolved to (link). Only fills a missing link; re-linking to a different record is rejected.
|
|
33914
|
+
*/
|
|
33915
|
+
syncable_id?: string;
|
|
33916
|
+
/**
|
|
33917
|
+
* Error or validation messages for failed rows
|
|
33918
|
+
*/
|
|
33919
|
+
error_messages?: {
|
|
33920
|
+
[key: string]: unknown;
|
|
33921
|
+
};
|
|
33922
|
+
}>;
|
|
33923
|
+
};
|
|
33924
|
+
path?: never;
|
|
33925
|
+
query?: never;
|
|
33926
|
+
url: '/api/2027-01-01/resources/integrations/syncable_sync_runs/bulk_upsert';
|
|
33927
|
+
};
|
|
33928
|
+
export type PostApi20270101ResourcesIntegrationsSyncableSyncRunsBulkUpsertErrors = {
|
|
33360
33929
|
/**
|
|
33361
33930
|
* Bad Request (malformed_request)
|
|
33362
33931
|
*/
|
|
@@ -54300,26 +54869,364 @@ export type DeleteApi20270101ResourcesTimeoffLeavesByIdErrors = {
|
|
|
54300
54869
|
*/
|
|
54301
54870
|
504: ErrorResponse;
|
|
54302
54871
|
};
|
|
54303
|
-
export type DeleteApi20270101ResourcesTimeoffLeavesByIdError = DeleteApi20270101ResourcesTimeoffLeavesByIdErrors[keyof DeleteApi20270101ResourcesTimeoffLeavesByIdErrors];
|
|
54304
|
-
export type DeleteApi20270101ResourcesTimeoffLeavesByIdResponses = {
|
|
54872
|
+
export type DeleteApi20270101ResourcesTimeoffLeavesByIdError = DeleteApi20270101ResourcesTimeoffLeavesByIdErrors[keyof DeleteApi20270101ResourcesTimeoffLeavesByIdErrors];
|
|
54873
|
+
export type DeleteApi20270101ResourcesTimeoffLeavesByIdResponses = {
|
|
54874
|
+
/**
|
|
54875
|
+
* OK
|
|
54876
|
+
*/
|
|
54877
|
+
200: TimeoffLeave;
|
|
54878
|
+
};
|
|
54879
|
+
export type DeleteApi20270101ResourcesTimeoffLeavesByIdResponse = DeleteApi20270101ResourcesTimeoffLeavesByIdResponses[keyof DeleteApi20270101ResourcesTimeoffLeavesByIdResponses];
|
|
54880
|
+
export type GetApi20270101ResourcesTimeoffLeavesByIdData = {
|
|
54881
|
+
body?: never;
|
|
54882
|
+
path: {
|
|
54883
|
+
/**
|
|
54884
|
+
* Return only the leaves with these ids.
|
|
54885
|
+
*/
|
|
54886
|
+
id: string;
|
|
54887
|
+
};
|
|
54888
|
+
query?: never;
|
|
54889
|
+
url: '/api/2027-01-01/resources/timeoff/leaves/{id}';
|
|
54890
|
+
};
|
|
54891
|
+
export type GetApi20270101ResourcesTimeoffLeavesByIdErrors = {
|
|
54892
|
+
/**
|
|
54893
|
+
* Bad Request (malformed_request)
|
|
54894
|
+
*/
|
|
54895
|
+
400: ErrorResponse;
|
|
54896
|
+
/**
|
|
54897
|
+
* Unauthorized (unauthorized)
|
|
54898
|
+
*/
|
|
54899
|
+
401: ErrorResponse;
|
|
54900
|
+
/**
|
|
54901
|
+
* Payment Required (payment_required)
|
|
54902
|
+
*/
|
|
54903
|
+
402: ErrorResponse;
|
|
54904
|
+
/**
|
|
54905
|
+
* Forbidden (forbidden)
|
|
54906
|
+
*/
|
|
54907
|
+
403: ErrorResponse;
|
|
54908
|
+
/**
|
|
54909
|
+
* Not Found (missing_resource)
|
|
54910
|
+
*/
|
|
54911
|
+
404: ErrorResponse;
|
|
54912
|
+
/**
|
|
54913
|
+
* Conflict (invalid_state)
|
|
54914
|
+
*/
|
|
54915
|
+
409: ErrorResponse;
|
|
54916
|
+
/**
|
|
54917
|
+
* Gone
|
|
54918
|
+
*/
|
|
54919
|
+
410: ErrorResponse;
|
|
54920
|
+
/**
|
|
54921
|
+
* Unprocessable Entity (default, validation_failed)
|
|
54922
|
+
*/
|
|
54923
|
+
422: ErrorResponse;
|
|
54924
|
+
/**
|
|
54925
|
+
* Precondition Required
|
|
54926
|
+
*/
|
|
54927
|
+
428: ErrorResponse;
|
|
54928
|
+
/**
|
|
54929
|
+
* Internal Server Error
|
|
54930
|
+
*/
|
|
54931
|
+
500: ErrorResponse;
|
|
54932
|
+
/**
|
|
54933
|
+
* Bad Gateway (malformed_resource)
|
|
54934
|
+
*/
|
|
54935
|
+
502: ErrorResponse;
|
|
54936
|
+
/**
|
|
54937
|
+
* Gateway Timeout (service_unreachable)
|
|
54938
|
+
*/
|
|
54939
|
+
504: ErrorResponse;
|
|
54940
|
+
};
|
|
54941
|
+
export type GetApi20270101ResourcesTimeoffLeavesByIdError = GetApi20270101ResourcesTimeoffLeavesByIdErrors[keyof GetApi20270101ResourcesTimeoffLeavesByIdErrors];
|
|
54942
|
+
export type GetApi20270101ResourcesTimeoffLeavesByIdResponses = {
|
|
54943
|
+
/**
|
|
54944
|
+
* OK
|
|
54945
|
+
*/
|
|
54946
|
+
200: TimeoffLeave;
|
|
54947
|
+
};
|
|
54948
|
+
export type GetApi20270101ResourcesTimeoffLeavesByIdResponse = GetApi20270101ResourcesTimeoffLeavesByIdResponses[keyof GetApi20270101ResourcesTimeoffLeavesByIdResponses];
|
|
54949
|
+
export type PutApi20270101ResourcesTimeoffLeavesByIdData = {
|
|
54950
|
+
body?: {
|
|
54951
|
+
/**
|
|
54952
|
+
* The leave id
|
|
54953
|
+
*/
|
|
54954
|
+
id: string;
|
|
54955
|
+
/**
|
|
54956
|
+
* The employee id of the leave
|
|
54957
|
+
*/
|
|
54958
|
+
employee_id?: string;
|
|
54959
|
+
/**
|
|
54960
|
+
* The leave type id
|
|
54961
|
+
*/
|
|
54962
|
+
leave_type_id?: string;
|
|
54963
|
+
/**
|
|
54964
|
+
* The description of the leave
|
|
54965
|
+
*/
|
|
54966
|
+
description?: string;
|
|
54967
|
+
/**
|
|
54968
|
+
* The valid start date of the leave following the format YYYY-MM-DD
|
|
54969
|
+
*/
|
|
54970
|
+
start_on?: string;
|
|
54971
|
+
/**
|
|
54972
|
+
* The valid end date of the leave following the format YYYY-MM-DD
|
|
54973
|
+
*/
|
|
54974
|
+
finish_on?: string;
|
|
54975
|
+
/**
|
|
54976
|
+
* If the leave is in: [beggining_of_day, end_of_day]
|
|
54977
|
+
*/
|
|
54978
|
+
half_day?: string;
|
|
54979
|
+
/**
|
|
54980
|
+
* The start time of a leave
|
|
54981
|
+
*/
|
|
54982
|
+
start_time?: string;
|
|
54983
|
+
/**
|
|
54984
|
+
* The hours amount in cents of a leave
|
|
54985
|
+
*/
|
|
54986
|
+
hours_amount_in_cents?: number;
|
|
54987
|
+
/**
|
|
54988
|
+
* Whether the leave is approved
|
|
54989
|
+
*/
|
|
54990
|
+
approved?: boolean;
|
|
54991
|
+
/**
|
|
54992
|
+
* Whether to skip notifications for this update
|
|
54993
|
+
*/
|
|
54994
|
+
skip_notifications?: boolean;
|
|
54995
|
+
/**
|
|
54996
|
+
* Whether to skip validations for this update
|
|
54997
|
+
*/
|
|
54998
|
+
skip_validations?: boolean;
|
|
54999
|
+
/**
|
|
55000
|
+
* Whether to skip medical leave processing for this update
|
|
55001
|
+
*/
|
|
55002
|
+
skip_medical_leave?: boolean;
|
|
55003
|
+
};
|
|
55004
|
+
path: {
|
|
55005
|
+
/**
|
|
55006
|
+
* The leave id
|
|
55007
|
+
*/
|
|
55008
|
+
id: string;
|
|
55009
|
+
};
|
|
55010
|
+
query?: never;
|
|
55011
|
+
url: '/api/2027-01-01/resources/timeoff/leaves/{id}';
|
|
55012
|
+
};
|
|
55013
|
+
export type PutApi20270101ResourcesTimeoffLeavesByIdErrors = {
|
|
55014
|
+
/**
|
|
55015
|
+
* Bad Request (malformed_request)
|
|
55016
|
+
*/
|
|
55017
|
+
400: ErrorResponse;
|
|
55018
|
+
/**
|
|
55019
|
+
* Unauthorized (unauthorized)
|
|
55020
|
+
*/
|
|
55021
|
+
401: ErrorResponse;
|
|
55022
|
+
/**
|
|
55023
|
+
* Payment Required (payment_required)
|
|
55024
|
+
*/
|
|
55025
|
+
402: ErrorResponse;
|
|
55026
|
+
/**
|
|
55027
|
+
* Forbidden (forbidden)
|
|
55028
|
+
*/
|
|
55029
|
+
403: ErrorResponse;
|
|
55030
|
+
/**
|
|
55031
|
+
* Not Found (missing_resource)
|
|
55032
|
+
*/
|
|
55033
|
+
404: ErrorResponse;
|
|
55034
|
+
/**
|
|
55035
|
+
* Conflict (invalid_state)
|
|
55036
|
+
*/
|
|
55037
|
+
409: ErrorResponse;
|
|
55038
|
+
/**
|
|
55039
|
+
* Gone
|
|
55040
|
+
*/
|
|
55041
|
+
410: ErrorResponse;
|
|
55042
|
+
/**
|
|
55043
|
+
* Unprocessable Entity (default, validation_failed)
|
|
55044
|
+
*/
|
|
55045
|
+
422: ErrorResponse;
|
|
55046
|
+
/**
|
|
55047
|
+
* Precondition Required
|
|
55048
|
+
*/
|
|
55049
|
+
428: ErrorResponse;
|
|
55050
|
+
/**
|
|
55051
|
+
* Internal Server Error
|
|
55052
|
+
*/
|
|
55053
|
+
500: ErrorResponse;
|
|
55054
|
+
/**
|
|
55055
|
+
* Bad Gateway (malformed_resource)
|
|
55056
|
+
*/
|
|
55057
|
+
502: ErrorResponse;
|
|
55058
|
+
/**
|
|
55059
|
+
* Gateway Timeout (service_unreachable)
|
|
55060
|
+
*/
|
|
55061
|
+
504: ErrorResponse;
|
|
55062
|
+
};
|
|
55063
|
+
export type PutApi20270101ResourcesTimeoffLeavesByIdError = PutApi20270101ResourcesTimeoffLeavesByIdErrors[keyof PutApi20270101ResourcesTimeoffLeavesByIdErrors];
|
|
55064
|
+
export type PutApi20270101ResourcesTimeoffLeavesByIdResponses = {
|
|
55065
|
+
/**
|
|
55066
|
+
* OK
|
|
55067
|
+
*/
|
|
55068
|
+
200: TimeoffLeave;
|
|
55069
|
+
};
|
|
55070
|
+
export type PutApi20270101ResourcesTimeoffLeavesByIdResponse = PutApi20270101ResourcesTimeoffLeavesByIdResponses[keyof PutApi20270101ResourcesTimeoffLeavesByIdResponses];
|
|
55071
|
+
export type PostApi20270101ResourcesTimeoffLeavesApproveData = {
|
|
55072
|
+
body?: {
|
|
55073
|
+
/**
|
|
55074
|
+
* Identifier of the Leave
|
|
55075
|
+
*/
|
|
55076
|
+
id: string;
|
|
55077
|
+
};
|
|
55078
|
+
path?: never;
|
|
55079
|
+
query?: never;
|
|
55080
|
+
url: '/api/2027-01-01/resources/timeoff/leaves/approve';
|
|
55081
|
+
};
|
|
55082
|
+
export type PostApi20270101ResourcesTimeoffLeavesApproveErrors = {
|
|
55083
|
+
/**
|
|
55084
|
+
* Bad Request (malformed_request)
|
|
55085
|
+
*/
|
|
55086
|
+
400: ErrorResponse;
|
|
55087
|
+
/**
|
|
55088
|
+
* Unauthorized (unauthorized)
|
|
55089
|
+
*/
|
|
55090
|
+
401: ErrorResponse;
|
|
55091
|
+
/**
|
|
55092
|
+
* Payment Required (payment_required)
|
|
55093
|
+
*/
|
|
55094
|
+
402: ErrorResponse;
|
|
55095
|
+
/**
|
|
55096
|
+
* Forbidden (forbidden)
|
|
55097
|
+
*/
|
|
55098
|
+
403: ErrorResponse;
|
|
55099
|
+
/**
|
|
55100
|
+
* Not Found (missing_resource)
|
|
55101
|
+
*/
|
|
55102
|
+
404: ErrorResponse;
|
|
55103
|
+
/**
|
|
55104
|
+
* Conflict (invalid_state)
|
|
55105
|
+
*/
|
|
55106
|
+
409: ErrorResponse;
|
|
55107
|
+
/**
|
|
55108
|
+
* Gone
|
|
55109
|
+
*/
|
|
55110
|
+
410: ErrorResponse;
|
|
55111
|
+
/**
|
|
55112
|
+
* Unprocessable Entity (default, validation_failed)
|
|
55113
|
+
*/
|
|
55114
|
+
422: ErrorResponse;
|
|
55115
|
+
/**
|
|
55116
|
+
* Precondition Required
|
|
55117
|
+
*/
|
|
55118
|
+
428: ErrorResponse;
|
|
55119
|
+
/**
|
|
55120
|
+
* Internal Server Error
|
|
55121
|
+
*/
|
|
55122
|
+
500: ErrorResponse;
|
|
55123
|
+
/**
|
|
55124
|
+
* Bad Gateway (malformed_resource)
|
|
55125
|
+
*/
|
|
55126
|
+
502: ErrorResponse;
|
|
55127
|
+
/**
|
|
55128
|
+
* Gateway Timeout (service_unreachable)
|
|
55129
|
+
*/
|
|
55130
|
+
504: ErrorResponse;
|
|
55131
|
+
};
|
|
55132
|
+
export type PostApi20270101ResourcesTimeoffLeavesApproveError = PostApi20270101ResourcesTimeoffLeavesApproveErrors[keyof PostApi20270101ResourcesTimeoffLeavesApproveErrors];
|
|
55133
|
+
export type PostApi20270101ResourcesTimeoffLeavesApproveResponses = {
|
|
55134
|
+
/**
|
|
55135
|
+
* OK
|
|
55136
|
+
*/
|
|
55137
|
+
200: TimeoffLeave;
|
|
55138
|
+
};
|
|
55139
|
+
export type PostApi20270101ResourcesTimeoffLeavesApproveResponse = PostApi20270101ResourcesTimeoffLeavesApproveResponses[keyof PostApi20270101ResourcesTimeoffLeavesApproveResponses];
|
|
55140
|
+
export type PostApi20270101ResourcesTimeoffLeavesApproveAllData = {
|
|
55141
|
+
body?: {
|
|
55142
|
+
/**
|
|
55143
|
+
* Identifier of the Leave
|
|
55144
|
+
*/
|
|
55145
|
+
id: string;
|
|
55146
|
+
};
|
|
55147
|
+
path?: never;
|
|
55148
|
+
query?: never;
|
|
55149
|
+
url: '/api/2027-01-01/resources/timeoff/leaves/approve_all';
|
|
55150
|
+
};
|
|
55151
|
+
export type PostApi20270101ResourcesTimeoffLeavesApproveAllErrors = {
|
|
55152
|
+
/**
|
|
55153
|
+
* Bad Request (malformed_request)
|
|
55154
|
+
*/
|
|
55155
|
+
400: ErrorResponse;
|
|
55156
|
+
/**
|
|
55157
|
+
* Unauthorized (unauthorized)
|
|
55158
|
+
*/
|
|
55159
|
+
401: ErrorResponse;
|
|
55160
|
+
/**
|
|
55161
|
+
* Payment Required (payment_required)
|
|
55162
|
+
*/
|
|
55163
|
+
402: ErrorResponse;
|
|
55164
|
+
/**
|
|
55165
|
+
* Forbidden (forbidden)
|
|
55166
|
+
*/
|
|
55167
|
+
403: ErrorResponse;
|
|
55168
|
+
/**
|
|
55169
|
+
* Not Found (missing_resource)
|
|
55170
|
+
*/
|
|
55171
|
+
404: ErrorResponse;
|
|
55172
|
+
/**
|
|
55173
|
+
* Conflict (invalid_state)
|
|
55174
|
+
*/
|
|
55175
|
+
409: ErrorResponse;
|
|
55176
|
+
/**
|
|
55177
|
+
* Gone
|
|
55178
|
+
*/
|
|
55179
|
+
410: ErrorResponse;
|
|
55180
|
+
/**
|
|
55181
|
+
* Unprocessable Entity (default, validation_failed)
|
|
55182
|
+
*/
|
|
55183
|
+
422: ErrorResponse;
|
|
55184
|
+
/**
|
|
55185
|
+
* Precondition Required
|
|
55186
|
+
*/
|
|
55187
|
+
428: ErrorResponse;
|
|
55188
|
+
/**
|
|
55189
|
+
* Internal Server Error
|
|
55190
|
+
*/
|
|
55191
|
+
500: ErrorResponse;
|
|
55192
|
+
/**
|
|
55193
|
+
* Bad Gateway (malformed_resource)
|
|
55194
|
+
*/
|
|
55195
|
+
502: ErrorResponse;
|
|
55196
|
+
/**
|
|
55197
|
+
* Gateway Timeout (service_unreachable)
|
|
55198
|
+
*/
|
|
55199
|
+
504: ErrorResponse;
|
|
55200
|
+
};
|
|
55201
|
+
export type PostApi20270101ResourcesTimeoffLeavesApproveAllError = PostApi20270101ResourcesTimeoffLeavesApproveAllErrors[keyof PostApi20270101ResourcesTimeoffLeavesApproveAllErrors];
|
|
55202
|
+
export type PostApi20270101ResourcesTimeoffLeavesApproveAllResponses = {
|
|
54305
55203
|
/**
|
|
54306
55204
|
* OK
|
|
54307
55205
|
*/
|
|
54308
55206
|
200: TimeoffLeave;
|
|
54309
55207
|
};
|
|
54310
|
-
export type
|
|
54311
|
-
export type
|
|
54312
|
-
body?:
|
|
54313
|
-
path: {
|
|
55208
|
+
export type PostApi20270101ResourcesTimeoffLeavesApproveAllResponse = PostApi20270101ResourcesTimeoffLeavesApproveAllResponses[keyof PostApi20270101ResourcesTimeoffLeavesApproveAllResponses];
|
|
55209
|
+
export type PostApi20270101ResourcesTimeoffLeavesBulkCreateData = {
|
|
55210
|
+
body?: {
|
|
54314
55211
|
/**
|
|
54315
|
-
*
|
|
55212
|
+
* The leaves to create, at most 50
|
|
54316
55213
|
*/
|
|
54317
|
-
|
|
55214
|
+
leaves: Array<{
|
|
55215
|
+
employee_id: string;
|
|
55216
|
+
leave_type_id: string;
|
|
55217
|
+
description?: string;
|
|
55218
|
+
start_on: string;
|
|
55219
|
+
finish_on: string;
|
|
55220
|
+
half_day?: string;
|
|
55221
|
+
start_time?: string;
|
|
55222
|
+
hours_amount_in_cents?: number;
|
|
55223
|
+
}>;
|
|
54318
55224
|
};
|
|
55225
|
+
path?: never;
|
|
54319
55226
|
query?: never;
|
|
54320
|
-
url: '/api/2027-01-01/resources/timeoff/leaves/
|
|
55227
|
+
url: '/api/2027-01-01/resources/timeoff/leaves/bulk_create';
|
|
54321
55228
|
};
|
|
54322
|
-
export type
|
|
55229
|
+
export type PostApi20270101ResourcesTimeoffLeavesBulkCreateErrors = {
|
|
54323
55230
|
/**
|
|
54324
55231
|
* Bad Request (malformed_request)
|
|
54325
55232
|
*/
|
|
@@ -54369,79 +55276,26 @@ export type GetApi20270101ResourcesTimeoffLeavesByIdErrors = {
|
|
|
54369
55276
|
*/
|
|
54370
55277
|
504: ErrorResponse;
|
|
54371
55278
|
};
|
|
54372
|
-
export type
|
|
54373
|
-
export type
|
|
55279
|
+
export type PostApi20270101ResourcesTimeoffLeavesBulkCreateError = PostApi20270101ResourcesTimeoffLeavesBulkCreateErrors[keyof PostApi20270101ResourcesTimeoffLeavesBulkCreateErrors];
|
|
55280
|
+
export type PostApi20270101ResourcesTimeoffLeavesBulkCreateResponses = {
|
|
54374
55281
|
/**
|
|
54375
55282
|
* OK
|
|
54376
55283
|
*/
|
|
54377
|
-
200: TimeoffLeave
|
|
55284
|
+
200: Array<TimeoffLeave>;
|
|
54378
55285
|
};
|
|
54379
|
-
export type
|
|
54380
|
-
export type
|
|
55286
|
+
export type PostApi20270101ResourcesTimeoffLeavesBulkCreateResponse = PostApi20270101ResourcesTimeoffLeavesBulkCreateResponses[keyof PostApi20270101ResourcesTimeoffLeavesBulkCreateResponses];
|
|
55287
|
+
export type PostApi20270101ResourcesTimeoffLeavesBulkDeleteData = {
|
|
54381
55288
|
body?: {
|
|
54382
55289
|
/**
|
|
54383
|
-
*
|
|
54384
|
-
*/
|
|
54385
|
-
id: string;
|
|
54386
|
-
/**
|
|
54387
|
-
* The employee id of the leave
|
|
54388
|
-
*/
|
|
54389
|
-
employee_id?: string;
|
|
54390
|
-
/**
|
|
54391
|
-
* The leave type id
|
|
54392
|
-
*/
|
|
54393
|
-
leave_type_id?: string;
|
|
54394
|
-
/**
|
|
54395
|
-
* The description of the leave
|
|
54396
|
-
*/
|
|
54397
|
-
description?: string;
|
|
54398
|
-
/**
|
|
54399
|
-
* The valid start date of the leave following the format YYYY-MM-DD
|
|
54400
|
-
*/
|
|
54401
|
-
start_on?: string;
|
|
54402
|
-
/**
|
|
54403
|
-
* The valid end date of the leave following the format YYYY-MM-DD
|
|
54404
|
-
*/
|
|
54405
|
-
finish_on?: string;
|
|
54406
|
-
/**
|
|
54407
|
-
* If the leave is in: [beggining_of_day, end_of_day]
|
|
54408
|
-
*/
|
|
54409
|
-
half_day?: string;
|
|
54410
|
-
/**
|
|
54411
|
-
* The start time of a leave
|
|
54412
|
-
*/
|
|
54413
|
-
start_time?: string;
|
|
54414
|
-
/**
|
|
54415
|
-
* The hours amount in cents of a leave
|
|
54416
|
-
*/
|
|
54417
|
-
hours_amount_in_cents?: number;
|
|
54418
|
-
/**
|
|
54419
|
-
* Whether the leave is approved
|
|
54420
|
-
*/
|
|
54421
|
-
approved?: boolean;
|
|
54422
|
-
/**
|
|
54423
|
-
* Whether to skip notifications for this update
|
|
54424
|
-
*/
|
|
54425
|
-
skip_notifications?: boolean;
|
|
54426
|
-
/**
|
|
54427
|
-
* Whether to skip validations for this update
|
|
54428
|
-
*/
|
|
54429
|
-
skip_validations?: boolean;
|
|
54430
|
-
/**
|
|
54431
|
-
* Whether to skip medical leave processing for this update
|
|
54432
|
-
*/
|
|
54433
|
-
skip_medical_leave?: boolean;
|
|
54434
|
-
};
|
|
54435
|
-
path: {
|
|
54436
|
-
/**
|
|
54437
|
-
* The leave id
|
|
55290
|
+
* Identifiers of the leaves to cancel
|
|
54438
55291
|
*/
|
|
54439
|
-
|
|
55292
|
+
ids: Array<string>;
|
|
54440
55293
|
};
|
|
55294
|
+
path?: never;
|
|
54441
55295
|
query?: never;
|
|
54442
|
-
url: '/api/2027-01-01/resources/timeoff/leaves/
|
|
55296
|
+
url: '/api/2027-01-01/resources/timeoff/leaves/bulk_delete';
|
|
54443
55297
|
};
|
|
54444
|
-
export type
|
|
55298
|
+
export type PostApi20270101ResourcesTimeoffLeavesBulkDeleteErrors = {
|
|
54445
55299
|
/**
|
|
54446
55300
|
* Bad Request (malformed_request)
|
|
54447
55301
|
*/
|
|
@@ -54491,26 +55345,35 @@ export type PutApi20270101ResourcesTimeoffLeavesByIdErrors = {
|
|
|
54491
55345
|
*/
|
|
54492
55346
|
504: ErrorResponse;
|
|
54493
55347
|
};
|
|
54494
|
-
export type
|
|
54495
|
-
export type
|
|
55348
|
+
export type PostApi20270101ResourcesTimeoffLeavesBulkDeleteError = PostApi20270101ResourcesTimeoffLeavesBulkDeleteErrors[keyof PostApi20270101ResourcesTimeoffLeavesBulkDeleteErrors];
|
|
55349
|
+
export type PostApi20270101ResourcesTimeoffLeavesBulkDeleteResponses = {
|
|
54496
55350
|
/**
|
|
54497
55351
|
* OK
|
|
54498
55352
|
*/
|
|
54499
|
-
200: TimeoffLeave
|
|
55353
|
+
200: Array<TimeoffLeave>;
|
|
54500
55354
|
};
|
|
54501
|
-
export type
|
|
54502
|
-
export type
|
|
55355
|
+
export type PostApi20270101ResourcesTimeoffLeavesBulkDeleteResponse = PostApi20270101ResourcesTimeoffLeavesBulkDeleteResponses[keyof PostApi20270101ResourcesTimeoffLeavesBulkDeleteResponses];
|
|
55356
|
+
export type PostApi20270101ResourcesTimeoffLeavesBulkUpdateData = {
|
|
54503
55357
|
body?: {
|
|
54504
55358
|
/**
|
|
54505
|
-
*
|
|
55359
|
+
* One patch per leave, at most 50; each leave at most once
|
|
54506
55360
|
*/
|
|
54507
|
-
|
|
55361
|
+
leaves: Array<{
|
|
55362
|
+
id: string;
|
|
55363
|
+
leave_type_id?: string;
|
|
55364
|
+
description?: string;
|
|
55365
|
+
start_on?: string;
|
|
55366
|
+
finish_on?: string;
|
|
55367
|
+
half_day?: string;
|
|
55368
|
+
start_time?: string;
|
|
55369
|
+
hours_amount_in_cents?: number;
|
|
55370
|
+
}>;
|
|
54508
55371
|
};
|
|
54509
55372
|
path?: never;
|
|
54510
55373
|
query?: never;
|
|
54511
|
-
url: '/api/2027-01-01/resources/timeoff/leaves/
|
|
55374
|
+
url: '/api/2027-01-01/resources/timeoff/leaves/bulk_update';
|
|
54512
55375
|
};
|
|
54513
|
-
export type
|
|
55376
|
+
export type PostApi20270101ResourcesTimeoffLeavesBulkUpdateErrors = {
|
|
54514
55377
|
/**
|
|
54515
55378
|
* Bad Request (malformed_request)
|
|
54516
55379
|
*/
|
|
@@ -54560,26 +55423,30 @@ export type PostApi20270101ResourcesTimeoffLeavesApproveErrors = {
|
|
|
54560
55423
|
*/
|
|
54561
55424
|
504: ErrorResponse;
|
|
54562
55425
|
};
|
|
54563
|
-
export type
|
|
54564
|
-
export type
|
|
55426
|
+
export type PostApi20270101ResourcesTimeoffLeavesBulkUpdateError = PostApi20270101ResourcesTimeoffLeavesBulkUpdateErrors[keyof PostApi20270101ResourcesTimeoffLeavesBulkUpdateErrors];
|
|
55427
|
+
export type PostApi20270101ResourcesTimeoffLeavesBulkUpdateResponses = {
|
|
54565
55428
|
/**
|
|
54566
55429
|
* OK
|
|
54567
55430
|
*/
|
|
54568
|
-
200: TimeoffLeave
|
|
55431
|
+
200: Array<TimeoffLeave>;
|
|
54569
55432
|
};
|
|
54570
|
-
export type
|
|
54571
|
-
export type
|
|
55433
|
+
export type PostApi20270101ResourcesTimeoffLeavesBulkUpdateResponse = PostApi20270101ResourcesTimeoffLeavesBulkUpdateResponses[keyof PostApi20270101ResourcesTimeoffLeavesBulkUpdateResponses];
|
|
55434
|
+
export type PostApi20270101ResourcesTimeoffLeavesRejectData = {
|
|
54572
55435
|
body?: {
|
|
54573
55436
|
/**
|
|
54574
55437
|
* Identifier of the Leave
|
|
54575
55438
|
*/
|
|
54576
55439
|
id: string;
|
|
55440
|
+
/**
|
|
55441
|
+
* Reason for rejecting the leave
|
|
55442
|
+
*/
|
|
55443
|
+
reason?: string;
|
|
54577
55444
|
};
|
|
54578
55445
|
path?: never;
|
|
54579
55446
|
query?: never;
|
|
54580
|
-
url: '/api/2027-01-01/resources/timeoff/leaves/
|
|
55447
|
+
url: '/api/2027-01-01/resources/timeoff/leaves/reject';
|
|
54581
55448
|
};
|
|
54582
|
-
export type
|
|
55449
|
+
export type PostApi20270101ResourcesTimeoffLeavesRejectErrors = {
|
|
54583
55450
|
/**
|
|
54584
55451
|
* Bad Request (malformed_request)
|
|
54585
55452
|
*/
|
|
@@ -54629,35 +55496,38 @@ export type PostApi20270101ResourcesTimeoffLeavesApproveAllErrors = {
|
|
|
54629
55496
|
*/
|
|
54630
55497
|
504: ErrorResponse;
|
|
54631
55498
|
};
|
|
54632
|
-
export type
|
|
54633
|
-
export type
|
|
55499
|
+
export type PostApi20270101ResourcesTimeoffLeavesRejectError = PostApi20270101ResourcesTimeoffLeavesRejectErrors[keyof PostApi20270101ResourcesTimeoffLeavesRejectErrors];
|
|
55500
|
+
export type PostApi20270101ResourcesTimeoffLeavesRejectResponses = {
|
|
54634
55501
|
/**
|
|
54635
55502
|
* OK
|
|
54636
55503
|
*/
|
|
54637
55504
|
200: TimeoffLeave;
|
|
54638
55505
|
};
|
|
54639
|
-
export type
|
|
54640
|
-
export type
|
|
54641
|
-
body?:
|
|
55506
|
+
export type PostApi20270101ResourcesTimeoffLeavesRejectResponse = PostApi20270101ResourcesTimeoffLeavesRejectResponses[keyof PostApi20270101ResourcesTimeoffLeavesRejectResponses];
|
|
55507
|
+
export type GetApi20270101ResourcesTimeoffLeaveChangeRequestsData = {
|
|
55508
|
+
body?: never;
|
|
55509
|
+
path?: never;
|
|
55510
|
+
query?: {
|
|
54642
55511
|
/**
|
|
54643
|
-
*
|
|
55512
|
+
* Return only the change requests with these ids.
|
|
54644
55513
|
*/
|
|
54645
|
-
|
|
54646
|
-
|
|
54647
|
-
|
|
54648
|
-
|
|
54649
|
-
|
|
54650
|
-
|
|
54651
|
-
|
|
54652
|
-
|
|
54653
|
-
|
|
54654
|
-
|
|
55514
|
+
'ids[]'?: Array<string>;
|
|
55515
|
+
/**
|
|
55516
|
+
* Return only the change requests on these leaves.
|
|
55517
|
+
*/
|
|
55518
|
+
'leave_ids[]'?: Array<string>;
|
|
55519
|
+
/**
|
|
55520
|
+
* Return only the change requests of these employees.
|
|
55521
|
+
*/
|
|
55522
|
+
'employee_ids[]'?: Array<string>;
|
|
55523
|
+
/**
|
|
55524
|
+
* Set to true to return only the requests still awaiting a decision. Passing false has no effect.
|
|
55525
|
+
*/
|
|
55526
|
+
pending?: boolean;
|
|
54655
55527
|
};
|
|
54656
|
-
|
|
54657
|
-
query?: never;
|
|
54658
|
-
url: '/api/2027-01-01/resources/timeoff/leaves/bulk_create';
|
|
55528
|
+
url: '/api/2027-01-01/resources/timeoff/leave_change_requests';
|
|
54659
55529
|
};
|
|
54660
|
-
export type
|
|
55530
|
+
export type GetApi20270101ResourcesTimeoffLeaveChangeRequestsErrors = {
|
|
54661
55531
|
/**
|
|
54662
55532
|
* Bad Request (malformed_request)
|
|
54663
55533
|
*/
|
|
@@ -54707,26 +55577,65 @@ export type PostApi20270101ResourcesTimeoffLeavesBulkCreateErrors = {
|
|
|
54707
55577
|
*/
|
|
54708
55578
|
504: ErrorResponse;
|
|
54709
55579
|
};
|
|
54710
|
-
export type
|
|
54711
|
-
export type
|
|
55580
|
+
export type GetApi20270101ResourcesTimeoffLeaveChangeRequestsError = GetApi20270101ResourcesTimeoffLeaveChangeRequestsErrors[keyof GetApi20270101ResourcesTimeoffLeaveChangeRequestsErrors];
|
|
55581
|
+
export type GetApi20270101ResourcesTimeoffLeaveChangeRequestsResponses = {
|
|
54712
55582
|
/**
|
|
54713
55583
|
* OK
|
|
54714
55584
|
*/
|
|
54715
|
-
200:
|
|
55585
|
+
200: {
|
|
55586
|
+
data?: Array<TimeoffLeaveChangeRequest>;
|
|
55587
|
+
meta?: PagedIndexMeta;
|
|
55588
|
+
};
|
|
54716
55589
|
};
|
|
54717
|
-
export type
|
|
54718
|
-
export type
|
|
55590
|
+
export type GetApi20270101ResourcesTimeoffLeaveChangeRequestsResponse = GetApi20270101ResourcesTimeoffLeaveChangeRequestsResponses[keyof GetApi20270101ResourcesTimeoffLeaveChangeRequestsResponses];
|
|
55591
|
+
export type PostApi20270101ResourcesTimeoffLeaveChangeRequestsData = {
|
|
54719
55592
|
body?: {
|
|
54720
55593
|
/**
|
|
54721
|
-
*
|
|
55594
|
+
* Id of the approved leave to change.
|
|
54722
55595
|
*/
|
|
54723
|
-
|
|
55596
|
+
leave_id: string;
|
|
55597
|
+
/**
|
|
55598
|
+
* update_leave to propose new values, cancel_leave to cancel the leave.
|
|
55599
|
+
*/
|
|
55600
|
+
request_type: 'update_leave' | 'cancel_leave';
|
|
55601
|
+
/**
|
|
55602
|
+
* Proposed first day. Omit it to keep the current one.
|
|
55603
|
+
*/
|
|
55604
|
+
start_on?: string;
|
|
55605
|
+
/**
|
|
55606
|
+
* Proposed last day. Omit it to keep the current one.
|
|
55607
|
+
*/
|
|
55608
|
+
finish_on?: string;
|
|
55609
|
+
/**
|
|
55610
|
+
* Proposed half day (beggining_of_day or end_of_day), or an empty string to make a half-day leave a full day. Omit it to keep the current one.
|
|
55611
|
+
*/
|
|
55612
|
+
half_day?: string;
|
|
55613
|
+
/**
|
|
55614
|
+
* Proposed start time for an hourly leave. Omit it to keep the current one.
|
|
55615
|
+
*/
|
|
55616
|
+
start_time?: string;
|
|
55617
|
+
/**
|
|
55618
|
+
* Proposed hours for an hourly leave, in cents of an hour. Omit it to keep the current one.
|
|
55619
|
+
*/
|
|
55620
|
+
hours_amount_in_cents?: number;
|
|
55621
|
+
/**
|
|
55622
|
+
* Proposed leave type. Omit it to keep the current one.
|
|
55623
|
+
*/
|
|
55624
|
+
leave_type_id?: string;
|
|
55625
|
+
/**
|
|
55626
|
+
* Proposed description of the leave. Omit it to keep the current one.
|
|
55627
|
+
*/
|
|
55628
|
+
description?: string;
|
|
55629
|
+
/**
|
|
55630
|
+
* Why the employee asks for the change.
|
|
55631
|
+
*/
|
|
55632
|
+
reason?: string;
|
|
54724
55633
|
};
|
|
54725
55634
|
path?: never;
|
|
54726
55635
|
query?: never;
|
|
54727
|
-
url: '/api/2027-01-01/resources/timeoff/
|
|
55636
|
+
url: '/api/2027-01-01/resources/timeoff/leave_change_requests';
|
|
54728
55637
|
};
|
|
54729
|
-
export type
|
|
55638
|
+
export type PostApi20270101ResourcesTimeoffLeaveChangeRequestsErrors = {
|
|
54730
55639
|
/**
|
|
54731
55640
|
* Bad Request (malformed_request)
|
|
54732
55641
|
*/
|
|
@@ -54776,35 +55685,26 @@ export type PostApi20270101ResourcesTimeoffLeavesBulkDeleteErrors = {
|
|
|
54776
55685
|
*/
|
|
54777
55686
|
504: ErrorResponse;
|
|
54778
55687
|
};
|
|
54779
|
-
export type
|
|
54780
|
-
export type
|
|
55688
|
+
export type PostApi20270101ResourcesTimeoffLeaveChangeRequestsError = PostApi20270101ResourcesTimeoffLeaveChangeRequestsErrors[keyof PostApi20270101ResourcesTimeoffLeaveChangeRequestsErrors];
|
|
55689
|
+
export type PostApi20270101ResourcesTimeoffLeaveChangeRequestsResponses = {
|
|
54781
55690
|
/**
|
|
54782
|
-
*
|
|
55691
|
+
* CREATED
|
|
54783
55692
|
*/
|
|
54784
|
-
|
|
55693
|
+
201: TimeoffLeaveChangeRequest;
|
|
54785
55694
|
};
|
|
54786
|
-
export type
|
|
54787
|
-
export type
|
|
54788
|
-
body?:
|
|
55695
|
+
export type PostApi20270101ResourcesTimeoffLeaveChangeRequestsResponse = PostApi20270101ResourcesTimeoffLeaveChangeRequestsResponses[keyof PostApi20270101ResourcesTimeoffLeaveChangeRequestsResponses];
|
|
55696
|
+
export type DeleteApi20270101ResourcesTimeoffLeaveChangeRequestsByIdData = {
|
|
55697
|
+
body?: never;
|
|
55698
|
+
path: {
|
|
54789
55699
|
/**
|
|
54790
|
-
*
|
|
55700
|
+
* Id of the change request to withdraw.
|
|
54791
55701
|
*/
|
|
54792
|
-
|
|
54793
|
-
id: string;
|
|
54794
|
-
leave_type_id?: string;
|
|
54795
|
-
description?: string;
|
|
54796
|
-
start_on?: string;
|
|
54797
|
-
finish_on?: string;
|
|
54798
|
-
half_day?: string;
|
|
54799
|
-
start_time?: string;
|
|
54800
|
-
hours_amount_in_cents?: number;
|
|
54801
|
-
}>;
|
|
55702
|
+
id: string;
|
|
54802
55703
|
};
|
|
54803
|
-
path?: never;
|
|
54804
55704
|
query?: never;
|
|
54805
|
-
url: '/api/2027-01-01/resources/timeoff/
|
|
55705
|
+
url: '/api/2027-01-01/resources/timeoff/leave_change_requests/{id}';
|
|
54806
55706
|
};
|
|
54807
|
-
export type
|
|
55707
|
+
export type DeleteApi20270101ResourcesTimeoffLeaveChangeRequestsByIdErrors = {
|
|
54808
55708
|
/**
|
|
54809
55709
|
* Bad Request (malformed_request)
|
|
54810
55710
|
*/
|
|
@@ -54854,30 +55754,26 @@ export type PostApi20270101ResourcesTimeoffLeavesBulkUpdateErrors = {
|
|
|
54854
55754
|
*/
|
|
54855
55755
|
504: ErrorResponse;
|
|
54856
55756
|
};
|
|
54857
|
-
export type
|
|
54858
|
-
export type
|
|
55757
|
+
export type DeleteApi20270101ResourcesTimeoffLeaveChangeRequestsByIdError = DeleteApi20270101ResourcesTimeoffLeaveChangeRequestsByIdErrors[keyof DeleteApi20270101ResourcesTimeoffLeaveChangeRequestsByIdErrors];
|
|
55758
|
+
export type DeleteApi20270101ResourcesTimeoffLeaveChangeRequestsByIdResponses = {
|
|
54859
55759
|
/**
|
|
54860
55760
|
* OK
|
|
54861
55761
|
*/
|
|
54862
|
-
200:
|
|
55762
|
+
200: TimeoffLeaveChangeRequest;
|
|
54863
55763
|
};
|
|
54864
|
-
export type
|
|
54865
|
-
export type
|
|
54866
|
-
body?:
|
|
55764
|
+
export type DeleteApi20270101ResourcesTimeoffLeaveChangeRequestsByIdResponse = DeleteApi20270101ResourcesTimeoffLeaveChangeRequestsByIdResponses[keyof DeleteApi20270101ResourcesTimeoffLeaveChangeRequestsByIdResponses];
|
|
55765
|
+
export type GetApi20270101ResourcesTimeoffLeaveChangeRequestsByIdData = {
|
|
55766
|
+
body?: never;
|
|
55767
|
+
path: {
|
|
54867
55768
|
/**
|
|
54868
|
-
*
|
|
55769
|
+
* Return only the change requests with these ids.
|
|
54869
55770
|
*/
|
|
54870
55771
|
id: string;
|
|
54871
|
-
/**
|
|
54872
|
-
* Reason for rejecting the leave
|
|
54873
|
-
*/
|
|
54874
|
-
reason?: string;
|
|
54875
55772
|
};
|
|
54876
|
-
path?: never;
|
|
54877
55773
|
query?: never;
|
|
54878
|
-
url: '/api/2027-01-01/resources/timeoff/
|
|
55774
|
+
url: '/api/2027-01-01/resources/timeoff/leave_change_requests/{id}';
|
|
54879
55775
|
};
|
|
54880
|
-
export type
|
|
55776
|
+
export type GetApi20270101ResourcesTimeoffLeaveChangeRequestsByIdErrors = {
|
|
54881
55777
|
/**
|
|
54882
55778
|
* Bad Request (malformed_request)
|
|
54883
55779
|
*/
|
|
@@ -54927,14 +55823,14 @@ export type PostApi20270101ResourcesTimeoffLeavesRejectErrors = {
|
|
|
54927
55823
|
*/
|
|
54928
55824
|
504: ErrorResponse;
|
|
54929
55825
|
};
|
|
54930
|
-
export type
|
|
54931
|
-
export type
|
|
55826
|
+
export type GetApi20270101ResourcesTimeoffLeaveChangeRequestsByIdError = GetApi20270101ResourcesTimeoffLeaveChangeRequestsByIdErrors[keyof GetApi20270101ResourcesTimeoffLeaveChangeRequestsByIdErrors];
|
|
55827
|
+
export type GetApi20270101ResourcesTimeoffLeaveChangeRequestsByIdResponses = {
|
|
54932
55828
|
/**
|
|
54933
55829
|
* OK
|
|
54934
55830
|
*/
|
|
54935
|
-
200:
|
|
55831
|
+
200: TimeoffLeaveChangeRequest;
|
|
54936
55832
|
};
|
|
54937
|
-
export type
|
|
55833
|
+
export type GetApi20270101ResourcesTimeoffLeaveChangeRequestsByIdResponse = GetApi20270101ResourcesTimeoffLeaveChangeRequestsByIdResponses[keyof GetApi20270101ResourcesTimeoffLeaveChangeRequestsByIdResponses];
|
|
54938
55834
|
export type GetApi20270101ResourcesTimeoffLeaveTypesData = {
|
|
54939
55835
|
body?: never;
|
|
54940
55836
|
path?: never;
|