@goodsamsoftware/freshbooks-mcp 1.0.1 → 1.0.2
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/auth/confirmation-store.d.ts +94 -0
- package/dist/auth/confirmation-store.d.ts.map +1 -0
- package/dist/auth/confirmation-store.js +126 -0
- package/dist/auth/confirmation-store.js.map +1 -0
- package/dist/auth/state-store.d.ts +96 -0
- package/dist/auth/state-store.d.ts.map +1 -0
- package/dist/auth/state-store.js +122 -0
- package/dist/auth/state-store.js.map +1 -0
- package/dist/auth/types.d.ts +1 -1
- package/dist/auth/types.d.ts.map +1 -1
- package/dist/auth/types.js.map +1 -1
- package/dist/config/environment.d.ts +25 -0
- package/dist/config/environment.d.ts.map +1 -0
- package/dist/config/environment.js +39 -0
- package/dist/config/environment.js.map +1 -0
- package/dist/errors/error-handler.d.ts.map +1 -1
- package/dist/errors/error-handler.js +18 -5
- package/dist/errors/error-handler.js.map +1 -1
- package/dist/errors/response-formatter.d.ts +3 -2
- package/dist/errors/response-formatter.d.ts.map +1 -1
- package/dist/errors/response-formatter.js +19 -2
- package/dist/errors/response-formatter.js.map +1 -1
- package/dist/server.js +85 -11
- package/dist/server.js.map +1 -1
- package/dist/tools/base-tool.d.ts +2 -2
- package/dist/tools/bill/bill-create.d.ts +4 -4
- package/dist/tools/bill/bill-delete.d.ts +6 -0
- package/dist/tools/bill/bill-delete.d.ts.map +1 -1
- package/dist/tools/bill/bill-list.d.ts +12 -12
- package/dist/tools/bill/bill-single.d.ts +4 -4
- package/dist/tools/bill/schemas.d.ts +28 -22
- package/dist/tools/bill/schemas.d.ts.map +1 -1
- package/dist/tools/bill/schemas.js +2 -0
- package/dist/tools/bill/schemas.js.map +1 -1
- package/dist/tools/bill-payment/billpayment-create.d.ts +4 -4
- package/dist/tools/bill-payment/billpayment-delete.d.ts +6 -0
- package/dist/tools/bill-payment/billpayment-delete.d.ts.map +1 -1
- package/dist/tools/bill-payment/billpayment-list.d.ts +12 -12
- package/dist/tools/bill-payment/billpayment-single.d.ts +4 -4
- package/dist/tools/bill-payment/billpayment-update.d.ts +4 -4
- package/dist/tools/bill-payment/schemas.d.ts +28 -22
- package/dist/tools/bill-payment/schemas.d.ts.map +1 -1
- package/dist/tools/bill-payment/schemas.js +2 -0
- package/dist/tools/bill-payment/schemas.js.map +1 -1
- package/dist/tools/bill-vendor/billvendor-create.d.ts +6 -6
- package/dist/tools/bill-vendor/billvendor-delete.d.ts +6 -0
- package/dist/tools/bill-vendor/billvendor-delete.d.ts.map +1 -1
- package/dist/tools/bill-vendor/billvendor-list.d.ts +14 -14
- package/dist/tools/bill-vendor/billvendor-single.d.ts +4 -4
- package/dist/tools/bill-vendor/billvendor-update.d.ts +6 -6
- package/dist/tools/bill-vendor/schemas.d.ts +34 -28
- package/dist/tools/bill-vendor/schemas.d.ts.map +1 -1
- package/dist/tools/bill-vendor/schemas.js +2 -0
- package/dist/tools/bill-vendor/schemas.js.map +1 -1
- package/dist/tools/callback/callback-create.d.ts +6 -6
- package/dist/tools/callback/callback-delete.d.ts +6 -0
- package/dist/tools/callback/callback-delete.d.ts.map +1 -1
- package/dist/tools/callback/callback-list.d.ts +12 -12
- package/dist/tools/callback/callback-resend-verification.d.ts +4 -4
- package/dist/tools/callback/callback-single.d.ts +4 -4
- package/dist/tools/callback/callback-update.d.ts +6 -6
- package/dist/tools/callback/schemas.d.ts +32 -26
- package/dist/tools/callback/schemas.d.ts.map +1 -1
- package/dist/tools/callback/schemas.js +2 -0
- package/dist/tools/callback/schemas.js.map +1 -1
- package/dist/tools/client/client-create.d.ts +2 -2
- package/dist/tools/client/client-delete.d.ts +8 -2
- package/dist/tools/client/client-delete.d.ts.map +1 -1
- package/dist/tools/client/client-list.d.ts +9 -9
- package/dist/tools/client/client-update.d.ts +2 -2
- package/dist/tools/client/schemas.d.ts +26 -20
- package/dist/tools/client/schemas.d.ts.map +1 -1
- package/dist/tools/client/schemas.js +2 -0
- package/dist/tools/client/schemas.js.map +1 -1
- package/dist/tools/credit-note/creditnote-create.d.ts +10 -10
- package/dist/tools/credit-note/creditnote-delete.d.ts +6 -0
- package/dist/tools/credit-note/creditnote-delete.d.ts.map +1 -1
- package/dist/tools/credit-note/creditnote-list.d.ts +14 -14
- package/dist/tools/credit-note/creditnote-single.d.ts +6 -6
- package/dist/tools/credit-note/creditnote-update.d.ts +10 -10
- package/dist/tools/credit-note/schemas.d.ts +42 -36
- package/dist/tools/credit-note/schemas.d.ts.map +1 -1
- package/dist/tools/credit-note/schemas.js +2 -0
- package/dist/tools/credit-note/schemas.js.map +1 -1
- package/dist/tools/expense/expense-create.d.ts +2 -2
- package/dist/tools/expense/expense-delete.d.ts +6 -0
- package/dist/tools/expense/expense-delete.d.ts.map +1 -1
- package/dist/tools/expense/expense-list.d.ts +8 -8
- package/dist/tools/expense/expense-single.d.ts +2 -2
- package/dist/tools/expense/expense-update.d.ts +2 -2
- package/dist/tools/expense/expense-update.d.ts.map +1 -1
- package/dist/tools/expense/expense-update.js +88 -63
- package/dist/tools/expense/expense-update.js.map +1 -1
- package/dist/tools/expense/schemas.d.ts +18 -12
- package/dist/tools/expense/schemas.d.ts.map +1 -1
- package/dist/tools/expense/schemas.js +2 -0
- package/dist/tools/expense/schemas.js.map +1 -1
- package/dist/tools/expense-category/expensecategory-list.d.ts +4 -4
- package/dist/tools/expense-category/schemas.d.ts +4 -4
- package/dist/tools/invoice/invoice-create.d.ts +10 -10
- package/dist/tools/invoice/invoice-delete.d.ts +6 -0
- package/dist/tools/invoice/invoice-delete.d.ts.map +1 -1
- package/dist/tools/invoice/invoice-list.d.ts +24 -24
- package/dist/tools/invoice/invoice-single.d.ts +10 -10
- package/dist/tools/invoice/invoice-update.d.ts +12 -12
- package/dist/tools/invoice/schemas.d.ts +56 -50
- package/dist/tools/invoice/schemas.d.ts.map +1 -1
- package/dist/tools/invoice/schemas.js +2 -0
- package/dist/tools/invoice/schemas.js.map +1 -1
- package/dist/tools/item/item-create.d.ts +8 -8
- package/dist/tools/item/item-list.d.ts +18 -18
- package/dist/tools/item/item-single.d.ts +6 -6
- package/dist/tools/item/item-update.d.ts +10 -10
- package/dist/tools/item/schemas.d.ts +38 -38
- package/dist/tools/journal-entry/journalentry-create.d.ts +4 -4
- package/dist/tools/journal-entry/schemas.d.ts +8 -8
- package/dist/tools/journal-entry-account/journalentryaccount-list.d.ts +14 -14
- package/dist/tools/journal-entry-account/schemas.d.ts +24 -24
- package/dist/tools/metadata.d.ts +13 -1
- package/dist/tools/metadata.d.ts.map +1 -1
- package/dist/tools/metadata.js +68 -1
- package/dist/tools/metadata.js.map +1 -1
- package/dist/tools/other-income/otherincome-create.d.ts +10 -10
- package/dist/tools/other-income/otherincome-delete.d.ts +6 -0
- package/dist/tools/other-income/otherincome-delete.d.ts.map +1 -1
- package/dist/tools/other-income/otherincome-list.d.ts +14 -14
- package/dist/tools/other-income/otherincome-single.d.ts +6 -6
- package/dist/tools/other-income/otherincome-update.d.ts +10 -10
- package/dist/tools/other-income/schemas.d.ts +40 -34
- package/dist/tools/other-income/schemas.d.ts.map +1 -1
- package/dist/tools/other-income/schemas.js +2 -0
- package/dist/tools/other-income/schemas.js.map +1 -1
- package/dist/tools/payment/payment-create.d.ts +2 -2
- package/dist/tools/payment/payment-delete.d.ts +6 -0
- package/dist/tools/payment/payment-delete.d.ts.map +1 -1
- package/dist/tools/payment/payment-list.d.ts +8 -8
- package/dist/tools/payment/payment-single.d.ts +2 -2
- package/dist/tools/payment/payment-update.d.ts +2 -2
- package/dist/tools/payment/schemas.d.ts +18 -12
- package/dist/tools/payment/schemas.d.ts.map +1 -1
- package/dist/tools/payment/schemas.js +3 -1
- package/dist/tools/payment/schemas.js.map +1 -1
- package/dist/tools/project/project-create.d.ts +8 -8
- package/dist/tools/project/project-delete.d.ts +8 -2
- package/dist/tools/project/project-delete.d.ts.map +1 -1
- package/dist/tools/project/project-list.d.ts +21 -21
- package/dist/tools/project/project-single.d.ts +6 -6
- package/dist/tools/project/project-update.d.ts +10 -10
- package/dist/tools/project/schemas.d.ts +52 -46
- package/dist/tools/project/schemas.d.ts.map +1 -1
- package/dist/tools/project/schemas.js +2 -0
- package/dist/tools/project/schemas.js.map +1 -1
- package/dist/tools/service/schemas.d.ts +11 -11
- package/dist/tools/service/service-create.d.ts +2 -2
- package/dist/tools/service/service-list.d.ts +8 -8
- package/dist/tools/task/schemas.d.ts +34 -28
- package/dist/tools/task/schemas.d.ts.map +1 -1
- package/dist/tools/task/schemas.js +2 -0
- package/dist/tools/task/schemas.js.map +1 -1
- package/dist/tools/task/task-create.d.ts +6 -6
- package/dist/tools/task/task-delete.d.ts +6 -0
- package/dist/tools/task/task-delete.d.ts.map +1 -1
- package/dist/tools/task/task-list.d.ts +18 -18
- package/dist/tools/task/task-single.d.ts +4 -4
- package/dist/tools/task/task-update.d.ts +8 -8
- package/dist/tools/time-entry/schemas.d.ts +42 -36
- package/dist/tools/time-entry/schemas.d.ts.map +1 -1
- package/dist/tools/time-entry/schemas.js +2 -0
- package/dist/tools/time-entry/schemas.js.map +1 -1
- package/dist/tools/time-entry/timeentry-create.d.ts +6 -6
- package/dist/tools/time-entry/timeentry-delete.d.ts +8 -2
- package/dist/tools/time-entry/timeentry-delete.d.ts.map +1 -1
- package/dist/tools/time-entry/timeentry-list.d.ts +17 -17
- package/dist/tools/time-entry/timeentry-single.d.ts +4 -4
- package/dist/tools/time-entry/timeentry-update.d.ts +6 -6
- package/dist/tools/timer/schemas.d.ts +30 -24
- package/dist/tools/timer/schemas.d.ts.map +1 -1
- package/dist/tools/timer/schemas.js +2 -0
- package/dist/tools/timer/schemas.js.map +1 -1
- package/dist/tools/timer/timer-current.d.ts +8 -8
- package/dist/tools/timer/timer-discard.d.ts +8 -2
- package/dist/tools/timer/timer-discard.d.ts.map +1 -1
- package/dist/tools/timer/timer-start.d.ts +6 -6
- package/dist/tools/timer/timer-stop.d.ts +4 -4
- package/dist/tools/types.d.ts +16 -0
- package/dist/tools/types.d.ts.map +1 -1
- package/dist/tools/types.js.map +1 -1
- package/dist/tools/user/schemas.d.ts +14 -14
- package/dist/tools/user/user-me.d.ts +6 -6
- package/dist/utils/logger.d.ts +9 -0
- package/dist/utils/logger.d.ts.map +1 -1
- package/dist/utils/logger.js +114 -20
- package/dist/utils/logger.js.map +1 -1
- package/dist/utils/sanitizer.d.ts +49 -0
- package/dist/utils/sanitizer.d.ts.map +1 -0
- package/dist/utils/sanitizer.js +163 -0
- package/dist/utils/sanitizer.js.map +1 -0
- package/package.json +2 -2
|
@@ -21,17 +21,17 @@ export declare const itemListTool: {
|
|
|
21
21
|
sku: z.ZodOptional<z.ZodString>;
|
|
22
22
|
}, "strip", z.ZodTypeAny, {
|
|
23
23
|
accountId: string;
|
|
24
|
-
name?: string | undefined;
|
|
25
24
|
type?: "service" | "discount" | "product" | undefined;
|
|
26
25
|
page?: number | undefined;
|
|
27
26
|
perPage?: number | undefined;
|
|
27
|
+
name?: string | undefined;
|
|
28
28
|
sku?: string | undefined;
|
|
29
29
|
}, {
|
|
30
30
|
accountId: string;
|
|
31
|
-
name?: string | undefined;
|
|
32
31
|
type?: "service" | "discount" | "product" | undefined;
|
|
33
32
|
page?: number | undefined;
|
|
34
33
|
perPage?: number | undefined;
|
|
34
|
+
name?: string | undefined;
|
|
35
35
|
sku?: string | undefined;
|
|
36
36
|
}>;
|
|
37
37
|
outputSchema: z.ZodObject<{
|
|
@@ -61,16 +61,16 @@ export declare const itemListTool: {
|
|
|
61
61
|
createdAt: z.ZodString;
|
|
62
62
|
updatedAt: z.ZodString;
|
|
63
63
|
}, "strip", z.ZodTypeAny, {
|
|
64
|
-
description: string | null;
|
|
65
|
-
name: string;
|
|
66
64
|
type: "service" | "discount" | "product";
|
|
67
|
-
createdAt: string;
|
|
68
65
|
id: number;
|
|
66
|
+
createdAt: string;
|
|
67
|
+
description: string | null;
|
|
69
68
|
rate: {
|
|
70
69
|
code: string;
|
|
71
70
|
amount: string;
|
|
72
71
|
} | null;
|
|
73
72
|
updatedAt: string;
|
|
73
|
+
name: string;
|
|
74
74
|
taxable: boolean;
|
|
75
75
|
tax1: string | null;
|
|
76
76
|
tax2: string | null;
|
|
@@ -80,16 +80,16 @@ export declare const itemListTool: {
|
|
|
80
80
|
visState?: 0 | 1 | 2 | undefined;
|
|
81
81
|
quantity?: number | undefined;
|
|
82
82
|
}, {
|
|
83
|
-
description: string | null;
|
|
84
|
-
name: string;
|
|
85
83
|
type: "service" | "discount" | "product";
|
|
86
|
-
createdAt: string;
|
|
87
84
|
id: number;
|
|
85
|
+
createdAt: string;
|
|
86
|
+
description: string | null;
|
|
88
87
|
rate: {
|
|
89
88
|
code: string;
|
|
90
89
|
amount: string;
|
|
91
90
|
} | null;
|
|
92
91
|
updatedAt: string;
|
|
92
|
+
name: string;
|
|
93
93
|
taxable: boolean;
|
|
94
94
|
tax1: string | null;
|
|
95
95
|
tax2: string | null;
|
|
@@ -105,34 +105,34 @@ export declare const itemListTool: {
|
|
|
105
105
|
perPage: z.ZodNumber;
|
|
106
106
|
total: z.ZodNumber;
|
|
107
107
|
}, "strip", z.ZodTypeAny, {
|
|
108
|
-
total: number;
|
|
109
108
|
page: number;
|
|
110
109
|
perPage: number;
|
|
111
110
|
pages: number;
|
|
112
|
-
}, {
|
|
113
111
|
total: number;
|
|
112
|
+
}, {
|
|
114
113
|
page: number;
|
|
115
114
|
perPage: number;
|
|
116
115
|
pages: number;
|
|
116
|
+
total: number;
|
|
117
117
|
}>;
|
|
118
118
|
}, "strip", z.ZodTypeAny, {
|
|
119
119
|
pagination: {
|
|
120
|
-
total: number;
|
|
121
120
|
page: number;
|
|
122
121
|
perPage: number;
|
|
123
122
|
pages: number;
|
|
123
|
+
total: number;
|
|
124
124
|
};
|
|
125
125
|
items: {
|
|
126
|
-
description: string | null;
|
|
127
|
-
name: string;
|
|
128
126
|
type: "service" | "discount" | "product";
|
|
129
|
-
createdAt: string;
|
|
130
127
|
id: number;
|
|
128
|
+
createdAt: string;
|
|
129
|
+
description: string | null;
|
|
131
130
|
rate: {
|
|
132
131
|
code: string;
|
|
133
132
|
amount: string;
|
|
134
133
|
} | null;
|
|
135
134
|
updatedAt: string;
|
|
135
|
+
name: string;
|
|
136
136
|
taxable: boolean;
|
|
137
137
|
tax1: string | null;
|
|
138
138
|
tax2: string | null;
|
|
@@ -144,22 +144,22 @@ export declare const itemListTool: {
|
|
|
144
144
|
}[];
|
|
145
145
|
}, {
|
|
146
146
|
pagination: {
|
|
147
|
-
total: number;
|
|
148
147
|
page: number;
|
|
149
148
|
perPage: number;
|
|
150
149
|
pages: number;
|
|
150
|
+
total: number;
|
|
151
151
|
};
|
|
152
152
|
items: {
|
|
153
|
-
description: string | null;
|
|
154
|
-
name: string;
|
|
155
153
|
type: "service" | "discount" | "product";
|
|
156
|
-
createdAt: string;
|
|
157
154
|
id: number;
|
|
155
|
+
createdAt: string;
|
|
156
|
+
description: string | null;
|
|
158
157
|
rate: {
|
|
159
158
|
code: string;
|
|
160
159
|
amount: string;
|
|
161
160
|
} | null;
|
|
162
161
|
updatedAt: string;
|
|
162
|
+
name: string;
|
|
163
163
|
taxable: boolean;
|
|
164
164
|
tax1: string | null;
|
|
165
165
|
tax2: string | null;
|
|
@@ -48,16 +48,16 @@ export declare const itemSingleTool: {
|
|
|
48
48
|
createdAt: z.ZodString;
|
|
49
49
|
updatedAt: z.ZodString;
|
|
50
50
|
}, "strip", z.ZodTypeAny, {
|
|
51
|
-
description: string | null;
|
|
52
|
-
name: string;
|
|
53
51
|
type: "service" | "discount" | "product";
|
|
54
|
-
createdAt: string;
|
|
55
52
|
id: number;
|
|
53
|
+
createdAt: string;
|
|
54
|
+
description: string | null;
|
|
56
55
|
rate: {
|
|
57
56
|
code: string;
|
|
58
57
|
amount: string;
|
|
59
58
|
} | null;
|
|
60
59
|
updatedAt: string;
|
|
60
|
+
name: string;
|
|
61
61
|
taxable: boolean;
|
|
62
62
|
tax1: string | null;
|
|
63
63
|
tax2: string | null;
|
|
@@ -67,16 +67,16 @@ export declare const itemSingleTool: {
|
|
|
67
67
|
visState?: 0 | 1 | 2 | undefined;
|
|
68
68
|
quantity?: number | undefined;
|
|
69
69
|
}, {
|
|
70
|
-
description: string | null;
|
|
71
|
-
name: string;
|
|
72
70
|
type: "service" | "discount" | "product";
|
|
73
|
-
createdAt: string;
|
|
74
71
|
id: number;
|
|
72
|
+
createdAt: string;
|
|
73
|
+
description: string | null;
|
|
75
74
|
rate: {
|
|
76
75
|
code: string;
|
|
77
76
|
amount: string;
|
|
78
77
|
} | null;
|
|
79
78
|
updatedAt: string;
|
|
79
|
+
name: string;
|
|
80
80
|
taxable: boolean;
|
|
81
81
|
tax1: string | null;
|
|
82
82
|
tax2: string | null;
|
|
@@ -37,13 +37,13 @@ export declare const itemUpdateTool: {
|
|
|
37
37
|
}, "strip", z.ZodTypeAny, {
|
|
38
38
|
accountId: string;
|
|
39
39
|
itemId: number;
|
|
40
|
-
description?: string | undefined;
|
|
41
|
-
name?: string | undefined;
|
|
42
40
|
type?: "service" | "discount" | "product" | undefined;
|
|
41
|
+
description?: string | undefined;
|
|
43
42
|
rate?: {
|
|
44
43
|
code: string;
|
|
45
44
|
amount: string;
|
|
46
45
|
} | undefined;
|
|
46
|
+
name?: string | undefined;
|
|
47
47
|
quantity?: number | undefined;
|
|
48
48
|
taxable?: boolean | undefined;
|
|
49
49
|
tax1?: string | undefined;
|
|
@@ -53,13 +53,13 @@ export declare const itemUpdateTool: {
|
|
|
53
53
|
}, {
|
|
54
54
|
accountId: string;
|
|
55
55
|
itemId: number;
|
|
56
|
-
description?: string | undefined;
|
|
57
|
-
name?: string | undefined;
|
|
58
56
|
type?: "service" | "discount" | "product" | undefined;
|
|
57
|
+
description?: string | undefined;
|
|
59
58
|
rate?: {
|
|
60
59
|
code: string;
|
|
61
60
|
amount: string;
|
|
62
61
|
} | undefined;
|
|
62
|
+
name?: string | undefined;
|
|
63
63
|
quantity?: number | undefined;
|
|
64
64
|
taxable?: boolean | undefined;
|
|
65
65
|
tax1?: string | undefined;
|
|
@@ -93,16 +93,16 @@ export declare const itemUpdateTool: {
|
|
|
93
93
|
createdAt: z.ZodString;
|
|
94
94
|
updatedAt: z.ZodString;
|
|
95
95
|
}, "strip", z.ZodTypeAny, {
|
|
96
|
-
description: string | null;
|
|
97
|
-
name: string;
|
|
98
96
|
type: "service" | "discount" | "product";
|
|
99
|
-
createdAt: string;
|
|
100
97
|
id: number;
|
|
98
|
+
createdAt: string;
|
|
99
|
+
description: string | null;
|
|
101
100
|
rate: {
|
|
102
101
|
code: string;
|
|
103
102
|
amount: string;
|
|
104
103
|
} | null;
|
|
105
104
|
updatedAt: string;
|
|
105
|
+
name: string;
|
|
106
106
|
taxable: boolean;
|
|
107
107
|
tax1: string | null;
|
|
108
108
|
tax2: string | null;
|
|
@@ -112,16 +112,16 @@ export declare const itemUpdateTool: {
|
|
|
112
112
|
visState?: 0 | 1 | 2 | undefined;
|
|
113
113
|
quantity?: number | undefined;
|
|
114
114
|
}, {
|
|
115
|
-
description: string | null;
|
|
116
|
-
name: string;
|
|
117
115
|
type: "service" | "discount" | "product";
|
|
118
|
-
createdAt: string;
|
|
119
116
|
id: number;
|
|
117
|
+
createdAt: string;
|
|
118
|
+
description: string | null;
|
|
120
119
|
rate: {
|
|
121
120
|
code: string;
|
|
122
121
|
amount: string;
|
|
123
122
|
} | null;
|
|
124
123
|
updatedAt: string;
|
|
124
|
+
name: string;
|
|
125
125
|
taxable: boolean;
|
|
126
126
|
tax1: string | null;
|
|
127
127
|
tax2: string | null;
|
|
@@ -37,16 +37,16 @@ export declare const ItemSchema: z.ZodObject<{
|
|
|
37
37
|
createdAt: z.ZodString;
|
|
38
38
|
updatedAt: z.ZodString;
|
|
39
39
|
}, "strip", z.ZodTypeAny, {
|
|
40
|
-
description: string | null;
|
|
41
|
-
name: string;
|
|
42
40
|
type: "service" | "discount" | "product";
|
|
43
|
-
createdAt: string;
|
|
44
41
|
id: number;
|
|
42
|
+
createdAt: string;
|
|
43
|
+
description: string | null;
|
|
45
44
|
rate: {
|
|
46
45
|
code: string;
|
|
47
46
|
amount: string;
|
|
48
47
|
} | null;
|
|
49
48
|
updatedAt: string;
|
|
49
|
+
name: string;
|
|
50
50
|
taxable: boolean;
|
|
51
51
|
tax1: string | null;
|
|
52
52
|
tax2: string | null;
|
|
@@ -56,16 +56,16 @@ export declare const ItemSchema: z.ZodObject<{
|
|
|
56
56
|
visState?: 0 | 1 | 2 | undefined;
|
|
57
57
|
quantity?: number | undefined;
|
|
58
58
|
}, {
|
|
59
|
-
description: string | null;
|
|
60
|
-
name: string;
|
|
61
59
|
type: "service" | "discount" | "product";
|
|
62
|
-
createdAt: string;
|
|
63
60
|
id: number;
|
|
61
|
+
createdAt: string;
|
|
62
|
+
description: string | null;
|
|
64
63
|
rate: {
|
|
65
64
|
code: string;
|
|
66
65
|
amount: string;
|
|
67
66
|
} | null;
|
|
68
67
|
updatedAt: string;
|
|
68
|
+
name: string;
|
|
69
69
|
taxable: boolean;
|
|
70
70
|
tax1: string | null;
|
|
71
71
|
tax2: string | null;
|
|
@@ -101,8 +101,8 @@ export declare const ItemCreateInputSchema: z.ZodObject<{
|
|
|
101
101
|
sku: z.ZodOptional<z.ZodString>;
|
|
102
102
|
}, "strip", z.ZodTypeAny, {
|
|
103
103
|
accountId: string;
|
|
104
|
-
name: string;
|
|
105
104
|
type: "service" | "discount" | "product";
|
|
105
|
+
name: string;
|
|
106
106
|
taxable: boolean;
|
|
107
107
|
description?: string | undefined;
|
|
108
108
|
rate?: {
|
|
@@ -117,8 +117,8 @@ export declare const ItemCreateInputSchema: z.ZodObject<{
|
|
|
117
117
|
}, {
|
|
118
118
|
accountId: string;
|
|
119
119
|
name: string;
|
|
120
|
-
description?: string | undefined;
|
|
121
120
|
type?: "service" | "discount" | "product" | undefined;
|
|
121
|
+
description?: string | undefined;
|
|
122
122
|
rate?: {
|
|
123
123
|
code: string;
|
|
124
124
|
amount: string;
|
|
@@ -158,13 +158,13 @@ export declare const ItemUpdateInputSchema: z.ZodObject<{
|
|
|
158
158
|
}, "strip", z.ZodTypeAny, {
|
|
159
159
|
accountId: string;
|
|
160
160
|
itemId: number;
|
|
161
|
-
description?: string | undefined;
|
|
162
|
-
name?: string | undefined;
|
|
163
161
|
type?: "service" | "discount" | "product" | undefined;
|
|
162
|
+
description?: string | undefined;
|
|
164
163
|
rate?: {
|
|
165
164
|
code: string;
|
|
166
165
|
amount: string;
|
|
167
166
|
} | undefined;
|
|
167
|
+
name?: string | undefined;
|
|
168
168
|
quantity?: number | undefined;
|
|
169
169
|
taxable?: boolean | undefined;
|
|
170
170
|
tax1?: string | undefined;
|
|
@@ -174,13 +174,13 @@ export declare const ItemUpdateInputSchema: z.ZodObject<{
|
|
|
174
174
|
}, {
|
|
175
175
|
accountId: string;
|
|
176
176
|
itemId: number;
|
|
177
|
-
description?: string | undefined;
|
|
178
|
-
name?: string | undefined;
|
|
179
177
|
type?: "service" | "discount" | "product" | undefined;
|
|
178
|
+
description?: string | undefined;
|
|
180
179
|
rate?: {
|
|
181
180
|
code: string;
|
|
182
181
|
amount: string;
|
|
183
182
|
} | undefined;
|
|
183
|
+
name?: string | undefined;
|
|
184
184
|
quantity?: number | undefined;
|
|
185
185
|
taxable?: boolean | undefined;
|
|
186
186
|
tax1?: string | undefined;
|
|
@@ -200,17 +200,17 @@ export declare const ItemListInputSchema: z.ZodObject<{
|
|
|
200
200
|
sku: z.ZodOptional<z.ZodString>;
|
|
201
201
|
}, "strip", z.ZodTypeAny, {
|
|
202
202
|
accountId: string;
|
|
203
|
-
name?: string | undefined;
|
|
204
203
|
type?: "service" | "discount" | "product" | undefined;
|
|
205
204
|
page?: number | undefined;
|
|
206
205
|
perPage?: number | undefined;
|
|
206
|
+
name?: string | undefined;
|
|
207
207
|
sku?: string | undefined;
|
|
208
208
|
}, {
|
|
209
209
|
accountId: string;
|
|
210
|
-
name?: string | undefined;
|
|
211
210
|
type?: "service" | "discount" | "product" | undefined;
|
|
212
211
|
page?: number | undefined;
|
|
213
212
|
perPage?: number | undefined;
|
|
213
|
+
name?: string | undefined;
|
|
214
214
|
sku?: string | undefined;
|
|
215
215
|
}>;
|
|
216
216
|
/**
|
|
@@ -235,15 +235,15 @@ export declare const PaginationMetadataSchema: z.ZodObject<{
|
|
|
235
235
|
perPage: z.ZodNumber;
|
|
236
236
|
total: z.ZodNumber;
|
|
237
237
|
}, "strip", z.ZodTypeAny, {
|
|
238
|
-
total: number;
|
|
239
238
|
page: number;
|
|
240
239
|
perPage: number;
|
|
241
240
|
pages: number;
|
|
242
|
-
}, {
|
|
243
241
|
total: number;
|
|
242
|
+
}, {
|
|
244
243
|
page: number;
|
|
245
244
|
perPage: number;
|
|
246
245
|
pages: number;
|
|
246
|
+
total: number;
|
|
247
247
|
}>;
|
|
248
248
|
/**
|
|
249
249
|
* Output schema for item list
|
|
@@ -275,16 +275,16 @@ export declare const ItemListOutputSchema: z.ZodObject<{
|
|
|
275
275
|
createdAt: z.ZodString;
|
|
276
276
|
updatedAt: z.ZodString;
|
|
277
277
|
}, "strip", z.ZodTypeAny, {
|
|
278
|
-
description: string | null;
|
|
279
|
-
name: string;
|
|
280
278
|
type: "service" | "discount" | "product";
|
|
281
|
-
createdAt: string;
|
|
282
279
|
id: number;
|
|
280
|
+
createdAt: string;
|
|
281
|
+
description: string | null;
|
|
283
282
|
rate: {
|
|
284
283
|
code: string;
|
|
285
284
|
amount: string;
|
|
286
285
|
} | null;
|
|
287
286
|
updatedAt: string;
|
|
287
|
+
name: string;
|
|
288
288
|
taxable: boolean;
|
|
289
289
|
tax1: string | null;
|
|
290
290
|
tax2: string | null;
|
|
@@ -294,16 +294,16 @@ export declare const ItemListOutputSchema: z.ZodObject<{
|
|
|
294
294
|
visState?: 0 | 1 | 2 | undefined;
|
|
295
295
|
quantity?: number | undefined;
|
|
296
296
|
}, {
|
|
297
|
-
description: string | null;
|
|
298
|
-
name: string;
|
|
299
297
|
type: "service" | "discount" | "product";
|
|
300
|
-
createdAt: string;
|
|
301
298
|
id: number;
|
|
299
|
+
createdAt: string;
|
|
300
|
+
description: string | null;
|
|
302
301
|
rate: {
|
|
303
302
|
code: string;
|
|
304
303
|
amount: string;
|
|
305
304
|
} | null;
|
|
306
305
|
updatedAt: string;
|
|
306
|
+
name: string;
|
|
307
307
|
taxable: boolean;
|
|
308
308
|
tax1: string | null;
|
|
309
309
|
tax2: string | null;
|
|
@@ -319,34 +319,34 @@ export declare const ItemListOutputSchema: z.ZodObject<{
|
|
|
319
319
|
perPage: z.ZodNumber;
|
|
320
320
|
total: z.ZodNumber;
|
|
321
321
|
}, "strip", z.ZodTypeAny, {
|
|
322
|
-
total: number;
|
|
323
322
|
page: number;
|
|
324
323
|
perPage: number;
|
|
325
324
|
pages: number;
|
|
326
|
-
}, {
|
|
327
325
|
total: number;
|
|
326
|
+
}, {
|
|
328
327
|
page: number;
|
|
329
328
|
perPage: number;
|
|
330
329
|
pages: number;
|
|
330
|
+
total: number;
|
|
331
331
|
}>;
|
|
332
332
|
}, "strip", z.ZodTypeAny, {
|
|
333
333
|
pagination: {
|
|
334
|
-
total: number;
|
|
335
334
|
page: number;
|
|
336
335
|
perPage: number;
|
|
337
336
|
pages: number;
|
|
337
|
+
total: number;
|
|
338
338
|
};
|
|
339
339
|
items: {
|
|
340
|
-
description: string | null;
|
|
341
|
-
name: string;
|
|
342
340
|
type: "service" | "discount" | "product";
|
|
343
|
-
createdAt: string;
|
|
344
341
|
id: number;
|
|
342
|
+
createdAt: string;
|
|
343
|
+
description: string | null;
|
|
345
344
|
rate: {
|
|
346
345
|
code: string;
|
|
347
346
|
amount: string;
|
|
348
347
|
} | null;
|
|
349
348
|
updatedAt: string;
|
|
349
|
+
name: string;
|
|
350
350
|
taxable: boolean;
|
|
351
351
|
tax1: string | null;
|
|
352
352
|
tax2: string | null;
|
|
@@ -358,22 +358,22 @@ export declare const ItemListOutputSchema: z.ZodObject<{
|
|
|
358
358
|
}[];
|
|
359
359
|
}, {
|
|
360
360
|
pagination: {
|
|
361
|
-
total: number;
|
|
362
361
|
page: number;
|
|
363
362
|
perPage: number;
|
|
364
363
|
pages: number;
|
|
364
|
+
total: number;
|
|
365
365
|
};
|
|
366
366
|
items: {
|
|
367
|
-
description: string | null;
|
|
368
|
-
name: string;
|
|
369
367
|
type: "service" | "discount" | "product";
|
|
370
|
-
createdAt: string;
|
|
371
368
|
id: number;
|
|
369
|
+
createdAt: string;
|
|
370
|
+
description: string | null;
|
|
372
371
|
rate: {
|
|
373
372
|
code: string;
|
|
374
373
|
amount: string;
|
|
375
374
|
} | null;
|
|
376
375
|
updatedAt: string;
|
|
376
|
+
name: string;
|
|
377
377
|
taxable: boolean;
|
|
378
378
|
tax1: string | null;
|
|
379
379
|
tax2: string | null;
|
|
@@ -413,16 +413,16 @@ export declare const ItemSingleOutputSchema: z.ZodObject<{
|
|
|
413
413
|
createdAt: z.ZodString;
|
|
414
414
|
updatedAt: z.ZodString;
|
|
415
415
|
}, "strip", z.ZodTypeAny, {
|
|
416
|
-
description: string | null;
|
|
417
|
-
name: string;
|
|
418
416
|
type: "service" | "discount" | "product";
|
|
419
|
-
createdAt: string;
|
|
420
417
|
id: number;
|
|
418
|
+
createdAt: string;
|
|
419
|
+
description: string | null;
|
|
421
420
|
rate: {
|
|
422
421
|
code: string;
|
|
423
422
|
amount: string;
|
|
424
423
|
} | null;
|
|
425
424
|
updatedAt: string;
|
|
425
|
+
name: string;
|
|
426
426
|
taxable: boolean;
|
|
427
427
|
tax1: string | null;
|
|
428
428
|
tax2: string | null;
|
|
@@ -432,16 +432,16 @@ export declare const ItemSingleOutputSchema: z.ZodObject<{
|
|
|
432
432
|
visState?: 0 | 1 | 2 | undefined;
|
|
433
433
|
quantity?: number | undefined;
|
|
434
434
|
}, {
|
|
435
|
-
description: string | null;
|
|
436
|
-
name: string;
|
|
437
435
|
type: "service" | "discount" | "product";
|
|
438
|
-
createdAt: string;
|
|
439
436
|
id: number;
|
|
437
|
+
createdAt: string;
|
|
438
|
+
description: string | null;
|
|
440
439
|
rate: {
|
|
441
440
|
code: string;
|
|
442
441
|
amount: string;
|
|
443
442
|
} | null;
|
|
444
443
|
updatedAt: string;
|
|
444
|
+
name: string;
|
|
445
445
|
taxable: boolean;
|
|
446
446
|
tax1: string | null;
|
|
447
447
|
tax2: string | null;
|
|
@@ -91,9 +91,9 @@ export declare const journalEntryCreateTool: {
|
|
|
91
91
|
credit?: string | undefined;
|
|
92
92
|
debit?: string | undefined;
|
|
93
93
|
}[];
|
|
94
|
-
description?: string | undefined;
|
|
95
|
-
createdAt?: string | undefined;
|
|
96
94
|
id?: number | undefined;
|
|
95
|
+
createdAt?: string | undefined;
|
|
96
|
+
description?: string | undefined;
|
|
97
97
|
currencyCode?: string | undefined;
|
|
98
98
|
}, {
|
|
99
99
|
date: string;
|
|
@@ -104,9 +104,9 @@ export declare const journalEntryCreateTool: {
|
|
|
104
104
|
credit?: string | undefined;
|
|
105
105
|
debit?: string | undefined;
|
|
106
106
|
}[];
|
|
107
|
-
description?: string | undefined;
|
|
108
|
-
createdAt?: string | undefined;
|
|
109
107
|
id?: number | undefined;
|
|
108
|
+
createdAt?: string | undefined;
|
|
109
|
+
description?: string | undefined;
|
|
110
110
|
currencyCode?: string | undefined;
|
|
111
111
|
}>;
|
|
112
112
|
execute(input: z.infer<typeof JournalEntryCreateInputSchema>, client: FreshBooksClientWrapper): Promise<z.infer<typeof JournalEntryCreateOutputSchema>>;
|
|
@@ -58,9 +58,9 @@ export declare const JournalEntrySchema: z.ZodObject<{
|
|
|
58
58
|
credit?: string | undefined;
|
|
59
59
|
debit?: string | undefined;
|
|
60
60
|
}[];
|
|
61
|
-
description?: string | undefined;
|
|
62
|
-
createdAt?: string | undefined;
|
|
63
61
|
id?: number | undefined;
|
|
62
|
+
createdAt?: string | undefined;
|
|
63
|
+
description?: string | undefined;
|
|
64
64
|
currencyCode?: string | undefined;
|
|
65
65
|
}, {
|
|
66
66
|
date: string;
|
|
@@ -71,9 +71,9 @@ export declare const JournalEntrySchema: z.ZodObject<{
|
|
|
71
71
|
credit?: string | undefined;
|
|
72
72
|
debit?: string | undefined;
|
|
73
73
|
}[];
|
|
74
|
-
description?: string | undefined;
|
|
75
|
-
createdAt?: string | undefined;
|
|
76
74
|
id?: number | undefined;
|
|
75
|
+
createdAt?: string | undefined;
|
|
76
|
+
description?: string | undefined;
|
|
77
77
|
currencyCode?: string | undefined;
|
|
78
78
|
}>;
|
|
79
79
|
/**
|
|
@@ -161,9 +161,9 @@ export declare const JournalEntryCreateOutputSchema: z.ZodObject<{
|
|
|
161
161
|
credit?: string | undefined;
|
|
162
162
|
debit?: string | undefined;
|
|
163
163
|
}[];
|
|
164
|
-
description?: string | undefined;
|
|
165
|
-
createdAt?: string | undefined;
|
|
166
164
|
id?: number | undefined;
|
|
165
|
+
createdAt?: string | undefined;
|
|
166
|
+
description?: string | undefined;
|
|
167
167
|
currencyCode?: string | undefined;
|
|
168
168
|
}, {
|
|
169
169
|
date: string;
|
|
@@ -174,9 +174,9 @@ export declare const JournalEntryCreateOutputSchema: z.ZodObject<{
|
|
|
174
174
|
credit?: string | undefined;
|
|
175
175
|
debit?: string | undefined;
|
|
176
176
|
}[];
|
|
177
|
-
description?: string | undefined;
|
|
178
|
-
createdAt?: string | undefined;
|
|
179
177
|
id?: number | undefined;
|
|
178
|
+
createdAt?: string | undefined;
|
|
179
|
+
description?: string | undefined;
|
|
180
180
|
currencyCode?: string | undefined;
|
|
181
181
|
}>;
|
|
182
182
|
//# sourceMappingURL=schemas.d.ts.map
|
|
@@ -54,8 +54,8 @@ export declare const journalEntryAccountListTool: {
|
|
|
54
54
|
subName: z.ZodOptional<z.ZodString>;
|
|
55
55
|
}, "strip", z.ZodTypeAny, {
|
|
56
56
|
accountId: number;
|
|
57
|
-
name: string;
|
|
58
57
|
id: number;
|
|
58
|
+
name: string;
|
|
59
59
|
accountType: string;
|
|
60
60
|
description?: string | undefined;
|
|
61
61
|
accountNumber?: string | undefined;
|
|
@@ -67,8 +67,8 @@ export declare const journalEntryAccountListTool: {
|
|
|
67
67
|
subName?: string | undefined;
|
|
68
68
|
}, {
|
|
69
69
|
accountId: number;
|
|
70
|
-
name: string;
|
|
71
70
|
id: number;
|
|
71
|
+
name: string;
|
|
72
72
|
accountType: string;
|
|
73
73
|
description?: string | undefined;
|
|
74
74
|
accountNumber?: string | undefined;
|
|
@@ -80,13 +80,13 @@ export declare const journalEntryAccountListTool: {
|
|
|
80
80
|
subName?: string | undefined;
|
|
81
81
|
}>, "many">;
|
|
82
82
|
}, "strip", z.ZodTypeAny, {
|
|
83
|
-
name: string;
|
|
84
83
|
id: number;
|
|
84
|
+
name: string;
|
|
85
85
|
accountType: string;
|
|
86
86
|
subAccounts: {
|
|
87
87
|
accountId: number;
|
|
88
|
-
name: string;
|
|
89
88
|
id: number;
|
|
89
|
+
name: string;
|
|
90
90
|
accountType: string;
|
|
91
91
|
description?: string | undefined;
|
|
92
92
|
accountNumber?: string | undefined;
|
|
@@ -98,13 +98,13 @@ export declare const journalEntryAccountListTool: {
|
|
|
98
98
|
subName?: string | undefined;
|
|
99
99
|
}[];
|
|
100
100
|
}, {
|
|
101
|
-
name: string;
|
|
102
101
|
id: number;
|
|
102
|
+
name: string;
|
|
103
103
|
accountType: string;
|
|
104
104
|
subAccounts: {
|
|
105
105
|
accountId: number;
|
|
106
|
-
name: string;
|
|
107
106
|
id: number;
|
|
107
|
+
name: string;
|
|
108
108
|
accountType: string;
|
|
109
109
|
description?: string | undefined;
|
|
110
110
|
accountNumber?: string | undefined;
|
|
@@ -122,31 +122,31 @@ export declare const journalEntryAccountListTool: {
|
|
|
122
122
|
perPage: z.ZodNumber;
|
|
123
123
|
total: z.ZodNumber;
|
|
124
124
|
}, "strip", z.ZodTypeAny, {
|
|
125
|
-
total: number;
|
|
126
125
|
page: number;
|
|
127
126
|
perPage: number;
|
|
128
127
|
pages: number;
|
|
129
|
-
}, {
|
|
130
128
|
total: number;
|
|
129
|
+
}, {
|
|
131
130
|
page: number;
|
|
132
131
|
perPage: number;
|
|
133
132
|
pages: number;
|
|
133
|
+
total: number;
|
|
134
134
|
}>;
|
|
135
135
|
}, "strip", z.ZodTypeAny, {
|
|
136
136
|
pagination: {
|
|
137
|
-
total: number;
|
|
138
137
|
page: number;
|
|
139
138
|
perPage: number;
|
|
140
139
|
pages: number;
|
|
140
|
+
total: number;
|
|
141
141
|
};
|
|
142
142
|
accounts: {
|
|
143
|
-
name: string;
|
|
144
143
|
id: number;
|
|
144
|
+
name: string;
|
|
145
145
|
accountType: string;
|
|
146
146
|
subAccounts: {
|
|
147
147
|
accountId: number;
|
|
148
|
-
name: string;
|
|
149
148
|
id: number;
|
|
149
|
+
name: string;
|
|
150
150
|
accountType: string;
|
|
151
151
|
description?: string | undefined;
|
|
152
152
|
accountNumber?: string | undefined;
|
|
@@ -160,19 +160,19 @@ export declare const journalEntryAccountListTool: {
|
|
|
160
160
|
}[];
|
|
161
161
|
}, {
|
|
162
162
|
pagination: {
|
|
163
|
-
total: number;
|
|
164
163
|
page: number;
|
|
165
164
|
perPage: number;
|
|
166
165
|
pages: number;
|
|
166
|
+
total: number;
|
|
167
167
|
};
|
|
168
168
|
accounts: {
|
|
169
|
-
name: string;
|
|
170
169
|
id: number;
|
|
170
|
+
name: string;
|
|
171
171
|
accountType: string;
|
|
172
172
|
subAccounts: {
|
|
173
173
|
accountId: number;
|
|
174
|
-
name: string;
|
|
175
174
|
id: number;
|
|
175
|
+
name: string;
|
|
176
176
|
accountType: string;
|
|
177
177
|
description?: string | undefined;
|
|
178
178
|
accountNumber?: string | undefined;
|