@wisemen/wise-invoicing-web 0.18.0 → 0.20.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 (55) hide show
  1. package/dist/{ApprovalReminderSettingsViewDataProvider-BZBuz6EF.js → ApprovalReminderSettingsViewDataProvider-DMWLX53_.js} +11 -11
  2. package/dist/{BillingDocumentDetailViewDataProvider-BCADHPFR.js → BillingDocumentDetailViewDataProvider-jpp-QwPi.js} +1474 -1454
  3. package/dist/{BillingDocumentPdf-ddBlGdIN.js → BillingDocumentPdf-Zw3GXZVE.js} +82 -82
  4. package/dist/{DunningCaseSendDialog-fgL9OsV8.js → DunningCaseSendDialog-CA-nzjzV.js} +23 -23
  5. package/dist/{InvoiceApprovalOutOfSyncIndicator-BoPBNXx1.js → InvoiceApprovalOutOfSyncIndicator-Dnw03isr.js} +1 -1
  6. package/dist/{InvoiceApprovalOverviewView-BIiJ6gen.js → InvoiceApprovalOverviewView-CoJXggOy.js} +140 -140
  7. package/dist/{InvoiceApprovalStatusBadge-CaVSCtI0.js → InvoiceApprovalStatusBadge-BWx3Fhuy.js} +3 -3
  8. package/dist/{InvoicePdfView-BRJaAErd.js → InvoicePdfView-Bv5aMLh6.js} +2 -2
  9. package/dist/{InvoicePublicProFormaPdfViewDataProvider-mZaggXYf.js → InvoicePublicProFormaPdfViewDataProvider-Ca7-AmAH.js} +3 -3
  10. package/dist/{InvoiceApproveDialogDataProvider-C9NhZX-D.js → InvoiceRejectDialog-Ca-4nz4U.js} +178 -178
  11. package/dist/{invoiceDeliveryStatus.util-Dp9hD1Tj.js → InvoiceStatusBadge-uXAh9ypU.js} +83 -83
  12. package/dist/{InvoicingFileUploadProvider-rU9APFrt.js → InvoicingFileUploadProvider-C3cyIUhL.js} +2 -2
  13. package/dist/IssuerSettingsViewDataProvider-C-CRF9sK.js +544 -0
  14. package/dist/{PeppolSettingsViewDataProvider-DymLdaRM.js → PeppolSettingsViewDataProvider-COQEInsh.js} +32 -32
  15. package/dist/{api.util-sW4gNny-.js → api.util-DSerLsgA.js} +666 -648
  16. package/dist/billingDocumentDetail.transformer-ClWwi8h4.js +310 -0
  17. package/dist/client/index.d.ts +2 -2
  18. package/dist/client/sdk.gen.d.ts +5 -5
  19. package/dist/client/types.gen.d.ts +81 -46
  20. package/dist/client/zod.gen.d.ts +1304 -96
  21. package/dist/{creditNoteDetail.query-DiS_-xFz.js → creditNoteDetail.query-q1b6nzu0.js} +5 -5
  22. package/dist/{InvoiceDeliverySendDialog-BICcd6Cf.js → customFieldDefinitionIndex.query-DQxer9Je.js} +236 -239
  23. package/dist/{deliveryReason.util-KBh3q_-P.js → deliveryReason.util-BlxvUaz0.js} +2 -2
  24. package/dist/{dist-C99_-gWv.js → dist-47-1LAzT.js} +6 -6
  25. package/dist/{documentTitle.composable-Dl8Cm3v3.js → documentTitle.composable-D5uPh3uG.js} +37 -35
  26. package/dist/{i18n.lib-DckceEsg.js → i18n.lib-DB15VQsH.js} +2 -0
  27. package/dist/index.d.ts +6 -0
  28. package/dist/index.js +6021 -3054
  29. package/dist/{invoice.service-2QiktTs9.js → invoice.service-BKgP2p8z.js} +199 -198
  30. package/dist/{invoiceApproval.service-DXIKgCI_.js → invoiceApproval.service-oT1fvhsW.js} +5 -4
  31. package/dist/{invoiceApprovalStatus.util-CB5pi_hm.js → invoiceApprovalStatus.util-D17DWEh1.js} +29 -29
  32. package/dist/{invoiceCustomer.service-BNQJt1KV.js → invoiceCustomer.service-CLYUR6vc.js} +2 -2
  33. package/dist/{invoiceDetail.query-MIrBYgNS.js → invoiceDetail.query-CzyZqT82.js} +1 -1
  34. package/dist/{invoicingConfig.composable-D-hxnEnh.js → invoicingConfig.composable-CzgTMtog.js} +2 -2
  35. package/dist/{issuerSettings.query-CR7EtvNm.js → issuerSettings.query-D8T34N7f.js} +27 -27
  36. package/dist/libs/i18n.lib.d.ts +2 -0
  37. package/dist/locales/en-US.json.d.ts +1 -0
  38. package/dist/locales/nl-BE.json.d.ts +1 -0
  39. package/dist/modules/invoice/api/mutations/invoiceBulkSendApproval.mutation.d.ts +2 -2
  40. package/dist/modules/invoice/api/services/invoice.service.d.ts +3 -3
  41. package/dist/modules/invoice/models/invoice/detail/invoiceDetail.model.d.ts +2 -1
  42. package/dist/modules/invoice/models/invoice/index/invoiceIndexQueryParams.model.d.ts +1 -0
  43. package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewBulkActionBar.vue.d.ts +2 -2
  44. package/dist/modules/invoice-approval/actions/invoiceApprovalSendRequest.action.d.ts +1 -1
  45. package/dist/modules/invoice-approval/models/invoiceApprovalIndex.model.d.ts +2 -1
  46. package/dist/{reminderConfig.query-DJmhJp6W.js → reminderConfig.query-CFmCWWlO.js} +7 -7
  47. package/dist/ui/billing-document/table/field/BillingDocumentLineItemsTableField.vue.d.ts +1 -1
  48. package/package.json +1 -1
  49. package/dist/CreditNoteDetailViewDataProvider-Donn5pVv.js +0 -816
  50. package/dist/CreditNotePdfViewDataProvider-c-apCeCW.js +0 -22
  51. package/dist/InvoiceDetailViewDataProvider-BppXFT6D.js +0 -2176
  52. package/dist/InvoicePdfViewDataProvider-J7NP1Dhh.js +0 -22
  53. package/dist/IssuerSettingsViewDataProvider-D13f6rvi.js +0 -544
  54. package/dist/billingDocumentDetail.transformer-DcNMzl46.js +0 -310
  55. package/dist/download.util-LyRpGWKA.js +0 -25
@@ -1,8 +1,8 @@
1
- import "./api.util-sW4gNny-.js";
2
- import { E as e, t } from "./documentTitle.composable-Dl8Cm3v3.js";
3
- import { t as n } from "./DataProvider-BtnD-BzI.js";
4
- import { t as r } from "./formango.util-D5c2ql--.js";
5
- import { i, n as a, r as o, t as s } from "./deliveryReason.util-KBh3q_-P.js";
1
+ import "./api.util-DSerLsgA.js";
2
+ import { D as e, t } from "./documentTitle.composable-D5uPh3uG.js";
3
+ import { i as n, n as r, r as i, t as a } from "./deliveryReason.util-BlxvUaz0.js";
4
+ import { t as o } from "./formango.util-D5c2ql--.js";
5
+ import { t as s } from "./DataProvider-BtnD-BzI.js";
6
6
  import c from "zod";
7
7
  import { useI18n as l } from "vue-i18n";
8
8
  import { computed as u, createBlock as d, createElementVNode as f, createVNode as p, defineComponent as m, mergeProps as h, openBlock as g, ref as _, unref as v, withCtx as y } from "vue";
@@ -12,7 +12,7 @@ import { useForm as N } from "formango";
12
12
  //#region src/modules/invoice-delivery/api/mutations/peppolConnectionUpdate.mutation.ts
13
13
  function P() {
14
14
  return b({
15
- queryFn: (e) => o.update(e.body),
15
+ queryFn: (e) => i.update(e.body),
16
16
  queryKeysToInvalidate: { peppolConnection: {} }
17
17
  });
18
18
  }
@@ -26,7 +26,7 @@ var F = /* @__PURE__ */ m({
26
26
  },
27
27
  setup(e) {
28
28
  let t = e, n = l();
29
- return (e, i) => (g(), d(v(A), h(v(r)(t.field), {
29
+ return (e, r) => (g(), d(v(A), h(v(o)(t.field), {
30
30
  label: v(n).t("wise_invoicing.delivery.settings.api_key"),
31
31
  hint: v(n).t(t.hasSavedKey ? "wise_invoicing.delivery.settings.key_saved" : "wise_invoicing.delivery.settings.key_hint"),
32
32
  type: "password",
@@ -42,17 +42,17 @@ var F = /* @__PURE__ */ m({
42
42
  field: {}
43
43
  },
44
44
  setup(e) {
45
- let t = e, n = l(), i = u(() => t.isTestCurrent ? j(t.companies.map((e) => e.id)) : j(t.savedPartyId === null ? [] : [t.savedPartyId]));
46
- function a(e) {
45
+ let t = e, n = l(), r = u(() => t.isTestCurrent ? j(t.companies.map((e) => e.id)) : j(t.savedPartyId === null ? [] : [t.savedPartyId]));
46
+ function i(e) {
47
47
  let r = t.companies.find((t) => t.id === e);
48
48
  return r === void 0 ? e : n.t("wise_invoicing.delivery.settings.company_option", {
49
49
  name: r.name,
50
50
  vatNumber: r.vatNumber
51
51
  });
52
52
  }
53
- return (e, o) => (g(), d(v(k), h(v(r)(t.field), {
54
- items: i.value,
55
- "display-fn": a,
53
+ return (e, a) => (g(), d(v(k), h(v(o)(t.field), {
54
+ items: r.value,
55
+ "display-fn": i,
56
56
  label: v(n).t("wise_invoicing.delivery.settings.company"),
57
57
  "is-disabled": !t.isTestCurrent,
58
58
  "is-required": !0
@@ -67,7 +67,7 @@ var F = /* @__PURE__ */ m({
67
67
  props: { field: {} },
68
68
  setup(e) {
69
69
  let t = e, n = l();
70
- return (e, i) => (g(), d(v(S), h(v(r)(t.field), { label: v(n).t("wise_invoicing.delivery.settings.enabled") }), null, 16, ["label"]));
70
+ return (e, r) => (g(), d(v(S), h(v(o)(t.field), { label: v(n).t("wise_invoicing.delivery.settings.enabled") }), null, 16, ["label"]));
71
71
  }
72
72
  }), R = /* @__PURE__ */ m({
73
73
  __name: "PeppolConnectionFormProviderField",
@@ -77,7 +77,7 @@ var F = /* @__PURE__ */ m({
77
77
  },
78
78
  setup(e) {
79
79
  let t = e, n = l();
80
- return (e, i) => (g(), d(v(k), h(v(r)(t.field), {
80
+ return (e, r) => (g(), d(v(k), h(v(o)(t.field), {
81
81
  items: v(j)(t.providers),
82
82
  "display-fn": (e) => v(n).t(`wise_invoicing.delivery.provider.${e}`),
83
83
  label: v(n).t("wise_invoicing.delivery.settings.provider"),
@@ -96,15 +96,15 @@ var F = /* @__PURE__ */ m({
96
96
  }), B = { class: "flex max-w-xl flex-col gap-lg" }, V = /* @__PURE__ */ m({
97
97
  __name: "PeppolSettingsView",
98
98
  props: { settings: {} },
99
- setup(n) {
100
- let r = n, a = l(), c = M(), m = t(), h = P(), b = _([]), S = _(!1), k = _(null);
101
- m.set(() => a.t("wise_invoicing.delivery.settings.title"));
99
+ setup(r) {
100
+ let o = r, s = l(), c = M(), m = t(), h = P(), b = _([]), S = _(!1), k = _(null);
101
+ m.set(() => s.t("wise_invoicing.delivery.settings.title"));
102
102
  let A = N({
103
- initialState: u(() => i.toForm(r.settings)),
103
+ initialState: u(() => n.toForm(o.settings)),
104
104
  schema: z,
105
105
  onSubmit: async (e) => {
106
106
  let t = await h.execute({ body: e });
107
- t.isErr() ? q(t.error) : (K(), k.value = null, c.show({ message: a.t("wise_invoicing.delivery.settings.saved") }));
107
+ t.isErr() ? q(t.error) : (K(), k.value = null, c.show({ message: s.t("wise_invoicing.delivery.settings.saved") }));
108
108
  },
109
109
  onSubmitError: () => c.unableToSave()
110
110
  }), j = A.register("provider", e.SOLUZ), V = A.register("apiKey", ""), H = A.register("partyId", ""), U = A.register("enabled", !1), W = u(() => JSON.stringify([j.modelValue.value, V.modelValue.value])), G = u(() => k.value === W.value);
@@ -112,25 +112,25 @@ var F = /* @__PURE__ */ m({
112
112
  V.setValue("");
113
113
  }
114
114
  function q(e) {
115
- let t = s.fromApiError(e);
115
+ let t = a.fromApiError(e);
116
116
  t === null ? c.apiError(e) : c.show({
117
- message: a.t(t),
117
+ message: s.t(t),
118
118
  variant: "error"
119
119
  });
120
120
  }
121
121
  async function J() {
122
122
  S.value = !0;
123
- let e = W.value, t = await o.test({
123
+ let e = W.value, t = await i.test({
124
124
  partyId: H.modelValue.value,
125
125
  apiKey: V.modelValue.value,
126
126
  enabled: U.modelValue.value,
127
127
  provider: j.modelValue.value
128
128
  });
129
- S.value = !1, e === W.value && (t.isErr() ? q(t.error) : (b.value = t.value, t.value.some((e) => e.id === H.modelValue.value) || H.setValue(""), k.value = e, c.show({ message: a.t("wise_invoicing.delivery.settings.test_success") })));
129
+ S.value = !1, e === W.value && (t.isErr() ? q(t.error) : (b.value = t.value, t.value.some((e) => e.id === H.modelValue.value) || H.setValue(""), k.value = e, c.show({ message: s.t("wise_invoicing.delivery.settings.test_success") })));
130
130
  }
131
131
  return (e, t) => (g(), d(v(C), {
132
- title: v(a).t("wise_invoicing.delivery.settings.title"),
133
- description: v(a).t("wise_invoicing.delivery.settings.description")
132
+ title: v(s).t("wise_invoicing.delivery.settings.title"),
133
+ description: v(s).t("wise_invoicing.delivery.settings.description")
134
134
  }, {
135
135
  default: y(() => [p(v(w), null, {
136
136
  default: y(() => [p(v(T), {
@@ -145,10 +145,10 @@ var F = /* @__PURE__ */ m({
145
145
  }, {
146
146
  default: y(() => [p(R, {
147
147
  field: v(j),
148
- providers: r.settings.providers
148
+ providers: o.settings.providers
149
149
  }, null, 8, ["field", "providers"]), p(F, {
150
150
  field: v(V),
151
- "has-saved-key": r.settings.connection?.hasApiKey ?? !1
151
+ "has-saved-key": o.settings.connection?.hasApiKey ?? !1
152
152
  }, null, 8, ["field", "has-saved-key"])]),
153
153
  _: 1
154
154
  })]),
@@ -156,7 +156,7 @@ var F = /* @__PURE__ */ m({
156
156
  }),
157
157
  p(v(x), {
158
158
  "is-loading": S.value,
159
- label: v(a).t("wise_invoicing.delivery.settings.test"),
159
+ label: v(s).t("wise_invoicing.delivery.settings.test"),
160
160
  type: "button",
161
161
  variant: "secondary",
162
162
  onClick: J
@@ -165,7 +165,7 @@ var F = /* @__PURE__ */ m({
165
165
  field: v(H),
166
166
  companies: b.value,
167
167
  "is-test-current": G.value,
168
- "saved-party-id": r.settings.connection?.partyId ?? null
168
+ "saved-party-id": o.settings.connection?.partyId ?? null
169
169
  }, null, 8, [
170
170
  "field",
171
171
  "companies",
@@ -173,7 +173,7 @@ var F = /* @__PURE__ */ m({
173
173
  "saved-party-id"
174
174
  ]),
175
175
  p(L, { field: v(U) }, null, 8, ["field"]),
176
- p(v(O), { label: v(a).t("wise_invoicing.common.save") }, null, 8, ["label"])
176
+ p(v(O), { label: v(s).t("wise_invoicing.common.save") }, null, 8, ["label"])
177
177
  ])]),
178
178
  _: 1
179
179
  }, 8, ["form"])]),
@@ -185,8 +185,8 @@ var F = /* @__PURE__ */ m({
185
185
  }), H = /* @__PURE__ */ m({
186
186
  __name: "PeppolSettingsViewDataProvider",
187
187
  setup(e) {
188
- let t = a();
189
- return (e, r) => (g(), d(n, { queries: { settings: v(t) } }, {
188
+ let t = r();
189
+ return (e, n) => (g(), d(s, { queries: { settings: v(t) } }, {
190
190
  default: y(({ data: e }) => [p(V, { settings: e.settings }, null, 8, ["settings"])]),
191
191
  _: 1
192
192
  }, 8, ["queries"]));