@factorialco/api-client 4.0.0-beta.2027010122 → 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 +17 -13
- package/dist/cjs/generated/index.js.map +1 -1
- package/dist/cjs/generated/sdk.gen.d.ts +27 -3
- package/dist/cjs/generated/sdk.gen.d.ts.map +1 -1
- package/dist/cjs/generated/sdk.gen.js +52 -4
- package/dist/cjs/generated/sdk.gen.js.map +1 -1
- package/dist/cjs/generated/types.gen.d.ts +444 -3
- package/dist/cjs/generated/types.gen.d.ts.map +1 -1
- package/dist/cjs/sdk.d.ts +31 -1
- package/dist/cjs/sdk.d.ts.map +1 -1
- package/dist/cjs/sdk.js +38 -2
- 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 +27 -3
- package/dist/esm/generated/sdk.gen.d.ts.map +1 -1
- package/dist/esm/generated/sdk.gen.js +46 -2
- package/dist/esm/generated/sdk.gen.js.map +1 -1
- package/dist/esm/generated/types.gen.d.ts +444 -3
- package/dist/esm/generated/types.gen.d.ts.map +1 -1
- package/dist/esm/sdk.d.ts +31 -1
- package/dist/esm/sdk.d.ts.map +1 -1
- package/dist/esm/sdk.js +36 -1
- package/dist/esm/sdk.js.map +1 -1
- package/package.json +1 -1
|
@@ -2790,7 +2790,7 @@ export type CostCentersResourceDistribution = {
|
|
|
2790
2790
|
*/
|
|
2791
2791
|
resource_type: string;
|
|
2792
2792
|
/**
|
|
2793
|
-
* 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`.
|
|
2794
2794
|
*/
|
|
2795
2795
|
resource_id: string;
|
|
2796
2796
|
/**
|
|
@@ -8747,6 +8747,120 @@ export type TimeoffLeave = {
|
|
|
8747
8747
|
*/
|
|
8748
8748
|
days_taken: number;
|
|
8749
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
|
+
};
|
|
8750
8864
|
export type TimeoffLeaveType = {
|
|
8751
8865
|
/**
|
|
8752
8866
|
* Identifier of the leave type
|
|
@@ -23329,11 +23443,11 @@ export type GetApi20270101ResourcesCostCentersResourceDistributionsData = {
|
|
|
23329
23443
|
path?: never;
|
|
23330
23444
|
query: {
|
|
23331
23445
|
/**
|
|
23332
|
-
* 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).
|
|
23333
23447
|
*/
|
|
23334
23448
|
resource_type: string;
|
|
23335
23449
|
/**
|
|
23336
|
-
* 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`.
|
|
23337
23451
|
*/
|
|
23338
23452
|
'resource_ids[]': Array<string>;
|
|
23339
23453
|
};
|
|
@@ -55390,6 +55504,333 @@ export type PostApi20270101ResourcesTimeoffLeavesRejectResponses = {
|
|
|
55390
55504
|
200: TimeoffLeave;
|
|
55391
55505
|
};
|
|
55392
55506
|
export type PostApi20270101ResourcesTimeoffLeavesRejectResponse = PostApi20270101ResourcesTimeoffLeavesRejectResponses[keyof PostApi20270101ResourcesTimeoffLeavesRejectResponses];
|
|
55507
|
+
export type GetApi20270101ResourcesTimeoffLeaveChangeRequestsData = {
|
|
55508
|
+
body?: never;
|
|
55509
|
+
path?: never;
|
|
55510
|
+
query?: {
|
|
55511
|
+
/**
|
|
55512
|
+
* Return only the change requests with these ids.
|
|
55513
|
+
*/
|
|
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;
|
|
55527
|
+
};
|
|
55528
|
+
url: '/api/2027-01-01/resources/timeoff/leave_change_requests';
|
|
55529
|
+
};
|
|
55530
|
+
export type GetApi20270101ResourcesTimeoffLeaveChangeRequestsErrors = {
|
|
55531
|
+
/**
|
|
55532
|
+
* Bad Request (malformed_request)
|
|
55533
|
+
*/
|
|
55534
|
+
400: ErrorResponse;
|
|
55535
|
+
/**
|
|
55536
|
+
* Unauthorized (unauthorized)
|
|
55537
|
+
*/
|
|
55538
|
+
401: ErrorResponse;
|
|
55539
|
+
/**
|
|
55540
|
+
* Payment Required (payment_required)
|
|
55541
|
+
*/
|
|
55542
|
+
402: ErrorResponse;
|
|
55543
|
+
/**
|
|
55544
|
+
* Forbidden (forbidden)
|
|
55545
|
+
*/
|
|
55546
|
+
403: ErrorResponse;
|
|
55547
|
+
/**
|
|
55548
|
+
* Not Found (missing_resource)
|
|
55549
|
+
*/
|
|
55550
|
+
404: ErrorResponse;
|
|
55551
|
+
/**
|
|
55552
|
+
* Conflict (invalid_state)
|
|
55553
|
+
*/
|
|
55554
|
+
409: ErrorResponse;
|
|
55555
|
+
/**
|
|
55556
|
+
* Gone
|
|
55557
|
+
*/
|
|
55558
|
+
410: ErrorResponse;
|
|
55559
|
+
/**
|
|
55560
|
+
* Unprocessable Entity (default, validation_failed)
|
|
55561
|
+
*/
|
|
55562
|
+
422: ErrorResponse;
|
|
55563
|
+
/**
|
|
55564
|
+
* Precondition Required
|
|
55565
|
+
*/
|
|
55566
|
+
428: ErrorResponse;
|
|
55567
|
+
/**
|
|
55568
|
+
* Internal Server Error
|
|
55569
|
+
*/
|
|
55570
|
+
500: ErrorResponse;
|
|
55571
|
+
/**
|
|
55572
|
+
* Bad Gateway (malformed_resource)
|
|
55573
|
+
*/
|
|
55574
|
+
502: ErrorResponse;
|
|
55575
|
+
/**
|
|
55576
|
+
* Gateway Timeout (service_unreachable)
|
|
55577
|
+
*/
|
|
55578
|
+
504: ErrorResponse;
|
|
55579
|
+
};
|
|
55580
|
+
export type GetApi20270101ResourcesTimeoffLeaveChangeRequestsError = GetApi20270101ResourcesTimeoffLeaveChangeRequestsErrors[keyof GetApi20270101ResourcesTimeoffLeaveChangeRequestsErrors];
|
|
55581
|
+
export type GetApi20270101ResourcesTimeoffLeaveChangeRequestsResponses = {
|
|
55582
|
+
/**
|
|
55583
|
+
* OK
|
|
55584
|
+
*/
|
|
55585
|
+
200: {
|
|
55586
|
+
data?: Array<TimeoffLeaveChangeRequest>;
|
|
55587
|
+
meta?: PagedIndexMeta;
|
|
55588
|
+
};
|
|
55589
|
+
};
|
|
55590
|
+
export type GetApi20270101ResourcesTimeoffLeaveChangeRequestsResponse = GetApi20270101ResourcesTimeoffLeaveChangeRequestsResponses[keyof GetApi20270101ResourcesTimeoffLeaveChangeRequestsResponses];
|
|
55591
|
+
export type PostApi20270101ResourcesTimeoffLeaveChangeRequestsData = {
|
|
55592
|
+
body?: {
|
|
55593
|
+
/**
|
|
55594
|
+
* Id of the approved leave to change.
|
|
55595
|
+
*/
|
|
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;
|
|
55633
|
+
};
|
|
55634
|
+
path?: never;
|
|
55635
|
+
query?: never;
|
|
55636
|
+
url: '/api/2027-01-01/resources/timeoff/leave_change_requests';
|
|
55637
|
+
};
|
|
55638
|
+
export type PostApi20270101ResourcesTimeoffLeaveChangeRequestsErrors = {
|
|
55639
|
+
/**
|
|
55640
|
+
* Bad Request (malformed_request)
|
|
55641
|
+
*/
|
|
55642
|
+
400: ErrorResponse;
|
|
55643
|
+
/**
|
|
55644
|
+
* Unauthorized (unauthorized)
|
|
55645
|
+
*/
|
|
55646
|
+
401: ErrorResponse;
|
|
55647
|
+
/**
|
|
55648
|
+
* Payment Required (payment_required)
|
|
55649
|
+
*/
|
|
55650
|
+
402: ErrorResponse;
|
|
55651
|
+
/**
|
|
55652
|
+
* Forbidden (forbidden)
|
|
55653
|
+
*/
|
|
55654
|
+
403: ErrorResponse;
|
|
55655
|
+
/**
|
|
55656
|
+
* Not Found (missing_resource)
|
|
55657
|
+
*/
|
|
55658
|
+
404: ErrorResponse;
|
|
55659
|
+
/**
|
|
55660
|
+
* Conflict (invalid_state)
|
|
55661
|
+
*/
|
|
55662
|
+
409: ErrorResponse;
|
|
55663
|
+
/**
|
|
55664
|
+
* Gone
|
|
55665
|
+
*/
|
|
55666
|
+
410: ErrorResponse;
|
|
55667
|
+
/**
|
|
55668
|
+
* Unprocessable Entity (default, validation_failed)
|
|
55669
|
+
*/
|
|
55670
|
+
422: ErrorResponse;
|
|
55671
|
+
/**
|
|
55672
|
+
* Precondition Required
|
|
55673
|
+
*/
|
|
55674
|
+
428: ErrorResponse;
|
|
55675
|
+
/**
|
|
55676
|
+
* Internal Server Error
|
|
55677
|
+
*/
|
|
55678
|
+
500: ErrorResponse;
|
|
55679
|
+
/**
|
|
55680
|
+
* Bad Gateway (malformed_resource)
|
|
55681
|
+
*/
|
|
55682
|
+
502: ErrorResponse;
|
|
55683
|
+
/**
|
|
55684
|
+
* Gateway Timeout (service_unreachable)
|
|
55685
|
+
*/
|
|
55686
|
+
504: ErrorResponse;
|
|
55687
|
+
};
|
|
55688
|
+
export type PostApi20270101ResourcesTimeoffLeaveChangeRequestsError = PostApi20270101ResourcesTimeoffLeaveChangeRequestsErrors[keyof PostApi20270101ResourcesTimeoffLeaveChangeRequestsErrors];
|
|
55689
|
+
export type PostApi20270101ResourcesTimeoffLeaveChangeRequestsResponses = {
|
|
55690
|
+
/**
|
|
55691
|
+
* CREATED
|
|
55692
|
+
*/
|
|
55693
|
+
201: TimeoffLeaveChangeRequest;
|
|
55694
|
+
};
|
|
55695
|
+
export type PostApi20270101ResourcesTimeoffLeaveChangeRequestsResponse = PostApi20270101ResourcesTimeoffLeaveChangeRequestsResponses[keyof PostApi20270101ResourcesTimeoffLeaveChangeRequestsResponses];
|
|
55696
|
+
export type DeleteApi20270101ResourcesTimeoffLeaveChangeRequestsByIdData = {
|
|
55697
|
+
body?: never;
|
|
55698
|
+
path: {
|
|
55699
|
+
/**
|
|
55700
|
+
* Id of the change request to withdraw.
|
|
55701
|
+
*/
|
|
55702
|
+
id: string;
|
|
55703
|
+
};
|
|
55704
|
+
query?: never;
|
|
55705
|
+
url: '/api/2027-01-01/resources/timeoff/leave_change_requests/{id}';
|
|
55706
|
+
};
|
|
55707
|
+
export type DeleteApi20270101ResourcesTimeoffLeaveChangeRequestsByIdErrors = {
|
|
55708
|
+
/**
|
|
55709
|
+
* Bad Request (malformed_request)
|
|
55710
|
+
*/
|
|
55711
|
+
400: ErrorResponse;
|
|
55712
|
+
/**
|
|
55713
|
+
* Unauthorized (unauthorized)
|
|
55714
|
+
*/
|
|
55715
|
+
401: ErrorResponse;
|
|
55716
|
+
/**
|
|
55717
|
+
* Payment Required (payment_required)
|
|
55718
|
+
*/
|
|
55719
|
+
402: ErrorResponse;
|
|
55720
|
+
/**
|
|
55721
|
+
* Forbidden (forbidden)
|
|
55722
|
+
*/
|
|
55723
|
+
403: ErrorResponse;
|
|
55724
|
+
/**
|
|
55725
|
+
* Not Found (missing_resource)
|
|
55726
|
+
*/
|
|
55727
|
+
404: ErrorResponse;
|
|
55728
|
+
/**
|
|
55729
|
+
* Conflict (invalid_state)
|
|
55730
|
+
*/
|
|
55731
|
+
409: ErrorResponse;
|
|
55732
|
+
/**
|
|
55733
|
+
* Gone
|
|
55734
|
+
*/
|
|
55735
|
+
410: ErrorResponse;
|
|
55736
|
+
/**
|
|
55737
|
+
* Unprocessable Entity (default, validation_failed)
|
|
55738
|
+
*/
|
|
55739
|
+
422: ErrorResponse;
|
|
55740
|
+
/**
|
|
55741
|
+
* Precondition Required
|
|
55742
|
+
*/
|
|
55743
|
+
428: ErrorResponse;
|
|
55744
|
+
/**
|
|
55745
|
+
* Internal Server Error
|
|
55746
|
+
*/
|
|
55747
|
+
500: ErrorResponse;
|
|
55748
|
+
/**
|
|
55749
|
+
* Bad Gateway (malformed_resource)
|
|
55750
|
+
*/
|
|
55751
|
+
502: ErrorResponse;
|
|
55752
|
+
/**
|
|
55753
|
+
* Gateway Timeout (service_unreachable)
|
|
55754
|
+
*/
|
|
55755
|
+
504: ErrorResponse;
|
|
55756
|
+
};
|
|
55757
|
+
export type DeleteApi20270101ResourcesTimeoffLeaveChangeRequestsByIdError = DeleteApi20270101ResourcesTimeoffLeaveChangeRequestsByIdErrors[keyof DeleteApi20270101ResourcesTimeoffLeaveChangeRequestsByIdErrors];
|
|
55758
|
+
export type DeleteApi20270101ResourcesTimeoffLeaveChangeRequestsByIdResponses = {
|
|
55759
|
+
/**
|
|
55760
|
+
* OK
|
|
55761
|
+
*/
|
|
55762
|
+
200: TimeoffLeaveChangeRequest;
|
|
55763
|
+
};
|
|
55764
|
+
export type DeleteApi20270101ResourcesTimeoffLeaveChangeRequestsByIdResponse = DeleteApi20270101ResourcesTimeoffLeaveChangeRequestsByIdResponses[keyof DeleteApi20270101ResourcesTimeoffLeaveChangeRequestsByIdResponses];
|
|
55765
|
+
export type GetApi20270101ResourcesTimeoffLeaveChangeRequestsByIdData = {
|
|
55766
|
+
body?: never;
|
|
55767
|
+
path: {
|
|
55768
|
+
/**
|
|
55769
|
+
* Return only the change requests with these ids.
|
|
55770
|
+
*/
|
|
55771
|
+
id: string;
|
|
55772
|
+
};
|
|
55773
|
+
query?: never;
|
|
55774
|
+
url: '/api/2027-01-01/resources/timeoff/leave_change_requests/{id}';
|
|
55775
|
+
};
|
|
55776
|
+
export type GetApi20270101ResourcesTimeoffLeaveChangeRequestsByIdErrors = {
|
|
55777
|
+
/**
|
|
55778
|
+
* Bad Request (malformed_request)
|
|
55779
|
+
*/
|
|
55780
|
+
400: ErrorResponse;
|
|
55781
|
+
/**
|
|
55782
|
+
* Unauthorized (unauthorized)
|
|
55783
|
+
*/
|
|
55784
|
+
401: ErrorResponse;
|
|
55785
|
+
/**
|
|
55786
|
+
* Payment Required (payment_required)
|
|
55787
|
+
*/
|
|
55788
|
+
402: ErrorResponse;
|
|
55789
|
+
/**
|
|
55790
|
+
* Forbidden (forbidden)
|
|
55791
|
+
*/
|
|
55792
|
+
403: ErrorResponse;
|
|
55793
|
+
/**
|
|
55794
|
+
* Not Found (missing_resource)
|
|
55795
|
+
*/
|
|
55796
|
+
404: ErrorResponse;
|
|
55797
|
+
/**
|
|
55798
|
+
* Conflict (invalid_state)
|
|
55799
|
+
*/
|
|
55800
|
+
409: ErrorResponse;
|
|
55801
|
+
/**
|
|
55802
|
+
* Gone
|
|
55803
|
+
*/
|
|
55804
|
+
410: ErrorResponse;
|
|
55805
|
+
/**
|
|
55806
|
+
* Unprocessable Entity (default, validation_failed)
|
|
55807
|
+
*/
|
|
55808
|
+
422: ErrorResponse;
|
|
55809
|
+
/**
|
|
55810
|
+
* Precondition Required
|
|
55811
|
+
*/
|
|
55812
|
+
428: ErrorResponse;
|
|
55813
|
+
/**
|
|
55814
|
+
* Internal Server Error
|
|
55815
|
+
*/
|
|
55816
|
+
500: ErrorResponse;
|
|
55817
|
+
/**
|
|
55818
|
+
* Bad Gateway (malformed_resource)
|
|
55819
|
+
*/
|
|
55820
|
+
502: ErrorResponse;
|
|
55821
|
+
/**
|
|
55822
|
+
* Gateway Timeout (service_unreachable)
|
|
55823
|
+
*/
|
|
55824
|
+
504: ErrorResponse;
|
|
55825
|
+
};
|
|
55826
|
+
export type GetApi20270101ResourcesTimeoffLeaveChangeRequestsByIdError = GetApi20270101ResourcesTimeoffLeaveChangeRequestsByIdErrors[keyof GetApi20270101ResourcesTimeoffLeaveChangeRequestsByIdErrors];
|
|
55827
|
+
export type GetApi20270101ResourcesTimeoffLeaveChangeRequestsByIdResponses = {
|
|
55828
|
+
/**
|
|
55829
|
+
* OK
|
|
55830
|
+
*/
|
|
55831
|
+
200: TimeoffLeaveChangeRequest;
|
|
55832
|
+
};
|
|
55833
|
+
export type GetApi20270101ResourcesTimeoffLeaveChangeRequestsByIdResponse = GetApi20270101ResourcesTimeoffLeaveChangeRequestsByIdResponses[keyof GetApi20270101ResourcesTimeoffLeaveChangeRequestsByIdResponses];
|
|
55393
55834
|
export type GetApi20270101ResourcesTimeoffLeaveTypesData = {
|
|
55394
55835
|
body?: never;
|
|
55395
55836
|
path?: never;
|