@goodsamsoftware/freshbooks-mcp 1.0.10 → 1.0.12

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.
Files changed (233) hide show
  1. package/dist/tools/base-tool.d.ts +20 -54
  2. package/dist/tools/base-tool.d.ts.map +1 -1
  3. package/dist/tools/bill/bill-archive.d.ts +2 -14
  4. package/dist/tools/bill/bill-archive.d.ts.map +1 -1
  5. package/dist/tools/bill/bill-create.d.ts +16 -125
  6. package/dist/tools/bill/bill-create.d.ts.map +1 -1
  7. package/dist/tools/bill/bill-delete.d.ts +2 -18
  8. package/dist/tools/bill/bill-delete.d.ts.map +1 -1
  9. package/dist/tools/bill/bill-list.d.ts +22 -194
  10. package/dist/tools/bill/bill-list.d.ts.map +1 -1
  11. package/dist/tools/bill/bill-single.d.ts +14 -97
  12. package/dist/tools/bill/bill-single.d.ts.map +1 -1
  13. package/dist/tools/bill/schemas.d.ts +63 -460
  14. package/dist/tools/bill/schemas.d.ts.map +1 -1
  15. package/dist/tools/bill-payment/billpayment-create.d.ts +18 -62
  16. package/dist/tools/bill-payment/billpayment-create.d.ts.map +1 -1
  17. package/dist/tools/bill-payment/billpayment-delete.d.ts +2 -18
  18. package/dist/tools/bill-payment/billpayment-delete.d.ts.map +1 -1
  19. package/dist/tools/bill-payment/billpayment-list.d.ts +12 -103
  20. package/dist/tools/bill-payment/billpayment-list.d.ts.map +1 -1
  21. package/dist/tools/bill-payment/billpayment-single.d.ts +10 -41
  22. package/dist/tools/bill-payment/billpayment-single.d.ts.map +1 -1
  23. package/dist/tools/bill-payment/billpayment-update.d.ts +18 -62
  24. package/dist/tools/bill-payment/billpayment-update.d.ts.map +1 -1
  25. package/dist/tools/bill-payment/schemas.d.ts +60 -264
  26. package/dist/tools/bill-payment/schemas.d.ts.map +1 -1
  27. package/dist/tools/bill-vendor/billvendor-create.d.ts +3 -81
  28. package/dist/tools/bill-vendor/billvendor-create.d.ts.map +1 -1
  29. package/dist/tools/bill-vendor/billvendor-delete.d.ts +2 -18
  30. package/dist/tools/bill-vendor/billvendor-delete.d.ts.map +1 -1
  31. package/dist/tools/bill-vendor/billvendor-list.d.ts +5 -127
  32. package/dist/tools/bill-vendor/billvendor-list.d.ts.map +1 -1
  33. package/dist/tools/bill-vendor/billvendor-single.d.ts +3 -51
  34. package/dist/tools/bill-vendor/billvendor-single.d.ts.map +1 -1
  35. package/dist/tools/bill-vendor/billvendor-update.d.ts +3 -83
  36. package/dist/tools/bill-vendor/billvendor-update.d.ts.map +1 -1
  37. package/dist/tools/bill-vendor/schemas.d.ts +15 -327
  38. package/dist/tools/bill-vendor/schemas.d.ts.map +1 -1
  39. package/dist/tools/callback/callback-create.d.ts +2 -24
  40. package/dist/tools/callback/callback-create.d.ts.map +1 -1
  41. package/dist/tools/callback/callback-delete.d.ts +2 -18
  42. package/dist/tools/callback/callback-delete.d.ts.map +1 -1
  43. package/dist/tools/callback/callback-list.d.ts +4 -66
  44. package/dist/tools/callback/callback-list.d.ts.map +1 -1
  45. package/dist/tools/callback/callback-resend-verification.d.ts +2 -22
  46. package/dist/tools/callback/callback-resend-verification.d.ts.map +1 -1
  47. package/dist/tools/callback/callback-single.d.ts +2 -22
  48. package/dist/tools/callback/callback-single.d.ts.map +1 -1
  49. package/dist/tools/callback/callback-update.d.ts +2 -26
  50. package/dist/tools/callback/callback-update.d.ts.map +1 -1
  51. package/dist/tools/callback/callback-verify.d.ts +2 -18
  52. package/dist/tools/callback/callback-verify.d.ts.map +1 -1
  53. package/dist/tools/callback/schemas.d.ts +15 -177
  54. package/dist/tools/callback/schemas.d.ts.map +1 -1
  55. package/dist/tools/client/client-create.d.ts +3 -129
  56. package/dist/tools/client/client-create.d.ts.map +1 -1
  57. package/dist/tools/client/client-delete.d.ts +2 -18
  58. package/dist/tools/client/client-delete.d.ts.map +1 -1
  59. package/dist/tools/client/client-list.d.ts +21 -197
  60. package/dist/tools/client/client-list.d.ts.map +1 -1
  61. package/dist/tools/client/client-single.d.ts +3 -77
  62. package/dist/tools/client/client-single.d.ts.map +1 -1
  63. package/dist/tools/client/client-update.d.ts +4 -134
  64. package/dist/tools/client/client-update.d.ts.map +1 -1
  65. package/dist/tools/client/schemas.d.ts +50 -512
  66. package/dist/tools/client/schemas.d.ts.map +1 -1
  67. package/dist/tools/credit-note/creditnote-create.d.ts +18 -367
  68. package/dist/tools/credit-note/creditnote-create.d.ts.map +1 -1
  69. package/dist/tools/credit-note/creditnote-delete.d.ts +2 -18
  70. package/dist/tools/credit-note/creditnote-delete.d.ts.map +1 -1
  71. package/dist/tools/credit-note/creditnote-list.d.ts +24 -552
  72. package/dist/tools/credit-note/creditnote-list.d.ts.map +1 -1
  73. package/dist/tools/credit-note/creditnote-single.d.ts +14 -291
  74. package/dist/tools/credit-note/creditnote-single.d.ts.map +1 -1
  75. package/dist/tools/credit-note/creditnote-update.d.ts +18 -363
  76. package/dist/tools/credit-note/creditnote-update.d.ts.map +1 -1
  77. package/dist/tools/credit-note/schemas.d.ts +72 -1355
  78. package/dist/tools/credit-note/schemas.d.ts.map +1 -1
  79. package/dist/tools/expense/expense-create.d.ts +13 -132
  80. package/dist/tools/expense/expense-create.d.ts.map +1 -1
  81. package/dist/tools/expense/expense-delete.d.ts +2 -18
  82. package/dist/tools/expense/expense-delete.d.ts.map +1 -1
  83. package/dist/tools/expense/expense-list.d.ts +20 -202
  84. package/dist/tools/expense/expense-list.d.ts.map +1 -1
  85. package/dist/tools/expense/expense-single.d.ts +12 -95
  86. package/dist/tools/expense/expense-single.d.ts.map +1 -1
  87. package/dist/tools/expense/expense-update.d.ts +14 -135
  88. package/dist/tools/expense/expense-update.d.ts.map +1 -1
  89. package/dist/tools/expense/schemas.d.ts +56 -495
  90. package/dist/tools/expense/schemas.d.ts.map +1 -1
  91. package/dist/tools/expense-category/expensecategory-list.d.ts +5 -75
  92. package/dist/tools/expense-category/expensecategory-list.d.ts.map +1 -1
  93. package/dist/tools/expense-category/expensecategory-single.d.ts +3 -27
  94. package/dist/tools/expense-category/expensecategory-single.d.ts.map +1 -1
  95. package/dist/tools/expense-category/schemas.d.ts +10 -122
  96. package/dist/tools/expense-category/schemas.d.ts.map +1 -1
  97. package/dist/tools/invoice/invoice-create.d.ts +30 -280
  98. package/dist/tools/invoice/invoice-create.d.ts.map +1 -1
  99. package/dist/tools/invoice/invoice-delete.d.ts +2 -18
  100. package/dist/tools/invoice/invoice-delete.d.ts.map +1 -1
  101. package/dist/tools/invoice/invoice-list.d.ts +62 -360
  102. package/dist/tools/invoice/invoice-list.d.ts.map +1 -1
  103. package/dist/tools/invoice/invoice-share-link.d.ts +2 -14
  104. package/dist/tools/invoice/invoice-share-link.d.ts.map +1 -1
  105. package/dist/tools/invoice/invoice-single.d.ts +27 -197
  106. package/dist/tools/invoice/invoice-single.d.ts.map +1 -1
  107. package/dist/tools/invoice/invoice-update.d.ts +42 -285
  108. package/dist/tools/invoice/invoice-update.d.ts.map +1 -1
  109. package/dist/tools/invoice/schemas.d.ts +183 -1090
  110. package/dist/tools/invoice/schemas.d.ts.map +1 -1
  111. package/dist/tools/item/item-create.d.ts +15 -87
  112. package/dist/tools/item/item-create.d.ts.map +1 -1
  113. package/dist/tools/item/item-list.d.ts +16 -130
  114. package/dist/tools/item/item-list.d.ts.map +1 -1
  115. package/dist/tools/item/item-single.d.ts +9 -55
  116. package/dist/tools/item/item-single.d.ts.map +1 -1
  117. package/dist/tools/item/item-update.d.ts +15 -89
  118. package/dist/tools/item/item-update.d.ts.map +1 -1
  119. package/dist/tools/item/schemas.d.ts +53 -325
  120. package/dist/tools/item/schemas.d.ts.map +1 -1
  121. package/dist/tools/journal-entry/journalentry-create.d.ts +4 -74
  122. package/dist/tools/journal-entry/journalentry-create.d.ts.map +1 -1
  123. package/dist/tools/journal-entry/schemas.d.ts +7 -123
  124. package/dist/tools/journal-entry/schemas.d.ts.map +1 -1
  125. package/dist/tools/journal-entry-account/journalentryaccount-list.d.ts +13 -147
  126. package/dist/tools/journal-entry-account/journalentryaccount-list.d.ts.map +1 -1
  127. package/dist/tools/journal-entry-account/schemas.d.ts +19 -263
  128. package/dist/tools/journal-entry-account/schemas.d.ts.map +1 -1
  129. package/dist/tools/other-income/otherincome-create.d.ts +43 -107
  130. package/dist/tools/other-income/otherincome-create.d.ts.map +1 -1
  131. package/dist/tools/other-income/otherincome-delete.d.ts +2 -18
  132. package/dist/tools/other-income/otherincome-delete.d.ts.map +1 -1
  133. package/dist/tools/other-income/otherincome-list.d.ts +25 -140
  134. package/dist/tools/other-income/otherincome-list.d.ts.map +1 -1
  135. package/dist/tools/other-income/otherincome-single.d.ts +23 -64
  136. package/dist/tools/other-income/otherincome-single.d.ts.map +1 -1
  137. package/dist/tools/other-income/otherincome-update.d.ts +43 -109
  138. package/dist/tools/other-income/otherincome-update.d.ts.map +1 -1
  139. package/dist/tools/other-income/schemas.d.ts +132 -382
  140. package/dist/tools/other-income/schemas.d.ts.map +1 -1
  141. package/dist/tools/payment/payment-create.d.ts +33 -81
  142. package/dist/tools/payment/payment-create.d.ts.map +1 -1
  143. package/dist/tools/payment/payment-delete.d.ts +2 -18
  144. package/dist/tools/payment/payment-delete.d.ts.map +1 -1
  145. package/dist/tools/payment/payment-list.d.ts +20 -135
  146. package/dist/tools/payment/payment-list.d.ts.map +1 -1
  147. package/dist/tools/payment/payment-single.d.ts +18 -57
  148. package/dist/tools/payment/payment-single.d.ts.map +1 -1
  149. package/dist/tools/payment/payment-update.d.ts +33 -79
  150. package/dist/tools/payment/payment-update.d.ts.map +1 -1
  151. package/dist/tools/payment/schemas.d.ts +103 -321
  152. package/dist/tools/payment/schemas.d.ts.map +1 -1
  153. package/dist/tools/payment-options/paymentoptions-create.d.ts +11 -55
  154. package/dist/tools/payment-options/paymentoptions-create.d.ts.map +1 -1
  155. package/dist/tools/payment-options/paymentoptions-default.d.ts +2 -18
  156. package/dist/tools/payment-options/paymentoptions-default.d.ts.map +1 -1
  157. package/dist/tools/payment-options/paymentoptions-single.d.ts +11 -45
  158. package/dist/tools/payment-options/paymentoptions-single.d.ts.map +1 -1
  159. package/dist/tools/payment-options/schemas.d.ts +25 -125
  160. package/dist/tools/payment-options/schemas.d.ts.map +1 -1
  161. package/dist/tools/project/project-create.d.ts +28 -86
  162. package/dist/tools/project/project-create.d.ts.map +1 -1
  163. package/dist/tools/project/project-delete.d.ts +2 -18
  164. package/dist/tools/project/project-delete.d.ts.map +1 -1
  165. package/dist/tools/project/project-list.d.ts +34 -167
  166. package/dist/tools/project/project-list.d.ts.map +1 -1
  167. package/dist/tools/project/project-single.d.ts +23 -67
  168. package/dist/tools/project/project-single.d.ts.map +1 -1
  169. package/dist/tools/project/project-update.d.ts +28 -92
  170. package/dist/tools/project/project-update.d.ts.map +1 -1
  171. package/dist/tools/project/schemas.d.ts +130 -402
  172. package/dist/tools/project/schemas.d.ts.map +1 -1
  173. package/dist/tools/report/report-payments-collected.d.ts +5 -82
  174. package/dist/tools/report/report-payments-collected.d.ts.map +1 -1
  175. package/dist/tools/report/report-profit-loss.d.ts +8 -101
  176. package/dist/tools/report/report-profit-loss.d.ts.map +1 -1
  177. package/dist/tools/report/report-tax-summary.d.ts +7 -116
  178. package/dist/tools/report/report-tax-summary.d.ts.map +1 -1
  179. package/dist/tools/report/schemas.d.ts +47 -678
  180. package/dist/tools/report/schemas.d.ts.map +1 -1
  181. package/dist/tools/service/schemas.d.ts +10 -102
  182. package/dist/tools/service/schemas.d.ts.map +1 -1
  183. package/dist/tools/service/service-create.d.ts +2 -18
  184. package/dist/tools/service/service-create.d.ts.map +1 -1
  185. package/dist/tools/service/service-list.d.ts +8 -76
  186. package/dist/tools/service/service-list.d.ts.map +1 -1
  187. package/dist/tools/service/service-rate-get.d.ts +4 -28
  188. package/dist/tools/service/service-rate-get.d.ts.map +1 -1
  189. package/dist/tools/service/service-rate-set.d.ts +4 -36
  190. package/dist/tools/service/service-rate-set.d.ts.map +1 -1
  191. package/dist/tools/service/service-single.d.ts +2 -14
  192. package/dist/tools/service/service-single.d.ts.map +1 -1
  193. package/dist/tools/task/schemas.d.ts +16 -216
  194. package/dist/tools/task/schemas.d.ts.map +1 -1
  195. package/dist/tools/task/task-create.d.ts +5 -64
  196. package/dist/tools/task/task-create.d.ts.map +1 -1
  197. package/dist/tools/task/task-delete.d.ts +2 -19
  198. package/dist/tools/task/task-delete.d.ts.map +1 -1
  199. package/dist/tools/task/task-list.d.ts +7 -113
  200. package/dist/tools/task/task-list.d.ts.map +1 -1
  201. package/dist/tools/task/task-single.d.ts +4 -45
  202. package/dist/tools/task/task-single.d.ts.map +1 -1
  203. package/dist/tools/task/task-update.d.ts +6 -69
  204. package/dist/tools/task/task-update.d.ts.map +1 -1
  205. package/dist/tools/time-entry/schemas.d.ts +50 -404
  206. package/dist/tools/time-entry/schemas.d.ts.map +1 -1
  207. package/dist/tools/time-entry/timeentry-create.d.ts +3 -85
  208. package/dist/tools/time-entry/timeentry-create.d.ts.map +1 -1
  209. package/dist/tools/time-entry/timeentry-delete.d.ts +2 -20
  210. package/dist/tools/time-entry/timeentry-delete.d.ts.map +1 -1
  211. package/dist/tools/time-entry/timeentry-list.d.ts +22 -172
  212. package/dist/tools/time-entry/timeentry-list.d.ts.map +1 -1
  213. package/dist/tools/time-entry/timeentry-single.d.ts +3 -63
  214. package/dist/tools/time-entry/timeentry-single.d.ts.map +1 -1
  215. package/dist/tools/time-entry/timeentry-update.d.ts +3 -87
  216. package/dist/tools/time-entry/timeentry-update.d.ts.map +1 -1
  217. package/dist/tools/timer/schemas.d.ts +16 -351
  218. package/dist/tools/timer/schemas.d.ts.map +1 -1
  219. package/dist/tools/timer/timer-current.d.ts +4 -116
  220. package/dist/tools/timer/timer-current.d.ts.map +1 -1
  221. package/dist/tools/timer/timer-discard.d.ts +2 -23
  222. package/dist/tools/timer/timer-discard.d.ts.map +1 -1
  223. package/dist/tools/timer/timer-start.d.ts +3 -76
  224. package/dist/tools/timer/timer-start.d.ts.map +1 -1
  225. package/dist/tools/timer/timer-stop.d.ts +3 -68
  226. package/dist/tools/timer/timer-stop.d.ts.map +1 -1
  227. package/dist/tools/user/schemas.d.ts +12 -190
  228. package/dist/tools/user/schemas.d.ts.map +1 -1
  229. package/dist/tools/user/user-me.d.ts +6 -90
  230. package/dist/tools/user/user-me.d.ts.map +1 -1
  231. package/dist/utils/pagination.d.ts +1 -7
  232. package/dist/utils/pagination.d.ts.map +1 -1
  233. package/package.json +3 -3
@@ -7,7 +7,12 @@ import { z } from 'zod';
7
7
  /**
8
8
  * Credit note status enum
9
9
  */
10
- export declare const CreditNoteStatusEnum: z.ZodEnum<["created", "sent", "applied", "void"]>;
10
+ export declare const CreditNoteStatusEnum: z.ZodEnum<{
11
+ void: "void";
12
+ sent: "sent";
13
+ created: "created";
14
+ applied: "applied";
15
+ }>;
11
16
  /**
12
17
  * Credit note line item schema
13
18
  */
@@ -22,56 +27,12 @@ export declare const CreditNoteLineSchema: z.ZodObject<{
22
27
  unitCost: z.ZodOptional<z.ZodObject<{
23
28
  amount: z.ZodString;
24
29
  code: z.ZodString;
25
- }, "strip", z.ZodTypeAny, {
26
- code: string;
27
- amount: string;
28
- }, {
29
- code: string;
30
- amount: string;
31
- }>>;
30
+ }, z.core.$strip>>;
32
31
  amount: z.ZodObject<{
33
32
  amount: z.ZodString;
34
33
  code: z.ZodString;
35
- }, "strip", z.ZodTypeAny, {
36
- code: string;
37
- amount: string;
38
- }, {
39
- code: string;
40
- amount: string;
41
- }>;
42
- }, "strip", z.ZodTypeAny, {
43
- amount: {
44
- code: string;
45
- amount: string;
46
- };
47
- name: string;
48
- description?: string | undefined;
49
- taxName1?: string | null | undefined;
50
- taxAmount1?: string | null | undefined;
51
- taxName2?: string | null | undefined;
52
- taxAmount2?: string | null | undefined;
53
- unitCost?: {
54
- code: string;
55
- amount: string;
56
- } | undefined;
57
- quantity?: number | undefined;
58
- }, {
59
- amount: {
60
- code: string;
61
- amount: string;
62
- };
63
- name: string;
64
- description?: string | undefined;
65
- taxName1?: string | null | undefined;
66
- taxAmount1?: string | null | undefined;
67
- taxName2?: string | null | undefined;
68
- taxAmount2?: string | null | undefined;
69
- unitCost?: {
70
- code: string;
71
- amount: string;
72
- } | undefined;
73
- quantity?: number | undefined;
74
- }>;
34
+ }, z.core.$strip>;
35
+ }, z.core.$strip>;
75
36
  /**
76
37
  * Full CreditNote schema with all properties
77
38
  * NOTE: Field names and types match the FreshBooks SDK CreditNote model
@@ -81,130 +42,19 @@ export declare const CreditNoteSchema: z.ZodObject<{
81
42
  creditId: z.ZodOptional<z.ZodNumber>;
82
43
  creditNumber: z.ZodOptional<z.ZodString>;
83
44
  creditNoteNumber: z.ZodOptional<z.ZodString>;
84
- clientId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
45
+ clientId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
85
46
  createDate: z.ZodOptional<z.ZodAny>;
86
47
  amount: z.ZodOptional<z.ZodObject<{
87
48
  amount: z.ZodString;
88
49
  code: z.ZodString;
89
- }, "strip", z.ZodTypeAny, {
90
- code: string;
91
- amount: string;
92
- }, {
93
- code: string;
94
- amount: string;
95
- }>>;
50
+ }, z.core.$strip>>;
96
51
  currencyCode: z.ZodOptional<z.ZodString>;
97
- status: z.ZodOptional<z.ZodEnum<["created", "sent", "applied", "void"]>>;
98
- lines: z.ZodOptional<z.ZodArray<z.ZodObject<{
99
- name: z.ZodString;
100
- description: z.ZodOptional<z.ZodString>;
101
- taxName1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
102
- taxAmount1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
103
- taxName2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
104
- taxAmount2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
105
- quantity: z.ZodOptional<z.ZodNumber>;
106
- unitCost: z.ZodOptional<z.ZodObject<{
107
- amount: z.ZodString;
108
- code: z.ZodString;
109
- }, "strip", z.ZodTypeAny, {
110
- code: string;
111
- amount: string;
112
- }, {
113
- code: string;
114
- amount: string;
115
- }>>;
116
- amount: z.ZodObject<{
117
- amount: z.ZodString;
118
- code: z.ZodString;
119
- }, "strip", z.ZodTypeAny, {
120
- code: string;
121
- amount: string;
122
- }, {
123
- code: string;
124
- amount: string;
125
- }>;
126
- }, "strip", z.ZodTypeAny, {
127
- amount: {
128
- code: string;
129
- amount: string;
130
- };
131
- name: string;
132
- description?: string | undefined;
133
- taxName1?: string | null | undefined;
134
- taxAmount1?: string | null | undefined;
135
- taxName2?: string | null | undefined;
136
- taxAmount2?: string | null | undefined;
137
- unitCost?: {
138
- code: string;
139
- amount: string;
140
- } | undefined;
141
- quantity?: number | undefined;
142
- }, {
143
- amount: {
144
- code: string;
145
- amount: string;
146
- };
147
- name: string;
148
- description?: string | undefined;
149
- taxName1?: string | null | undefined;
150
- taxAmount1?: string | null | undefined;
151
- taxName2?: string | null | undefined;
152
- taxAmount2?: string | null | undefined;
153
- unitCost?: {
154
- code: string;
155
- amount: string;
156
- } | undefined;
157
- quantity?: number | undefined;
158
- }>, "many">>;
159
- notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
160
- terms: z.ZodOptional<z.ZodNullable<z.ZodString>>;
161
- language: z.ZodOptional<z.ZodString>;
162
- displayStatus: z.ZodOptional<z.ZodString>;
163
- disputeStatus: z.ZodOptional<z.ZodNullable<z.ZodString>>;
164
- organization: z.ZodOptional<z.ZodString>;
165
- currentOrganization: z.ZodOptional<z.ZodString>;
166
- fName: z.ZodOptional<z.ZodString>;
167
- lName: z.ZodOptional<z.ZodString>;
168
- email: z.ZodOptional<z.ZodString>;
169
- street: z.ZodOptional<z.ZodString>;
170
- street2: z.ZodOptional<z.ZodString>;
171
- city: z.ZodOptional<z.ZodString>;
172
- province: z.ZodOptional<z.ZodString>;
173
- code: z.ZodOptional<z.ZodString>;
174
- country: z.ZodOptional<z.ZodString>;
175
- visState: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
176
- paid: z.ZodOptional<z.ZodObject<{
177
- amount: z.ZodString;
178
- code: z.ZodString;
179
- }, "strip", z.ZodTypeAny, {
180
- code: string;
181
- amount: string;
182
- }, {
183
- code: string;
184
- amount: string;
185
- }>>;
186
- paymentStatus: z.ZodOptional<z.ZodString>;
187
- description: z.ZodOptional<z.ZodString>;
188
- accountingSystemId: z.ZodOptional<z.ZodString>;
189
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
190
- id: z.ZodOptional<z.ZodNumber>;
191
- creditId: z.ZodOptional<z.ZodNumber>;
192
- creditNumber: z.ZodOptional<z.ZodString>;
193
- creditNoteNumber: z.ZodOptional<z.ZodString>;
194
- clientId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
195
- createDate: z.ZodOptional<z.ZodAny>;
196
- amount: z.ZodOptional<z.ZodObject<{
197
- amount: z.ZodString;
198
- code: z.ZodString;
199
- }, "strip", z.ZodTypeAny, {
200
- code: string;
201
- amount: string;
202
- }, {
203
- code: string;
204
- amount: string;
52
+ status: z.ZodOptional<z.ZodEnum<{
53
+ void: "void";
54
+ sent: "sent";
55
+ created: "created";
56
+ applied: "applied";
205
57
  }>>;
206
- currencyCode: z.ZodOptional<z.ZodString>;
207
- status: z.ZodOptional<z.ZodEnum<["created", "sent", "applied", "void"]>>;
208
58
  lines: z.ZodOptional<z.ZodArray<z.ZodObject<{
209
59
  name: z.ZodString;
210
60
  description: z.ZodOptional<z.ZodString>;
@@ -216,56 +66,12 @@ export declare const CreditNoteSchema: z.ZodObject<{
216
66
  unitCost: z.ZodOptional<z.ZodObject<{
217
67
  amount: z.ZodString;
218
68
  code: z.ZodString;
219
- }, "strip", z.ZodTypeAny, {
220
- code: string;
221
- amount: string;
222
- }, {
223
- code: string;
224
- amount: string;
225
- }>>;
69
+ }, z.core.$strip>>;
226
70
  amount: z.ZodObject<{
227
71
  amount: z.ZodString;
228
72
  code: z.ZodString;
229
- }, "strip", z.ZodTypeAny, {
230
- code: string;
231
- amount: string;
232
- }, {
233
- code: string;
234
- amount: string;
235
- }>;
236
- }, "strip", z.ZodTypeAny, {
237
- amount: {
238
- code: string;
239
- amount: string;
240
- };
241
- name: string;
242
- description?: string | undefined;
243
- taxName1?: string | null | undefined;
244
- taxAmount1?: string | null | undefined;
245
- taxName2?: string | null | undefined;
246
- taxAmount2?: string | null | undefined;
247
- unitCost?: {
248
- code: string;
249
- amount: string;
250
- } | undefined;
251
- quantity?: number | undefined;
252
- }, {
253
- amount: {
254
- code: string;
255
- amount: string;
256
- };
257
- name: string;
258
- description?: string | undefined;
259
- taxName1?: string | null | undefined;
260
- taxAmount1?: string | null | undefined;
261
- taxName2?: string | null | undefined;
262
- taxAmount2?: string | null | undefined;
263
- unitCost?: {
264
- code: string;
265
- amount: string;
266
- } | undefined;
267
- quantity?: number | undefined;
268
- }>, "many">>;
73
+ }, z.core.$strip>;
74
+ }, z.core.$strip>>>;
269
75
  notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
270
76
  terms: z.ZodOptional<z.ZodNullable<z.ZodString>>;
271
77
  language: z.ZodOptional<z.ZodString>;
@@ -282,138 +88,22 @@ export declare const CreditNoteSchema: z.ZodObject<{
282
88
  province: z.ZodOptional<z.ZodString>;
283
89
  code: z.ZodOptional<z.ZodString>;
284
90
  country: z.ZodOptional<z.ZodString>;
285
- visState: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
91
+ visState: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
286
92
  paid: z.ZodOptional<z.ZodObject<{
287
93
  amount: z.ZodString;
288
94
  code: z.ZodString;
289
- }, "strip", z.ZodTypeAny, {
290
- code: string;
291
- amount: string;
292
- }, {
293
- code: string;
294
- amount: string;
295
- }>>;
95
+ }, z.core.$strip>>;
296
96
  paymentStatus: z.ZodOptional<z.ZodString>;
297
97
  description: z.ZodOptional<z.ZodString>;
298
98
  accountingSystemId: z.ZodOptional<z.ZodString>;
299
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
300
- id: z.ZodOptional<z.ZodNumber>;
301
- creditId: z.ZodOptional<z.ZodNumber>;
302
- creditNumber: z.ZodOptional<z.ZodString>;
303
- creditNoteNumber: z.ZodOptional<z.ZodString>;
304
- clientId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
305
- createDate: z.ZodOptional<z.ZodAny>;
306
- amount: z.ZodOptional<z.ZodObject<{
307
- amount: z.ZodString;
308
- code: z.ZodString;
309
- }, "strip", z.ZodTypeAny, {
310
- code: string;
311
- amount: string;
312
- }, {
313
- code: string;
314
- amount: string;
315
- }>>;
316
- currencyCode: z.ZodOptional<z.ZodString>;
317
- status: z.ZodOptional<z.ZodEnum<["created", "sent", "applied", "void"]>>;
318
- lines: z.ZodOptional<z.ZodArray<z.ZodObject<{
319
- name: z.ZodString;
320
- description: z.ZodOptional<z.ZodString>;
321
- taxName1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
322
- taxAmount1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
323
- taxName2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
324
- taxAmount2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
325
- quantity: z.ZodOptional<z.ZodNumber>;
326
- unitCost: z.ZodOptional<z.ZodObject<{
327
- amount: z.ZodString;
328
- code: z.ZodString;
329
- }, "strip", z.ZodTypeAny, {
330
- code: string;
331
- amount: string;
332
- }, {
333
- code: string;
334
- amount: string;
335
- }>>;
336
- amount: z.ZodObject<{
337
- amount: z.ZodString;
338
- code: z.ZodString;
339
- }, "strip", z.ZodTypeAny, {
340
- code: string;
341
- amount: string;
342
- }, {
343
- code: string;
344
- amount: string;
345
- }>;
346
- }, "strip", z.ZodTypeAny, {
347
- amount: {
348
- code: string;
349
- amount: string;
350
- };
351
- name: string;
352
- description?: string | undefined;
353
- taxName1?: string | null | undefined;
354
- taxAmount1?: string | null | undefined;
355
- taxName2?: string | null | undefined;
356
- taxAmount2?: string | null | undefined;
357
- unitCost?: {
358
- code: string;
359
- amount: string;
360
- } | undefined;
361
- quantity?: number | undefined;
362
- }, {
363
- amount: {
364
- code: string;
365
- amount: string;
366
- };
367
- name: string;
368
- description?: string | undefined;
369
- taxName1?: string | null | undefined;
370
- taxAmount1?: string | null | undefined;
371
- taxName2?: string | null | undefined;
372
- taxAmount2?: string | null | undefined;
373
- unitCost?: {
374
- code: string;
375
- amount: string;
376
- } | undefined;
377
- quantity?: number | undefined;
378
- }>, "many">>;
379
- notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
380
- terms: z.ZodOptional<z.ZodNullable<z.ZodString>>;
381
- language: z.ZodOptional<z.ZodString>;
382
- displayStatus: z.ZodOptional<z.ZodString>;
383
- disputeStatus: z.ZodOptional<z.ZodNullable<z.ZodString>>;
384
- organization: z.ZodOptional<z.ZodString>;
385
- currentOrganization: z.ZodOptional<z.ZodString>;
386
- fName: z.ZodOptional<z.ZodString>;
387
- lName: z.ZodOptional<z.ZodString>;
388
- email: z.ZodOptional<z.ZodString>;
389
- street: z.ZodOptional<z.ZodString>;
390
- street2: z.ZodOptional<z.ZodString>;
391
- city: z.ZodOptional<z.ZodString>;
392
- province: z.ZodOptional<z.ZodString>;
393
- code: z.ZodOptional<z.ZodString>;
394
- country: z.ZodOptional<z.ZodString>;
395
- visState: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
396
- paid: z.ZodOptional<z.ZodObject<{
397
- amount: z.ZodString;
398
- code: z.ZodString;
399
- }, "strip", z.ZodTypeAny, {
400
- code: string;
401
- amount: string;
402
- }, {
403
- code: string;
404
- amount: string;
405
- }>>;
406
- paymentStatus: z.ZodOptional<z.ZodString>;
407
- description: z.ZodOptional<z.ZodString>;
408
- accountingSystemId: z.ZodOptional<z.ZodString>;
409
- }, z.ZodTypeAny, "passthrough">>;
99
+ }, z.core.$loose>;
410
100
  /**
411
101
  * Input schema for creating a credit note
412
102
  */
413
103
  export declare const CreditNoteCreateInputSchema: z.ZodObject<{
414
104
  accountId: z.ZodString;
415
105
  clientId: z.ZodNumber;
416
- createDate: z.ZodEffects<z.ZodString, string, string>;
106
+ createDate: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
417
107
  currencyCode: z.ZodOptional<z.ZodDefault<z.ZodString>>;
418
108
  lines: z.ZodArray<z.ZodObject<{
419
109
  name: z.ZodString;
@@ -422,101 +112,23 @@ export declare const CreditNoteCreateInputSchema: z.ZodObject<{
422
112
  unitCost: z.ZodOptional<z.ZodObject<{
423
113
  amount: z.ZodString;
424
114
  code: z.ZodString;
425
- }, "strip", z.ZodTypeAny, {
426
- code: string;
427
- amount: string;
428
- }, {
429
- code: string;
430
- amount: string;
431
- }>>;
115
+ }, z.core.$strip>>;
432
116
  amount: z.ZodObject<{
433
117
  amount: z.ZodString;
434
118
  code: z.ZodString;
435
- }, "strip", z.ZodTypeAny, {
436
- code: string;
437
- amount: string;
438
- }, {
439
- code: string;
440
- amount: string;
441
- }>;
442
- }, "strip", z.ZodTypeAny, {
443
- amount: {
444
- code: string;
445
- amount: string;
446
- };
447
- name: string;
448
- description?: string | undefined;
449
- unitCost?: {
450
- code: string;
451
- amount: string;
452
- } | undefined;
453
- quantity?: number | undefined;
454
- }, {
455
- amount: {
456
- code: string;
457
- amount: string;
458
- };
459
- name: string;
460
- description?: string | undefined;
461
- unitCost?: {
462
- code: string;
463
- amount: string;
464
- } | undefined;
465
- quantity?: number | undefined;
466
- }>, "many">;
119
+ }, z.core.$strip>;
120
+ }, z.core.$strip>>;
467
121
  notes: z.ZodOptional<z.ZodString>;
468
122
  terms: z.ZodOptional<z.ZodString>;
469
123
  language: z.ZodOptional<z.ZodString>;
470
- }, "strip", z.ZodTypeAny, {
471
- accountId: string;
472
- clientId: number;
473
- lines: {
474
- amount: {
475
- code: string;
476
- amount: string;
477
- };
478
- name: string;
479
- description?: string | undefined;
480
- unitCost?: {
481
- code: string;
482
- amount: string;
483
- } | undefined;
484
- quantity?: number | undefined;
485
- }[];
486
- createDate: string;
487
- currencyCode?: string | undefined;
488
- language?: string | undefined;
489
- notes?: string | undefined;
490
- terms?: string | undefined;
491
- }, {
492
- accountId: string;
493
- clientId: number;
494
- lines: {
495
- amount: {
496
- code: string;
497
- amount: string;
498
- };
499
- name: string;
500
- description?: string | undefined;
501
- unitCost?: {
502
- code: string;
503
- amount: string;
504
- } | undefined;
505
- quantity?: number | undefined;
506
- }[];
507
- createDate: string;
508
- currencyCode?: string | undefined;
509
- language?: string | undefined;
510
- notes?: string | undefined;
511
- terms?: string | undefined;
512
- }>;
124
+ }, z.core.$strip>;
513
125
  /**
514
126
  * Input schema for updating a credit note
515
127
  */
516
128
  export declare const CreditNoteUpdateInputSchema: z.ZodObject<{
517
129
  accountId: z.ZodString;
518
130
  creditNoteId: z.ZodNumber;
519
- createDate: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, string | undefined>;
131
+ createDate: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<string | undefined, string | undefined>>;
520
132
  lines: z.ZodOptional<z.ZodArray<z.ZodObject<{
521
133
  name: z.ZodString;
522
134
  description: z.ZodOptional<z.ZodString>;
@@ -524,89 +136,15 @@ export declare const CreditNoteUpdateInputSchema: z.ZodObject<{
524
136
  unitCost: z.ZodOptional<z.ZodObject<{
525
137
  amount: z.ZodString;
526
138
  code: z.ZodString;
527
- }, "strip", z.ZodTypeAny, {
528
- code: string;
529
- amount: string;
530
- }, {
531
- code: string;
532
- amount: string;
533
- }>>;
139
+ }, z.core.$strip>>;
534
140
  amount: z.ZodObject<{
535
141
  amount: z.ZodString;
536
142
  code: z.ZodString;
537
- }, "strip", z.ZodTypeAny, {
538
- code: string;
539
- amount: string;
540
- }, {
541
- code: string;
542
- amount: string;
543
- }>;
544
- }, "strip", z.ZodTypeAny, {
545
- amount: {
546
- code: string;
547
- amount: string;
548
- };
549
- name: string;
550
- description?: string | undefined;
551
- unitCost?: {
552
- code: string;
553
- amount: string;
554
- } | undefined;
555
- quantity?: number | undefined;
556
- }, {
557
- amount: {
558
- code: string;
559
- amount: string;
560
- };
561
- name: string;
562
- description?: string | undefined;
563
- unitCost?: {
564
- code: string;
565
- amount: string;
566
- } | undefined;
567
- quantity?: number | undefined;
568
- }>, "many">>;
143
+ }, z.core.$strip>;
144
+ }, z.core.$strip>>>;
569
145
  notes: z.ZodOptional<z.ZodString>;
570
146
  terms: z.ZodOptional<z.ZodString>;
571
- }, "strip", z.ZodTypeAny, {
572
- accountId: string;
573
- creditNoteId: number;
574
- lines?: {
575
- amount: {
576
- code: string;
577
- amount: string;
578
- };
579
- name: string;
580
- description?: string | undefined;
581
- unitCost?: {
582
- code: string;
583
- amount: string;
584
- } | undefined;
585
- quantity?: number | undefined;
586
- }[] | undefined;
587
- createDate?: string | undefined;
588
- notes?: string | undefined;
589
- terms?: string | undefined;
590
- }, {
591
- accountId: string;
592
- creditNoteId: number;
593
- lines?: {
594
- amount: {
595
- code: string;
596
- amount: string;
597
- };
598
- name: string;
599
- description?: string | undefined;
600
- unitCost?: {
601
- code: string;
602
- amount: string;
603
- } | undefined;
604
- quantity?: number | undefined;
605
- }[] | undefined;
606
- createDate?: string | undefined;
607
- notes?: string | undefined;
608
- terms?: string | undefined;
609
- }>;
147
+ }, z.core.$strip>;
610
148
  /**
611
149
  * Input schema for listing credit notes
612
150
  */
@@ -615,39 +153,22 @@ export declare const CreditNoteListInputSchema: z.ZodObject<{
615
153
  page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
616
154
  perPage: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
617
155
  clientId: z.ZodOptional<z.ZodNumber>;
618
- status: z.ZodOptional<z.ZodEnum<["created", "sent", "applied", "void"]>>;
619
- dateFrom: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, string | undefined>;
620
- dateTo: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, string | undefined>;
621
- }, "strip", z.ZodTypeAny, {
622
- accountId: string;
623
- status?: "void" | "sent" | "created" | "applied" | undefined;
624
- page?: number | undefined;
625
- perPage?: number | undefined;
626
- clientId?: number | undefined;
627
- dateFrom?: string | undefined;
628
- dateTo?: string | undefined;
629
- }, {
630
- accountId: string;
631
- status?: "void" | "sent" | "created" | "applied" | undefined;
632
- page?: number | undefined;
633
- perPage?: number | undefined;
634
- clientId?: number | undefined;
635
- dateFrom?: string | undefined;
636
- dateTo?: string | undefined;
637
- }>;
156
+ status: z.ZodOptional<z.ZodEnum<{
157
+ void: "void";
158
+ sent: "sent";
159
+ created: "created";
160
+ applied: "applied";
161
+ }>>;
162
+ dateFrom: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<string | undefined, string | undefined>>;
163
+ dateTo: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<string | undefined, string | undefined>>;
164
+ }, z.core.$strip>;
638
165
  /**
639
166
  * Input schema for getting a single credit note
640
167
  */
641
168
  export declare const CreditNoteSingleInputSchema: z.ZodObject<{
642
169
  accountId: z.ZodString;
643
170
  creditNoteId: z.ZodNumber;
644
- }, "strip", z.ZodTypeAny, {
645
- accountId: string;
646
- creditNoteId: number;
647
- }, {
648
- accountId: string;
649
- creditNoteId: number;
650
- }>;
171
+ }, z.core.$strip>;
651
172
  /**
652
173
  * Input schema for deleting a credit note
653
174
  */
@@ -656,17 +177,7 @@ export declare const CreditNoteDeleteInputSchema: z.ZodObject<{
656
177
  creditNoteId: z.ZodNumber;
657
178
  confirmed: z.ZodOptional<z.ZodBoolean>;
658
179
  confirmationId: z.ZodOptional<z.ZodString>;
659
- }, "strip", z.ZodTypeAny, {
660
- accountId: string;
661
- creditNoteId: number;
662
- confirmed?: boolean | undefined;
663
- confirmationId?: string | undefined;
664
- }, {
665
- accountId: string;
666
- creditNoteId: number;
667
- confirmed?: boolean | undefined;
668
- confirmationId?: string | undefined;
669
- }>;
180
+ }, z.core.$strip>;
670
181
  /**
671
182
  * Output schema for credit note list
672
183
  */
@@ -676,240 +187,19 @@ export declare const CreditNoteListOutputSchema: z.ZodObject<{
676
187
  creditId: z.ZodOptional<z.ZodNumber>;
677
188
  creditNumber: z.ZodOptional<z.ZodString>;
678
189
  creditNoteNumber: z.ZodOptional<z.ZodString>;
679
- clientId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
190
+ clientId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
680
191
  createDate: z.ZodOptional<z.ZodAny>;
681
192
  amount: z.ZodOptional<z.ZodObject<{
682
193
  amount: z.ZodString;
683
194
  code: z.ZodString;
684
- }, "strip", z.ZodTypeAny, {
685
- code: string;
686
- amount: string;
687
- }, {
688
- code: string;
689
- amount: string;
690
- }>>;
195
+ }, z.core.$strip>>;
691
196
  currencyCode: z.ZodOptional<z.ZodString>;
692
- status: z.ZodOptional<z.ZodEnum<["created", "sent", "applied", "void"]>>;
693
- lines: z.ZodOptional<z.ZodArray<z.ZodObject<{
694
- name: z.ZodString;
695
- description: z.ZodOptional<z.ZodString>;
696
- taxName1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
697
- taxAmount1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
698
- taxName2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
699
- taxAmount2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
700
- quantity: z.ZodOptional<z.ZodNumber>;
701
- unitCost: z.ZodOptional<z.ZodObject<{
702
- amount: z.ZodString;
703
- code: z.ZodString;
704
- }, "strip", z.ZodTypeAny, {
705
- code: string;
706
- amount: string;
707
- }, {
708
- code: string;
709
- amount: string;
710
- }>>;
711
- amount: z.ZodObject<{
712
- amount: z.ZodString;
713
- code: z.ZodString;
714
- }, "strip", z.ZodTypeAny, {
715
- code: string;
716
- amount: string;
717
- }, {
718
- code: string;
719
- amount: string;
720
- }>;
721
- }, "strip", z.ZodTypeAny, {
722
- amount: {
723
- code: string;
724
- amount: string;
725
- };
726
- name: string;
727
- description?: string | undefined;
728
- taxName1?: string | null | undefined;
729
- taxAmount1?: string | null | undefined;
730
- taxName2?: string | null | undefined;
731
- taxAmount2?: string | null | undefined;
732
- unitCost?: {
733
- code: string;
734
- amount: string;
735
- } | undefined;
736
- quantity?: number | undefined;
737
- }, {
738
- amount: {
739
- code: string;
740
- amount: string;
741
- };
742
- name: string;
743
- description?: string | undefined;
744
- taxName1?: string | null | undefined;
745
- taxAmount1?: string | null | undefined;
746
- taxName2?: string | null | undefined;
747
- taxAmount2?: string | null | undefined;
748
- unitCost?: {
749
- code: string;
750
- amount: string;
751
- } | undefined;
752
- quantity?: number | undefined;
753
- }>, "many">>;
754
- notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
755
- terms: z.ZodOptional<z.ZodNullable<z.ZodString>>;
756
- language: z.ZodOptional<z.ZodString>;
757
- displayStatus: z.ZodOptional<z.ZodString>;
758
- disputeStatus: z.ZodOptional<z.ZodNullable<z.ZodString>>;
759
- organization: z.ZodOptional<z.ZodString>;
760
- currentOrganization: z.ZodOptional<z.ZodString>;
761
- fName: z.ZodOptional<z.ZodString>;
762
- lName: z.ZodOptional<z.ZodString>;
763
- email: z.ZodOptional<z.ZodString>;
764
- street: z.ZodOptional<z.ZodString>;
765
- street2: z.ZodOptional<z.ZodString>;
766
- city: z.ZodOptional<z.ZodString>;
767
- province: z.ZodOptional<z.ZodString>;
768
- code: z.ZodOptional<z.ZodString>;
769
- country: z.ZodOptional<z.ZodString>;
770
- visState: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
771
- paid: z.ZodOptional<z.ZodObject<{
772
- amount: z.ZodString;
773
- code: z.ZodString;
774
- }, "strip", z.ZodTypeAny, {
775
- code: string;
776
- amount: string;
777
- }, {
778
- code: string;
779
- amount: string;
780
- }>>;
781
- paymentStatus: z.ZodOptional<z.ZodString>;
782
- description: z.ZodOptional<z.ZodString>;
783
- accountingSystemId: z.ZodOptional<z.ZodString>;
784
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
785
- id: z.ZodOptional<z.ZodNumber>;
786
- creditId: z.ZodOptional<z.ZodNumber>;
787
- creditNumber: z.ZodOptional<z.ZodString>;
788
- creditNoteNumber: z.ZodOptional<z.ZodString>;
789
- clientId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
790
- createDate: z.ZodOptional<z.ZodAny>;
791
- amount: z.ZodOptional<z.ZodObject<{
792
- amount: z.ZodString;
793
- code: z.ZodString;
794
- }, "strip", z.ZodTypeAny, {
795
- code: string;
796
- amount: string;
797
- }, {
798
- code: string;
799
- amount: string;
800
- }>>;
801
- currencyCode: z.ZodOptional<z.ZodString>;
802
- status: z.ZodOptional<z.ZodEnum<["created", "sent", "applied", "void"]>>;
803
- lines: z.ZodOptional<z.ZodArray<z.ZodObject<{
804
- name: z.ZodString;
805
- description: z.ZodOptional<z.ZodString>;
806
- taxName1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
807
- taxAmount1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
808
- taxName2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
809
- taxAmount2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
810
- quantity: z.ZodOptional<z.ZodNumber>;
811
- unitCost: z.ZodOptional<z.ZodObject<{
812
- amount: z.ZodString;
813
- code: z.ZodString;
814
- }, "strip", z.ZodTypeAny, {
815
- code: string;
816
- amount: string;
817
- }, {
818
- code: string;
819
- amount: string;
820
- }>>;
821
- amount: z.ZodObject<{
822
- amount: z.ZodString;
823
- code: z.ZodString;
824
- }, "strip", z.ZodTypeAny, {
825
- code: string;
826
- amount: string;
827
- }, {
828
- code: string;
829
- amount: string;
830
- }>;
831
- }, "strip", z.ZodTypeAny, {
832
- amount: {
833
- code: string;
834
- amount: string;
835
- };
836
- name: string;
837
- description?: string | undefined;
838
- taxName1?: string | null | undefined;
839
- taxAmount1?: string | null | undefined;
840
- taxName2?: string | null | undefined;
841
- taxAmount2?: string | null | undefined;
842
- unitCost?: {
843
- code: string;
844
- amount: string;
845
- } | undefined;
846
- quantity?: number | undefined;
847
- }, {
848
- amount: {
849
- code: string;
850
- amount: string;
851
- };
852
- name: string;
853
- description?: string | undefined;
854
- taxName1?: string | null | undefined;
855
- taxAmount1?: string | null | undefined;
856
- taxName2?: string | null | undefined;
857
- taxAmount2?: string | null | undefined;
858
- unitCost?: {
859
- code: string;
860
- amount: string;
861
- } | undefined;
862
- quantity?: number | undefined;
863
- }>, "many">>;
864
- notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
865
- terms: z.ZodOptional<z.ZodNullable<z.ZodString>>;
866
- language: z.ZodOptional<z.ZodString>;
867
- displayStatus: z.ZodOptional<z.ZodString>;
868
- disputeStatus: z.ZodOptional<z.ZodNullable<z.ZodString>>;
869
- organization: z.ZodOptional<z.ZodString>;
870
- currentOrganization: z.ZodOptional<z.ZodString>;
871
- fName: z.ZodOptional<z.ZodString>;
872
- lName: z.ZodOptional<z.ZodString>;
873
- email: z.ZodOptional<z.ZodString>;
874
- street: z.ZodOptional<z.ZodString>;
875
- street2: z.ZodOptional<z.ZodString>;
876
- city: z.ZodOptional<z.ZodString>;
877
- province: z.ZodOptional<z.ZodString>;
878
- code: z.ZodOptional<z.ZodString>;
879
- country: z.ZodOptional<z.ZodString>;
880
- visState: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
881
- paid: z.ZodOptional<z.ZodObject<{
882
- amount: z.ZodString;
883
- code: z.ZodString;
884
- }, "strip", z.ZodTypeAny, {
885
- code: string;
886
- amount: string;
887
- }, {
888
- code: string;
889
- amount: string;
890
- }>>;
891
- paymentStatus: z.ZodOptional<z.ZodString>;
892
- description: z.ZodOptional<z.ZodString>;
893
- accountingSystemId: z.ZodOptional<z.ZodString>;
894
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
895
- id: z.ZodOptional<z.ZodNumber>;
896
- creditId: z.ZodOptional<z.ZodNumber>;
897
- creditNumber: z.ZodOptional<z.ZodString>;
898
- creditNoteNumber: z.ZodOptional<z.ZodString>;
899
- clientId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
900
- createDate: z.ZodOptional<z.ZodAny>;
901
- amount: z.ZodOptional<z.ZodObject<{
902
- amount: z.ZodString;
903
- code: z.ZodString;
904
- }, "strip", z.ZodTypeAny, {
905
- code: string;
906
- amount: string;
907
- }, {
908
- code: string;
909
- amount: string;
197
+ status: z.ZodOptional<z.ZodEnum<{
198
+ void: "void";
199
+ sent: "sent";
200
+ created: "created";
201
+ applied: "applied";
910
202
  }>>;
911
- currencyCode: z.ZodOptional<z.ZodString>;
912
- status: z.ZodOptional<z.ZodEnum<["created", "sent", "applied", "void"]>>;
913
203
  lines: z.ZodOptional<z.ZodArray<z.ZodObject<{
914
204
  name: z.ZodString;
915
205
  description: z.ZodOptional<z.ZodString>;
@@ -921,56 +211,12 @@ export declare const CreditNoteListOutputSchema: z.ZodObject<{
921
211
  unitCost: z.ZodOptional<z.ZodObject<{
922
212
  amount: z.ZodString;
923
213
  code: z.ZodString;
924
- }, "strip", z.ZodTypeAny, {
925
- code: string;
926
- amount: string;
927
- }, {
928
- code: string;
929
- amount: string;
930
- }>>;
214
+ }, z.core.$strip>>;
931
215
  amount: z.ZodObject<{
932
216
  amount: z.ZodString;
933
217
  code: z.ZodString;
934
- }, "strip", z.ZodTypeAny, {
935
- code: string;
936
- amount: string;
937
- }, {
938
- code: string;
939
- amount: string;
940
- }>;
941
- }, "strip", z.ZodTypeAny, {
942
- amount: {
943
- code: string;
944
- amount: string;
945
- };
946
- name: string;
947
- description?: string | undefined;
948
- taxName1?: string | null | undefined;
949
- taxAmount1?: string | null | undefined;
950
- taxName2?: string | null | undefined;
951
- taxAmount2?: string | null | undefined;
952
- unitCost?: {
953
- code: string;
954
- amount: string;
955
- } | undefined;
956
- quantity?: number | undefined;
957
- }, {
958
- amount: {
959
- code: string;
960
- amount: string;
961
- };
962
- name: string;
963
- description?: string | undefined;
964
- taxName1?: string | null | undefined;
965
- taxAmount1?: string | null | undefined;
966
- taxName2?: string | null | undefined;
967
- taxAmount2?: string | null | undefined;
968
- unitCost?: {
969
- code: string;
970
- amount: string;
971
- } | undefined;
972
- quantity?: number | undefined;
973
- }>, "many">>;
218
+ }, z.core.$strip>;
219
+ }, z.core.$strip>>>;
974
220
  notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
975
221
  terms: z.ZodOptional<z.ZodNullable<z.ZodString>>;
976
222
  language: z.ZodOptional<z.ZodString>;
@@ -987,274 +233,22 @@ export declare const CreditNoteListOutputSchema: z.ZodObject<{
987
233
  province: z.ZodOptional<z.ZodString>;
988
234
  code: z.ZodOptional<z.ZodString>;
989
235
  country: z.ZodOptional<z.ZodString>;
990
- visState: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
236
+ visState: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
991
237
  paid: z.ZodOptional<z.ZodObject<{
992
238
  amount: z.ZodString;
993
239
  code: z.ZodString;
994
- }, "strip", z.ZodTypeAny, {
995
- code: string;
996
- amount: string;
997
- }, {
998
- code: string;
999
- amount: string;
1000
- }>>;
240
+ }, z.core.$strip>>;
1001
241
  paymentStatus: z.ZodOptional<z.ZodString>;
1002
242
  description: z.ZodOptional<z.ZodString>;
1003
243
  accountingSystemId: z.ZodOptional<z.ZodString>;
1004
- }, z.ZodTypeAny, "passthrough">>, "many">;
244
+ }, z.core.$loose>>;
1005
245
  pagination: z.ZodObject<{
1006
246
  page: z.ZodNumber;
1007
247
  pages: z.ZodNumber;
1008
248
  perPage: z.ZodNumber;
1009
249
  total: z.ZodNumber;
1010
- }, "strip", z.ZodTypeAny, {
1011
- page: number;
1012
- perPage: number;
1013
- pages: number;
1014
- total: number;
1015
- }, {
1016
- page: number;
1017
- perPage: number;
1018
- pages: number;
1019
- total: number;
1020
- }>;
1021
- }, "strip", z.ZodTypeAny, {
1022
- pagination: {
1023
- page: number;
1024
- perPage: number;
1025
- pages: number;
1026
- total: number;
1027
- };
1028
- creditNotes: z.objectOutputType<{
1029
- id: z.ZodOptional<z.ZodNumber>;
1030
- creditId: z.ZodOptional<z.ZodNumber>;
1031
- creditNumber: z.ZodOptional<z.ZodString>;
1032
- creditNoteNumber: z.ZodOptional<z.ZodString>;
1033
- clientId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
1034
- createDate: z.ZodOptional<z.ZodAny>;
1035
- amount: z.ZodOptional<z.ZodObject<{
1036
- amount: z.ZodString;
1037
- code: z.ZodString;
1038
- }, "strip", z.ZodTypeAny, {
1039
- code: string;
1040
- amount: string;
1041
- }, {
1042
- code: string;
1043
- amount: string;
1044
- }>>;
1045
- currencyCode: z.ZodOptional<z.ZodString>;
1046
- status: z.ZodOptional<z.ZodEnum<["created", "sent", "applied", "void"]>>;
1047
- lines: z.ZodOptional<z.ZodArray<z.ZodObject<{
1048
- name: z.ZodString;
1049
- description: z.ZodOptional<z.ZodString>;
1050
- taxName1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1051
- taxAmount1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1052
- taxName2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1053
- taxAmount2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1054
- quantity: z.ZodOptional<z.ZodNumber>;
1055
- unitCost: z.ZodOptional<z.ZodObject<{
1056
- amount: z.ZodString;
1057
- code: z.ZodString;
1058
- }, "strip", z.ZodTypeAny, {
1059
- code: string;
1060
- amount: string;
1061
- }, {
1062
- code: string;
1063
- amount: string;
1064
- }>>;
1065
- amount: z.ZodObject<{
1066
- amount: z.ZodString;
1067
- code: z.ZodString;
1068
- }, "strip", z.ZodTypeAny, {
1069
- code: string;
1070
- amount: string;
1071
- }, {
1072
- code: string;
1073
- amount: string;
1074
- }>;
1075
- }, "strip", z.ZodTypeAny, {
1076
- amount: {
1077
- code: string;
1078
- amount: string;
1079
- };
1080
- name: string;
1081
- description?: string | undefined;
1082
- taxName1?: string | null | undefined;
1083
- taxAmount1?: string | null | undefined;
1084
- taxName2?: string | null | undefined;
1085
- taxAmount2?: string | null | undefined;
1086
- unitCost?: {
1087
- code: string;
1088
- amount: string;
1089
- } | undefined;
1090
- quantity?: number | undefined;
1091
- }, {
1092
- amount: {
1093
- code: string;
1094
- amount: string;
1095
- };
1096
- name: string;
1097
- description?: string | undefined;
1098
- taxName1?: string | null | undefined;
1099
- taxAmount1?: string | null | undefined;
1100
- taxName2?: string | null | undefined;
1101
- taxAmount2?: string | null | undefined;
1102
- unitCost?: {
1103
- code: string;
1104
- amount: string;
1105
- } | undefined;
1106
- quantity?: number | undefined;
1107
- }>, "many">>;
1108
- notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1109
- terms: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1110
- language: z.ZodOptional<z.ZodString>;
1111
- displayStatus: z.ZodOptional<z.ZodString>;
1112
- disputeStatus: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1113
- organization: z.ZodOptional<z.ZodString>;
1114
- currentOrganization: z.ZodOptional<z.ZodString>;
1115
- fName: z.ZodOptional<z.ZodString>;
1116
- lName: z.ZodOptional<z.ZodString>;
1117
- email: z.ZodOptional<z.ZodString>;
1118
- street: z.ZodOptional<z.ZodString>;
1119
- street2: z.ZodOptional<z.ZodString>;
1120
- city: z.ZodOptional<z.ZodString>;
1121
- province: z.ZodOptional<z.ZodString>;
1122
- code: z.ZodOptional<z.ZodString>;
1123
- country: z.ZodOptional<z.ZodString>;
1124
- visState: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
1125
- paid: z.ZodOptional<z.ZodObject<{
1126
- amount: z.ZodString;
1127
- code: z.ZodString;
1128
- }, "strip", z.ZodTypeAny, {
1129
- code: string;
1130
- amount: string;
1131
- }, {
1132
- code: string;
1133
- amount: string;
1134
- }>>;
1135
- paymentStatus: z.ZodOptional<z.ZodString>;
1136
- description: z.ZodOptional<z.ZodString>;
1137
- accountingSystemId: z.ZodOptional<z.ZodString>;
1138
- }, z.ZodTypeAny, "passthrough">[];
1139
- }, {
1140
- pagination: {
1141
- page: number;
1142
- perPage: number;
1143
- pages: number;
1144
- total: number;
1145
- };
1146
- creditNotes: z.objectInputType<{
1147
- id: z.ZodOptional<z.ZodNumber>;
1148
- creditId: z.ZodOptional<z.ZodNumber>;
1149
- creditNumber: z.ZodOptional<z.ZodString>;
1150
- creditNoteNumber: z.ZodOptional<z.ZodString>;
1151
- clientId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
1152
- createDate: z.ZodOptional<z.ZodAny>;
1153
- amount: z.ZodOptional<z.ZodObject<{
1154
- amount: z.ZodString;
1155
- code: z.ZodString;
1156
- }, "strip", z.ZodTypeAny, {
1157
- code: string;
1158
- amount: string;
1159
- }, {
1160
- code: string;
1161
- amount: string;
1162
- }>>;
1163
- currencyCode: z.ZodOptional<z.ZodString>;
1164
- status: z.ZodOptional<z.ZodEnum<["created", "sent", "applied", "void"]>>;
1165
- lines: z.ZodOptional<z.ZodArray<z.ZodObject<{
1166
- name: z.ZodString;
1167
- description: z.ZodOptional<z.ZodString>;
1168
- taxName1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1169
- taxAmount1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1170
- taxName2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1171
- taxAmount2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1172
- quantity: z.ZodOptional<z.ZodNumber>;
1173
- unitCost: z.ZodOptional<z.ZodObject<{
1174
- amount: z.ZodString;
1175
- code: z.ZodString;
1176
- }, "strip", z.ZodTypeAny, {
1177
- code: string;
1178
- amount: string;
1179
- }, {
1180
- code: string;
1181
- amount: string;
1182
- }>>;
1183
- amount: z.ZodObject<{
1184
- amount: z.ZodString;
1185
- code: z.ZodString;
1186
- }, "strip", z.ZodTypeAny, {
1187
- code: string;
1188
- amount: string;
1189
- }, {
1190
- code: string;
1191
- amount: string;
1192
- }>;
1193
- }, "strip", z.ZodTypeAny, {
1194
- amount: {
1195
- code: string;
1196
- amount: string;
1197
- };
1198
- name: string;
1199
- description?: string | undefined;
1200
- taxName1?: string | null | undefined;
1201
- taxAmount1?: string | null | undefined;
1202
- taxName2?: string | null | undefined;
1203
- taxAmount2?: string | null | undefined;
1204
- unitCost?: {
1205
- code: string;
1206
- amount: string;
1207
- } | undefined;
1208
- quantity?: number | undefined;
1209
- }, {
1210
- amount: {
1211
- code: string;
1212
- amount: string;
1213
- };
1214
- name: string;
1215
- description?: string | undefined;
1216
- taxName1?: string | null | undefined;
1217
- taxAmount1?: string | null | undefined;
1218
- taxName2?: string | null | undefined;
1219
- taxAmount2?: string | null | undefined;
1220
- unitCost?: {
1221
- code: string;
1222
- amount: string;
1223
- } | undefined;
1224
- quantity?: number | undefined;
1225
- }>, "many">>;
1226
- notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1227
- terms: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1228
- language: z.ZodOptional<z.ZodString>;
1229
- displayStatus: z.ZodOptional<z.ZodString>;
1230
- disputeStatus: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1231
- organization: z.ZodOptional<z.ZodString>;
1232
- currentOrganization: z.ZodOptional<z.ZodString>;
1233
- fName: z.ZodOptional<z.ZodString>;
1234
- lName: z.ZodOptional<z.ZodString>;
1235
- email: z.ZodOptional<z.ZodString>;
1236
- street: z.ZodOptional<z.ZodString>;
1237
- street2: z.ZodOptional<z.ZodString>;
1238
- city: z.ZodOptional<z.ZodString>;
1239
- province: z.ZodOptional<z.ZodString>;
1240
- code: z.ZodOptional<z.ZodString>;
1241
- country: z.ZodOptional<z.ZodString>;
1242
- visState: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
1243
- paid: z.ZodOptional<z.ZodObject<{
1244
- amount: z.ZodString;
1245
- code: z.ZodString;
1246
- }, "strip", z.ZodTypeAny, {
1247
- code: string;
1248
- amount: string;
1249
- }, {
1250
- code: string;
1251
- amount: string;
1252
- }>>;
1253
- paymentStatus: z.ZodOptional<z.ZodString>;
1254
- description: z.ZodOptional<z.ZodString>;
1255
- accountingSystemId: z.ZodOptional<z.ZodString>;
1256
- }, z.ZodTypeAny, "passthrough">[];
1257
- }>;
250
+ }, z.core.$strip>;
251
+ }, z.core.$strip>;
1258
252
  /**
1259
253
  * Output schema for single credit note operations
1260
254
  */
@@ -1263,130 +257,19 @@ export declare const CreditNoteSingleOutputSchema: z.ZodObject<{
1263
257
  creditId: z.ZodOptional<z.ZodNumber>;
1264
258
  creditNumber: z.ZodOptional<z.ZodString>;
1265
259
  creditNoteNumber: z.ZodOptional<z.ZodString>;
1266
- clientId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
260
+ clientId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1267
261
  createDate: z.ZodOptional<z.ZodAny>;
1268
262
  amount: z.ZodOptional<z.ZodObject<{
1269
263
  amount: z.ZodString;
1270
264
  code: z.ZodString;
1271
- }, "strip", z.ZodTypeAny, {
1272
- code: string;
1273
- amount: string;
1274
- }, {
1275
- code: string;
1276
- amount: string;
1277
- }>>;
265
+ }, z.core.$strip>>;
1278
266
  currencyCode: z.ZodOptional<z.ZodString>;
1279
- status: z.ZodOptional<z.ZodEnum<["created", "sent", "applied", "void"]>>;
1280
- lines: z.ZodOptional<z.ZodArray<z.ZodObject<{
1281
- name: z.ZodString;
1282
- description: z.ZodOptional<z.ZodString>;
1283
- taxName1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1284
- taxAmount1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1285
- taxName2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1286
- taxAmount2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1287
- quantity: z.ZodOptional<z.ZodNumber>;
1288
- unitCost: z.ZodOptional<z.ZodObject<{
1289
- amount: z.ZodString;
1290
- code: z.ZodString;
1291
- }, "strip", z.ZodTypeAny, {
1292
- code: string;
1293
- amount: string;
1294
- }, {
1295
- code: string;
1296
- amount: string;
1297
- }>>;
1298
- amount: z.ZodObject<{
1299
- amount: z.ZodString;
1300
- code: z.ZodString;
1301
- }, "strip", z.ZodTypeAny, {
1302
- code: string;
1303
- amount: string;
1304
- }, {
1305
- code: string;
1306
- amount: string;
1307
- }>;
1308
- }, "strip", z.ZodTypeAny, {
1309
- amount: {
1310
- code: string;
1311
- amount: string;
1312
- };
1313
- name: string;
1314
- description?: string | undefined;
1315
- taxName1?: string | null | undefined;
1316
- taxAmount1?: string | null | undefined;
1317
- taxName2?: string | null | undefined;
1318
- taxAmount2?: string | null | undefined;
1319
- unitCost?: {
1320
- code: string;
1321
- amount: string;
1322
- } | undefined;
1323
- quantity?: number | undefined;
1324
- }, {
1325
- amount: {
1326
- code: string;
1327
- amount: string;
1328
- };
1329
- name: string;
1330
- description?: string | undefined;
1331
- taxName1?: string | null | undefined;
1332
- taxAmount1?: string | null | undefined;
1333
- taxName2?: string | null | undefined;
1334
- taxAmount2?: string | null | undefined;
1335
- unitCost?: {
1336
- code: string;
1337
- amount: string;
1338
- } | undefined;
1339
- quantity?: number | undefined;
1340
- }>, "many">>;
1341
- notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1342
- terms: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1343
- language: z.ZodOptional<z.ZodString>;
1344
- displayStatus: z.ZodOptional<z.ZodString>;
1345
- disputeStatus: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1346
- organization: z.ZodOptional<z.ZodString>;
1347
- currentOrganization: z.ZodOptional<z.ZodString>;
1348
- fName: z.ZodOptional<z.ZodString>;
1349
- lName: z.ZodOptional<z.ZodString>;
1350
- email: z.ZodOptional<z.ZodString>;
1351
- street: z.ZodOptional<z.ZodString>;
1352
- street2: z.ZodOptional<z.ZodString>;
1353
- city: z.ZodOptional<z.ZodString>;
1354
- province: z.ZodOptional<z.ZodString>;
1355
- code: z.ZodOptional<z.ZodString>;
1356
- country: z.ZodOptional<z.ZodString>;
1357
- visState: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
1358
- paid: z.ZodOptional<z.ZodObject<{
1359
- amount: z.ZodString;
1360
- code: z.ZodString;
1361
- }, "strip", z.ZodTypeAny, {
1362
- code: string;
1363
- amount: string;
1364
- }, {
1365
- code: string;
1366
- amount: string;
267
+ status: z.ZodOptional<z.ZodEnum<{
268
+ void: "void";
269
+ sent: "sent";
270
+ created: "created";
271
+ applied: "applied";
1367
272
  }>>;
1368
- paymentStatus: z.ZodOptional<z.ZodString>;
1369
- description: z.ZodOptional<z.ZodString>;
1370
- accountingSystemId: z.ZodOptional<z.ZodString>;
1371
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1372
- id: z.ZodOptional<z.ZodNumber>;
1373
- creditId: z.ZodOptional<z.ZodNumber>;
1374
- creditNumber: z.ZodOptional<z.ZodString>;
1375
- creditNoteNumber: z.ZodOptional<z.ZodString>;
1376
- clientId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
1377
- createDate: z.ZodOptional<z.ZodAny>;
1378
- amount: z.ZodOptional<z.ZodObject<{
1379
- amount: z.ZodString;
1380
- code: z.ZodString;
1381
- }, "strip", z.ZodTypeAny, {
1382
- code: string;
1383
- amount: string;
1384
- }, {
1385
- code: string;
1386
- amount: string;
1387
- }>>;
1388
- currencyCode: z.ZodOptional<z.ZodString>;
1389
- status: z.ZodOptional<z.ZodEnum<["created", "sent", "applied", "void"]>>;
1390
273
  lines: z.ZodOptional<z.ZodArray<z.ZodObject<{
1391
274
  name: z.ZodString;
1392
275
  description: z.ZodOptional<z.ZodString>;
@@ -1398,56 +281,12 @@ export declare const CreditNoteSingleOutputSchema: z.ZodObject<{
1398
281
  unitCost: z.ZodOptional<z.ZodObject<{
1399
282
  amount: z.ZodString;
1400
283
  code: z.ZodString;
1401
- }, "strip", z.ZodTypeAny, {
1402
- code: string;
1403
- amount: string;
1404
- }, {
1405
- code: string;
1406
- amount: string;
1407
- }>>;
284
+ }, z.core.$strip>>;
1408
285
  amount: z.ZodObject<{
1409
286
  amount: z.ZodString;
1410
287
  code: z.ZodString;
1411
- }, "strip", z.ZodTypeAny, {
1412
- code: string;
1413
- amount: string;
1414
- }, {
1415
- code: string;
1416
- amount: string;
1417
- }>;
1418
- }, "strip", z.ZodTypeAny, {
1419
- amount: {
1420
- code: string;
1421
- amount: string;
1422
- };
1423
- name: string;
1424
- description?: string | undefined;
1425
- taxName1?: string | null | undefined;
1426
- taxAmount1?: string | null | undefined;
1427
- taxName2?: string | null | undefined;
1428
- taxAmount2?: string | null | undefined;
1429
- unitCost?: {
1430
- code: string;
1431
- amount: string;
1432
- } | undefined;
1433
- quantity?: number | undefined;
1434
- }, {
1435
- amount: {
1436
- code: string;
1437
- amount: string;
1438
- };
1439
- name: string;
1440
- description?: string | undefined;
1441
- taxName1?: string | null | undefined;
1442
- taxAmount1?: string | null | undefined;
1443
- taxName2?: string | null | undefined;
1444
- taxAmount2?: string | null | undefined;
1445
- unitCost?: {
1446
- code: string;
1447
- amount: string;
1448
- } | undefined;
1449
- quantity?: number | undefined;
1450
- }>, "many">>;
288
+ }, z.core.$strip>;
289
+ }, z.core.$strip>>>;
1451
290
  notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1452
291
  terms: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1453
292
  language: z.ZodOptional<z.ZodString>;
@@ -1464,142 +303,20 @@ export declare const CreditNoteSingleOutputSchema: z.ZodObject<{
1464
303
  province: z.ZodOptional<z.ZodString>;
1465
304
  code: z.ZodOptional<z.ZodString>;
1466
305
  country: z.ZodOptional<z.ZodString>;
1467
- visState: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
306
+ visState: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
1468
307
  paid: z.ZodOptional<z.ZodObject<{
1469
308
  amount: z.ZodString;
1470
309
  code: z.ZodString;
1471
- }, "strip", z.ZodTypeAny, {
1472
- code: string;
1473
- amount: string;
1474
- }, {
1475
- code: string;
1476
- amount: string;
1477
- }>>;
310
+ }, z.core.$strip>>;
1478
311
  paymentStatus: z.ZodOptional<z.ZodString>;
1479
312
  description: z.ZodOptional<z.ZodString>;
1480
313
  accountingSystemId: z.ZodOptional<z.ZodString>;
1481
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1482
- id: z.ZodOptional<z.ZodNumber>;
1483
- creditId: z.ZodOptional<z.ZodNumber>;
1484
- creditNumber: z.ZodOptional<z.ZodString>;
1485
- creditNoteNumber: z.ZodOptional<z.ZodString>;
1486
- clientId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
1487
- createDate: z.ZodOptional<z.ZodAny>;
1488
- amount: z.ZodOptional<z.ZodObject<{
1489
- amount: z.ZodString;
1490
- code: z.ZodString;
1491
- }, "strip", z.ZodTypeAny, {
1492
- code: string;
1493
- amount: string;
1494
- }, {
1495
- code: string;
1496
- amount: string;
1497
- }>>;
1498
- currencyCode: z.ZodOptional<z.ZodString>;
1499
- status: z.ZodOptional<z.ZodEnum<["created", "sent", "applied", "void"]>>;
1500
- lines: z.ZodOptional<z.ZodArray<z.ZodObject<{
1501
- name: z.ZodString;
1502
- description: z.ZodOptional<z.ZodString>;
1503
- taxName1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1504
- taxAmount1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1505
- taxName2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1506
- taxAmount2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1507
- quantity: z.ZodOptional<z.ZodNumber>;
1508
- unitCost: z.ZodOptional<z.ZodObject<{
1509
- amount: z.ZodString;
1510
- code: z.ZodString;
1511
- }, "strip", z.ZodTypeAny, {
1512
- code: string;
1513
- amount: string;
1514
- }, {
1515
- code: string;
1516
- amount: string;
1517
- }>>;
1518
- amount: z.ZodObject<{
1519
- amount: z.ZodString;
1520
- code: z.ZodString;
1521
- }, "strip", z.ZodTypeAny, {
1522
- code: string;
1523
- amount: string;
1524
- }, {
1525
- code: string;
1526
- amount: string;
1527
- }>;
1528
- }, "strip", z.ZodTypeAny, {
1529
- amount: {
1530
- code: string;
1531
- amount: string;
1532
- };
1533
- name: string;
1534
- description?: string | undefined;
1535
- taxName1?: string | null | undefined;
1536
- taxAmount1?: string | null | undefined;
1537
- taxName2?: string | null | undefined;
1538
- taxAmount2?: string | null | undefined;
1539
- unitCost?: {
1540
- code: string;
1541
- amount: string;
1542
- } | undefined;
1543
- quantity?: number | undefined;
1544
- }, {
1545
- amount: {
1546
- code: string;
1547
- amount: string;
1548
- };
1549
- name: string;
1550
- description?: string | undefined;
1551
- taxName1?: string | null | undefined;
1552
- taxAmount1?: string | null | undefined;
1553
- taxName2?: string | null | undefined;
1554
- taxAmount2?: string | null | undefined;
1555
- unitCost?: {
1556
- code: string;
1557
- amount: string;
1558
- } | undefined;
1559
- quantity?: number | undefined;
1560
- }>, "many">>;
1561
- notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1562
- terms: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1563
- language: z.ZodOptional<z.ZodString>;
1564
- displayStatus: z.ZodOptional<z.ZodString>;
1565
- disputeStatus: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1566
- organization: z.ZodOptional<z.ZodString>;
1567
- currentOrganization: z.ZodOptional<z.ZodString>;
1568
- fName: z.ZodOptional<z.ZodString>;
1569
- lName: z.ZodOptional<z.ZodString>;
1570
- email: z.ZodOptional<z.ZodString>;
1571
- street: z.ZodOptional<z.ZodString>;
1572
- street2: z.ZodOptional<z.ZodString>;
1573
- city: z.ZodOptional<z.ZodString>;
1574
- province: z.ZodOptional<z.ZodString>;
1575
- code: z.ZodOptional<z.ZodString>;
1576
- country: z.ZodOptional<z.ZodString>;
1577
- visState: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
1578
- paid: z.ZodOptional<z.ZodObject<{
1579
- amount: z.ZodString;
1580
- code: z.ZodString;
1581
- }, "strip", z.ZodTypeAny, {
1582
- code: string;
1583
- amount: string;
1584
- }, {
1585
- code: string;
1586
- amount: string;
1587
- }>>;
1588
- paymentStatus: z.ZodOptional<z.ZodString>;
1589
- description: z.ZodOptional<z.ZodString>;
1590
- accountingSystemId: z.ZodOptional<z.ZodString>;
1591
- }, z.ZodTypeAny, "passthrough">>;
314
+ }, z.core.$loose>;
1592
315
  /**
1593
316
  * Output schema for credit note deletion
1594
317
  */
1595
318
  export declare const CreditNoteDeleteOutputSchema: z.ZodObject<{
1596
319
  success: z.ZodBoolean;
1597
320
  creditNoteId: z.ZodNumber;
1598
- }, "strip", z.ZodTypeAny, {
1599
- success: boolean;
1600
- creditNoteId: number;
1601
- }, {
1602
- success: boolean;
1603
- creditNoteId: number;
1604
- }>;
321
+ }, z.core.$strip>;
1605
322
  //# sourceMappingURL=schemas.d.ts.map