/** * Generated by orval v8.5.3 🍺 * Do not edit manually. * Space Invoices API * REST API for invoice management, customer management, and accounting operations. Features include cursor-based pagination for efficient data navigation, flexible JSON querying with MongoDB-style operators, full-text search across multiple fields, and comprehensive metadata support for custom tracking. * OpenAPI spec version: 1.0.0 */ import * as zod from "zod"; /** * Preview the next auto-generated document number for the specified type without incrementing the sequence. Useful for showing users what number will be assigned before creating a document. * @summary Preview next document number */ export declare const GetNextDocumentNumberQueryParams: zod.ZodObject<{ type: zod.ZodEnum<{ estimate: "estimate"; invoice: "invoice"; credit_note: "credit_note"; advance_invoice: "advance_invoice"; delivery_note: "delivery_note"; }>; business_premise_name: zod.ZodOptional; electronic_device_name: zod.ZodOptional; }, zod.z.core.$strip>; export declare const GetNextDocumentNumberHeader: zod.ZodObject<{ "x-entity-id": zod.ZodOptional; }, zod.z.core.$strip>; export declare const GetNextDocumentNumberResponse: zod.ZodObject<{ number: zod.ZodNullable; furs: zod.ZodOptional>>; fina: zod.ZodOptional>>; pt: zod.ZodOptional; }, zod.z.core.$strip>>>; }, zod.z.core.$strip>; /** * Calculate document totals, taxes, and transaction type without creating the document. Useful for showing live totals in forms or validating data before submission. * @summary Preview document calculation */ export declare const CalculateDocumentPreviewQueryParams: zod.ZodObject<{ type: zod.ZodEnum<{ estimate: "estimate"; invoice: "invoice"; credit_note: "credit_note"; advance_invoice: "advance_invoice"; delivery_note: "delivery_note"; }>; }, zod.z.core.$strip>; export declare const CalculateDocumentPreviewHeader: zod.ZodObject<{ "x-entity-id": zod.ZodOptional; }, zod.z.core.$strip>; export declare const calculateDocumentPreviewBodyItemsItemDescriptionMax = 2000; export declare const calculateDocumentPreviewBodyItemsItemQuantityMin = -140737488355328; export declare const calculateDocumentPreviewBodyItemsItemQuantityMax = 140737488355327; export declare const calculateDocumentPreviewBodyItemsItemUnitMax = 50; export declare const calculateDocumentPreviewBodyItemsItemDiscountsItemValueMin = 0; export declare const calculateDocumentPreviewBodyItemsItemDiscountsItemTypeDefault = "percent"; export declare const calculateDocumentPreviewBodyItemsItemDiscountsMax = 5; export declare const calculateDocumentPreviewBodyCustomerOneCountryCodeMin = 2; export declare const calculateDocumentPreviewBodyCustomerOneCountryCodeMax = 2; export declare const calculateDocumentPreviewBodyCustomerOneBankAccountTypeDefault = "iban"; export declare const calculateDocumentPreviewBodyExpectedTotalWithTaxExclusiveMin = 0; export declare const CalculateDocumentPreviewBody: zod.ZodObject<{ items: zod.ZodArray, zod.ZodLiteral]>>>; name: zod.ZodOptional>; description: zod.ZodOptional>; classification: zod.ZodOptional, zod.ZodLiteral<"service">, zod.ZodLiteral<"advance">, zod.ZodLiteral]>>>; price: zod.ZodOptional>; gross_price: zod.ZodOptional>; quantity: zod.ZodOptional>; unit: zod.ZodOptional>; taxes: zod.ZodOptional>; tax_id: zod.ZodOptional>; classification: zod.ZodOptional>; reverse_charge: zod.ZodOptional>; amount: zod.ZodOptional>; pt_exemption_code: zod.ZodOptional>; pt_exemption_reason: zod.ZodOptional>; }, zod.z.core.$strip>>>; discounts: zod.ZodOptional>; }, zod.z.core.$strip>>>; item_id: zod.ZodOptional>; metadata: zod.ZodOptional>>; save_item: zod.ZodOptional>; }, zod.z.core.$strip>>; customer: zod.ZodOptional>; email: zod.ZodOptional>; address: zod.ZodOptional>; address_2: zod.ZodOptional>; post_code: zod.ZodOptional>; city: zod.ZodOptional>; state: zod.ZodOptional>; country: zod.ZodOptional>; country_code: zod.ZodOptional>; tax_number: zod.ZodOptional>; tax_number_2: zod.ZodOptional>; company_number: zod.ZodOptional>; phone: zod.ZodOptional>; peppol_id: zod.ZodOptional>; is_end_consumer: zod.ZodOptional>; bank_account: zod.ZodOptional>; name: zod.ZodOptional>; bank_name: zod.ZodOptional>; iban: zod.ZodOptional>; account_number: zod.ZodOptional>; bic: zod.ZodOptional>; routing_number: zod.ZodOptional>; sort_code: zod.ZodOptional>; }, zod.z.core.$strip>>>; }, zod.z.core.$strip>, zod.ZodNullable>; }, zod.z.core.$strip>>>>; customer_id: zod.ZodOptional>; currency_code: zod.ZodOptional>; date: zod.ZodOptional>; calculation_mode: zod.ZodOptional, zod.ZodLiteral<"b2c_gross_discount">, zod.ZodLiteral]>>>; expected_total_with_tax: zod.ZodOptional>; }, zod.z.core.$strip>; export declare const calculateDocumentPreviewResponseItemsItemDiscountsItemValueMin = 0; export declare const calculateDocumentPreviewResponseItemsItemDiscountsItemTypeDefault = "percent"; export declare const CalculateDocumentPreviewResponse: zod.ZodObject<{ items: zod.ZodArray; description: zod.ZodNullable; type: zod.ZodNullable, zod.ZodLiteral]>>; price: zod.ZodNullable; gross_price: zod.ZodNullable; quantity: zod.ZodNullable; unit: zod.ZodNullable; taxes: zod.ZodArray>; tax_id: zod.ZodOptional>; classification: zod.ZodOptional>; reverse_charge: zod.ZodOptional>; amount: zod.ZodOptional>; pt_exemption_code: zod.ZodOptional>; pt_exemption_reason: zod.ZodOptional>; }, zod.z.core.$strip>>; discounts: zod.ZodArray>; }, zod.z.core.$strip>>; total: zod.ZodNullable; total_with_tax: zod.ZodNullable; total_converted: zod.ZodNullable; total_with_tax_converted: zod.ZodNullable; }, zod.z.core.$strip>>; total: zod.ZodNumber; total_with_tax: zod.ZodNumber; total_discount: zod.ZodNumber; calculation_mode: zod.ZodEnum<{ b2b_standard: "b2b_standard"; b2c_gross_discount: "b2c_gross_discount"; }>; taxes: zod.ZodArray; tax_id: zod.ZodOptional>; base: zod.ZodNumber; amount: zod.ZodNumber; reverse_charge: zod.ZodOptional>; }, zod.z.core.$strip>>; transaction_type: zod.ZodNullable, zod.ZodLiteral<"intra_eu_b2b">, zod.ZodLiteral<"intra_eu_b2c">, zod.ZodLiteral<"3w_b2b">, zod.ZodLiteral<"3w_b2c">, zod.ZodLiteral<"export">, zod.ZodLiteral]>>; currency_code: zod.ZodString; exchange_rate: zod.ZodIntersection>, zod.ZodUnknown>; total_converted: zod.ZodNullable; total_with_tax_converted: zod.ZodNullable; rounding_correction: zod.ZodNullable; vies: zod.ZodNullable; skipped: zod.ZodNullable; }, zod.z.core.$strip>>; }, zod.z.core.$strip>; /** * Finalize a draft document by assigning a document number and running fiscalization (if applicable). Only draft documents can be finalized. After finalization, the document cannot be deleted. * @summary Finalize a draft document */ export declare const FinalizeDocumentParams: zod.ZodObject<{ id: zod.ZodString; }, zod.z.core.$strip>; export declare const FinalizeDocumentQueryParams: zod.ZodObject<{ type: zod.ZodOptional>; }, zod.z.core.$strip>; export declare const FinalizeDocumentHeader: zod.ZodObject<{ "x-entity-id": zod.ZodOptional; }, zod.z.core.$strip>; export declare const finalizeDocumentBodyFinaBusinessPremiseNameMax = 20; export declare const finalizeDocumentBodyFinaBusinessPremiseNameRegExp: RegExp; export declare const finalizeDocumentBodyFinaElectronicDeviceNameMax = 20; export declare const finalizeDocumentBodyFinaElectronicDeviceNameRegExp: RegExp; export declare const finalizeDocumentBodyFinaOperatorOibMin = 11; export declare const finalizeDocumentBodyFinaOperatorOibMax = 11; export declare const FinalizeDocumentBody: zod.ZodObject<{ furs: zod.ZodOptional>; electronic_device_name: zod.ZodOptional>; operator_tax_number: zod.ZodOptional>; operator_label: zod.ZodOptional>; skip: zod.ZodOptional>; }, zod.z.core.$strip>>>; fina: zod.ZodOptional>; electronic_device_name: zod.ZodOptional>; operator_oib: zod.ZodOptional>; operator_label: zod.ZodOptional>; payment_type: zod.ZodOptional, zod.ZodLiteral<"card">, zod.ZodLiteral<"online">, zod.ZodLiteral<"bank_transfer">, zod.ZodLiteral<"paypal">, zod.ZodLiteral<"crypto">, zod.ZodLiteral<"coupon">, zod.ZodLiteral<"other">, zod.ZodLiteral]>>>; subsequent_submit: zod.ZodOptional>; }, zod.z.core.$strip>>>; }, zod.z.core.$strip>; export declare const FinalizeDocumentResponse: zod.ZodUnknown; /** * Manually retry fiscalization for a document that has a failed fiscalization status. Only documents with failed FURS or FINA fiscalization can be retried. * @summary Retry document fiscalization */ export declare const FiscalizeDocumentParams: zod.ZodObject<{ id: zod.ZodString; }, zod.z.core.$strip>; export declare const FiscalizeDocumentQueryParams: zod.ZodObject<{ type: zod.ZodOptional>; }, zod.z.core.$strip>; export declare const FiscalizeDocumentHeader: zod.ZodObject<{ "x-entity-id": zod.ZodOptional; }, zod.z.core.$strip>; export declare const FiscalizeDocumentResponse: zod.ZodUnknown; /** * Delete a draft document. Only draft documents can be deleted. Finalized documents cannot be deleted - use void instead. * @summary Delete a draft document */ export declare const DeleteDocumentParams: zod.ZodObject<{ id: zod.ZodString; }, zod.z.core.$strip>; export declare const DeleteDocumentQueryParams: zod.ZodObject<{ type: zod.ZodOptional>; }, zod.z.core.$strip>; export declare const DeleteDocumentHeader: zod.ZodObject<{ "x-entity-id": zod.ZodOptional; }, zod.z.core.$strip>; /** * Restore a soft-deleted document from the trash. The document will be returned to its original state. * @summary Restore a deleted document */ export declare const RestoreDocumentParams: zod.ZodObject<{ id: zod.ZodString; }, zod.z.core.$strip>; export declare const RestoreDocumentQueryParams: zod.ZodObject<{ type: zod.ZodOptional>; }, zod.z.core.$strip>; export declare const RestoreDocumentHeader: zod.ZodObject<{ "x-entity-id": zod.ZodOptional; }, zod.z.core.$strip>; export declare const RestoreDocumentResponse: zod.ZodUnknown; /** * Permanently delete a soft-deleted document. Only documents in the trash can be permanently deleted. Only draft documents and estimates can be permanently deleted. * @summary Permanently delete a document */ export declare const PermanentDeleteDocumentParams: zod.ZodObject<{ id: zod.ZodString; }, zod.z.core.$strip>; export declare const PermanentDeleteDocumentQueryParams: zod.ZodObject<{ type: zod.ZodOptional>; }, zod.z.core.$strip>; export declare const PermanentDeleteDocumentHeader: zod.ZodObject<{ "x-entity-id": zod.ZodOptional; }, zod.z.core.$strip>; /** * Send a document via email. Automatically generates a public shareable link and optionally attaches the PDF. Supports markdown formatting and template variables in the email body. * @summary Send document via email */ export declare const SendDocumentParams: zod.ZodObject<{ id: zod.ZodString; }, zod.z.core.$strip>; export declare const SendDocumentHeader: zod.ZodObject<{ "x-entity-id": zod.ZodOptional; }, zod.z.core.$strip>; export declare const sendDocumentBodySubjectMax = 255; export declare const sendDocumentBodyAttachPdfDefault = false; export declare const sendDocumentBodyAttachEslogDefault = false; export declare const sendDocumentBodySandboxSkipDeliveryDefault = false; export declare const SendDocumentBody: zod.ZodObject<{ to: zod.ZodEmail; subject: zod.ZodOptional; body_text: zod.ZodOptional; attach_pdf: zod.ZodDefault; attach_eslog: zod.ZodDefault; sandbox_skip_delivery: zod.ZodDefault; }, zod.z.core.$strip>; export declare const SendDocumentResponse: zod.ZodObject<{ message_id: zod.ZodString; status: zod.ZodEnum<{ skipped: "skipped"; sent: "sent"; queued: "queued"; }>; to: zod.ZodEmail; subject: zod.ZodString; shareable_link: zod.ZodOptional; sandbox_skip_delivery: zod.ZodOptional; }, zod.z.core.$strip>; /** * Generate a shareable token for a document. Document type is automatically detected from the ID prefix (inv_, est_, cre_, adv_). If the document is already shared, returns the existing token. Can be used to re-share a document that was previously unshared. * @summary Make document shareable */ export declare const shareDocumentPathIdRegExp: RegExp; export declare const ShareDocumentParams: zod.ZodObject<{ id: zod.ZodCustomStringFormat<"resource-id">; }, zod.z.core.$strip>; export declare const ShareDocumentHeader: zod.ZodObject<{ "x-entity-id": zod.ZodOptional; }, zod.z.core.$strip>; export declare const ShareDocumentResponse: zod.ZodObject<{ shareable_id: zod.ZodString; }, zod.z.core.$strip>; /** * Retrieve the shareable token for a document if one exists. Document type is automatically detected from the ID prefix (inv_, est_, cre_, adv_). * @summary Get shareable token */ export declare const getShareableIdPathIdRegExp: RegExp; export declare const GetShareableIdParams: zod.ZodObject<{ id: zod.ZodCustomStringFormat<"resource-id">; }, zod.z.core.$strip>; export declare const GetShareableIdHeader: zod.ZodObject<{ "x-entity-id": zod.ZodOptional; }, zod.z.core.$strip>; export declare const GetShareableIdResponse: zod.ZodObject<{ shareable_id: zod.ZodString; }, zod.z.core.$strip>; /** * Remove the shareable token from a document. The document will no longer be accessible via public link. Document type is automatically detected from the ID prefix (inv_, est_, cre_, adv_). * @summary Unshare document */ export declare const unshareDocumentPathIdRegExp: RegExp; export declare const UnshareDocumentParams: zod.ZodObject<{ id: zod.ZodCustomStringFormat<"resource-id">; }, zod.z.core.$strip>; export declare const UnshareDocumentHeader: zod.ZodObject<{ "x-entity-id": zod.ZodOptional; }, zod.z.core.$strip>; //# sourceMappingURL=documents.d.ts.map