@wisemen/wise-invoicing-web 0.2.0 → 0.3.1

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 (118) hide show
  1. package/dist/{ApprovalReminderSettingsViewDataProvider-D-qXZrPT.js → ApprovalReminderSettingsViewDataProvider-DwtfyQpx.js} +4 -4
  2. package/dist/{BillingDocumentDetailViewDataProvider-DDdtlW-2.js → BillingDocumentDetailViewDataProvider-Dub07ybW.js} +1373 -1217
  3. package/dist/BillingDocumentDetailViewDataProvider.css +1 -1
  4. package/dist/{BillingDocumentPdf-ehdFB6mr.js → BillingDocumentPdf-DgtUB45R.js} +20 -13
  5. package/dist/{CreditNoteDetailViewDataProvider-11a-JO3H.js → CreditNoteDetailViewDataProvider-BxNfC6yO.js} +90 -90
  6. package/dist/{CreditNotePdfViewDataProvider-bfeaya3P.js → CreditNotePdfViewDataProvider-D0j8qqK-.js} +2 -2
  7. package/dist/{CustomFieldValueText-CZQXGE5F.js → CustomFieldValueText-Cuhs9sRn.js} +26 -26
  8. package/dist/DunningCaseDetailViewDataProvider-ou1FfNWQ.js +439 -0
  9. package/dist/{DunningCaseOverviewView-y_bCmi5j.js → DunningCaseOverviewView--zaPD0-c.js} +255 -203
  10. package/dist/{DunningCaseReminderPdfViewDataProvider-DNODfED_.js → DunningCaseReminderPdfViewDataProvider-BpUDbbSH.js} +5 -4
  11. package/dist/{DunningCaseSendDialog-BPXcqit5.js → DunningCaseSendDialog-Co4oLFtZ.js} +83 -72
  12. package/dist/InvoiceApprovalOutOfSyncIndicator-H6H7kjAE.js +45 -0
  13. package/dist/InvoiceApprovalOverviewView-Bw-6rkon.js +814 -0
  14. package/dist/InvoiceApprovalStatusBadge-IyzJ--TJ.js +127 -0
  15. package/dist/InvoiceApproveDialogDataProvider-8G-11W1e.js +377 -0
  16. package/dist/{InvoiceDetailViewDataProvider-BYeaaQzL.js → InvoiceDetailViewDataProvider-B9gul2ei.js} +750 -692
  17. package/dist/InvoiceOverviewViewDataProvider-5KgIdhfL.js +1892 -0
  18. package/dist/{InvoicePdfView-BJRTg_TH.js → InvoicePdfView-5sJ-u_gT.js} +10 -4
  19. package/dist/{InvoicePdfViewDataProvider-CwI_uGm3.js → InvoicePdfViewDataProvider-BLVXDPv6.js} +3 -3
  20. package/dist/{InvoicePublicPdfViewDataProvider-uZUfsr5K.js → InvoicePublicPdfViewDataProvider-CnhYazmB.js} +3 -3
  21. package/dist/InvoicePublicProFormaPdfViewDataProvider-CcvGISK6.js +47 -0
  22. package/dist/{InvoicingFileUploadProvider-D9Xk4rQM.js → InvoicingFileUploadProvider-Kcq7kSSt.js} +2 -2
  23. package/dist/{IssuerSettingsViewDataProvider-CGRa8F-2.js → IssuerSettingsViewDataProvider-BuSIVnIl.js} +3 -3
  24. package/dist/{ReminderSettingsViewDataProvider-1ucp3z2T.js → ReminderSettingsViewDataProvider-CH7gSXnj.js} +100 -102
  25. package/dist/{api.util-C_kMGlJN.js → api.util-CkIRZS3h.js} +985 -930
  26. package/dist/{billingDocumentDetail.transformer-Da6_-Hv9.js → billingDocumentDetail.transformer-Bfd8geNo.js} +5 -7
  27. package/dist/client/index.d.ts +2 -2
  28. package/dist/client/sdk.gen.d.ts +2 -1
  29. package/dist/client/types.gen.d.ts +114 -31
  30. package/dist/client/zod.gen.d.ts +343 -78
  31. package/dist/composables/sending-refetch/sendingRefetch.composable.d.ts +7 -0
  32. package/dist/composables/sending-refetch/sendingRefetch.composable.spec.d.ts +1 -0
  33. package/dist/{creditNoteDetail.query-DLR7L0Ep.js → creditNoteDetail.query-tLnfqsEB.js} +27 -27
  34. package/dist/customerUuid.model-ClN4Vi9n.js +18 -0
  35. package/dist/{dist-Cxdm09Lp.js → dist-BQbaoN5W.js} +144 -96
  36. package/dist/{dist-CoztMdYH.js → dist-CGZBUnWK.js} +62 -62
  37. package/dist/{dist-boJIIxnT.js → dist-Cdbpkd3Y.js} +1 -1
  38. package/dist/{documentTitle.composable-DsBbzhXN.js → documentTitle.composable-CRJjS6p-.js} +19 -17
  39. package/dist/{i18n.lib-Cvr8pcDw.js → i18n.lib--mzprLMR.js} +88 -54
  40. package/dist/index.d.ts +56 -22
  41. package/dist/index.js +193 -201
  42. package/dist/{invoice.service-DEEA9mal.js → invoice.service-B1w16_Md.js} +184 -172
  43. package/dist/{invoiceApproval.service-DvL3LliM.js → invoiceApproval.service-BHAJmFkU.js} +8 -8
  44. package/dist/{invoiceApprovalStatus.util-3Zh10Pj8.js → invoiceApprovalStatus.util-DohOKR4q.js} +42 -38
  45. package/dist/invoiceCustomer.service-DpVfpQUD.js +39 -0
  46. package/dist/{invoiceDetail.query-CRoH_SgM.js → invoiceDetail.query-CfyNSXLS.js} +1 -1
  47. package/dist/{invoiceDeliveryStatus.util-nCsqDypY.js → invoiceIndexCache.util-BDLs7W9m.js} +128 -51
  48. package/dist/{invoicingConfig.composable-rxjGK882.js → invoicingConfig.composable-COn1rKRf.js} +2 -2
  49. package/dist/{issuerSettings.query-Dc5gsaEm.js → issuerSettings.query-CDFk2GiP.js} +3 -2
  50. package/dist/libs/i18n.lib.d.ts +56 -22
  51. package/dist/locales/en-US.json.d.ts +44 -27
  52. package/dist/locales/nl-BE.json.d.ts +44 -27
  53. package/dist/models/billing-document/activity-log/billingDocumentActivityLog.model.d.ts +8 -1
  54. package/dist/models/billing-document/activity-log/billingDocumentActivityLog.util.d.ts +12 -0
  55. package/dist/models/billing-document/activity-log/billingDocumentActivityLog.util.spec.d.ts +1 -0
  56. package/dist/models/billing-document/billingDocumentDetail.model.d.ts +2 -6
  57. package/dist/modules/dunning-case/api/mutations/dunningCaseReminderRetry.mutation.d.ts +4 -0
  58. package/dist/modules/dunning-case/api/services/dunningCase.service.d.ts +2 -1
  59. package/dist/modules/dunning-case/models/dunningCase.model.d.ts +5 -0
  60. package/dist/modules/dunning-case/models/dunningCaseReminderPdf.model.d.ts +0 -4
  61. package/dist/modules/dunning-case/models/dunningCaseReminderPdf.transformer.d.ts +0 -1
  62. package/dist/modules/dunning-case/test/builders/dunningCaseReminderPdfDto.builder.d.ts +1 -0
  63. package/dist/modules/dunning-case/use-cases/overview/components/DunningCaseOverviewActionsCell.vue.d.ts +2 -0
  64. package/dist/modules/dunning-case/use-cases/overview/composables/dunningCaseOverview.composable.d.ts +2 -2
  65. package/dist/modules/dunning-case/use-cases/overview/composables/dunningCaseOverview.composable.spec.d.ts +1 -0
  66. package/dist/modules/dunning-case/use-cases/overview/composables/dunningCaseOverviewTableColumns.composable.d.ts +1 -0
  67. package/dist/modules/dunning-case/use-cases/pdf/components/DunningCaseReminderPdfTable.vue.d.ts +0 -4
  68. package/dist/modules/dunning-case/use-cases/send/dialogs/DunningCaseBulkSendDialog.vue.d.ts +2 -1
  69. package/dist/modules/dunning-case/use-cases/settings/components/ReminderLadderRow.vue.d.ts +4 -4
  70. package/dist/modules/dunning-case/use-cases/settings/composables/reminderLadder.composable.d.ts +2 -2
  71. package/dist/modules/dunning-case/use-cases/settings/composables/reminderLadder.composable.spec.d.ts +1 -0
  72. package/dist/modules/invoice/api/mutations/invoiceRejectApproval.mutation.d.ts +8 -0
  73. package/dist/modules/invoice/api/queries/invoicePublicProFormaDetail.query.d.ts +2 -0
  74. package/dist/modules/invoice/api/query-keys/invoice.queryKeys.d.ts +6 -0
  75. package/dist/modules/invoice/api/services/invoice.service.d.ts +1 -0
  76. package/dist/modules/invoice/models/invoice/approval/invoiceApproveForm.model.d.ts +4 -2
  77. package/dist/modules/invoice/models/invoice/approval/invoiceApproveForm.model.spec.d.ts +1 -0
  78. package/dist/modules/invoice/models/invoice/approval/invoiceRejectForm.model.d.ts +8 -0
  79. package/dist/modules/invoice/models/invoice/detail/invoiceDetail.model.d.ts +1 -0
  80. package/dist/modules/invoice/models/invoice/index/invoiceIndexQueryParams.model.d.ts +2 -3
  81. package/dist/modules/invoice/models/invoice/invoiceApprovalStatus.model.d.ts +2 -9
  82. package/dist/modules/invoice/models/invoice/invoiceApprovalStatus.util.d.ts +4 -2
  83. package/dist/modules/invoice/models/invoice/payment/invoicePaymentCreate.transformer.spec.d.ts +1 -0
  84. package/dist/modules/invoice/models/invoice/pdf/invoicePdfDetail.transformer.d.ts +2 -1
  85. package/dist/modules/invoice/routes/invoice.routes.d.ts +4 -0
  86. package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceApproveDialog.vue.d.ts +1 -0
  87. package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceApproveDialogDataProvider.vue.d.ts +13 -0
  88. package/dist/modules/invoice/use-cases/detail/dialogs/InvoicePaymentDeleteDialog.vue.d.ts +13 -0
  89. package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewDataTableFilters.composable.d.ts +2 -3
  90. package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewSelection.composable.d.ts +11 -9
  91. package/dist/modules/invoice/use-cases/overview/dialogs/InvoiceOverviewBulkActionDialog.vue.d.ts +2 -2
  92. package/dist/modules/invoice/use-cases/overview/dialogs/InvoiceOverviewBulkSendApprovalDialog.vue.d.ts +3 -1
  93. package/dist/modules/invoice/use-cases/overview/utils/invoiceOverviewBulkActionFeedback.util.d.ts +7 -4
  94. package/dist/modules/invoice/use-cases/overview/utils/invoiceOverviewBulkActionFeedback.util.spec.d.ts +1 -0
  95. package/dist/modules/invoice/use-cases/pdf/components/BillingDocumentPdf.vue.d.ts +1 -0
  96. package/dist/modules/invoice/use-cases/pdf/components/InvoicePdfWatermark.vue.d.ts +4 -1
  97. package/dist/modules/invoice/use-cases/pdf/views/InvoicePdfView.vue.d.ts +1 -0
  98. package/dist/modules/invoice/use-cases/pdf/views/InvoicePublicProFormaPdfViewDataProvider.vue.d.ts +3 -0
  99. package/dist/modules/invoice-approval/actions/invoiceApprovalSendRequest.action.d.ts +2 -0
  100. package/dist/modules/invoice-approval/actions/invoiceApprovalSendRequest.spec.d.ts +1 -0
  101. package/dist/modules/invoice-approval/models/invoiceApprovalIndex.transformer.spec.d.ts +1 -0
  102. package/dist/modules/invoice-approval/models/invoiceApprovalIndexQueryParams.transformer.spec.d.ts +1 -0
  103. package/dist/modules/invoice-approval/use-cases/overview/composables/invoiceApprovalOverview.composable.d.ts +5 -6
  104. package/dist/modules/invoice-approval/use-cases/overview/composables/invoiceApprovalOverviewFilters.composable.d.ts +0 -5
  105. package/dist/modules/settings/models/issuer-settings/issuerSettings.model.d.ts +1 -0
  106. package/dist/{reminderConfig.query-snaHQmrY.js → reminderConfig.query-DSO0ekC_.js} +112 -105
  107. package/dist/routes/invoicingPublicRoutes.composable.d.ts +4 -0
  108. package/dist/style.css +1 -1
  109. package/dist/ui/billing-document/sidebar/BillingDocumentDetailSidebarActivityApprovalDetails.vue.d.ts +7 -0
  110. package/package.json +3 -3
  111. package/dist/DunningCaseDetailViewDataProvider-DC-ziMoO.js +0 -409
  112. package/dist/InvoiceApprovalOverviewView-DZ14mi4L.js +0 -870
  113. package/dist/InvoiceApprovalStatusBadge-U-dW2hR4.js +0 -161
  114. package/dist/InvoiceApproveDialog-2LXneG2r.js +0 -308
  115. package/dist/InvoiceOverviewBulkSendApprovalDialog-99dfuN4i.js +0 -318
  116. package/dist/InvoiceOverviewViewDataProvider-CZIQeftL.js +0 -1620
  117. package/dist/customerUuid.model-GUFYq3O2.js +0 -5
  118. package/dist/modules/invoice-approval/actions/invoiceApprovalUnmarkAsNeedsApproval.action.d.ts +0 -1
@@ -11,11 +11,11 @@ Object.entries({
11
11
  //#endregion
12
12
  //#region src/client/core/serverSentEvents.gen.ts
13
13
  function a({ onRequest: e, onSseError: t, onSseEvent: n, responseTransformer: r, responseValidator: i, sseDefaultRetryDelay: a, sseMaxRetryAttempts: o, sseMaxRetryDelay: s, sseSleepFn: c, url: l, ...u }) {
14
- let d, f = c ?? ((e) => new Promise((t) => setTimeout(t, e)));
14
+ let d, ee = c ?? ((e) => new Promise((t) => setTimeout(t, e)));
15
15
  return { stream: async function* () {
16
- let c = a ?? 3e3, p = 0, ee = u.signal ?? new AbortController().signal;
17
- for (; !ee.aborted;) {
18
- p++;
16
+ let c = a ?? 3e3, f = 0, te = u.signal ?? new AbortController().signal;
17
+ for (; !te.aborted;) {
18
+ f++;
19
19
  let a = u.headers instanceof Headers ? u.headers : new Headers(u.headers);
20
20
  d !== void 0 && a.set("Last-Event-ID", d);
21
21
  try {
@@ -24,25 +24,25 @@ function a({ onRequest: e, onSseError: t, onSseEvent: n, responseTransformer: r,
24
24
  ...u,
25
25
  body: u.serializedBody,
26
26
  headers: a,
27
- signal: ee
27
+ signal: te
28
28
  }, o = new Request(l, t);
29
29
  e && (o = await e(l, t));
30
30
  let s = await (u.fetch ?? globalThis.fetch)(o);
31
31
  if (!s.ok) throw Error(`SSE failed: ${s.status} ${s.statusText}`);
32
32
  if (!s.body) throw Error("No body in SSE response");
33
- let f = s.body.pipeThrough(new TextDecoderStream()).getReader(), p = "", te = () => {
33
+ let ee = s.body.pipeThrough(new TextDecoderStream()).getReader(), f = "", ne = () => {
34
34
  try {
35
- f.cancel();
35
+ ee.cancel();
36
36
  } catch {}
37
37
  };
38
- ee.addEventListener("abort", te);
38
+ te.addEventListener("abort", ne);
39
39
  try {
40
40
  for (;;) {
41
- let { done: e, value: t } = await f.read();
41
+ let { done: e, value: t } = await ee.read();
42
42
  if (e) break;
43
- p += t, p = p.replace(/\r\n?/g, "\n");
44
- let a = p.split("\n\n");
45
- p = a.pop() ?? "";
43
+ f += t, f = f.replace(/\r\n?/g, "\n");
44
+ let a = f.split("\n\n");
45
+ f = a.pop() ?? "";
46
46
  for (let e of a) {
47
47
  let t = e.split("\n"), a = [], o;
48
48
  for (let e of t) if (e.startsWith("data:")) a.push(e.replace(/^data:\s*/, ""));
@@ -70,13 +70,13 @@ function a({ onRequest: e, onSseError: t, onSseEvent: n, responseTransformer: r,
70
70
  }
71
71
  }
72
72
  } finally {
73
- ee.removeEventListener("abort", te), f.releaseLock();
73
+ te.removeEventListener("abort", ne), ee.releaseLock();
74
74
  }
75
75
  break;
76
76
  } catch (e) {
77
- if (t?.(e), o !== void 0 && p >= o) break;
78
- let n = Math.min(c * 2 ** (p - 1), s ?? 3e4);
79
- await f(n);
77
+ if (t?.(e), o !== void 0 && f >= o) break;
78
+ let n = Math.min(c * 2 ** (f - 1), s ?? 3e4);
79
+ await ee(n);
80
80
  }
81
81
  }
82
82
  }() };
@@ -149,8 +149,8 @@ var o = (e) => {
149
149
  value: i
150
150
  })).join(o);
151
151
  return r === "label" || r === "matrix" ? o + s : s;
152
- }, f = /\{[^{}]+\}/g, p = ({ path: e, url: t }) => {
153
- let n = t, r = t.match(f);
152
+ }, ee = /\{[^{}]+\}/g, f = ({ path: e, url: t }) => {
153
+ let n = t, r = t.match(ee);
154
154
  if (r) for (let t of r) {
155
155
  let r = !1, i = t.substring(1, t.length - 1), a = "simple";
156
156
  i.endsWith("*") && (r = !0, i = i.substring(0, i.length - 1)), i.startsWith(".") ? (i = i.substring(1), a = "label") : i.startsWith(";") && (i = i.substring(1), a = "matrix");
@@ -186,26 +186,26 @@ var o = (e) => {
186
186
  n = n.replace(t, s);
187
187
  }
188
188
  return n;
189
- }, ee = ({ baseUrl: e, path: t, query: n, querySerializer: r, url: i }) => {
189
+ }, te = ({ baseUrl: e, path: t, query: n, querySerializer: r, url: i }) => {
190
190
  let a = i.startsWith("/") ? i : `/${i}`, o = (e ?? "") + a;
191
- t && (o = p({
191
+ t && (o = f({
192
192
  path: t,
193
193
  url: o
194
194
  }));
195
195
  let s = n ? r(n) : "";
196
196
  return s.startsWith("?") && (s = s.substring(1)), s && (o += `?${s}`), o;
197
197
  };
198
- function te(e) {
198
+ function ne(e) {
199
199
  let t = e.body !== void 0;
200
200
  if (t && e.bodySerializer) return "serializedBody" in e ? e.serializedBody !== void 0 && e.serializedBody !== "" ? e.serializedBody : null : e.body === "" ? null : e.body;
201
201
  if (t) return e.body;
202
202
  }
203
203
  //#endregion
204
204
  //#region src/client/core/auth.gen.ts
205
- var ne = async (e, t) => {
205
+ var re = async (e, t) => {
206
206
  let n = typeof t == "function" ? await t(e) : t;
207
207
  if (n) return e.scheme === "bearer" ? `Bearer ${n}` : e.scheme === "basic" ? `Basic ${btoa(n)}` : n;
208
- }, re = ({ parameters: e = {}, ...t } = {}) => (n) => {
208
+ }, ie = ({ parameters: e = {}, ...t } = {}) => (n) => {
209
209
  let r = [];
210
210
  if (n && typeof n == "object") for (let i in n) {
211
211
  let a = n[i];
@@ -241,7 +241,7 @@ var ne = async (e, t) => {
241
241
  }
242
242
  }
243
243
  return r.join("&");
244
- }, ie = (e) => {
244
+ }, ae = (e) => {
245
245
  if (!e) return "stream";
246
246
  let t = e.split(";")[0]?.trim();
247
247
  if (t) {
@@ -255,11 +255,11 @@ var ne = async (e, t) => {
255
255
  ].some((e) => t.startsWith(e))) return "blob";
256
256
  if (t.startsWith("text/")) return "text";
257
257
  }
258
- }, ae = (e, t) => t ? !!(e.headers.has(t) || e.query?.[t] || e.headers.get("Cookie")?.includes(`${t}=`)) : !1;
259
- async function oe(e) {
258
+ }, oe = (e, t) => t ? !!(e.headers.has(t) || e.query?.[t] || e.headers.get("Cookie")?.includes(`${t}=`)) : !1;
259
+ async function se(e) {
260
260
  for (let t of e.security ?? []) {
261
- if (ae(e, t.name)) continue;
262
- let n = await ne(t, e.auth);
261
+ if (oe(e, t.name)) continue;
262
+ let n = await re(t, e.auth);
263
263
  if (!n) continue;
264
264
  let r = t.name ?? "Authorization";
265
265
  switch (t.in) {
@@ -273,34 +273,34 @@ async function oe(e) {
273
273
  }
274
274
  }
275
275
  }
276
- var se = (e) => ee({
276
+ var ce = (e) => te({
277
277
  baseUrl: e.baseUrl,
278
278
  path: e.path,
279
279
  query: e.query,
280
- querySerializer: typeof e.querySerializer == "function" ? e.querySerializer : re(e.querySerializer),
280
+ querySerializer: typeof e.querySerializer == "function" ? e.querySerializer : ie(e.querySerializer),
281
281
  url: e.url
282
- }), ce = (e, t) => {
282
+ }), le = (e, t) => {
283
283
  let n = {
284
284
  ...e,
285
285
  ...t
286
286
  };
287
- return n.baseUrl?.endsWith("/") && (n.baseUrl = n.baseUrl.substring(0, n.baseUrl.length - 1)), n.headers = ue(e.headers, t.headers), n;
288
- }, le = (e) => {
287
+ return n.baseUrl?.endsWith("/") && (n.baseUrl = n.baseUrl.substring(0, n.baseUrl.length - 1)), n.headers = de(e.headers, t.headers), n;
288
+ }, ue = (e) => {
289
289
  let t = [];
290
290
  return e.forEach((e, n) => {
291
291
  t.push([n, e]);
292
292
  }), t;
293
- }, ue = (...e) => {
293
+ }, de = (...e) => {
294
294
  let t = new Headers();
295
295
  for (let n of e) {
296
296
  if (!n) continue;
297
- let e = n instanceof Headers ? le(n) : Object.entries(n);
297
+ let e = n instanceof Headers ? ue(n) : Object.entries(n);
298
298
  for (let [n, r] of e) if (r === null) t.delete(n);
299
299
  else if (Array.isArray(r)) for (let e of r) t.append(n, e);
300
300
  else r !== void 0 && t.set(n, typeof r == "object" ? JSON.stringify(r) : r);
301
301
  }
302
302
  return t;
303
- }, de = class {
303
+ }, fe = class {
304
304
  fns = [];
305
305
  clear() {
306
306
  this.fns = [];
@@ -323,11 +323,11 @@ var se = (e) => ee({
323
323
  use(e) {
324
324
  return this.fns.push(e), this.fns.length - 1;
325
325
  }
326
- }, fe = () => ({
327
- error: new de(),
328
- request: new de(),
329
- response: new de()
330
- }), pe = re({
326
+ }, pe = () => ({
327
+ error: new fe(),
328
+ request: new fe(),
329
+ response: new fe()
330
+ }), me = ie({
331
331
  allowReserved: !1,
332
332
  array: {
333
333
  explode: !0,
@@ -337,26 +337,26 @@ var se = (e) => ee({
337
337
  explode: !0,
338
338
  style: "deepObject"
339
339
  }
340
- }), me = { "Content-Type": "application/json" }, he = (e = {}) => ({
340
+ }), he = { "Content-Type": "application/json" }, ge = (e = {}) => ({
341
341
  ...i,
342
- headers: me,
342
+ headers: he,
343
343
  parseAs: "auto",
344
- querySerializer: pe,
344
+ querySerializer: me,
345
345
  ...e
346
- }), m = ((e = {}) => {
347
- let t = ce(he(), e), n = () => ({ ...t }), r = (e) => (t = ce(t, e), n()), i = fe(), o = async (e) => {
346
+ }), p = ((e = {}) => {
347
+ let t = le(ge(), e), n = () => ({ ...t }), r = (e) => (t = le(t, e), n()), i = pe(), o = async (e) => {
348
348
  let n = {
349
349
  ...t,
350
350
  ...e,
351
351
  fetch: e.fetch ?? t.fetch ?? globalThis.fetch,
352
- headers: ue(t.headers, e.headers),
352
+ headers: de(t.headers, e.headers),
353
353
  serializedBody: void 0
354
354
  };
355
- n.security && await oe(n), n.requestValidator && await n.requestValidator(n), n.body !== void 0 && n.bodySerializer && (n.serializedBody = n.bodySerializer(n.body)), (n.body === void 0 || n.serializedBody === "") && n.headers.delete("Content-Type");
355
+ n.security && await se(n), n.requestValidator && await n.requestValidator(n), n.body !== void 0 && n.bodySerializer && (n.serializedBody = n.bodySerializer(n.body)), (n.body === void 0 || n.serializedBody === "") && n.headers.delete("Content-Type");
356
356
  let r = n;
357
357
  return {
358
358
  opts: r,
359
- url: se(r)
359
+ url: ce(r)
360
360
  };
361
361
  }, s = async (e) => {
362
362
  let n = e.throwOnError ?? t.throwOnError, r = e.responseStyle ?? t.responseStyle, a, s;
@@ -364,7 +364,7 @@ var se = (e) => ee({
364
364
  let { opts: t, url: n } = await o(e), r = {
365
365
  redirect: "follow",
366
366
  ...t,
367
- body: te(t)
367
+ body: ne(t)
368
368
  };
369
369
  a = new Request(n, r);
370
370
  for (let e of i.request.fns) e && (a = await e(a, t));
@@ -376,7 +376,7 @@ var se = (e) => ee({
376
376
  response: s
377
377
  };
378
378
  if (s.ok) {
379
- let e = (t.parseAs === "auto" ? ie(s.headers.get("Content-Type")) : t.parseAs) ?? "json";
379
+ let e = (t.parseAs === "auto" ? ae(s.headers.get("Content-Type")) : t.parseAs) ?? "json";
380
380
  if (s.status === 204 || s.headers.get("Content-Length") === "0") {
381
381
  let n;
382
382
  switch (e) {
@@ -450,12 +450,12 @@ var se = (e) => ee({
450
450
  for (let e of i.request.fns) e && (r = await e(r, n));
451
451
  return r;
452
452
  },
453
- serializedBody: te(n),
453
+ serializedBody: ne(n),
454
454
  url: r
455
455
  });
456
456
  };
457
457
  return {
458
- buildUrl: (e) => se({
458
+ buildUrl: (e) => ce({
459
459
  ...t,
460
460
  ...e
461
461
  }),
@@ -484,18 +484,18 @@ var se = (e) => ee({
484
484
  },
485
485
  trace: c("TRACE")
486
486
  };
487
- })(he({
487
+ })(ge({
488
488
  baseUrl: "https://vue.project-template.development.appwi.se",
489
489
  throwOnError: !0
490
- })), h = e.enum(/* @__PURE__ */ "all_permissions,api-key.create,api-key.read,api-key.read-own,api-key.delete,api-key.delete-own,custom-field-definition.read,customer.create,customer.read,customer.update,customer.deactivate,customer.reactivate,dunning-case.read,dunning-case.send,invoice-approval.approve,invoice-approval.cancel,invoice-approval.read,invoice-approval.reject,invoice-approval.restart,invoice-approval.send,invoice.create,invoice.delete,invoice.read,invoice.send-email,invoice.update,invoice.payment.create,invoice.payment.delete,invoice.payment.read,issuer.read,issuer.update,recipient.read,recipient.create,recipient.update,recipient.delete,reminder-config.read,activity-log.read,event-log.read,file.read,file.create,file.delete,jobs.read.index,jobs.read.detail,notification.read.own,notification.read.config,notification.update.read,notification.update.unread,notification.preferences.update.channel,notification.preferences.update.preset,notification.preferences.update.types,notification.preferences.read.own,notification.migrate-type,notification.send-test,reminder-config.update,role.read,role.create,role.update,role.delete,role.cache.clear,send_push_notification,typesense,user.read,user.create,user.update,user.delete,tenant.create,tenant.read_index,tenant.read_detail,tenant.update,tenant.deactivate".split(",")), ge = e.object({
490
+ })), m = e.enum(/* @__PURE__ */ "all_permissions,api-key.create,api-key.read,api-key.read-own,api-key.delete,api-key.delete-own,custom-field-definition.read,customer.create,customer.read,customer.update,customer.deactivate,customer.reactivate,dunning-case.read,dunning-case.send,invoice-approval.approve,invoice-approval.cancel,invoice-approval.read,invoice-approval.reject,invoice-approval.restart,invoice-approval.send,invoice.create,invoice.delete,invoice.read,invoice.send-email,invoice.update,invoice.payment.create,invoice.payment.delete,invoice.payment.read,issuer.read,issuer.update,recipient.read,recipient.create,recipient.update,recipient.delete,reminder-config.read,activity-log.read,event-log.read,file.read,file.create,file.delete,jobs.read.index,jobs.read.detail,notification.read.own,notification.read.config,notification.update.read,notification.update.unread,notification.preferences.update.channel,notification.preferences.update.preset,notification.preferences.update.types,notification.preferences.read.own,notification.migrate-type,notification.send-test,reminder-config.update,role.read,role.create,role.update,role.delete,role.cache.clear,send_push_notification,typesense,user.read,user.create,user.update,user.delete,tenant.create,tenant.read_index,tenant.read_detail,tenant.update,tenant.deactivate".split(",")), _e = e.object({
491
491
  name: e.string(),
492
- key: h,
492
+ key: m,
493
493
  description: e.string()
494
- }), _e = e.object({
494
+ }), ve = e.object({
495
495
  name: e.string(),
496
- permissions: e.array(ge)
496
+ permissions: e.array(_e)
497
497
  });
498
- e.object({ groups: e.array(_e) }), e.object({
498
+ e.object({ groups: e.array(ve) }), e.object({
499
499
  detail: e.string().optional(),
500
500
  status: e.enum(["400"]),
501
501
  code: e.enum(["api_key_invalid_permissions"])
@@ -505,12 +505,12 @@ e.object({ groups: e.array(_e) }), e.object({
505
505
  code: e.enum(["api_key_invalid_expires_at"])
506
506
  }), e.object({
507
507
  name: e.string(),
508
- permissions: e.array(h),
508
+ permissions: e.array(m),
509
509
  expiresAt: e.iso.datetime().nullish()
510
510
  }), e.object({
511
511
  uuid: e.uuid(),
512
512
  name: e.string(),
513
- permissions: e.array(h),
513
+ permissions: e.array(m),
514
514
  userUuid: e.uuid(),
515
515
  userEmail: e.string().nullable(),
516
516
  maskedKey: e.string(),
@@ -522,32 +522,32 @@ e.object({ groups: e.array(_e) }), e.object({
522
522
  status: e.enum(["404"]),
523
523
  code: e.enum(["api_key_not_found"])
524
524
  });
525
- var ve = e.object({
525
+ var ye = e.object({
526
526
  createdAt: e.iso.datetime(),
527
527
  uuid: e.uuid()
528
- }), ye = e.object({
529
- limit: e.number().gte(0).lte(100).optional(),
530
- key: ve.nullish()
531
528
  }), be = e.object({
529
+ limit: e.number().gte(0).lte(100).optional(),
530
+ key: ye.nullish()
531
+ }), xe = e.object({
532
532
  uuid: e.uuid(),
533
533
  name: e.string(),
534
- permissions: e.array(h),
534
+ permissions: e.array(m),
535
535
  userUuid: e.string(),
536
536
  userEmail: e.string().nullable(),
537
537
  maskedKey: e.string(),
538
538
  expiresAt: e.iso.datetime().nullable(),
539
539
  createdAt: e.iso.datetime()
540
- }), xe = e.object({ next: ve.nullable() });
540
+ }), Se = e.object({ next: ye.nullable() });
541
541
  e.object({
542
- items: e.array(be),
543
- meta: xe
542
+ items: e.array(xe),
543
+ meta: Se
544
544
  }), e.object({
545
545
  environment: e.string(),
546
546
  commit: e.string(),
547
547
  version: e.string(),
548
548
  timestamp: e.iso.datetime()
549
549
  });
550
- var Se = e.enum([
550
+ var Ce = e.enum([
551
551
  "user",
552
552
  "customer",
553
553
  "recipient",
@@ -563,12 +563,12 @@ e.object({ collections: e.array(e.enum([
563
563
  status: e.enum(["404"]),
564
564
  code: e.enum(["user_not_found"])
565
565
  }), e.object({ roleUuids: e.array(e.uuid()) });
566
- var Ce = e.object({
566
+ var we = e.object({
567
567
  uuid: e.uuid(),
568
568
  createdAt: e.iso.datetime(),
569
569
  updatedAt: e.iso.datetime(),
570
570
  name: e.string(),
571
- permissions: e.array(h),
571
+ permissions: e.array(m),
572
572
  isDefault: e.boolean(),
573
573
  isSystemAdmin: e.boolean()
574
574
  });
@@ -578,56 +578,56 @@ e.object({
578
578
  firstName: e.string().nullable(),
579
579
  lastName: e.string().nullable(),
580
580
  tenantUuid: e.uuid().nullable(),
581
- roles: e.array(Ce)
581
+ roles: e.array(we)
582
582
  }), e.object({
583
583
  uuid: e.uuid(),
584
584
  email: e.email().nullable(),
585
585
  firstName: e.string().nullable(),
586
586
  lastName: e.string().nullable(),
587
587
  tenantUuid: e.uuid().nullable(),
588
- roles: e.array(Ce)
588
+ roles: e.array(we)
589
589
  });
590
- var g = e.object({
590
+ var h = e.object({
591
591
  limit: e.number().gte(1).lte(100),
592
592
  offset: e.number().gte(0)
593
- }), we = e.object({
593
+ }), Te = e.object({
594
594
  uuid: e.uuid(),
595
595
  name: e.string()
596
- }), Te = e.object({
596
+ }), Ee = e.object({
597
597
  uuid: e.uuid(),
598
598
  email: e.email().nullable(),
599
599
  firstName: e.string().nullable(),
600
600
  lastName: e.string().nullable(),
601
- roles: e.array(we)
602
- }), _ = e.object({
601
+ roles: e.array(Te)
602
+ }), g = e.object({
603
603
  total: e.number(),
604
604
  offset: e.number(),
605
605
  limit: e.number()
606
- }), Ee = e.object({
607
- items: e.array(Te),
608
- meta: _
606
+ }), De = e.object({
607
+ items: e.array(Ee),
608
+ meta: g
609
609
  });
610
610
  e.object({ name: e.string() }), e.object({ uuid: e.uuid() }), e.object({ roleUuids: e.array(e.uuid()).nullish() }), e.object({
611
611
  detail: e.string().optional(),
612
612
  status: e.enum(["404"]),
613
613
  code: e.enum(["role_not_found"])
614
614
  }), e.object({ name: e.string() });
615
- var De = e.object({
615
+ var Oe = e.object({
616
616
  uuid: e.uuid(),
617
617
  createdAt: e.iso.datetime(),
618
618
  updatedAt: e.iso.datetime(),
619
619
  name: e.string(),
620
- permissions: e.array(h),
620
+ permissions: e.array(m),
621
621
  isDefault: e.boolean(),
622
622
  isSystemAdmin: e.boolean()
623
623
  });
624
- e.object({ items: e.array(De) });
625
- var Oe = e.object({
624
+ e.object({ items: e.array(Oe) });
625
+ var ke = e.object({
626
626
  roleUuid: e.uuid(),
627
- permissions: e.array(h)
627
+ permissions: e.array(m)
628
628
  });
629
- e.object({ roles: e.array(Oe) });
630
- var ke = e.enum([
629
+ e.object({ roles: e.array(ke) });
630
+ var Ae = e.enum([
631
631
  "application/pdf",
632
632
  "application/msword",
633
633
  "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
@@ -644,14 +644,14 @@ var ke = e.enum([
644
644
  "image/webp",
645
645
  "image/gif",
646
646
  "application/octet-stream"
647
- ]), Ae = e.object({
647
+ ]), je = e.object({
648
648
  name: e.string(),
649
- mimeType: ke,
649
+ mimeType: Ae,
650
650
  isPublic: e.boolean().optional().default(!1)
651
- }), je = e.object({
651
+ }), Me = e.object({
652
652
  uuid: e.uuid(),
653
653
  name: e.string(),
654
- mimeType: ke.nullable(),
654
+ mimeType: Ae.nullable(),
655
655
  uploadUrl: e.string()
656
656
  });
657
657
  e.object({
@@ -659,15 +659,15 @@ e.object({
659
659
  status: e.enum(["404"]),
660
660
  code: e.enum(["file_not_found"])
661
661
  });
662
- var Me = e.object({ blurHash: e.string().max(100).nullable() }), Ne = e.enum([
662
+ var Ne = e.object({ blurHash: e.string().max(100).nullable() }), Pe = e.enum([
663
663
  "light",
664
664
  "dark",
665
665
  "system"
666
- ]), v = e.enum([
666
+ ]), _ = e.enum([
667
667
  "en-US",
668
668
  "nl-BE",
669
669
  "fr-BE"
670
- ]), Pe = e.enum([
670
+ ]), Fe = e.enum([
671
671
  "smaller",
672
672
  "small",
673
673
  "default",
@@ -675,16 +675,16 @@ var Me = e.object({ blurHash: e.string().max(100).nullable() }), Ne = e.enum([
675
675
  "larger"
676
676
  ]);
677
677
  e.object({
678
- theme: Ne.optional(),
679
- language: v.optional(),
680
- fontSize: Pe.optional(),
678
+ theme: Pe.optional(),
679
+ language: _.optional(),
680
+ fontSize: Fe.optional(),
681
681
  showShortcuts: e.boolean().optional(),
682
682
  reduceMotion: e.boolean().optional(),
683
683
  highContrast: e.boolean().optional()
684
684
  }), e.object({
685
- theme: Ne,
686
- language: v,
687
- fontSize: Pe,
685
+ theme: Pe,
686
+ language: _,
687
+ fontSize: Fe,
688
688
  showShortcuts: e.boolean(),
689
689
  reduceMotion: e.boolean(),
690
690
  highContrast: e.boolean()
@@ -692,17 +692,17 @@ e.object({
692
692
  token: e.string(),
693
693
  userUuid: e.uuid()
694
694
  });
695
- var Fe = e.object({
695
+ var Ie = e.object({
696
696
  nl: e.string().optional(),
697
697
  en: e.string().optional()
698
698
  });
699
699
  e.object({
700
700
  name: e.string(),
701
- title: Fe,
702
- description: Fe,
701
+ title: Ie,
702
+ description: Ie,
703
703
  userUuids: e.array(e.uuid())
704
704
  });
705
- var Ie = e.enum([
705
+ var Le = e.enum([
706
706
  "api-key",
707
707
  "approval-reminder",
708
708
  "contact",
@@ -717,58 +717,58 @@ var Ie = e.enum([
717
717
  "invoice-approval",
718
718
  "pro-forma",
719
719
  "dunning-case"
720
- ]), Le = e.object({
721
- subjectType: Ie.optional(),
720
+ ]), Re = e.object({
721
+ subjectType: Le.optional(),
722
722
  subjectId: e.uuid().optional(),
723
723
  userUuid: e.uuid().optional()
724
- }), Re = e.object({
724
+ }), ze = e.object({
725
725
  createdAt: e.string(),
726
726
  uuid: e.uuid()
727
- }), ze = e.object({
727
+ }), Be = e.object({
728
728
  limit: e.number().gte(0).lte(100).optional(),
729
- key: Re.nullish()
730
- }), Be = e.enum(/* @__PURE__ */ "api-key.created,api-key.deleted,approval-reminder.sent,credit-note.created,credit-note.updated,credit-note.finalized,credit-note.invoice-lines.updated,credit-note.deleted,credit-note.email-sent,customer.created,customer.updated,customer.synced,customer.deactivated,customer.reactivated,file.created,file.uploaded,issuer.updated,issuer.created,invoice-approval.approved,invoice-approval.cancelled,invoice-approval.created,invoice-approval.expired,invoice-approval.rejected,invoice-approval.sent,invoice.attachments.updated,invoice.created,invoice.deleted,invoice.discount.applied,invoice.disputed-withdrawn,invoice.duplicated,invoice.email-sent,invoice.finalized,invoice.marked-as-disputed,invoice.marked-as-draft,invoice.marked-as-overdue,invoice.marked-as-paid,invoice.marked-as-prior-approval-required,invoice.marked-as-ready,invoice.pdf.generated,invoice.restored-from-pro-forma,invoice.unmarked-as-prior-approval-required,invoice.updated,payment.created,payment.deleted,pro-forma.created,pro-forma.pdf.generated,notification.created,notification.read,notification.read.all,notification.unread,notification.types.migrated,notification.preference.preset.updated,role.created,role.deleted,role.renamed,role.permissions.updated,role.permissions.cache.cleared,test-notification.sent,user.created,user.updated,user.role-assigned,user.roles-set,user.notification.created,user.default-notification-preferences.assigned,user.assigned-as-admin,recipient.created,recipient.updated,recipient.default-set,recipient.deleted,approval-reminder-config.updated,reminder-config.updated,dunning-case.synced,dunning-case.closed,dunning-case.reminder.created,dunning-case.reminder.pdf.generated,dunning-case.reminder.sent,tenant.created,tenant.updated,tenant.deactivated".split(",")), Ve = e.object({
729
+ key: ze.nullish()
730
+ }), Ve = e.enum(/* @__PURE__ */ "api-key.created,api-key.deleted,approval-reminder.sent,credit-note.created,credit-note.updated,credit-note.finalized,credit-note.invoice-lines.updated,credit-note.deleted,credit-note.email-sent,customer.created,customer.updated,customer.synced,customer.deactivated,customer.reactivated,file.created,file.uploaded,issuer.updated,issuer.created,invoice-approval.approved,invoice-approval.cancelled,invoice-approval.created,invoice-approval.expired,invoice-approval.rejected,invoice-approval.sent,invoice.attachments.updated,invoice.created,invoice.deleted,invoice.discount.applied,invoice.disputed-withdrawn,invoice.duplicated,invoice.email-sent,invoice.finalization-blocked,invoice.finalized,invoice.marked-as-disputed,invoice.marked-as-draft,invoice.marked-as-overdue,invoice.marked-as-paid,invoice.marked-as-prior-approval-required,invoice.marked-as-ready,invoice.pdf.generated,invoice.restored-from-pro-forma,invoice.unmarked-as-prior-approval-required,invoice.updated,payment.created,payment.deleted,pro-forma.created,pro-forma.pdf.generated,notification.created,notification.read,notification.read.all,notification.unread,notification.types.migrated,notification.preference.preset.updated,role.created,role.deleted,role.renamed,role.permissions.updated,role.permissions.cache.cleared,test-notification.sent,user.created,user.updated,user.role-assigned,user.roles-set,user.notification.created,user.default-notification-preferences.assigned,user.assigned-as-admin,recipient.created,recipient.updated,recipient.default-set,recipient.deleted,approval-reminder-config.updated,reminder-config.updated,dunning-case.synced,dunning-case.closed,dunning-case.reminder.created,dunning-case.reminder.pdf.generated,dunning-case.reminder.retried,dunning-case.reminder.sent,tenant.created,tenant.updated,tenant.deactivated".split(",")), He = e.object({
731
731
  uuid: e.uuid(),
732
732
  createdAt: e.iso.datetime(),
733
733
  version: e.int().gte(0),
734
734
  source: e.string(),
735
735
  userUuid: e.uuid().nullable(),
736
736
  message: e.string(),
737
- type: Be,
738
- subjectType: Ie.nullable(),
737
+ type: Ve,
738
+ subjectType: Le.nullable(),
739
739
  subjectId: e.uuid().nullable(),
740
740
  content: e.record(e.string(), e.unknown())
741
- }), He = e.object({ next: Re.nullable() });
741
+ }), Ue = e.object({ next: ze.nullable() });
742
742
  e.object({
743
- items: e.array(Ve),
744
- meta: He
743
+ items: e.array(He),
744
+ meta: Ue
745
745
  });
746
- var Ue = e.enum([
746
+ var We = e.enum([
747
747
  "user",
748
748
  "customer",
749
749
  "recipient"
750
- ]), We = e.object({ isActive: e.boolean().optional() }), Ge = e.object({ customerUuid: e.uuid().optional() }), Ke = e.object({
751
- collections: e.array(Ue).optional(),
752
- contact: We.optional(),
753
- recipient: Ge.optional()
754
- }), qe = e.object({ offset: e.int() }), Je = e.object({ key: qe.optional() }), Ye = e.object({
750
+ ]), Ge = e.object({ isActive: e.boolean().optional() }), Ke = e.object({ customerUuid: e.uuid().optional() }), qe = e.object({
751
+ collections: e.array(We).optional(),
752
+ contact: Ge.optional(),
753
+ recipient: Ke.optional()
754
+ }), Je = e.object({ offset: e.int() }), Ye = e.object({ key: Je.optional() }), Xe = e.object({
755
755
  uuid: e.uuid(),
756
756
  name: e.string(),
757
757
  email: e.record(e.string(), e.unknown()).nullable()
758
- }), y = e.enum(["business", "individual"]), Xe = e.object({
758
+ }), v = e.enum(["business", "individual"]), Ze = e.object({
759
759
  uuid: e.uuid(),
760
760
  name: e.string(),
761
- type: y
762
- }), Ze = e.object({
761
+ type: v
762
+ }), Qe = e.object({
763
763
  uuid: e.uuid(),
764
764
  name: e.string().nullable(),
765
765
  email: e.string(),
766
766
  customerUuid: e.uuid(),
767
767
  isDefault: e.boolean()
768
- }), Qe = e.object({
768
+ }), $e = e.object({
769
769
  uuid: e.uuid(),
770
770
  name: e.string()
771
- }), b = e.enum([
771
+ }), y = e.enum([
772
772
  "draft",
773
773
  "ready",
774
774
  "finalized",
@@ -778,95 +778,95 @@ var Ue = e.enum([
778
778
  "credited",
779
779
  "paid",
780
780
  "overpaid"
781
- ]), x = e.enum(/* @__PURE__ */ "AFN.EUR.ALL.DZD.USD.AOA.XCD.ARS.AMD.AWG.AUD.AZN.BSD.BHD.BDT.BBD.BYN.BZD.XOF.BMD.INR.BTN.BOB.BOV.BAM.BWP.NOK.BRL.BND.BGN.BIF.CVE.KHR.XAF.CAD.KYD.CLP.CLF.CNY.COP.COU.KMF.CDF.NZD.CRC.CUP.ANG.CZK.DKK.DJF.DOP.EGP.SVC.ERN.SZL.ETB.FKP.FJD.XPF.GMD.GEL.GHS.GIP.GTQ.GBP.GNF.GYD.HTG.HNL.HKD.HUF.ISK.IDR.XDR.IRR.IQD.ILS.JMD.JPY.JOD.KZT.KES.KPW.KRW.KWD.KGS.LAK.LBP.LSL.ZAR.LRD.LYD.CHF.MOP.MKD.MGA.MWK.MYR.MVR.MRU.MUR.XUA.MXN.MXV.MDL.MNT.MAD.MZN.MMK.NAD.NPR.NIO.NGN.OMR.PKR.PAB.PGK.PYG.PEN.PHP.PLN.QAR.RON.RUB.RWF.SHP.WST.STN.SAR.RSD.SCR.SLE.SGD.XSU.SBD.SOS.SSP.LKR.SDG.SRD.SEK.CHE.CHW.SYP.TWD.TJS.TZS.THB.TOP.TTD.TND.TRY.TMT.UGX.UAH.AED.USN.UYU.UYI.UYW.UZS.VUV.VES.VED.VND.YER.ZMW.ZWG.XBA.XBB.XBC.XBD.XTS.XXX.XAU.XPD.XPT.XAG".split(".")), S = e.object({
781
+ ]), b = e.enum(/* @__PURE__ */ "AFN.EUR.ALL.DZD.USD.AOA.XCD.ARS.AMD.AWG.AUD.AZN.BSD.BHD.BDT.BBD.BYN.BZD.XOF.BMD.INR.BTN.BOB.BOV.BAM.BWP.NOK.BRL.BND.BGN.BIF.CVE.KHR.XAF.CAD.KYD.CLP.CLF.CNY.COP.COU.KMF.CDF.NZD.CRC.CUP.ANG.CZK.DKK.DJF.DOP.EGP.SVC.ERN.SZL.ETB.FKP.FJD.XPF.GMD.GEL.GHS.GIP.GTQ.GBP.GNF.GYD.HTG.HNL.HKD.HUF.ISK.IDR.XDR.IRR.IQD.ILS.JMD.JPY.JOD.KZT.KES.KPW.KRW.KWD.KGS.LAK.LBP.LSL.ZAR.LRD.LYD.CHF.MOP.MKD.MGA.MWK.MYR.MVR.MRU.MUR.XUA.MXN.MXV.MDL.MNT.MAD.MZN.MMK.NAD.NPR.NIO.NGN.OMR.PKR.PAB.PGK.PYG.PEN.PHP.PLN.QAR.RON.RUB.RWF.SHP.WST.STN.SAR.RSD.SCR.SLE.SGD.XSU.SBD.SOS.SSP.LKR.SDG.SRD.SEK.CHE.CHW.SYP.TWD.TJS.TZS.THB.TOP.TTD.TND.TRY.TMT.UGX.UAH.AED.USN.UYU.UYI.UYW.UZS.VUV.VES.VED.VND.YER.ZMW.ZWG.XBA.XBB.XBC.XBD.XTS.XXX.XAU.XPD.XPT.XAG".split(".")), x = e.object({
782
782
  amount: e.int(),
783
- currency: x,
783
+ currency: b,
784
784
  precision: e.int()
785
- }), $e = e.object({
785
+ }), et = e.object({
786
786
  uuid: e.uuid(),
787
787
  createdAt: e.iso.datetime(),
788
788
  issuedOn: e.iso.date().nullable(),
789
789
  dueOn: e.iso.date().nullable(),
790
790
  subject: e.string().nullable(),
791
- customer: Qe,
792
- status: b,
793
- netAmount: S
794
- }), et = e.object({
795
- collection: Ue,
791
+ customer: $e,
792
+ status: y,
793
+ netAmount: x
794
+ }), tt = e.object({
795
+ collection: We,
796
796
  entity: e.union([
797
- Ye,
798
797
  Xe,
799
798
  Ze,
800
- $e
799
+ Qe,
800
+ et
801
801
  ]),
802
802
  text_match: e.number()
803
- }), tt = e.object({ next: qe.nullable() });
803
+ }), nt = e.object({ next: Je.nullable() });
804
804
  e.object({
805
- items: e.array(et),
806
- meta: tt
805
+ items: e.array(tt),
806
+ meta: nt
807
807
  });
808
- var nt = e.enum([
808
+ var rt = e.enum([
809
809
  "all",
810
810
  "default",
811
811
  "custom",
812
812
  "none"
813
- ]), C = e.enum(["user.created", "system.test-notification"]), rt = e.object({
814
- email: e.array(C),
815
- sms: e.array(C),
816
- app: e.array(C),
817
- push: e.array(C)
813
+ ]), S = e.enum(["user.created", "system.test-notification"]), it = e.object({
814
+ email: e.array(S),
815
+ sms: e.array(S),
816
+ app: e.array(S),
817
+ push: e.array(S)
818
818
  });
819
819
  e.object({
820
- preset: nt,
820
+ preset: rt,
821
821
  emailEnabled: e.boolean(),
822
822
  smsEnabled: e.boolean(),
823
823
  appEnabled: e.boolean(),
824
824
  pushEnabled: e.boolean(),
825
- preferences: rt
825
+ preferences: it
826
826
  });
827
- var it = e.enum([
827
+ var at = e.enum([
828
828
  "email",
829
829
  "sms",
830
830
  "app",
831
831
  "push"
832
- ]), at = e.object({
833
- channel: it,
832
+ ]), ot = e.object({
833
+ channel: at,
834
834
  defaultValue: e.boolean(),
835
835
  isSupported: e.boolean()
836
- }), ot = e.object({
837
- key: C,
838
- description: e.string(),
839
- channelConfigs: e.array(at)
840
836
  }), st = e.object({
837
+ key: S,
838
+ description: e.string(),
839
+ channelConfigs: e.array(ot)
840
+ }), ct = e.object({
841
841
  name: e.string(),
842
842
  description: e.string(),
843
- types: e.array(ot)
843
+ types: e.array(st)
844
844
  });
845
- e.object({ groups: e.array(st) }), e.object({
846
- channel: it,
845
+ e.object({ groups: e.array(ct) }), e.object({
846
+ channel: at,
847
847
  isEnabled: e.boolean()
848
848
  }), e.object({ message: e.string() });
849
- var ct = e.object({ onlyUnread: e.string().optional() }), lt = e.object({
849
+ var lt = e.object({ onlyUnread: e.string().optional() }), ut = e.object({
850
850
  createdAt: e.string(),
851
851
  notificationUuid: e.uuid()
852
- }), ut = e.object({
853
- limit: e.number().gte(0).lte(100).optional(),
854
- key: lt.nullish()
855
852
  }), dt = e.object({
853
+ limit: e.number().gte(0).lte(100).optional(),
854
+ key: ut.nullish()
855
+ }), ft = e.object({
856
856
  uuid: e.uuid(),
857
857
  name: e.string()
858
- }), ft = e.object({ message: e.string() }), pt = e.object({
858
+ }), pt = e.object({ message: e.string() }), mt = e.object({
859
859
  createdAt: e.iso.datetime(),
860
860
  readAt: e.iso.datetime().nullable(),
861
861
  notificationUuid: e.uuid(),
862
- createdByUser: dt.nullable(),
862
+ createdByUser: ft.nullable(),
863
863
  message: e.string(),
864
864
  type: e.enum(["system.test-notification"]),
865
- meta: ft
866
- }), mt = e.object({ next: lt.nullable() });
865
+ meta: pt
866
+ }), ht = e.object({ next: ut.nullable() });
867
867
  e.object({
868
- items: e.array(pt),
869
- meta: mt
868
+ items: e.array(mt),
869
+ meta: ht
870
870
  }), e.object({
871
871
  amount: e.number().gte(0),
872
872
  exceedsLimit: e.boolean()
@@ -875,55 +875,55 @@ e.object({
875
875
  status: e.enum(["404"]),
876
876
  code: e.enum(["user_notification_not_found"])
877
877
  }), e.object({
878
- channel: it,
878
+ channel: at,
879
879
  isEnabled: e.boolean(),
880
- types: e.array(C)
881
- }), e.object({ preset: nt });
882
- var ht = e.object({ type: e.array(C) });
880
+ types: e.array(S)
881
+ }), e.object({ preset: rt });
882
+ var gt = e.object({ type: e.array(S) });
883
883
  e.object({
884
884
  detail: e.string().optional(),
885
885
  status: e.enum(["400"]),
886
886
  code: e.enum(["migration_already_performed"]),
887
- meta: ht
888
- }), e.object({ types: e.array(C) });
889
- var gt = e.enum(["createdAt"]), _t = e.enum(["asc", "desc"]), vt = e.object({
890
- key: gt,
891
- order: _t
892
- }), yt = e.enum(["system"]), bt = e.object({ queueNames: e.array(yt).optional() }), xt = e.object({
887
+ meta: gt
888
+ }), e.object({ types: e.array(S) });
889
+ var _t = e.enum(["createdAt"]), vt = e.enum(["asc", "desc"]), yt = e.object({
890
+ key: _t,
891
+ order: vt
892
+ }), bt = e.enum(["system"]), xt = e.object({ queueNames: e.array(bt).optional() }), St = e.object({
893
893
  createdAt: e.iso.datetime().optional(),
894
894
  id: e.string()
895
- }), St = e.object({
895
+ }), Ct = e.object({
896
896
  limit: e.number().gte(0).lte(100).optional(),
897
- key: xt.nullish()
898
- }), Ct = e.enum([
897
+ key: St.nullish()
898
+ }), wt = e.enum([
899
899
  "created",
900
900
  "active",
901
901
  "completed",
902
902
  "retry",
903
903
  "failed",
904
904
  "cancelled"
905
- ]), wt = e.object({
906
- queueName: yt,
905
+ ]), Tt = e.object({
906
+ queueName: bt,
907
907
  id: e.uuid(),
908
908
  name: e.string(),
909
- status: Ct,
909
+ status: wt,
910
910
  createdAt: e.iso.datetime(),
911
911
  completedAt: e.iso.datetime().nullable()
912
- }), Tt = e.object({ next: xt.nullable() });
912
+ }), Et = e.object({ next: St.nullable() });
913
913
  e.object({
914
- items: e.array(wt),
915
- meta: Tt
914
+ items: e.array(Tt),
915
+ meta: Et
916
916
  }), e.object({
917
917
  detail: e.string().optional(),
918
918
  status: e.enum(["404"]),
919
919
  code: e.enum(["job_not_found"])
920
920
  }), e.object({
921
921
  id: e.uuid(),
922
- queueName: yt,
922
+ queueName: bt,
923
923
  priority: e.number(),
924
924
  name: e.string(),
925
925
  data: e.record(e.string(), e.unknown()),
926
- status: Ct,
926
+ status: wt,
927
927
  retryLimit: e.number(),
928
928
  retryCount: e.number(),
929
929
  retryDelay: e.number(),
@@ -965,7 +965,7 @@ e.object({
965
965
  slug: e.string(),
966
966
  domain: e.string().nullable()
967
967
  });
968
- var Et = e.object({
968
+ var Dt = e.object({
969
969
  uuid: e.uuid(),
970
970
  createdAt: e.iso.datetime(),
971
971
  updatedAt: e.iso.datetime(),
@@ -974,8 +974,8 @@ var Et = e.object({
974
974
  domain: e.string().nullable()
975
975
  });
976
976
  e.object({
977
- items: e.array(Et),
978
- meta: _
977
+ items: e.array(Dt),
978
+ meta: g
979
979
  }), e.object({
980
980
  detail: e.string().optional(),
981
981
  status: e.enum(["409"]),
@@ -993,10 +993,10 @@ e.object({
993
993
  status: e.enum(["409"]),
994
994
  code: e.enum(["vat_number_already_in_use"])
995
995
  });
996
- var Dt = e.object({
996
+ var Ot = e.object({
997
997
  longitude: e.number(),
998
998
  latitude: e.number()
999
- }), Ot = e.object({
999
+ }), kt = e.object({
1000
1000
  placeName: e.string().nullable(),
1001
1001
  placeId: e.string().nullable(),
1002
1002
  country: e.string().nullable(),
@@ -1006,26 +1006,27 @@ var Dt = e.object({
1006
1006
  streetName: e.string().nullable(),
1007
1007
  streetNumber: e.string().nullable(),
1008
1008
  unit: e.string().nullable(),
1009
- coordinates: Dt.nullable()
1009
+ coordinates: Ot.nullable()
1010
1010
  });
1011
1011
  e.object({
1012
1012
  name: e.string(),
1013
- address: Ot.nullable(),
1013
+ address: kt.nullable(),
1014
1014
  email: e.string(),
1015
1015
  phone: e.string().nullable(),
1016
1016
  vatNumber: e.string().nullable(),
1017
- type: y,
1018
- locale: v,
1019
- requiresPriorApproval: e.boolean().optional().default(!1)
1017
+ type: v,
1018
+ locale: _,
1019
+ requiresPriorApproval: e.boolean().optional().default(!1),
1020
+ approvalEmail: e.email().max(255).nullable()
1020
1021
  }), e.object({ uuid: e.uuid() }), e.object({
1021
1022
  detail: e.string().optional(),
1022
1023
  status: e.enum(["404"]),
1023
1024
  code: e.enum(["customer_not_found"])
1024
1025
  });
1025
- var kt = e.object({
1026
+ var At = e.object({
1026
1027
  longitude: e.number(),
1027
1028
  latitude: e.number()
1028
- }), w = e.object({
1029
+ }), C = e.object({
1029
1030
  placeName: e.string().nullable(),
1030
1031
  placeId: e.string().nullable(),
1031
1032
  country: e.string().nullable(),
@@ -1035,8 +1036,8 @@ var kt = e.object({
1035
1036
  streetName: e.string().nullable(),
1036
1037
  streetNumber: e.string().nullable(),
1037
1038
  unit: e.string().nullable(),
1038
- coordinates: kt.nullable()
1039
- }), At = e.enum(["internal", "external"]), jt = e.enum([
1039
+ coordinates: At.nullable()
1040
+ }), jt = e.enum(["internal", "external"]), Mt = e.enum([
1040
1041
  "s",
1041
1042
  "ms",
1042
1043
  "μs",
@@ -1044,43 +1045,44 @@ var kt = e.object({
1044
1045
  "m",
1045
1046
  "h",
1046
1047
  "days"
1047
- ]), Mt = e.object({
1048
+ ]), Nt = e.object({
1048
1049
  value: e.number(),
1049
- unit: jt
1050
- }), Nt = e.object({
1050
+ unit: Mt
1051
+ }), Pt = e.object({
1051
1052
  uuid: e.uuid(),
1052
1053
  createdAt: e.iso.datetime(),
1053
1054
  updatedAt: e.iso.datetime(),
1054
1055
  name: e.string(),
1055
- address: w.nullable(),
1056
+ address: C.nullable(),
1056
1057
  email: e.email().nullable(),
1057
1058
  phone: e.string().nullable(),
1058
1059
  vatNumber: e.string().nullable(),
1059
- source: At,
1060
- type: y,
1061
- locale: v,
1062
- currency: x,
1060
+ source: jt,
1061
+ type: v,
1062
+ locale: _,
1063
+ currency: b,
1063
1064
  isDeactivated: e.boolean(),
1064
- defaultPaymentTerm: Mt,
1065
- requiresPriorApproval: e.boolean()
1066
- }), Pt = e.object({
1065
+ defaultPaymentTerm: Nt,
1066
+ requiresPriorApproval: e.boolean(),
1067
+ approvalEmail: e.email().nullable()
1068
+ }), Ft = e.object({
1067
1069
  isDeactivated: e.boolean().optional(),
1068
1070
  vatNumber: e.string().optional(),
1069
1071
  externalId: e.string().optional(),
1070
- type: y.optional()
1071
- }), Ft = e.object({
1072
+ type: v.optional()
1073
+ }), It = e.object({
1072
1074
  uuid: e.string(),
1073
1075
  name: e.string(),
1074
1076
  email: e.string().nullable(),
1075
1077
  phone: e.string().nullable(),
1076
1078
  vatNumber: e.string().nullable(),
1077
- address: w,
1078
- source: At,
1079
- type: y,
1079
+ address: C,
1080
+ source: jt,
1081
+ type: v,
1080
1082
  isDeactivated: e.boolean()
1081
- }), It = e.object({
1082
- items: e.array(Ft),
1083
- meta: _
1083
+ }), Lt = e.object({
1084
+ items: e.array(It),
1085
+ meta: g
1084
1086
  });
1085
1087
  e.object({
1086
1088
  detail: e.string().optional(),
@@ -1094,17 +1096,22 @@ e.object({
1094
1096
  detail: e.string().optional(),
1095
1097
  status: e.enum(["409"]),
1096
1098
  code: e.enum(["vat_number_required"])
1099
+ }), e.object({
1100
+ detail: e.string().optional(),
1101
+ status: e.enum(["409"]),
1102
+ code: e.enum(["approval_email_required"])
1097
1103
  }), e.object({
1098
1104
  name: e.string(),
1099
- address: Ot.nullable(),
1105
+ address: kt.nullable(),
1100
1106
  email: e.string(),
1101
1107
  phone: e.string().nullable(),
1102
1108
  vatNumber: e.string().nullable(),
1103
- type: y,
1104
- locale: v,
1105
- currency: x,
1106
- defaultPaymentTerm: Mt.optional(),
1107
- requiresPriorApproval: e.boolean().optional()
1109
+ type: v,
1110
+ locale: _,
1111
+ currency: b,
1112
+ defaultPaymentTerm: Nt.optional(),
1113
+ requiresPriorApproval: e.boolean().optional(),
1114
+ approvalEmail: e.email().max(255).nullable()
1108
1115
  }), e.object({
1109
1116
  customerUuid: e.uuid(),
1110
1117
  email: e.string(),
@@ -1115,7 +1122,7 @@ e.object({
1115
1122
  status: e.enum(["404"]),
1116
1123
  code: e.enum(["recipient_not_found"])
1117
1124
  });
1118
- var Lt = e.object({
1125
+ var Rt = e.object({
1119
1126
  uuid: e.uuid(),
1120
1127
  name: e.string()
1121
1128
  });
@@ -1123,29 +1130,29 @@ e.object({
1123
1130
  uuid: e.uuid(),
1124
1131
  name: e.string().nullable(),
1125
1132
  email: e.string(),
1126
- customer: Lt,
1133
+ customer: Rt,
1127
1134
  isDefault: e.boolean()
1128
1135
  }), e.object({
1129
1136
  email: e.string(),
1130
1137
  name: e.string().nullish(),
1131
1138
  isDefault: e.boolean()
1132
1139
  });
1133
- var Rt = e.object({
1140
+ var zt = e.object({
1134
1141
  uuid: e.uuid(),
1135
1142
  name: e.string().nullable(),
1136
1143
  email: e.email(),
1137
1144
  customerUuid: e.uuid(),
1138
1145
  isDefault: e.boolean()
1139
- }), zt = e.object({
1140
- items: e.array(Rt),
1141
- meta: _
1146
+ }), Bt = e.object({
1147
+ items: e.array(zt),
1148
+ meta: g
1142
1149
  });
1143
1150
  e.object({
1144
1151
  detail: e.string().optional(),
1145
1152
  status: e.enum(["404"]),
1146
1153
  code: e.enum(["issuer_not_found"])
1147
1154
  });
1148
- var Bt = e.object({
1155
+ var Vt = e.object({
1149
1156
  uuid: e.uuid(),
1150
1157
  createdAt: e.string(),
1151
1158
  updatedAt: e.string(),
@@ -1153,49 +1160,49 @@ var Bt = e.object({
1153
1160
  name: e.string().nullable(),
1154
1161
  phoneNumber: e.string().nullable(),
1155
1162
  website: e.string().nullable(),
1156
- address: w.nullable(),
1163
+ address: C.nullable(),
1157
1164
  vatNumber: e.string().nullable(),
1158
1165
  bic: e.string().nullable(),
1159
1166
  bankAccountNumber: e.string().nullable(),
1160
- currency: x,
1167
+ currency: b,
1161
1168
  sequencePrefix: e.string().nullable(),
1162
- defaultPaymentTerm: Mt,
1169
+ defaultPaymentTerm: Nt,
1163
1170
  requiresInvoiceApprovalFile: e.boolean()
1164
- }), Vt = e.object({
1171
+ }), Ht = e.object({
1165
1172
  email: e.email().nullable(),
1166
1173
  name: e.string().nullable(),
1167
1174
  phoneNumber: e.string().nullable(),
1168
1175
  website: e.string().nullable(),
1169
- address: Ot.nullable(),
1176
+ address: kt.nullable(),
1170
1177
  vatNumber: e.string().nullable(),
1171
1178
  bankAccountNumber: e.string().nullable(),
1172
1179
  bic: e.string().nullable(),
1173
- currency: x,
1180
+ currency: b,
1174
1181
  sequencePrefix: e.string().nullable(),
1175
- defaultPaymentTerm: Mt
1182
+ defaultPaymentTerm: Nt
1176
1183
  });
1177
1184
  e.object({
1178
1185
  detail: e.string().optional(),
1179
1186
  status: e.enum(["404"]),
1180
1187
  code: e.enum(["invoice_not_found"])
1181
1188
  });
1182
- var T = e.object({
1189
+ var w = e.object({
1183
1190
  definitionUuid: e.uuid(),
1184
1191
  type: e.enum(["text"]),
1185
1192
  value: e.string()
1186
- }), E = e.object({
1193
+ }), T = e.object({
1187
1194
  definitionUuid: e.uuid(),
1188
1195
  type: e.enum(["text_array"]),
1189
1196
  value: e.array(e.string())
1190
- }), D = e.object({
1197
+ }), E = e.object({
1191
1198
  definitionUuid: e.uuid(),
1192
1199
  type: e.enum(["number"]),
1193
1200
  value: e.number()
1194
- }), O = e.object({
1201
+ }), D = e.object({
1195
1202
  definitionUuid: e.uuid(),
1196
1203
  type: e.enum(["boolean"]),
1197
1204
  value: e.boolean()
1198
- }), k = e.object({
1205
+ }), O = e.object({
1199
1206
  definitionUuid: e.uuid(),
1200
1207
  type: e.enum(["date"]),
1201
1208
  value: e.union([
@@ -1203,59 +1210,59 @@ var T = e.object({
1203
1210
  e.enum(["infinity"]),
1204
1211
  e.enum(["-infinity"])
1205
1212
  ])
1206
- }), A = e.object({
1213
+ }), k = e.object({
1207
1214
  definitionUuid: e.uuid(),
1208
1215
  type: e.enum(["timestamp"]),
1209
1216
  value: e.iso.datetime()
1210
- }), j = e.object({
1217
+ }), A = e.object({
1211
1218
  definitionUuid: e.uuid(),
1212
1219
  type: e.enum(["single_select"]),
1213
1220
  value: e.string()
1214
- }), M = e.object({
1221
+ }), j = e.object({
1215
1222
  definitionUuid: e.uuid(),
1216
1223
  type: e.enum(["multi_select"]),
1217
1224
  value: e.array(e.string())
1218
- }), N = e.object({
1225
+ }), M = e.object({
1219
1226
  definitionUuid: e.uuid(),
1220
1227
  type: e.enum(["monetary"]),
1221
- value: S
1222
- }), Ht = e.enum(["standard", "credit_note"]), Ut = e.object({
1228
+ value: x
1229
+ }), Ut = e.enum(["standard", "credit_note"]), Wt = e.object({
1223
1230
  uuid: e.uuid(),
1224
1231
  name: e.string().nullable(),
1225
1232
  email: e.email().nullable(),
1226
1233
  phoneNumber: e.string().nullable(),
1227
1234
  website: e.string().nullable(),
1228
- address: w.nullable(),
1235
+ address: C.nullable(),
1229
1236
  vatNumber: e.string().nullable(),
1230
1237
  bankAccountNumber: e.string().nullable(),
1231
1238
  alternativeBankAccountNumber: e.string().nullable()
1232
- }), Wt = e.object({
1239
+ }), Gt = e.object({
1233
1240
  uuid: e.uuid(),
1234
1241
  name: e.string().nullable(),
1235
1242
  email: e.email().nullable()
1236
- }), Gt = e.object({
1243
+ }), Kt = e.object({
1237
1244
  uuid: e.uuid(),
1238
1245
  name: e.string().nullable(),
1239
1246
  email: e.email().nullable(),
1240
1247
  phoneNumber: e.string().nullable(),
1241
- address: w.nullable(),
1248
+ address: C.nullable(),
1242
1249
  vatNumber: e.string().nullable(),
1243
- type: y
1244
- }), P = e.enum([
1250
+ type: v
1251
+ }), N = e.enum([
1245
1252
  "draft",
1246
1253
  "ready",
1247
1254
  "finalized"
1248
- ]), F = e.enum([
1255
+ ]), P = e.enum([
1249
1256
  "0",
1250
1257
  "6",
1251
1258
  "12",
1252
1259
  "21"
1253
- ]), Kt = e.enum(["percentage", "amount"]), I = e.object({
1254
- type: Kt,
1255
- amount: S.nullable(),
1260
+ ]), qt = e.enum(["percentage", "amount"]), F = e.object({
1261
+ type: qt,
1262
+ amount: x.nullable(),
1256
1263
  percentage: e.number().nullable(),
1257
1264
  description: e.string().nullable()
1258
- }), qt = e.enum([
1265
+ }), Jt = e.enum([
1259
1266
  "piece",
1260
1267
  "hour",
1261
1268
  "day",
@@ -1265,13 +1272,14 @@ var T = e.object({
1265
1272
  "cubic_meter",
1266
1273
  "square_meter",
1267
1274
  "litre"
1268
- ]), Jt = e.object({
1275
+ ]), Yt = e.object({
1269
1276
  uuid: e.uuid(),
1270
1277
  groupUuid: e.uuid().nullable(),
1271
1278
  position: e.number(),
1272
1279
  name: e.string(),
1273
1280
  description: e.string().nullable(),
1274
1281
  customFields: e.array(e.union([
1282
+ w,
1275
1283
  T,
1276
1284
  E,
1277
1285
  D,
@@ -1279,24 +1287,24 @@ var T = e.object({
1279
1287
  k,
1280
1288
  A,
1281
1289
  j,
1282
- M,
1283
- N
1290
+ M
1284
1291
  ])),
1285
1292
  quantity: e.number(),
1286
- unitPrice: S,
1287
- vatRate: F,
1293
+ unitPrice: x,
1294
+ vatRate: P,
1288
1295
  vatRatePercentage: e.number(),
1289
- netAmount: S,
1290
- grossAmount: S,
1291
- discount: I.nullable(),
1292
- unit: qt,
1296
+ netAmount: x,
1297
+ grossAmount: x,
1298
+ discount: F.nullable(),
1299
+ unit: Jt,
1293
1300
  isDiscount: e.boolean()
1294
- }), Yt = e.object({
1301
+ }), Xt = e.object({
1295
1302
  uuid: e.uuid(),
1296
1303
  position: e.number(),
1297
1304
  name: e.string(),
1298
1305
  description: e.string().nullable(),
1299
1306
  customFields: e.array(e.union([
1307
+ w,
1300
1308
  T,
1301
1309
  E,
1302
1310
  D,
@@ -1304,43 +1312,43 @@ var T = e.object({
1304
1312
  k,
1305
1313
  A,
1306
1314
  j,
1307
- M,
1308
- N
1315
+ M
1309
1316
  ])),
1310
- lines: e.array(Jt)
1311
- }), Xt = e.object({
1312
- vatRate: F,
1313
- netAmount: S,
1314
- vatAmount: S
1317
+ lines: e.array(Yt)
1315
1318
  }), Zt = e.object({
1319
+ vatRate: P,
1320
+ netAmount: x,
1321
+ vatAmount: x
1322
+ }), Qt = e.object({
1316
1323
  uuid: e.uuid(),
1317
1324
  createdAt: e.iso.datetime(),
1318
- status: b,
1325
+ status: y,
1319
1326
  sequence: e.string().nullable()
1320
- }), Qt = e.enum([
1327
+ }), $t = e.enum([
1321
1328
  "unsent",
1322
1329
  "processing",
1323
1330
  "sent",
1324
1331
  "viewed",
1325
1332
  "failed"
1326
- ]), $t = e.object({
1333
+ ]), en = e.object({
1327
1334
  uuid: e.uuid(),
1328
1335
  sequence: e.string().nullable(),
1329
- type: Ht,
1336
+ type: Ut,
1330
1337
  createdAt: e.iso.datetime(),
1331
1338
  updatedAt: e.iso.datetime(),
1332
1339
  issueOn: e.iso.date().nullable(),
1333
1340
  dueOn: e.iso.date().nullable(),
1334
1341
  deliveredOn: e.iso.date().nullable(),
1335
- issuer: Ut,
1336
- recipient: Wt.nullable(),
1337
- customer: Gt,
1338
- status: b,
1339
- lifecycleStatus: P,
1342
+ issuer: Wt,
1343
+ recipient: Gt.nullable(),
1344
+ customer: Kt,
1345
+ status: y,
1346
+ lifecycleStatus: N,
1340
1347
  paymentReference: e.string().nullable(),
1341
1348
  subject: e.string().nullable(),
1342
1349
  poNumber: e.string().nullable(),
1343
1350
  customFields: e.array(e.union([
1351
+ w,
1344
1352
  T,
1345
1353
  E,
1346
1354
  D,
@@ -1348,56 +1356,57 @@ var T = e.object({
1348
1356
  k,
1349
1357
  A,
1350
1358
  j,
1351
- M,
1352
- N
1359
+ M
1353
1360
  ])),
1354
- ungroupedLines: e.array(Jt),
1355
- groups: e.array(Yt),
1356
- vatSummaries: e.array(Xt),
1357
- grossAmount: S,
1358
- netAmount: S,
1359
- effectiveNet: S,
1360
- vatAmount: S,
1361
- totalDiscountAmount: S.nullable(),
1362
- globalDiscount: I.nullable(),
1363
- originalInvoice: Zt.nullable(),
1361
+ ungroupedLines: e.array(Yt),
1362
+ groups: e.array(Xt),
1363
+ vatSummaries: e.array(Zt),
1364
+ grossAmount: x,
1365
+ netAmount: x,
1366
+ effectiveNet: x,
1367
+ vatAmount: x,
1368
+ totalDiscountAmount: x.nullable(),
1369
+ globalDiscount: F.nullable(),
1370
+ originalInvoice: Qt.nullable(),
1364
1371
  externalRemarks: e.string().nullable(),
1365
- deliveryStatus: Qt,
1372
+ deliveryStatus: $t,
1366
1373
  isDisputed: e.boolean()
1367
- }), en = e.object({ customerUuid: e.uuid() }), tn = e.object({ uuid: e.uuid() }), nn = e.object({
1374
+ }), tn = e.object({ customerUuid: e.uuid() }), nn = e.object({ uuid: e.uuid() }), rn = e.object({
1368
1375
  uuid: e.uuid(),
1369
1376
  name: e.string().nullable(),
1370
1377
  email: e.email().nullable(),
1371
1378
  phoneNumber: e.string().nullable(),
1372
1379
  website: e.string().nullable(),
1373
- address: w.nullable(),
1380
+ address: C.nullable(),
1374
1381
  vatNumber: e.string().nullable(),
1375
1382
  bankAccountNumber: e.string().nullable(),
1376
1383
  alternativeBankAccountNumber: e.string().nullable()
1377
- }), rn = e.object({
1384
+ }), an = e.object({
1378
1385
  uuid: e.uuid(),
1379
1386
  name: e.string().nullable(),
1380
1387
  email: e.email().nullable()
1381
- }), an = e.object({
1388
+ }), on = e.object({
1382
1389
  uuid: e.uuid(),
1383
1390
  name: e.string().nullable(),
1384
1391
  email: e.email().nullable(),
1385
1392
  externalId: e.string().nullable(),
1386
1393
  phoneNumber: e.string().nullable(),
1387
- address: w.nullable(),
1394
+ address: C.nullable(),
1388
1395
  vatNumber: e.string().nullable(),
1389
- type: y
1390
- }), on = e.object({
1396
+ type: v,
1397
+ approvalEmail: e.email().nullable()
1398
+ }), sn = e.object({
1391
1399
  uuid: e.uuid(),
1392
1400
  quantity: e.number(),
1393
1401
  remainingQuantity: e.number().nullable()
1394
- }), sn = e.object({
1402
+ }), cn = e.object({
1395
1403
  uuid: e.uuid(),
1396
1404
  groupUuid: e.uuid().nullable(),
1397
1405
  position: e.number(),
1398
1406
  name: e.string(),
1399
1407
  description: e.string().nullable(),
1400
1408
  customFields: e.array(e.union([
1409
+ w,
1401
1410
  T,
1402
1411
  E,
1403
1412
  D,
@@ -1405,25 +1414,25 @@ var T = e.object({
1405
1414
  k,
1406
1415
  A,
1407
1416
  j,
1408
- M,
1409
- N
1417
+ M
1410
1418
  ])),
1411
1419
  quantity: e.number(),
1412
- unitPrice: S,
1413
- vatRate: F,
1420
+ unitPrice: x,
1421
+ vatRate: P,
1414
1422
  vatRatePercentage: e.number(),
1415
- netAmount: S,
1416
- grossAmount: S,
1417
- discount: I.nullable(),
1418
- unit: qt,
1423
+ netAmount: x,
1424
+ grossAmount: x,
1425
+ discount: F.nullable(),
1426
+ unit: Jt,
1419
1427
  isDiscount: e.boolean(),
1420
- originalLine: on.nullable()
1421
- }), cn = e.object({
1428
+ originalLine: sn.nullable()
1429
+ }), ln = e.object({
1422
1430
  uuid: e.uuid(),
1423
1431
  position: e.number(),
1424
1432
  name: e.string(),
1425
1433
  description: e.string().nullable(),
1426
1434
  customFields: e.array(e.union([
1435
+ w,
1427
1436
  T,
1428
1437
  E,
1429
1438
  D,
@@ -1431,29 +1440,28 @@ var T = e.object({
1431
1440
  k,
1432
1441
  A,
1433
1442
  j,
1434
- M,
1435
- N
1443
+ M
1436
1444
  ])),
1437
- lines: e.array(sn)
1438
- }), ln = e.object({
1439
- vatRate: F,
1440
- netAmount: S,
1441
- vatAmount: S
1445
+ lines: e.array(cn)
1442
1446
  }), un = e.object({
1447
+ vatRate: P,
1448
+ netAmount: x,
1449
+ vatAmount: x
1450
+ }), I = e.object({
1443
1451
  uuid: e.uuid(),
1444
1452
  name: e.string(),
1445
- mimeType: ke,
1453
+ mimeType: Ae,
1446
1454
  blurHash: e.string().nullable()
1447
1455
  }), dn = e.object({
1448
1456
  uuid: e.uuid(),
1449
1457
  createdAt: e.iso.datetime(),
1450
- status: b,
1458
+ status: y,
1451
1459
  sequence: e.string().nullable(),
1452
- grossAmount: S,
1453
- totalCreditedAmount: S.nullable(),
1454
- paidAmount: S.nullable(),
1455
- balanceDueAmount: S.nullable(),
1456
- creditableAmount: S.nullable()
1460
+ grossAmount: x,
1461
+ totalCreditedAmount: x.nullable(),
1462
+ paidAmount: x.nullable(),
1463
+ balanceDueAmount: x.nullable(),
1464
+ creditableAmount: x.nullable()
1457
1465
  }), fn = e.object({
1458
1466
  uuid: e.string(),
1459
1467
  firstName: e.string().nullable(),
@@ -1478,12 +1486,12 @@ var T = e.object({
1478
1486
  sequence: e.number(),
1479
1487
  schedule: gn,
1480
1488
  offsetDays: e.number()
1481
- }), R = e.enum([
1489
+ }), vn = e.enum([
1482
1490
  "approved",
1483
1491
  "rejected",
1484
1492
  "requested",
1485
1493
  "expired"
1486
- ]), vn = e.enum([
1494
+ ]), yn = e.enum([
1487
1495
  "incorrect_price",
1488
1496
  "incorrect_quantity",
1489
1497
  "incorrect_customer_or_reference_data",
@@ -1491,35 +1499,38 @@ var T = e.object({
1491
1499
  "missing_or_incorrect_attachment",
1492
1500
  "missing_or_incorrect_po_reference",
1493
1501
  "other"
1494
- ]), yn = e.object({
1502
+ ]), R = e.union([e.literal(1), e.literal(2)]), bn = e.object({
1495
1503
  uuid: e.uuid(),
1496
1504
  sentAt: e.string().nullable(),
1497
- status: R,
1505
+ status: vn,
1498
1506
  answeredAt: e.string().nullable(),
1499
1507
  customerRemark: e.string().nullable(),
1500
- proFormaFile: un.nullable(),
1501
- approvalFile: un.nullable(),
1508
+ proFormaFile: I.nullable(),
1509
+ approvalProofs: e.array(I),
1502
1510
  isActive: e.boolean(),
1503
1511
  remarks: e.string().nullable(),
1504
- rejectionReason: vn.nullable()
1505
- }), bn = e.object({
1512
+ rejectionReason: yn.nullable(),
1513
+ level: R.nullable(),
1514
+ reminderSentAt: e.iso.datetime().nullable()
1515
+ }), xn = e.object({
1506
1516
  uuid: e.uuid(),
1507
1517
  sequence: e.string().nullable(),
1508
- type: Ht,
1518
+ type: Ut,
1509
1519
  createdAt: e.iso.datetime(),
1510
1520
  updatedAt: e.iso.datetime(),
1511
1521
  issueOn: e.iso.date().nullable(),
1512
1522
  dueOn: e.iso.date().nullable(),
1513
1523
  deliveredOn: e.iso.date().nullable(),
1514
- issuer: nn,
1515
- recipient: rn.nullable(),
1516
- customer: an,
1517
- status: b,
1518
- lifecycleStatus: P,
1524
+ issuer: rn,
1525
+ recipient: an.nullable(),
1526
+ customer: on,
1527
+ status: y,
1528
+ lifecycleStatus: N,
1519
1529
  paymentReference: e.string().nullable(),
1520
1530
  subject: e.string().nullable(),
1521
1531
  poNumber: e.string().nullable(),
1522
1532
  customFields: e.array(e.union([
1533
+ w,
1523
1534
  T,
1524
1535
  E,
1525
1536
  D,
@@ -1527,46 +1538,47 @@ var T = e.object({
1527
1538
  k,
1528
1539
  A,
1529
1540
  j,
1530
- M,
1531
- N
1541
+ M
1532
1542
  ])),
1533
- ungroupedLines: e.array(sn),
1534
- groups: e.array(cn),
1535
- vatSummaries: e.array(ln),
1536
- grossAmount: S,
1537
- netAmount: S,
1538
- effectiveNet: S,
1539
- vatAmount: S,
1540
- totalDiscountAmount: S.nullable(),
1541
- globalDiscount: I.nullable(),
1542
- attachments: e.array(un),
1543
+ ungroupedLines: e.array(cn),
1544
+ groups: e.array(ln),
1545
+ vatSummaries: e.array(un),
1546
+ grossAmount: x,
1547
+ netAmount: x,
1548
+ effectiveNet: x,
1549
+ vatAmount: x,
1550
+ totalDiscountAmount: x.nullable(),
1551
+ globalDiscount: F.nullable(),
1552
+ attachments: e.array(I),
1553
+ approvalProofs: e.array(I),
1554
+ rejectionFiles: e.array(I),
1543
1555
  creditNotes: e.array(dn),
1544
1556
  originalInvoice: dn.nullable(),
1545
1557
  preparedBy: fn,
1546
1558
  lastUpdatedBy: mn.nullable(),
1547
- file: un.nullable(),
1559
+ file: I.nullable(),
1548
1560
  externalRemarks: e.string().nullable(),
1549
- paidAmount: S.nullable(),
1561
+ paidAmount: x.nullable(),
1550
1562
  settlementStatus: L,
1551
- balanceDueAmount: S.nullable(),
1552
- currency: x,
1553
- deliveryStatus: Qt,
1563
+ balanceDueAmount: x.nullable(),
1564
+ currency: b,
1565
+ deliveryStatus: $t,
1554
1566
  isDisputed: e.boolean(),
1555
1567
  isOverdue: e.boolean(),
1556
1568
  reminders: e.array(hn),
1557
1569
  reminderConfigs: e.array(_n),
1558
1570
  requiresPriorApproval: e.boolean(),
1559
- approval: e.array(yn),
1571
+ approval: e.array(bn),
1560
1572
  hasChangesSinceApprovalSent: e.boolean()
1561
- }), xn = e.enum([
1573
+ }), Sn = e.enum([
1562
1574
  "created_at",
1563
1575
  "issued_on",
1564
1576
  "sequence",
1565
1577
  "customer",
1566
1578
  "netAmount"
1567
- ]), Sn = e.object({
1568
- key: xn,
1569
- order: _t
1579
+ ]), Cn = e.object({
1580
+ key: Sn,
1581
+ order: vt
1570
1582
  }), z = e.object({
1571
1583
  definitionUuid: e.uuid(),
1572
1584
  type: e.enum(["number"]),
@@ -1586,7 +1598,7 @@ var T = e.object({
1586
1598
  }), U = e.object({
1587
1599
  definitionUuid: e.uuid(),
1588
1600
  type: e.enum(["monetary"]),
1589
- value: S
1601
+ value: x
1590
1602
  }), W = e.object({
1591
1603
  definitionUuid: e.uuid(),
1592
1604
  type: e.enum(["multi_select"]),
@@ -1614,12 +1626,20 @@ var T = e.object({
1614
1626
  e.enum(["infinity"]),
1615
1627
  e.enum(["-infinity"])
1616
1628
  ])
1617
- }), Cn = e.enum(["include", "exclude"]), Y = e.object({
1618
- scope: Cn,
1629
+ }), wn = e.enum(["include", "exclude"]), Y = e.object({
1630
+ scope: wn,
1619
1631
  values: e.array(e.uuid())
1620
- }), X = e.union([e.literal(1), e.literal(2)]), wn = e.object({
1621
- statuses: e.array(b).optional(),
1622
- lifecycleStatuses: e.array(P).optional(),
1632
+ }), X = e.enum([
1633
+ "no_approval_required",
1634
+ "awaiting_approval",
1635
+ "reminder_1",
1636
+ "reminder_2",
1637
+ "approved",
1638
+ "rejected",
1639
+ "expired"
1640
+ ]), Tn = e.object({
1641
+ statuses: e.array(y).optional(),
1642
+ lifecycleStatuses: e.array(N).optional(),
1623
1643
  customerUuids: e.array(e.uuid()).optional(),
1624
1644
  dueOnRange: J.optional(),
1625
1645
  issuedOnRange: J.optional(),
@@ -1641,39 +1661,39 @@ var T = e.object({
1641
1661
  q
1642
1662
  ])).optional(),
1643
1663
  hasChangesSinceApprovalSent: e.boolean().optional(),
1644
- approvalStatus: R.optional(),
1645
- level: X.optional(),
1664
+ approvalStatuses: e.array(X).optional(),
1646
1665
  isApprovalCancelled: e.boolean().optional()
1647
- }), Tn = e.object({
1666
+ }), En = e.object({
1648
1667
  uuid: e.uuid(),
1649
1668
  externalId: e.string().nullable(),
1650
1669
  name: e.string()
1651
- }), En = e.object({
1652
- status: R,
1653
- level: X.nullable(),
1670
+ }), Dn = e.object({
1671
+ status: vn,
1672
+ level: R.nullable(),
1654
1673
  sentAt: e.iso.datetime().nullable(),
1655
1674
  reminderSentAt: e.iso.datetime().nullable()
1656
- }), Dn = e.object({
1675
+ }), On = e.object({
1657
1676
  uuid: e.uuid(),
1658
- type: Ht,
1677
+ type: Ut,
1659
1678
  createdAt: e.iso.datetime(),
1660
1679
  issuedOn: e.iso.date().nullable(),
1661
1680
  dueOn: e.iso.date().nullable(),
1662
1681
  subject: e.string().nullable(),
1663
- customer: Tn,
1664
- status: b,
1665
- lifecycleStatus: P,
1666
- netAmount: S,
1667
- grossAmount: S,
1682
+ customer: En,
1683
+ status: y,
1684
+ lifecycleStatus: N,
1685
+ netAmount: x,
1686
+ grossAmount: x,
1668
1687
  sequence: e.string().nullable(),
1669
- paidAmount: S.nullable(),
1670
- totalCreditedAmount: S.nullable(),
1688
+ paidAmount: x.nullable(),
1689
+ totalCreditedAmount: x.nullable(),
1671
1690
  settlementStatus: L,
1672
- balanceDueAmount: S.nullable(),
1691
+ balanceDueAmount: x.nullable(),
1673
1692
  isDisputed: e.boolean(),
1674
1693
  isOverdue: e.boolean(),
1675
- deliveryStatus: Qt,
1694
+ deliveryStatus: $t,
1676
1695
  customFields: e.array(e.union([
1696
+ w,
1677
1697
  T,
1678
1698
  E,
1679
1699
  D,
@@ -1681,15 +1701,14 @@ var T = e.object({
1681
1701
  k,
1682
1702
  A,
1683
1703
  j,
1684
- M,
1685
- N
1704
+ M
1686
1705
  ])),
1687
1706
  requiresPriorApproval: e.boolean(),
1688
1707
  hasChangesSinceApprovalSent: e.boolean(),
1689
- approval: En.nullable()
1690
- }), On = e.object({
1691
- items: e.array(Dn),
1692
- meta: _
1708
+ approval: Dn.nullable()
1709
+ }), kn = e.object({
1710
+ items: e.array(On),
1711
+ meta: g
1693
1712
  });
1694
1713
  e.object({
1695
1714
  detail: e.string().optional(),
@@ -1704,7 +1723,7 @@ e.object({
1704
1723
  status: e.enum(["409"]),
1705
1724
  code: e.enum(["can_not_change_invoice_customer_with_approval_created"])
1706
1725
  });
1707
- var kn = e.object({
1726
+ var An = e.object({
1708
1727
  issuedOn: e.iso.date(),
1709
1728
  deliveredOn: e.iso.date().nullable(),
1710
1729
  dueOn: e.iso.date(),
@@ -1715,6 +1734,7 @@ var kn = e.object({
1715
1734
  externalRemarks: e.string().nullable(),
1716
1735
  customerUuid: e.uuid().optional(),
1717
1736
  customFields: e.array(e.union([
1737
+ w,
1718
1738
  T,
1719
1739
  E,
1720
1740
  D,
@@ -1722,8 +1742,7 @@ var kn = e.object({
1722
1742
  k,
1723
1743
  A,
1724
1744
  j,
1725
- M,
1726
- N
1745
+ M
1727
1746
  ])).optional()
1728
1747
  });
1729
1748
  e.object({
@@ -1743,17 +1762,18 @@ e.object({
1743
1762
  status: e.enum(["400"]),
1744
1763
  code: e.enum(["invoice_line_and_group_position_overlap"])
1745
1764
  });
1746
- var An = e.object({
1765
+ var jn = e.object({
1747
1766
  name: e.string(),
1748
1767
  description: e.string().nullable(),
1749
1768
  position: e.int(),
1750
1769
  quantity: e.number().lte(1e4),
1751
- unitPrice: S,
1752
- vatRate: F,
1753
- discount: I.nullable(),
1754
- unit: qt,
1770
+ unitPrice: x,
1771
+ vatRate: P,
1772
+ discount: F.nullable(),
1773
+ unit: Jt,
1755
1774
  isDiscount: e.boolean(),
1756
1775
  customFields: e.array(e.union([
1776
+ w,
1757
1777
  T,
1758
1778
  E,
1759
1779
  D,
@@ -1761,15 +1781,15 @@ var An = e.object({
1761
1781
  k,
1762
1782
  A,
1763
1783
  j,
1764
- M,
1765
- N
1784
+ M
1766
1785
  ])).optional()
1767
- }), jn = e.object({
1786
+ }), Mn = e.object({
1768
1787
  name: e.string(),
1769
1788
  description: e.string().nullable(),
1770
1789
  position: e.int(),
1771
- lines: e.array(An),
1790
+ lines: e.array(jn),
1772
1791
  customFields: e.array(e.union([
1792
+ w,
1773
1793
  T,
1774
1794
  E,
1775
1795
  D,
@@ -1777,25 +1797,24 @@ var An = e.object({
1777
1797
  k,
1778
1798
  A,
1779
1799
  j,
1780
- M,
1781
- N
1800
+ M
1782
1801
  ])).optional()
1783
- }), Mn = e.object({
1784
- groups: e.array(jn),
1785
- ungroupedLines: e.array(An)
1802
+ }), Nn = e.object({
1803
+ groups: e.array(Mn),
1804
+ ungroupedLines: e.array(jn)
1786
1805
  });
1787
1806
  e.object({
1788
1807
  detail: e.string().optional(),
1789
1808
  status: e.enum(["409"]),
1790
1809
  code: e.enum(["global_discount_exceeds_total_net"])
1791
- }), e.object({ discount: I.nullable() });
1792
- var Nn = e.object({ discount: I });
1810
+ }), e.object({ discount: F.nullable() });
1811
+ var Pn = e.object({ discount: F });
1793
1812
  e.object({
1794
1813
  detail: e.string().optional(),
1795
1814
  status: e.enum(["409"]),
1796
1815
  code: e.enum(["file_unconfirmed"])
1797
1816
  });
1798
- var Pn = e.object({ fileUuids: e.array(e.uuid()) });
1817
+ var Fn = e.object({ fileUuids: e.array(e.uuid()) });
1799
1818
  e.object({
1800
1819
  detail: e.string().optional(),
1801
1820
  status: e.enum(["404"]),
@@ -1808,10 +1827,16 @@ e.object({
1808
1827
  detail: e.string().optional(),
1809
1828
  status: e.enum(["409"]),
1810
1829
  code: e.enum(["invoice_already_finalized"])
1811
- }), e.object({
1830
+ });
1831
+ var In = e.object({
1832
+ approvalStatus: vn.nullable(),
1833
+ level: R.nullable()
1834
+ });
1835
+ e.object({
1812
1836
  detail: e.string().optional(),
1813
1837
  status: e.enum(["409"]),
1814
- code: e.enum(["invoice_finalization_requires_approval"])
1838
+ code: e.enum(["invoice_finalization_requires_approval"]),
1839
+ meta: In
1815
1840
  }), e.object({
1816
1841
  detail: e.string().optional(),
1817
1842
  status: e.enum(["409"]),
@@ -1825,23 +1850,24 @@ e.object({
1825
1850
  status: e.enum(["409"]),
1826
1851
  code: e.enum(["credit_note_settled"])
1827
1852
  });
1828
- var Fn = e.object({ uuid: e.uuid() });
1853
+ var Ln = e.object({ uuid: e.uuid() });
1829
1854
  e.object({
1830
1855
  detail: e.string().optional(),
1831
1856
  status: e.enum(["409"]),
1832
1857
  code: e.enum(["invoice_not_credit_note"])
1833
1858
  });
1834
- var In = e.object({
1859
+ var Rn = e.object({
1835
1860
  name: e.string(),
1836
1861
  description: e.string().nullable(),
1837
1862
  position: e.int(),
1838
1863
  quantity: e.number().lte(1e4),
1839
- unitPrice: S,
1840
- vatRate: F,
1841
- discount: I.nullable(),
1842
- unit: qt,
1864
+ unitPrice: x,
1865
+ vatRate: P,
1866
+ discount: F.nullable(),
1867
+ unit: Jt,
1843
1868
  isDiscount: e.boolean(),
1844
1869
  customFields: e.array(e.union([
1870
+ w,
1845
1871
  T,
1846
1872
  E,
1847
1873
  D,
@@ -1849,15 +1875,15 @@ var In = e.object({
1849
1875
  k,
1850
1876
  A,
1851
1877
  j,
1852
- M,
1853
- N
1878
+ M
1854
1879
  ])).optional()
1855
- }), Ln = e.object({
1880
+ }), zn = e.object({
1856
1881
  name: e.string(),
1857
1882
  description: e.string().nullable(),
1858
1883
  position: e.int(),
1859
- lines: e.array(In),
1884
+ lines: e.array(Rn),
1860
1885
  customFields: e.array(e.union([
1886
+ w,
1861
1887
  T,
1862
1888
  E,
1863
1889
  D,
@@ -1865,13 +1891,12 @@ var In = e.object({
1865
1891
  k,
1866
1892
  A,
1867
1893
  j,
1868
- M,
1869
- N
1894
+ M
1870
1895
  ])).optional()
1871
- }), Rn = e.object({
1872
- groups: e.array(Ln),
1873
- ungroupedLines: e.array(In)
1874
- }), zn = e.object({
1896
+ }), Bn = e.object({
1897
+ groups: e.array(zn),
1898
+ ungroupedLines: e.array(Rn)
1899
+ }), Vn = e.object({
1875
1900
  issuedOn: e.iso.date(),
1876
1901
  poNumber: e.string().nullable(),
1877
1902
  subject: e.string().nullable(),
@@ -1879,6 +1904,7 @@ var In = e.object({
1879
1904
  externalRemarks: e.string().nullable(),
1880
1905
  preparedByUuid: e.uuid().optional(),
1881
1906
  customFields: e.array(e.union([
1907
+ w,
1882
1908
  T,
1883
1909
  E,
1884
1910
  D,
@@ -1886,8 +1912,7 @@ var In = e.object({
1886
1912
  k,
1887
1913
  A,
1888
1914
  j,
1889
- M,
1890
- N
1915
+ M
1891
1916
  ])).optional()
1892
1917
  });
1893
1918
  e.object({
@@ -1919,9 +1944,9 @@ e.object({
1919
1944
  status: e.enum(["503"]),
1920
1945
  code: e.enum(["mail_unavailable"])
1921
1946
  });
1922
- var Bn = e.object({
1923
- statuses: e.array(b).optional(),
1924
- lifecycleStatuses: e.array(P).optional(),
1947
+ var Hn = e.object({
1948
+ statuses: e.array(y).optional(),
1949
+ lifecycleStatuses: e.array(N).optional(),
1925
1950
  customerUuids: e.array(e.uuid()).optional(),
1926
1951
  dueOnRange: J.optional(),
1927
1952
  issuedOnRange: J.optional(),
@@ -1943,33 +1968,32 @@ var Bn = e.object({
1943
1968
  q
1944
1969
  ])).optional(),
1945
1970
  hasChangesSinceApprovalSent: e.boolean().optional(),
1946
- approvalStatus: R.optional(),
1947
- level: X.optional(),
1971
+ approvalStatuses: e.array(X).optional(),
1948
1972
  isApprovalCancelled: e.boolean().optional()
1949
1973
  }), Z = e.object({
1950
1974
  total: e.number(),
1951
1975
  processed: e.number(),
1952
1976
  skipped: e.number()
1953
- }), Vn = e.object({ pointer: e.string() }), Hn = e.object({
1977
+ }), Un = e.object({ pointer: e.string() }), Wn = e.object({
1954
1978
  code: e.string(),
1955
1979
  detail: e.string().optional(),
1956
1980
  title: e.string().optional(),
1957
1981
  id: e.string().optional(),
1958
1982
  status: e.string().optional(),
1959
- source: Vn.optional(),
1983
+ source: Un.optional(),
1960
1984
  meta: e.record(e.string(), e.unknown()).optional()
1961
- }), Un = e.object({
1985
+ }), Gn = e.object({
1962
1986
  status: e.number(),
1963
- errors: e.array(Hn)
1987
+ errors: e.array(Wn)
1964
1988
  }), Q = e.object({
1965
1989
  uuid: e.string(),
1966
- errors: e.array(Un)
1967
- }), Wn = e.object({
1990
+ errors: e.array(Gn)
1991
+ }), Kn = e.object({
1968
1992
  meta: Z,
1969
1993
  skipped: e.array(Q)
1970
- }), Gn = e.object({
1971
- statuses: e.array(b).optional(),
1972
- lifecycleStatuses: e.array(P).optional(),
1994
+ }), qn = e.object({
1995
+ statuses: e.array(y).optional(),
1996
+ lifecycleStatuses: e.array(N).optional(),
1973
1997
  customerUuids: e.array(e.uuid()).optional(),
1974
1998
  dueOnRange: J.optional(),
1975
1999
  issuedOnRange: J.optional(),
@@ -1991,10 +2015,9 @@ var Bn = e.object({
1991
2015
  q
1992
2016
  ])).optional(),
1993
2017
  hasChangesSinceApprovalSent: e.boolean().optional(),
1994
- approvalStatus: R.optional(),
1995
- level: X.optional(),
2018
+ approvalStatuses: e.array(X).optional(),
1996
2019
  isApprovalCancelled: e.boolean().optional()
1997
- }), Kn = e.object({
2020
+ }), Jn = e.object({
1998
2021
  meta: Z,
1999
2022
  skipped: e.array(Q)
2000
2023
  });
@@ -2011,7 +2034,7 @@ e.object({
2011
2034
  status: e.enum(["409"]),
2012
2035
  code: e.enum(["delete_invoice_with_approval"])
2013
2036
  });
2014
- var qn = e.object({ uuid: e.uuid() });
2037
+ var Yn = e.object({ uuid: e.uuid() });
2015
2038
  e.object({
2016
2039
  detail: e.string().optional(),
2017
2040
  status: e.enum(["409"]),
@@ -2025,9 +2048,9 @@ e.object({
2025
2048
  status: e.enum(["409"]),
2026
2049
  code: e.enum(["invoice_status_not_eligible_for_paid"])
2027
2050
  });
2028
- var Jn = e.object({
2029
- statuses: e.array(b).optional(),
2030
- lifecycleStatuses: e.array(P).optional(),
2051
+ var Xn = e.object({
2052
+ statuses: e.array(y).optional(),
2053
+ lifecycleStatuses: e.array(N).optional(),
2031
2054
  customerUuids: e.array(e.uuid()).optional(),
2032
2055
  dueOnRange: J.optional(),
2033
2056
  issuedOnRange: J.optional(),
@@ -2049,15 +2072,14 @@ var Jn = e.object({
2049
2072
  q
2050
2073
  ])).optional(),
2051
2074
  hasChangesSinceApprovalSent: e.boolean().optional(),
2052
- approvalStatus: R.optional(),
2053
- level: X.optional(),
2075
+ approvalStatuses: e.array(X).optional(),
2054
2076
  isApprovalCancelled: e.boolean().optional()
2055
- }), Yn = e.object({
2077
+ }), Zn = e.object({
2056
2078
  meta: Z,
2057
2079
  skipped: e.array(Q)
2058
- }), Xn = e.object({
2059
- statuses: e.array(b).optional(),
2060
- lifecycleStatuses: e.array(P).optional(),
2080
+ }), Qn = e.object({
2081
+ statuses: e.array(y).optional(),
2082
+ lifecycleStatuses: e.array(N).optional(),
2061
2083
  customerUuids: e.array(e.uuid()).optional(),
2062
2084
  dueOnRange: J.optional(),
2063
2085
  issuedOnRange: J.optional(),
@@ -2079,10 +2101,9 @@ var Jn = e.object({
2079
2101
  q
2080
2102
  ])).optional(),
2081
2103
  hasChangesSinceApprovalSent: e.boolean().optional(),
2082
- approvalStatus: R.optional(),
2083
- level: X.optional(),
2104
+ approvalStatuses: e.array(X).optional(),
2084
2105
  isApprovalCancelled: e.boolean().optional()
2085
- }), Zn = e.object({
2106
+ }), $n = e.object({
2086
2107
  meta: Z,
2087
2108
  skipped: e.array(Q)
2088
2109
  });
@@ -2091,9 +2112,9 @@ e.object({
2091
2112
  status: e.enum(["409"]),
2092
2113
  code: e.enum(["invoice_not_disputed"])
2093
2114
  });
2094
- var Qn = e.object({
2095
- statuses: e.array(b).optional(),
2096
- lifecycleStatuses: e.array(P).optional(),
2115
+ var er = e.object({
2116
+ statuses: e.array(y).optional(),
2117
+ lifecycleStatuses: e.array(N).optional(),
2097
2118
  customerUuids: e.array(e.uuid()).optional(),
2098
2119
  dueOnRange: J.optional(),
2099
2120
  issuedOnRange: J.optional(),
@@ -2115,15 +2136,14 @@ var Qn = e.object({
2115
2136
  q
2116
2137
  ])).optional(),
2117
2138
  hasChangesSinceApprovalSent: e.boolean().optional(),
2118
- approvalStatus: R.optional(),
2119
- level: X.optional(),
2139
+ approvalStatuses: e.array(X).optional(),
2120
2140
  isApprovalCancelled: e.boolean().optional()
2121
- }), $n = e.object({
2141
+ }), tr = e.object({
2122
2142
  meta: Z,
2123
2143
  skipped: e.array(Q)
2124
- }), er = e.object({
2125
- statuses: e.array(b).optional(),
2126
- lifecycleStatuses: e.array(P).optional(),
2144
+ }), nr = e.object({
2145
+ statuses: e.array(y).optional(),
2146
+ lifecycleStatuses: e.array(N).optional(),
2127
2147
  customerUuids: e.array(e.uuid()).optional(),
2128
2148
  dueOnRange: J.optional(),
2129
2149
  issuedOnRange: J.optional(),
@@ -2145,10 +2165,9 @@ var Qn = e.object({
2145
2165
  q
2146
2166
  ])).optional(),
2147
2167
  hasChangesSinceApprovalSent: e.boolean().optional(),
2148
- approvalStatus: R.optional(),
2149
- level: X.optional(),
2168
+ approvalStatuses: e.array(X).optional(),
2150
2169
  isApprovalCancelled: e.boolean().optional()
2151
- }), tr = e.object({
2170
+ }), rr = e.object({
2152
2171
  meta: Z,
2153
2172
  skipped: e.array(Q)
2154
2173
  });
@@ -2157,28 +2176,31 @@ e.object({
2157
2176
  status: e.enum(["404"]),
2158
2177
  code: e.enum(["pro_forma_not_found"])
2159
2178
  });
2160
- var nr = e.object({
2179
+ var ir = e.object({
2161
2180
  entityUuids: e.array(e.uuid()).optional(),
2162
2181
  entityTypes: e.array(e.enum([
2163
2182
  "customer",
2164
2183
  "invoice",
2165
2184
  "credit_note",
2166
- "approval"
2185
+ "approval",
2186
+ "api_key",
2187
+ "file"
2167
2188
  ])).optional(),
2168
2189
  roles: e.array(e.enum([
2169
2190
  "actor",
2170
2191
  "customer",
2171
2192
  "invoice",
2172
2193
  "credit_note",
2173
- "approval"
2194
+ "approval",
2195
+ "attachment"
2174
2196
  ])).optional()
2175
- }), rr = e.object({
2197
+ }), ar = e.object({
2176
2198
  createdAt: e.string(),
2177
2199
  uuid: e.uuid()
2178
- }), ir = e.object({
2200
+ }), or = e.object({
2179
2201
  limit: e.number().gte(0).lte(100).optional(),
2180
- key: rr.nullish()
2181
- }), ar = e.enum([
2202
+ key: ar.nullish()
2203
+ }), sr = e.enum([
2182
2204
  "invoice-created",
2183
2205
  "invoice-updated",
2184
2206
  "invoice-finalized",
@@ -2186,6 +2208,8 @@ var nr = e.object({
2186
2208
  "invoice-reminder-sent",
2187
2209
  "invoice-duplicated",
2188
2210
  "invoice-marked-as-ready",
2211
+ "invoice-marked-as-prior-approval-required",
2212
+ "invoice-unmarked-as-prior-approval-required",
2189
2213
  "invoice-marked-as-paid",
2190
2214
  "invoice-payment-created",
2191
2215
  "invoice-payment-deleted",
@@ -2195,40 +2219,45 @@ var nr = e.object({
2195
2219
  "invoice-approval-cancelled",
2196
2220
  "invoice-approval-expired",
2197
2221
  "invoice-approval-reminder-sent",
2222
+ "invoice-finalization-blocked",
2223
+ "dunning-case-reminder-sent",
2198
2224
  "credit-note-created",
2199
2225
  "credit-note-updated",
2200
2226
  "customer-updated"
2201
- ]), or = e.enum([
2227
+ ]), cr = e.enum([
2202
2228
  "create",
2203
2229
  "update",
2204
2230
  "delete"
2205
- ]), sr = e.enum([
2231
+ ]), lr = e.enum([
2206
2232
  "user",
2207
2233
  "service",
2208
2234
  "system"
2209
- ]), cr = e.object({
2235
+ ]), ur = e.object({
2210
2236
  uuid: e.uuid(),
2211
2237
  firstName: e.string().nullable(),
2212
2238
  lastName: e.string().nullable(),
2213
2239
  email: e.string().nullable()
2214
- }), lr = e.enum([
2240
+ }), dr = e.enum([
2215
2241
  "actor",
2216
2242
  "customer",
2217
2243
  "invoice",
2218
2244
  "credit_note",
2219
- "approval"
2220
- ]), ur = e.enum([
2245
+ "approval",
2246
+ "attachment"
2247
+ ]), fr = e.enum([
2221
2248
  "customer",
2222
2249
  "invoice",
2223
2250
  "credit_note",
2224
- "approval"
2225
- ]), dr = e.object({
2226
- role: lr,
2227
- type: ur,
2251
+ "approval",
2252
+ "api_key",
2253
+ "file"
2254
+ ]), pr = e.object({
2255
+ role: dr,
2256
+ type: fr,
2228
2257
  uuid: e.uuid(),
2229
2258
  label: e.string().nullable()
2230
- }), fr = e.object({
2231
- entityRole: lr,
2259
+ }), mr = e.object({
2260
+ entityRole: dr,
2232
2261
  field: e.string(),
2233
2262
  from: e.union([
2234
2263
  e.string(),
@@ -2240,29 +2269,29 @@ var nr = e.object({
2240
2269
  e.number(),
2241
2270
  e.boolean()
2242
2271
  ]).nullable()
2243
- }), pr = e.object({
2272
+ }), hr = e.object({
2244
2273
  createdAt: e.iso.datetime(),
2245
- action: ar,
2246
- changeType: or,
2247
- actorType: sr,
2248
- actor: cr.nullable(),
2249
- entities: e.array(dr),
2250
- changes: e.array(fr).nullable()
2251
- }), mr = e.object({
2252
- logs: e.array(pr),
2253
- nextKey: rr.nullable()
2274
+ action: sr,
2275
+ changeType: cr,
2276
+ actorType: lr,
2277
+ actor: ur.nullable(),
2278
+ entities: e.array(pr),
2279
+ changes: e.array(mr).nullable()
2280
+ }), gr = e.object({
2281
+ logs: e.array(hr),
2282
+ nextKey: ar.nullable()
2254
2283
  });
2255
2284
  e.object({
2256
2285
  detail: e.string().optional(),
2257
2286
  status: e.enum(["409"]),
2258
2287
  code: e.enum(["invoice_not_finalized_for_payment"])
2259
2288
  });
2260
- var hr = e.object({
2261
- amount: S,
2289
+ var _r = e.object({
2290
+ amount: x,
2262
2291
  date: e.iso.date(),
2263
2292
  paymentReference: e.string().nullish(),
2264
2293
  remarks: e.string().nullish()
2265
- }), gr = e.object({ uuid: e.uuid() });
2294
+ }), vr = e.object({ uuid: e.uuid() });
2266
2295
  e.object({
2267
2296
  detail: e.string().optional(),
2268
2297
  status: e.enum(["404"]),
@@ -2272,37 +2301,37 @@ e.object({
2272
2301
  status: e.enum(["409"]),
2273
2302
  code: e.enum(["payment_not_manual"])
2274
2303
  });
2275
- var _r = e.enum(["manual", "exact"]), vr = e.object({
2304
+ var yr = e.enum(["manual", "exact"]), br = e.object({
2276
2305
  uuid: e.uuid(),
2277
- amount: S,
2306
+ amount: x,
2278
2307
  date: e.iso.date(),
2279
2308
  createdAt: e.iso.datetime(),
2280
2309
  paymentReference: e.string().nullable(),
2281
2310
  remarks: e.string().nullable(),
2282
- source: _r
2283
- }), yr = e.object({ items: e.array(vr) }), br = e.union([
2311
+ source: yr
2312
+ }), xr = e.object({ items: e.array(br) }), Sr = e.union([
2284
2313
  e.literal(1),
2285
2314
  e.literal(2),
2286
2315
  e.literal(3)
2287
- ]), xr = e.object({
2316
+ ]), Cr = e.object({
2288
2317
  locale: e.string(),
2289
2318
  value: e.string()
2290
- }), $ = e.object({ items: e.array(xr) }), Sr = e.object({
2319
+ }), $ = e.object({ items: e.array(Cr) }), wr = e.object({
2291
2320
  subject: $,
2292
2321
  body: $
2293
- }), Cr = e.enum(["percentage", "amount"]), wr = e.object({
2294
- type: Cr,
2295
- amount: S.nullable(),
2322
+ }), Tr = e.enum(["percentage", "amount"]), Er = e.object({
2323
+ type: Tr,
2324
+ amount: x.nullable(),
2296
2325
  percentage: e.number().nullable()
2297
- }), Tr = e.object({
2326
+ }), Dr = e.object({
2298
2327
  uuid: e.uuid(),
2299
2328
  issuerUuid: e.uuid(),
2300
- sequence: br,
2329
+ sequence: Sr,
2301
2330
  schedule: gn,
2302
2331
  offsetDays: e.number(),
2303
- template: Sr,
2304
- fee: wr
2305
- }), Er = e.object({ items: e.array(Tr) });
2332
+ template: wr,
2333
+ fee: Er
2334
+ }), Or = e.object({ items: e.array(Dr) });
2306
2335
  e.object({
2307
2336
  detail: e.string().optional(),
2308
2337
  status: e.enum(["400"]),
@@ -2316,20 +2345,20 @@ e.object({
2316
2345
  status: e.enum(["400"]),
2317
2346
  code: e.enum(["additional_reminder_config"])
2318
2347
  });
2319
- var Dr = e.object({
2348
+ var kr = e.object({
2320
2349
  subject: $,
2321
2350
  body: $
2322
- }), Or = e.object({
2351
+ }), Ar = e.object({
2323
2352
  sequence: e.number(),
2324
2353
  offsetDays: e.int().gte(1),
2325
2354
  schedule: gn,
2326
- template: Dr,
2327
- fee: wr
2328
- }), kr = e.object({ reminders: e.array(Or) }), Ar = e.enum([
2355
+ template: kr,
2356
+ fee: Er
2357
+ }), jr = e.object({ reminders: e.array(Ar) }), Mr = e.enum([
2329
2358
  "invoice",
2330
2359
  "invoice-line",
2331
2360
  "invoice-line-group"
2332
- ]), jr = e.object({ entityTypes: e.array(Ar).optional() }), Mr = e.enum([
2361
+ ]), Nr = e.object({ entityTypes: e.array(Mr).optional() }), Pr = e.enum([
2333
2362
  "text",
2334
2363
  "text_array",
2335
2364
  "number",
@@ -2339,20 +2368,20 @@ var Dr = e.object({
2339
2368
  "single_select",
2340
2369
  "multi_select",
2341
2370
  "monetary"
2342
- ]), Nr = e.object({
2371
+ ]), Fr = e.object({
2343
2372
  value: e.string(),
2344
2373
  label: $,
2345
2374
  order: e.number()
2346
- }), Pr = e.object({
2375
+ }), Ir = e.object({
2347
2376
  uuid: e.uuid(),
2348
2377
  tenantUuid: e.uuid().nullable(),
2349
2378
  entityType: e.string(),
2350
2379
  key: e.string(),
2351
2380
  label: $,
2352
2381
  description: $.nullable(),
2353
- type: Mr,
2382
+ type: Pr,
2354
2383
  isRequired: e.boolean(),
2355
- choices: e.array(Nr).nullable(),
2384
+ choices: e.array(Fr).nullable(),
2356
2385
  rules: e.record(e.string(), e.unknown()).nullable()
2357
2386
  });
2358
2387
  e.object({
@@ -2360,40 +2389,40 @@ e.object({
2360
2389
  status: e.enum(["404"]),
2361
2390
  code: e.enum(["dunning_case_not_found"])
2362
2391
  });
2363
- var Fr = e.object({
2392
+ var Lr = e.object({
2364
2393
  uuid: e.uuid(),
2365
- type: y,
2394
+ type: v,
2366
2395
  name: e.string(),
2367
2396
  vatNumber: e.string().nullable(),
2368
2397
  email: e.string().nullable()
2369
- }), Ir = e.object({
2398
+ }), Rr = e.object({
2370
2399
  uuid: e.uuid(),
2371
2400
  date: e.iso.date(),
2372
- amount: S
2373
- }), Lr = e.object({
2401
+ amount: x
2402
+ }), zr = e.object({
2374
2403
  uuid: e.uuid(),
2375
2404
  sequence: e.string(),
2376
- grossAmount: S,
2405
+ grossAmount: x,
2377
2406
  finalizedOn: e.union([
2378
2407
  e.iso.date(),
2379
2408
  e.enum(["infinity"]),
2380
2409
  e.enum(["-infinity"])
2381
2410
  ])
2382
- }), Rr = e.object({
2411
+ }), Br = e.object({
2383
2412
  uuid: e.uuid(),
2384
2413
  subject: e.string().nullable(),
2385
2414
  sequence: e.string(),
2386
2415
  dueOn: e.iso.date(),
2387
2416
  level: e.number().nullable(),
2388
- grossAmount: S,
2389
- balanceDueAmount: S,
2390
- totalCreditedAmount: S,
2391
- paidAmount: S,
2417
+ grossAmount: x,
2418
+ balanceDueAmount: x,
2419
+ totalCreditedAmount: x,
2420
+ paidAmount: x,
2392
2421
  isDisputed: e.boolean(),
2393
2422
  settlementStatus: L,
2394
- payments: e.array(Ir),
2395
- creditNotes: e.array(Lr)
2396
- }), zr = e.object({
2423
+ payments: e.array(Rr),
2424
+ creditNotes: e.array(zr)
2425
+ }), Vr = e.object({
2397
2426
  uuid: e.uuid(),
2398
2427
  sentAt: e.union([
2399
2428
  e.iso.datetime(),
@@ -2401,7 +2430,7 @@ var Fr = e.object({
2401
2430
  e.enum(["-infinity"])
2402
2431
  ]).nullable(),
2403
2432
  hasErrors: e.boolean()
2404
- }), Br = e.enum(["missing_email"]), Vr = e.object({
2433
+ }), Hr = e.enum(["missing_email"]), Ur = e.object({
2405
2434
  uuid: e.uuid(),
2406
2435
  createdAt: e.iso.datetime(),
2407
2436
  updatedAt: e.iso.datetime(),
@@ -2409,30 +2438,31 @@ var Fr = e.object({
2409
2438
  isClosed: e.boolean(),
2410
2439
  nextReminderOn: e.iso.date().nullable(),
2411
2440
  level: e.number().nullable(),
2412
- customer: Fr,
2413
- invoices: e.array(Rr),
2414
- outstandingBalance: S,
2415
- totalPaid: S,
2416
- totalInvoiced: S,
2417
- totalCredited: S,
2418
- totalFee: S,
2441
+ customer: Lr,
2442
+ invoices: e.array(Br),
2443
+ outstandingBalance: x,
2444
+ totalPaid: x,
2445
+ totalInvoiced: x,
2446
+ totalCredited: x,
2447
+ totalFee: x,
2419
2448
  lastReminderSentAt: e.union([
2420
2449
  e.iso.datetime(),
2421
2450
  e.enum(["infinity"]),
2422
2451
  e.enum(["-infinity"])
2423
2452
  ]).nullable(),
2424
2453
  canSendReminder: e.boolean(),
2425
- latestCreatedReminder: zr.nullable(),
2426
- blockedReason: Br.nullable()
2427
- }), Hr = e.object({
2454
+ canRetryReminder: e.boolean(),
2455
+ latestCreatedReminder: Vr.nullable(),
2456
+ blockedReason: Hr.nullable()
2457
+ }), Wr = e.object({
2428
2458
  isOpen: e.boolean().optional(),
2429
2459
  customerUuid: e.uuid().optional(),
2430
2460
  level: e.number().optional(),
2431
2461
  dunningCaseUuids: Y.optional()
2432
- }), Ur = e.object({
2462
+ }), Gr = e.object({
2433
2463
  uuid: e.uuid(),
2434
2464
  name: e.string()
2435
- }), Wr = e.object({
2465
+ }), Kr = e.object({
2436
2466
  uuid: e.uuid(),
2437
2467
  sentAt: e.union([
2438
2468
  e.iso.datetime(),
@@ -2440,12 +2470,12 @@ var Fr = e.object({
2440
2470
  e.enum(["-infinity"])
2441
2471
  ]).nullable(),
2442
2472
  hasErrors: e.boolean()
2443
- }), Gr = e.object({
2473
+ }), qr = e.object({
2444
2474
  uuid: e.uuid(),
2445
- customer: Ur,
2475
+ customer: Gr,
2446
2476
  level: e.number().nullable(),
2447
2477
  daysOverdue: e.number(),
2448
- outstandingBalance: S,
2478
+ outstandingBalance: x,
2449
2479
  nextReminderOn: e.union([
2450
2480
  e.iso.date(),
2451
2481
  e.enum(["infinity"]),
@@ -2457,11 +2487,12 @@ var Fr = e.object({
2457
2487
  e.enum(["-infinity"])
2458
2488
  ]).nullable(),
2459
2489
  canSendReminder: e.boolean(),
2460
- latestCreatedReminder: Wr.nullable(),
2461
- blockedReason: Br.nullable()
2462
- }), Kr = e.object({
2463
- items: e.array(Gr),
2464
- meta: _
2490
+ canRetryReminder: e.boolean(),
2491
+ latestCreatedReminder: Kr.nullable(),
2492
+ blockedReason: Hr.nullable()
2493
+ }), Jr = e.object({
2494
+ items: e.array(qr),
2495
+ meta: g
2465
2496
  });
2466
2497
  e.object({
2467
2498
  detail: e.string().optional(),
@@ -2479,71 +2510,79 @@ e.object({
2479
2510
  detail: e.string().optional(),
2480
2511
  status: e.enum(["409"]),
2481
2512
  code: e.enum(["dunning_case_reminder_config_not_found"])
2513
+ }), e.object({
2514
+ detail: e.string().optional(),
2515
+ status: e.enum(["404"]),
2516
+ code: e.enum(["dunning_case_reminder_not_found"])
2517
+ }), e.object({
2518
+ detail: e.string().optional(),
2519
+ status: e.enum(["409"]),
2520
+ code: e.enum(["dunning_case_reminder_not_retryable"])
2482
2521
  });
2483
- var qr = e.object({
2522
+ var Yr = e.object({
2484
2523
  isOpen: e.boolean().optional(),
2485
2524
  customerUuid: e.uuid().optional(),
2486
2525
  level: e.number().optional(),
2487
2526
  dunningCaseUuids: Y.optional()
2488
- }), Jr = e.object({
2527
+ }), Xr = e.object({
2489
2528
  meta: Z,
2490
2529
  skipped: e.array(Q)
2491
- }), Yr = e.object({
2530
+ }), Zr = e.object({
2492
2531
  isOpen: e.boolean().optional(),
2493
2532
  customerUuid: e.uuid().optional(),
2494
2533
  level: e.number().optional(),
2495
2534
  dunningCaseUuids: Y.optional()
2496
- }), Xr = e.object({
2535
+ }), Qr = e.object({
2497
2536
  meta: Z,
2498
2537
  skipped: e.array(Q)
2499
- }), Zr = e.object({
2538
+ }), $r = e.object({
2500
2539
  name: e.string().nullable(),
2501
2540
  email: e.email().nullable(),
2502
2541
  phoneNumber: e.string().nullable(),
2503
2542
  website: e.string().nullable(),
2504
- address: w.nullable(),
2543
+ address: C.nullable(),
2505
2544
  vatNumber: e.string().nullable(),
2506
2545
  bankAccountNumber: e.string().nullable(),
2507
2546
  alternativeBankAccountNumber: e.string().nullable(),
2508
- currency: x
2509
- }), Qr = e.object({
2547
+ currency: b
2548
+ }), ei = e.object({
2510
2549
  name: e.string(),
2511
- address: w.nullable(),
2550
+ address: C.nullable(),
2512
2551
  email: e.email().nullable(),
2513
2552
  externalId: e.string().nullable(),
2514
2553
  phoneNumber: e.string().nullable(),
2515
2554
  vatNumber: e.string().nullable(),
2516
- type: y,
2517
- locale: v,
2518
- currency: x
2519
- }), $r = e.object({
2555
+ type: v,
2556
+ locale: _,
2557
+ currency: b
2558
+ }), ti = e.object({
2520
2559
  name: e.string().nullable(),
2521
2560
  email: e.email()
2522
- }), ei = e.object({
2561
+ }), ni = e.object({
2523
2562
  sequence: e.string(),
2524
2563
  issuedOn: e.iso.date(),
2525
2564
  dueOn: e.iso.date(),
2526
- outstandingBalance: S,
2565
+ outstandingBalance: x,
2527
2566
  level: e.number(),
2528
2567
  daysOverdue: e.number(),
2529
- fee: S,
2568
+ fee: x,
2530
2569
  isNew: e.boolean()
2531
- }), ti = e.object({
2570
+ }), ri = e.object({
2532
2571
  sequence: e.string(),
2533
2572
  issuedOn: e.iso.date(),
2534
2573
  dueOn: e.iso.date(),
2535
- outstandingBalance: S,
2574
+ outstandingBalance: x,
2536
2575
  daysOverdue: e.number()
2537
- }), ni = e.object({
2576
+ }), ii = e.object({
2538
2577
  createdAt: e.iso.datetime(),
2539
2578
  sentAt: e.iso.datetime().nullable(),
2540
2579
  level: e.number(),
2541
- issuer: Zr,
2542
- customer: Qr,
2543
- recipient: $r,
2544
- invoices: e.array(ei),
2545
- outstandingInvoices: e.array(ti),
2546
- totalFee: S
2580
+ issuer: $r,
2581
+ customer: ei,
2582
+ recipient: ti,
2583
+ invoices: e.array(ni),
2584
+ outstandingInvoices: e.array(ri),
2585
+ totalFee: x
2547
2586
  });
2548
2587
  e.object({
2549
2588
  detail: e.string().optional(),
@@ -2561,10 +2600,14 @@ e.object({
2561
2600
  detail: e.string().optional(),
2562
2601
  status: e.enum(["409"]),
2563
2602
  code: e.enum(["approval_already_sent_error"])
2603
+ }), e.object({
2604
+ detail: e.string().optional(),
2605
+ status: e.enum(["409"]),
2606
+ code: e.enum(["customer_has_no_approval_email"])
2564
2607
  });
2565
- var ri = e.object({
2566
- statuses: e.array(b).optional(),
2567
- lifecycleStatuses: e.array(P).optional(),
2608
+ var ai = e.object({
2609
+ statuses: e.array(y).optional(),
2610
+ lifecycleStatuses: e.array(N).optional(),
2568
2611
  customerUuids: e.array(e.uuid()).optional(),
2569
2612
  dueOnRange: J.optional(),
2570
2613
  issuedOnRange: J.optional(),
@@ -2586,15 +2629,14 @@ var ri = e.object({
2586
2629
  q
2587
2630
  ])).optional(),
2588
2631
  hasChangesSinceApprovalSent: e.boolean().optional(),
2589
- approvalStatus: R.optional(),
2590
- level: X.optional(),
2632
+ approvalStatuses: e.array(X).optional(),
2591
2633
  isApprovalCancelled: e.boolean().optional()
2592
- }), ii = e.object({
2634
+ }), oi = e.object({
2593
2635
  meta: Z,
2594
2636
  skipped: e.array(Q)
2595
- }), ai = e.object({
2596
- statuses: e.array(b).optional(),
2597
- lifecycleStatuses: e.array(P).optional(),
2637
+ }), si = e.object({
2638
+ statuses: e.array(y).optional(),
2639
+ lifecycleStatuses: e.array(N).optional(),
2598
2640
  customerUuids: e.array(e.uuid()).optional(),
2599
2641
  dueOnRange: J.optional(),
2600
2642
  issuedOnRange: J.optional(),
@@ -2616,10 +2658,9 @@ var ri = e.object({
2616
2658
  q
2617
2659
  ])).optional(),
2618
2660
  hasChangesSinceApprovalSent: e.boolean().optional(),
2619
- approvalStatus: R.optional(),
2620
- level: X.optional(),
2661
+ approvalStatuses: e.array(X).optional(),
2621
2662
  isApprovalCancelled: e.boolean().optional()
2622
- }), oi = e.object({
2663
+ }), ci = e.object({
2623
2664
  meta: Z,
2624
2665
  skipped: e.array(Q)
2625
2666
  });
@@ -2636,8 +2677,8 @@ e.object({
2636
2677
  status: e.enum(["400"]),
2637
2678
  code: e.enum(["missing_invoice_approval_file"])
2638
2679
  });
2639
- var si = e.object({
2640
- fileUuid: e.uuid().nullish(),
2680
+ var li = e.object({
2681
+ fileUuids: e.array(e.uuid()).optional(),
2641
2682
  remarks: e.string().nullish()
2642
2683
  });
2643
2684
  e.object({
@@ -2645,9 +2686,10 @@ e.object({
2645
2686
  status: e.enum(["400"]),
2646
2687
  code: e.enum(["missing_rejection_remarks"])
2647
2688
  });
2648
- var ci = e.object({
2649
- remarks: e.string().nullish(),
2650
- reason: vn
2689
+ var ui = e.object({
2690
+ remarks: e.string().max(500).nullish(),
2691
+ reason: yn,
2692
+ fileUuids: e.array(e.uuid()).optional()
2651
2693
  });
2652
2694
  e.object({
2653
2695
  detail: e.string().optional(),
@@ -2666,37 +2708,37 @@ e.object({
2666
2708
  status: e.enum(["409"]),
2667
2709
  code: e.enum(["approval_restart_requires_active_approval"])
2668
2710
  });
2669
- var li = e.object({
2670
- status: R.optional(),
2711
+ var di = e.object({
2712
+ status: vn.optional(),
2671
2713
  invoiceUuid: e.uuid().optional(),
2672
2714
  customerUuid: e.uuid().optional(),
2673
- level: X.optional(),
2715
+ level: R.optional(),
2674
2716
  hasChangesSinceApprovalSent: e.boolean().optional(),
2675
2717
  isCancelled: e.boolean().optional()
2676
- }), ui = e.object({
2718
+ }), fi = e.object({
2677
2719
  uuid: e.uuid(),
2678
2720
  subject: e.string().nullable(),
2679
2721
  hasChangesSinceApprovalSent: e.boolean()
2680
- }), di = e.object({
2722
+ }), pi = e.object({
2681
2723
  uuid: e.uuid(),
2682
2724
  issuedOn: e.union([
2683
2725
  e.iso.date(),
2684
2726
  e.enum(["infinity"]),
2685
2727
  e.enum(["-infinity"])
2686
2728
  ]).nullable(),
2687
- netAmount: S,
2688
- grossAmount: S,
2689
- balanceDueAmount: S.nullable()
2690
- }), fi = e.object({
2729
+ netAmount: x,
2730
+ grossAmount: x,
2731
+ balanceDueAmount: x.nullable()
2732
+ }), mi = e.object({
2691
2733
  uuid: e.uuid(),
2692
2734
  name: e.string().nullable()
2693
- }), pi = e.object({
2735
+ }), hi = e.object({
2694
2736
  name: e.string().nullable(),
2695
2737
  email: e.email().nullable()
2696
- }), mi = e.object({
2738
+ }), gi = e.object({
2697
2739
  uuid: e.uuid(),
2698
2740
  createdAt: e.iso.datetime(),
2699
- status: R,
2741
+ status: vn,
2700
2742
  sentAt: e.union([
2701
2743
  e.iso.datetime(),
2702
2744
  e.enum(["infinity"]),
@@ -2718,45 +2760,46 @@ var li = e.object({
2718
2760
  e.enum(["-infinity"])
2719
2761
  ]).nullable(),
2720
2762
  customerRemark: e.string().nullable(),
2721
- rejectionReason: vn.nullable(),
2722
- level: X.nullable(),
2763
+ rejectionReason: yn.nullable(),
2764
+ level: R.nullable(),
2723
2765
  lastReminderSentAt: e.union([
2724
2766
  e.iso.datetime(),
2725
2767
  e.enum(["infinity"]),
2726
2768
  e.enum(["-infinity"])
2727
2769
  ]).nullable(),
2728
- invoice: ui,
2729
- proForma: di,
2730
- customer: fi,
2731
- recipient: pi
2732
- }), hi = e.object({
2733
- items: e.array(mi),
2734
- meta: _
2735
- }), gi = e.object({
2770
+ invoice: fi,
2771
+ proForma: pi,
2772
+ customer: mi,
2773
+ recipient: hi
2774
+ }), _i = e.object({
2775
+ items: e.array(gi),
2776
+ meta: g
2777
+ }), vi = e.object({
2736
2778
  uuid: e.uuid(),
2737
2779
  name: e.string().nullable(),
2738
2780
  email: e.email().nullable(),
2739
2781
  phoneNumber: e.string().nullable(),
2740
2782
  website: e.string().nullable(),
2741
- address: w.nullable(),
2783
+ address: C.nullable(),
2742
2784
  vatNumber: e.string().nullable(),
2743
2785
  bankAccountNumber: e.string().nullable(),
2744
2786
  alternativeBankAccountNumber: e.string().nullable()
2745
- }), _i = e.object({
2787
+ }), yi = e.object({
2746
2788
  uuid: e.uuid(),
2747
2789
  name: e.string().nullable(),
2748
2790
  email: e.email().nullable(),
2749
2791
  phoneNumber: e.string().nullable(),
2750
- address: w.nullable(),
2792
+ address: C.nullable(),
2751
2793
  vatNumber: e.string().nullable(),
2752
- type: y
2753
- }), vi = e.object({
2794
+ type: v
2795
+ }), bi = e.object({
2754
2796
  uuid: e.uuid(),
2755
2797
  groupUuid: e.uuid().nullable(),
2756
2798
  position: e.number(),
2757
2799
  name: e.string(),
2758
2800
  description: e.string().nullable(),
2759
2801
  customFields: e.array(e.union([
2802
+ w,
2760
2803
  T,
2761
2804
  E,
2762
2805
  D,
@@ -2764,24 +2807,24 @@ var li = e.object({
2764
2807
  k,
2765
2808
  A,
2766
2809
  j,
2767
- M,
2768
- N
2810
+ M
2769
2811
  ])),
2770
2812
  quantity: e.number(),
2771
- unitPrice: S,
2772
- vatRate: F,
2813
+ unitPrice: x,
2814
+ vatRate: P,
2773
2815
  vatRatePercentage: e.number(),
2774
- netAmount: S,
2775
- grossAmount: S,
2776
- discount: I.nullable(),
2777
- unit: qt,
2816
+ netAmount: x,
2817
+ grossAmount: x,
2818
+ discount: F.nullable(),
2819
+ unit: Jt,
2778
2820
  isDiscount: e.boolean()
2779
- }), yi = e.object({
2821
+ }), xi = e.object({
2780
2822
  uuid: e.uuid(),
2781
2823
  position: e.number(),
2782
2824
  name: e.string(),
2783
2825
  description: e.string().nullable(),
2784
2826
  customFields: e.array(e.union([
2827
+ w,
2785
2828
  T,
2786
2829
  E,
2787
2830
  D,
@@ -2789,26 +2832,25 @@ var li = e.object({
2789
2832
  k,
2790
2833
  A,
2791
2834
  j,
2792
- M,
2793
- N
2835
+ M
2794
2836
  ])),
2795
- lines: e.array(vi)
2796
- }), bi = e.object({
2797
- vatRate: F,
2798
- netAmount: S,
2799
- vatAmount: S
2800
- });
2801
- e.object({
2837
+ lines: e.array(bi)
2838
+ }), Si = e.object({
2839
+ vatRate: P,
2840
+ netAmount: x,
2841
+ vatAmount: x
2842
+ }), Ci = e.object({
2802
2843
  uuid: e.uuid(),
2803
2844
  createdAt: e.iso.datetime(),
2804
2845
  updatedAt: e.iso.datetime(),
2805
2846
  issueOn: e.iso.date().nullable(),
2806
- issuer: gi,
2807
- customer: _i,
2847
+ issuer: vi,
2848
+ customer: yi,
2808
2849
  paymentReference: e.string().nullable(),
2809
2850
  subject: e.string().nullable(),
2810
2851
  poNumber: e.string().nullable(),
2811
2852
  customFields: e.array(e.union([
2853
+ w,
2812
2854
  T,
2813
2855
  E,
2814
2856
  D,
@@ -2816,28 +2858,26 @@ e.object({
2816
2858
  k,
2817
2859
  A,
2818
2860
  j,
2819
- M,
2820
- N
2861
+ M
2821
2862
  ])),
2822
- ungroupedLines: e.array(vi),
2823
- groups: e.array(yi),
2824
- vatSummaries: e.array(bi),
2825
- grossAmount: S,
2826
- netAmount: S,
2827
- effectiveNet: S,
2828
- vatAmount: S,
2829
- totalDiscountAmount: S.nullable(),
2830
- globalDiscount: I.nullable(),
2863
+ ungroupedLines: e.array(bi),
2864
+ groups: e.array(xi),
2865
+ vatSummaries: e.array(Si),
2866
+ grossAmount: x,
2867
+ netAmount: x,
2868
+ effectiveNet: x,
2869
+ vatAmount: x,
2870
+ totalDiscountAmount: x.nullable(),
2871
+ globalDiscount: F.nullable(),
2831
2872
  externalRemarks: e.string().nullable()
2832
- });
2833
- var xi = e.enum(["after_approval_request", "after_last_reminder"]), Si = e.object({
2873
+ }), wi = e.enum(["after_approval_request", "after_last_reminder"]), Ti = e.object({
2834
2874
  uuid: e.uuid(),
2835
2875
  issuerUuid: e.uuid(),
2836
- sequence: X,
2837
- schedule: xi,
2876
+ sequence: R,
2877
+ schedule: wi,
2838
2878
  offsetDays: e.number(),
2839
- template: Sr
2840
- }), Ci = e.object({ items: e.array(Si) });
2879
+ template: wr
2880
+ }), Ei = e.object({ items: e.array(Ti) });
2841
2881
  e.object({
2842
2882
  detail: e.string().optional(),
2843
2883
  status: e.enum(["400"]),
@@ -2851,705 +2891,720 @@ e.object({
2851
2891
  status: e.enum(["400"]),
2852
2892
  code: e.enum(["additional_approval_reminder_config"])
2853
2893
  });
2854
- var wi = e.object({
2855
- sequence: X,
2894
+ var Di = e.object({
2895
+ sequence: R,
2856
2896
  offsetDays: e.int().gte(1),
2857
- schedule: xi,
2858
- template: Dr
2859
- }), Ti = e.object({ reminders: e.array(wi).max(2) });
2897
+ schedule: wi,
2898
+ template: kr
2899
+ }), Oi = e.object({ reminders: e.array(Di).max(2) });
2860
2900
  e.object({
2861
2901
  detail: e.string().optional(),
2862
2902
  status: e.enum(["500"]),
2863
2903
  code: e.enum(["internal_server_error"])
2864
2904
  }), e.object({
2865
2905
  search: e.string().optional(),
2866
- pagination: ye.optional()
2906
+ pagination: be.optional()
2867
2907
  }), e.object({ uuid: e.uuid() }), e.void(), e.object({
2868
2908
  fresh: e.boolean(),
2869
- collections: e.array(Se).optional()
2870
- }), e.object({ collections: e.array(Se).optional() }), e.object({ user: e.uuid() }), e.object({ uuid: e.uuid() });
2871
- var Ei = e.object({
2872
- pagination: g.optional(),
2909
+ collections: e.array(Ce).optional()
2910
+ }), e.object({ collections: e.array(Ce).optional() }), e.object({ user: e.uuid() }), e.object({ uuid: e.uuid() });
2911
+ var ki = e.object({
2912
+ pagination: h.optional(),
2873
2913
  search: e.string().optional()
2874
- }), Di = Ee;
2914
+ }), Ai = De;
2875
2915
  e.void(), e.void(), e.object({ role: e.uuid() }), e.void(), e.object({ role: e.uuid() }), e.object({ role: e.uuid() }), e.void();
2876
- var Oi = Ae, ki = je;
2916
+ var ji = je, Mi = Me;
2877
2917
  e.object({ file: e.uuid() }), e.void();
2878
- var Ai = Me, ji = e.object({ file: e.uuid() }), Mi = e.void(), Ni = e.object({ file: e.uuid() });
2918
+ var Ni = Ne, Pi = e.object({ file: e.uuid() }), Fi = e.void(), Ii = e.object({ file: e.uuid() });
2879
2919
  e.object({ file: e.uuid() }), e.object({ token: e.string() }), e.object({
2880
- filter: Le.optional(),
2881
- pagination: ze.optional()
2920
+ filter: Re.optional(),
2921
+ pagination: Be.optional()
2882
2922
  }), e.object({
2883
- filter: Ke.optional(),
2923
+ filter: qe.optional(),
2884
2924
  search: e.string(),
2885
- pagination: Je.optional()
2925
+ pagination: Ye.optional()
2886
2926
  }), e.void(), e.void(), e.object({
2887
- filter: ct.optional(),
2888
- pagination: ut.optional()
2927
+ filter: lt.optional(),
2928
+ pagination: dt.optional()
2889
2929
  }), e.object({ notificationUuid: e.uuid() }), e.void(), e.void(), e.object({ notificationUuid: e.uuid() }), e.void(), e.object({ notificationUuid: e.uuid() }), e.void(), e.void(), e.void(), e.object({
2890
- sort: e.array(vt).optional(),
2891
- filter: bt.optional(),
2892
- pagination: St.optional()
2930
+ sort: e.array(yt).optional(),
2931
+ filter: xt.optional(),
2932
+ pagination: Ct.optional()
2893
2933
  }), e.object({ jobId: e.uuid() }), e.object({
2894
- pagination: g.optional(),
2934
+ pagination: h.optional(),
2895
2935
  search: e.string().optional()
2896
2936
  }), e.object({ uuid: e.uuid() }), e.object({ uuid: e.uuid() }), e.void(), e.object({ uuid: e.uuid() }), e.object({ slug: e.string() }), e.object({ uuid: e.uuid() }), e.void();
2897
- var Pi = e.object({
2898
- pagination: g.optional(),
2899
- filter: Pt.optional(),
2937
+ var Li = e.object({
2938
+ pagination: h.optional(),
2939
+ filter: Ft.optional(),
2900
2940
  search: e.string().optional()
2901
- }), Fi = It, Ii = e.object({ uuid: e.uuid() }), Li = Nt;
2941
+ }), Ri = Lt, zi = e.object({ uuid: e.uuid() }), Bi = Pt;
2902
2942
  e.object({ uuid: e.uuid() }), e.void(), e.object({ uuid: e.uuid() }), e.void(), e.object({ uuid: e.uuid() }), e.void(), e.object({ uuid: e.uuid() }), e.void(), e.object({ uuid: e.uuid() }), e.void(), e.object({ uuid: e.uuid() }), e.object({ uuid: e.uuid() }), e.void();
2903
- var Ri = e.object({ uuid: e.uuid() }), zi = e.object({ pagination: g.optional() }), Bi = zt, Vi = Bt, Hi = Vt, Ui = e.void(), Wi = e.object({ token: e.string() }), Gi = $t, Ki = e.object({
2904
- pagination: g.optional(),
2905
- sort: e.array(Sn).optional(),
2906
- filter: wn.optional(),
2943
+ var Vi = e.object({ uuid: e.uuid() }), Hi = e.object({ pagination: h.optional() }), Ui = Bt, Wi = Vt, Gi = Ht, Ki = e.void(), qi = e.object({ token: e.string() }), Ji = en, Yi = e.object({
2944
+ pagination: h.optional(),
2945
+ sort: e.array(Cn).optional(),
2946
+ filter: Tn.optional(),
2907
2947
  search: e.string().optional()
2908
- }), qi = On, Ji = en, Yi = tn, Xi = e.object({ uuid: e.uuid() }), Zi = e.void(), Qi = e.object({ uuid: e.uuid() }), $i = bn, ea = kn, ta = e.object({ uuid: e.uuid() }), na = e.void(), ra = Mn, ia = e.object({ uuid: e.uuid() }), aa = e.void();
2948
+ }), Xi = kn, Zi = tn, Qi = nn, $i = e.object({ uuid: e.uuid() }), ea = e.void(), ta = e.object({ uuid: e.uuid() }), na = xn, ra = An, ia = e.object({ uuid: e.uuid() }), aa = e.void(), oa = Nn, sa = e.object({ uuid: e.uuid() }), ca = e.void();
2909
2949
  e.object({ uuid: e.uuid() }), e.void();
2910
- var oa = Nn, sa = e.object({ uuid: e.uuid() }), ca = e.void(), la = Pn, ua = e.object({ uuid: e.uuid() }), da = e.void(), fa = e.object({ uuid: e.uuid() }), pa = e.object({ uuid: e.uuid() }), ma = Fn, ha = Rn, ga = e.object({ uuid: e.uuid() }), _a = e.void(), va = zn, ya = e.object({ uuid: e.uuid() }), ba = e.void(), xa = e.object({ uuid: e.uuid() }), Sa = e.object({ uuid: e.uuid() }), Ca = e.object({
2911
- filter: Bn.optional(),
2950
+ var la = Pn, ua = e.object({ uuid: e.uuid() }), da = e.void(), fa = Fn, pa = e.object({ uuid: e.uuid() }), ma = e.void(), ha = e.object({ uuid: e.uuid() }), ga = e.object({ uuid: e.uuid() }), _a = Ln, va = Bn, ya = e.object({ uuid: e.uuid() }), ba = e.void(), xa = Vn, Sa = e.object({ uuid: e.uuid() }), Ca = e.void(), wa = e.object({ uuid: e.uuid() }), Ta = e.object({ uuid: e.uuid() }), Ea = e.object({
2951
+ filter: Hn.optional(),
2912
2952
  search: e.string().optional()
2913
- }), wa = Wn, Ta = e.object({
2914
- filter: Gn.optional(),
2953
+ }), Da = Kn, Oa = e.object({
2954
+ filter: qn.optional(),
2915
2955
  search: e.string().optional()
2916
- }), Ea = Kn, Da = e.object({ uuid: e.uuid() }), Oa = e.void(), ka = e.object({ uuid: e.uuid() }), Aa = qn, ja = e.object({ uuid: e.uuid() }), Ma = e.void(), Na = e.object({ uuid: e.uuid() }), Pa = e.void(), Fa = e.object({ uuid: e.uuid() }), Ia = e.void(), La = e.object({ uuid: e.uuid() }), Ra = e.void(), za = e.object({ uuid: e.uuid() }), Ba = e.void(), Va = e.object({
2917
- filter: Jn.optional(),
2918
- search: e.string().optional()
2919
- }), Ha = Yn, Ua = e.object({
2956
+ }), ka = Jn, Aa = e.object({ uuid: e.uuid() }), ja = e.void(), Ma = e.object({ uuid: e.uuid() }), Na = Yn, Pa = e.object({ uuid: e.uuid() }), Fa = e.void(), Ia = e.object({ uuid: e.uuid() }), La = e.void(), Ra = e.object({ uuid: e.uuid() }), za = e.void(), Ba = e.object({ uuid: e.uuid() }), Va = e.void(), Ha = e.object({ uuid: e.uuid() }), Ua = e.void(), Wa = e.object({
2920
2957
  filter: Xn.optional(),
2921
2958
  search: e.string().optional()
2922
- }), Wa = Zn, Ga = e.object({ uuid: e.uuid() }), Ka = e.void(), qa = e.object({
2959
+ }), Ga = Zn, Ka = e.object({
2923
2960
  filter: Qn.optional(),
2924
2961
  search: e.string().optional()
2925
- }), Ja = $n, Ya = e.object({
2962
+ }), qa = $n, Ja = e.object({ uuid: e.uuid() }), Ya = e.void(), Xa = e.object({
2926
2963
  filter: er.optional(),
2927
2964
  search: e.string().optional()
2928
- }), Xa = tr, Za = e.object({ uuid: e.uuid() }), Qa = e.void(), $a = e.object({
2965
+ }), Za = tr, Qa = e.object({
2929
2966
  filter: nr.optional(),
2930
- pagination: ir.optional()
2931
- }), eo = mr, to = e.object({ uuid: e.uuid() }), no = yr, ro = hr, io = e.object({ uuid: e.uuid() }), ao = gr, oo = e.object({
2967
+ search: e.string().optional()
2968
+ }), $a = rr, eo = e.object({ uuid: e.uuid() }), to = e.void(), no = e.object({
2969
+ filter: ir.optional(),
2970
+ pagination: or.optional()
2971
+ }), ro = gr, io = e.object({ uuid: e.uuid() }), ao = xr, oo = _r, so = e.object({ uuid: e.uuid() }), co = vr, lo = e.object({
2932
2972
  uuid: e.uuid(),
2933
2973
  paymentUuid: e.uuid()
2934
- }), so = e.void(), co = Er, lo = kr, uo = e.void(), fo = e.object({ filter: jr.optional() }), po = e.array(Pr), mo = e.object({ uuid: e.uuid() }), ho = Vr, go = e.object({
2935
- pagination: g.optional(),
2936
- filter: Hr.optional()
2937
- }), _o = Kr, vo = e.object({ uuid: e.uuid() }), yo = e.object({ filter: qr.optional() }), bo = Jr, xo = e.object({ filter: Yr.optional() }), So = Xr, Co = e.object({ token: e.string() }), wo = ni, To = e.object({ uuid: e.uuid() }), Eo = e.object({
2938
- filter: ri.optional(),
2939
- search: e.string().optional()
2940
- }), Do = ii, Oo = e.object({
2974
+ }), uo = e.void(), fo = Or, po = jr, mo = e.void(), ho = e.object({ filter: Nr.optional() }), go = e.array(Ir), _o = e.object({ uuid: e.uuid() }), vo = Ur, yo = e.object({
2975
+ pagination: h.optional(),
2976
+ filter: Wr.optional()
2977
+ }), bo = Jr, xo = e.object({ uuid: e.uuid() }), So = e.object({ uuid: e.uuid() }), Co = e.object({ filter: Yr.optional() }), wo = Xr, To = e.object({ filter: Zr.optional() }), Eo = Qr, Do = e.object({ token: e.string() }), Oo = ii, ko = e.object({ uuid: e.uuid() }), Ao = e.object({
2941
2978
  filter: ai.optional(),
2942
2979
  search: e.string().optional()
2943
- }), ko = oi, Ao = si, jo = e.object({ uuid: e.uuid() }), Mo = e.void(), No = ci, Po = e.object({ uuid: e.uuid() }), Fo = e.void(), Io = e.object({ uuid: e.uuid() }), Lo = e.void(), Ro = e.object({ uuid: e.uuid() }), zo = e.object({
2944
- pagination: g.optional(),
2945
- filter: li.optional()
2946
- }), Bo = hi;
2947
- e.object({ token: e.string() });
2948
- var Vo = Ci, Ho = Ti, Uo = e.void(), Wo = (t) => (t?.client ?? m).get({
2980
+ }), jo = oi, Mo = e.object({
2981
+ filter: si.optional(),
2982
+ search: e.string().optional()
2983
+ }), No = ci, Po = li, Fo = e.object({ uuid: e.uuid() }), Io = e.void(), Lo = ui, Ro = e.object({ uuid: e.uuid() }), zo = e.void(), Bo = e.object({ uuid: e.uuid() }), Vo = e.void(), Ho = e.object({ uuid: e.uuid() }), Uo = e.object({
2984
+ pagination: h.optional(),
2985
+ filter: di.optional()
2986
+ }), Wo = _i, Go = e.object({ token: e.string() }), Ko = Ci, qo = Ei, Jo = Oi, Yo = e.void(), Xo = (t) => (t?.client ?? p).get({
2949
2987
  requestValidator: async (t) => await e.object({
2950
2988
  body: e.never().optional(),
2951
2989
  path: e.never().optional(),
2952
- query: Ei.optional()
2990
+ query: ki.optional()
2953
2991
  }).parseAsync(t),
2954
- responseValidator: async (e) => await Di.parseAsync(e),
2992
+ responseValidator: async (e) => await Ai.parseAsync(e),
2955
2993
  url: "/api/v1/users",
2956
2994
  ...t
2957
- }), Go = (t) => (t.client ?? m).post({
2995
+ }), Zo = (t) => (t.client ?? p).post({
2958
2996
  requestValidator: async (t) => await e.object({
2959
- body: Oi,
2997
+ body: ji,
2960
2998
  path: e.never().optional(),
2961
2999
  query: e.never().optional()
2962
3000
  }).parseAsync(t),
2963
- responseValidator: async (e) => await ki.parseAsync(e),
3001
+ responseValidator: async (e) => await Mi.parseAsync(e),
2964
3002
  url: "/api/v1/files",
2965
3003
  ...t,
2966
3004
  headers: {
2967
3005
  "Content-Type": "application/json",
2968
3006
  ...t.headers
2969
3007
  }
2970
- }), Ko = (t) => (t.client ?? m).post({
3008
+ }), Qo = (t) => (t.client ?? p).post({
2971
3009
  requestValidator: async (t) => await e.object({
2972
- body: Ai,
2973
- path: ji,
3010
+ body: Ni,
3011
+ path: Pi,
2974
3012
  query: e.never().optional()
2975
3013
  }).parseAsync(t),
2976
- responseValidator: async (e) => await Mi.parseAsync(e),
3014
+ responseValidator: async (e) => await Fi.parseAsync(e),
2977
3015
  url: "/api/v2/files/{file}/confirm-upload",
2978
3016
  ...t,
2979
3017
  headers: {
2980
3018
  "Content-Type": "application/json",
2981
3019
  ...t.headers
2982
3020
  }
2983
- }), qo = (t) => (t.client ?? m).post({
3021
+ }), $o = (t) => (t.client ?? p).post({
2984
3022
  requestValidator: async (t) => await e.object({
2985
3023
  body: e.never().optional(),
2986
- path: Ni,
3024
+ path: Ii,
2987
3025
  query: e.never().optional()
2988
3026
  }).parseAsync(t),
2989
3027
  url: "/api/v1/files/{file}/download",
2990
3028
  ...t
2991
- }), Jo = (t) => (t?.client ?? m).get({
3029
+ }), es = (t) => (t?.client ?? p).get({
2992
3030
  requestValidator: async (t) => await e.object({
2993
3031
  body: e.never().optional(),
2994
3032
  path: e.never().optional(),
2995
- query: Pi.optional()
3033
+ query: Li.optional()
2996
3034
  }).parseAsync(t),
2997
- responseValidator: async (e) => await Fi.parseAsync(e),
3035
+ responseValidator: async (e) => await Ri.parseAsync(e),
2998
3036
  url: "/api/v1/customers",
2999
3037
  ...t
3000
- }), Yo = (t) => (t.client ?? m).get({
3038
+ }), ts = (t) => (t.client ?? p).get({
3001
3039
  requestValidator: async (t) => await e.object({
3002
3040
  body: e.never().optional(),
3003
- path: Ii,
3041
+ path: zi,
3004
3042
  query: e.never().optional()
3005
3043
  }).parseAsync(t),
3006
- responseValidator: async (e) => await Li.parseAsync(e),
3044
+ responseValidator: async (e) => await Bi.parseAsync(e),
3007
3045
  url: "/api/v1/customers/{uuid}",
3008
3046
  ...t
3009
- }), Xo = (t) => (t.client ?? m).get({
3047
+ }), ns = (t) => (t.client ?? p).get({
3010
3048
  requestValidator: async (t) => await e.object({
3011
3049
  body: e.never().optional(),
3012
- path: Ri,
3013
- query: zi.optional()
3050
+ path: Vi,
3051
+ query: Hi.optional()
3014
3052
  }).parseAsync(t),
3015
- responseValidator: async (e) => await Bi.parseAsync(e),
3053
+ responseValidator: async (e) => await Ui.parseAsync(e),
3016
3054
  url: "/api/v1/customers/{uuid}/recipients",
3017
3055
  ...t
3018
- }), Zo = (t) => (t?.client ?? m).get({
3056
+ }), rs = (t) => (t?.client ?? p).get({
3019
3057
  requestValidator: async (t) => await e.object({
3020
3058
  body: e.never().optional(),
3021
3059
  path: e.never().optional(),
3022
3060
  query: e.never().optional()
3023
3061
  }).parseAsync(t),
3024
- responseValidator: async (e) => await Vi.parseAsync(e),
3062
+ responseValidator: async (e) => await Wi.parseAsync(e),
3025
3063
  url: "/api/v1/issuers",
3026
3064
  ...t
3027
- }), Qo = (t) => (t.client ?? m).put({
3065
+ }), is = (t) => (t.client ?? p).put({
3028
3066
  requestValidator: async (t) => await e.object({
3029
- body: Hi,
3067
+ body: Gi,
3030
3068
  path: e.never().optional(),
3031
3069
  query: e.never().optional()
3032
3070
  }).parseAsync(t),
3033
- responseValidator: async (e) => await Ui.parseAsync(e),
3071
+ responseValidator: async (e) => await Ki.parseAsync(e),
3034
3072
  url: "/api/v1/issuers",
3035
3073
  ...t,
3036
3074
  headers: {
3037
3075
  "Content-Type": "application/json",
3038
3076
  ...t.headers
3039
3077
  }
3040
- }), $o = (t) => (t.client ?? m).get({
3078
+ }), as = (t) => (t.client ?? p).get({
3041
3079
  requestValidator: async (t) => await e.object({
3042
3080
  body: e.never().optional(),
3043
3081
  path: e.never().optional(),
3044
- query: Wi
3082
+ query: qi
3045
3083
  }).parseAsync(t),
3046
- responseValidator: async (e) => await Gi.parseAsync(e),
3084
+ responseValidator: async (e) => await Ji.parseAsync(e),
3047
3085
  url: "/api/v1/public/invoices",
3048
3086
  ...t
3049
- }), es = (t) => (t?.client ?? m).get({
3087
+ }), os = (t) => (t?.client ?? p).get({
3050
3088
  requestValidator: async (t) => await e.object({
3051
3089
  body: e.never().optional(),
3052
3090
  path: e.never().optional(),
3053
- query: Ki.optional()
3091
+ query: Yi.optional()
3054
3092
  }).parseAsync(t),
3055
- responseValidator: async (e) => await qi.parseAsync(e),
3093
+ responseValidator: async (e) => await Xi.parseAsync(e),
3056
3094
  url: "/api/v1/invoices",
3057
3095
  ...t
3058
- }), ts = (t) => (t.client ?? m).post({
3096
+ }), ss = (t) => (t.client ?? p).post({
3059
3097
  requestValidator: async (t) => await e.object({
3060
- body: Ji,
3098
+ body: Zi,
3061
3099
  path: e.never().optional(),
3062
3100
  query: e.never().optional()
3063
3101
  }).parseAsync(t),
3064
- responseValidator: async (e) => await Yi.parseAsync(e),
3102
+ responseValidator: async (e) => await Qi.parseAsync(e),
3065
3103
  url: "/api/v1/invoices",
3066
3104
  ...t,
3067
3105
  headers: {
3068
3106
  "Content-Type": "application/json",
3069
3107
  ...t.headers
3070
3108
  }
3071
- }), ns = (t) => (t.client ?? m).delete({
3109
+ }), cs = (t) => (t.client ?? p).delete({
3072
3110
  requestValidator: async (t) => await e.object({
3073
3111
  body: e.never().optional(),
3074
- path: Xi,
3112
+ path: $i,
3075
3113
  query: e.never().optional()
3076
3114
  }).parseAsync(t),
3077
- responseValidator: async (e) => await Zi.parseAsync(e),
3115
+ responseValidator: async (e) => await ea.parseAsync(e),
3078
3116
  url: "/api/v1/invoices/{uuid}",
3079
3117
  ...t
3080
- }), rs = (t) => (t.client ?? m).get({
3118
+ }), ls = (t) => (t.client ?? p).get({
3081
3119
  requestValidator: async (t) => await e.object({
3082
3120
  body: e.never().optional(),
3083
- path: Qi,
3121
+ path: ta,
3084
3122
  query: e.never().optional()
3085
3123
  }).parseAsync(t),
3086
- responseValidator: async (e) => await $i.parseAsync(e),
3124
+ responseValidator: async (e) => await na.parseAsync(e),
3087
3125
  url: "/api/v1/invoices/{uuid}",
3088
3126
  ...t
3089
- }), is = (t) => (t.client ?? m).patch({
3127
+ }), us = (t) => (t.client ?? p).patch({
3090
3128
  requestValidator: async (t) => await e.object({
3091
- body: ea,
3092
- path: ta,
3129
+ body: ra,
3130
+ path: ia,
3093
3131
  query: e.never().optional()
3094
3132
  }).parseAsync(t),
3095
- responseValidator: async (e) => await na.parseAsync(e),
3133
+ responseValidator: async (e) => await aa.parseAsync(e),
3096
3134
  url: "/api/v1/invoices/{uuid}",
3097
3135
  ...t,
3098
3136
  headers: {
3099
3137
  "Content-Type": "application/json",
3100
3138
  ...t.headers
3101
3139
  }
3102
- }), as = (t) => (t.client ?? m).patch({
3140
+ }), ds = (t) => (t.client ?? p).patch({
3103
3141
  requestValidator: async (t) => await e.object({
3104
- body: ra,
3105
- path: ia,
3142
+ body: oa,
3143
+ path: sa,
3106
3144
  query: e.never().optional()
3107
3145
  }).parseAsync(t),
3108
- responseValidator: async (e) => await aa.parseAsync(e),
3146
+ responseValidator: async (e) => await ca.parseAsync(e),
3109
3147
  url: "/api/v1/invoices/{uuid}/lines",
3110
3148
  ...t,
3111
3149
  headers: {
3112
3150
  "Content-Type": "application/json",
3113
3151
  ...t.headers
3114
3152
  }
3115
- }), os = (t) => (t.client ?? m).patch({
3153
+ }), fs = (t) => (t.client ?? p).patch({
3116
3154
  requestValidator: async (t) => await e.object({
3117
- body: oa,
3118
- path: sa,
3155
+ body: la,
3156
+ path: ua,
3119
3157
  query: e.never().optional()
3120
3158
  }).parseAsync(t),
3121
- responseValidator: async (e) => await ca.parseAsync(e),
3159
+ responseValidator: async (e) => await da.parseAsync(e),
3122
3160
  url: "/api/v2/invoices/{uuid}/discount",
3123
3161
  ...t,
3124
3162
  headers: {
3125
3163
  "Content-Type": "application/json",
3126
3164
  ...t.headers
3127
3165
  }
3128
- }), ss = (t) => (t.client ?? m).patch({
3166
+ }), ps = (t) => (t.client ?? p).patch({
3129
3167
  requestValidator: async (t) => await e.object({
3130
- body: la,
3131
- path: ua,
3168
+ body: fa,
3169
+ path: pa,
3132
3170
  query: e.never().optional()
3133
3171
  }).parseAsync(t),
3134
- responseValidator: async (e) => await da.parseAsync(e),
3172
+ responseValidator: async (e) => await ma.parseAsync(e),
3135
3173
  url: "/api/v1/invoices/{uuid}/attachments",
3136
3174
  ...t,
3137
3175
  headers: {
3138
3176
  "Content-Type": "application/json",
3139
3177
  ...t.headers
3140
3178
  }
3141
- }), cs = (t) => (t.client ?? m).post({
3179
+ }), ms = (t) => (t.client ?? p).post({
3142
3180
  requestValidator: async (t) => await e.object({
3143
3181
  body: e.never().optional(),
3144
- path: fa,
3182
+ path: ha,
3145
3183
  query: e.never().optional()
3146
3184
  }).parseAsync(t),
3147
3185
  url: "/api/v1/invoices/{uuid}/finalize",
3148
3186
  ...t
3149
- }), ls = (t) => (t.client ?? m).post({
3187
+ }), hs = (t) => (t.client ?? p).post({
3150
3188
  requestValidator: async (t) => await e.object({
3151
3189
  body: e.never().optional(),
3152
- path: pa,
3190
+ path: ga,
3153
3191
  query: e.never().optional()
3154
3192
  }).parseAsync(t),
3155
- responseValidator: async (e) => await ma.parseAsync(e),
3193
+ responseValidator: async (e) => await _a.parseAsync(e),
3156
3194
  url: "/api/v1/invoices/{uuid}/credit-note",
3157
3195
  ...t
3158
- }), us = (t) => (t.client ?? m).patch({
3196
+ }), gs = (t) => (t.client ?? p).patch({
3159
3197
  requestValidator: async (t) => await e.object({
3160
- body: ha,
3161
- path: ga,
3198
+ body: va,
3199
+ path: ya,
3162
3200
  query: e.never().optional()
3163
3201
  }).parseAsync(t),
3164
- responseValidator: async (e) => await _a.parseAsync(e),
3202
+ responseValidator: async (e) => await ba.parseAsync(e),
3165
3203
  url: "/api/v1/credit-notes/{uuid}/lines",
3166
3204
  ...t,
3167
3205
  headers: {
3168
3206
  "Content-Type": "application/json",
3169
3207
  ...t.headers
3170
3208
  }
3171
- }), ds = (t) => (t.client ?? m).patch({
3209
+ }), _s = (t) => (t.client ?? p).patch({
3172
3210
  requestValidator: async (t) => await e.object({
3173
- body: va,
3174
- path: ya,
3211
+ body: xa,
3212
+ path: Sa,
3175
3213
  query: e.never().optional()
3176
3214
  }).parseAsync(t),
3177
- responseValidator: async (e) => await ba.parseAsync(e),
3215
+ responseValidator: async (e) => await Ca.parseAsync(e),
3178
3216
  url: "/api/v1/credit-notes/{uuid}",
3179
3217
  ...t,
3180
3218
  headers: {
3181
3219
  "Content-Type": "application/json",
3182
3220
  ...t.headers
3183
3221
  }
3184
- }), fs = (t) => (t.client ?? m).post({
3222
+ }), vs = (t) => (t.client ?? p).post({
3185
3223
  requestValidator: async (t) => await e.object({
3186
3224
  body: e.never().optional(),
3187
- path: xa,
3225
+ path: wa,
3188
3226
  query: e.never().optional()
3189
3227
  }).parseAsync(t),
3190
3228
  url: "/api/v1/credit-notes/{uuid}/finalize",
3191
3229
  ...t
3192
- }), ps = (t) => (t.client ?? m).post({
3230
+ }), ys = (t) => (t.client ?? p).post({
3193
3231
  requestValidator: async (t) => await e.object({
3194
3232
  body: e.never().optional(),
3195
- path: Sa,
3233
+ path: Ta,
3196
3234
  query: e.never().optional()
3197
3235
  }).parseAsync(t),
3198
3236
  url: "/api/v1/invoices/{uuid}/send-email",
3199
3237
  ...t
3200
- }), ms = (t) => (t?.client ?? m).post({
3238
+ }), bs = (t) => (t?.client ?? p).post({
3201
3239
  requestValidator: async (t) => await e.object({
3202
3240
  body: e.never().optional(),
3203
3241
  path: e.never().optional(),
3204
- query: Ca.optional()
3242
+ query: Ea.optional()
3205
3243
  }).parseAsync(t),
3206
- responseValidator: async (e) => await wa.parseAsync(e),
3244
+ responseValidator: async (e) => await Da.parseAsync(e),
3207
3245
  url: "/api/v1/invoices/send-mail",
3208
3246
  ...t
3209
- }), hs = (t) => (t?.client ?? m).get({
3247
+ }), xs = (t) => (t?.client ?? p).get({
3210
3248
  requestValidator: async (t) => await e.object({
3211
3249
  body: e.never().optional(),
3212
3250
  path: e.never().optional(),
3213
- query: Ta.optional()
3251
+ query: Oa.optional()
3214
3252
  }).parseAsync(t),
3215
- responseValidator: async (e) => await Ea.parseAsync(e),
3253
+ responseValidator: async (e) => await ka.parseAsync(e),
3216
3254
  url: "/api/v1/invoices/send-mail/preview",
3217
3255
  ...t
3218
- }), gs = (t) => (t.client ?? m).post({
3256
+ }), Ss = (t) => (t.client ?? p).post({
3219
3257
  requestValidator: async (t) => await e.object({
3220
3258
  body: e.never().optional(),
3221
- path: Da,
3259
+ path: Aa,
3222
3260
  query: e.never().optional()
3223
3261
  }).parseAsync(t),
3224
- responseValidator: async (e) => await Oa.parseAsync(e),
3262
+ responseValidator: async (e) => await ja.parseAsync(e),
3225
3263
  url: "/api/v1/invoices/{uuid}/mark-as-ready",
3226
3264
  ...t
3227
- }), _s = (t) => (t.client ?? m).post({
3265
+ }), Cs = (t) => (t.client ?? p).post({
3228
3266
  requestValidator: async (t) => await e.object({
3229
3267
  body: e.never().optional(),
3230
- path: ka,
3268
+ path: Ma,
3231
3269
  query: e.never().optional()
3232
3270
  }).parseAsync(t),
3233
- responseValidator: async (e) => await Aa.parseAsync(e),
3271
+ responseValidator: async (e) => await Na.parseAsync(e),
3234
3272
  url: "/api/v1/invoices/{uuid}/duplicate",
3235
3273
  ...t
3236
- }), vs = (t) => (t.client ?? m).post({
3274
+ }), ws = (t) => (t.client ?? p).post({
3237
3275
  requestValidator: async (t) => await e.object({
3238
3276
  body: e.never().optional(),
3239
- path: ja,
3277
+ path: Pa,
3240
3278
  query: e.never().optional()
3241
3279
  }).parseAsync(t),
3242
- responseValidator: async (e) => await Ma.parseAsync(e),
3280
+ responseValidator: async (e) => await Fa.parseAsync(e),
3243
3281
  url: "/api/v1/invoices/{uuid}/mark-as-draft",
3244
3282
  ...t
3245
- }), ys = (t) => (t.client ?? m).post({
3283
+ }), Ts = (t) => (t.client ?? p).post({
3246
3284
  requestValidator: async (t) => await e.object({
3247
3285
  body: e.never().optional(),
3248
- path: Na,
3286
+ path: Ia,
3249
3287
  query: e.never().optional()
3250
3288
  }).parseAsync(t),
3251
- responseValidator: async (e) => await Pa.parseAsync(e),
3289
+ responseValidator: async (e) => await La.parseAsync(e),
3252
3290
  url: "/api/v1/invoices/{uuid}/mark-as-prior-approval-required",
3253
3291
  ...t
3254
- }), bs = (t) => (t.client ?? m).post({
3292
+ }), Es = (t) => (t.client ?? p).post({
3255
3293
  requestValidator: async (t) => await e.object({
3256
3294
  body: e.never().optional(),
3257
- path: Fa,
3295
+ path: Ra,
3258
3296
  query: e.never().optional()
3259
3297
  }).parseAsync(t),
3260
- responseValidator: async (e) => await Ia.parseAsync(e),
3298
+ responseValidator: async (e) => await za.parseAsync(e),
3261
3299
  url: "/api/v1/invoices/{uuid}/unmark-as-prior-approval-required",
3262
3300
  ...t
3263
- }), xs = (t) => (t.client ?? m).post({
3301
+ }), Ds = (t) => (t.client ?? p).post({
3264
3302
  requestValidator: async (t) => await e.object({
3265
3303
  body: e.never().optional(),
3266
- path: La,
3304
+ path: Ba,
3267
3305
  query: e.never().optional()
3268
3306
  }).parseAsync(t),
3269
- responseValidator: async (e) => await Ra.parseAsync(e),
3307
+ responseValidator: async (e) => await Va.parseAsync(e),
3270
3308
  url: "/api/v1/invoices/{uuid}/mark-as-disputed",
3271
3309
  ...t
3272
- }), Ss = (t) => (t.client ?? m).post({
3310
+ }), Os = (t) => (t.client ?? p).post({
3273
3311
  requestValidator: async (t) => await e.object({
3274
3312
  body: e.never().optional(),
3275
- path: za,
3313
+ path: Ha,
3276
3314
  query: e.never().optional()
3277
3315
  }).parseAsync(t),
3278
- responseValidator: async (e) => await Ba.parseAsync(e),
3316
+ responseValidator: async (e) => await Ua.parseAsync(e),
3279
3317
  url: "/api/v1/invoices/{uuid}/mark-as-paid",
3280
3318
  ...t
3281
- }), Cs = (t) => (t?.client ?? m).get({
3319
+ }), ks = (t) => (t?.client ?? p).get({
3282
3320
  requestValidator: async (t) => await e.object({
3283
3321
  body: e.never().optional(),
3284
3322
  path: e.never().optional(),
3285
- query: Va.optional()
3323
+ query: Wa.optional()
3286
3324
  }).parseAsync(t),
3287
- responseValidator: async (e) => await Ha.parseAsync(e),
3325
+ responseValidator: async (e) => await Ga.parseAsync(e),
3288
3326
  url: "/api/v1/invoices/mark-as-ready/preview",
3289
3327
  ...t
3290
- }), ws = (t) => (t?.client ?? m).post({
3328
+ }), As = (t) => (t?.client ?? p).post({
3291
3329
  requestValidator: async (t) => await e.object({
3292
3330
  body: e.never().optional(),
3293
3331
  path: e.never().optional(),
3294
- query: Ua.optional()
3332
+ query: Ka.optional()
3295
3333
  }).parseAsync(t),
3296
- responseValidator: async (e) => await Wa.parseAsync(e),
3334
+ responseValidator: async (e) => await qa.parseAsync(e),
3297
3335
  url: "/api/v1/invoices/mark-as-ready",
3298
3336
  ...t
3299
- }), Ts = (t) => (t.client ?? m).post({
3337
+ }), js = (t) => (t.client ?? p).post({
3300
3338
  requestValidator: async (t) => await e.object({
3301
3339
  body: e.never().optional(),
3302
- path: Ga,
3340
+ path: Ja,
3303
3341
  query: e.never().optional()
3304
3342
  }).parseAsync(t),
3305
- responseValidator: async (e) => await Ka.parseAsync(e),
3343
+ responseValidator: async (e) => await Ya.parseAsync(e),
3306
3344
  url: "/api/v1/invoices/{uuid}/withdraw-disputed",
3307
3345
  ...t
3308
- }), Es = (t) => (t?.client ?? m).get({
3346
+ }), Ms = (t) => (t?.client ?? p).get({
3309
3347
  requestValidator: async (t) => await e.object({
3310
3348
  body: e.never().optional(),
3311
3349
  path: e.never().optional(),
3312
- query: qa.optional()
3350
+ query: Xa.optional()
3313
3351
  }).parseAsync(t),
3314
- responseValidator: async (e) => await Ja.parseAsync(e),
3352
+ responseValidator: async (e) => await Za.parseAsync(e),
3315
3353
  url: "/api/v1/invoices/finalize/preview",
3316
3354
  ...t
3317
- }), Ds = (t) => (t?.client ?? m).post({
3355
+ }), Ns = (t) => (t?.client ?? p).post({
3318
3356
  requestValidator: async (t) => await e.object({
3319
3357
  body: e.never().optional(),
3320
3358
  path: e.never().optional(),
3321
- query: Ya.optional()
3359
+ query: Qa.optional()
3322
3360
  }).parseAsync(t),
3323
- responseValidator: async (e) => await Xa.parseAsync(e),
3361
+ responseValidator: async (e) => await $a.parseAsync(e),
3324
3362
  url: "/api/v1/invoices/finalize",
3325
3363
  ...t
3326
- }), Os = (t) => (t.client ?? m).post({
3364
+ }), Ps = (t) => (t.client ?? p).post({
3327
3365
  requestValidator: async (t) => await e.object({
3328
3366
  body: e.never().optional(),
3329
- path: Za,
3367
+ path: eo,
3330
3368
  query: e.never().optional()
3331
3369
  }).parseAsync(t),
3332
- responseValidator: async (e) => await Qa.parseAsync(e),
3370
+ responseValidator: async (e) => await to.parseAsync(e),
3333
3371
  url: "/api/v1/invoices/{uuid}/restore-from-pro-forma",
3334
3372
  ...t
3335
- }), ks = (t) => (t?.client ?? m).get({
3373
+ }), Fs = (t) => (t?.client ?? p).get({
3336
3374
  requestValidator: async (t) => await e.object({
3337
3375
  body: e.never().optional(),
3338
3376
  path: e.never().optional(),
3339
- query: $a.optional()
3377
+ query: no.optional()
3340
3378
  }).parseAsync(t),
3341
- responseValidator: async (e) => await eo.parseAsync(e),
3379
+ responseValidator: async (e) => await ro.parseAsync(e),
3342
3380
  url: "/api/v1/activity-logs",
3343
3381
  ...t
3344
- }), As = (t) => (t.client ?? m).get({
3382
+ }), Is = (t) => (t.client ?? p).get({
3345
3383
  requestValidator: async (t) => await e.object({
3346
3384
  body: e.never().optional(),
3347
- path: to,
3385
+ path: io,
3348
3386
  query: e.never().optional()
3349
3387
  }).parseAsync(t),
3350
- responseValidator: async (e) => await no.parseAsync(e),
3388
+ responseValidator: async (e) => await ao.parseAsync(e),
3351
3389
  url: "/api/v1/invoices/{uuid}/payments",
3352
3390
  ...t
3353
- }), js = (t) => (t.client ?? m).post({
3391
+ }), Ls = (t) => (t.client ?? p).post({
3354
3392
  requestValidator: async (t) => await e.object({
3355
- body: ro,
3356
- path: io,
3393
+ body: oo,
3394
+ path: so,
3357
3395
  query: e.never().optional()
3358
3396
  }).parseAsync(t),
3359
- responseValidator: async (e) => await ao.parseAsync(e),
3397
+ responseValidator: async (e) => await co.parseAsync(e),
3360
3398
  url: "/api/v1/invoices/{uuid}/payments",
3361
3399
  ...t,
3362
3400
  headers: {
3363
3401
  "Content-Type": "application/json",
3364
3402
  ...t.headers
3365
3403
  }
3366
- }), Ms = (t) => (t.client ?? m).delete({
3404
+ }), Rs = (t) => (t.client ?? p).delete({
3367
3405
  requestValidator: async (t) => await e.object({
3368
3406
  body: e.never().optional(),
3369
- path: oo,
3407
+ path: lo,
3370
3408
  query: e.never().optional()
3371
3409
  }).parseAsync(t),
3372
- responseValidator: async (e) => await so.parseAsync(e),
3410
+ responseValidator: async (e) => await uo.parseAsync(e),
3373
3411
  url: "/api/v1/invoices/{uuid}/payments/{paymentUuid}",
3374
3412
  ...t
3375
- }), Ns = (t) => (t?.client ?? m).get({
3413
+ }), zs = (t) => (t?.client ?? p).get({
3376
3414
  requestValidator: async (t) => await e.object({
3377
3415
  body: e.never().optional(),
3378
3416
  path: e.never().optional(),
3379
3417
  query: e.never().optional()
3380
3418
  }).parseAsync(t),
3381
- responseValidator: async (e) => await co.parseAsync(e),
3419
+ responseValidator: async (e) => await fo.parseAsync(e),
3382
3420
  url: "/api/v1/issuers/reminder-configs",
3383
3421
  ...t
3384
- }), Ps = (t) => (t.client ?? m).patch({
3422
+ }), Bs = (t) => (t.client ?? p).patch({
3385
3423
  requestValidator: async (t) => await e.object({
3386
- body: lo,
3424
+ body: po,
3387
3425
  path: e.never().optional(),
3388
3426
  query: e.never().optional()
3389
3427
  }).parseAsync(t),
3390
- responseValidator: async (e) => await uo.parseAsync(e),
3428
+ responseValidator: async (e) => await mo.parseAsync(e),
3391
3429
  url: "/api/v1/issuers/reminder-configs",
3392
3430
  ...t,
3393
3431
  headers: {
3394
3432
  "Content-Type": "application/json",
3395
3433
  ...t.headers
3396
3434
  }
3397
- }), Fs = (t) => (t?.client ?? m).get({
3435
+ }), Vs = (t) => (t?.client ?? p).get({
3398
3436
  requestValidator: async (t) => await e.object({
3399
3437
  body: e.never().optional(),
3400
3438
  path: e.never().optional(),
3401
- query: fo.optional()
3439
+ query: ho.optional()
3402
3440
  }).parseAsync(t),
3403
- responseValidator: async (e) => await po.parseAsync(e),
3441
+ responseValidator: async (e) => await go.parseAsync(e),
3404
3442
  url: "/api/v1/custom-field-definitions",
3405
3443
  ...t
3406
- }), Is = (t) => (t.client ?? m).get({
3444
+ }), Hs = (t) => (t.client ?? p).get({
3407
3445
  requestValidator: async (t) => await e.object({
3408
3446
  body: e.never().optional(),
3409
- path: mo,
3447
+ path: _o,
3410
3448
  query: e.never().optional()
3411
3449
  }).parseAsync(t),
3412
- responseValidator: async (e) => await ho.parseAsync(e),
3450
+ responseValidator: async (e) => await vo.parseAsync(e),
3413
3451
  url: "/api/v1/dunning-cases/{uuid}",
3414
3452
  ...t
3415
- }), Ls = (t) => (t?.client ?? m).get({
3453
+ }), Us = (t) => (t?.client ?? p).get({
3416
3454
  requestValidator: async (t) => await e.object({
3417
3455
  body: e.never().optional(),
3418
3456
  path: e.never().optional(),
3419
- query: go.optional()
3457
+ query: yo.optional()
3420
3458
  }).parseAsync(t),
3421
- responseValidator: async (e) => await _o.parseAsync(e),
3459
+ responseValidator: async (e) => await bo.parseAsync(e),
3422
3460
  url: "/api/v1/dunning-cases",
3423
3461
  ...t
3424
- }), Rs = (t) => (t.client ?? m).post({
3462
+ }), Ws = (t) => (t.client ?? p).post({
3425
3463
  requestValidator: async (t) => await e.object({
3426
3464
  body: e.never().optional(),
3427
- path: vo,
3465
+ path: xo,
3428
3466
  query: e.never().optional()
3429
3467
  }).parseAsync(t),
3430
3468
  url: "/api/v1/dunning-cases/{uuid}/send",
3431
3469
  ...t
3432
- }), zs = (t) => (t?.client ?? m).post({
3470
+ }), Gs = (t) => (t.client ?? p).post({
3471
+ requestValidator: async (t) => await e.object({
3472
+ body: e.never().optional(),
3473
+ path: So,
3474
+ query: e.never().optional()
3475
+ }).parseAsync(t),
3476
+ url: "/api/v1/dunning-case-reminders/{uuid}/retry",
3477
+ ...t
3478
+ }), Ks = (t) => (t?.client ?? p).post({
3433
3479
  requestValidator: async (t) => await e.object({
3434
3480
  body: e.never().optional(),
3435
3481
  path: e.never().optional(),
3436
- query: yo.optional()
3482
+ query: Co.optional()
3437
3483
  }).parseAsync(t),
3438
- responseValidator: async (e) => await bo.parseAsync(e),
3484
+ responseValidator: async (e) => await wo.parseAsync(e),
3439
3485
  url: "/api/v1/dunning-cases/send",
3440
3486
  ...t
3441
- }), Bs = (t) => (t?.client ?? m).get({
3487
+ }), qs = (t) => (t?.client ?? p).get({
3442
3488
  requestValidator: async (t) => await e.object({
3443
3489
  body: e.never().optional(),
3444
3490
  path: e.never().optional(),
3445
- query: xo.optional()
3491
+ query: To.optional()
3446
3492
  }).parseAsync(t),
3447
- responseValidator: async (e) => await So.parseAsync(e),
3493
+ responseValidator: async (e) => await Eo.parseAsync(e),
3448
3494
  url: "/api/v1/dunning-cases/send/preview",
3449
3495
  ...t
3450
- }), Vs = (t) => (t.client ?? m).get({
3496
+ }), Js = (t) => (t.client ?? p).get({
3451
3497
  requestValidator: async (t) => await e.object({
3452
3498
  body: e.never().optional(),
3453
3499
  path: e.never().optional(),
3454
- query: Co
3500
+ query: Do
3455
3501
  }).parseAsync(t),
3456
- responseValidator: async (e) => await wo.parseAsync(e),
3502
+ responseValidator: async (e) => await Oo.parseAsync(e),
3457
3503
  url: "/api/v1/public/dunning-case-reminder-invoices",
3458
3504
  ...t
3459
- }), Hs = (t) => (t.client ?? m).post({
3505
+ }), Ys = (t) => (t.client ?? p).post({
3460
3506
  requestValidator: async (t) => await e.object({
3461
3507
  body: e.never().optional(),
3462
- path: To,
3508
+ path: ko,
3463
3509
  query: e.never().optional()
3464
3510
  }).parseAsync(t),
3465
3511
  url: "/api/v1/invoices/{uuid}/send-approval",
3466
3512
  ...t
3467
- }), Us = (t) => (t?.client ?? m).get({
3513
+ }), Xs = (t) => (t?.client ?? p).get({
3468
3514
  requestValidator: async (t) => await e.object({
3469
3515
  body: e.never().optional(),
3470
3516
  path: e.never().optional(),
3471
- query: Eo.optional()
3517
+ query: Ao.optional()
3472
3518
  }).parseAsync(t),
3473
- responseValidator: async (e) => await Do.parseAsync(e),
3519
+ responseValidator: async (e) => await jo.parseAsync(e),
3474
3520
  url: "/api/v1/invoices/send-approval/preview",
3475
3521
  ...t
3476
- }), Ws = (t) => (t?.client ?? m).post({
3522
+ }), Zs = (t) => (t?.client ?? p).post({
3477
3523
  requestValidator: async (t) => await e.object({
3478
3524
  body: e.never().optional(),
3479
3525
  path: e.never().optional(),
3480
- query: Oo.optional()
3526
+ query: Mo.optional()
3481
3527
  }).parseAsync(t),
3482
- responseValidator: async (e) => await ko.parseAsync(e),
3528
+ responseValidator: async (e) => await No.parseAsync(e),
3483
3529
  url: "/api/v1/invoices/send-approval",
3484
3530
  ...t
3485
- }), Gs = (t) => (t.client ?? m).post({
3531
+ }), Qs = (t) => (t.client ?? p).post({
3486
3532
  requestValidator: async (t) => await e.object({
3487
- body: Ao,
3488
- path: jo,
3533
+ body: Po,
3534
+ path: Fo,
3489
3535
  query: e.never().optional()
3490
3536
  }).parseAsync(t),
3491
- responseValidator: async (e) => await Mo.parseAsync(e),
3537
+ responseValidator: async (e) => await Io.parseAsync(e),
3492
3538
  url: "/api/v1/invoice-approvals/{uuid}/approve",
3493
3539
  ...t,
3494
3540
  headers: {
3495
3541
  "Content-Type": "application/json",
3496
3542
  ...t.headers
3497
3543
  }
3498
- }), Ks = (t) => (t.client ?? m).post({
3544
+ }), $s = (t) => (t.client ?? p).post({
3499
3545
  requestValidator: async (t) => await e.object({
3500
- body: No,
3501
- path: Po,
3546
+ body: Lo,
3547
+ path: Ro,
3502
3548
  query: e.never().optional()
3503
3549
  }).parseAsync(t),
3504
- responseValidator: async (e) => await Fo.parseAsync(e),
3550
+ responseValidator: async (e) => await zo.parseAsync(e),
3505
3551
  url: "/api/v1/invoice-approvals/{uuid}/reject",
3506
3552
  ...t,
3507
3553
  headers: {
3508
3554
  "Content-Type": "application/json",
3509
3555
  ...t.headers
3510
3556
  }
3511
- }), qs = (t) => (t.client ?? m).post({
3557
+ }), ec = (t) => (t.client ?? p).post({
3512
3558
  requestValidator: async (t) => await e.object({
3513
3559
  body: e.never().optional(),
3514
- path: Io,
3560
+ path: Bo,
3515
3561
  query: e.never().optional()
3516
3562
  }).parseAsync(t),
3517
- responseValidator: async (e) => await Lo.parseAsync(e),
3563
+ responseValidator: async (e) => await Vo.parseAsync(e),
3518
3564
  url: "/api/v1/invoice-approvals/{uuid}/cancel",
3519
3565
  ...t
3520
- }), Js = (t) => (t.client ?? m).post({
3566
+ }), tc = (t) => (t.client ?? p).post({
3521
3567
  requestValidator: async (t) => await e.object({
3522
3568
  body: e.never().optional(),
3523
- path: Ro,
3569
+ path: Ho,
3524
3570
  query: e.never().optional()
3525
3571
  }).parseAsync(t),
3526
3572
  url: "/api/v1/invoices/{uuid}/restart-approval",
3527
3573
  ...t
3528
- }), Ys = (t) => (t?.client ?? m).get({
3574
+ }), nc = (t) => (t?.client ?? p).get({
3529
3575
  requestValidator: async (t) => await e.object({
3530
3576
  body: e.never().optional(),
3531
3577
  path: e.never().optional(),
3532
- query: zo.optional()
3578
+ query: Uo.optional()
3533
3579
  }).parseAsync(t),
3534
- responseValidator: async (e) => await Bo.parseAsync(e),
3580
+ responseValidator: async (e) => await Wo.parseAsync(e),
3535
3581
  url: "/api/v1/invoice-approvals",
3536
3582
  ...t
3537
- }), Xs = (t) => (t?.client ?? m).get({
3583
+ }), rc = (t) => (t.client ?? p).get({
3584
+ requestValidator: async (t) => await e.object({
3585
+ body: e.never().optional(),
3586
+ path: e.never().optional(),
3587
+ query: Go
3588
+ }).parseAsync(t),
3589
+ responseValidator: async (e) => await Ko.parseAsync(e),
3590
+ url: "/api/v1/public/pro-formas",
3591
+ ...t
3592
+ }), ic = (t) => (t?.client ?? p).get({
3538
3593
  requestValidator: async (t) => await e.object({
3539
3594
  body: e.never().optional(),
3540
3595
  path: e.never().optional(),
3541
3596
  query: e.never().optional()
3542
3597
  }).parseAsync(t),
3543
- responseValidator: async (e) => await Vo.parseAsync(e),
3598
+ responseValidator: async (e) => await qo.parseAsync(e),
3544
3599
  url: "/api/v1/issuers/approval-reminder-configs",
3545
3600
  ...t
3546
- }), Zs = (t) => (t.client ?? m).patch({
3601
+ }), ac = (t) => (t.client ?? p).patch({
3547
3602
  requestValidator: async (t) => await e.object({
3548
- body: Ho,
3603
+ body: Jo,
3549
3604
  path: e.never().optional(),
3550
3605
  query: e.never().optional()
3551
3606
  }).parseAsync(t),
3552
- responseValidator: async (e) => await Uo.parseAsync(e),
3607
+ responseValidator: async (e) => await Yo.parseAsync(e),
3553
3608
  url: "/api/v1/issuers/approval-reminder-configs",
3554
3609
  ...t,
3555
3610
  headers: {
@@ -3559,19 +3614,19 @@ var Vo = Ci, Ho = Ti, Uo = e.void(), Wo = (t) => (t?.client ?? m).get({
3559
3614
  });
3560
3615
  //#endregion
3561
3616
  //#region src/utils/api.util.ts
3562
- function Qs(e) {
3617
+ function oc(e) {
3563
3618
  return typeof e == "object" && !!e && Array.isArray(e.errors);
3564
3619
  }
3565
- function $s(e) {
3566
- return Qs(e) || e instanceof Error ? e : Error(String(e));
3620
+ function sc(e) {
3621
+ return oc(e) || e instanceof Error ? e : Error(String(e));
3567
3622
  }
3568
- var ec = class {
3623
+ var cc = class {
3569
3624
  static async fromPromise(e) {
3570
- return await t.fromPromise(e, $s);
3625
+ return await t.fromPromise(e, sc);
3571
3626
  }
3572
3627
  static void(e) {
3573
3628
  return e.isErr() ? n(e.error) : r();
3574
3629
  }
3575
3630
  };
3576
3631
  //#endregion
3577
- export { Ls as $, hs as A, ds as B, Ss as C, Cs as D, Es as E, Hs as F, Ps as G, as as H, ps as I, Fs as J, ks as K, bs as L, Js as M, Os as N, Bs as O, Rs as P, Is as Q, Zs as R, vs as S, gs as T, is as U, ss as V, Qo as W, Jo as X, Yo as Y, Xo as Z, qo as _, ws as a, Vs as at, cs as b, ms as c, Wo as ct, ls as d, Ys as et, Go as f, Ms as g, ns as h, Ds as i, Zo as it, Ks as j, Us as k, qs as l, Ts as lt, js as m, os as n, es as nt, zs as o, $o as ot, ts as p, Xs as q, Gs as r, As as rt, Ws as s, Ns as st, ec as t, rs as tt, Ko as u, m as ut, _s as v, ys as w, xs as x, fs as y, us as z };
3632
+ export { Hs as $, xs as A, gs as B, Os as C, ks as D, Ms as E, Ws as F, is as G, ps as H, Ys as I, ic as J, Bs as K, ys as L, tc as M, Ps as N, qs as O, Gs as P, ns as Q, Es as R, ws as S, Ss as T, ds as U, _s as V, us as W, ts as X, Vs as Y, es as Z, $o as _, As as a, rs as at, ms as b, bs as c, rc as ct, hs as d, js as dt, Us as et, Zo as f, p as ft, Rs as g, cs as h, Ns as i, Is as it, $s as j, Xs as k, ec as l, zs as lt, Ls as m, fs as n, ls as nt, Ks as o, Js as ot, ss as p, Fs as q, Qs as r, os as rt, Zs as s, as as st, cc as t, nc as tt, Qo as u, Xo as ut, Cs as v, Ts as w, Ds as x, vs as y, ac as z };