@goodsamsoftware/freshbooks-mcp 1.0.9 → 1.0.11
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/tools/base-tool.d.ts +20 -54
- package/dist/tools/base-tool.d.ts.map +1 -1
- package/dist/tools/bill/bill-archive.d.ts +2 -14
- package/dist/tools/bill/bill-archive.d.ts.map +1 -1
- package/dist/tools/bill/bill-create.d.ts +16 -125
- package/dist/tools/bill/bill-create.d.ts.map +1 -1
- package/dist/tools/bill/bill-delete.d.ts +2 -18
- package/dist/tools/bill/bill-delete.d.ts.map +1 -1
- package/dist/tools/bill/bill-list.d.ts +22 -194
- package/dist/tools/bill/bill-list.d.ts.map +1 -1
- package/dist/tools/bill/bill-single.d.ts +14 -97
- package/dist/tools/bill/bill-single.d.ts.map +1 -1
- package/dist/tools/bill/schemas.d.ts +63 -460
- package/dist/tools/bill/schemas.d.ts.map +1 -1
- package/dist/tools/bill-payment/billpayment-create.d.ts +18 -62
- package/dist/tools/bill-payment/billpayment-create.d.ts.map +1 -1
- package/dist/tools/bill-payment/billpayment-delete.d.ts +2 -18
- package/dist/tools/bill-payment/billpayment-delete.d.ts.map +1 -1
- package/dist/tools/bill-payment/billpayment-list.d.ts +12 -103
- package/dist/tools/bill-payment/billpayment-list.d.ts.map +1 -1
- package/dist/tools/bill-payment/billpayment-single.d.ts +10 -41
- package/dist/tools/bill-payment/billpayment-single.d.ts.map +1 -1
- package/dist/tools/bill-payment/billpayment-update.d.ts +18 -62
- package/dist/tools/bill-payment/billpayment-update.d.ts.map +1 -1
- package/dist/tools/bill-payment/schemas.d.ts +60 -264
- package/dist/tools/bill-payment/schemas.d.ts.map +1 -1
- package/dist/tools/bill-vendor/billvendor-create.d.ts +3 -81
- package/dist/tools/bill-vendor/billvendor-create.d.ts.map +1 -1
- package/dist/tools/bill-vendor/billvendor-delete.d.ts +2 -18
- package/dist/tools/bill-vendor/billvendor-delete.d.ts.map +1 -1
- package/dist/tools/bill-vendor/billvendor-list.d.ts +5 -127
- package/dist/tools/bill-vendor/billvendor-list.d.ts.map +1 -1
- package/dist/tools/bill-vendor/billvendor-single.d.ts +3 -51
- package/dist/tools/bill-vendor/billvendor-single.d.ts.map +1 -1
- package/dist/tools/bill-vendor/billvendor-update.d.ts +3 -83
- package/dist/tools/bill-vendor/billvendor-update.d.ts.map +1 -1
- package/dist/tools/bill-vendor/schemas.d.ts +15 -327
- package/dist/tools/bill-vendor/schemas.d.ts.map +1 -1
- package/dist/tools/callback/callback-create.d.ts +2 -24
- package/dist/tools/callback/callback-create.d.ts.map +1 -1
- package/dist/tools/callback/callback-delete.d.ts +2 -18
- package/dist/tools/callback/callback-delete.d.ts.map +1 -1
- package/dist/tools/callback/callback-list.d.ts +4 -66
- package/dist/tools/callback/callback-list.d.ts.map +1 -1
- package/dist/tools/callback/callback-resend-verification.d.ts +2 -22
- package/dist/tools/callback/callback-resend-verification.d.ts.map +1 -1
- package/dist/tools/callback/callback-single.d.ts +2 -22
- package/dist/tools/callback/callback-single.d.ts.map +1 -1
- package/dist/tools/callback/callback-update.d.ts +2 -26
- package/dist/tools/callback/callback-update.d.ts.map +1 -1
- package/dist/tools/callback/callback-verify.d.ts +2 -18
- package/dist/tools/callback/callback-verify.d.ts.map +1 -1
- package/dist/tools/callback/schemas.d.ts +15 -177
- package/dist/tools/callback/schemas.d.ts.map +1 -1
- package/dist/tools/client/client-create.d.ts +3 -129
- package/dist/tools/client/client-create.d.ts.map +1 -1
- package/dist/tools/client/client-delete.d.ts +2 -18
- package/dist/tools/client/client-delete.d.ts.map +1 -1
- package/dist/tools/client/client-list.d.ts +21 -197
- package/dist/tools/client/client-list.d.ts.map +1 -1
- package/dist/tools/client/client-single.d.ts +3 -77
- package/dist/tools/client/client-single.d.ts.map +1 -1
- package/dist/tools/client/client-update.d.ts +4 -134
- package/dist/tools/client/client-update.d.ts.map +1 -1
- package/dist/tools/client/schemas.d.ts +50 -512
- package/dist/tools/client/schemas.d.ts.map +1 -1
- package/dist/tools/credit-note/creditnote-create.d.ts +18 -367
- package/dist/tools/credit-note/creditnote-create.d.ts.map +1 -1
- package/dist/tools/credit-note/creditnote-delete.d.ts +2 -18
- package/dist/tools/credit-note/creditnote-delete.d.ts.map +1 -1
- package/dist/tools/credit-note/creditnote-list.d.ts +24 -552
- package/dist/tools/credit-note/creditnote-list.d.ts.map +1 -1
- package/dist/tools/credit-note/creditnote-single.d.ts +14 -291
- package/dist/tools/credit-note/creditnote-single.d.ts.map +1 -1
- package/dist/tools/credit-note/creditnote-update.d.ts +18 -363
- package/dist/tools/credit-note/creditnote-update.d.ts.map +1 -1
- package/dist/tools/credit-note/schemas.d.ts +72 -1355
- package/dist/tools/credit-note/schemas.d.ts.map +1 -1
- package/dist/tools/expense/expense-create.d.ts +13 -132
- package/dist/tools/expense/expense-create.d.ts.map +1 -1
- package/dist/tools/expense/expense-delete.d.ts +2 -18
- package/dist/tools/expense/expense-delete.d.ts.map +1 -1
- package/dist/tools/expense/expense-list.d.ts +20 -202
- package/dist/tools/expense/expense-list.d.ts.map +1 -1
- package/dist/tools/expense/expense-single.d.ts +12 -95
- package/dist/tools/expense/expense-single.d.ts.map +1 -1
- package/dist/tools/expense/expense-update.d.ts +14 -135
- package/dist/tools/expense/expense-update.d.ts.map +1 -1
- package/dist/tools/expense/schemas.d.ts +56 -495
- package/dist/tools/expense/schemas.d.ts.map +1 -1
- package/dist/tools/expense-category/expensecategory-list.d.ts +5 -75
- package/dist/tools/expense-category/expensecategory-list.d.ts.map +1 -1
- package/dist/tools/expense-category/expensecategory-single.d.ts +3 -27
- package/dist/tools/expense-category/expensecategory-single.d.ts.map +1 -1
- package/dist/tools/expense-category/schemas.d.ts +10 -122
- package/dist/tools/expense-category/schemas.d.ts.map +1 -1
- package/dist/tools/invoice/invoice-create.d.ts +30 -280
- package/dist/tools/invoice/invoice-create.d.ts.map +1 -1
- package/dist/tools/invoice/invoice-delete.d.ts +2 -18
- package/dist/tools/invoice/invoice-delete.d.ts.map +1 -1
- package/dist/tools/invoice/invoice-list.d.ts +62 -360
- package/dist/tools/invoice/invoice-list.d.ts.map +1 -1
- package/dist/tools/invoice/invoice-share-link.d.ts +2 -14
- package/dist/tools/invoice/invoice-share-link.d.ts.map +1 -1
- package/dist/tools/invoice/invoice-single.d.ts +27 -197
- package/dist/tools/invoice/invoice-single.d.ts.map +1 -1
- package/dist/tools/invoice/invoice-update.d.ts +42 -285
- package/dist/tools/invoice/invoice-update.d.ts.map +1 -1
- package/dist/tools/invoice/schemas.d.ts +183 -1090
- package/dist/tools/invoice/schemas.d.ts.map +1 -1
- package/dist/tools/item/item-create.d.ts +15 -87
- package/dist/tools/item/item-create.d.ts.map +1 -1
- package/dist/tools/item/item-list.d.ts +16 -130
- package/dist/tools/item/item-list.d.ts.map +1 -1
- package/dist/tools/item/item-single.d.ts +9 -55
- package/dist/tools/item/item-single.d.ts.map +1 -1
- package/dist/tools/item/item-update.d.ts +15 -89
- package/dist/tools/item/item-update.d.ts.map +1 -1
- package/dist/tools/item/schemas.d.ts +53 -325
- package/dist/tools/item/schemas.d.ts.map +1 -1
- package/dist/tools/journal-entry/journalentry-create.d.ts +4 -74
- package/dist/tools/journal-entry/journalentry-create.d.ts.map +1 -1
- package/dist/tools/journal-entry/schemas.d.ts +7 -123
- package/dist/tools/journal-entry/schemas.d.ts.map +1 -1
- package/dist/tools/journal-entry-account/journalentryaccount-list.d.ts +13 -147
- package/dist/tools/journal-entry-account/journalentryaccount-list.d.ts.map +1 -1
- package/dist/tools/journal-entry-account/schemas.d.ts +19 -263
- package/dist/tools/journal-entry-account/schemas.d.ts.map +1 -1
- package/dist/tools/other-income/otherincome-create.d.ts +43 -107
- package/dist/tools/other-income/otherincome-create.d.ts.map +1 -1
- package/dist/tools/other-income/otherincome-delete.d.ts +2 -18
- package/dist/tools/other-income/otherincome-delete.d.ts.map +1 -1
- package/dist/tools/other-income/otherincome-list.d.ts +25 -140
- package/dist/tools/other-income/otherincome-list.d.ts.map +1 -1
- package/dist/tools/other-income/otherincome-single.d.ts +23 -64
- package/dist/tools/other-income/otherincome-single.d.ts.map +1 -1
- package/dist/tools/other-income/otherincome-update.d.ts +43 -109
- package/dist/tools/other-income/otherincome-update.d.ts.map +1 -1
- package/dist/tools/other-income/schemas.d.ts +132 -382
- package/dist/tools/other-income/schemas.d.ts.map +1 -1
- package/dist/tools/payment/payment-create.d.ts +33 -81
- package/dist/tools/payment/payment-create.d.ts.map +1 -1
- package/dist/tools/payment/payment-delete.d.ts +2 -18
- package/dist/tools/payment/payment-delete.d.ts.map +1 -1
- package/dist/tools/payment/payment-list.d.ts +20 -135
- package/dist/tools/payment/payment-list.d.ts.map +1 -1
- package/dist/tools/payment/payment-single.d.ts +18 -57
- package/dist/tools/payment/payment-single.d.ts.map +1 -1
- package/dist/tools/payment/payment-update.d.ts +33 -79
- package/dist/tools/payment/payment-update.d.ts.map +1 -1
- package/dist/tools/payment/schemas.d.ts +103 -321
- package/dist/tools/payment/schemas.d.ts.map +1 -1
- package/dist/tools/payment-options/paymentoptions-create.d.ts +11 -55
- package/dist/tools/payment-options/paymentoptions-create.d.ts.map +1 -1
- package/dist/tools/payment-options/paymentoptions-default.d.ts +2 -18
- package/dist/tools/payment-options/paymentoptions-default.d.ts.map +1 -1
- package/dist/tools/payment-options/paymentoptions-single.d.ts +11 -45
- package/dist/tools/payment-options/paymentoptions-single.d.ts.map +1 -1
- package/dist/tools/payment-options/schemas.d.ts +25 -125
- package/dist/tools/payment-options/schemas.d.ts.map +1 -1
- package/dist/tools/project/project-create.d.ts +28 -86
- package/dist/tools/project/project-create.d.ts.map +1 -1
- package/dist/tools/project/project-delete.d.ts +2 -18
- package/dist/tools/project/project-delete.d.ts.map +1 -1
- package/dist/tools/project/project-list.d.ts +34 -167
- package/dist/tools/project/project-list.d.ts.map +1 -1
- package/dist/tools/project/project-single.d.ts +23 -67
- package/dist/tools/project/project-single.d.ts.map +1 -1
- package/dist/tools/project/project-update.d.ts +28 -92
- package/dist/tools/project/project-update.d.ts.map +1 -1
- package/dist/tools/project/schemas.d.ts +130 -402
- package/dist/tools/project/schemas.d.ts.map +1 -1
- package/dist/tools/report/report-payments-collected.d.ts +5 -82
- package/dist/tools/report/report-payments-collected.d.ts.map +1 -1
- package/dist/tools/report/report-profit-loss.d.ts +8 -101
- package/dist/tools/report/report-profit-loss.d.ts.map +1 -1
- package/dist/tools/report/report-tax-summary.d.ts +7 -116
- package/dist/tools/report/report-tax-summary.d.ts.map +1 -1
- package/dist/tools/report/schemas.d.ts +47 -678
- package/dist/tools/report/schemas.d.ts.map +1 -1
- package/dist/tools/service/schemas.d.ts +10 -102
- package/dist/tools/service/schemas.d.ts.map +1 -1
- package/dist/tools/service/service-create.d.ts +2 -18
- package/dist/tools/service/service-create.d.ts.map +1 -1
- package/dist/tools/service/service-list.d.ts +8 -76
- package/dist/tools/service/service-list.d.ts.map +1 -1
- package/dist/tools/service/service-rate-get.d.ts +4 -28
- package/dist/tools/service/service-rate-get.d.ts.map +1 -1
- package/dist/tools/service/service-rate-set.d.ts +4 -36
- package/dist/tools/service/service-rate-set.d.ts.map +1 -1
- package/dist/tools/service/service-single.d.ts +2 -14
- package/dist/tools/service/service-single.d.ts.map +1 -1
- package/dist/tools/task/schemas.d.ts +16 -216
- package/dist/tools/task/schemas.d.ts.map +1 -1
- package/dist/tools/task/task-create.d.ts +5 -64
- package/dist/tools/task/task-create.d.ts.map +1 -1
- package/dist/tools/task/task-delete.d.ts +2 -19
- package/dist/tools/task/task-delete.d.ts.map +1 -1
- package/dist/tools/task/task-list.d.ts +7 -113
- package/dist/tools/task/task-list.d.ts.map +1 -1
- package/dist/tools/task/task-single.d.ts +4 -45
- package/dist/tools/task/task-single.d.ts.map +1 -1
- package/dist/tools/task/task-update.d.ts +6 -69
- package/dist/tools/task/task-update.d.ts.map +1 -1
- package/dist/tools/time-entry/schemas.d.ts +50 -404
- package/dist/tools/time-entry/schemas.d.ts.map +1 -1
- package/dist/tools/time-entry/timeentry-create.d.ts +3 -85
- package/dist/tools/time-entry/timeentry-create.d.ts.map +1 -1
- package/dist/tools/time-entry/timeentry-delete.d.ts +2 -20
- package/dist/tools/time-entry/timeentry-delete.d.ts.map +1 -1
- package/dist/tools/time-entry/timeentry-list.d.ts +22 -172
- package/dist/tools/time-entry/timeentry-list.d.ts.map +1 -1
- package/dist/tools/time-entry/timeentry-single.d.ts +3 -63
- package/dist/tools/time-entry/timeentry-single.d.ts.map +1 -1
- package/dist/tools/time-entry/timeentry-update.d.ts +3 -87
- package/dist/tools/time-entry/timeentry-update.d.ts.map +1 -1
- package/dist/tools/timer/schemas.d.ts +16 -351
- package/dist/tools/timer/schemas.d.ts.map +1 -1
- package/dist/tools/timer/timer-current.d.ts +4 -116
- package/dist/tools/timer/timer-current.d.ts.map +1 -1
- package/dist/tools/timer/timer-discard.d.ts +2 -23
- package/dist/tools/timer/timer-discard.d.ts.map +1 -1
- package/dist/tools/timer/timer-start.d.ts +3 -76
- package/dist/tools/timer/timer-start.d.ts.map +1 -1
- package/dist/tools/timer/timer-stop.d.ts +3 -68
- package/dist/tools/timer/timer-stop.d.ts.map +1 -1
- package/dist/tools/user/schemas.d.ts +12 -190
- package/dist/tools/user/schemas.d.ts.map +1 -1
- package/dist/tools/user/user-me.d.ts +6 -90
- package/dist/tools/user/user-me.d.ts.map +1 -1
- package/dist/utils/pagination.d.ts +1 -7
- package/dist/utils/pagination.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -24,50 +24,62 @@ export declare const INVOICE_INCLUDE_DESCRIPTIONS: Record<typeof INVOICE_INCLUDE
|
|
|
24
24
|
* Invoice sort schema
|
|
25
25
|
*/
|
|
26
26
|
export declare const InvoiceSortSchema: z.ZodObject<{
|
|
27
|
-
sortBy: z.ZodOptional<z.ZodEnum<
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
sortOrder
|
|
35
|
-
|
|
27
|
+
sortBy: z.ZodOptional<z.ZodEnum<{
|
|
28
|
+
amount: "amount";
|
|
29
|
+
due_date: "due_date";
|
|
30
|
+
updated: "updated";
|
|
31
|
+
create_date: "create_date";
|
|
32
|
+
outstanding: "outstanding";
|
|
33
|
+
}>>;
|
|
34
|
+
sortOrder: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
35
|
+
asc: "asc";
|
|
36
|
+
desc: "desc";
|
|
37
|
+
}>>>;
|
|
38
|
+
}, z.core.$strip>;
|
|
36
39
|
/**
|
|
37
40
|
* Invoice includes schema
|
|
38
41
|
*/
|
|
39
42
|
export declare const InvoiceIncludesSchema: z.ZodObject<{
|
|
40
|
-
include: z.ZodOptional<z.ZodArray<z.ZodEnum<
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
}>;
|
|
43
|
+
include: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
44
|
+
lines: "lines";
|
|
45
|
+
presentation: "presentation";
|
|
46
|
+
}>>>;
|
|
47
|
+
}, z.core.$strip>;
|
|
46
48
|
/**
|
|
47
49
|
* Invoice status enum
|
|
48
50
|
*/
|
|
49
|
-
export declare const InvoiceStatusEnum: z.ZodEnum<
|
|
51
|
+
export declare const InvoiceStatusEnum: z.ZodEnum<{
|
|
52
|
+
partial: "partial";
|
|
53
|
+
draft: "draft";
|
|
54
|
+
sent: "sent";
|
|
55
|
+
viewed: "viewed";
|
|
56
|
+
paid: "paid";
|
|
57
|
+
auto_paid: "auto_paid";
|
|
58
|
+
retry: "retry";
|
|
59
|
+
failed: "failed";
|
|
60
|
+
overdue: "overdue";
|
|
61
|
+
disputed: "disputed";
|
|
62
|
+
}>;
|
|
50
63
|
/**
|
|
51
64
|
* Payment status enum
|
|
52
65
|
*/
|
|
53
|
-
export declare const PaymentStatusEnum: z.ZodEnum<
|
|
66
|
+
export declare const PaymentStatusEnum: z.ZodEnum<{
|
|
67
|
+
partial: "partial";
|
|
68
|
+
paid: "paid";
|
|
69
|
+
auto_paid: "auto_paid";
|
|
70
|
+
unpaid: "unpaid";
|
|
71
|
+
}>;
|
|
54
72
|
/**
|
|
55
73
|
* Visibility state enum
|
|
56
74
|
*/
|
|
57
|
-
export declare const VisStateEnum: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>]>;
|
|
75
|
+
export declare const VisStateEnum: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>]>;
|
|
58
76
|
/**
|
|
59
77
|
* Money type (amount + currency code)
|
|
60
78
|
*/
|
|
61
79
|
export declare const MoneySchema: z.ZodObject<{
|
|
62
80
|
amount: z.ZodString;
|
|
63
81
|
code: z.ZodString;
|
|
64
|
-
},
|
|
65
|
-
code: string;
|
|
66
|
-
amount: string;
|
|
67
|
-
}, {
|
|
68
|
-
code: string;
|
|
69
|
-
amount: string;
|
|
70
|
-
}>;
|
|
82
|
+
}, z.core.$strip>;
|
|
71
83
|
/**
|
|
72
84
|
* Line Item schema - represents a single line on an invoice
|
|
73
85
|
*/
|
|
@@ -78,72 +90,18 @@ export declare const LineItemSchema: z.ZodObject<{
|
|
|
78
90
|
amount: z.ZodObject<{
|
|
79
91
|
amount: z.ZodString;
|
|
80
92
|
code: z.ZodString;
|
|
81
|
-
},
|
|
82
|
-
code: string;
|
|
83
|
-
amount: string;
|
|
84
|
-
}, {
|
|
85
|
-
code: string;
|
|
86
|
-
amount: string;
|
|
87
|
-
}>;
|
|
93
|
+
}, z.core.$strip>;
|
|
88
94
|
taxName1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
89
95
|
taxAmount1: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
90
96
|
amount: z.ZodString;
|
|
91
97
|
code: z.ZodString;
|
|
92
|
-
},
|
|
93
|
-
code: string;
|
|
94
|
-
amount: string;
|
|
95
|
-
}, {
|
|
96
|
-
code: string;
|
|
97
|
-
amount: string;
|
|
98
|
-
}>>>;
|
|
98
|
+
}, z.core.$strip>>>;
|
|
99
99
|
taxName2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
100
100
|
taxAmount2: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
101
101
|
amount: z.ZodString;
|
|
102
102
|
code: z.ZodString;
|
|
103
|
-
},
|
|
104
|
-
|
|
105
|
-
amount: string;
|
|
106
|
-
}, {
|
|
107
|
-
code: string;
|
|
108
|
-
amount: string;
|
|
109
|
-
}>>>;
|
|
110
|
-
}, "strip", z.ZodTypeAny, {
|
|
111
|
-
amount: {
|
|
112
|
-
code: string;
|
|
113
|
-
amount: string;
|
|
114
|
-
};
|
|
115
|
-
name: string;
|
|
116
|
-
qty: number;
|
|
117
|
-
description?: string | undefined;
|
|
118
|
-
taxName1?: string | null | undefined;
|
|
119
|
-
taxAmount1?: {
|
|
120
|
-
code: string;
|
|
121
|
-
amount: string;
|
|
122
|
-
} | null | undefined;
|
|
123
|
-
taxName2?: string | null | undefined;
|
|
124
|
-
taxAmount2?: {
|
|
125
|
-
code: string;
|
|
126
|
-
amount: string;
|
|
127
|
-
} | null | undefined;
|
|
128
|
-
}, {
|
|
129
|
-
amount: {
|
|
130
|
-
code: string;
|
|
131
|
-
amount: string;
|
|
132
|
-
};
|
|
133
|
-
name: string;
|
|
134
|
-
qty: number;
|
|
135
|
-
description?: string | undefined;
|
|
136
|
-
taxName1?: string | null | undefined;
|
|
137
|
-
taxAmount1?: {
|
|
138
|
-
code: string;
|
|
139
|
-
amount: string;
|
|
140
|
-
} | null | undefined;
|
|
141
|
-
taxName2?: string | null | undefined;
|
|
142
|
-
taxAmount2?: {
|
|
143
|
-
code: string;
|
|
144
|
-
amount: string;
|
|
145
|
-
} | null | undefined;
|
|
146
|
-
}>;
|
|
103
|
+
}, z.core.$strip>>>;
|
|
104
|
+
}, z.core.$strip>;
|
|
147
105
|
/**
|
|
148
106
|
* Full Invoice schema with all properties
|
|
149
107
|
*/
|
|
@@ -156,35 +114,33 @@ export declare const InvoiceSchema: z.ZodObject<{
|
|
|
156
114
|
amount: z.ZodObject<{
|
|
157
115
|
amount: z.ZodString;
|
|
158
116
|
code: z.ZodString;
|
|
159
|
-
},
|
|
160
|
-
code: string;
|
|
161
|
-
amount: string;
|
|
162
|
-
}, {
|
|
163
|
-
code: string;
|
|
164
|
-
amount: string;
|
|
165
|
-
}>;
|
|
117
|
+
}, z.core.$strip>;
|
|
166
118
|
outstanding: z.ZodObject<{
|
|
167
119
|
amount: z.ZodString;
|
|
168
120
|
code: z.ZodString;
|
|
169
|
-
},
|
|
170
|
-
code: string;
|
|
171
|
-
amount: string;
|
|
172
|
-
}, {
|
|
173
|
-
code: string;
|
|
174
|
-
amount: string;
|
|
175
|
-
}>;
|
|
121
|
+
}, z.core.$strip>;
|
|
176
122
|
paid: z.ZodObject<{
|
|
177
123
|
amount: z.ZodString;
|
|
178
124
|
code: z.ZodString;
|
|
179
|
-
},
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
125
|
+
}, z.core.$strip>;
|
|
126
|
+
status: z.ZodEnum<{
|
|
127
|
+
partial: "partial";
|
|
128
|
+
draft: "draft";
|
|
129
|
+
sent: "sent";
|
|
130
|
+
viewed: "viewed";
|
|
131
|
+
paid: "paid";
|
|
132
|
+
auto_paid: "auto_paid";
|
|
133
|
+
retry: "retry";
|
|
134
|
+
failed: "failed";
|
|
135
|
+
overdue: "overdue";
|
|
136
|
+
disputed: "disputed";
|
|
137
|
+
}>;
|
|
138
|
+
paymentStatus: z.ZodEnum<{
|
|
139
|
+
partial: "partial";
|
|
140
|
+
paid: "paid";
|
|
141
|
+
auto_paid: "auto_paid";
|
|
142
|
+
unpaid: "unpaid";
|
|
185
143
|
}>;
|
|
186
|
-
status: z.ZodEnum<["draft", "sent", "viewed", "partial", "paid", "auto_paid", "retry", "failed", "overdue", "disputed"]>;
|
|
187
|
-
paymentStatus: z.ZodEnum<["unpaid", "partial", "paid", "auto_paid"]>;
|
|
188
144
|
currencyCode: z.ZodString;
|
|
189
145
|
lines: z.ZodArray<z.ZodObject<{
|
|
190
146
|
name: z.ZodString;
|
|
@@ -193,72 +149,18 @@ export declare const InvoiceSchema: z.ZodObject<{
|
|
|
193
149
|
amount: z.ZodObject<{
|
|
194
150
|
amount: z.ZodString;
|
|
195
151
|
code: z.ZodString;
|
|
196
|
-
},
|
|
197
|
-
code: string;
|
|
198
|
-
amount: string;
|
|
199
|
-
}, {
|
|
200
|
-
code: string;
|
|
201
|
-
amount: string;
|
|
202
|
-
}>;
|
|
152
|
+
}, z.core.$strip>;
|
|
203
153
|
taxName1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
204
154
|
taxAmount1: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
205
155
|
amount: z.ZodString;
|
|
206
156
|
code: z.ZodString;
|
|
207
|
-
},
|
|
208
|
-
code: string;
|
|
209
|
-
amount: string;
|
|
210
|
-
}, {
|
|
211
|
-
code: string;
|
|
212
|
-
amount: string;
|
|
213
|
-
}>>>;
|
|
157
|
+
}, z.core.$strip>>>;
|
|
214
158
|
taxName2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
215
159
|
taxAmount2: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
216
160
|
amount: z.ZodString;
|
|
217
161
|
code: z.ZodString;
|
|
218
|
-
},
|
|
219
|
-
|
|
220
|
-
amount: string;
|
|
221
|
-
}, {
|
|
222
|
-
code: string;
|
|
223
|
-
amount: string;
|
|
224
|
-
}>>>;
|
|
225
|
-
}, "strip", z.ZodTypeAny, {
|
|
226
|
-
amount: {
|
|
227
|
-
code: string;
|
|
228
|
-
amount: string;
|
|
229
|
-
};
|
|
230
|
-
name: string;
|
|
231
|
-
qty: number;
|
|
232
|
-
description?: string | undefined;
|
|
233
|
-
taxName1?: string | null | undefined;
|
|
234
|
-
taxAmount1?: {
|
|
235
|
-
code: string;
|
|
236
|
-
amount: string;
|
|
237
|
-
} | null | undefined;
|
|
238
|
-
taxName2?: string | null | undefined;
|
|
239
|
-
taxAmount2?: {
|
|
240
|
-
code: string;
|
|
241
|
-
amount: string;
|
|
242
|
-
} | null | undefined;
|
|
243
|
-
}, {
|
|
244
|
-
amount: {
|
|
245
|
-
code: string;
|
|
246
|
-
amount: string;
|
|
247
|
-
};
|
|
248
|
-
name: string;
|
|
249
|
-
qty: number;
|
|
250
|
-
description?: string | undefined;
|
|
251
|
-
taxName1?: string | null | undefined;
|
|
252
|
-
taxAmount1?: {
|
|
253
|
-
code: string;
|
|
254
|
-
amount: string;
|
|
255
|
-
} | null | undefined;
|
|
256
|
-
taxName2?: string | null | undefined;
|
|
257
|
-
taxAmount2?: {
|
|
258
|
-
code: string;
|
|
259
|
-
amount: string;
|
|
260
|
-
} | null | undefined;
|
|
261
|
-
}>, "many">;
|
|
162
|
+
}, z.core.$strip>>>;
|
|
163
|
+
}, z.core.$strip>>;
|
|
262
164
|
notes: z.ZodOptional<z.ZodString>;
|
|
263
165
|
terms: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
264
166
|
organization: z.ZodOptional<z.ZodString>;
|
|
@@ -270,118 +172,10 @@ export declare const InvoiceSchema: z.ZodObject<{
|
|
|
270
172
|
province: z.ZodOptional<z.ZodString>;
|
|
271
173
|
code: z.ZodOptional<z.ZodString>;
|
|
272
174
|
country: z.ZodOptional<z.ZodString>;
|
|
273
|
-
visState: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
|
|
175
|
+
visState: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
|
|
274
176
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
275
177
|
updated: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
276
|
-
},
|
|
277
|
-
status: "partial" | "draft" | "sent" | "viewed" | "paid" | "auto_paid" | "retry" | "failed" | "overdue" | "disputed";
|
|
278
|
-
amount: {
|
|
279
|
-
code: string;
|
|
280
|
-
amount: string;
|
|
281
|
-
};
|
|
282
|
-
id: number;
|
|
283
|
-
currencyCode: string;
|
|
284
|
-
outstanding: {
|
|
285
|
-
code: string;
|
|
286
|
-
amount: string;
|
|
287
|
-
};
|
|
288
|
-
lines: {
|
|
289
|
-
amount: {
|
|
290
|
-
code: string;
|
|
291
|
-
amount: string;
|
|
292
|
-
};
|
|
293
|
-
name: string;
|
|
294
|
-
qty: number;
|
|
295
|
-
description?: string | undefined;
|
|
296
|
-
taxName1?: string | null | undefined;
|
|
297
|
-
taxAmount1?: {
|
|
298
|
-
code: string;
|
|
299
|
-
amount: string;
|
|
300
|
-
} | null | undefined;
|
|
301
|
-
taxName2?: string | null | undefined;
|
|
302
|
-
taxAmount2?: {
|
|
303
|
-
code: string;
|
|
304
|
-
amount: string;
|
|
305
|
-
} | null | undefined;
|
|
306
|
-
}[];
|
|
307
|
-
paid: {
|
|
308
|
-
code: string;
|
|
309
|
-
amount: string;
|
|
310
|
-
};
|
|
311
|
-
invoiceNumber: string;
|
|
312
|
-
customerId: number;
|
|
313
|
-
createDate: string;
|
|
314
|
-
paymentStatus: "partial" | "paid" | "auto_paid" | "unpaid";
|
|
315
|
-
code?: string | undefined;
|
|
316
|
-
createdAt?: string | undefined;
|
|
317
|
-
dueDate?: string | null | undefined;
|
|
318
|
-
visState?: 0 | 1 | 2 | undefined;
|
|
319
|
-
updated?: string | null | undefined;
|
|
320
|
-
organization?: string | undefined;
|
|
321
|
-
email?: string | undefined;
|
|
322
|
-
fName?: string | undefined;
|
|
323
|
-
lName?: string | undefined;
|
|
324
|
-
notes?: string | undefined;
|
|
325
|
-
terms?: string | null | undefined;
|
|
326
|
-
address?: string | undefined;
|
|
327
|
-
city?: string | undefined;
|
|
328
|
-
province?: string | undefined;
|
|
329
|
-
country?: string | undefined;
|
|
330
|
-
}, {
|
|
331
|
-
status: "partial" | "draft" | "sent" | "viewed" | "paid" | "auto_paid" | "retry" | "failed" | "overdue" | "disputed";
|
|
332
|
-
amount: {
|
|
333
|
-
code: string;
|
|
334
|
-
amount: string;
|
|
335
|
-
};
|
|
336
|
-
id: number;
|
|
337
|
-
currencyCode: string;
|
|
338
|
-
outstanding: {
|
|
339
|
-
code: string;
|
|
340
|
-
amount: string;
|
|
341
|
-
};
|
|
342
|
-
lines: {
|
|
343
|
-
amount: {
|
|
344
|
-
code: string;
|
|
345
|
-
amount: string;
|
|
346
|
-
};
|
|
347
|
-
name: string;
|
|
348
|
-
qty: number;
|
|
349
|
-
description?: string | undefined;
|
|
350
|
-
taxName1?: string | null | undefined;
|
|
351
|
-
taxAmount1?: {
|
|
352
|
-
code: string;
|
|
353
|
-
amount: string;
|
|
354
|
-
} | null | undefined;
|
|
355
|
-
taxName2?: string | null | undefined;
|
|
356
|
-
taxAmount2?: {
|
|
357
|
-
code: string;
|
|
358
|
-
amount: string;
|
|
359
|
-
} | null | undefined;
|
|
360
|
-
}[];
|
|
361
|
-
paid: {
|
|
362
|
-
code: string;
|
|
363
|
-
amount: string;
|
|
364
|
-
};
|
|
365
|
-
invoiceNumber: string;
|
|
366
|
-
customerId: number;
|
|
367
|
-
createDate: string;
|
|
368
|
-
paymentStatus: "partial" | "paid" | "auto_paid" | "unpaid";
|
|
369
|
-
code?: string | undefined;
|
|
370
|
-
createdAt?: string | undefined;
|
|
371
|
-
dueDate?: string | null | undefined;
|
|
372
|
-
visState?: 0 | 1 | 2 | undefined;
|
|
373
|
-
updated?: string | null | undefined;
|
|
374
|
-
organization?: string | undefined;
|
|
375
|
-
email?: string | undefined;
|
|
376
|
-
fName?: string | undefined;
|
|
377
|
-
lName?: string | undefined;
|
|
378
|
-
notes?: string | undefined;
|
|
379
|
-
terms?: string | null | undefined;
|
|
380
|
-
address?: string | undefined;
|
|
381
|
-
city?: string | undefined;
|
|
382
|
-
province?: string | undefined;
|
|
383
|
-
country?: string | undefined;
|
|
384
|
-
}>;
|
|
178
|
+
}, z.core.$strip>;
|
|
385
179
|
/**
|
|
386
180
|
* Input schema for creating a line item
|
|
387
181
|
*/
|
|
@@ -392,42 +186,12 @@ export declare const LineItemCreateSchema: z.ZodObject<{
|
|
|
392
186
|
unitCost: z.ZodObject<{
|
|
393
187
|
amount: z.ZodString;
|
|
394
188
|
code: z.ZodOptional<z.ZodString>;
|
|
395
|
-
},
|
|
396
|
-
amount: string;
|
|
397
|
-
code?: string | undefined;
|
|
398
|
-
}, {
|
|
399
|
-
amount: string;
|
|
400
|
-
code?: string | undefined;
|
|
401
|
-
}>;
|
|
189
|
+
}, z.core.$strip>;
|
|
402
190
|
taxName1: z.ZodOptional<z.ZodString>;
|
|
403
191
|
taxAmount1: z.ZodOptional<z.ZodString>;
|
|
404
192
|
taxName2: z.ZodOptional<z.ZodString>;
|
|
405
193
|
taxAmount2: z.ZodOptional<z.ZodString>;
|
|
406
|
-
},
|
|
407
|
-
name: string;
|
|
408
|
-
qty: number;
|
|
409
|
-
unitCost: {
|
|
410
|
-
amount: string;
|
|
411
|
-
code?: string | undefined;
|
|
412
|
-
};
|
|
413
|
-
description?: string | undefined;
|
|
414
|
-
taxName1?: string | undefined;
|
|
415
|
-
taxAmount1?: string | undefined;
|
|
416
|
-
taxName2?: string | undefined;
|
|
417
|
-
taxAmount2?: string | undefined;
|
|
418
|
-
}, {
|
|
419
|
-
name: string;
|
|
420
|
-
unitCost: {
|
|
421
|
-
amount: string;
|
|
422
|
-
code?: string | undefined;
|
|
423
|
-
};
|
|
424
|
-
description?: string | undefined;
|
|
425
|
-
qty?: number | undefined;
|
|
426
|
-
taxName1?: string | undefined;
|
|
427
|
-
taxAmount1?: string | undefined;
|
|
428
|
-
taxName2?: string | undefined;
|
|
429
|
-
taxAmount2?: string | undefined;
|
|
430
|
-
}>;
|
|
194
|
+
}, z.core.$strip>;
|
|
431
195
|
/**
|
|
432
196
|
* Input schema for creating an invoice
|
|
433
197
|
*/
|
|
@@ -444,105 +208,19 @@ export declare const InvoiceCreateInputSchema: z.ZodObject<{
|
|
|
444
208
|
unitCost: z.ZodObject<{
|
|
445
209
|
amount: z.ZodString;
|
|
446
210
|
code: z.ZodOptional<z.ZodString>;
|
|
447
|
-
},
|
|
448
|
-
amount: string;
|
|
449
|
-
code?: string | undefined;
|
|
450
|
-
}, {
|
|
451
|
-
amount: string;
|
|
452
|
-
code?: string | undefined;
|
|
453
|
-
}>;
|
|
211
|
+
}, z.core.$strip>;
|
|
454
212
|
taxName1: z.ZodOptional<z.ZodString>;
|
|
455
213
|
taxAmount1: z.ZodOptional<z.ZodString>;
|
|
456
214
|
taxName2: z.ZodOptional<z.ZodString>;
|
|
457
215
|
taxAmount2: z.ZodOptional<z.ZodString>;
|
|
458
|
-
},
|
|
459
|
-
name: string;
|
|
460
|
-
qty: number;
|
|
461
|
-
unitCost: {
|
|
462
|
-
amount: string;
|
|
463
|
-
code?: string | undefined;
|
|
464
|
-
};
|
|
465
|
-
description?: string | undefined;
|
|
466
|
-
taxName1?: string | undefined;
|
|
467
|
-
taxAmount1?: string | undefined;
|
|
468
|
-
taxName2?: string | undefined;
|
|
469
|
-
taxAmount2?: string | undefined;
|
|
470
|
-
}, {
|
|
471
|
-
name: string;
|
|
472
|
-
unitCost: {
|
|
473
|
-
amount: string;
|
|
474
|
-
code?: string | undefined;
|
|
475
|
-
};
|
|
476
|
-
description?: string | undefined;
|
|
477
|
-
qty?: number | undefined;
|
|
478
|
-
taxName1?: string | undefined;
|
|
479
|
-
taxAmount1?: string | undefined;
|
|
480
|
-
taxName2?: string | undefined;
|
|
481
|
-
taxAmount2?: string | undefined;
|
|
482
|
-
}>, "many">;
|
|
216
|
+
}, z.core.$strip>>;
|
|
483
217
|
notes: z.ZodOptional<z.ZodString>;
|
|
484
218
|
terms: z.ZodOptional<z.ZodString>;
|
|
485
219
|
discount: z.ZodOptional<z.ZodObject<{
|
|
486
220
|
amount: z.ZodString;
|
|
487
221
|
code: z.ZodOptional<z.ZodString>;
|
|
488
|
-
},
|
|
489
|
-
|
|
490
|
-
code?: string | undefined;
|
|
491
|
-
}, {
|
|
492
|
-
amount: string;
|
|
493
|
-
code?: string | undefined;
|
|
494
|
-
}>>;
|
|
495
|
-
}, "strip", z.ZodTypeAny, {
|
|
496
|
-
accountId: string;
|
|
497
|
-
lines: {
|
|
498
|
-
name: string;
|
|
499
|
-
qty: number;
|
|
500
|
-
unitCost: {
|
|
501
|
-
amount: string;
|
|
502
|
-
code?: string | undefined;
|
|
503
|
-
};
|
|
504
|
-
description?: string | undefined;
|
|
505
|
-
taxName1?: string | undefined;
|
|
506
|
-
taxAmount1?: string | undefined;
|
|
507
|
-
taxName2?: string | undefined;
|
|
508
|
-
taxAmount2?: string | undefined;
|
|
509
|
-
}[];
|
|
510
|
-
customerId: number;
|
|
511
|
-
dueDate?: string | undefined;
|
|
512
|
-
currencyCode?: string | undefined;
|
|
513
|
-
createDate?: string | undefined;
|
|
514
|
-
notes?: string | undefined;
|
|
515
|
-
terms?: string | undefined;
|
|
516
|
-
discount?: {
|
|
517
|
-
amount: string;
|
|
518
|
-
code?: string | undefined;
|
|
519
|
-
} | undefined;
|
|
520
|
-
}, {
|
|
521
|
-
accountId: string;
|
|
522
|
-
lines: {
|
|
523
|
-
name: string;
|
|
524
|
-
unitCost: {
|
|
525
|
-
amount: string;
|
|
526
|
-
code?: string | undefined;
|
|
527
|
-
};
|
|
528
|
-
description?: string | undefined;
|
|
529
|
-
qty?: number | undefined;
|
|
530
|
-
taxName1?: string | undefined;
|
|
531
|
-
taxAmount1?: string | undefined;
|
|
532
|
-
taxName2?: string | undefined;
|
|
533
|
-
taxAmount2?: string | undefined;
|
|
534
|
-
}[];
|
|
535
|
-
customerId: number;
|
|
536
|
-
dueDate?: string | undefined;
|
|
537
|
-
currencyCode?: string | undefined;
|
|
538
|
-
createDate?: string | undefined;
|
|
539
|
-
notes?: string | undefined;
|
|
540
|
-
terms?: string | undefined;
|
|
541
|
-
discount?: {
|
|
542
|
-
amount: string;
|
|
543
|
-
code?: string | undefined;
|
|
544
|
-
} | undefined;
|
|
545
|
-
}>;
|
|
222
|
+
}, z.core.$strip>>;
|
|
223
|
+
}, z.core.$strip>;
|
|
546
224
|
/**
|
|
547
225
|
* Input schema for updating an invoice
|
|
548
226
|
*/
|
|
@@ -560,110 +238,31 @@ export declare const InvoiceUpdateInputSchema: z.ZodObject<{
|
|
|
560
238
|
unitCost: z.ZodObject<{
|
|
561
239
|
amount: z.ZodString;
|
|
562
240
|
code: z.ZodOptional<z.ZodString>;
|
|
563
|
-
},
|
|
564
|
-
amount: string;
|
|
565
|
-
code?: string | undefined;
|
|
566
|
-
}, {
|
|
567
|
-
amount: string;
|
|
568
|
-
code?: string | undefined;
|
|
569
|
-
}>;
|
|
241
|
+
}, z.core.$strip>;
|
|
570
242
|
taxName1: z.ZodOptional<z.ZodString>;
|
|
571
243
|
taxAmount1: z.ZodOptional<z.ZodString>;
|
|
572
244
|
taxName2: z.ZodOptional<z.ZodString>;
|
|
573
245
|
taxAmount2: z.ZodOptional<z.ZodString>;
|
|
574
|
-
},
|
|
575
|
-
name: string;
|
|
576
|
-
qty: number;
|
|
577
|
-
unitCost: {
|
|
578
|
-
amount: string;
|
|
579
|
-
code?: string | undefined;
|
|
580
|
-
};
|
|
581
|
-
description?: string | undefined;
|
|
582
|
-
taxName1?: string | undefined;
|
|
583
|
-
taxAmount1?: string | undefined;
|
|
584
|
-
taxName2?: string | undefined;
|
|
585
|
-
taxAmount2?: string | undefined;
|
|
586
|
-
}, {
|
|
587
|
-
name: string;
|
|
588
|
-
unitCost: {
|
|
589
|
-
amount: string;
|
|
590
|
-
code?: string | undefined;
|
|
591
|
-
};
|
|
592
|
-
description?: string | undefined;
|
|
593
|
-
qty?: number | undefined;
|
|
594
|
-
taxName1?: string | undefined;
|
|
595
|
-
taxAmount1?: string | undefined;
|
|
596
|
-
taxName2?: string | undefined;
|
|
597
|
-
taxAmount2?: string | undefined;
|
|
598
|
-
}>, "many">>;
|
|
246
|
+
}, z.core.$strip>>>;
|
|
599
247
|
notes: z.ZodOptional<z.ZodString>;
|
|
600
248
|
terms: z.ZodOptional<z.ZodString>;
|
|
601
|
-
status: z.ZodOptional<z.ZodEnum<
|
|
249
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
250
|
+
partial: "partial";
|
|
251
|
+
draft: "draft";
|
|
252
|
+
sent: "sent";
|
|
253
|
+
viewed: "viewed";
|
|
254
|
+
paid: "paid";
|
|
255
|
+
auto_paid: "auto_paid";
|
|
256
|
+
retry: "retry";
|
|
257
|
+
failed: "failed";
|
|
258
|
+
overdue: "overdue";
|
|
259
|
+
disputed: "disputed";
|
|
260
|
+
}>>;
|
|
602
261
|
discount: z.ZodOptional<z.ZodObject<{
|
|
603
262
|
amount: z.ZodString;
|
|
604
263
|
code: z.ZodOptional<z.ZodString>;
|
|
605
|
-
},
|
|
606
|
-
|
|
607
|
-
code?: string | undefined;
|
|
608
|
-
}, {
|
|
609
|
-
amount: string;
|
|
610
|
-
code?: string | undefined;
|
|
611
|
-
}>>;
|
|
612
|
-
}, "strip", z.ZodTypeAny, {
|
|
613
|
-
accountId: string;
|
|
614
|
-
invoiceId: number;
|
|
615
|
-
status?: "partial" | "draft" | "sent" | "viewed" | "paid" | "auto_paid" | "retry" | "failed" | "overdue" | "disputed" | undefined;
|
|
616
|
-
dueDate?: string | undefined;
|
|
617
|
-
currencyCode?: string | undefined;
|
|
618
|
-
lines?: {
|
|
619
|
-
name: string;
|
|
620
|
-
qty: number;
|
|
621
|
-
unitCost: {
|
|
622
|
-
amount: string;
|
|
623
|
-
code?: string | undefined;
|
|
624
|
-
};
|
|
625
|
-
description?: string | undefined;
|
|
626
|
-
taxName1?: string | undefined;
|
|
627
|
-
taxAmount1?: string | undefined;
|
|
628
|
-
taxName2?: string | undefined;
|
|
629
|
-
taxAmount2?: string | undefined;
|
|
630
|
-
}[] | undefined;
|
|
631
|
-
customerId?: number | undefined;
|
|
632
|
-
createDate?: string | undefined;
|
|
633
|
-
notes?: string | undefined;
|
|
634
|
-
terms?: string | undefined;
|
|
635
|
-
discount?: {
|
|
636
|
-
amount: string;
|
|
637
|
-
code?: string | undefined;
|
|
638
|
-
} | undefined;
|
|
639
|
-
}, {
|
|
640
|
-
accountId: string;
|
|
641
|
-
invoiceId: number;
|
|
642
|
-
status?: "partial" | "draft" | "sent" | "viewed" | "paid" | "auto_paid" | "retry" | "failed" | "overdue" | "disputed" | undefined;
|
|
643
|
-
dueDate?: string | undefined;
|
|
644
|
-
currencyCode?: string | undefined;
|
|
645
|
-
lines?: {
|
|
646
|
-
name: string;
|
|
647
|
-
unitCost: {
|
|
648
|
-
amount: string;
|
|
649
|
-
code?: string | undefined;
|
|
650
|
-
};
|
|
651
|
-
description?: string | undefined;
|
|
652
|
-
qty?: number | undefined;
|
|
653
|
-
taxName1?: string | undefined;
|
|
654
|
-
taxAmount1?: string | undefined;
|
|
655
|
-
taxName2?: string | undefined;
|
|
656
|
-
taxAmount2?: string | undefined;
|
|
657
|
-
}[] | undefined;
|
|
658
|
-
customerId?: number | undefined;
|
|
659
|
-
createDate?: string | undefined;
|
|
660
|
-
notes?: string | undefined;
|
|
661
|
-
terms?: string | undefined;
|
|
662
|
-
discount?: {
|
|
663
|
-
amount: string;
|
|
664
|
-
code?: string | undefined;
|
|
665
|
-
} | undefined;
|
|
666
|
-
}>;
|
|
264
|
+
}, z.core.$strip>>;
|
|
265
|
+
}, z.core.$strip>;
|
|
667
266
|
/**
|
|
668
267
|
* Input schema for listing invoices
|
|
669
268
|
*/
|
|
@@ -672,56 +271,50 @@ export declare const InvoiceListInputSchema: z.ZodObject<{
|
|
|
672
271
|
page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
673
272
|
perPage: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
674
273
|
customerId: z.ZodOptional<z.ZodNumber>;
|
|
675
|
-
status: z.ZodOptional<z.ZodEnum<
|
|
676
|
-
|
|
274
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
275
|
+
partial: "partial";
|
|
276
|
+
draft: "draft";
|
|
277
|
+
sent: "sent";
|
|
278
|
+
viewed: "viewed";
|
|
279
|
+
paid: "paid";
|
|
280
|
+
auto_paid: "auto_paid";
|
|
281
|
+
retry: "retry";
|
|
282
|
+
failed: "failed";
|
|
283
|
+
overdue: "overdue";
|
|
284
|
+
disputed: "disputed";
|
|
285
|
+
}>>;
|
|
286
|
+
paymentStatus: z.ZodOptional<z.ZodEnum<{
|
|
287
|
+
partial: "partial";
|
|
288
|
+
paid: "paid";
|
|
289
|
+
auto_paid: "auto_paid";
|
|
290
|
+
unpaid: "unpaid";
|
|
291
|
+
}>>;
|
|
677
292
|
dateMin: z.ZodOptional<z.ZodString>;
|
|
678
293
|
dateMax: z.ZodOptional<z.ZodString>;
|
|
679
294
|
updatedSince: z.ZodOptional<z.ZodString>;
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
dateMax?: string | undefined;
|
|
697
|
-
updatedSince?: string | undefined;
|
|
698
|
-
}, {
|
|
699
|
-
accountId: string;
|
|
700
|
-
status?: "partial" | "draft" | "sent" | "viewed" | "paid" | "auto_paid" | "retry" | "failed" | "overdue" | "disputed" | undefined;
|
|
701
|
-
page?: number | undefined;
|
|
702
|
-
perPage?: number | undefined;
|
|
703
|
-
sortBy?: "amount" | "due_date" | "updated" | "create_date" | "outstanding" | undefined;
|
|
704
|
-
sortOrder?: "asc" | "desc" | undefined;
|
|
705
|
-
include?: ("lines" | "presentation")[] | undefined;
|
|
706
|
-
customerId?: number | undefined;
|
|
707
|
-
paymentStatus?: "partial" | "paid" | "auto_paid" | "unpaid" | undefined;
|
|
708
|
-
dateMin?: string | undefined;
|
|
709
|
-
dateMax?: string | undefined;
|
|
710
|
-
updatedSince?: string | undefined;
|
|
711
|
-
}>;
|
|
295
|
+
sortBy: z.ZodOptional<z.ZodEnum<{
|
|
296
|
+
amount: "amount";
|
|
297
|
+
due_date: "due_date";
|
|
298
|
+
updated: "updated";
|
|
299
|
+
create_date: "create_date";
|
|
300
|
+
outstanding: "outstanding";
|
|
301
|
+
}>>;
|
|
302
|
+
sortOrder: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
303
|
+
asc: "asc";
|
|
304
|
+
desc: "desc";
|
|
305
|
+
}>>>;
|
|
306
|
+
include: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
307
|
+
lines: "lines";
|
|
308
|
+
presentation: "presentation";
|
|
309
|
+
}>>>;
|
|
310
|
+
}, z.core.$strip>;
|
|
712
311
|
/**
|
|
713
312
|
* Input schema for getting a single invoice
|
|
714
313
|
*/
|
|
715
314
|
export declare const InvoiceSingleInputSchema: z.ZodObject<{
|
|
716
315
|
accountId: z.ZodString;
|
|
717
316
|
invoiceId: z.ZodNumber;
|
|
718
|
-
},
|
|
719
|
-
accountId: string;
|
|
720
|
-
invoiceId: number;
|
|
721
|
-
}, {
|
|
722
|
-
accountId: string;
|
|
723
|
-
invoiceId: number;
|
|
724
|
-
}>;
|
|
317
|
+
}, z.core.$strip>;
|
|
725
318
|
/**
|
|
726
319
|
* Input schema for deleting an invoice
|
|
727
320
|
*/
|
|
@@ -730,30 +323,14 @@ export declare const InvoiceDeleteInputSchema: z.ZodObject<{
|
|
|
730
323
|
invoiceId: z.ZodNumber;
|
|
731
324
|
confirmed: z.ZodOptional<z.ZodBoolean>;
|
|
732
325
|
confirmationId: z.ZodOptional<z.ZodString>;
|
|
733
|
-
},
|
|
734
|
-
accountId: string;
|
|
735
|
-
invoiceId: number;
|
|
736
|
-
confirmed?: boolean | undefined;
|
|
737
|
-
confirmationId?: string | undefined;
|
|
738
|
-
}, {
|
|
739
|
-
accountId: string;
|
|
740
|
-
invoiceId: number;
|
|
741
|
-
confirmed?: boolean | undefined;
|
|
742
|
-
confirmationId?: string | undefined;
|
|
743
|
-
}>;
|
|
326
|
+
}, z.core.$strip>;
|
|
744
327
|
/**
|
|
745
328
|
* Input schema for generating a share link
|
|
746
329
|
*/
|
|
747
330
|
export declare const InvoiceShareLinkInputSchema: z.ZodObject<{
|
|
748
331
|
accountId: z.ZodString;
|
|
749
332
|
invoiceId: z.ZodNumber;
|
|
750
|
-
},
|
|
751
|
-
accountId: string;
|
|
752
|
-
invoiceId: number;
|
|
753
|
-
}, {
|
|
754
|
-
accountId: string;
|
|
755
|
-
invoiceId: number;
|
|
756
|
-
}>;
|
|
333
|
+
}, z.core.$strip>;
|
|
757
334
|
/**
|
|
758
335
|
* Pagination metadata schema
|
|
759
336
|
*/
|
|
@@ -762,17 +339,7 @@ export declare const PaginationMetadataSchema: z.ZodObject<{
|
|
|
762
339
|
pages: z.ZodNumber;
|
|
763
340
|
perPage: z.ZodNumber;
|
|
764
341
|
total: z.ZodNumber;
|
|
765
|
-
},
|
|
766
|
-
page: number;
|
|
767
|
-
perPage: number;
|
|
768
|
-
pages: number;
|
|
769
|
-
total: number;
|
|
770
|
-
}, {
|
|
771
|
-
page: number;
|
|
772
|
-
perPage: number;
|
|
773
|
-
pages: number;
|
|
774
|
-
total: number;
|
|
775
|
-
}>;
|
|
342
|
+
}, z.core.$strip>;
|
|
776
343
|
/**
|
|
777
344
|
* Output schema for invoice list
|
|
778
345
|
*/
|
|
@@ -786,35 +353,33 @@ export declare const InvoiceListOutputSchema: z.ZodObject<{
|
|
|
786
353
|
amount: z.ZodObject<{
|
|
787
354
|
amount: z.ZodString;
|
|
788
355
|
code: z.ZodString;
|
|
789
|
-
},
|
|
790
|
-
code: string;
|
|
791
|
-
amount: string;
|
|
792
|
-
}, {
|
|
793
|
-
code: string;
|
|
794
|
-
amount: string;
|
|
795
|
-
}>;
|
|
356
|
+
}, z.core.$strip>;
|
|
796
357
|
outstanding: z.ZodObject<{
|
|
797
358
|
amount: z.ZodString;
|
|
798
359
|
code: z.ZodString;
|
|
799
|
-
},
|
|
800
|
-
code: string;
|
|
801
|
-
amount: string;
|
|
802
|
-
}, {
|
|
803
|
-
code: string;
|
|
804
|
-
amount: string;
|
|
805
|
-
}>;
|
|
360
|
+
}, z.core.$strip>;
|
|
806
361
|
paid: z.ZodObject<{
|
|
807
362
|
amount: z.ZodString;
|
|
808
363
|
code: z.ZodString;
|
|
809
|
-
},
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
364
|
+
}, z.core.$strip>;
|
|
365
|
+
status: z.ZodEnum<{
|
|
366
|
+
partial: "partial";
|
|
367
|
+
draft: "draft";
|
|
368
|
+
sent: "sent";
|
|
369
|
+
viewed: "viewed";
|
|
370
|
+
paid: "paid";
|
|
371
|
+
auto_paid: "auto_paid";
|
|
372
|
+
retry: "retry";
|
|
373
|
+
failed: "failed";
|
|
374
|
+
overdue: "overdue";
|
|
375
|
+
disputed: "disputed";
|
|
376
|
+
}>;
|
|
377
|
+
paymentStatus: z.ZodEnum<{
|
|
378
|
+
partial: "partial";
|
|
379
|
+
paid: "paid";
|
|
380
|
+
auto_paid: "auto_paid";
|
|
381
|
+
unpaid: "unpaid";
|
|
815
382
|
}>;
|
|
816
|
-
status: z.ZodEnum<["draft", "sent", "viewed", "partial", "paid", "auto_paid", "retry", "failed", "overdue", "disputed"]>;
|
|
817
|
-
paymentStatus: z.ZodEnum<["unpaid", "partial", "paid", "auto_paid"]>;
|
|
818
383
|
currencyCode: z.ZodString;
|
|
819
384
|
lines: z.ZodArray<z.ZodObject<{
|
|
820
385
|
name: z.ZodString;
|
|
@@ -823,72 +388,18 @@ export declare const InvoiceListOutputSchema: z.ZodObject<{
|
|
|
823
388
|
amount: z.ZodObject<{
|
|
824
389
|
amount: z.ZodString;
|
|
825
390
|
code: z.ZodString;
|
|
826
|
-
},
|
|
827
|
-
code: string;
|
|
828
|
-
amount: string;
|
|
829
|
-
}, {
|
|
830
|
-
code: string;
|
|
831
|
-
amount: string;
|
|
832
|
-
}>;
|
|
391
|
+
}, z.core.$strip>;
|
|
833
392
|
taxName1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
834
393
|
taxAmount1: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
835
394
|
amount: z.ZodString;
|
|
836
395
|
code: z.ZodString;
|
|
837
|
-
},
|
|
838
|
-
code: string;
|
|
839
|
-
amount: string;
|
|
840
|
-
}, {
|
|
841
|
-
code: string;
|
|
842
|
-
amount: string;
|
|
843
|
-
}>>>;
|
|
396
|
+
}, z.core.$strip>>>;
|
|
844
397
|
taxName2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
845
398
|
taxAmount2: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
846
399
|
amount: z.ZodString;
|
|
847
400
|
code: z.ZodString;
|
|
848
|
-
},
|
|
849
|
-
|
|
850
|
-
amount: string;
|
|
851
|
-
}, {
|
|
852
|
-
code: string;
|
|
853
|
-
amount: string;
|
|
854
|
-
}>>>;
|
|
855
|
-
}, "strip", z.ZodTypeAny, {
|
|
856
|
-
amount: {
|
|
857
|
-
code: string;
|
|
858
|
-
amount: string;
|
|
859
|
-
};
|
|
860
|
-
name: string;
|
|
861
|
-
qty: number;
|
|
862
|
-
description?: string | undefined;
|
|
863
|
-
taxName1?: string | null | undefined;
|
|
864
|
-
taxAmount1?: {
|
|
865
|
-
code: string;
|
|
866
|
-
amount: string;
|
|
867
|
-
} | null | undefined;
|
|
868
|
-
taxName2?: string | null | undefined;
|
|
869
|
-
taxAmount2?: {
|
|
870
|
-
code: string;
|
|
871
|
-
amount: string;
|
|
872
|
-
} | null | undefined;
|
|
873
|
-
}, {
|
|
874
|
-
amount: {
|
|
875
|
-
code: string;
|
|
876
|
-
amount: string;
|
|
877
|
-
};
|
|
878
|
-
name: string;
|
|
879
|
-
qty: number;
|
|
880
|
-
description?: string | undefined;
|
|
881
|
-
taxName1?: string | null | undefined;
|
|
882
|
-
taxAmount1?: {
|
|
883
|
-
code: string;
|
|
884
|
-
amount: string;
|
|
885
|
-
} | null | undefined;
|
|
886
|
-
taxName2?: string | null | undefined;
|
|
887
|
-
taxAmount2?: {
|
|
888
|
-
code: string;
|
|
889
|
-
amount: string;
|
|
890
|
-
} | null | undefined;
|
|
891
|
-
}>, "many">;
|
|
401
|
+
}, z.core.$strip>>>;
|
|
402
|
+
}, z.core.$strip>>;
|
|
892
403
|
notes: z.ZodOptional<z.ZodString>;
|
|
893
404
|
terms: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
894
405
|
organization: z.ZodOptional<z.ZodString>;
|
|
@@ -900,259 +411,17 @@ export declare const InvoiceListOutputSchema: z.ZodObject<{
|
|
|
900
411
|
province: z.ZodOptional<z.ZodString>;
|
|
901
412
|
code: z.ZodOptional<z.ZodString>;
|
|
902
413
|
country: z.ZodOptional<z.ZodString>;
|
|
903
|
-
visState: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
|
|
414
|
+
visState: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
|
|
904
415
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
905
416
|
updated: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
906
|
-
},
|
|
907
|
-
status: "partial" | "draft" | "sent" | "viewed" | "paid" | "auto_paid" | "retry" | "failed" | "overdue" | "disputed";
|
|
908
|
-
amount: {
|
|
909
|
-
code: string;
|
|
910
|
-
amount: string;
|
|
911
|
-
};
|
|
912
|
-
id: number;
|
|
913
|
-
currencyCode: string;
|
|
914
|
-
outstanding: {
|
|
915
|
-
code: string;
|
|
916
|
-
amount: string;
|
|
917
|
-
};
|
|
918
|
-
lines: {
|
|
919
|
-
amount: {
|
|
920
|
-
code: string;
|
|
921
|
-
amount: string;
|
|
922
|
-
};
|
|
923
|
-
name: string;
|
|
924
|
-
qty: number;
|
|
925
|
-
description?: string | undefined;
|
|
926
|
-
taxName1?: string | null | undefined;
|
|
927
|
-
taxAmount1?: {
|
|
928
|
-
code: string;
|
|
929
|
-
amount: string;
|
|
930
|
-
} | null | undefined;
|
|
931
|
-
taxName2?: string | null | undefined;
|
|
932
|
-
taxAmount2?: {
|
|
933
|
-
code: string;
|
|
934
|
-
amount: string;
|
|
935
|
-
} | null | undefined;
|
|
936
|
-
}[];
|
|
937
|
-
paid: {
|
|
938
|
-
code: string;
|
|
939
|
-
amount: string;
|
|
940
|
-
};
|
|
941
|
-
invoiceNumber: string;
|
|
942
|
-
customerId: number;
|
|
943
|
-
createDate: string;
|
|
944
|
-
paymentStatus: "partial" | "paid" | "auto_paid" | "unpaid";
|
|
945
|
-
code?: string | undefined;
|
|
946
|
-
createdAt?: string | undefined;
|
|
947
|
-
dueDate?: string | null | undefined;
|
|
948
|
-
visState?: 0 | 1 | 2 | undefined;
|
|
949
|
-
updated?: string | null | undefined;
|
|
950
|
-
organization?: string | undefined;
|
|
951
|
-
email?: string | undefined;
|
|
952
|
-
fName?: string | undefined;
|
|
953
|
-
lName?: string | undefined;
|
|
954
|
-
notes?: string | undefined;
|
|
955
|
-
terms?: string | null | undefined;
|
|
956
|
-
address?: string | undefined;
|
|
957
|
-
city?: string | undefined;
|
|
958
|
-
province?: string | undefined;
|
|
959
|
-
country?: string | undefined;
|
|
960
|
-
}, {
|
|
961
|
-
status: "partial" | "draft" | "sent" | "viewed" | "paid" | "auto_paid" | "retry" | "failed" | "overdue" | "disputed";
|
|
962
|
-
amount: {
|
|
963
|
-
code: string;
|
|
964
|
-
amount: string;
|
|
965
|
-
};
|
|
966
|
-
id: number;
|
|
967
|
-
currencyCode: string;
|
|
968
|
-
outstanding: {
|
|
969
|
-
code: string;
|
|
970
|
-
amount: string;
|
|
971
|
-
};
|
|
972
|
-
lines: {
|
|
973
|
-
amount: {
|
|
974
|
-
code: string;
|
|
975
|
-
amount: string;
|
|
976
|
-
};
|
|
977
|
-
name: string;
|
|
978
|
-
qty: number;
|
|
979
|
-
description?: string | undefined;
|
|
980
|
-
taxName1?: string | null | undefined;
|
|
981
|
-
taxAmount1?: {
|
|
982
|
-
code: string;
|
|
983
|
-
amount: string;
|
|
984
|
-
} | null | undefined;
|
|
985
|
-
taxName2?: string | null | undefined;
|
|
986
|
-
taxAmount2?: {
|
|
987
|
-
code: string;
|
|
988
|
-
amount: string;
|
|
989
|
-
} | null | undefined;
|
|
990
|
-
}[];
|
|
991
|
-
paid: {
|
|
992
|
-
code: string;
|
|
993
|
-
amount: string;
|
|
994
|
-
};
|
|
995
|
-
invoiceNumber: string;
|
|
996
|
-
customerId: number;
|
|
997
|
-
createDate: string;
|
|
998
|
-
paymentStatus: "partial" | "paid" | "auto_paid" | "unpaid";
|
|
999
|
-
code?: string | undefined;
|
|
1000
|
-
createdAt?: string | undefined;
|
|
1001
|
-
dueDate?: string | null | undefined;
|
|
1002
|
-
visState?: 0 | 1 | 2 | undefined;
|
|
1003
|
-
updated?: string | null | undefined;
|
|
1004
|
-
organization?: string | undefined;
|
|
1005
|
-
email?: string | undefined;
|
|
1006
|
-
fName?: string | undefined;
|
|
1007
|
-
lName?: string | undefined;
|
|
1008
|
-
notes?: string | undefined;
|
|
1009
|
-
terms?: string | null | undefined;
|
|
1010
|
-
address?: string | undefined;
|
|
1011
|
-
city?: string | undefined;
|
|
1012
|
-
province?: string | undefined;
|
|
1013
|
-
country?: string | undefined;
|
|
1014
|
-
}>, "many">;
|
|
417
|
+
}, z.core.$strip>>;
|
|
1015
418
|
pagination: z.ZodObject<{
|
|
1016
419
|
page: z.ZodNumber;
|
|
1017
420
|
pages: z.ZodNumber;
|
|
1018
421
|
perPage: z.ZodNumber;
|
|
1019
422
|
total: z.ZodNumber;
|
|
1020
|
-
},
|
|
1021
|
-
|
|
1022
|
-
perPage: number;
|
|
1023
|
-
pages: number;
|
|
1024
|
-
total: number;
|
|
1025
|
-
}, {
|
|
1026
|
-
page: number;
|
|
1027
|
-
perPage: number;
|
|
1028
|
-
pages: number;
|
|
1029
|
-
total: number;
|
|
1030
|
-
}>;
|
|
1031
|
-
}, "strip", z.ZodTypeAny, {
|
|
1032
|
-
pagination: {
|
|
1033
|
-
page: number;
|
|
1034
|
-
perPage: number;
|
|
1035
|
-
pages: number;
|
|
1036
|
-
total: number;
|
|
1037
|
-
};
|
|
1038
|
-
invoices: {
|
|
1039
|
-
status: "partial" | "draft" | "sent" | "viewed" | "paid" | "auto_paid" | "retry" | "failed" | "overdue" | "disputed";
|
|
1040
|
-
amount: {
|
|
1041
|
-
code: string;
|
|
1042
|
-
amount: string;
|
|
1043
|
-
};
|
|
1044
|
-
id: number;
|
|
1045
|
-
currencyCode: string;
|
|
1046
|
-
outstanding: {
|
|
1047
|
-
code: string;
|
|
1048
|
-
amount: string;
|
|
1049
|
-
};
|
|
1050
|
-
lines: {
|
|
1051
|
-
amount: {
|
|
1052
|
-
code: string;
|
|
1053
|
-
amount: string;
|
|
1054
|
-
};
|
|
1055
|
-
name: string;
|
|
1056
|
-
qty: number;
|
|
1057
|
-
description?: string | undefined;
|
|
1058
|
-
taxName1?: string | null | undefined;
|
|
1059
|
-
taxAmount1?: {
|
|
1060
|
-
code: string;
|
|
1061
|
-
amount: string;
|
|
1062
|
-
} | null | undefined;
|
|
1063
|
-
taxName2?: string | null | undefined;
|
|
1064
|
-
taxAmount2?: {
|
|
1065
|
-
code: string;
|
|
1066
|
-
amount: string;
|
|
1067
|
-
} | null | undefined;
|
|
1068
|
-
}[];
|
|
1069
|
-
paid: {
|
|
1070
|
-
code: string;
|
|
1071
|
-
amount: string;
|
|
1072
|
-
};
|
|
1073
|
-
invoiceNumber: string;
|
|
1074
|
-
customerId: number;
|
|
1075
|
-
createDate: string;
|
|
1076
|
-
paymentStatus: "partial" | "paid" | "auto_paid" | "unpaid";
|
|
1077
|
-
code?: string | undefined;
|
|
1078
|
-
createdAt?: string | undefined;
|
|
1079
|
-
dueDate?: string | null | undefined;
|
|
1080
|
-
visState?: 0 | 1 | 2 | undefined;
|
|
1081
|
-
updated?: string | null | undefined;
|
|
1082
|
-
organization?: string | undefined;
|
|
1083
|
-
email?: string | undefined;
|
|
1084
|
-
fName?: string | undefined;
|
|
1085
|
-
lName?: string | undefined;
|
|
1086
|
-
notes?: string | undefined;
|
|
1087
|
-
terms?: string | null | undefined;
|
|
1088
|
-
address?: string | undefined;
|
|
1089
|
-
city?: string | undefined;
|
|
1090
|
-
province?: string | undefined;
|
|
1091
|
-
country?: string | undefined;
|
|
1092
|
-
}[];
|
|
1093
|
-
}, {
|
|
1094
|
-
pagination: {
|
|
1095
|
-
page: number;
|
|
1096
|
-
perPage: number;
|
|
1097
|
-
pages: number;
|
|
1098
|
-
total: number;
|
|
1099
|
-
};
|
|
1100
|
-
invoices: {
|
|
1101
|
-
status: "partial" | "draft" | "sent" | "viewed" | "paid" | "auto_paid" | "retry" | "failed" | "overdue" | "disputed";
|
|
1102
|
-
amount: {
|
|
1103
|
-
code: string;
|
|
1104
|
-
amount: string;
|
|
1105
|
-
};
|
|
1106
|
-
id: number;
|
|
1107
|
-
currencyCode: string;
|
|
1108
|
-
outstanding: {
|
|
1109
|
-
code: string;
|
|
1110
|
-
amount: string;
|
|
1111
|
-
};
|
|
1112
|
-
lines: {
|
|
1113
|
-
amount: {
|
|
1114
|
-
code: string;
|
|
1115
|
-
amount: string;
|
|
1116
|
-
};
|
|
1117
|
-
name: string;
|
|
1118
|
-
qty: number;
|
|
1119
|
-
description?: string | undefined;
|
|
1120
|
-
taxName1?: string | null | undefined;
|
|
1121
|
-
taxAmount1?: {
|
|
1122
|
-
code: string;
|
|
1123
|
-
amount: string;
|
|
1124
|
-
} | null | undefined;
|
|
1125
|
-
taxName2?: string | null | undefined;
|
|
1126
|
-
taxAmount2?: {
|
|
1127
|
-
code: string;
|
|
1128
|
-
amount: string;
|
|
1129
|
-
} | null | undefined;
|
|
1130
|
-
}[];
|
|
1131
|
-
paid: {
|
|
1132
|
-
code: string;
|
|
1133
|
-
amount: string;
|
|
1134
|
-
};
|
|
1135
|
-
invoiceNumber: string;
|
|
1136
|
-
customerId: number;
|
|
1137
|
-
createDate: string;
|
|
1138
|
-
paymentStatus: "partial" | "paid" | "auto_paid" | "unpaid";
|
|
1139
|
-
code?: string | undefined;
|
|
1140
|
-
createdAt?: string | undefined;
|
|
1141
|
-
dueDate?: string | null | undefined;
|
|
1142
|
-
visState?: 0 | 1 | 2 | undefined;
|
|
1143
|
-
updated?: string | null | undefined;
|
|
1144
|
-
organization?: string | undefined;
|
|
1145
|
-
email?: string | undefined;
|
|
1146
|
-
fName?: string | undefined;
|
|
1147
|
-
lName?: string | undefined;
|
|
1148
|
-
notes?: string | undefined;
|
|
1149
|
-
terms?: string | null | undefined;
|
|
1150
|
-
address?: string | undefined;
|
|
1151
|
-
city?: string | undefined;
|
|
1152
|
-
province?: string | undefined;
|
|
1153
|
-
country?: string | undefined;
|
|
1154
|
-
}[];
|
|
1155
|
-
}>;
|
|
423
|
+
}, z.core.$strip>;
|
|
424
|
+
}, z.core.$strip>;
|
|
1156
425
|
/**
|
|
1157
426
|
* Output schema for single invoice operations
|
|
1158
427
|
*/
|
|
@@ -1165,35 +434,33 @@ export declare const InvoiceSingleOutputSchema: z.ZodObject<{
|
|
|
1165
434
|
amount: z.ZodObject<{
|
|
1166
435
|
amount: z.ZodString;
|
|
1167
436
|
code: z.ZodString;
|
|
1168
|
-
},
|
|
1169
|
-
code: string;
|
|
1170
|
-
amount: string;
|
|
1171
|
-
}, {
|
|
1172
|
-
code: string;
|
|
1173
|
-
amount: string;
|
|
1174
|
-
}>;
|
|
437
|
+
}, z.core.$strip>;
|
|
1175
438
|
outstanding: z.ZodObject<{
|
|
1176
439
|
amount: z.ZodString;
|
|
1177
440
|
code: z.ZodString;
|
|
1178
|
-
},
|
|
1179
|
-
code: string;
|
|
1180
|
-
amount: string;
|
|
1181
|
-
}, {
|
|
1182
|
-
code: string;
|
|
1183
|
-
amount: string;
|
|
1184
|
-
}>;
|
|
441
|
+
}, z.core.$strip>;
|
|
1185
442
|
paid: z.ZodObject<{
|
|
1186
443
|
amount: z.ZodString;
|
|
1187
444
|
code: z.ZodString;
|
|
1188
|
-
},
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
445
|
+
}, z.core.$strip>;
|
|
446
|
+
status: z.ZodEnum<{
|
|
447
|
+
partial: "partial";
|
|
448
|
+
draft: "draft";
|
|
449
|
+
sent: "sent";
|
|
450
|
+
viewed: "viewed";
|
|
451
|
+
paid: "paid";
|
|
452
|
+
auto_paid: "auto_paid";
|
|
453
|
+
retry: "retry";
|
|
454
|
+
failed: "failed";
|
|
455
|
+
overdue: "overdue";
|
|
456
|
+
disputed: "disputed";
|
|
457
|
+
}>;
|
|
458
|
+
paymentStatus: z.ZodEnum<{
|
|
459
|
+
partial: "partial";
|
|
460
|
+
paid: "paid";
|
|
461
|
+
auto_paid: "auto_paid";
|
|
462
|
+
unpaid: "unpaid";
|
|
1194
463
|
}>;
|
|
1195
|
-
status: z.ZodEnum<["draft", "sent", "viewed", "partial", "paid", "auto_paid", "retry", "failed", "overdue", "disputed"]>;
|
|
1196
|
-
paymentStatus: z.ZodEnum<["unpaid", "partial", "paid", "auto_paid"]>;
|
|
1197
464
|
currencyCode: z.ZodString;
|
|
1198
465
|
lines: z.ZodArray<z.ZodObject<{
|
|
1199
466
|
name: z.ZodString;
|
|
@@ -1202,72 +469,18 @@ export declare const InvoiceSingleOutputSchema: z.ZodObject<{
|
|
|
1202
469
|
amount: z.ZodObject<{
|
|
1203
470
|
amount: z.ZodString;
|
|
1204
471
|
code: z.ZodString;
|
|
1205
|
-
},
|
|
1206
|
-
code: string;
|
|
1207
|
-
amount: string;
|
|
1208
|
-
}, {
|
|
1209
|
-
code: string;
|
|
1210
|
-
amount: string;
|
|
1211
|
-
}>;
|
|
472
|
+
}, z.core.$strip>;
|
|
1212
473
|
taxName1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1213
474
|
taxAmount1: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1214
475
|
amount: z.ZodString;
|
|
1215
476
|
code: z.ZodString;
|
|
1216
|
-
},
|
|
1217
|
-
code: string;
|
|
1218
|
-
amount: string;
|
|
1219
|
-
}, {
|
|
1220
|
-
code: string;
|
|
1221
|
-
amount: string;
|
|
1222
|
-
}>>>;
|
|
477
|
+
}, z.core.$strip>>>;
|
|
1223
478
|
taxName2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1224
479
|
taxAmount2: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1225
480
|
amount: z.ZodString;
|
|
1226
481
|
code: z.ZodString;
|
|
1227
|
-
},
|
|
1228
|
-
|
|
1229
|
-
amount: string;
|
|
1230
|
-
}, {
|
|
1231
|
-
code: string;
|
|
1232
|
-
amount: string;
|
|
1233
|
-
}>>>;
|
|
1234
|
-
}, "strip", z.ZodTypeAny, {
|
|
1235
|
-
amount: {
|
|
1236
|
-
code: string;
|
|
1237
|
-
amount: string;
|
|
1238
|
-
};
|
|
1239
|
-
name: string;
|
|
1240
|
-
qty: number;
|
|
1241
|
-
description?: string | undefined;
|
|
1242
|
-
taxName1?: string | null | undefined;
|
|
1243
|
-
taxAmount1?: {
|
|
1244
|
-
code: string;
|
|
1245
|
-
amount: string;
|
|
1246
|
-
} | null | undefined;
|
|
1247
|
-
taxName2?: string | null | undefined;
|
|
1248
|
-
taxAmount2?: {
|
|
1249
|
-
code: string;
|
|
1250
|
-
amount: string;
|
|
1251
|
-
} | null | undefined;
|
|
1252
|
-
}, {
|
|
1253
|
-
amount: {
|
|
1254
|
-
code: string;
|
|
1255
|
-
amount: string;
|
|
1256
|
-
};
|
|
1257
|
-
name: string;
|
|
1258
|
-
qty: number;
|
|
1259
|
-
description?: string | undefined;
|
|
1260
|
-
taxName1?: string | null | undefined;
|
|
1261
|
-
taxAmount1?: {
|
|
1262
|
-
code: string;
|
|
1263
|
-
amount: string;
|
|
1264
|
-
} | null | undefined;
|
|
1265
|
-
taxName2?: string | null | undefined;
|
|
1266
|
-
taxAmount2?: {
|
|
1267
|
-
code: string;
|
|
1268
|
-
amount: string;
|
|
1269
|
-
} | null | undefined;
|
|
1270
|
-
}>, "many">;
|
|
482
|
+
}, z.core.$strip>>>;
|
|
483
|
+
}, z.core.$strip>>;
|
|
1271
484
|
notes: z.ZodOptional<z.ZodString>;
|
|
1272
485
|
terms: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1273
486
|
organization: z.ZodOptional<z.ZodString>;
|
|
@@ -1279,142 +492,22 @@ export declare const InvoiceSingleOutputSchema: z.ZodObject<{
|
|
|
1279
492
|
province: z.ZodOptional<z.ZodString>;
|
|
1280
493
|
code: z.ZodOptional<z.ZodString>;
|
|
1281
494
|
country: z.ZodOptional<z.ZodString>;
|
|
1282
|
-
visState: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
|
|
495
|
+
visState: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
|
|
1283
496
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
1284
497
|
updated: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1285
|
-
},
|
|
1286
|
-
status: "partial" | "draft" | "sent" | "viewed" | "paid" | "auto_paid" | "retry" | "failed" | "overdue" | "disputed";
|
|
1287
|
-
amount: {
|
|
1288
|
-
code: string;
|
|
1289
|
-
amount: string;
|
|
1290
|
-
};
|
|
1291
|
-
id: number;
|
|
1292
|
-
currencyCode: string;
|
|
1293
|
-
outstanding: {
|
|
1294
|
-
code: string;
|
|
1295
|
-
amount: string;
|
|
1296
|
-
};
|
|
1297
|
-
lines: {
|
|
1298
|
-
amount: {
|
|
1299
|
-
code: string;
|
|
1300
|
-
amount: string;
|
|
1301
|
-
};
|
|
1302
|
-
name: string;
|
|
1303
|
-
qty: number;
|
|
1304
|
-
description?: string | undefined;
|
|
1305
|
-
taxName1?: string | null | undefined;
|
|
1306
|
-
taxAmount1?: {
|
|
1307
|
-
code: string;
|
|
1308
|
-
amount: string;
|
|
1309
|
-
} | null | undefined;
|
|
1310
|
-
taxName2?: string | null | undefined;
|
|
1311
|
-
taxAmount2?: {
|
|
1312
|
-
code: string;
|
|
1313
|
-
amount: string;
|
|
1314
|
-
} | null | undefined;
|
|
1315
|
-
}[];
|
|
1316
|
-
paid: {
|
|
1317
|
-
code: string;
|
|
1318
|
-
amount: string;
|
|
1319
|
-
};
|
|
1320
|
-
invoiceNumber: string;
|
|
1321
|
-
customerId: number;
|
|
1322
|
-
createDate: string;
|
|
1323
|
-
paymentStatus: "partial" | "paid" | "auto_paid" | "unpaid";
|
|
1324
|
-
code?: string | undefined;
|
|
1325
|
-
createdAt?: string | undefined;
|
|
1326
|
-
dueDate?: string | null | undefined;
|
|
1327
|
-
visState?: 0 | 1 | 2 | undefined;
|
|
1328
|
-
updated?: string | null | undefined;
|
|
1329
|
-
organization?: string | undefined;
|
|
1330
|
-
email?: string | undefined;
|
|
1331
|
-
fName?: string | undefined;
|
|
1332
|
-
lName?: string | undefined;
|
|
1333
|
-
notes?: string | undefined;
|
|
1334
|
-
terms?: string | null | undefined;
|
|
1335
|
-
address?: string | undefined;
|
|
1336
|
-
city?: string | undefined;
|
|
1337
|
-
province?: string | undefined;
|
|
1338
|
-
country?: string | undefined;
|
|
1339
|
-
}, {
|
|
1340
|
-
status: "partial" | "draft" | "sent" | "viewed" | "paid" | "auto_paid" | "retry" | "failed" | "overdue" | "disputed";
|
|
1341
|
-
amount: {
|
|
1342
|
-
code: string;
|
|
1343
|
-
amount: string;
|
|
1344
|
-
};
|
|
1345
|
-
id: number;
|
|
1346
|
-
currencyCode: string;
|
|
1347
|
-
outstanding: {
|
|
1348
|
-
code: string;
|
|
1349
|
-
amount: string;
|
|
1350
|
-
};
|
|
1351
|
-
lines: {
|
|
1352
|
-
amount: {
|
|
1353
|
-
code: string;
|
|
1354
|
-
amount: string;
|
|
1355
|
-
};
|
|
1356
|
-
name: string;
|
|
1357
|
-
qty: number;
|
|
1358
|
-
description?: string | undefined;
|
|
1359
|
-
taxName1?: string | null | undefined;
|
|
1360
|
-
taxAmount1?: {
|
|
1361
|
-
code: string;
|
|
1362
|
-
amount: string;
|
|
1363
|
-
} | null | undefined;
|
|
1364
|
-
taxName2?: string | null | undefined;
|
|
1365
|
-
taxAmount2?: {
|
|
1366
|
-
code: string;
|
|
1367
|
-
amount: string;
|
|
1368
|
-
} | null | undefined;
|
|
1369
|
-
}[];
|
|
1370
|
-
paid: {
|
|
1371
|
-
code: string;
|
|
1372
|
-
amount: string;
|
|
1373
|
-
};
|
|
1374
|
-
invoiceNumber: string;
|
|
1375
|
-
customerId: number;
|
|
1376
|
-
createDate: string;
|
|
1377
|
-
paymentStatus: "partial" | "paid" | "auto_paid" | "unpaid";
|
|
1378
|
-
code?: string | undefined;
|
|
1379
|
-
createdAt?: string | undefined;
|
|
1380
|
-
dueDate?: string | null | undefined;
|
|
1381
|
-
visState?: 0 | 1 | 2 | undefined;
|
|
1382
|
-
updated?: string | null | undefined;
|
|
1383
|
-
organization?: string | undefined;
|
|
1384
|
-
email?: string | undefined;
|
|
1385
|
-
fName?: string | undefined;
|
|
1386
|
-
lName?: string | undefined;
|
|
1387
|
-
notes?: string | undefined;
|
|
1388
|
-
terms?: string | null | undefined;
|
|
1389
|
-
address?: string | undefined;
|
|
1390
|
-
city?: string | undefined;
|
|
1391
|
-
province?: string | undefined;
|
|
1392
|
-
country?: string | undefined;
|
|
1393
|
-
}>;
|
|
498
|
+
}, z.core.$strip>;
|
|
1394
499
|
/**
|
|
1395
500
|
* Output schema for invoice deletion
|
|
1396
501
|
*/
|
|
1397
502
|
export declare const InvoiceDeleteOutputSchema: z.ZodObject<{
|
|
1398
503
|
success: z.ZodBoolean;
|
|
1399
504
|
invoiceId: z.ZodNumber;
|
|
1400
|
-
},
|
|
1401
|
-
success: boolean;
|
|
1402
|
-
invoiceId: number;
|
|
1403
|
-
}, {
|
|
1404
|
-
success: boolean;
|
|
1405
|
-
invoiceId: number;
|
|
1406
|
-
}>;
|
|
505
|
+
}, z.core.$strip>;
|
|
1407
506
|
/**
|
|
1408
507
|
* Output schema for share link generation
|
|
1409
508
|
*/
|
|
1410
509
|
export declare const InvoiceShareLinkOutputSchema: z.ZodObject<{
|
|
1411
510
|
shareLink: z.ZodString;
|
|
1412
511
|
invoiceId: z.ZodNumber;
|
|
1413
|
-
},
|
|
1414
|
-
invoiceId: number;
|
|
1415
|
-
shareLink: string;
|
|
1416
|
-
}, {
|
|
1417
|
-
invoiceId: number;
|
|
1418
|
-
shareLink: string;
|
|
1419
|
-
}>;
|
|
512
|
+
}, z.core.$strip>;
|
|
1420
513
|
//# sourceMappingURL=schemas.d.ts.map
|