@wisemen/wise-invoicing-web 0.12.0 → 0.13.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 (47) hide show
  1. package/dist/{ApprovalReminderSettingsViewDataProvider-BnHeEMZD.js → ApprovalReminderSettingsViewDataProvider-HANaeRzK.js} +3 -3
  2. package/dist/{BillingDocumentDetailViewDataProvider-Dm8C5WNN.js → BillingDocumentDetailViewDataProvider-BVrmLEP5.js} +9 -14
  3. package/dist/{BillingDocumentPdf-57ksqoPW.js → BillingDocumentPdf-BLlJw5Wp.js} +3 -3
  4. package/dist/{CreditNoteDetailViewDataProvider-CC4gnwSN.js → CreditNoteDetailViewDataProvider-CnmNQyXq.js} +6 -6
  5. package/dist/{CreditNotePdfViewDataProvider-C9vgN3kV.js → CreditNotePdfViewDataProvider-Bu8lNWSx.js} +3 -3
  6. package/dist/{CustomFieldValueText-CvWq0fl_.js → CustomFieldValueText-DX_7bMFM.js} +2 -2
  7. package/dist/{DunningCaseSendDialog-CfWSrquA.js → DunningCaseSendDialog-D5_uNt0g.js} +12 -12
  8. package/dist/{InvoiceApprovalOutOfSyncIndicator-CKLAraIU.js → InvoiceApprovalOutOfSyncIndicator-CX7hLBIC.js} +1 -1
  9. package/dist/{InvoiceApprovalOverviewView-DpL-vV8_.js → InvoiceApprovalOverviewView-1pLrgcIU.js} +6 -6
  10. package/dist/{InvoiceApprovalStatusBadge-oVWkCqZY.js → InvoiceApprovalStatusBadge-DqsSuo4M.js} +2 -2
  11. package/dist/{InvoiceApproveDialogDataProvider-serNDdl9.js → InvoiceApproveDialogDataProvider-D22o3mIC.js} +6 -6
  12. package/dist/{InvoiceDetailViewDataProvider-BaT7fgsi.js → InvoiceDetailViewDataProvider-DoqOGDZb.js} +14 -14
  13. package/dist/{InvoicePdfView-MaBnd78V.js → InvoicePdfView-Df9masUV.js} +1 -1
  14. package/dist/{InvoicePdfViewDataProvider-BIHBY608.js → InvoicePdfViewDataProvider-CKCp0TJ7.js} +3 -3
  15. package/dist/{InvoicePublicProFormaPdfViewDataProvider-KY8pN59k.js → InvoicePublicProFormaPdfViewDataProvider-CqAP9Ckj.js} +3 -3
  16. package/dist/{InvoicingFileUploadProvider-CxmF68sz.js → InvoicingFileUploadProvider-Da_JGESE.js} +9 -9
  17. package/dist/IssuerSettingsViewDataProvider-xXQEED2s.js +544 -0
  18. package/dist/{PeppolSettingsViewDataProvider-C7lwtu7n.js → PeppolSettingsViewDataProvider-B4Hu1RQk.js} +4 -4
  19. package/dist/{api.util-Ct8FnoLB.js → api.util-DpWaDY5y.js} +671 -587
  20. package/dist/{billingDocumentDetail.transformer-B3ypgtIv.js → billingDocumentDetail.transformer-BJQFbO87.js} +1 -1
  21. package/dist/client/index.d.ts +2 -2
  22. package/dist/client/sdk.gen.d.ts +3 -1
  23. package/dist/client/types.gen.d.ts +84 -0
  24. package/dist/client/zod.gen.d.ts +2236 -886
  25. package/dist/{creditNoteDetail.query-C2BYvPKC.js → creditNoteDetail.query-BVXYLSMf.js} +18 -18
  26. package/dist/{i18n.lib-8sQYo5_y.js → i18n.lib-Be2_Gg1d.js} +24 -0
  27. package/dist/index.d.ts +24 -0
  28. package/dist/index.js +905 -790
  29. package/dist/{invoice.service-CtePUw1R.js → invoice.service-Dugf3vP3.js} +110 -104
  30. package/dist/{invoiceApproval.service-CQzG8_wX.js → invoiceApproval.service-TTtH_nbV.js} +2 -2
  31. package/dist/{invoiceApprovalStatus.util-C4su45dU.js → invoiceApprovalStatus.util-BebJpPKg.js} +1 -1
  32. package/dist/{invoiceCustomer.service-CzbM3ey1.js → invoiceCustomer.service-BgaMvr34.js} +6 -6
  33. package/dist/{invoiceDetail.query-NNAoIuWN.js → invoiceDetail.query-DaY-Dwp4.js} +1 -1
  34. package/dist/{invoiceIndexCache.util-DI0WM-eW.js → invoiceIndexCache.util-8JQCyWbl.js} +2 -2
  35. package/dist/{invoicingConfig.composable-DXJ71Uq_.js → invoicingConfig.composable-DQTYsGa7.js} +2 -2
  36. package/dist/{issuerSettings.query-ggEHdk0S.js → issuerSettings.query-mMH2f5g6.js} +1 -1
  37. package/dist/libs/i18n.lib.d.ts +24 -0
  38. package/dist/locales/en-US.json.d.ts +12 -0
  39. package/dist/locales/nl-BE.json.d.ts +12 -0
  40. package/dist/modules/invoice/api/mutations/invoiceBulkDelete.mutation.d.ts +5 -0
  41. package/dist/modules/invoice/api/services/invoice.service.d.ts +3 -1
  42. package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewBulkActionBar.vue.d.ts +3 -0
  43. package/dist/modules/invoice/use-cases/overview/dialogs/InvoiceOverviewBulkActionDialog.vue.d.ts +1 -0
  44. package/dist/modules/invoice/use-cases/overview/dialogs/InvoiceOverviewBulkDeleteDialog.vue.d.ts +14 -0
  45. package/dist/{reminderConfig.query-C2xT3DJH.js → reminderConfig.query-Dn0_h7xY.js} +14 -14
  46. package/package.json +1 -1
  47. package/dist/IssuerSettingsViewDataProvider-DJzVZS8Q.js +0 -543
@@ -1,15 +1,15 @@
1
- import { A as e, C as t, D as n, E as r, G as ee, I as te, L as i, M as a, N as o, S as s, T as c, U as ne, W as re, Y as ie, a as l, at as ae, b as oe, c as se, d as ce, dt as le, g as ue, h as de, i as fe, it as pe, j as me, k as he, l as u, m as d, mt as f, n as ge, ot as _e, p as ve, r as ye, s as be, t as p, ut as xe, v as Se, w as Ce, x as we, z as Te } from "./api.util-Ct8FnoLB.js";
2
- import { N as m, b as Ee, f as h, h as g, r as _, x as v } from "./documentTitle.composable-BqZWKGw1.js";
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";
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 De, n as O, o as Oe, r as ke, t as Ae } from "./billingDocumentDetail.transformer-B3ypgtIv.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";
9
9
  import { t as k } from "./dist-BFx8U4Su.js";
10
10
  import A from "zod";
11
- import { ref as je } from "vue";
12
- import { SortUtil as Me } from "@wisemen/vue-core-api-utils";
11
+ import { ref as Ne } from "vue";
12
+ import { SortUtil as Pe } from "@wisemen/vue-core-api-utils";
13
13
  import { Temporal as j } from "temporal-polyfill";
14
14
  //#region ../toolkit/src/utils/monetary/monetary.util.ts
15
15
  var M = class e {
@@ -33,7 +33,7 @@ var M = class e {
33
33
  static toNullableDto(t) {
34
34
  return t === null ? null : e.toDto(t);
35
35
  }
36
- }, Ne = class {
36
+ }, Fe = class {
37
37
  static toDto(e) {
38
38
  let t = e.remarks?.trim() ?? "";
39
39
  return {
@@ -41,7 +41,7 @@ var M = class e {
41
41
  remarks: t === "" ? null : t
42
42
  };
43
43
  }
44
- }, Pe = class {
44
+ }, Ie = class {
45
45
  static toDto(e) {
46
46
  if (e.reason === null) throw Error("A rejection reason is required");
47
47
  let t = e.remarks?.trim() ?? "";
@@ -69,12 +69,12 @@ var M = class e {
69
69
  filter: this.toFilterDto(e.filters),
70
70
  pagination: e.pagination,
71
71
  search: N.toDto(e.search),
72
- sort: Me.toDto(e.sort, {
73
- created_at: m.CREATED_AT,
74
- issued_on: m.ISSUED_ON,
75
- customer: m.CUSTOMER,
76
- netAmount: m.NET_AMOUNT,
77
- sequence: m.SEQUENCE
72
+ sort: Pe.toDto(e.sort, {
73
+ created_at: p.CREATED_AT,
74
+ issued_on: p.ISSUED_ON,
75
+ customer: p.CUSTOMER,
76
+ netAmount: p.NET_AMOUNT,
77
+ sequence: p.SEQUENCE
78
78
  })
79
79
  };
80
80
  }
@@ -97,7 +97,7 @@ var M = class e {
97
97
  search: N.toDto(e.queryParams.search)
98
98
  };
99
99
  }
100
- }, Fe = class {
100
+ }, Le = class {
101
101
  static toDto(e) {
102
102
  return { customerUuid: e.customer.uuid };
103
103
  }
@@ -124,26 +124,26 @@ var M = class e {
124
124
  remark: e.customerRemark
125
125
  };
126
126
  }
127
- }, Ie = class e {
127
+ }, Re = class e {
128
128
  static findActiveApproval(e) {
129
129
  return e.approval.find((e) => e.isActive) ?? null;
130
130
  }
131
131
  static fromDto(t) {
132
132
  let n = e.findActiveApproval(t), r = t.approval.find((e) => e.rejectionReason !== null) ?? null;
133
133
  return {
134
- ...Ae.fromViewInvoiceDetailDto(t, t.uuid, v.STANDARD),
134
+ ...Me.fromViewInvoiceDetailDto(t, t.uuid, v.STANDARD),
135
135
  approvalUuid: n === null ? null : n.uuid,
136
136
  hasApprovalHistory: t.approval.length > 0,
137
137
  hasChangesSinceApprovalSent: t.hasChangesSinceApprovalSent,
138
138
  isEditable: t.isEditable,
139
139
  approval: n === null ? null : I.fromDetailDto(n),
140
140
  approvalEmail: t.customer.approvalEmail,
141
- approvalProFormaFile: n === null ? null : ke.fromNullableDto(n.proFormaFile),
141
+ approvalProFormaFile: n === null ? null : je.fromNullableDto(n.proFormaFile),
142
142
  rejection: r === null ? null : I.rejectionFromDetailDto(r),
143
143
  requiresPriorApproval: t.requiresPriorApproval
144
144
  };
145
145
  }
146
- }, Le = class {
146
+ }, ze = class {
147
147
  static fromDto(e) {
148
148
  return {
149
149
  uuid: e.uuid,
@@ -248,13 +248,13 @@ var M = class e {
248
248
  let { offset: t } = R.getNow().toZonedDateTimeISO(e), [n, r] = t.split(":");
249
249
  return r === "00" ? n : t;
250
250
  }
251
- }, Re = {
251
+ }, Be = {
252
252
  appLanguage: L.getCurrentLocale(),
253
253
  hourCycle: "locale-default",
254
254
  locale: L.getCurrentLocale(),
255
255
  timeZone: z.getCurrentTimeZone()
256
256
  };
257
- je(Re);
257
+ Ne(Be);
258
258
  //#endregion
259
259
  //#region ../date/src/models/form/plainDateField.model.ts
260
260
  var B = A.instanceof(j.PlainDate, { error: () => "Invalid date format" }), V = A.instanceof(j.PlainTime, { error: () => "Invalid time format" }), H = A.object({
@@ -315,7 +315,7 @@ A.object({
315
315
  });
316
316
  //#endregion
317
317
  //#region ../date/src/transformers/instant.transformer.ts
318
- var ze = class {
318
+ var Ve = class {
319
319
  static fromDto(e) {
320
320
  return j.Instant.from(e);
321
321
  }
@@ -341,11 +341,11 @@ var ze = class {
341
341
  static toNullableDto(e) {
342
342
  return e === null ? null : this.toDto(e);
343
343
  }
344
- }, Be = class {
344
+ }, He = class {
345
345
  static fromDto(e) {
346
346
  return {
347
347
  uuid: e.uuid,
348
- createdAt: ze.fromDto(e.createdAt),
348
+ createdAt: Ve.fromDto(e.createdAt),
349
349
  amount: M.fromDto(e.amount),
350
350
  date: K.fromDto(e.date),
351
351
  paymentReference: e.paymentReference,
@@ -353,7 +353,7 @@ var ze = class {
353
353
  source: e.source
354
354
  };
355
355
  }
356
- }, Ve = class {
356
+ }, Ue = class {
357
357
  static toDto(e) {
358
358
  return {
359
359
  amount: M.toDto({
@@ -369,7 +369,7 @@ var ze = class {
369
369
  };
370
370
  //#endregion
371
371
  //#region src/modules/invoice/models/invoice/pdf/invoicePdfDetail.transformer.ts
372
- function He(e) {
372
+ function We(e) {
373
373
  return {
374
374
  uuid: e.uuid,
375
375
  createdAt: C.fromDto(e.createdAt),
@@ -406,8 +406,8 @@ function J(e) {
406
406
  position: e.position
407
407
  };
408
408
  }
409
- function Ue(e) {
410
- return [...e.ungroupedLines, ...De.flattenLines(e.groups)].toSorted((e, t) => e.position - t.position);
409
+ function Ge(e) {
410
+ return [...e.ungroupedLines, ...ke.flattenLines(e.groups)].toSorted((e, t) => e.position - t.position);
411
411
  }
412
412
  var Y = class e {
413
413
  static fromPublicDto(t) {
@@ -415,7 +415,7 @@ var Y = class e {
415
415
  ...e.fromPublicProFormaDto(t),
416
416
  deliveredOn: w.fromNullableDto(t.deliveredOn),
417
417
  dueOn: w.fromNullableDto(t.dueOn),
418
- originalInvoice: t.originalInvoice === null ? null : He(t.originalInvoice),
418
+ originalInvoice: t.originalInvoice === null ? null : We(t.originalInvoice),
419
419
  recipient: t.recipient === null ? null : {
420
420
  name: t.recipient.name,
421
421
  email: t.recipient.email
@@ -458,14 +458,14 @@ var Y = class e {
458
458
  globalDiscount: D.fromDto(e.globalDiscount),
459
459
  grossAmount: S.fromDto(e.grossAmount),
460
460
  groups: e.groups.toSorted((e, t) => e.position - t.position).map(J),
461
- lines: Ue(e).map(q),
461
+ lines: Ge(e).map(q),
462
462
  netAmount: S.fromDto(e.netAmount),
463
463
  originalInvoice: null,
464
464
  paymentReference: e.paymentReference,
465
465
  poNumber: e.poNumber,
466
466
  recipient: null,
467
467
  sequence: null,
468
- status: Ee.READY,
468
+ status: m.READY,
469
469
  subject: e.subject,
470
470
  totalDiscountAmount: S.fromNullableDto(e.totalDiscountAmount),
471
471
  type: v.STANDARD,
@@ -478,7 +478,7 @@ var Y = class e {
478
478
  }))
479
479
  };
480
480
  }
481
- }, We = class {
481
+ }, Ke = class {
482
482
  static toDto(e) {
483
483
  let t = Math.abs(e.value);
484
484
  return e.type === h.PERCENTAGE ? { discount: {
@@ -565,77 +565,80 @@ function $(e) {
565
565
  position: e.position
566
566
  };
567
567
  }
568
- var Ge = class {
568
+ var qe = class {
569
569
  static toDto(e) {
570
570
  return {
571
571
  groups: e.groups.map($),
572
572
  ungroupedLines: e.ungroupedLines.map(Q)
573
573
  };
574
574
  }
575
- }, Ke = class {
575
+ }, Je = class {
576
576
  static async applyDiscount(e, t) {
577
- let n = await p.fromPromise(ge({
578
- body: We.toDto(t),
577
+ let n = await f.fromPromise(_e({
578
+ body: Ke.toDto(t),
579
579
  path: { uuid: e }
580
580
  }));
581
- return p.void(n);
581
+ return f.void(n);
582
582
  }
583
583
  static async approveApproval(e, t) {
584
- let n = await p.fromPromise(ye({
585
- body: Ne.toDto(t),
584
+ let n = await f.fromPromise(Se({
585
+ body: Fe.toDto(t),
586
586
  path: { uuid: e }
587
587
  }));
588
- return p.void(n);
588
+ return f.void(n);
589
589
  }
590
590
  static async archiveApproval(e) {
591
- let t = await p.fromPromise(u({ path: { uuid: e } }));
592
- return p.void(t);
591
+ let t = await f.fromPromise(we({ path: { uuid: e } }));
592
+ return f.void(t);
593
+ }
594
+ static async bulkDelete(e) {
595
+ return (await f.fromPromise(fe({ query: F.toDto(e) }))).map((e) => e.data);
593
596
  }
594
597
  static async bulkFinalize(e) {
595
- return (await p.fromPromise(fe({ query: F.toDto(e) }))).map((e) => e.data);
598
+ return (await f.fromPromise(ie({ query: F.toDto(e) }))).map((e) => e.data);
596
599
  }
597
600
  static async bulkMarkAsReady(e) {
598
- return (await p.fromPromise(l({ query: F.toDto(e) }))).map((e) => e.data);
601
+ return (await f.fromPromise(ve({ query: F.toDto(e) }))).map((e) => e.data);
599
602
  }
600
603
  static async bulkSend(e) {
601
- return (await p.fromPromise(se({ query: F.toDto(e) }))).map((e) => e.data);
604
+ return (await f.fromPromise(he({ query: F.toDto(e) }))).map((e) => e.data);
602
605
  }
603
606
  static async bulkSendApproval(e) {
604
- return (await p.fromPromise(be({ query: F.toDto(e) }))).map((e) => e.data);
607
+ return (await f.fromPromise(ae({ query: F.toDto(e) }))).map((e) => e.data);
605
608
  }
606
609
  static async create(e) {
607
- return (await p.fromPromise(ve({ body: Fe.toDto(e) }))).map((e) => e.data.uuid);
610
+ return (await f.fromPromise(ge({ body: Le.toDto(e) }))).map((e) => e.data.uuid);
608
611
  }
609
612
  static async createCreditNote(e) {
610
- return (await p.fromPromise(ce({ path: { uuid: e } }))).map((e) => e.data.uuid);
613
+ return (await f.fromPromise(se({ path: { uuid: e } }))).map((e) => e.data.uuid);
611
614
  }
612
615
  static async createPayment(e, t) {
613
- let n = await p.fromPromise(d({
614
- body: Ve.toDto(t),
616
+ let n = await f.fromPromise(de({
617
+ body: Ue.toDto(t),
615
618
  path: { uuid: e }
616
619
  }));
617
- return p.void(n);
620
+ return f.void(n);
618
621
  }
619
622
  static async delete(e) {
620
- let t = await p.fromPromise(de({ path: { uuid: e } }));
621
- return p.void(t);
623
+ let t = await f.fromPromise(le({ path: { uuid: e } }));
624
+ return f.void(t);
622
625
  }
623
626
  static async deletePayment(e, t) {
624
- let n = await p.fromPromise(ue({ path: {
627
+ let n = await f.fromPromise(re({ path: {
625
628
  uuid: e,
626
629
  paymentUuid: t
627
630
  } }));
628
- return p.void(n);
631
+ return f.void(n);
629
632
  }
630
633
  static async duplicate(e) {
631
- return (await p.fromPromise(Se({ path: { uuid: e } }))).map((e) => e.data.uuid);
634
+ return (await f.fromPromise(De({ path: { uuid: e } }))).map((e) => e.data.uuid);
632
635
  }
633
636
  static async finalize(e) {
634
- let t = await p.fromPromise(oe({ path: { uuid: e } }));
635
- return p.void(t);
637
+ let t = await f.fromPromise(Ee({ path: { uuid: e } }));
638
+ return f.void(t);
636
639
  }
637
640
  static async getActivityLogs(e, t) {
638
- return (await p.fromPromise(ie({ query: {
641
+ return (await f.fromPromise(ne({ query: {
639
642
  filter: {
640
643
  entityUuids: [e],
641
644
  roles: [_.INVOICE]
@@ -645,115 +648,118 @@ var Ge = class {
645
648
  limit: t.pagination.limit
646
649
  }
647
650
  } }))).map((e) => ({
648
- data: e.data.logs.map(Oe.fromDto),
651
+ data: e.data.logs.map(Ae.fromDto),
649
652
  meta: { next: e.data.nextKey }
650
653
  }));
651
654
  }
652
655
  static async getAll(e) {
653
- return (await p.fromPromise(ae({
656
+ return (await f.fromPromise(Ce({
654
657
  query: P.toDto(e),
655
658
  responseValidator: void 0
656
659
  }))).map((e) => ({
657
- data: e.data.items.map(Le.fromDto),
660
+ data: e.data.items.map(ze.fromDto),
658
661
  meta: e.data.meta
659
662
  }));
660
663
  }
661
664
  static async getByUuid(e) {
662
- return (await p.fromPromise(pe({ path: { uuid: e } }))).map((e) => Ie.fromDto(e.data));
665
+ return (await f.fromPromise(ye({ path: { uuid: e } }))).map((e) => Re.fromDto(e.data));
663
666
  }
664
667
  static async getPayments(e) {
665
- return (await p.fromPromise(_e({ path: { uuid: e } }))).map((e) => e.data.items.map(Be.fromDto));
668
+ return (await f.fromPromise(oe({ path: { uuid: e } }))).map((e) => e.data.items.map(He.fromDto));
666
669
  }
667
670
  static async getPublicDetail(e) {
668
- return (await p.fromPromise(xe({ query: { token: e } }))).map((e) => Y.fromPublicDto(e.data));
671
+ return (await f.fromPromise(ce({ query: { token: e } }))).map((e) => Y.fromPublicDto(e.data));
669
672
  }
670
673
  static async getPublicProFormaDetail(e) {
671
- return (await p.fromPromise(le({ query: { token: e } }))).map((e) => Y.fromPublicProFormaDto(e.data));
674
+ return (await f.fromPromise(be({ query: { token: e } }))).map((e) => Y.fromPublicProFormaDto(e.data));
672
675
  }
673
- static async markAsDraft(e) {
674
- let t = await p.fromPromise(s({ path: { uuid: e } }));
675
- return p.void(t);
676
+ static async markAsDraft(t) {
677
+ let n = await f.fromPromise(e({ path: { uuid: t } }));
678
+ return f.void(n);
676
679
  }
677
680
  static async markAsPaid(e) {
678
- let n = await p.fromPromise(t({ path: { uuid: e } }));
679
- return p.void(n);
681
+ let t = await f.fromPromise(Te({ path: { uuid: e } }));
682
+ return f.void(t);
680
683
  }
681
684
  static async markAsPriorApprovalRequired(e) {
682
- let t = await p.fromPromise(Ce({ path: { uuid: e } }));
683
- return p.void(t);
685
+ let t = await f.fromPromise(d({ path: { uuid: e } }));
686
+ return f.void(t);
684
687
  }
685
688
  static async markAsProtested(e) {
686
- let t = await p.fromPromise(we({ path: { uuid: e } }));
687
- return p.void(t);
689
+ let t = await f.fromPromise(u({ path: { uuid: e } }));
690
+ return f.void(t);
688
691
  }
689
692
  static async markAsReady(e) {
690
- let t = await p.fromPromise(c({ path: { uuid: e } }));
691
- return p.void(t);
693
+ let t = await f.fromPromise(n({ path: { uuid: e } }));
694
+ return f.void(t);
695
+ }
696
+ static async previewBulkDelete(e) {
697
+ return (await f.fromPromise(t({ query: F.toDto(e) }))).map((e) => e.data);
692
698
  }
693
699
  static async previewBulkFinalize(e) {
694
- return (await p.fromPromise(r({ query: F.toDto(e) }))).map((e) => e.data);
700
+ return (await f.fromPromise(s({ query: F.toDto(e) }))).map((e) => e.data);
695
701
  }
696
702
  static async previewBulkMarkAsReady(e) {
697
- return (await p.fromPromise(n({ query: F.toDto(e) }))).map((e) => e.data);
703
+ return (await f.fromPromise(me({ query: F.toDto(e) }))).map((e) => e.data);
698
704
  }
699
- static async previewBulkSend(t) {
700
- return (await p.fromPromise(e({ query: F.toDto(t) }))).map((e) => e.data);
705
+ static async previewBulkSend(e) {
706
+ return (await f.fromPromise(a({ query: F.toDto(e) }))).map((e) => e.data);
701
707
  }
702
708
  static async previewBulkSendApproval(e) {
703
- return (await p.fromPromise(he({ query: F.toDto(e) }))).map((e) => e.data);
709
+ return (await f.fromPromise(pe({ query: F.toDto(e) }))).map((e) => e.data);
704
710
  }
705
711
  static async rejectApproval(e, t) {
706
- let n = await p.fromPromise(me({
707
- body: Pe.toDto(t),
712
+ let n = await f.fromPromise(o({
713
+ body: Ie.toDto(t),
708
714
  path: { uuid: e }
709
715
  }));
710
- return p.void(n);
716
+ return f.void(n);
711
717
  }
712
718
  static async restartApproval(e) {
713
- let t = await p.fromPromise(a({ path: { uuid: e } }));
714
- return p.void(t);
719
+ let t = await f.fromPromise(c({ path: { uuid: e } }));
720
+ return f.void(t);
715
721
  }
716
722
  static async restoreFromProForma(e) {
717
- let t = await p.fromPromise(o({ path: { uuid: e } }));
718
- return p.void(t);
723
+ let t = await f.fromPromise(r({ path: { uuid: e } }));
724
+ return f.void(t);
719
725
  }
720
726
  static async send(e) {
721
- let t = await p.fromPromise(i({ path: { uuid: e } }));
722
- return p.void(t);
727
+ let t = await f.fromPromise(Oe({ path: { uuid: e } }));
728
+ return f.void(t);
723
729
  }
724
730
  static async sendApproval(e) {
725
- let t = await p.fromPromise(te({ path: { uuid: e } }));
726
- return p.void(t);
731
+ let t = await f.fromPromise(l({ path: { uuid: e } }));
732
+ return f.void(t);
727
733
  }
728
734
  static async unmarkAsPriorApprovalRequired(e) {
729
- let t = await p.fromPromise(Te({ path: { uuid: e } }));
730
- return p.void(t);
735
+ let t = await f.fromPromise(te({ path: { uuid: e } }));
736
+ return f.void(t);
731
737
  }
732
738
  static async update(e, t) {
733
- let n = await p.fromPromise(ee({
739
+ let n = await f.fromPromise(xe({
734
740
  body: Z.toDto(t),
735
741
  path: { uuid: e }
736
742
  }));
737
- return p.void(n);
743
+ return f.void(n);
738
744
  }
739
745
  static async updateAttachments(e, t) {
740
- let n = await p.fromPromise(ne({
746
+ let n = await f.fromPromise(ee({
741
747
  body: X.toDto(t),
742
748
  path: { uuid: e }
743
749
  }));
744
- return p.void(n);
750
+ return f.void(n);
745
751
  }
746
752
  static async updateLines(e, t) {
747
- let n = await p.fromPromise(re({
748
- body: Ge.toDto(t),
753
+ let n = await f.fromPromise(i({
754
+ body: qe.toDto(t),
749
755
  path: { uuid: e }
750
756
  }));
751
- return p.void(n);
757
+ return f.void(n);
752
758
  }
753
759
  static async withdrawProtest(e) {
754
- let t = await p.fromPromise(f({ path: { uuid: e } }));
755
- return p.void(t);
760
+ let t = await f.fromPromise(ue({ path: { uuid: e } }));
761
+ return f.void(t);
756
762
  }
757
763
  };
758
764
  //#endregion
759
- export { R as a, B as i, Z as n, N as o, X as r, Ke as t };
765
+ export { R as a, B as i, Z as n, N as o, X as r, Je as t };
@@ -1,6 +1,6 @@
1
- import { B as e, X as t, rt as n, t as r } from "./api.util-Ct8FnoLB.js";
1
+ import { H as e, Q as t, at as n, t as r } from "./api.util-DpWaDY5y.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-C4su45dU.js";
3
+ import { t as s } from "./invoiceApprovalStatus.util-BebJpPKg.js";
4
4
  //#region src/modules/invoice-approval/models/approvalReminderConfig.transformer.ts
5
5
  var c = class {
6
6
  static toDto(e) {
@@ -1,4 +1,4 @@
1
- import "./api.util-Ct8FnoLB.js";
1
+ import "./api.util-DpWaDY5y.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 { $ as e, Q as t, t as n } from "./api.util-Ct8FnoLB.js";
2
- import { o as r } from "./invoice.service-CtePUw1R.js";
1
+ import { et as e, t, tt as n } from "./api.util-DpWaDY5y.js";
2
+ import { o as r } from "./invoice.service-Dugf3vP3.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(t) {
29
- return (await n.fromPromise(e({ query: o.toDto(t) }))).map((e) => ({
28
+ static async getAll(e) {
29
+ return (await t.fromPromise(n({ query: o.toDto(e) }))).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(e) {
35
- return (await n.fromPromise(t({ path: { uuid: e } }))).map((e) => i.fromDto(e.data));
34
+ static async getByUuid(n) {
35
+ return (await t.fromPromise(e({ path: { uuid: n } }))).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-CtePUw1R.js";
1
+ import { t as e } from "./invoice.service-Dugf3vP3.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-Ct8FnoLB.js";
1
+ import "./api.util-DpWaDY5y.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-CvWq0fl_.js";
4
+ import { n as r } from "./CustomFieldValueText-DX_7bMFM.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-8sQYo5_y.js";
2
- import { ht as t } from "./api.util-Ct8FnoLB.js";
1
+ import { t as e } from "./i18n.lib-Be2_Gg1d.js";
2
+ import { _t as t } from "./api.util-DpWaDY5y.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 { K as e, st as t, t as n } from "./api.util-Ct8FnoLB.js";
1
+ import { J as e, lt as t, t as n } from "./api.util-DpWaDY5y.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";
@@ -105,6 +105,16 @@ export declare const i18nPlugin: import('vue-i18n').I18n<{
105
105
  "wise_invoicing.invoice.overview.columns.created_by": string;
106
106
  "wise_invoicing.invoice.overview.active_filters": string;
107
107
  "wise_invoicing.invoice.overview.bulk.cancel": string;
108
+ "wise_invoicing.invoice.overview.bulk.delete.action": string;
109
+ "wise_invoicing.invoice.overview.bulk.delete.confirm": string;
110
+ "wise_invoicing.invoice.overview.bulk.delete.description": string;
111
+ "wise_invoicing.invoice.overview.bulk.delete.loading": string;
112
+ "wise_invoicing.invoice.overview.bulk.delete.none_processable": string;
113
+ "wise_invoicing.invoice.overview.bulk.delete.processable": string;
114
+ "wise_invoicing.invoice.overview.bulk.delete.skipped": string;
115
+ "wise_invoicing.invoice.overview.bulk.delete.skipped_preview": string;
116
+ "wise_invoicing.invoice.overview.bulk.delete.success": string;
117
+ "wise_invoicing.invoice.overview.bulk.delete.title": string;
108
118
  "wise_invoicing.invoice.overview.bulk.finalize.action": string;
109
119
  "wise_invoicing.invoice.overview.bulk.finalize.confirm": string;
110
120
  "wise_invoicing.invoice.overview.bulk.finalize.description": string;
@@ -138,6 +148,7 @@ export declare const i18nPlugin: import('vue-i18n').I18n<{
138
148
  "wise_invoicing.invoice.overview.bulk.skip_reason.approval_already_sent": string;
139
149
  "wise_invoicing.invoice.overview.bulk.skip_reason.approval_not_required": string;
140
150
  "wise_invoicing.invoice.overview.bulk.skip_reason.already_approved": string;
151
+ "wise_invoicing.invoice.overview.bulk.skip_reason.has_approval": string;
141
152
  "wise_invoicing.invoice.overview.bulk.skip_reason.issued_on_before_last_issued": string;
142
153
  "wise_invoicing.invoice.overview.bulk.skip_reason.issued_on_in_closed_period": string;
143
154
  "wise_invoicing.invoice.overview.bulk.skip_reason.issued_on_in_future": string;
@@ -689,6 +700,7 @@ export declare const i18nPlugin: import('vue-i18n').I18n<{
689
700
  "wise_invoicing.settings.fields.default_payment_term.suffix": string;
690
701
  "wise_invoicing.settings.fields.sequence_prefix.label": string;
691
702
  "wise_invoicing.settings.fields.sequence_prefix.placeholder": string;
703
+ "wise_invoicing.settings.fields.sequence_prefix.only_letters": string;
692
704
  "wise_invoicing.settings.fields.credit_note_sequence_prefix.label": string;
693
705
  "wise_invoicing.settings.fields.credit_note_sequence_prefix.placeholder": string;
694
706
  "wise_invoicing.settings.fields.sequence_date_format.label": string;
@@ -1094,6 +1106,16 @@ export declare const i18nPlugin: import('vue-i18n').I18n<{
1094
1106
  "wise_invoicing.invoice.overview.columns.created_by": string;
1095
1107
  "wise_invoicing.invoice.overview.active_filters": string;
1096
1108
  "wise_invoicing.invoice.overview.bulk.cancel": string;
1109
+ "wise_invoicing.invoice.overview.bulk.delete.action": string;
1110
+ "wise_invoicing.invoice.overview.bulk.delete.confirm": string;
1111
+ "wise_invoicing.invoice.overview.bulk.delete.description": string;
1112
+ "wise_invoicing.invoice.overview.bulk.delete.loading": string;
1113
+ "wise_invoicing.invoice.overview.bulk.delete.none_processable": string;
1114
+ "wise_invoicing.invoice.overview.bulk.delete.processable": string;
1115
+ "wise_invoicing.invoice.overview.bulk.delete.skipped": string;
1116
+ "wise_invoicing.invoice.overview.bulk.delete.skipped_preview": string;
1117
+ "wise_invoicing.invoice.overview.bulk.delete.success": string;
1118
+ "wise_invoicing.invoice.overview.bulk.delete.title": string;
1097
1119
  "wise_invoicing.invoice.overview.bulk.finalize.action": string;
1098
1120
  "wise_invoicing.invoice.overview.bulk.finalize.confirm": string;
1099
1121
  "wise_invoicing.invoice.overview.bulk.finalize.description": string;
@@ -1127,6 +1149,7 @@ export declare const i18nPlugin: import('vue-i18n').I18n<{
1127
1149
  "wise_invoicing.invoice.overview.bulk.skip_reason.approval_already_sent": string;
1128
1150
  "wise_invoicing.invoice.overview.bulk.skip_reason.approval_not_required": string;
1129
1151
  "wise_invoicing.invoice.overview.bulk.skip_reason.already_approved": string;
1152
+ "wise_invoicing.invoice.overview.bulk.skip_reason.has_approval": string;
1130
1153
  "wise_invoicing.invoice.overview.bulk.skip_reason.issued_on_before_last_issued": string;
1131
1154
  "wise_invoicing.invoice.overview.bulk.skip_reason.issued_on_in_closed_period": string;
1132
1155
  "wise_invoicing.invoice.overview.bulk.skip_reason.issued_on_in_future": string;
@@ -1678,6 +1701,7 @@ export declare const i18nPlugin: import('vue-i18n').I18n<{
1678
1701
  "wise_invoicing.settings.fields.default_payment_term.suffix": string;
1679
1702
  "wise_invoicing.settings.fields.sequence_prefix.label": string;
1680
1703
  "wise_invoicing.settings.fields.sequence_prefix.placeholder": string;
1704
+ "wise_invoicing.settings.fields.sequence_prefix.only_letters": string;
1681
1705
  "wise_invoicing.settings.fields.credit_note_sequence_prefix.label": string;
1682
1706
  "wise_invoicing.settings.fields.credit_note_sequence_prefix.placeholder": string;
1683
1707
  "wise_invoicing.settings.fields.sequence_date_format.label": string;
@@ -98,6 +98,16 @@ declare const _default: {
98
98
  "wise_invoicing.invoice.overview.columns.created_by": "Created by",
99
99
  "wise_invoicing.invoice.overview.active_filters": "{count} active filters",
100
100
  "wise_invoicing.invoice.overview.bulk.cancel": "Cancel",
101
+ "wise_invoicing.invoice.overview.bulk.delete.action": "Delete",
102
+ "wise_invoicing.invoice.overview.bulk.delete.confirm": "Delete",
103
+ "wise_invoicing.invoice.overview.bulk.delete.description": "Only the selected invoices in this table will be deleted. This cannot be undone.",
104
+ "wise_invoicing.invoice.overview.bulk.delete.loading": "Checking selected invoices...",
105
+ "wise_invoicing.invoice.overview.bulk.delete.none_processable": "None of the selected invoices can be deleted.",
106
+ "wise_invoicing.invoice.overview.bulk.delete.processable": "{count} invoice will be deleted. | {count} invoices will be deleted.",
107
+ "wise_invoicing.invoice.overview.bulk.delete.skipped": "{count} invoice could not be deleted. | {count} invoices could not be deleted.",
108
+ "wise_invoicing.invoice.overview.bulk.delete.skipped_preview": "{count} invoice cannot be deleted. | {count} invoices cannot be deleted.",
109
+ "wise_invoicing.invoice.overview.bulk.delete.success": "{count} invoice has been deleted. | {count} invoices have been deleted.",
110
+ "wise_invoicing.invoice.overview.bulk.delete.title": "Delete {count} invoice? | Delete {count} invoices?",
101
111
  "wise_invoicing.invoice.overview.bulk.finalize.action": "Finalize",
102
112
  "wise_invoicing.invoice.overview.bulk.finalize.confirm": "Finalize",
103
113
  "wise_invoicing.invoice.overview.bulk.finalize.description": "Only the selected invoices in this table will be finalized.",
@@ -131,6 +141,7 @@ declare const _default: {
131
141
  "wise_invoicing.invoice.overview.bulk.skip_reason.approval_already_sent": "An approval request is already out for this invoice.",
132
142
  "wise_invoicing.invoice.overview.bulk.skip_reason.approval_not_required": "This invoice does not need approval.",
133
143
  "wise_invoicing.invoice.overview.bulk.skip_reason.already_approved": "This invoice is already approved.",
144
+ "wise_invoicing.invoice.overview.bulk.skip_reason.has_approval": "This invoice has an approval request and cannot be deleted.",
134
145
  "wise_invoicing.invoice.overview.bulk.skip_reason.issued_on_before_last_issued": "The issue date is earlier than the last numbered invoice.",
135
146
  "wise_invoicing.invoice.overview.bulk.skip_reason.issued_on_in_closed_period": "The numbering for the issue date is already closed.",
136
147
  "wise_invoicing.invoice.overview.bulk.skip_reason.issued_on_in_future": "The issue date is in the future.",
@@ -682,6 +693,7 @@ declare const _default: {
682
693
  "wise_invoicing.settings.fields.default_payment_term.suffix": "days",
683
694
  "wise_invoicing.settings.fields.sequence_prefix.label": "Invoice prefix",
684
695
  "wise_invoicing.settings.fields.sequence_prefix.placeholder": "e.g. WSM",
696
+ "wise_invoicing.settings.fields.sequence_prefix.only_letters": "Only letters (A-Z) are allowed",
685
697
  "wise_invoicing.settings.fields.credit_note_sequence_prefix.label": "Credit note prefix",
686
698
  "wise_invoicing.settings.fields.credit_note_sequence_prefix.placeholder": "e.g. CN",
687
699
  "wise_invoicing.settings.fields.sequence_date_format.label": "Date",