@factorialco/api-client 4.0.0-beta.2027010113 → 4.0.0-beta.2027010115
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 +12 -10
- package/dist/cjs/generated/index.js.map +1 -1
- package/dist/cjs/generated/sdk.gen.d.ts +13 -1
- package/dist/cjs/generated/sdk.gen.d.ts.map +1 -1
- package/dist/cjs/generated/sdk.gen.js +30 -8
- package/dist/cjs/generated/sdk.gen.js.map +1 -1
- package/dist/cjs/generated/types.gen.d.ts +189 -0
- package/dist/cjs/generated/types.gen.d.ts.map +1 -1
- package/dist/cjs/sdk.d.ts +27 -1
- package/dist/cjs/sdk.d.ts.map +1 -1
- package/dist/cjs/sdk.js +36 -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 +13 -1
- package/dist/esm/generated/sdk.gen.d.ts.map +1 -1
- package/dist/esm/generated/sdk.gen.js +20 -0
- package/dist/esm/generated/sdk.gen.js.map +1 -1
- package/dist/esm/generated/types.gen.d.ts +189 -0
- package/dist/esm/generated/types.gen.d.ts.map +1 -1
- package/dist/esm/sdk.d.ts +27 -1
- package/dist/esm/sdk.d.ts.map +1 -1
- package/dist/esm/sdk.js +32 -1
- package/dist/esm/sdk.js.map +1 -1
- package/package.json +1 -1
|
@@ -4888,6 +4888,48 @@ export type FinanceFinancialDocument = {
|
|
|
4888
4888
|
*/
|
|
4889
4889
|
recipient_tax_id?: string;
|
|
4890
4890
|
};
|
|
4891
|
+
export type FinanceFinancialDocumentLineItem = {
|
|
4892
|
+
/**
|
|
4893
|
+
* Line item identifier.
|
|
4894
|
+
*/
|
|
4895
|
+
id: string;
|
|
4896
|
+
/**
|
|
4897
|
+
* The financial document this line belongs to.
|
|
4898
|
+
*/
|
|
4899
|
+
financial_document_id: string;
|
|
4900
|
+
/**
|
|
4901
|
+
* What the line charges for.
|
|
4902
|
+
*/
|
|
4903
|
+
description: string;
|
|
4904
|
+
/**
|
|
4905
|
+
* Number of units.
|
|
4906
|
+
*/
|
|
4907
|
+
quantity: number;
|
|
4908
|
+
/**
|
|
4909
|
+
* Price per unit in cents, before discount and taxes.
|
|
4910
|
+
*/
|
|
4911
|
+
unit_price_cents?: number;
|
|
4912
|
+
/**
|
|
4913
|
+
* Discount applied to the line, as a fraction (0.1 is 10%).
|
|
4914
|
+
*/
|
|
4915
|
+
discount_percentage: number;
|
|
4916
|
+
/**
|
|
4917
|
+
* Line amount after discount, before taxes, in cents.
|
|
4918
|
+
*/
|
|
4919
|
+
subtotal_price_cents: number;
|
|
4920
|
+
/**
|
|
4921
|
+
* Line amount after discount and taxes, in cents.
|
|
4922
|
+
*/
|
|
4923
|
+
total_price_cents: number;
|
|
4924
|
+
/**
|
|
4925
|
+
* The tax rate applied to the line, when the company has it configured.
|
|
4926
|
+
*/
|
|
4927
|
+
tax_rate_id?: string;
|
|
4928
|
+
/**
|
|
4929
|
+
* The tax rate applied to the line, as a fraction (0.21 is 21%).
|
|
4930
|
+
*/
|
|
4931
|
+
tax_rate_percentage?: number;
|
|
4932
|
+
};
|
|
4891
4933
|
export type FinanceJournalEntry = {
|
|
4892
4934
|
/**
|
|
4893
4935
|
* Journal entry ID
|
|
@@ -21592,6 +21634,8 @@ export type PostApi20270101ResourcesContractsLegalEntityChangesData = {
|
|
|
21592
21634
|
* the maximum amount of hours the employee can work in a week.
|
|
21593
21635
|
*/
|
|
21594
21636
|
maximum_weekly_hours?: number;
|
|
21637
|
+
max_work_minutes_per_day?: number;
|
|
21638
|
+
min_rest_minutes_between_days?: number;
|
|
21595
21639
|
/**
|
|
21596
21640
|
* Defines whether a bank holiday should be considered as a workable or non-workable day.
|
|
21597
21641
|
*/
|
|
@@ -30772,6 +30816,151 @@ export type PutApi20270101ResourcesFinanceFinancialDocumentsByIdResponses = {
|
|
|
30772
30816
|
200: FinanceFinancialDocument;
|
|
30773
30817
|
};
|
|
30774
30818
|
export type PutApi20270101ResourcesFinanceFinancialDocumentsByIdResponse = PutApi20270101ResourcesFinanceFinancialDocumentsByIdResponses[keyof PutApi20270101ResourcesFinanceFinancialDocumentsByIdResponses];
|
|
30819
|
+
export type GetApi20270101ResourcesFinanceFinancialDocumentLineItemsData = {
|
|
30820
|
+
body?: never;
|
|
30821
|
+
path?: never;
|
|
30822
|
+
query?: {
|
|
30823
|
+
/**
|
|
30824
|
+
* Filter by line item IDs.
|
|
30825
|
+
*/
|
|
30826
|
+
'ids[]'?: Array<string>;
|
|
30827
|
+
/**
|
|
30828
|
+
* Filter by the financial documents the line items belong to.
|
|
30829
|
+
*/
|
|
30830
|
+
'financial_document_ids[]'?: Array<string>;
|
|
30831
|
+
};
|
|
30832
|
+
url: '/api/2027-01-01/resources/finance/financial_document_line_items';
|
|
30833
|
+
};
|
|
30834
|
+
export type GetApi20270101ResourcesFinanceFinancialDocumentLineItemsErrors = {
|
|
30835
|
+
/**
|
|
30836
|
+
* Bad Request (malformed_request)
|
|
30837
|
+
*/
|
|
30838
|
+
400: ErrorResponse;
|
|
30839
|
+
/**
|
|
30840
|
+
* Unauthorized (unauthorized)
|
|
30841
|
+
*/
|
|
30842
|
+
401: ErrorResponse;
|
|
30843
|
+
/**
|
|
30844
|
+
* Payment Required (payment_required)
|
|
30845
|
+
*/
|
|
30846
|
+
402: ErrorResponse;
|
|
30847
|
+
/**
|
|
30848
|
+
* Forbidden (forbidden)
|
|
30849
|
+
*/
|
|
30850
|
+
403: ErrorResponse;
|
|
30851
|
+
/**
|
|
30852
|
+
* Not Found (missing_resource)
|
|
30853
|
+
*/
|
|
30854
|
+
404: ErrorResponse;
|
|
30855
|
+
/**
|
|
30856
|
+
* Conflict (invalid_state)
|
|
30857
|
+
*/
|
|
30858
|
+
409: ErrorResponse;
|
|
30859
|
+
/**
|
|
30860
|
+
* Gone
|
|
30861
|
+
*/
|
|
30862
|
+
410: ErrorResponse;
|
|
30863
|
+
/**
|
|
30864
|
+
* Unprocessable Entity (default, validation_failed)
|
|
30865
|
+
*/
|
|
30866
|
+
422: ErrorResponse;
|
|
30867
|
+
/**
|
|
30868
|
+
* Precondition Required
|
|
30869
|
+
*/
|
|
30870
|
+
428: ErrorResponse;
|
|
30871
|
+
/**
|
|
30872
|
+
* Internal Server Error
|
|
30873
|
+
*/
|
|
30874
|
+
500: ErrorResponse;
|
|
30875
|
+
/**
|
|
30876
|
+
* Bad Gateway (malformed_resource)
|
|
30877
|
+
*/
|
|
30878
|
+
502: ErrorResponse;
|
|
30879
|
+
/**
|
|
30880
|
+
* Gateway Timeout (service_unreachable)
|
|
30881
|
+
*/
|
|
30882
|
+
504: ErrorResponse;
|
|
30883
|
+
};
|
|
30884
|
+
export type GetApi20270101ResourcesFinanceFinancialDocumentLineItemsError = GetApi20270101ResourcesFinanceFinancialDocumentLineItemsErrors[keyof GetApi20270101ResourcesFinanceFinancialDocumentLineItemsErrors];
|
|
30885
|
+
export type GetApi20270101ResourcesFinanceFinancialDocumentLineItemsResponses = {
|
|
30886
|
+
/**
|
|
30887
|
+
* OK
|
|
30888
|
+
*/
|
|
30889
|
+
200: {
|
|
30890
|
+
data?: Array<FinanceFinancialDocumentLineItem>;
|
|
30891
|
+
meta?: PagedIndexMeta;
|
|
30892
|
+
};
|
|
30893
|
+
};
|
|
30894
|
+
export type GetApi20270101ResourcesFinanceFinancialDocumentLineItemsResponse = GetApi20270101ResourcesFinanceFinancialDocumentLineItemsResponses[keyof GetApi20270101ResourcesFinanceFinancialDocumentLineItemsResponses];
|
|
30895
|
+
export type GetApi20270101ResourcesFinanceFinancialDocumentLineItemsByIdData = {
|
|
30896
|
+
body?: never;
|
|
30897
|
+
path: {
|
|
30898
|
+
/**
|
|
30899
|
+
* Filter by line item IDs.
|
|
30900
|
+
*/
|
|
30901
|
+
id: string;
|
|
30902
|
+
};
|
|
30903
|
+
query?: never;
|
|
30904
|
+
url: '/api/2027-01-01/resources/finance/financial_document_line_items/{id}';
|
|
30905
|
+
};
|
|
30906
|
+
export type GetApi20270101ResourcesFinanceFinancialDocumentLineItemsByIdErrors = {
|
|
30907
|
+
/**
|
|
30908
|
+
* Bad Request (malformed_request)
|
|
30909
|
+
*/
|
|
30910
|
+
400: ErrorResponse;
|
|
30911
|
+
/**
|
|
30912
|
+
* Unauthorized (unauthorized)
|
|
30913
|
+
*/
|
|
30914
|
+
401: ErrorResponse;
|
|
30915
|
+
/**
|
|
30916
|
+
* Payment Required (payment_required)
|
|
30917
|
+
*/
|
|
30918
|
+
402: ErrorResponse;
|
|
30919
|
+
/**
|
|
30920
|
+
* Forbidden (forbidden)
|
|
30921
|
+
*/
|
|
30922
|
+
403: ErrorResponse;
|
|
30923
|
+
/**
|
|
30924
|
+
* Not Found (missing_resource)
|
|
30925
|
+
*/
|
|
30926
|
+
404: ErrorResponse;
|
|
30927
|
+
/**
|
|
30928
|
+
* Conflict (invalid_state)
|
|
30929
|
+
*/
|
|
30930
|
+
409: ErrorResponse;
|
|
30931
|
+
/**
|
|
30932
|
+
* Gone
|
|
30933
|
+
*/
|
|
30934
|
+
410: ErrorResponse;
|
|
30935
|
+
/**
|
|
30936
|
+
* Unprocessable Entity (default, validation_failed)
|
|
30937
|
+
*/
|
|
30938
|
+
422: ErrorResponse;
|
|
30939
|
+
/**
|
|
30940
|
+
* Precondition Required
|
|
30941
|
+
*/
|
|
30942
|
+
428: ErrorResponse;
|
|
30943
|
+
/**
|
|
30944
|
+
* Internal Server Error
|
|
30945
|
+
*/
|
|
30946
|
+
500: ErrorResponse;
|
|
30947
|
+
/**
|
|
30948
|
+
* Bad Gateway (malformed_resource)
|
|
30949
|
+
*/
|
|
30950
|
+
502: ErrorResponse;
|
|
30951
|
+
/**
|
|
30952
|
+
* Gateway Timeout (service_unreachable)
|
|
30953
|
+
*/
|
|
30954
|
+
504: ErrorResponse;
|
|
30955
|
+
};
|
|
30956
|
+
export type GetApi20270101ResourcesFinanceFinancialDocumentLineItemsByIdError = GetApi20270101ResourcesFinanceFinancialDocumentLineItemsByIdErrors[keyof GetApi20270101ResourcesFinanceFinancialDocumentLineItemsByIdErrors];
|
|
30957
|
+
export type GetApi20270101ResourcesFinanceFinancialDocumentLineItemsByIdResponses = {
|
|
30958
|
+
/**
|
|
30959
|
+
* OK
|
|
30960
|
+
*/
|
|
30961
|
+
200: FinanceFinancialDocumentLineItem;
|
|
30962
|
+
};
|
|
30963
|
+
export type GetApi20270101ResourcesFinanceFinancialDocumentLineItemsByIdResponse = GetApi20270101ResourcesFinanceFinancialDocumentLineItemsByIdResponses[keyof GetApi20270101ResourcesFinanceFinancialDocumentLineItemsByIdResponses];
|
|
30775
30964
|
export type GetApi20270101ResourcesFinanceJournalEntriesData = {
|
|
30776
30965
|
body?: never;
|
|
30777
30966
|
path?: never;
|