@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.
Files changed (44) hide show
  1. package/dist/{ApprovalReminderSettingsViewDataProvider-HANaeRzK.js → ApprovalReminderSettingsViewDataProvider-DlsyA-ZR.js} +3 -3
  2. package/dist/{BillingDocumentDetailViewDataProvider-BVrmLEP5.js → BillingDocumentDetailViewDataProvider-D3-X20WR.js} +8 -8
  3. package/dist/{BillingDocumentPdf-BLlJw5Wp.js → BillingDocumentPdf-CcmP3N34.js} +3 -3
  4. package/dist/{CreditNoteDetailViewDataProvider-CnmNQyXq.js → CreditNoteDetailViewDataProvider-X-m10Sqr.js} +232 -196
  5. package/dist/{CreditNotePdfViewDataProvider-Bu8lNWSx.js → CreditNotePdfViewDataProvider-jWh6REbj.js} +3 -3
  6. package/dist/{CustomFieldValueText-DX_7bMFM.js → CustomFieldValueText-C9yV_CrJ.js} +2 -2
  7. package/dist/{DunningCaseSendDialog-D5_uNt0g.js → DunningCaseSendDialog-DUyOH14Q.js} +12 -12
  8. package/dist/{InvoiceApprovalOutOfSyncIndicator-CX7hLBIC.js → InvoiceApprovalOutOfSyncIndicator-DzY8gqnD.js} +1 -1
  9. package/dist/{InvoiceApprovalOverviewView-1pLrgcIU.js → InvoiceApprovalOverviewView-CoIGxCMN.js} +6 -6
  10. package/dist/{InvoiceApprovalStatusBadge-DqsSuo4M.js → InvoiceApprovalStatusBadge-C9O_mb1l.js} +2 -2
  11. package/dist/{InvoiceApproveDialogDataProvider-D22o3mIC.js → InvoiceApproveDialogDataProvider-hVuyszuo.js} +6 -6
  12. package/dist/{InvoiceDetailViewDataProvider-DoqOGDZb.js → InvoiceDetailViewDataProvider-DBlmJs3o.js} +14 -14
  13. package/dist/{InvoicePdfView-Df9masUV.js → InvoicePdfView-DBVwRo3q.js} +1 -1
  14. package/dist/{InvoicePdfViewDataProvider-CKCp0TJ7.js → InvoicePdfViewDataProvider-CHLE3XdC.js} +3 -3
  15. package/dist/{InvoicePublicProFormaPdfViewDataProvider-CqAP9Ckj.js → InvoicePublicProFormaPdfViewDataProvider-DECBZhaP.js} +3 -3
  16. package/dist/{InvoicingFileUploadProvider-Da_JGESE.js → InvoicingFileUploadProvider-BZRLmEsv.js} +1 -1
  17. package/dist/{IssuerSettingsViewDataProvider-xXQEED2s.js → IssuerSettingsViewDataProvider-DrXmGKtc.js} +3 -3
  18. package/dist/{PeppolSettingsViewDataProvider-B4Hu1RQk.js → PeppolSettingsViewDataProvider-BesduXML.js} +4 -4
  19. package/dist/{api.util-DpWaDY5y.js → api.util-BxDrxtn6.js} +400 -391
  20. package/dist/{billingDocumentDetail.transformer-BJQFbO87.js → billingDocumentDetail.transformer-I1L4zrOM.js} +1 -1
  21. package/dist/client/index.d.ts +2 -2
  22. package/dist/client/sdk.gen.d.ts +2 -1
  23. package/dist/client/types.gen.d.ts +33 -0
  24. package/dist/client/zod.gen.d.ts +9 -0
  25. package/dist/{creditNoteDetail.query-BVXYLSMf.js → creditNoteDetail.query-BurujY-Y.js} +50 -47
  26. package/dist/{i18n.lib-Be2_Gg1d.js → i18n.lib-7EI865En.js} +6 -0
  27. package/dist/index.d.ts +6 -0
  28. package/dist/index.js +94 -81
  29. package/dist/{invoice.service-Dugf3vP3.js → invoice.service-DfMS-JGk.js} +44 -44
  30. package/dist/{invoiceApproval.service-TTtH_nbV.js → invoiceApproval.service-CvvAZxJH.js} +5 -5
  31. package/dist/{invoiceApprovalStatus.util-BebJpPKg.js → invoiceApprovalStatus.util-QhwQpmWI.js} +1 -1
  32. package/dist/{invoiceCustomer.service-BgaMvr34.js → invoiceCustomer.service-DSAI1dGB.js} +6 -6
  33. package/dist/{invoiceDetail.query-DaY-Dwp4.js → invoiceDetail.query-qPz6hTNU.js} +1 -1
  34. package/dist/{invoiceIndexCache.util-8JQCyWbl.js → invoiceIndexCache.util-DduYusET.js} +2 -2
  35. package/dist/{invoicingConfig.composable-DQTYsGa7.js → invoicingConfig.composable-DT17tqnm.js} +2 -2
  36. package/dist/{issuerSettings.query-mMH2f5g6.js → issuerSettings.query-DYmr_dfw.js} +5 -5
  37. package/dist/libs/i18n.lib.d.ts +6 -0
  38. package/dist/locales/en-US.json.d.ts +3 -0
  39. package/dist/locales/nl-BE.json.d.ts +3 -0
  40. package/dist/modules/credit-note/api/mutations/creditNoteCopyToInvoice.mutation.d.ts +4 -0
  41. package/dist/modules/credit-note/api/services/creditNote.service.d.ts +2 -0
  42. package/dist/{reminderConfig.query-Dn0_h7xY.js → reminderConfig.query-BoNWAhZP.js} +11 -11
  43. package/dist/ui/customer-invoice-list/CustomerInvoiceTable.vue.d.ts +2 -0
  44. package/package.json +1 -1
@@ -1,11 +1,11 @@
1
- import { C as e, D as t, E as n, F as r, G as ee, K as i, M as a, N as o, O as s, P as c, R as l, S as u, T as d, V as te, Z as ne, _ as re, a as ie, c as ae, ct as oe, f as se, ft as ce, g as le, gt as ue, h as de, i as fe, j as pe, k as me, l as he, m as ge, n as _e, o as ve, ot as ye, pt as be, q as xe, r as Se, st as Ce, t as f, u as we, w as Te, x as Ee, y as De, z as Oe } from "./api.util-DpWaDY5y.js";
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-BJQFbO87.js";
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(_e({
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(Se({
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(we({ path: { uuid: e } }));
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(fe({ query: F.toDto(e) }))).map((e) => e.data);
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(ie({ query: F.toDto(e) }))).map((e) => e.data);
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(ve({ query: F.toDto(e) }))).map((e) => e.data);
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(ae({ query: F.toDto(e) }))).map((e) => e.data);
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(ge({ body: Le.toDto(e) }))).map((e) => e.data.uuid);
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(se({ path: { uuid: e } }))).map((e) => e.data.uuid);
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(le({ path: { uuid: e } }));
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(re({ path: {
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(De({ path: { uuid: e } }))).map((e) => e.data.uuid);
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(Ee({ path: { uuid: e } }));
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(Ce({
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(ye({ path: { uuid: e } }))).map((e) => Re.fromDto(e.data));
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(oe({ path: { uuid: e } }))).map((e) => e.data.items.map(He.fromDto));
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(ce({ query: { token: e } }))).map((e) => Y.fromPublicDto(e.data));
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(be({ query: { token: e } }))).map((e) => Y.fromPublicProFormaDto(e.data));
674
+ return (await f.fromPromise(_e({ query: { token: e } }))).map((e) => Y.fromPublicProFormaDto(e.data));
675
675
  }
676
- static async markAsDraft(t) {
677
- let n = await f.fromPromise(e({ path: { uuid: t } }));
678
- return f.void(n);
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(Te({ path: { uuid: e } }));
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(d({ path: { uuid: e } }));
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(u({ path: { uuid: e } }));
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(n({ path: { uuid: e } }));
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(t({ query: F.toDto(e) }))).map((e) => e.data);
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(a({ query: F.toDto(e) }))).map((e) => e.data);
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(pe({ query: F.toDto(e) }))).map((e) => e.data);
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(o({
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(c({ path: { uuid: e } }));
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(r({ path: { uuid: e } }));
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 t = await f.fromPromise(Oe({ path: { uuid: e } }));
728
- return f.void(t);
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(l({ path: { uuid: e } }));
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(te({ path: { uuid: e } }));
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(xe({
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(ee({
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(i({
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(ue({ path: { uuid: e } }));
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 { H as e, Q as t, at as n, t as r } from "./api.util-DpWaDY5y.js";
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-BebJpPKg.js";
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(t())).map((e) => e.data.items);
64
+ return (await r.fromPromise(e())).map((e) => e.data.items);
65
65
  }
66
- static async updateReminderConfigs(t) {
67
- let n = await r.fromPromise(e({ body: c.toDto(t) }));
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,4 +1,4 @@
1
- import "./api.util-DpWaDY5y.js";
1
+ import "./api.util-BxDrxtn6.js";
2
2
  import { _ as e, a as t, g as n, o as r } from "./documentTitle.composable-BqZWKGw1.js";
3
3
  //#region src/modules/invoice/models/invoice/invoiceApprovalStatus.util.ts
4
4
  var i = {
@@ -1,5 +1,5 @@
1
- import { et as e, t, tt as n } from "./api.util-DpWaDY5y.js";
2
- import { o as r } from "./invoice.service-Dugf3vP3.js";
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(e) {
29
- return (await t.fromPromise(n({ query: o.toDto(e) }))).map((e) => ({
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(n) {
35
- return (await t.fromPromise(e({ path: { uuid: n } }))).map((e) => i.fromDto(e.data));
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,4 +1,4 @@
1
- import { t as e } from "./invoice.service-Dugf3vP3.js";
1
+ import { t as e } from "./invoice.service-DfMS-JGk.js";
2
2
  import { useQuery as t } from "@wisemen/vue-core-api-utils";
3
3
  //#region src/modules/invoice/api/queries/invoiceDetail.query.ts
4
4
  function n(n) {
@@ -1,7 +1,7 @@
1
- import "./api.util-DpWaDY5y.js";
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-DX_7bMFM.js";
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";
@@ -1,5 +1,5 @@
1
- import { t as e } from "./i18n.lib-Be2_Gg1d.js";
2
- import { _t as t } from "./api.util-DpWaDY5y.js";
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 { J as e, lt as t, t as n } from "./api.util-DpWaDY5y.js";
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 n.fromPromise(t({ responseValidator: void 0 }))).map((e) => m.fromDto(e.data));
191
+ return (await t.fromPromise(n({ responseValidator: void 0 }))).map((e) => m.fromDto(e.data));
192
192
  }
193
- static async update(t) {
194
- let r = await n.fromPromise(e({ body: m.toDto(t) }));
195
- return n.void(r);
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
@@ -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 { A as e, I as t, L as n, X as r, it as i, mt as a, rt as o, s, t as c } from "./api.util-DpWaDY5y.js";
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(i({ query: {
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(o({ path: { uuid: e } }))).map((e) => K.fromDetailDto(e.data));
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(a())).map((e) => e.data.items.map(K.fromReminderConfigDto));
268
+ return (await c.fromPromise(i())).map((e) => e.data.items.map(K.fromReminderConfigDto));
269
269
  }
270
- static async previewBulk(t) {
271
- return (await c.fromPromise(e({ query: { filter: q(t) } }))).map((e) => e.data);
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(e) {
274
- let n = await c.fromPromise(t({ path: { uuid: e } }));
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 t = await c.fromPromise(n({ path: { uuid: e } }));
279
- return c.void(t);
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(r({ body: { reminders: K.reminderConfigsToDto(e) } }));
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wisemen/wise-invoicing-web",
3
3
  "type": "module",
4
- "version": "0.13.0",
4
+ "version": "0.14.0",
5
5
  "private": false,
6
6
  "description": "Invoicing frontend package with Vue 3 components, composables and types",
7
7
  "author": "Wisemen",