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