@wisemen/wise-invoicing-web 1.1.0 → 1.2.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 (91) hide show
  1. package/dist/AccountingSettingsViewDataProvider-BtDPqr_P.js +981 -0
  2. package/dist/{ApprovalReminderSettingsViewDataProvider-DyrHExKn.js → ApprovalReminderSettingsViewDataProvider-CuFo2JF5.js} +287 -287
  3. package/dist/{BillingDocumentDetailViewDataProvider-BsMGrki9.js → BillingDocumentDetailViewDataProvider-qKW6LiRR.js} +1629 -1604
  4. package/dist/{BillingDocumentPdf-DFKxdbZX.js → BillingDocumentPdf-CgnrE4eq.js} +5 -5
  5. package/dist/{DataProvider-BtnD-BzI.js → DataProvider-Dj5ckiN2.js} +6 -9
  6. package/dist/{DunningCaseSendDialog-S1W7M38u.js → DunningCaseSendDialog-CQ1yvbUt.js} +36 -36
  7. package/dist/{InvoiceApprovalOutOfSyncIndicator-DaM5hQVT.js → InvoiceApprovalOutOfSyncIndicator-BeqzoD3H.js} +2 -2
  8. package/dist/{InvoiceApprovalOverviewView-DM_LiO19.js → InvoiceApprovalOverviewView-B0ulYsYy.js} +230 -230
  9. package/dist/{InvoiceApprovalStatusBadge-mbYHYU3x.js → InvoiceApprovalStatusBadge-BZuyVHKk.js} +4 -4
  10. package/dist/{InvoicePdfView-qHeP8BNd.js → InvoicePdfView-BBTa7EaO.js} +2 -2
  11. package/dist/{InvoicePublicProFormaPdfViewDataProvider-BZVlYijT.js → InvoicePublicProFormaPdfViewDataProvider-_Tbt2pTv.js} +4 -4
  12. package/dist/{InvoiceRejectDialogDataProvider-yegAlkDB.js → InvoiceRejectDialogDataProvider-ma2UsSzC.js} +33 -33
  13. package/dist/{InvoiceStatusBadge-CRfN5LpT.js → InvoiceStatusBadge-JIR1gUDL.js} +3 -3
  14. package/dist/{InvoicingFileUploadProvider-DVh22OUB.js → InvoicingFileUploadProvider-B-eq6i9v.js} +14 -14
  15. package/dist/{IssuerSettingsViewDataProvider-BgSFemZr.js → IssuerSettingsViewDataProvider-CHyCCy9K.js} +66 -66
  16. package/dist/{PeppolSettingsViewDataProvider-_Bx0xx9e.js → PeppolSettingsViewDataProvider-j1btvXOf.js} +4 -4
  17. package/dist/{api.util-lGbimoKL.js → api.util-BkwbrwEm.js} +1026 -800
  18. package/dist/billingDocumentDetail.transformer-B-GSRQc0.js +324 -0
  19. package/dist/client/index.d.ts +2 -2
  20. package/dist/client/sdk.gen.d.ts +10 -1
  21. package/dist/client/types.gen.d.ts +452 -1
  22. package/dist/client/zod.gen.d.ts +524 -0
  23. package/dist/{creditNoteDetail.query-CqJeWeRV.js → creditNoteDetail.query-Tg4s5B8Q.js} +34 -34
  24. package/dist/{customFieldDefinitionIndex.query-BPNS8LMx.js → customFieldDefinitionIndex.query-DtMibcTn.js} +28 -28
  25. package/dist/{deliveryReason.util-ny1rA7Sm.js → deliveryReason.util-BuCD1Fuz.js} +6 -6
  26. package/dist/{dist-CrNFh-CR.js → dist-AbMUaDf-.js} +93 -93
  27. package/dist/{dist-DmVrfBOT.js → dist-DaJ08k0k.js} +231 -119
  28. package/dist/{documentTitle.composable-aTEYXgaZ.js → documentTitle.composable-Bxu0YL71.js} +27 -19
  29. package/dist/{i18n.lib-B1H9r0km.js → i18n.lib-C8TA6PCf.js} +162 -2
  30. package/dist/index.d.ts +160 -0
  31. package/dist/index.js +1576 -1554
  32. package/dist/instant.transformer-KmBsH3E9.js +18 -0
  33. package/dist/{invoice.service-D9ubyWPb.js → invoice.service-BtgRZKrv.js} +152 -151
  34. package/dist/{invoiceApproval.service-BtDIOHIo.js → invoiceApproval.service-DEvaL-MH.js} +22 -21
  35. package/dist/invoiceApprovalStatus.util-NpxAuQ0t.js +83 -0
  36. package/dist/{invoiceCustomer.service-D0AtVrLg.js → invoiceCustomer.service-Cowdna7o.js} +6 -6
  37. package/dist/{invoiceDetail.query-BNL6MkvC.js → invoiceDetail.query-nEhWRrdL.js} +1 -1
  38. package/dist/{invoicingConfig.composable-D2bnX7HW.js → invoicingConfig.composable-CW47czLa.js} +2 -2
  39. package/dist/{issuerSettings.query-Cu-I6OAg.js → issuerSettings.query-CIWw1Zku.js} +27 -27
  40. package/dist/libs/i18n.lib.d.ts +160 -0
  41. package/dist/locales/en-US.json.d.ts +81 -1
  42. package/dist/locales/nl-BE.json.d.ts +81 -1
  43. package/dist/models/billing-document/billingDocumentDetail.model.d.ts +7 -1
  44. package/dist/modules/accounting/api/mutations/accountingConnectionDisconnect.mutation.d.ts +4 -0
  45. package/dist/modules/accounting/api/mutations/accountingPostingProfileUpdate.mutation.d.ts +15 -0
  46. package/dist/modules/accounting/api/mutations/exactAccountingConnect.mutation.d.ts +6 -0
  47. package/dist/modules/accounting/api/queries/accountingConnection.query.d.ts +1 -0
  48. package/dist/modules/accounting/api/queries/exactAuthorizationConfig.query.d.ts +1 -0
  49. package/dist/modules/accounting/api/queries/exactGlAccounts.query.d.ts +3 -0
  50. package/dist/modules/accounting/api/queries/exactJournals.query.d.ts +3 -0
  51. package/dist/modules/accounting/api/query-keys/accounting.queryKeys.d.ts +24 -0
  52. package/dist/modules/accounting/api/services/accountingConnection.service.d.ts +19 -0
  53. package/dist/modules/accounting/components/AccountingPostingProfileFields.vue.d.ts +14 -0
  54. package/dist/modules/accounting/components/AccountingSyncStatusBadge.vue.d.ts +7 -0
  55. package/dist/modules/accounting/components/ExactGlAccountField.vue.d.ts +12 -0
  56. package/dist/modules/accounting/components/ExactLogo.vue.d.ts +3 -0
  57. package/dist/modules/accounting/composables/exactLookupError.composable.d.ts +19 -0
  58. package/dist/modules/accounting/models/accountingConnection.model.d.ts +34 -0
  59. package/dist/modules/accounting/models/accountingConnection.transformer.d.ts +23 -0
  60. package/dist/modules/accounting/models/accountingConnection.transformer.spec.d.ts +1 -0
  61. package/dist/modules/accounting/models/accountingConnectionReadiness.util.d.ts +10 -0
  62. package/dist/modules/accounting/models/accountingConnectionUuid.model.d.ts +3 -0
  63. package/dist/modules/accounting/models/accountingError.util.d.ts +13 -0
  64. package/dist/modules/accounting/models/accountingError.util.spec.d.ts +1 -0
  65. package/dist/modules/accounting/models/accountingPostingProfileForm.model.d.ts +14 -0
  66. package/dist/modules/accounting/models/accountingPostingProfileForm.model.spec.d.ts +1 -0
  67. package/dist/modules/accounting/models/accountingPostingProfileUpdateForm.model.d.ts +17 -0
  68. package/dist/modules/accounting/models/exactAccountingConnectForm.model.d.ts +9 -0
  69. package/dist/modules/accounting/models/exactAccountingConnectForm.model.spec.d.ts +1 -0
  70. package/dist/modules/accounting/models/exactLookupOption.model.d.ts +5 -0
  71. package/dist/modules/accounting/models/exactLookupOption.util.d.ts +4 -0
  72. package/dist/modules/accounting/models/exactRegion.util.d.ts +5 -0
  73. package/dist/modules/accounting/models/exactRegion.util.spec.d.ts +1 -0
  74. package/dist/modules/accounting/routes/accounting.routes.d.ts +9 -0
  75. package/dist/modules/accounting/use-cases/settings/components/AccountingConnectionDetails.vue.d.ts +7 -0
  76. package/dist/modules/accounting/use-cases/settings/components/AccountingConnectionNotice.vue.d.ts +11 -0
  77. package/dist/modules/accounting/use-cases/settings/components/AccountingPostingProfileForm.vue.d.ts +8 -0
  78. package/dist/modules/accounting/use-cases/settings/components/ExactAccountingConnectForm.vue.d.ts +12 -0
  79. package/dist/modules/accounting/use-cases/settings/composables/accountingAuthorizationResult.composable.d.ts +5 -0
  80. package/dist/modules/accounting/use-cases/settings/composables/exactConnect.composable.d.ts +11 -0
  81. package/dist/modules/accounting/use-cases/settings/dialogs/AccountingConnectionDisconnectDialog.vue.d.ts +11 -0
  82. package/dist/modules/accounting/use-cases/settings/views/AccountingSettingsView.vue.d.ts +9 -0
  83. package/dist/modules/accounting/use-cases/settings/views/AccountingSettingsViewDataProvider.vue.d.ts +3 -0
  84. package/dist/modules/settings/routes/settings.routes.d.ts +7 -0
  85. package/dist/{plainDate.transformer-Bhiz9jW7.js → plainDate.transformer-BxvJpJOv.js} +4 -17
  86. package/dist/{reminderConfig.query-DHMHVOeX.js → reminderConfig.query-nb1P7ufx.js} +38 -37
  87. package/dist/types/queryKey.type.d.ts +3 -2
  88. package/dist/ui/data-provider/DataProvider.vue.d.ts +5 -1
  89. package/package.json +1 -1
  90. package/dist/billingDocumentDetail.transformer-C5-zjIhL.js +0 -319
  91. package/dist/invoiceApprovalStatus.util-Bqq_bILG.js +0 -83
@@ -1,22 +1,22 @@
1
- import { C as e, E as t, J as n, O as r, Y as i, f as a, mt as o, rt as s, t as c, y as l } from "./api.util-lGbimoKL.js";
2
- import { r as u, w as d } from "./documentTitle.composable-aTEYXgaZ.js";
3
- import { n as f, t as p } from "./plainDate.transformer-Bhiz9jW7.js";
4
- import { a as m, n as h, o as g, t as _ } from "./billingDocumentDetail.transformer-C5-zjIhL.js";
5
- import { t as v } from "./dist-CwkVU5yS.js";
1
+ import { A as e, O as t, Q as n, St as r, T as i, Z as a, b as o, ct as s, p as c, t as l } from "./api.util-BkwbrwEm.js";
2
+ import { O as u, o as d } from "./documentTitle.composable-Bxu0YL71.js";
3
+ import { a as f, n as p, o as m, t as h } from "./billingDocumentDetail.transformer-B-GSRQc0.js";
4
+ import { t as g } from "./dist-CwkVU5yS.js";
5
+ import { n as _, t as v } from "./plainDate.transformer-BxvJpJOv.js";
6
6
  import { useQuery as y } from "@wisemen/vue-core-api-utils";
7
7
  //#region src/modules/credit-note/models/detail/creditNoteDetail.transformer.ts
8
8
  var b = class {
9
9
  static fromDto(e) {
10
- return _.fromViewInvoiceDetailDto(e, e.uuid, d.CREDIT_NOTE);
10
+ return h.fromViewInvoiceDetailDto(e, e.uuid, u.CREDIT_NOTE);
11
11
  }
12
12
  }, x = class {
13
13
  static toDto(e) {
14
14
  return {
15
- issuedOn: p.toDto(e.issuedOn),
16
- externalRemarks: v.trimOrNull(e.externalRemarks),
17
- poNumber: v.trimOrNull(e.poNumber),
18
- reference: v.trimOrNull(e.reference),
19
- subject: v.trimOrNull(e.subject)
15
+ issuedOn: v.toDto(e.issuedOn),
16
+ externalRemarks: g.trimOrNull(e.externalRemarks),
17
+ poNumber: g.trimOrNull(e.poNumber),
18
+ reference: g.trimOrNull(e.reference),
19
+ subject: g.trimOrNull(e.subject)
20
20
  };
21
21
  }
22
22
  static toForm(e) {
@@ -36,13 +36,13 @@ function S(e) {
36
36
  externalId: e.externalId,
37
37
  isDiscount: e.isDiscount,
38
38
  name: e.name,
39
- customFields: e.customFields.map(h.toDto),
39
+ customFields: e.customFields.map(p.toDto),
40
40
  description: e.description,
41
- discount: m.toDto(e.discount),
41
+ discount: f.toDto(e.discount),
42
42
  position: e.position,
43
43
  quantity: Math.abs(e.quantity),
44
44
  unit: e.unit,
45
- unitPrice: f.toDto(e.unitPrice),
45
+ unitPrice: _.toDto(e.unitPrice),
46
46
  vatRate: e.vatRate
47
47
  };
48
48
  }
@@ -50,7 +50,7 @@ function C(e) {
50
50
  return {
51
51
  externalId: e.externalId,
52
52
  name: e.name,
53
- customFields: e.customFields.map(h.toDto),
53
+ customFields: e.customFields.map(p.toDto),
54
54
  description: e.description,
55
55
  groups: e.groups.map(C),
56
56
  lines: e.lines.map(S),
@@ -66,55 +66,55 @@ var w = class {
66
66
  }
67
67
  }, T = class {
68
68
  static async copyToInvoice(e) {
69
- return (await c.fromPromise(a({ path: { uuid: e } }))).map((e) => e.data.uuid);
69
+ return (await l.fromPromise(c({ path: { uuid: e } }))).map((e) => e.data.uuid);
70
70
  }
71
71
  static async delete(e) {
72
- let t = await c.fromPromise(l({ path: { uuid: e } }));
73
- return c.void(t);
72
+ let t = await l.fromPromise(o({ path: { uuid: e } }));
73
+ return l.void(t);
74
74
  }
75
- static async finalize(t) {
76
- let n = await c.fromPromise(e({ path: { uuid: t } }));
77
- return c.void(n);
75
+ static async finalize(e) {
76
+ let t = await l.fromPromise(i({ path: { uuid: e } }));
77
+ return l.void(t);
78
78
  }
79
79
  static async getActivityLogs(e, t) {
80
- return (await c.fromPromise(s({ query: {
80
+ return (await l.fromPromise(s({ query: {
81
81
  filter: {
82
82
  entityUuids: [e],
83
- roles: [u.CREDIT_NOTE]
83
+ roles: [d.CREDIT_NOTE]
84
84
  },
85
85
  pagination: {
86
86
  key: t.pagination.key ?? null,
87
87
  limit: t.pagination.limit
88
88
  }
89
89
  } }))).map((e) => ({
90
- data: e.data.logs.map(g.fromDto),
90
+ data: e.data.logs.map(m.fromDto),
91
91
  meta: { next: e.data.nextKey }
92
92
  }));
93
93
  }
94
94
  static async getByUuid(e) {
95
- return (await c.fromPromise(o({ path: { uuid: e } }))).map((e) => b.fromDto(e.data));
95
+ return (await l.fromPromise(r({ path: { uuid: e } }))).map((e) => b.fromDto(e.data));
96
96
  }
97
97
  static async markAsDraft(e) {
98
- let n = await c.fromPromise(t({ path: { uuid: e } }));
99
- return c.void(n);
98
+ let n = await l.fromPromise(t({ path: { uuid: e } }));
99
+ return l.void(n);
100
100
  }
101
- static async markAsReady(e) {
102
- let t = await c.fromPromise(r({ path: { uuid: e } }));
103
- return c.void(t);
101
+ static async markAsReady(t) {
102
+ let n = await l.fromPromise(e({ path: { uuid: t } }));
103
+ return l.void(n);
104
104
  }
105
105
  static async update(e, t) {
106
- let n = await c.fromPromise(i({
106
+ let r = await l.fromPromise(n({
107
107
  body: x.toDto(t),
108
108
  path: { uuid: e }
109
109
  }));
110
- return c.void(n);
110
+ return l.void(r);
111
111
  }
112
112
  static async updateLines(e, t) {
113
- let r = await c.fromPromise(n({
113
+ let n = await l.fromPromise(a({
114
114
  body: w.toDto(t),
115
115
  path: { uuid: e }
116
116
  }));
117
- return c.void(r);
117
+ return l.void(n);
118
118
  }
119
119
  };
120
120
  //#endregion
@@ -1,9 +1,9 @@
1
- import { B as e, P as t, V as n, c as r, ot as i, pt as a, t as o } from "./api.util-lGbimoKL.js";
2
- import { C as s, S as c, d as l, p as u } from "./documentTitle.composable-aTEYXgaZ.js";
1
+ import { H as e, I as t, U as n, c as r, dt as i, t as a, xt as o } from "./api.util-BkwbrwEm.js";
2
+ import { D as s, E as c, g as l, m as u } from "./documentTitle.composable-Bxu0YL71.js";
3
3
  import { r as d } from "./useCurrencyFormat.composable-MtZaqKnO.js";
4
- import { n as f } from "./invoicingConfig.composable-D2bnX7HW.js";
4
+ import { n as f } from "./invoicingConfig.composable-CW47czLa.js";
5
5
  import { r as p } from "./dist-CyUNvdkD.js";
6
- import { n as ee, t as te } from "./deliveryReason.util-ny1rA7Sm.js";
6
+ import { n as ee, t as te } from "./deliveryReason.util-BuCD1Fuz.js";
7
7
  import { t as m } from "./formango.util-D5c2ql--.js";
8
8
  import h from "zod";
9
9
  import { useI18n as g } from "vue-i18n";
@@ -140,10 +140,10 @@ var V = {
140
140
  }
141
141
  }, U = class {
142
142
  static async get(e) {
143
- return (await o.fromPromise(a({ path: { uuid: e } }))).map((e) => e.data.deliveries.map((e) => H.fromDto(e)));
143
+ return (await a.fromPromise(o({ path: { uuid: e } }))).map((e) => e.data.deliveries.map((e) => H.fromDto(e)));
144
144
  }
145
145
  static async preview(e) {
146
- return (await o.fromPromise(t({
146
+ return (await a.fromPromise(t({
147
147
  body: {
148
148
  channels: e.channels,
149
149
  invoiceUuids: e.invoiceUuids
@@ -152,7 +152,7 @@ var V = {
152
152
  }))).map((e) => H.resultFromDto(e.data));
153
153
  }
154
154
  static async send(e) {
155
- return (await o.fromPromise(r({
155
+ return (await a.fromPromise(r({
156
156
  body: {
157
157
  channels: e.channels,
158
158
  invoiceUuids: e.invoiceUuids
@@ -161,13 +161,13 @@ var V = {
161
161
  }))).map((e) => H.resultFromDto(e.data));
162
162
  }
163
163
  static async sendInvoice(e, t) {
164
- return (await o.fromPromise(n({
164
+ return (await a.fromPromise(n({
165
165
  body: { channels: t },
166
166
  path: { uuid: e }
167
167
  }))).map((e) => H.resultFromDto(e.data));
168
168
  }
169
169
  static async sendReminder(t) {
170
- return (await o.fromPromise(e({ path: { uuid: t } }))).map((e) => e.data.uuid);
170
+ return (await a.fromPromise(e({ path: { uuid: t } }))).map((e) => e.data.uuid);
171
171
  }
172
172
  };
173
173
  //#endregion
@@ -227,7 +227,7 @@ var he = /* @__PURE__ */ T({
227
227
  },
228
228
  emits: ["close"],
229
229
  setup(e, { emit: t }) {
230
- let n = e, r = t, i = g(), a = le(), o = me(), s = ee(), c = k(null), l = k(!1), d = 0, f = k(!1), p = k(""), m = k(!1), h = ue({
230
+ let n = e, r = t, i = g(), a = le(), o = me(), s = ee(), c = k(null), u = k(!1), d = 0, f = k(!1), p = k(""), m = k(!1), h = ue({
231
231
  initialState: {
232
232
  email: !0,
233
233
  peppol: !1
@@ -239,8 +239,8 @@ var he = /* @__PURE__ */ T({
239
239
  let e = s.result.value;
240
240
  return e.isOk() ? e.getValue().connection : null;
241
241
  }), D = v(() => {
242
- let e = [...C.modelValue.value ? [u.EMAIL] : [], ...T.modelValue.value ? [u.PEPPOL] : []];
243
- return l.value && n.query !== void 0 ? {
242
+ let e = [...C.modelValue.value ? [l.EMAIL] : [], ...T.modelValue.value ? [l.PEPPOL] : []];
243
+ return u.value && n.query !== void 0 ? {
244
244
  channels: e,
245
245
  query: n.query
246
246
  } : n.selectedQuery === void 0 ? {
@@ -293,8 +293,8 @@ var he = /* @__PURE__ */ T({
293
293
  S("div", ve, [
294
294
  n.query === void 0 ? b("", !0) : (O(), y(M(z), {
295
295
  key: 0,
296
- modelValue: l.value,
297
- "onUpdate:modelValue": t[0] ||= (e) => l.value = e,
296
+ modelValue: u.value,
297
+ "onUpdate:modelValue": t[0] ||= (e) => u.value = e,
298
298
  label: M(i).t("wise_invoicing.delivery.send.all_matching"),
299
299
  "is-disabled": M(o).isLoading.value
300
300
  }, null, 8, [
@@ -302,7 +302,7 @@ var he = /* @__PURE__ */ T({
302
302
  "label",
303
303
  "is-disabled"
304
304
  ])),
305
- n.query !== void 0 && !l.value ? (O(), x("p", ye, j(M(i).t("wise_invoicing.delivery.send.selected_count", { count: n.selectedCount ?? n.documents.length })), 1)) : b("", !0),
305
+ n.query !== void 0 && !u.value ? (O(), x("p", ye, j(M(i).t("wise_invoicing.delivery.send.selected_count", { count: n.selectedCount ?? n.documents.length })), 1)) : b("", !0),
306
306
  w(he, { field: M(C) }, null, 8, ["field"]),
307
307
  E.value?.enabled ? (O(), y(ge, {
308
308
  key: 2,
@@ -449,24 +449,24 @@ var Ie = class {
449
449
  setup(e) {
450
450
  let t = e, n = g(), r = d(), i = p(), a = f(), o = v(() => {
451
451
  switch (t.value.type) {
452
- case l.BOOLEAN: return t.value.value ? n.t("wise_invoicing.common.yes") : n.t("wise_invoicing.common.no");
453
- case l.DATE: return t.value.value === "infinity" ? n.t("wise_invoicing.custom_field.date.infinity") : t.value.value === "-infinity" ? n.t("wise_invoicing.custom_field.date.negative_infinity") : i.formatPlainDate(t.value.value);
454
- case l.MONETARY: return r.formatMonetary(t.value.value);
455
- case l.MULTI_SELECT: return t.value.value.map((e) => u(e)).join(", ");
456
- case l.NUMBER: return new Intl.NumberFormat(n.locale.value, { maximumFractionDigits: 20 }).format(t.value.value);
457
- case l.REFERENCE: return t.value.value;
458
- case l.SINGLE_SELECT: return u(t.value.value);
459
- case l.TEXT: return t.value.value;
460
- case l.TEXT_ARRAY: return t.value.value.join(", ");
461
- case l.TIMESTAMP: return i.toDateTime(t.value.value);
452
+ case u.BOOLEAN: return t.value.value ? n.t("wise_invoicing.common.yes") : n.t("wise_invoicing.common.no");
453
+ case u.DATE: return t.value.value === "infinity" ? n.t("wise_invoicing.custom_field.date.infinity") : t.value.value === "-infinity" ? n.t("wise_invoicing.custom_field.date.negative_infinity") : i.formatPlainDate(t.value.value);
454
+ case u.MONETARY: return r.formatMonetary(t.value.value);
455
+ case u.MULTI_SELECT: return t.value.value.map((e) => l(e)).join(", ");
456
+ case u.NUMBER: return new Intl.NumberFormat(n.locale.value, { maximumFractionDigits: 20 }).format(t.value.value);
457
+ case u.REFERENCE: return t.value.value;
458
+ case u.SINGLE_SELECT: return l(t.value.value);
459
+ case u.TEXT: return t.value.value;
460
+ case u.TEXT_ARRAY: return t.value.value.join(", ");
461
+ case u.TIMESTAMP: return i.toDateTime(t.value.value);
462
462
  default: throw TypeError("Unsupported custom field value type");
463
463
  }
464
- }), s = v(() => t.value.type !== l.REFERENCE || t.definition === void 0 ? null : a.getCustomFieldReferenceRoute({
464
+ }), s = v(() => t.value.type !== u.REFERENCE || t.definition === void 0 ? null : a.getCustomFieldReferenceRoute({
465
465
  entityType: t.definition.entityType,
466
466
  key: t.definition.key,
467
467
  value: t.value.value
468
468
  })), c = v(() => t.size === "md" ? "min-w-0 text-sm/5 text-primary" : "min-w-0 text-xs text-primary");
469
- function u(e) {
469
+ function l(e) {
470
470
  return t.definition === void 0 ? e : Q.getChoiceLabel(t.definition, e, n.locale.value);
471
471
  }
472
472
  return (e, r) => s.value !== null && t.definition !== void 0 ? (O(), y(M(R), {
@@ -508,7 +508,7 @@ var Ie = class {
508
508
  }
509
509
  }, ze = class {
510
510
  static async getAll(e) {
511
- return (await o.fromPromise(i({ query: e?.entityTypes === void 0 ? void 0 : { filter: { entityTypes: e.entityTypes } } }))).map((e) => e.data.map(Re.fromDto));
511
+ return (await a.fromPromise(i({ query: e?.entityTypes === void 0 ? void 0 : { filter: { entityTypes: e.entityTypes } } }))).map((e) => e.data.map(Re.fromDto));
512
512
  }
513
513
  };
514
514
  //#endregion
@@ -1,5 +1,5 @@
1
- import { W as e, t, tt as n, vt as r } from "./api.util-lGbimoKL.js";
2
- import { D as i } from "./documentTitle.composable-aTEYXgaZ.js";
1
+ import { Et as e, K as t, it as n, t as r } from "./api.util-BkwbrwEm.js";
2
+ import { j as i } from "./documentTitle.composable-Bxu0YL71.js";
3
3
  import a from "zod";
4
4
  import { ApiErrorUtil as o, useQuery as s } from "@wisemen/vue-core-api-utils";
5
5
  //#region src/modules/invoice-delivery/models/peppolConnection.transformer.ts
@@ -33,13 +33,13 @@ var c = class {
33
33
  }
34
34
  }, l = class {
35
35
  static async get() {
36
- return (await t.fromPromise(r())).map((e) => c.fromDto(e.data));
36
+ return (await r.fromPromise(e())).map((e) => c.fromDto(e.data));
37
37
  }
38
- static async test(n) {
39
- return (await t.fromPromise(e({ body: c.toTestDto(n) }))).map((e) => e.data.companies.map((e) => ({ ...e })));
38
+ static async test(e) {
39
+ return (await r.fromPromise(t({ body: c.toTestDto(e) }))).map((e) => e.data.companies.map((e) => ({ ...e })));
40
40
  }
41
41
  static async update(e) {
42
- return t.void(await t.fromPromise(n({ body: c.toDto(e) })));
42
+ return r.void(await r.fromPromise(n({ body: c.toDto(e) })));
43
43
  }
44
44
  };
45
45
  //#endregion