@wisemen/wise-invoicing-web 0.13.0 → 0.14.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-HANaeRzK.js → ApprovalReminderSettingsViewDataProvider-DlsyA-ZR.js} +3 -3
- package/dist/{BillingDocumentDetailViewDataProvider-BVrmLEP5.js → BillingDocumentDetailViewDataProvider-D3-X20WR.js} +8 -8
- package/dist/{BillingDocumentPdf-BLlJw5Wp.js → BillingDocumentPdf-CcmP3N34.js} +3 -3
- package/dist/{CreditNoteDetailViewDataProvider-CnmNQyXq.js → CreditNoteDetailViewDataProvider-X-m10Sqr.js} +232 -196
- package/dist/{CreditNotePdfViewDataProvider-Bu8lNWSx.js → CreditNotePdfViewDataProvider-jWh6REbj.js} +3 -3
- package/dist/{CustomFieldValueText-DX_7bMFM.js → CustomFieldValueText-C9yV_CrJ.js} +2 -2
- package/dist/{DunningCaseSendDialog-D5_uNt0g.js → DunningCaseSendDialog-DUyOH14Q.js} +12 -12
- package/dist/{InvoiceApprovalOutOfSyncIndicator-CX7hLBIC.js → InvoiceApprovalOutOfSyncIndicator-DzY8gqnD.js} +1 -1
- package/dist/{InvoiceApprovalOverviewView-1pLrgcIU.js → InvoiceApprovalOverviewView-CoIGxCMN.js} +6 -6
- package/dist/{InvoiceApprovalStatusBadge-DqsSuo4M.js → InvoiceApprovalStatusBadge-C9O_mb1l.js} +2 -2
- package/dist/{InvoiceApproveDialogDataProvider-D22o3mIC.js → InvoiceApproveDialogDataProvider-hVuyszuo.js} +6 -6
- package/dist/{InvoiceDetailViewDataProvider-DoqOGDZb.js → InvoiceDetailViewDataProvider-DBlmJs3o.js} +14 -14
- package/dist/{InvoicePdfView-Df9masUV.js → InvoicePdfView-DBVwRo3q.js} +1 -1
- package/dist/{InvoicePdfViewDataProvider-CKCp0TJ7.js → InvoicePdfViewDataProvider-CHLE3XdC.js} +3 -3
- package/dist/{InvoicePublicProFormaPdfViewDataProvider-CqAP9Ckj.js → InvoicePublicProFormaPdfViewDataProvider-DECBZhaP.js} +3 -3
- package/dist/{InvoicingFileUploadProvider-Da_JGESE.js → InvoicingFileUploadProvider-BZRLmEsv.js} +1 -1
- package/dist/{IssuerSettingsViewDataProvider-xXQEED2s.js → IssuerSettingsViewDataProvider-DrXmGKtc.js} +3 -3
- package/dist/{PeppolSettingsViewDataProvider-B4Hu1RQk.js → PeppolSettingsViewDataProvider-BesduXML.js} +4 -4
- package/dist/{api.util-DpWaDY5y.js → api.util-BxDrxtn6.js} +400 -391
- package/dist/{billingDocumentDetail.transformer-BJQFbO87.js → billingDocumentDetail.transformer-I1L4zrOM.js} +1 -1
- package/dist/client/index.d.ts +2 -2
- package/dist/client/sdk.gen.d.ts +2 -1
- package/dist/client/types.gen.d.ts +33 -0
- package/dist/client/zod.gen.d.ts +9 -0
- package/dist/{creditNoteDetail.query-BVXYLSMf.js → creditNoteDetail.query-BurujY-Y.js} +50 -47
- package/dist/{i18n.lib-Be2_Gg1d.js → i18n.lib-7EI865En.js} +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +94 -81
- package/dist/{invoice.service-Dugf3vP3.js → invoice.service-DfMS-JGk.js} +44 -44
- package/dist/{invoiceApproval.service-TTtH_nbV.js → invoiceApproval.service-CvvAZxJH.js} +5 -5
- package/dist/{invoiceApprovalStatus.util-BebJpPKg.js → invoiceApprovalStatus.util-QhwQpmWI.js} +1 -1
- package/dist/{invoiceCustomer.service-BgaMvr34.js → invoiceCustomer.service-DSAI1dGB.js} +6 -6
- package/dist/{invoiceDetail.query-DaY-Dwp4.js → invoiceDetail.query-qPz6hTNU.js} +1 -1
- package/dist/{invoiceIndexCache.util-8JQCyWbl.js → invoiceIndexCache.util-DduYusET.js} +2 -2
- package/dist/{invoicingConfig.composable-DQTYsGa7.js → invoicingConfig.composable-DT17tqnm.js} +2 -2
- package/dist/{issuerSettings.query-mMH2f5g6.js → issuerSettings.query-DYmr_dfw.js} +5 -5
- package/dist/libs/i18n.lib.d.ts +6 -0
- package/dist/locales/en-US.json.d.ts +3 -0
- package/dist/locales/nl-BE.json.d.ts +3 -0
- package/dist/modules/credit-note/api/mutations/creditNoteCopyToInvoice.mutation.d.ts +4 -0
- package/dist/modules/credit-note/api/services/creditNote.service.d.ts +2 -0
- package/dist/{reminderConfig.query-Dn0_h7xY.js → reminderConfig.query-BoNWAhZP.js} +11 -11
- package/dist/ui/customer-invoice-list/CustomerInvoiceTable.vue.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as e, B as t, C as n, D as r, E as ee, F as i, H as a, I as o, J as s, K as c, M as l, N as u, O as d, P as te, Q as ne, S as re, T as ie, _ as ae, _t as oe, a as se, b as ce, c as le, ct as ue, g as de, h as fe, i as pe, k as me, l as he, lt as ge, mt as _e, n as ve, o as ye, p as be, pt as xe, q as Se, r as Ce, st as we, t as f, u as Te, v as Ee, w as De, z as Oe } from "./api.util-BxDrxtn6.js";
|
|
2
2
|
import { N as p, b as m, f as h, h as g, r as _, x as v } from "./documentTitle.composable-BqZWKGw1.js";
|
|
3
3
|
import { n as y } from "./useCurrencyFormat.composable-MtZaqKnO.js";
|
|
4
4
|
import { r as b } from "./src-Vz2dm4sM.js";
|
|
5
5
|
import { t as x } from "./address.transformer-jGddczLV.js";
|
|
6
6
|
import { n as S, r as C, t as w } from "./plainDate.transformer-Bhiz9jW7.js";
|
|
7
7
|
import { n as T, t as E } from "./percentage.util-Bl78kSSk.js";
|
|
8
|
-
import { a as D, i as ke, n as O, o as Ae, r as je, t as Me } from "./billingDocumentDetail.transformer-
|
|
8
|
+
import { a as D, i as ke, n as O, o as Ae, r as je, t as Me } from "./billingDocumentDetail.transformer-I1L4zrOM.js";
|
|
9
9
|
import { t as k } from "./dist-BFx8U4Su.js";
|
|
10
10
|
import A from "zod";
|
|
11
11
|
import { ref as Ne } from "vue";
|
|
@@ -574,43 +574,43 @@ var qe = class {
|
|
|
574
574
|
}
|
|
575
575
|
}, Je = class {
|
|
576
576
|
static async applyDiscount(e, t) {
|
|
577
|
-
let n = await f.fromPromise(
|
|
577
|
+
let n = await f.fromPromise(ve({
|
|
578
578
|
body: Ke.toDto(t),
|
|
579
579
|
path: { uuid: e }
|
|
580
580
|
}));
|
|
581
581
|
return f.void(n);
|
|
582
582
|
}
|
|
583
583
|
static async approveApproval(e, t) {
|
|
584
|
-
let n = await f.fromPromise(
|
|
584
|
+
let n = await f.fromPromise(Ce({
|
|
585
585
|
body: Fe.toDto(t),
|
|
586
586
|
path: { uuid: e }
|
|
587
587
|
}));
|
|
588
588
|
return f.void(n);
|
|
589
589
|
}
|
|
590
590
|
static async archiveApproval(e) {
|
|
591
|
-
let t = await f.fromPromise(
|
|
591
|
+
let t = await f.fromPromise(Te({ path: { uuid: e } }));
|
|
592
592
|
return f.void(t);
|
|
593
593
|
}
|
|
594
594
|
static async bulkDelete(e) {
|
|
595
|
-
return (await f.fromPromise(
|
|
595
|
+
return (await f.fromPromise(pe({ query: F.toDto(e) }))).map((e) => e.data);
|
|
596
596
|
}
|
|
597
597
|
static async bulkFinalize(e) {
|
|
598
|
-
return (await f.fromPromise(
|
|
598
|
+
return (await f.fromPromise(se({ query: F.toDto(e) }))).map((e) => e.data);
|
|
599
599
|
}
|
|
600
600
|
static async bulkMarkAsReady(e) {
|
|
601
|
-
return (await f.fromPromise(
|
|
601
|
+
return (await f.fromPromise(ye({ query: F.toDto(e) }))).map((e) => e.data);
|
|
602
602
|
}
|
|
603
603
|
static async bulkSend(e) {
|
|
604
604
|
return (await f.fromPromise(he({ query: F.toDto(e) }))).map((e) => e.data);
|
|
605
605
|
}
|
|
606
606
|
static async bulkSendApproval(e) {
|
|
607
|
-
return (await f.fromPromise(
|
|
607
|
+
return (await f.fromPromise(le({ query: F.toDto(e) }))).map((e) => e.data);
|
|
608
608
|
}
|
|
609
609
|
static async create(e) {
|
|
610
|
-
return (await f.fromPromise(
|
|
610
|
+
return (await f.fromPromise(fe({ body: Le.toDto(e) }))).map((e) => e.data.uuid);
|
|
611
611
|
}
|
|
612
612
|
static async createCreditNote(e) {
|
|
613
|
-
return (await f.fromPromise(
|
|
613
|
+
return (await f.fromPromise(be({ path: { uuid: e } }))).map((e) => e.data.uuid);
|
|
614
614
|
}
|
|
615
615
|
static async createPayment(e, t) {
|
|
616
616
|
let n = await f.fromPromise(de({
|
|
@@ -620,21 +620,21 @@ var qe = class {
|
|
|
620
620
|
return f.void(n);
|
|
621
621
|
}
|
|
622
622
|
static async delete(e) {
|
|
623
|
-
let t = await f.fromPromise(
|
|
623
|
+
let t = await f.fromPromise(ae({ path: { uuid: e } }));
|
|
624
624
|
return f.void(t);
|
|
625
625
|
}
|
|
626
626
|
static async deletePayment(e, t) {
|
|
627
|
-
let n = await f.fromPromise(
|
|
627
|
+
let n = await f.fromPromise(Ee({ path: {
|
|
628
628
|
uuid: e,
|
|
629
629
|
paymentUuid: t
|
|
630
630
|
} }));
|
|
631
631
|
return f.void(n);
|
|
632
632
|
}
|
|
633
633
|
static async duplicate(e) {
|
|
634
|
-
return (await f.fromPromise(
|
|
634
|
+
return (await f.fromPromise(ce({ path: { uuid: e } }))).map((e) => e.data.uuid);
|
|
635
635
|
}
|
|
636
636
|
static async finalize(e) {
|
|
637
|
-
let t = await f.fromPromise(
|
|
637
|
+
let t = await f.fromPromise(re({ path: { uuid: e } }));
|
|
638
638
|
return f.void(t);
|
|
639
639
|
}
|
|
640
640
|
static async getActivityLogs(e, t) {
|
|
@@ -653,7 +653,7 @@ var qe = class {
|
|
|
653
653
|
}));
|
|
654
654
|
}
|
|
655
655
|
static async getAll(e) {
|
|
656
|
-
return (await f.fromPromise(
|
|
656
|
+
return (await f.fromPromise(ue({
|
|
657
657
|
query: P.toDto(e),
|
|
658
658
|
responseValidator: void 0
|
|
659
659
|
}))).map((e) => ({
|
|
@@ -662,102 +662,102 @@ var qe = class {
|
|
|
662
662
|
}));
|
|
663
663
|
}
|
|
664
664
|
static async getByUuid(e) {
|
|
665
|
-
return (await f.fromPromise(
|
|
665
|
+
return (await f.fromPromise(we({ path: { uuid: e } }))).map((e) => Re.fromDto(e.data));
|
|
666
666
|
}
|
|
667
667
|
static async getPayments(e) {
|
|
668
|
-
return (await f.fromPromise(
|
|
668
|
+
return (await f.fromPromise(ge({ path: { uuid: e } }))).map((e) => e.data.items.map(He.fromDto));
|
|
669
669
|
}
|
|
670
670
|
static async getPublicDetail(e) {
|
|
671
|
-
return (await f.fromPromise(
|
|
671
|
+
return (await f.fromPromise(xe({ query: { token: e } }))).map((e) => Y.fromPublicDto(e.data));
|
|
672
672
|
}
|
|
673
673
|
static async getPublicProFormaDetail(e) {
|
|
674
|
-
return (await f.fromPromise(
|
|
674
|
+
return (await f.fromPromise(_e({ query: { token: e } }))).map((e) => Y.fromPublicProFormaDto(e.data));
|
|
675
675
|
}
|
|
676
|
-
static async markAsDraft(
|
|
677
|
-
let
|
|
678
|
-
return f.void(
|
|
676
|
+
static async markAsDraft(e) {
|
|
677
|
+
let t = await f.fromPromise(De({ path: { uuid: e } }));
|
|
678
|
+
return f.void(t);
|
|
679
679
|
}
|
|
680
680
|
static async markAsPaid(e) {
|
|
681
|
-
let t = await f.fromPromise(
|
|
681
|
+
let t = await f.fromPromise(ie({ path: { uuid: e } }));
|
|
682
682
|
return f.void(t);
|
|
683
683
|
}
|
|
684
684
|
static async markAsPriorApprovalRequired(e) {
|
|
685
|
-
let t = await f.fromPromise(
|
|
685
|
+
let t = await f.fromPromise(ee({ path: { uuid: e } }));
|
|
686
686
|
return f.void(t);
|
|
687
687
|
}
|
|
688
688
|
static async markAsProtested(e) {
|
|
689
|
-
let t = await f.fromPromise(
|
|
689
|
+
let t = await f.fromPromise(n({ path: { uuid: e } }));
|
|
690
690
|
return f.void(t);
|
|
691
691
|
}
|
|
692
692
|
static async markAsReady(e) {
|
|
693
|
-
let t = await f.fromPromise(
|
|
693
|
+
let t = await f.fromPromise(r({ path: { uuid: e } }));
|
|
694
694
|
return f.void(t);
|
|
695
695
|
}
|
|
696
696
|
static async previewBulkDelete(e) {
|
|
697
|
-
return (await f.fromPromise(
|
|
697
|
+
return (await f.fromPromise(d({ query: F.toDto(e) }))).map((e) => e.data);
|
|
698
698
|
}
|
|
699
699
|
static async previewBulkFinalize(e) {
|
|
700
|
-
return (await f.fromPromise(s({ query: F.toDto(e) }))).map((e) => e.data);
|
|
701
|
-
}
|
|
702
|
-
static async previewBulkMarkAsReady(e) {
|
|
703
700
|
return (await f.fromPromise(me({ query: F.toDto(e) }))).map((e) => e.data);
|
|
704
701
|
}
|
|
702
|
+
static async previewBulkMarkAsReady(t) {
|
|
703
|
+
return (await f.fromPromise(e({ query: F.toDto(t) }))).map((e) => e.data);
|
|
704
|
+
}
|
|
705
705
|
static async previewBulkSend(e) {
|
|
706
|
-
return (await f.fromPromise(
|
|
706
|
+
return (await f.fromPromise(u({ query: F.toDto(e) }))).map((e) => e.data);
|
|
707
707
|
}
|
|
708
708
|
static async previewBulkSendApproval(e) {
|
|
709
|
-
return (await f.fromPromise(
|
|
709
|
+
return (await f.fromPromise(l({ query: F.toDto(e) }))).map((e) => e.data);
|
|
710
710
|
}
|
|
711
711
|
static async rejectApproval(e, t) {
|
|
712
|
-
let n = await f.fromPromise(
|
|
712
|
+
let n = await f.fromPromise(te({
|
|
713
713
|
body: Ie.toDto(t),
|
|
714
714
|
path: { uuid: e }
|
|
715
715
|
}));
|
|
716
716
|
return f.void(n);
|
|
717
717
|
}
|
|
718
718
|
static async restartApproval(e) {
|
|
719
|
-
let t = await f.fromPromise(
|
|
719
|
+
let t = await f.fromPromise(i({ path: { uuid: e } }));
|
|
720
720
|
return f.void(t);
|
|
721
721
|
}
|
|
722
722
|
static async restoreFromProForma(e) {
|
|
723
|
-
let t = await f.fromPromise(
|
|
723
|
+
let t = await f.fromPromise(o({ path: { uuid: e } }));
|
|
724
724
|
return f.void(t);
|
|
725
725
|
}
|
|
726
726
|
static async send(e) {
|
|
727
|
-
let
|
|
728
|
-
return f.void(
|
|
727
|
+
let n = await f.fromPromise(t({ path: { uuid: e } }));
|
|
728
|
+
return f.void(n);
|
|
729
729
|
}
|
|
730
730
|
static async sendApproval(e) {
|
|
731
|
-
let t = await f.fromPromise(
|
|
731
|
+
let t = await f.fromPromise(Oe({ path: { uuid: e } }));
|
|
732
732
|
return f.void(t);
|
|
733
733
|
}
|
|
734
734
|
static async unmarkAsPriorApprovalRequired(e) {
|
|
735
|
-
let t = await f.fromPromise(
|
|
735
|
+
let t = await f.fromPromise(a({ path: { uuid: e } }));
|
|
736
736
|
return f.void(t);
|
|
737
737
|
}
|
|
738
738
|
static async update(e, t) {
|
|
739
|
-
let n = await f.fromPromise(
|
|
739
|
+
let n = await f.fromPromise(s({
|
|
740
740
|
body: Z.toDto(t),
|
|
741
741
|
path: { uuid: e }
|
|
742
742
|
}));
|
|
743
743
|
return f.void(n);
|
|
744
744
|
}
|
|
745
745
|
static async updateAttachments(e, t) {
|
|
746
|
-
let n = await f.fromPromise(
|
|
746
|
+
let n = await f.fromPromise(c({
|
|
747
747
|
body: X.toDto(t),
|
|
748
748
|
path: { uuid: e }
|
|
749
749
|
}));
|
|
750
750
|
return f.void(n);
|
|
751
751
|
}
|
|
752
752
|
static async updateLines(e, t) {
|
|
753
|
-
let n = await f.fromPromise(
|
|
753
|
+
let n = await f.fromPromise(Se({
|
|
754
754
|
body: qe.toDto(t),
|
|
755
755
|
path: { uuid: e }
|
|
756
756
|
}));
|
|
757
757
|
return f.void(n);
|
|
758
758
|
}
|
|
759
759
|
static async withdrawProtest(e) {
|
|
760
|
-
let t = await f.fromPromise(
|
|
760
|
+
let t = await f.fromPromise(oe({ path: { uuid: e } }));
|
|
761
761
|
return f.void(t);
|
|
762
762
|
}
|
|
763
763
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $ as e, U as t, ot as n, t as r } from "./api.util-BxDrxtn6.js";
|
|
2
2
|
import { n as i, r as a, t as o } from "./plainDate.transformer-Bhiz9jW7.js";
|
|
3
|
-
import { t as s } from "./invoiceApprovalStatus.util-
|
|
3
|
+
import { t as s } from "./invoiceApprovalStatus.util-QhwQpmWI.js";
|
|
4
4
|
//#region src/modules/invoice-approval/models/approvalReminderConfig.transformer.ts
|
|
5
5
|
var c = class {
|
|
6
6
|
static toDto(e) {
|
|
@@ -61,10 +61,10 @@ var c = class {
|
|
|
61
61
|
}));
|
|
62
62
|
}
|
|
63
63
|
static async getReminderConfigs() {
|
|
64
|
-
return (await r.fromPromise(
|
|
64
|
+
return (await r.fromPromise(e())).map((e) => e.data.items);
|
|
65
65
|
}
|
|
66
|
-
static async updateReminderConfigs(
|
|
67
|
-
let n = await r.fromPromise(
|
|
66
|
+
static async updateReminderConfigs(e) {
|
|
67
|
+
let n = await r.fromPromise(t({ body: c.toDto(e) }));
|
|
68
68
|
return r.void(n);
|
|
69
69
|
}
|
|
70
70
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { o as r } from "./invoice.service-
|
|
1
|
+
import { nt as e, t, tt as n } from "./api.util-BxDrxtn6.js";
|
|
2
|
+
import { o as r } from "./invoice.service-DfMS-JGk.js";
|
|
3
3
|
//#region src/models/customer/customerDetail.transformer.ts
|
|
4
4
|
var i = class {
|
|
5
5
|
static fromDto(e) {
|
|
@@ -25,14 +25,14 @@ var i = class {
|
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
27
|
}, s = class {
|
|
28
|
-
static async getAll(
|
|
29
|
-
return (await t.fromPromise(
|
|
28
|
+
static async getAll(n) {
|
|
29
|
+
return (await t.fromPromise(e({ query: o.toDto(n) }))).map((e) => ({
|
|
30
30
|
data: e.data.items.map(a.fromDto),
|
|
31
31
|
meta: e.data.meta
|
|
32
32
|
}));
|
|
33
33
|
}
|
|
34
|
-
static async getByUuid(
|
|
35
|
-
return (await t.fromPromise(
|
|
34
|
+
static async getByUuid(e) {
|
|
35
|
+
return (await t.fromPromise(n({ path: { uuid: e } }))).map((e) => i.fromDto(e.data));
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
38
|
//#endregion
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "./api.util-
|
|
1
|
+
import "./api.util-BxDrxtn6.js";
|
|
2
2
|
import { k as e, v as t } from "./documentTitle.composable-BqZWKGw1.js";
|
|
3
3
|
import { r as n } from "./useCurrencyFormat.composable-MtZaqKnO.js";
|
|
4
|
-
import { n as r } from "./CustomFieldValueText-
|
|
4
|
+
import { n as r } from "./CustomFieldValueText-C9yV_CrJ.js";
|
|
5
5
|
import { useI18n as i } from "vue-i18n";
|
|
6
6
|
import { computed as a, createBlock as o, createCommentVNode as s, createVNode as c, defineComponent as l, openBlock as u, unref as d, withCtx as f } from "vue";
|
|
7
7
|
import { QueryClient as p, getTanstackQueryClient as m } from "@wisemen/vue-core-api-utils";
|
package/dist/{invoicingConfig.composable-DQTYsGa7.js → invoicingConfig.composable-DT17tqnm.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as e } from "./i18n.lib-
|
|
2
|
-
import {
|
|
1
|
+
import { t as e } from "./i18n.lib-7EI865En.js";
|
|
2
|
+
import { vt as t } from "./api.util-BxDrxtn6.js";
|
|
3
3
|
import { useI18n as n } from "vue-i18n";
|
|
4
4
|
import { computed as r, ref as i, shallowRef as a, toValue as o, watch as s } from "vue";
|
|
5
5
|
//#region src/libs/http.lib.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Y as e, t, ut as n } from "./api.util-BxDrxtn6.js";
|
|
2
2
|
import { D as r, E as i, O as a, p as o } from "./documentTitle.composable-BqZWKGw1.js";
|
|
3
3
|
import { n as s, t as c } from "./address.transformer-jGddczLV.js";
|
|
4
4
|
import { t as l } from "./dist-BFx8U4Su.js";
|
|
@@ -188,11 +188,11 @@ var p = class {
|
|
|
188
188
|
}
|
|
189
189
|
}, h = class {
|
|
190
190
|
static async get() {
|
|
191
|
-
return (await
|
|
191
|
+
return (await t.fromPromise(n({ responseValidator: void 0 }))).map((e) => m.fromDto(e.data));
|
|
192
192
|
}
|
|
193
|
-
static async update(
|
|
194
|
-
let r = await
|
|
195
|
-
return
|
|
193
|
+
static async update(n) {
|
|
194
|
+
let r = await t.fromPromise(e({ body: m.toDto(n) }));
|
|
195
|
+
return t.void(r);
|
|
196
196
|
}
|
|
197
197
|
};
|
|
198
198
|
//#endregion
|
package/dist/libs/i18n.lib.d.ts
CHANGED
|
@@ -478,6 +478,9 @@ export declare const i18nPlugin: import('vue-i18n').I18n<{
|
|
|
478
478
|
"wise_invoicing.credit_note.finalize.confirmation.submit_button": string;
|
|
479
479
|
"wise_invoicing.credit_note.finalize.validation.external_remarks_required": string;
|
|
480
480
|
"wise_invoicing.credit_note.detail.actions.delete": string;
|
|
481
|
+
"wise_invoicing.credit_note.detail.actions.copy_to_invoice": string;
|
|
482
|
+
"wise_invoicing.credit_note.copy_to_invoice.success": string;
|
|
483
|
+
"wise_invoicing.credit_note.copy_to_invoice.view_action": string;
|
|
481
484
|
"wise_invoicing.credit_note.delete.title": string;
|
|
482
485
|
"wise_invoicing.credit_note.delete.description": string;
|
|
483
486
|
"wise_invoicing.credit_note.delete.submit_button": string;
|
|
@@ -1479,6 +1482,9 @@ export declare const i18nPlugin: import('vue-i18n').I18n<{
|
|
|
1479
1482
|
"wise_invoicing.credit_note.finalize.confirmation.submit_button": string;
|
|
1480
1483
|
"wise_invoicing.credit_note.finalize.validation.external_remarks_required": string;
|
|
1481
1484
|
"wise_invoicing.credit_note.detail.actions.delete": string;
|
|
1485
|
+
"wise_invoicing.credit_note.detail.actions.copy_to_invoice": string;
|
|
1486
|
+
"wise_invoicing.credit_note.copy_to_invoice.success": string;
|
|
1487
|
+
"wise_invoicing.credit_note.copy_to_invoice.view_action": string;
|
|
1482
1488
|
"wise_invoicing.credit_note.delete.title": string;
|
|
1483
1489
|
"wise_invoicing.credit_note.delete.description": string;
|
|
1484
1490
|
"wise_invoicing.credit_note.delete.submit_button": string;
|
|
@@ -471,6 +471,9 @@ declare const _default: {
|
|
|
471
471
|
"wise_invoicing.credit_note.finalize.confirmation.submit_button": "Finalize credit note",
|
|
472
472
|
"wise_invoicing.credit_note.finalize.validation.external_remarks_required": "A remark about the cause of the credit note is mandatory.",
|
|
473
473
|
"wise_invoicing.credit_note.detail.actions.delete": "Delete credit note",
|
|
474
|
+
"wise_invoicing.credit_note.detail.actions.copy_to_invoice": "Copy to invoice",
|
|
475
|
+
"wise_invoicing.credit_note.copy_to_invoice.success": "Draft invoice created from credit note.",
|
|
476
|
+
"wise_invoicing.credit_note.copy_to_invoice.view_action": "Go to new invoice",
|
|
474
477
|
"wise_invoicing.credit_note.delete.title": "Delete credit note",
|
|
475
478
|
"wise_invoicing.credit_note.delete.description": "This action cannot be undone. Credit note {creditNoteIdentifier} will be permanently deleted.",
|
|
476
479
|
"wise_invoicing.credit_note.delete.submit_button": "Delete credit note",
|
|
@@ -471,6 +471,9 @@ declare const _default: {
|
|
|
471
471
|
"wise_invoicing.credit_note.finalize.confirmation.submit_button": "Creditnota afronden",
|
|
472
472
|
"wise_invoicing.credit_note.finalize.validation.external_remarks_required": "Een opmerking over de reden van de creditnota is verplicht.",
|
|
473
473
|
"wise_invoicing.credit_note.detail.actions.delete": "Creditnota verwijderen",
|
|
474
|
+
"wise_invoicing.credit_note.detail.actions.copy_to_invoice": "Kopiëren naar factuur",
|
|
475
|
+
"wise_invoicing.credit_note.copy_to_invoice.success": "Conceptfactuur aangemaakt op basis van creditnota.",
|
|
476
|
+
"wise_invoicing.credit_note.copy_to_invoice.view_action": "Ga naar nieuwe factuur",
|
|
474
477
|
"wise_invoicing.credit_note.delete.title": "Creditnota verwijderen",
|
|
475
478
|
"wise_invoicing.credit_note.delete.description": "Deze actie kan niet ongedaan worden gemaakt. Creditnota {creditNoteIdentifier} wordt permanent verwijderd.",
|
|
476
479
|
"wise_invoicing.credit_note.delete.submit_button": "Creditnota verwijderen",
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { CreditNoteUuid } from '../../models/creditNoteUuid.model.ts';
|
|
2
|
+
export declare function useCreditNoteCopyToInvoiceMutation(): import('@wisemen/vue-core-api-utils').UseMutationReturnType<void, string & import('zod').$brand<"InvoiceUuid">, {
|
|
3
|
+
creditNoteUuid: CreditNoteUuid;
|
|
4
|
+
}, string>;
|
|
@@ -4,8 +4,10 @@ import { CreditNoteUuid } from '../../models/creditNoteUuid.model.ts';
|
|
|
4
4
|
import { CreditNoteDetail } from '../../models/detail/creditNoteDetail.model.ts';
|
|
5
5
|
import { CreditNoteUpdateForm } from '../../models/update/creditNoteUpdateForm.model.ts';
|
|
6
6
|
import { CreditNoteUpdateLines } from '../../models/update/creditNoteUpdateLines.model.ts';
|
|
7
|
+
import { InvoiceUuid } from '../../../invoice/models/invoiceUuid.model.ts';
|
|
7
8
|
import { QueryParams } from '../../../../types/query.type.ts';
|
|
8
9
|
export declare class CreditNoteService {
|
|
10
|
+
static copyToInvoice(creditNoteUuid: CreditNoteUuid): Promise<ApiResult<InvoiceUuid>>;
|
|
9
11
|
static delete(creditNoteUuid: CreditNoteUuid): Promise<ApiResult<void>>;
|
|
10
12
|
static finalize(creditNoteUuid: CreditNoteUuid): Promise<ApiResult<void>>;
|
|
11
13
|
static getActivityLogs(creditNoteUuid: CreditNoteUuid, params: KeysetPagination<QueryParams>): Promise<KeysetPaginationResult<BillingDocumentActivityLog>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { L as e, R as t, Z as n, at as r, ht as i, it as a, j as o, s, t as c } from "./api.util-BxDrxtn6.js";
|
|
2
2
|
import { T as l, c as u, h as d, m as f } from "./documentTitle.composable-BqZWKGw1.js";
|
|
3
3
|
import { n as p, t as m } from "./useCurrencyFormat.composable-MtZaqKnO.js";
|
|
4
4
|
import { n as h, r as g, t as _ } from "./plainDate.transformer-Bhiz9jW7.js";
|
|
@@ -253,7 +253,7 @@ function q(e) {
|
|
|
253
253
|
}
|
|
254
254
|
var J = class {
|
|
255
255
|
static async getAll(e) {
|
|
256
|
-
return (await c.fromPromise(
|
|
256
|
+
return (await c.fromPromise(r({ query: {
|
|
257
257
|
filter: q(e),
|
|
258
258
|
pagination: e.pagination
|
|
259
259
|
} }))).map((e) => ({
|
|
@@ -262,27 +262,27 @@ var J = class {
|
|
|
262
262
|
}));
|
|
263
263
|
}
|
|
264
264
|
static async getByUuid(e) {
|
|
265
|
-
return (await c.fromPromise(
|
|
265
|
+
return (await c.fromPromise(a({ path: { uuid: e } }))).map((e) => K.fromDetailDto(e.data));
|
|
266
266
|
}
|
|
267
267
|
static async getReminderConfigs() {
|
|
268
|
-
return (await c.fromPromise(
|
|
268
|
+
return (await c.fromPromise(i())).map((e) => e.data.items.map(K.fromReminderConfigDto));
|
|
269
269
|
}
|
|
270
|
-
static async previewBulk(
|
|
271
|
-
return (await c.fromPromise(
|
|
270
|
+
static async previewBulk(e) {
|
|
271
|
+
return (await c.fromPromise(o({ query: { filter: q(e) } }))).map((e) => e.data);
|
|
272
272
|
}
|
|
273
|
-
static async retry(
|
|
274
|
-
let n = await c.fromPromise(
|
|
273
|
+
static async retry(t) {
|
|
274
|
+
let n = await c.fromPromise(e({ path: { uuid: t } }));
|
|
275
275
|
return c.void(n);
|
|
276
276
|
}
|
|
277
277
|
static async send(e) {
|
|
278
|
-
let
|
|
279
|
-
return c.void(
|
|
278
|
+
let n = await c.fromPromise(t({ path: { uuid: e } }));
|
|
279
|
+
return c.void(n);
|
|
280
280
|
}
|
|
281
281
|
static async sendBulk(e) {
|
|
282
282
|
return (await c.fromPromise(s({ query: { filter: q(e) } }))).map((e) => e.data);
|
|
283
283
|
}
|
|
284
284
|
static async updateReminderConfigs(e) {
|
|
285
|
-
let t = await c.fromPromise(
|
|
285
|
+
let t = await c.fromPromise(n({ body: { reminders: K.reminderConfigsToDto(e) } }));
|
|
286
286
|
return c.void(t);
|
|
287
287
|
}
|
|
288
288
|
}, Y = {
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { CustomFieldDefinition } from '../../modules/custom-field/models/custom-field-definition/customFieldDefinition.model.ts';
|
|
1
2
|
type __VLS_Props = {
|
|
2
3
|
externalId: string;
|
|
4
|
+
customFieldDefinitions: CustomFieldDefinition[];
|
|
3
5
|
};
|
|
4
6
|
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>;
|
|
5
7
|
declare const _default: typeof __VLS_export;
|
package/package.json
CHANGED