@factorialco/api-client 4.0.0-beta.2027010113 → 4.0.0-beta.2027010114
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 +187 -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 +187 -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
|
|
@@ -30772,6 +30814,151 @@ export type PutApi20270101ResourcesFinanceFinancialDocumentsByIdResponses = {
|
|
|
30772
30814
|
200: FinanceFinancialDocument;
|
|
30773
30815
|
};
|
|
30774
30816
|
export type PutApi20270101ResourcesFinanceFinancialDocumentsByIdResponse = PutApi20270101ResourcesFinanceFinancialDocumentsByIdResponses[keyof PutApi20270101ResourcesFinanceFinancialDocumentsByIdResponses];
|
|
30817
|
+
export type GetApi20270101ResourcesFinanceFinancialDocumentLineItemsData = {
|
|
30818
|
+
body?: never;
|
|
30819
|
+
path?: never;
|
|
30820
|
+
query?: {
|
|
30821
|
+
/**
|
|
30822
|
+
* Filter by line item IDs.
|
|
30823
|
+
*/
|
|
30824
|
+
'ids[]'?: Array<string>;
|
|
30825
|
+
/**
|
|
30826
|
+
* Filter by the financial documents the line items belong to.
|
|
30827
|
+
*/
|
|
30828
|
+
'financial_document_ids[]'?: Array<string>;
|
|
30829
|
+
};
|
|
30830
|
+
url: '/api/2027-01-01/resources/finance/financial_document_line_items';
|
|
30831
|
+
};
|
|
30832
|
+
export type GetApi20270101ResourcesFinanceFinancialDocumentLineItemsErrors = {
|
|
30833
|
+
/**
|
|
30834
|
+
* Bad Request (malformed_request)
|
|
30835
|
+
*/
|
|
30836
|
+
400: ErrorResponse;
|
|
30837
|
+
/**
|
|
30838
|
+
* Unauthorized (unauthorized)
|
|
30839
|
+
*/
|
|
30840
|
+
401: ErrorResponse;
|
|
30841
|
+
/**
|
|
30842
|
+
* Payment Required (payment_required)
|
|
30843
|
+
*/
|
|
30844
|
+
402: ErrorResponse;
|
|
30845
|
+
/**
|
|
30846
|
+
* Forbidden (forbidden)
|
|
30847
|
+
*/
|
|
30848
|
+
403: ErrorResponse;
|
|
30849
|
+
/**
|
|
30850
|
+
* Not Found (missing_resource)
|
|
30851
|
+
*/
|
|
30852
|
+
404: ErrorResponse;
|
|
30853
|
+
/**
|
|
30854
|
+
* Conflict (invalid_state)
|
|
30855
|
+
*/
|
|
30856
|
+
409: ErrorResponse;
|
|
30857
|
+
/**
|
|
30858
|
+
* Gone
|
|
30859
|
+
*/
|
|
30860
|
+
410: ErrorResponse;
|
|
30861
|
+
/**
|
|
30862
|
+
* Unprocessable Entity (default, validation_failed)
|
|
30863
|
+
*/
|
|
30864
|
+
422: ErrorResponse;
|
|
30865
|
+
/**
|
|
30866
|
+
* Precondition Required
|
|
30867
|
+
*/
|
|
30868
|
+
428: ErrorResponse;
|
|
30869
|
+
/**
|
|
30870
|
+
* Internal Server Error
|
|
30871
|
+
*/
|
|
30872
|
+
500: ErrorResponse;
|
|
30873
|
+
/**
|
|
30874
|
+
* Bad Gateway (malformed_resource)
|
|
30875
|
+
*/
|
|
30876
|
+
502: ErrorResponse;
|
|
30877
|
+
/**
|
|
30878
|
+
* Gateway Timeout (service_unreachable)
|
|
30879
|
+
*/
|
|
30880
|
+
504: ErrorResponse;
|
|
30881
|
+
};
|
|
30882
|
+
export type GetApi20270101ResourcesFinanceFinancialDocumentLineItemsError = GetApi20270101ResourcesFinanceFinancialDocumentLineItemsErrors[keyof GetApi20270101ResourcesFinanceFinancialDocumentLineItemsErrors];
|
|
30883
|
+
export type GetApi20270101ResourcesFinanceFinancialDocumentLineItemsResponses = {
|
|
30884
|
+
/**
|
|
30885
|
+
* OK
|
|
30886
|
+
*/
|
|
30887
|
+
200: {
|
|
30888
|
+
data?: Array<FinanceFinancialDocumentLineItem>;
|
|
30889
|
+
meta?: PagedIndexMeta;
|
|
30890
|
+
};
|
|
30891
|
+
};
|
|
30892
|
+
export type GetApi20270101ResourcesFinanceFinancialDocumentLineItemsResponse = GetApi20270101ResourcesFinanceFinancialDocumentLineItemsResponses[keyof GetApi20270101ResourcesFinanceFinancialDocumentLineItemsResponses];
|
|
30893
|
+
export type GetApi20270101ResourcesFinanceFinancialDocumentLineItemsByIdData = {
|
|
30894
|
+
body?: never;
|
|
30895
|
+
path: {
|
|
30896
|
+
/**
|
|
30897
|
+
* Filter by line item IDs.
|
|
30898
|
+
*/
|
|
30899
|
+
id: string;
|
|
30900
|
+
};
|
|
30901
|
+
query?: never;
|
|
30902
|
+
url: '/api/2027-01-01/resources/finance/financial_document_line_items/{id}';
|
|
30903
|
+
};
|
|
30904
|
+
export type GetApi20270101ResourcesFinanceFinancialDocumentLineItemsByIdErrors = {
|
|
30905
|
+
/**
|
|
30906
|
+
* Bad Request (malformed_request)
|
|
30907
|
+
*/
|
|
30908
|
+
400: ErrorResponse;
|
|
30909
|
+
/**
|
|
30910
|
+
* Unauthorized (unauthorized)
|
|
30911
|
+
*/
|
|
30912
|
+
401: ErrorResponse;
|
|
30913
|
+
/**
|
|
30914
|
+
* Payment Required (payment_required)
|
|
30915
|
+
*/
|
|
30916
|
+
402: ErrorResponse;
|
|
30917
|
+
/**
|
|
30918
|
+
* Forbidden (forbidden)
|
|
30919
|
+
*/
|
|
30920
|
+
403: ErrorResponse;
|
|
30921
|
+
/**
|
|
30922
|
+
* Not Found (missing_resource)
|
|
30923
|
+
*/
|
|
30924
|
+
404: ErrorResponse;
|
|
30925
|
+
/**
|
|
30926
|
+
* Conflict (invalid_state)
|
|
30927
|
+
*/
|
|
30928
|
+
409: ErrorResponse;
|
|
30929
|
+
/**
|
|
30930
|
+
* Gone
|
|
30931
|
+
*/
|
|
30932
|
+
410: ErrorResponse;
|
|
30933
|
+
/**
|
|
30934
|
+
* Unprocessable Entity (default, validation_failed)
|
|
30935
|
+
*/
|
|
30936
|
+
422: ErrorResponse;
|
|
30937
|
+
/**
|
|
30938
|
+
* Precondition Required
|
|
30939
|
+
*/
|
|
30940
|
+
428: ErrorResponse;
|
|
30941
|
+
/**
|
|
30942
|
+
* Internal Server Error
|
|
30943
|
+
*/
|
|
30944
|
+
500: ErrorResponse;
|
|
30945
|
+
/**
|
|
30946
|
+
* Bad Gateway (malformed_resource)
|
|
30947
|
+
*/
|
|
30948
|
+
502: ErrorResponse;
|
|
30949
|
+
/**
|
|
30950
|
+
* Gateway Timeout (service_unreachable)
|
|
30951
|
+
*/
|
|
30952
|
+
504: ErrorResponse;
|
|
30953
|
+
};
|
|
30954
|
+
export type GetApi20270101ResourcesFinanceFinancialDocumentLineItemsByIdError = GetApi20270101ResourcesFinanceFinancialDocumentLineItemsByIdErrors[keyof GetApi20270101ResourcesFinanceFinancialDocumentLineItemsByIdErrors];
|
|
30955
|
+
export type GetApi20270101ResourcesFinanceFinancialDocumentLineItemsByIdResponses = {
|
|
30956
|
+
/**
|
|
30957
|
+
* OK
|
|
30958
|
+
*/
|
|
30959
|
+
200: FinanceFinancialDocumentLineItem;
|
|
30960
|
+
};
|
|
30961
|
+
export type GetApi20270101ResourcesFinanceFinancialDocumentLineItemsByIdResponse = GetApi20270101ResourcesFinanceFinancialDocumentLineItemsByIdResponses[keyof GetApi20270101ResourcesFinanceFinancialDocumentLineItemsByIdResponses];
|
|
30775
30962
|
export type GetApi20270101ResourcesFinanceJournalEntriesData = {
|
|
30776
30963
|
body?: never;
|
|
30777
30964
|
path?: never;
|