@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.
- package/dist/{ApprovalReminderSettingsViewDataProvider-BZBuz6EF.js → ApprovalReminderSettingsViewDataProvider-DMWLX53_.js} +11 -11
- package/dist/{BillingDocumentDetailViewDataProvider-BCADHPFR.js → BillingDocumentDetailViewDataProvider-jpp-QwPi.js} +1474 -1454
- package/dist/{BillingDocumentPdf-ddBlGdIN.js → BillingDocumentPdf-Zw3GXZVE.js} +82 -82
- package/dist/{DunningCaseSendDialog-fgL9OsV8.js → DunningCaseSendDialog-CA-nzjzV.js} +23 -23
- package/dist/{InvoiceApprovalOutOfSyncIndicator-BoPBNXx1.js → InvoiceApprovalOutOfSyncIndicator-Dnw03isr.js} +1 -1
- package/dist/{InvoiceApprovalOverviewView-BIiJ6gen.js → InvoiceApprovalOverviewView-CoJXggOy.js} +140 -140
- package/dist/{InvoiceApprovalStatusBadge-CaVSCtI0.js → InvoiceApprovalStatusBadge-BWx3Fhuy.js} +3 -3
- package/dist/{InvoicePdfView-BRJaAErd.js → InvoicePdfView-Bv5aMLh6.js} +2 -2
- package/dist/{InvoicePublicProFormaPdfViewDataProvider-mZaggXYf.js → InvoicePublicProFormaPdfViewDataProvider-Ca7-AmAH.js} +3 -3
- package/dist/{InvoiceApproveDialogDataProvider-C9NhZX-D.js → InvoiceRejectDialog-Ca-4nz4U.js} +178 -178
- package/dist/{invoiceDeliveryStatus.util-Dp9hD1Tj.js → InvoiceStatusBadge-uXAh9ypU.js} +83 -83
- package/dist/{InvoicingFileUploadProvider-rU9APFrt.js → InvoicingFileUploadProvider-C3cyIUhL.js} +2 -2
- package/dist/IssuerSettingsViewDataProvider-C-CRF9sK.js +544 -0
- package/dist/{PeppolSettingsViewDataProvider-DymLdaRM.js → PeppolSettingsViewDataProvider-COQEInsh.js} +32 -32
- package/dist/{api.util-sW4gNny-.js → api.util-DSerLsgA.js} +666 -648
- package/dist/billingDocumentDetail.transformer-ClWwi8h4.js +310 -0
- package/dist/client/index.d.ts +2 -2
- package/dist/client/sdk.gen.d.ts +5 -5
- package/dist/client/types.gen.d.ts +81 -46
- package/dist/client/zod.gen.d.ts +1304 -96
- package/dist/{creditNoteDetail.query-DiS_-xFz.js → creditNoteDetail.query-q1b6nzu0.js} +5 -5
- package/dist/{InvoiceDeliverySendDialog-BICcd6Cf.js → customFieldDefinitionIndex.query-DQxer9Je.js} +236 -239
- package/dist/{deliveryReason.util-KBh3q_-P.js → deliveryReason.util-BlxvUaz0.js} +2 -2
- package/dist/{dist-C99_-gWv.js → dist-47-1LAzT.js} +6 -6
- package/dist/{documentTitle.composable-Dl8Cm3v3.js → documentTitle.composable-D5uPh3uG.js} +37 -35
- package/dist/{i18n.lib-DckceEsg.js → i18n.lib-DB15VQsH.js} +2 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +6021 -3054
- package/dist/{invoice.service-2QiktTs9.js → invoice.service-BKgP2p8z.js} +199 -198
- package/dist/{invoiceApproval.service-DXIKgCI_.js → invoiceApproval.service-oT1fvhsW.js} +5 -4
- package/dist/{invoiceApprovalStatus.util-CB5pi_hm.js → invoiceApprovalStatus.util-D17DWEh1.js} +29 -29
- package/dist/{invoiceCustomer.service-BNQJt1KV.js → invoiceCustomer.service-CLYUR6vc.js} +2 -2
- package/dist/{invoiceDetail.query-MIrBYgNS.js → invoiceDetail.query-CzyZqT82.js} +1 -1
- package/dist/{invoicingConfig.composable-D-hxnEnh.js → invoicingConfig.composable-CzgTMtog.js} +2 -2
- package/dist/{issuerSettings.query-CR7EtvNm.js → issuerSettings.query-D8T34N7f.js} +27 -27
- package/dist/libs/i18n.lib.d.ts +2 -0
- package/dist/locales/en-US.json.d.ts +1 -0
- package/dist/locales/nl-BE.json.d.ts +1 -0
- package/dist/modules/invoice/api/mutations/invoiceBulkSendApproval.mutation.d.ts +2 -2
- package/dist/modules/invoice/api/services/invoice.service.d.ts +3 -3
- package/dist/modules/invoice/models/invoice/detail/invoiceDetail.model.d.ts +2 -1
- package/dist/modules/invoice/models/invoice/index/invoiceIndexQueryParams.model.d.ts +1 -0
- package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewBulkActionBar.vue.d.ts +2 -2
- package/dist/modules/invoice-approval/actions/invoiceApprovalSendRequest.action.d.ts +1 -1
- package/dist/modules/invoice-approval/models/invoiceApprovalIndex.model.d.ts +2 -1
- package/dist/{reminderConfig.query-DJmhJp6W.js → reminderConfig.query-CFmCWWlO.js} +7 -7
- package/dist/ui/billing-document/table/field/BillingDocumentLineItemsTableField.vue.d.ts +1 -1
- package/package.json +1 -1
- package/dist/CreditNoteDetailViewDataProvider-Donn5pVv.js +0 -816
- package/dist/CreditNotePdfViewDataProvider-c-apCeCW.js +0 -22
- package/dist/InvoiceDetailViewDataProvider-BppXFT6D.js +0 -2176
- package/dist/InvoicePdfViewDataProvider-J7NP1Dhh.js +0 -22
- package/dist/IssuerSettingsViewDataProvider-D13f6rvi.js +0 -544
- package/dist/billingDocumentDetail.transformer-DcNMzl46.js +0 -310
- package/dist/download.util-LyRpGWKA.js +0 -25
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "./api.util-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
5
|
-
import {
|
|
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) =>
|
|
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,
|
|
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(),
|
|
46
|
-
function
|
|
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,
|
|
54
|
-
items:
|
|
55
|
-
"display-fn":
|
|
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,
|
|
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,
|
|
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(
|
|
100
|
-
let
|
|
101
|
-
m.set(() =>
|
|
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(() =>
|
|
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:
|
|
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 =
|
|
115
|
+
let t = a.fromApiError(e);
|
|
116
116
|
t === null ? c.apiError(e) : c.show({
|
|
117
|
-
message:
|
|
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
|
|
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:
|
|
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(
|
|
133
|
-
description: v(
|
|
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:
|
|
148
|
+
providers: o.settings.providers
|
|
149
149
|
}, null, 8, ["field", "providers"]), p(F, {
|
|
150
150
|
field: v(V),
|
|
151
|
-
"has-saved-key":
|
|
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(
|
|
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":
|
|
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(
|
|
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 =
|
|
189
|
-
return (e,
|
|
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"]));
|