@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
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Component } from 'vue';
|
|
2
|
+
export declare const invoiceApprovalRoutes: [{
|
|
3
|
+
readonly name: "invoice-approval-module";
|
|
4
|
+
readonly path: "/invoicing/approvals";
|
|
5
|
+
readonly redirect: {
|
|
6
|
+
readonly name: "invoice-approval-overview";
|
|
7
|
+
};
|
|
8
|
+
readonly children: [{
|
|
9
|
+
readonly name: "invoice-approval-overview";
|
|
10
|
+
readonly path: "";
|
|
11
|
+
readonly component: () => Component;
|
|
12
|
+
readonly meta: {
|
|
13
|
+
readonly permission: "invoice-approval.read";
|
|
14
|
+
};
|
|
15
|
+
}];
|
|
16
|
+
}];
|
|
17
|
+
export declare const invoiceApprovalSettingsRoutes: [{
|
|
18
|
+
readonly name: "invoice-approval-settings-module";
|
|
19
|
+
readonly path: "approval-reminders";
|
|
20
|
+
readonly component: () => Component;
|
|
21
|
+
readonly meta: {
|
|
22
|
+
readonly permission: "reminder-config.read";
|
|
23
|
+
};
|
|
24
|
+
}];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { InvoiceApprovalIndex } from '../../../models/invoiceApprovalIndex.model.ts';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
item: InvoiceApprovalIndex;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { InvoiceApprovalIndex } from '../../../models/invoiceApprovalIndex.model.ts';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
item: InvoiceApprovalIndex;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { InvoiceApprovalIndex } from '../../../models/invoiceApprovalIndex.model.ts';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
item: InvoiceApprovalIndex;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
hasCountError: boolean;
|
|
3
|
+
needsAttentionTotal: number | null;
|
|
4
|
+
outOfSyncCount: number | null;
|
|
5
|
+
rejectedCount: number | null;
|
|
6
|
+
reminderCountTotal: number | null;
|
|
7
|
+
reminderOneCount: number | null;
|
|
8
|
+
reminderTwoCount: number | null;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
11
|
+
showOutOfSync: () => any;
|
|
12
|
+
showRejected: () => any;
|
|
13
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
14
|
+
onShowOutOfSync?: (() => any) | undefined;
|
|
15
|
+
onShowRejected?: (() => any) | undefined;
|
|
16
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { InvoiceApprovalIndex } from '../../../models/invoiceApprovalIndex.model.ts';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
item: InvoiceApprovalIndex;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { InvoiceApprovalIndex } from '../../../models/invoiceApprovalIndex.model.ts';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
item: InvoiceApprovalIndex;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { ApiError } from '@wisemen/vue-core-api-utils';
|
|
2
|
+
import { ComputedRef } from 'vue';
|
|
3
|
+
import { CustomerUuid } from '../../../../../models/customer/customerUuid.model.ts';
|
|
4
|
+
import { InvoiceApprovalDisplayStatus } from '../../../../invoice/models/invoice/invoiceApprovalStatus.model.ts';
|
|
5
|
+
import { InvoiceApprovalIndex } from '../../../models/invoiceApprovalIndex.model.ts';
|
|
6
|
+
export type InvoiceApprovalOverviewTab = 'all' | 'awaiting' | 'out-of-sync' | 'rejected' | 'reminder-1' | 'reminder-2';
|
|
7
|
+
export declare const invoiceApprovalOverviewTabFilters: {
|
|
8
|
+
readonly all: {};
|
|
9
|
+
readonly awaiting: {
|
|
10
|
+
readonly approvalStatus: InvoiceApprovalDisplayStatus.AWAITING_APPROVAL;
|
|
11
|
+
};
|
|
12
|
+
readonly 'out-of-sync': {
|
|
13
|
+
readonly hasChangesSinceApprovalSent: true;
|
|
14
|
+
};
|
|
15
|
+
readonly rejected: {
|
|
16
|
+
readonly approvalStatus: InvoiceApprovalDisplayStatus.REJECTED;
|
|
17
|
+
};
|
|
18
|
+
readonly 'reminder-1': {
|
|
19
|
+
readonly approvalStatus: InvoiceApprovalDisplayStatus.R1;
|
|
20
|
+
};
|
|
21
|
+
readonly 'reminder-2': {
|
|
22
|
+
readonly approvalStatus: InvoiceApprovalDisplayStatus.R2;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
interface UseInvoiceApprovalOverviewParams {
|
|
26
|
+
customerUuid: ComputedRef<CustomerUuid | undefined>;
|
|
27
|
+
activeTab: ComputedRef<InvoiceApprovalOverviewTab>;
|
|
28
|
+
}
|
|
29
|
+
export declare function useInvoiceApprovalOverview(params: UseInvoiceApprovalOverviewParams): {
|
|
30
|
+
hasCountError: ComputedRef<boolean>;
|
|
31
|
+
isFetchingNextPage: ComputedRef<boolean>;
|
|
32
|
+
isLoading: ComputedRef<boolean>;
|
|
33
|
+
counts: ComputedRef<Record<"all" | "rejected" | "awaiting" | "outOfSync" | "reminderOne" | "reminderTwo", number | null>>;
|
|
34
|
+
data: ComputedRef<InvoiceApprovalIndex[]>;
|
|
35
|
+
error: ComputedRef<ApiError<string> | null>;
|
|
36
|
+
fetchNextPage: () => Promise<void>;
|
|
37
|
+
needsAttentionTotal: ComputedRef<number | null>;
|
|
38
|
+
refetch: () => Promise<void>;
|
|
39
|
+
reminderCountTotal: ComputedRef<number | null>;
|
|
40
|
+
tabCounts: ComputedRef<Record<InvoiceApprovalOverviewTab, number | null>>;
|
|
41
|
+
};
|
|
42
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Filters } from '@wisemen/vue-core-filters';
|
|
2
|
+
/**
|
|
3
|
+
* Filters for the approvals overview. The tabs already drive status, reminder
|
|
4
|
+
* level and out-of-sync, so customer is the only filter offered here. The index
|
|
5
|
+
* endpoint takes a single customer, so the selection is clamped to one value.
|
|
6
|
+
*/
|
|
7
|
+
export declare function useInvoiceApprovalOverviewFilters(): {
|
|
8
|
+
customerUuid: import('vue').ComputedRef<(string & import('zod').$brand<"CustomerUuid">) | undefined>;
|
|
9
|
+
filters: Filters;
|
|
10
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { UITableColumn } from '@wisemen/vue-core-design-system';
|
|
2
|
+
import { InvoiceApprovalIndex } from '../../../models/invoiceApprovalIndex.model.ts';
|
|
3
|
+
export declare function useInvoiceApprovalOverviewTableColumns(): import('vue').ComputedRef<UITableColumn<InvoiceApprovalIndex, string>[]>;
|
package/dist/modules/invoice-approval/use-cases/overview/views/InvoiceApprovalOverviewView.vue.d.ts
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
package/dist/modules/invoice-approval/use-cases/settings/views/ApprovalReminderSettingsView.vue.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ViewApprovalReminderConfigItemResponse } from '../../../../../client/index.ts';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
reminderConfigs: ViewApprovalReminderConfigItemResponse[];
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -20,4 +20,11 @@ export declare const issuerSettingsRoutes: [{
|
|
|
20
20
|
readonly meta: {
|
|
21
21
|
readonly permission: "reminder-config.read";
|
|
22
22
|
};
|
|
23
|
+
}, {
|
|
24
|
+
readonly name: "invoice-approval-settings-module";
|
|
25
|
+
readonly path: "approval-reminders";
|
|
26
|
+
readonly component: () => Component;
|
|
27
|
+
readonly meta: {
|
|
28
|
+
readonly permission: "reminder-config.read";
|
|
29
|
+
};
|
|
23
30
|
}];
|
|
@@ -1,6 +1,19 @@
|
|
|
1
1
|
import { Temporal as e } from "temporal-polyfill";
|
|
2
|
-
//#region src/utils/
|
|
3
|
-
var t = class
|
|
2
|
+
//#region src/utils/instant.transformer.ts
|
|
3
|
+
var t = class {
|
|
4
|
+
static fromDto(t) {
|
|
5
|
+
return e.Instant.from(t);
|
|
6
|
+
}
|
|
7
|
+
static fromNullableDto(e) {
|
|
8
|
+
return e === null ? null : this.fromDto(e);
|
|
9
|
+
}
|
|
10
|
+
static toDto(e) {
|
|
11
|
+
return e.toString();
|
|
12
|
+
}
|
|
13
|
+
static toNullableDto(e) {
|
|
14
|
+
return e === null ? null : this.toDto(e);
|
|
15
|
+
}
|
|
16
|
+
}, n = class e {
|
|
4
17
|
static fromDto(e) {
|
|
5
18
|
return {
|
|
6
19
|
amount: e.amount,
|
|
@@ -21,7 +34,7 @@ var t = class e {
|
|
|
21
34
|
static toNullableDto(t) {
|
|
22
35
|
return t === null ? null : e.toDto(t);
|
|
23
36
|
}
|
|
24
|
-
},
|
|
37
|
+
}, r = class {
|
|
25
38
|
static fromDto(t) {
|
|
26
39
|
return e.PlainDate.from(t);
|
|
27
40
|
}
|
|
@@ -36,4 +49,4 @@ var t = class e {
|
|
|
36
49
|
}
|
|
37
50
|
};
|
|
38
51
|
//#endregion
|
|
39
|
-
export { t as
|
|
52
|
+
export { n, t as r, r as t };
|
|
@@ -0,0 +1,309 @@
|
|
|
1
|
+
import { $ as e, G as t, O as n, P as r, Q as i, o as a, st as o, t as s } from "./api.util-C_kMGlJN.js";
|
|
2
|
+
import { C as c, m as l, p as u, s as d } from "./documentTitle.composable-DsBbzhXN.js";
|
|
3
|
+
import { n as f, t as p } from "./useCurrencyFormat.composable-MtZaqKnO.js";
|
|
4
|
+
import { n as m, r as h, t as g } from "./plainDate.transformer-Bhiz9jW7.js";
|
|
5
|
+
import { n as _, t as v } from "./percentage.util-Bl78kSSk.js";
|
|
6
|
+
import { Fragment as y, computed as b, createElementBlock as x, createElementVNode as S, defineComponent as C, normalizeClass as w, openBlock as T, renderList as E } from "vue";
|
|
7
|
+
import { useQuery as D } from "@wisemen/vue-core-api-utils";
|
|
8
|
+
//#region src/utils/html.util.ts
|
|
9
|
+
var O = /* @__PURE__ */ new Set(/* @__PURE__ */ "address.article.aside.blockquote.div.dl.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.header.hr.li.main.nav.ol.p.pre.section.table.tbody.td.tfoot.th.thead.tr.ul".split("."));
|
|
10
|
+
function k(e) {
|
|
11
|
+
return e.nodeType === 3;
|
|
12
|
+
}
|
|
13
|
+
function A(e) {
|
|
14
|
+
return e.nodeType === 1;
|
|
15
|
+
}
|
|
16
|
+
function j(e) {
|
|
17
|
+
let t = e;
|
|
18
|
+
for (; t.startsWith("\n\n");) t = t.slice(2);
|
|
19
|
+
for (; t.endsWith("\n\n");) t = t.slice(0, -2);
|
|
20
|
+
return t;
|
|
21
|
+
}
|
|
22
|
+
function M(e) {
|
|
23
|
+
let t = "";
|
|
24
|
+
function n(e) {
|
|
25
|
+
t += e.replaceAll("\xA0", " ");
|
|
26
|
+
}
|
|
27
|
+
function r(e) {
|
|
28
|
+
if (k(e)) {
|
|
29
|
+
n(e.data);
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
if (!A(e)) return;
|
|
33
|
+
let i = e.tagName.toLowerCase();
|
|
34
|
+
if (i === "script" || i === "style") return;
|
|
35
|
+
if (i === "br") {
|
|
36
|
+
n("\n");
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
let a = O.has(i);
|
|
40
|
+
a && t.length > 0 && !t.endsWith("\n") && n("\n\n");
|
|
41
|
+
for (let t of e.childNodes) r(t);
|
|
42
|
+
a && t.length > 0 && !t.endsWith("\n") && n("\n\n");
|
|
43
|
+
}
|
|
44
|
+
for (let t of e) r(t);
|
|
45
|
+
return t;
|
|
46
|
+
}
|
|
47
|
+
function N(e) {
|
|
48
|
+
return e.replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replaceAll("\"", """).replaceAll("'", "'");
|
|
49
|
+
}
|
|
50
|
+
var P = class {
|
|
51
|
+
static fromPlainText(e) {
|
|
52
|
+
return `<p>${e.split("\n").map((e) => N(e)).join("<br>")}</p>`;
|
|
53
|
+
}
|
|
54
|
+
static toPlainText(e) {
|
|
55
|
+
return j(M(new DOMParser().parseFromString(e, "text/html").body.childNodes));
|
|
56
|
+
}
|
|
57
|
+
}, F = [
|
|
58
|
+
"en-US",
|
|
59
|
+
"nl-BE",
|
|
60
|
+
"fr-BE"
|
|
61
|
+
], I = [
|
|
62
|
+
1,
|
|
63
|
+
2,
|
|
64
|
+
3
|
|
65
|
+
];
|
|
66
|
+
function L(e) {
|
|
67
|
+
return e === null || e === "infinity" || e === "-infinity";
|
|
68
|
+
}
|
|
69
|
+
function R(e) {
|
|
70
|
+
return L(e) ? null : h.fromDto(e);
|
|
71
|
+
}
|
|
72
|
+
function z(e) {
|
|
73
|
+
return L(e) ? null : g.fromDto(e);
|
|
74
|
+
}
|
|
75
|
+
function B(e, t) {
|
|
76
|
+
return e.items.find((e) => e.locale === t)?.value ?? "";
|
|
77
|
+
}
|
|
78
|
+
function V() {
|
|
79
|
+
return {
|
|
80
|
+
"en-US": {
|
|
81
|
+
body: "",
|
|
82
|
+
subject: ""
|
|
83
|
+
},
|
|
84
|
+
"fr-BE": {
|
|
85
|
+
body: "",
|
|
86
|
+
subject: ""
|
|
87
|
+
},
|
|
88
|
+
"nl-BE": {
|
|
89
|
+
body: "",
|
|
90
|
+
subject: ""
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
function H(e, t, n) {
|
|
95
|
+
let r = t?.fee.amount ?? null;
|
|
96
|
+
return {
|
|
97
|
+
feeAmount: r === null ? 0 : p(r.amount, r.precision),
|
|
98
|
+
feeCurrency: r?.currency ?? n.currency,
|
|
99
|
+
feePercentage: t?.fee.percentage?.value ?? 0,
|
|
100
|
+
feePrecision: r?.precision ?? n.precision,
|
|
101
|
+
feeType: t?.fee.type ?? u.AMOUNT,
|
|
102
|
+
offsetDays: t?.offsetDays ?? e,
|
|
103
|
+
schedule: t?.schedule ?? c.AFTER_DUE_DATE,
|
|
104
|
+
sequence: e,
|
|
105
|
+
template: t?.template ?? V()
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
function U(e, t) {
|
|
109
|
+
return {
|
|
110
|
+
body: P.toPlainText(B(e.body, t)),
|
|
111
|
+
subject: B(e.subject, t)
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
function W(e, t) {
|
|
115
|
+
return { items: F.map((n) => ({
|
|
116
|
+
locale: n,
|
|
117
|
+
value: t === "body" ? P.fromPlainText(e[n][t]) : e[n][t]
|
|
118
|
+
})) };
|
|
119
|
+
}
|
|
120
|
+
var G = class e {
|
|
121
|
+
static fromDetailDto(t) {
|
|
122
|
+
return {
|
|
123
|
+
uuid: t.uuid,
|
|
124
|
+
closedAt: h.fromNullableDto(t.closedAt),
|
|
125
|
+
createdAt: h.fromDto(t.createdAt),
|
|
126
|
+
lastReminderSentAt: R(t.lastReminderSentAt),
|
|
127
|
+
nextReminderOn: g.fromNullableDto(t.nextReminderOn),
|
|
128
|
+
updatedAt: h.fromDto(t.updatedAt),
|
|
129
|
+
blockedReason: t.blockedReason,
|
|
130
|
+
canSendReminder: t.canSendReminder,
|
|
131
|
+
customer: t.customer,
|
|
132
|
+
invoices: t.invoices.map(e.fromInvoiceDto),
|
|
133
|
+
latestCreatedReminder: e.fromReminderDto(t.latestCreatedReminder),
|
|
134
|
+
level: t.level ?? 0,
|
|
135
|
+
outstandingBalance: m.fromDto(t.outstandingBalance),
|
|
136
|
+
totalCredited: m.fromDto(t.totalCredited),
|
|
137
|
+
totalFee: m.fromDto(t.totalFee),
|
|
138
|
+
totalInvoiced: m.fromDto(t.totalInvoiced),
|
|
139
|
+
totalPaid: m.fromDto(t.totalPaid)
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
static fromIndexDto(t) {
|
|
143
|
+
return {
|
|
144
|
+
uuid: t.uuid,
|
|
145
|
+
lastReminderSentAt: R(t.lastReminderSentAt),
|
|
146
|
+
nextReminderOn: z(t.nextReminderOn),
|
|
147
|
+
blockedReason: t.blockedReason,
|
|
148
|
+
canSendReminder: t.canSendReminder,
|
|
149
|
+
customer: t.customer,
|
|
150
|
+
daysOverdue: t.daysOverdue,
|
|
151
|
+
latestCreatedReminder: e.fromReminderDto(t.latestCreatedReminder),
|
|
152
|
+
level: t.level,
|
|
153
|
+
outstandingBalance: m.fromDto(t.outstandingBalance)
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
static fromInvoiceDto(e) {
|
|
157
|
+
return {
|
|
158
|
+
uuid: e.uuid,
|
|
159
|
+
dueOn: g.fromDto(e.dueOn),
|
|
160
|
+
isDisputed: e.isDisputed,
|
|
161
|
+
balanceDueAmount: m.fromDto(e.balanceDueAmount),
|
|
162
|
+
creditNotes: e.creditNotes.map((e) => ({
|
|
163
|
+
uuid: e.uuid,
|
|
164
|
+
finalizedOn: g.fromDto(e.finalizedOn),
|
|
165
|
+
grossAmount: m.fromDto(e.grossAmount),
|
|
166
|
+
sequence: e.sequence
|
|
167
|
+
})),
|
|
168
|
+
grossAmount: m.fromDto(e.grossAmount),
|
|
169
|
+
level: e.level ?? 0,
|
|
170
|
+
paidAmount: m.fromDto(e.paidAmount),
|
|
171
|
+
payments: e.payments.map((e) => ({
|
|
172
|
+
uuid: e.uuid,
|
|
173
|
+
amount: m.fromDto(e.amount),
|
|
174
|
+
date: g.fromDto(e.date)
|
|
175
|
+
})),
|
|
176
|
+
sequence: e.sequence,
|
|
177
|
+
settlementStatus: e.settlementStatus,
|
|
178
|
+
subject: e.subject,
|
|
179
|
+
totalCreditedAmount: m.fromDto(e.totalCreditedAmount)
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
static fromReminderConfigDto(e) {
|
|
183
|
+
return {
|
|
184
|
+
uuid: e.uuid,
|
|
185
|
+
fee: {
|
|
186
|
+
amount: e.fee.amount === null ? null : m.fromDto(e.fee.amount),
|
|
187
|
+
percentage: _.fromNullableDto(e.fee.percentage),
|
|
188
|
+
type: e.fee.type
|
|
189
|
+
},
|
|
190
|
+
offsetDays: e.offsetDays,
|
|
191
|
+
schedule: e.schedule,
|
|
192
|
+
sequence: e.sequence,
|
|
193
|
+
template: {
|
|
194
|
+
"en-US": U(e.template, "en-US"),
|
|
195
|
+
"fr-BE": U(e.template, "fr-BE"),
|
|
196
|
+
"nl-BE": U(e.template, "nl-BE")
|
|
197
|
+
}
|
|
198
|
+
};
|
|
199
|
+
}
|
|
200
|
+
static fromReminderDto(e) {
|
|
201
|
+
return e === null ? null : {
|
|
202
|
+
sentAt: R(e.sentAt),
|
|
203
|
+
hasErrors: e.hasErrors
|
|
204
|
+
};
|
|
205
|
+
}
|
|
206
|
+
static reminderConfigsToDto(e) {
|
|
207
|
+
return e.reminders.map((e) => ({
|
|
208
|
+
fee: e.feeType === u.PERCENTAGE ? {
|
|
209
|
+
amount: null,
|
|
210
|
+
percentage: _.toDto(new v(e.feePercentage)),
|
|
211
|
+
type: u.PERCENTAGE
|
|
212
|
+
} : {
|
|
213
|
+
amount: {
|
|
214
|
+
amount: f(e.feeAmount, e.feePrecision),
|
|
215
|
+
currency: e.feeCurrency,
|
|
216
|
+
precision: e.feePrecision
|
|
217
|
+
},
|
|
218
|
+
percentage: null,
|
|
219
|
+
type: u.AMOUNT
|
|
220
|
+
},
|
|
221
|
+
offsetDays: e.offsetDays,
|
|
222
|
+
schedule: e.schedule,
|
|
223
|
+
sequence: e.sequence,
|
|
224
|
+
template: {
|
|
225
|
+
body: W(e.template, "body"),
|
|
226
|
+
subject: W(e.template, "subject")
|
|
227
|
+
}
|
|
228
|
+
}));
|
|
229
|
+
}
|
|
230
|
+
static reminderConfigsToForm(e) {
|
|
231
|
+
let t = e.find((e) => e.fee.amount !== null)?.fee.amount ?? null, n = {
|
|
232
|
+
currency: t?.currency ?? d.EUR,
|
|
233
|
+
precision: t?.precision ?? 2
|
|
234
|
+
};
|
|
235
|
+
return { reminders: I.map((t) => H(t, e.find((e) => e.sequence === t), n)) };
|
|
236
|
+
}
|
|
237
|
+
};
|
|
238
|
+
//#endregion
|
|
239
|
+
//#region src/modules/dunning-case/api/services/dunningCase.service.ts
|
|
240
|
+
function K(e) {
|
|
241
|
+
return {
|
|
242
|
+
customerUuid: e.customerUuid,
|
|
243
|
+
isOpen: e.isOpen,
|
|
244
|
+
dunningCaseUuids: e.dunningCaseUuids === void 0 ? void 0 : {
|
|
245
|
+
scope: l.INCLUDE,
|
|
246
|
+
values: e.dunningCaseUuids
|
|
247
|
+
},
|
|
248
|
+
level: e.level
|
|
249
|
+
};
|
|
250
|
+
}
|
|
251
|
+
var q = class {
|
|
252
|
+
static async getAll(t) {
|
|
253
|
+
return (await s.fromPromise(e({ query: {
|
|
254
|
+
filter: K(t),
|
|
255
|
+
pagination: t.pagination
|
|
256
|
+
} }))).map((e) => ({
|
|
257
|
+
data: e.data.items.map(G.fromIndexDto),
|
|
258
|
+
meta: e.data.meta
|
|
259
|
+
}));
|
|
260
|
+
}
|
|
261
|
+
static async getByUuid(e) {
|
|
262
|
+
return (await s.fromPromise(i({ path: { uuid: e } }))).map((e) => G.fromDetailDto(e.data));
|
|
263
|
+
}
|
|
264
|
+
static async getReminderConfigs() {
|
|
265
|
+
return (await s.fromPromise(o())).map((e) => e.data.items.map(G.fromReminderConfigDto));
|
|
266
|
+
}
|
|
267
|
+
static async previewBulk(e) {
|
|
268
|
+
return (await s.fromPromise(n({ query: { filter: K(e) } }))).map((e) => e.data);
|
|
269
|
+
}
|
|
270
|
+
static async send(e) {
|
|
271
|
+
let t = await s.fromPromise(r({ path: { uuid: e } }));
|
|
272
|
+
return s.void(t);
|
|
273
|
+
}
|
|
274
|
+
static async sendBulk(e) {
|
|
275
|
+
return (await s.fromPromise(a({ query: { filter: K(e) } }))).map((e) => e.data);
|
|
276
|
+
}
|
|
277
|
+
static async updateReminderConfigs(e) {
|
|
278
|
+
let n = await s.fromPromise(t({ body: { reminders: G.reminderConfigsToDto(e) } }));
|
|
279
|
+
return s.void(n);
|
|
280
|
+
}
|
|
281
|
+
}, J = {
|
|
282
|
+
class: "flex shrink-0 gap-xxs",
|
|
283
|
+
"aria-hidden": "true"
|
|
284
|
+
}, Y = /* @__PURE__ */ C({
|
|
285
|
+
__name: "DunningCaseReminderLevelIndicator",
|
|
286
|
+
props: {
|
|
287
|
+
level: {},
|
|
288
|
+
size: { default: "md" }
|
|
289
|
+
},
|
|
290
|
+
setup(e) {
|
|
291
|
+
let t = e, n = b(() => Math.min(3, Math.max(0, t.level ?? 0))), r = b(() => t.level === 3 ? "error" : t.level === 2 ? "warning" : "brand"), i = b(() => t.size === "sm" ? "h-(--spacing-sm) w-(--spacing-md)" : "h-(--spacing-sm) w-(--spacing-lg)");
|
|
292
|
+
return (e, t) => (T(), x("span", J, [(T(), x(y, null, E(3, (e) => S("span", {
|
|
293
|
+
key: e,
|
|
294
|
+
class: w([[i.value, e <= n.value ? {
|
|
295
|
+
"border-brand-500 bg-brand-500": r.value === "brand",
|
|
296
|
+
"border-warning-500 bg-warning-solid": r.value === "warning",
|
|
297
|
+
"border-error bg-error-solid": r.value === "error"
|
|
298
|
+
} : "border-secondary bg-primary"], "rounded-full border"])
|
|
299
|
+
}, null, 2)), 64))]));
|
|
300
|
+
}
|
|
301
|
+
}), X = 3e5;
|
|
302
|
+
function Z() {
|
|
303
|
+
return D("reminderConfig", {
|
|
304
|
+
staleTime: X,
|
|
305
|
+
queryFn: () => q.getReminderConfigs()
|
|
306
|
+
});
|
|
307
|
+
}
|
|
308
|
+
//#endregion
|
|
309
|
+
export { G as i, Y as n, q as r, Z as t };
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import { Component } from 'vue';
|
|
2
2
|
export interface InvoicingRoutesOptions {
|
|
3
|
-
/**
|
|
4
|
-
* Replaces the component of the 'invoicing-invoice-overview' route. The
|
|
5
|
-
* route name, path and meta (permission) are preserved, so package-internal
|
|
6
|
-
* navigation keeps working. Hosts wrap the exported overview view to add
|
|
7
|
-
* custom actions or override the create flow.
|
|
8
|
-
*/
|
|
9
3
|
invoiceOverviewComponent?: Component;
|
|
10
4
|
}
|
|
11
5
|
export declare function useInvoicingRoutes(options?: InvoicingRoutesOptions): [{
|
|
@@ -69,5 +63,19 @@ export declare function useInvoicingRoutes(options?: InvoicingRoutesOptions): [{
|
|
|
69
63
|
readonly permission: "dunning-case.read";
|
|
70
64
|
};
|
|
71
65
|
}];
|
|
66
|
+
}, {
|
|
67
|
+
readonly name: "invoice-approval-module";
|
|
68
|
+
readonly path: "/invoicing/approvals";
|
|
69
|
+
readonly redirect: {
|
|
70
|
+
readonly name: "invoice-approval-overview";
|
|
71
|
+
};
|
|
72
|
+
readonly children: [{
|
|
73
|
+
readonly name: "invoice-approval-overview";
|
|
74
|
+
readonly path: "";
|
|
75
|
+
readonly component: () => Component;
|
|
76
|
+
readonly meta: {
|
|
77
|
+
readonly permission: "invoice-approval.read";
|
|
78
|
+
};
|
|
79
|
+
}];
|
|
72
80
|
}];
|
|
73
81
|
}];
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { computed as e, ref as t, watch as n } from "vue";
|
|
2
|
+
import { refDebounced as r } from "@vueuse/core";
|
|
3
|
+
import { useRoute as i, useRouter as a } from "vue-router";
|
|
4
|
+
//#region src/composables/routeQueryState.composable.ts
|
|
5
|
+
function o(e) {
|
|
6
|
+
let r = i(), o = a();
|
|
7
|
+
function s(t) {
|
|
8
|
+
if (t === null) return e.initialState;
|
|
9
|
+
try {
|
|
10
|
+
return e.serializer.parse(t);
|
|
11
|
+
} catch {
|
|
12
|
+
return e.initialState;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
let c = t(s(r.query[e.key] ?? null));
|
|
16
|
+
return n(() => r.query[e.key], (e) => {
|
|
17
|
+
c.value = s(e ?? null);
|
|
18
|
+
}, { immediate: !0 }), n(c, (t) => {
|
|
19
|
+
o.replace({ query: {
|
|
20
|
+
...r.query,
|
|
21
|
+
[e.key]: e.serializer.serialize(t) || void 0
|
|
22
|
+
} });
|
|
23
|
+
}, { deep: !0 }), c;
|
|
24
|
+
}
|
|
25
|
+
//#endregion
|
|
26
|
+
//#region src/composables/search/search.composable.ts
|
|
27
|
+
var s = 50, c = "search";
|
|
28
|
+
function l(n) {
|
|
29
|
+
let i = n?.debounceMs ?? s, a = n?.persistInUrl ?? !1, l = a === !0 || typeof a == "string" ? o({
|
|
30
|
+
initialState: "",
|
|
31
|
+
key: typeof a == "string" ? a : c,
|
|
32
|
+
serializer: {
|
|
33
|
+
parse: (e) => e,
|
|
34
|
+
serialize: (e) => e
|
|
35
|
+
}
|
|
36
|
+
}) : t(""), u = r(l, i), d = e(() => l.value !== u.value);
|
|
37
|
+
function f() {
|
|
38
|
+
l.value = "";
|
|
39
|
+
}
|
|
40
|
+
function p(e) {
|
|
41
|
+
l.value = e;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
isDebouncing: d,
|
|
45
|
+
clear: f,
|
|
46
|
+
debouncedSearch: e(() => u.value),
|
|
47
|
+
search: l,
|
|
48
|
+
updateSearch: p
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
//#endregion
|
|
52
|
+
export { l as t };
|