UNPKG

@accounter/server

Version:

199 lines (198 loc) • 7.36 kB
import z from 'zod'; declare const invoiceSchema: z.ZodObject<{ id: z.ZodString; amount: z.ZodString; contract_id: z.ZodNullable<z.ZodString>; created_at: z.ZodString; currency: z.ZodString; deel_fee: z.ZodLiteral<"0.00">; due_date: z.ZodString; is_overdue: z.ZodBoolean; issued_at: z.ZodString; label: z.ZodString; paid_at: z.ZodString; status: z.ZodEnum<{ pending: "pending"; paid: "paid"; processing: "processing"; canceled: "canceled"; skipped: "skipped"; failed: "failed"; refunded: "refunded"; }>; total: z.ZodString; vat_id: z.ZodLiteral<"">; vat_percentage: z.ZodLiteral<"">; vat_total: z.ZodLiteral<"0.00">; }, z.core.$strict>; export type Invoice = z.infer<typeof invoiceSchema>; export declare const retrieveInvoicesSchema: z.ZodObject<{ data: z.ZodArray<z.ZodObject<{ id: z.ZodString; amount: z.ZodString; contract_id: z.ZodNullable<z.ZodString>; created_at: z.ZodString; currency: z.ZodString; deel_fee: z.ZodLiteral<"0.00">; due_date: z.ZodString; is_overdue: z.ZodBoolean; issued_at: z.ZodString; label: z.ZodString; paid_at: z.ZodString; status: z.ZodEnum<{ pending: "pending"; paid: "paid"; processing: "processing"; canceled: "canceled"; skipped: "skipped"; failed: "failed"; refunded: "refunded"; }>; total: z.ZodString; vat_id: z.ZodLiteral<"">; vat_percentage: z.ZodLiteral<"">; vat_total: z.ZodLiteral<"0.00">; }, z.core.$strict>>; page: z.ZodObject<{ total_rows: z.ZodNumber; items_per_page: z.ZodNumber; offset: z.ZodNumber; }, z.core.$strict>; }, z.core.$strict>; export type RetrieveInvoices = z.infer<typeof retrieveInvoicesSchema>; export declare const downloadInvoicePdfSchema: z.ZodObject<{ data: z.ZodObject<{ id: z.ZodOptional<z.ZodString>; url: z.ZodNullable<z.ZodString>; expires_at: z.ZodOptional<z.ZodString>; }, z.core.$strict>; }, z.core.$strict>; export type DownloadInvoicePdf = z.infer<typeof downloadInvoicePdfSchema>; export declare const workerSchema: z.ZodObject<{ id: z.ZodString; contract_id: z.ZodOptional<z.ZodNullable<z.ZodString>>; name: z.ZodOptional<z.ZodString>; picUrl: z.ZodNullable<z.ZodString>; public_id: z.ZodOptional<z.ZodString>; }, z.core.$strict>; export type DeelWorker = z.infer<typeof workerSchema>; export declare const paymentReceiptsSchema: z.ZodObject<{ id: z.ZodString; created_at: z.ZodString; label: z.ZodString; paid_at: z.ZodString; payment_currency: z.ZodString; payment_method: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>; total: z.ZodString; status: z.ZodEnum<{ paid: "paid"; }>; workers: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; contract_id: z.ZodOptional<z.ZodNullable<z.ZodString>>; name: z.ZodOptional<z.ZodString>; picUrl: z.ZodNullable<z.ZodString>; public_id: z.ZodOptional<z.ZodString>; }, z.core.$strict>>>; }, z.core.$strict>; export type PaymentReceipts = z.infer<typeof paymentReceiptsSchema>; export declare const retrievePaymentReceiptsSchema: z.ZodObject<{ data: z.ZodObject<{ rows: z.ZodArray<z.ZodObject<{ id: z.ZodString; created_at: z.ZodString; label: z.ZodString; paid_at: z.ZodString; payment_currency: z.ZodString; payment_method: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>; total: z.ZodString; status: z.ZodEnum<{ paid: "paid"; }>; workers: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; contract_id: z.ZodOptional<z.ZodNullable<z.ZodString>>; name: z.ZodOptional<z.ZodString>; picUrl: z.ZodNullable<z.ZodString>; public_id: z.ZodOptional<z.ZodString>; }, z.core.$strict>>>; }, z.core.$strict>>; total: z.ZodNumber; }, z.core.$strict>; }, z.core.$strict>; export type RetrievePaymentReceipts = z.infer<typeof retrievePaymentReceiptsSchema>; declare const paymentBreakdownRecordSchema: z.ZodObject<{ adjustment: z.ZodLiteral<"0.00">; approve_date: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>; approvers: z.ZodString; bonus: z.ZodLiteral<"0.00">; commissions: z.ZodLiteral<"0.00">; contract_country: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>; contract_start_date: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"">]>; contract_type: z.ZodString; contractor_email: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>; contractor_employee_name: z.ZodString; contractor_unique_identifier: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>; currency: z.ZodString; date: z.ZodString; deductions: z.ZodLiteral<"0.00">; expenses: z.ZodString; frequency: z.ZodEnum<{ "": ""; custom: "custom"; hourly: "hourly"; daily: "daily"; monthly: "monthly"; }>; general_ledger_account: z.ZodLiteral<"">; group_id: z.ZodString; others: z.ZodLiteral<"0.00">; overtime: z.ZodLiteral<"0.00">; payment_currency: z.ZodString; payment_date: z.ZodString; pro_rata: z.ZodString; processing_fee: z.ZodString; work: z.ZodString; total: z.ZodString; total_payment_currency: z.ZodString; }, z.core.$strict>; export type PaymentBreakdownRecord = z.infer<typeof paymentBreakdownRecordSchema>; export declare const retrievePaymentBreakdownSchema: z.ZodObject<{ data: z.ZodArray<z.ZodObject<{ adjustment: z.ZodLiteral<"0.00">; approve_date: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>; approvers: z.ZodString; bonus: z.ZodLiteral<"0.00">; commissions: z.ZodLiteral<"0.00">; contract_country: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>; contract_start_date: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"">]>; contract_type: z.ZodString; contractor_email: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>; contractor_employee_name: z.ZodString; contractor_unique_identifier: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>; currency: z.ZodString; date: z.ZodString; deductions: z.ZodLiteral<"0.00">; expenses: z.ZodString; frequency: z.ZodEnum<{ "": ""; custom: "custom"; hourly: "hourly"; daily: "daily"; monthly: "monthly"; }>; general_ledger_account: z.ZodLiteral<"">; group_id: z.ZodString; others: z.ZodLiteral<"0.00">; overtime: z.ZodLiteral<"0.00">; payment_currency: z.ZodString; payment_date: z.ZodString; pro_rata: z.ZodString; processing_fee: z.ZodString; work: z.ZodString; total: z.ZodString; total_payment_currency: z.ZodString; }, z.core.$strict>>; }, z.core.$strict>; export type RetrievePaymentBreakdown = z.infer<typeof retrievePaymentBreakdownSchema>; export {};