@wisemen/wise-invoicing-web 0.19.0 → 1.0.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-DyrHExKn.js +962 -0
- package/dist/{BillingDocumentDetailViewDataProvider-BZCFhsjA.js → BillingDocumentDetailViewDataProvider-kFzqhrxW.js} +1632 -1619
- package/dist/{BillingDocumentPdf-DMTwOlzG.js → BillingDocumentPdf-Dp6HSypy.js} +10 -10
- package/dist/{DunningCaseSendDialog-DfMYo2LV.js → DunningCaseSendDialog-1S6OD9wd.js} +36 -36
- package/dist/{InvoiceApprovalOutOfSyncIndicator-BjlBhzNg.js → InvoiceApprovalOutOfSyncIndicator-DaM5hQVT.js} +16 -13
- package/dist/{InvoiceApprovalOverviewView-BH5rJgk6.js → InvoiceApprovalOverviewView-DM_LiO19.js} +237 -237
- package/dist/{InvoiceApprovalStatusBadge-CaVSCtI0.js → InvoiceApprovalStatusBadge-mbYHYU3x.js} +6 -6
- package/dist/{InvoicePdfView-DRqX3P-X.js → InvoicePdfView-YbDJpTIA.js} +2 -2
- package/dist/{InvoicePublicProFormaPdfViewDataProvider-Dz2jGWVg.js → InvoicePublicProFormaPdfViewDataProvider-BgAhcvB6.js} +3 -3
- package/dist/InvoiceRejectDialogDataProvider-yegAlkDB.js +410 -0
- package/dist/{InvoiceStatusBadge-BI41yxpr.js → InvoiceStatusBadge-Bo5PDjEy.js} +23 -23
- package/dist/{InvoicingFileUploadProvider-rU9APFrt.js → InvoicingFileUploadProvider-DVh22OUB.js} +2 -2
- package/dist/{IssuerSettingsViewDataProvider-nNg0lR7Y.js → IssuerSettingsViewDataProvider-BgSFemZr.js} +66 -66
- package/dist/{PeppolSettingsViewDataProvider-CFelH70Q.js → PeppolSettingsViewDataProvider-_Bx0xx9e.js} +3 -3
- package/dist/ReminderTemplatesPanel-DxmfU2xK.js +103 -0
- package/dist/{api.util-sW4gNny-.js → api.util-lGbimoKL.js} +814 -667
- package/dist/billingDocumentDetail.transformer-C5-zjIhL.js +319 -0
- package/dist/client/index.d.ts +2 -2
- package/dist/client/sdk.gen.d.ts +12 -7
- package/dist/client/types.gen.d.ts +396 -94
- package/dist/client/zod.gen.d.ts +3003 -401
- package/dist/{creditNoteDetail.query-C4DvgGFR.js → creditNoteDetail.query-CqJeWeRV.js} +25 -25
- package/dist/{customFieldDefinitionIndex.query-BBqxMfvT.js → customFieldDefinitionIndex.query-Co7hoMow.js} +75 -66
- package/dist/{deliveryReason.util-KBh3q_-P.js → deliveryReason.util-ny1rA7Sm.js} +6 -6
- package/dist/{dist-47-1LAzT.js → dist-CrNFh-CR.js} +59 -59
- package/dist/{dist-B33lNwLw.js → dist-DmVrfBOT.js} +149 -79
- package/dist/{documentTitle.composable-Dl8Cm3v3.js → documentTitle.composable-aTEYXgaZ.js} +37 -35
- package/dist/html.util-vG4ow95N.js +52 -0
- package/dist/{i18n.lib-DckceEsg.js → i18n.lib-B1H9r0km.js} +198 -26
- package/dist/index.d.ts +184 -12
- package/dist/index.js +1990 -1829
- package/dist/{invoice.service-v9uIoFgR.js → invoice.service-D9ubyWPb.js} +224 -181
- package/dist/invoiceApproval.service-BtDIOHIo.js +182 -0
- package/dist/{invoiceApprovalStatus.util-CB5pi_hm.js → invoiceApprovalStatus.util-Bqq_bILG.js} +29 -29
- package/dist/{invoiceCustomer.service-Bl4vN_U5.js → invoiceCustomer.service-D0AtVrLg.js} +6 -6
- package/dist/{invoiceDetail.query-MElhxTMM.js → invoiceDetail.query-BNL6MkvC.js} +1 -1
- package/dist/{invoicingConfig.composable-D-hxnEnh.js → invoicingConfig.composable-DEF0lzNP.js} +2 -2
- package/dist/{issuerSettings.query-CR7EtvNm.js → issuerSettings.query-Cu-I6OAg.js} +30 -30
- package/dist/libs/i18n.lib.d.ts +184 -12
- package/dist/locales/en-US.json.d.ts +99 -13
- package/dist/locales/nl-BE.json.d.ts +99 -13
- package/dist/models/billing-document/billingDocumentDetail.model.d.ts +2 -2
- package/dist/models/file-reference/fileReference.transformer.d.ts +3 -0
- package/dist/modules/invoice/api/mutations/invoiceApprovalUpdate.mutation.d.ts +16 -0
- package/dist/modules/invoice/api/mutations/invoiceApproveApproval.mutation.d.ts +2 -2
- package/dist/modules/invoice/api/mutations/invoiceBulkSendApproval.mutation.d.ts +2 -2
- package/dist/modules/invoice/api/mutations/invoiceRejectApproval.mutation.d.ts +2 -2
- package/dist/modules/invoice/api/mutations/invoiceSetApprovalMode.mutation.d.ts +7 -0
- package/dist/modules/invoice/api/services/invoice.service.d.ts +7 -5
- package/dist/modules/invoice/models/invoice/approval/invoiceApprovalMode.model.d.ts +3 -0
- package/dist/modules/invoice/models/invoice/approval/invoiceApprovalMode.transformer.d.ts +6 -0
- package/dist/modules/invoice/models/invoice/approval/invoiceApprovalModeForm.model.d.ts +7 -0
- package/dist/modules/invoice/models/invoice/approval/invoiceApprovalNote.model.d.ts +2 -0
- package/dist/modules/invoice/models/invoice/approval/invoiceApprovalUpdate.transformer.d.ts +7 -0
- package/dist/modules/invoice/models/invoice/approval/invoiceApprovalUpdateForm.model.d.ts +13 -0
- package/dist/modules/invoice/models/invoice/approval/invoiceApprove.transformer.d.ts +3 -0
- package/dist/modules/invoice/models/invoice/approval/invoiceApproveForm.model.d.ts +2 -2
- package/dist/modules/invoice/models/invoice/approval/invoiceReject.transformer.d.ts +3 -0
- package/dist/modules/invoice/models/invoice/approval/invoiceRejectForm.model.d.ts +2 -2
- package/dist/modules/invoice/models/invoice/detail/invoiceDetail.model.d.ts +7 -1
- package/dist/modules/invoice/models/invoice/index/invoiceIndexQueryParams.model.d.ts +1 -0
- package/dist/modules/invoice/models/invoice/invoiceStatus.util.d.ts +1 -0
- package/dist/modules/invoice/use-cases/detail/components/InvoiceApprovalBanner.vue.d.ts +13 -0
- package/dist/modules/invoice/use-cases/detail/composables/invoiceDetailHeaderActions.composable.d.ts +2 -0
- package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceApprovalModeDialog.vue.d.ts +13 -0
- package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceApprovalUpdateDialog.vue.d.ts +16 -0
- package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceApproveDialog.vue.d.ts +4 -0
- package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceRejectDialog.vue.d.ts +4 -0
- package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceRejectDialogDataProvider.vue.d.ts +13 -0
- package/dist/modules/invoice-approval/actions/invoiceApprovalSendRequest.action.d.ts +1 -1
- package/dist/modules/invoice-approval/api/mutations/approvalFollowUpPauseCreate.mutation.d.ts +7 -0
- package/dist/modules/invoice-approval/api/mutations/approvalFollowUpPauseDelete.mutation.d.ts +4 -0
- package/dist/modules/invoice-approval/api/mutations/approvalFollowUpPauseUpdate.mutation.d.ts +10 -0
- package/dist/modules/invoice-approval/api/mutations/approvalMailTemplateUpdate.mutation.d.ts +14 -0
- package/dist/modules/invoice-approval/api/mutations/approvalReminderConfigUpdate.mutation.d.ts +14 -1
- package/dist/modules/invoice-approval/api/queries/approvalFollowUpPauseIndex.query.d.ts +2 -0
- package/dist/modules/invoice-approval/api/queries/approvalReminderConfig.query.d.ts +1 -1
- package/dist/modules/invoice-approval/api/query-keys/invoiceApproval.queryKeys.d.ts +9 -2
- package/dist/modules/invoice-approval/api/services/invoiceApproval.service.d.ts +10 -2
- package/dist/modules/invoice-approval/models/approvalFollowUpPause.model.d.ts +11 -0
- package/dist/modules/invoice-approval/models/approvalFollowUpPause.transformer.d.ts +11 -0
- package/dist/modules/invoice-approval/models/approvalFollowUpPauseForm.model.d.ts +11 -0
- package/dist/modules/invoice-approval/models/approvalMailTemplate.transformer.d.ts +6 -0
- package/dist/modules/invoice-approval/models/approvalMailTemplate.transformer.spec.d.ts +1 -0
- package/dist/modules/invoice-approval/models/approvalMailTemplateForm.model.d.ts +18 -0
- package/dist/modules/invoice-approval/models/approvalReminderConfigForm.model.d.ts +15 -2
- package/dist/modules/invoice-approval/models/approvalSettingsForm.model.d.ts +39 -0
- package/dist/modules/invoice-approval/models/approvalSettingsForm.spec.d.ts +1 -0
- package/dist/modules/invoice-approval/models/invoiceApprovalIndex.model.d.ts +2 -1
- package/dist/modules/invoice-approval/use-cases/settings/components/ApprovalFollowUpPauseList.vue.d.ts +20 -0
- package/dist/modules/invoice-approval/use-cases/settings/components/ApprovalFollowUpPauseRow.vue.d.ts +20 -0
- package/dist/modules/invoice-approval/use-cases/settings/components/ApprovalFollowUpPausesPanel.vue.d.ts +7 -0
- package/dist/modules/invoice-approval/use-cases/settings/composables/approvalFollowUpPauseDialogs.composable.d.ts +8 -0
- package/dist/modules/invoice-approval/use-cases/settings/dialogs/ApprovalFollowUpPauseDeleteDialog.vue.d.ts +11 -0
- package/dist/modules/invoice-approval/use-cases/settings/dialogs/ApprovalFollowUpPauseFormDialog.vue.d.ts +14 -0
- package/dist/modules/invoice-approval/use-cases/settings/views/ApprovalReminderSettingsView.vue.d.ts +2 -1
- package/dist/modules/invoice-approval/utils/approvalFollowUpPausePeriod.util.d.ts +41 -0
- package/dist/modules/invoice-approval/utils/approvalFollowUpPausePeriod.util.spec.d.ts +1 -0
- package/dist/{reminderConfig.query-DJmhJp6W.js → reminderConfig.query-DHMHVOeX.js} +67 -114
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/ApprovalReminderSettingsViewDataProvider-C1cI6KQq.js +0 -147
- package/dist/InvoiceRejectDialog-_5i8eFuk.js +0 -361
- package/dist/billingDocumentDetail.transformer-Ifa6tWtE.js +0 -310
- package/dist/invoiceApproval.service-DXIKgCI_.js +0 -72
- package/dist/modules/invoice/api/mutations/invoiceMarkAsPriorApprovalRequired.mutation.d.ts +0 -4
- package/dist/modules/invoice/api/mutations/invoiceUnmarkAsPriorApprovalRequired.mutation.d.ts +0 -4
|
@@ -1,81 +1,34 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { M as e, R as t, St as n, dt as r, nt as i, s as a, t as o, ut as s, z as c } from "./api.util-lGbimoKL.js";
|
|
2
|
+
import { O as l, _ as u, l as d, v as f } from "./documentTitle.composable-aTEYXgaZ.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";
|
|
5
5
|
import { n as v, t as y } from "./percentage.util-Bl78kSSk.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
return e.nodeType === 3;
|
|
12
|
-
}
|
|
13
|
-
function j(e) {
|
|
14
|
-
return e.nodeType === 1;
|
|
15
|
-
}
|
|
16
|
-
function M(e) {
|
|
17
|
-
let t = e;
|
|
18
|
-
for (; t.startsWith("\n\n");) t = t.slice(2);
|
|
19
|
-
for (; t.endsWith("\n\n");) t = t.slice(0, -2);
|
|
20
|
-
return t;
|
|
21
|
-
}
|
|
22
|
-
function N(e) {
|
|
23
|
-
let t = "";
|
|
24
|
-
function n(e) {
|
|
25
|
-
t += e.replaceAll("\xA0", " ");
|
|
26
|
-
}
|
|
27
|
-
function r(e) {
|
|
28
|
-
if (A(e)) {
|
|
29
|
-
n(e.data);
|
|
30
|
-
return;
|
|
31
|
-
}
|
|
32
|
-
if (!j(e)) return;
|
|
33
|
-
let i = e.tagName.toLowerCase();
|
|
34
|
-
if (i === "script" || i === "style") return;
|
|
35
|
-
if (i === "br") {
|
|
36
|
-
n("\n");
|
|
37
|
-
return;
|
|
38
|
-
}
|
|
39
|
-
let a = k.has(i);
|
|
40
|
-
a && t.length > 0 && !t.endsWith("\n") && n("\n\n");
|
|
41
|
-
for (let t of e.childNodes) r(t);
|
|
42
|
-
a && t.length > 0 && !t.endsWith("\n") && n("\n\n");
|
|
43
|
-
}
|
|
44
|
-
for (let t of e) r(t);
|
|
45
|
-
return t;
|
|
46
|
-
}
|
|
47
|
-
function P(e) {
|
|
48
|
-
return e.replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replaceAll("\"", """).replaceAll("'", "'");
|
|
49
|
-
}
|
|
50
|
-
var F = class {
|
|
51
|
-
static fromPlainText(e) {
|
|
52
|
-
return `<p>${e.split("\n").map((e) => P(e)).join("<br>")}</p>`;
|
|
53
|
-
}
|
|
54
|
-
static toPlainText(e) {
|
|
55
|
-
return M(N(new DOMParser().parseFromString(e, "text/html").body.childNodes));
|
|
56
|
-
}
|
|
57
|
-
}, I = [
|
|
6
|
+
import { t as b } from "./html.util-vG4ow95N.js";
|
|
7
|
+
import { Fragment as x, computed as S, createElementBlock as C, createElementVNode as w, defineComponent as T, normalizeClass as E, openBlock as D, renderList as O } from "vue";
|
|
8
|
+
import { useQuery as k } from "@wisemen/vue-core-api-utils";
|
|
9
|
+
//#region src/modules/dunning-case/models/dunningCase.transformer.ts
|
|
10
|
+
var A = [
|
|
58
11
|
"en-US",
|
|
59
12
|
"nl-BE",
|
|
60
13
|
"fr-BE"
|
|
61
|
-
],
|
|
14
|
+
], j = [
|
|
62
15
|
1,
|
|
63
16
|
2,
|
|
64
17
|
3
|
|
65
18
|
];
|
|
66
|
-
function
|
|
19
|
+
function M(e) {
|
|
67
20
|
return e === null || e === "infinity" || e === "-infinity";
|
|
68
21
|
}
|
|
69
|
-
function
|
|
70
|
-
return
|
|
22
|
+
function N(e) {
|
|
23
|
+
return M(e) ? null : g.fromDto(e);
|
|
71
24
|
}
|
|
72
|
-
function
|
|
73
|
-
return
|
|
25
|
+
function P(e) {
|
|
26
|
+
return M(e) ? null : _.fromDto(e);
|
|
74
27
|
}
|
|
75
|
-
function
|
|
28
|
+
function F(e, t) {
|
|
76
29
|
return e.items.find((e) => e.locale === t)?.value ?? "";
|
|
77
30
|
}
|
|
78
|
-
function
|
|
31
|
+
function I() {
|
|
79
32
|
return {
|
|
80
33
|
"en-US": {
|
|
81
34
|
body: "",
|
|
@@ -91,39 +44,39 @@ function H() {
|
|
|
91
44
|
}
|
|
92
45
|
};
|
|
93
46
|
}
|
|
94
|
-
function
|
|
47
|
+
function L(e, t, n) {
|
|
95
48
|
let r = t?.fee.amount ?? null;
|
|
96
49
|
return {
|
|
97
50
|
feeAmount: r === null ? 0 : m(r.amount, r.precision),
|
|
98
51
|
feeCurrency: r?.currency ?? n.currency,
|
|
99
52
|
feePercentage: t?.fee.percentage?.value ?? 0,
|
|
100
53
|
feePrecision: r?.precision ?? n.precision,
|
|
101
|
-
feeType: t?.fee.type ??
|
|
54
|
+
feeType: t?.fee.type ?? u.AMOUNT,
|
|
102
55
|
offsetDays: t?.offsetDays ?? e,
|
|
103
56
|
schedule: t?.schedule ?? l.AFTER_DUE_DATE,
|
|
104
57
|
sequence: e,
|
|
105
|
-
template: t?.template ??
|
|
58
|
+
template: t?.template ?? I()
|
|
106
59
|
};
|
|
107
60
|
}
|
|
108
|
-
function
|
|
61
|
+
function R(e, t) {
|
|
109
62
|
return {
|
|
110
|
-
body:
|
|
111
|
-
subject:
|
|
63
|
+
body: b.toPlainText(F(e.body, t)),
|
|
64
|
+
subject: F(e.subject, t)
|
|
112
65
|
};
|
|
113
66
|
}
|
|
114
|
-
function
|
|
115
|
-
return { items:
|
|
67
|
+
function z(e, t) {
|
|
68
|
+
return { items: A.map((n) => ({
|
|
116
69
|
locale: n,
|
|
117
|
-
value: t === "body" ?
|
|
70
|
+
value: t === "body" ? b.fromPlainText(e[n][t]) : e[n][t]
|
|
118
71
|
})) };
|
|
119
72
|
}
|
|
120
|
-
var
|
|
73
|
+
var B = class e {
|
|
121
74
|
static fromDetailDto(t) {
|
|
122
75
|
return {
|
|
123
76
|
uuid: t.uuid,
|
|
124
77
|
closedAt: g.fromNullableDto(t.closedAt),
|
|
125
78
|
createdAt: g.fromDto(t.createdAt),
|
|
126
|
-
lastReminderSentAt:
|
|
79
|
+
lastReminderSentAt: N(t.lastReminderSentAt),
|
|
127
80
|
nextReminderOn: _.fromNullableDto(t.nextReminderOn),
|
|
128
81
|
updatedAt: g.fromDto(t.updatedAt),
|
|
129
82
|
blockedReason: t.blockedReason,
|
|
@@ -143,8 +96,8 @@ var K = class e {
|
|
|
143
96
|
static fromIndexDto(t) {
|
|
144
97
|
return {
|
|
145
98
|
uuid: t.uuid,
|
|
146
|
-
lastReminderSentAt:
|
|
147
|
-
nextReminderOn:
|
|
99
|
+
lastReminderSentAt: N(t.lastReminderSentAt),
|
|
100
|
+
nextReminderOn: P(t.nextReminderOn),
|
|
148
101
|
blockedReason: t.blockedReason,
|
|
149
102
|
canRetryReminder: t.canRetryReminder,
|
|
150
103
|
canSendReminder: t.canSendReminder,
|
|
@@ -193,25 +146,25 @@ var K = class e {
|
|
|
193
146
|
schedule: e.schedule,
|
|
194
147
|
sequence: e.sequence,
|
|
195
148
|
template: {
|
|
196
|
-
"en-US":
|
|
197
|
-
"fr-BE":
|
|
198
|
-
"nl-BE":
|
|
149
|
+
"en-US": R(e.template, "en-US"),
|
|
150
|
+
"fr-BE": R(e.template, "fr-BE"),
|
|
151
|
+
"nl-BE": R(e.template, "nl-BE")
|
|
199
152
|
}
|
|
200
153
|
};
|
|
201
154
|
}
|
|
202
155
|
static fromReminderDto(e) {
|
|
203
156
|
return e === null ? null : {
|
|
204
157
|
uuid: e.uuid,
|
|
205
|
-
sentAt:
|
|
158
|
+
sentAt: N(e.sentAt),
|
|
206
159
|
hasErrors: e.hasErrors
|
|
207
160
|
};
|
|
208
161
|
}
|
|
209
162
|
static reminderConfigsToDto(e) {
|
|
210
163
|
return e.reminders.map((e) => ({
|
|
211
|
-
fee: e.feeType ===
|
|
164
|
+
fee: e.feeType === u.PERCENTAGE ? {
|
|
212
165
|
amount: null,
|
|
213
166
|
percentage: v.toDto(new y(e.feePercentage)),
|
|
214
|
-
type:
|
|
167
|
+
type: u.PERCENTAGE
|
|
215
168
|
} : {
|
|
216
169
|
amount: {
|
|
217
170
|
amount: p(e.feeAmount, e.feePrecision),
|
|
@@ -219,14 +172,14 @@ var K = class e {
|
|
|
219
172
|
precision: e.feePrecision
|
|
220
173
|
},
|
|
221
174
|
percentage: null,
|
|
222
|
-
type:
|
|
175
|
+
type: u.AMOUNT
|
|
223
176
|
},
|
|
224
177
|
offsetDays: e.offsetDays,
|
|
225
178
|
schedule: e.schedule,
|
|
226
179
|
sequence: e.sequence,
|
|
227
180
|
template: {
|
|
228
|
-
body:
|
|
229
|
-
subject:
|
|
181
|
+
body: z(e.template, "body"),
|
|
182
|
+
subject: z(e.template, "subject")
|
|
230
183
|
}
|
|
231
184
|
}));
|
|
232
185
|
}
|
|
@@ -235,82 +188,82 @@ var K = class e {
|
|
|
235
188
|
currency: t?.currency ?? d.EUR,
|
|
236
189
|
precision: t?.precision ?? 2
|
|
237
190
|
};
|
|
238
|
-
return { reminders:
|
|
191
|
+
return { reminders: j.map((t) => L(t, e.find((e) => e.sequence === t), n)) };
|
|
239
192
|
}
|
|
240
193
|
};
|
|
241
194
|
//#endregion
|
|
242
195
|
//#region src/modules/dunning-case/api/services/dunningCase.service.ts
|
|
243
|
-
function
|
|
196
|
+
function V(e) {
|
|
244
197
|
return {
|
|
245
198
|
customerUuid: e.customerUuid,
|
|
246
199
|
isOpen: e.isOpen,
|
|
247
200
|
dunningCaseUuids: e.dunningCaseUuids === void 0 ? void 0 : {
|
|
248
|
-
scope:
|
|
201
|
+
scope: f.INCLUDE,
|
|
249
202
|
values: e.dunningCaseUuids
|
|
250
203
|
},
|
|
251
204
|
level: e.level
|
|
252
205
|
};
|
|
253
206
|
}
|
|
254
|
-
var
|
|
207
|
+
var H = class {
|
|
255
208
|
static async getAll(e) {
|
|
256
|
-
return (await
|
|
257
|
-
filter:
|
|
209
|
+
return (await o.fromPromise(r({ query: {
|
|
210
|
+
filter: V(e),
|
|
258
211
|
pagination: e.pagination
|
|
259
212
|
} }))).map((e) => ({
|
|
260
|
-
data: e.data.items.map(
|
|
213
|
+
data: e.data.items.map(B.fromIndexDto),
|
|
261
214
|
meta: e.data.meta
|
|
262
215
|
}));
|
|
263
216
|
}
|
|
264
217
|
static async getByUuid(e) {
|
|
265
|
-
return (await
|
|
218
|
+
return (await o.fromPromise(s({ path: { uuid: e } }))).map((e) => B.fromDetailDto(e.data));
|
|
266
219
|
}
|
|
267
220
|
static async getReminderConfigs() {
|
|
268
|
-
return (await
|
|
221
|
+
return (await o.fromPromise(n())).map((e) => e.data.items.map(B.fromReminderConfigDto));
|
|
269
222
|
}
|
|
270
|
-
static async previewBulk(
|
|
271
|
-
return (await
|
|
223
|
+
static async previewBulk(t) {
|
|
224
|
+
return (await o.fromPromise(e({ query: { filter: V(t) } }))).map((e) => e.data);
|
|
272
225
|
}
|
|
273
|
-
static async retry(
|
|
274
|
-
let n = await
|
|
275
|
-
return
|
|
226
|
+
static async retry(e) {
|
|
227
|
+
let n = await o.fromPromise(t({ path: { uuid: e } }));
|
|
228
|
+
return o.void(n);
|
|
276
229
|
}
|
|
277
230
|
static async send(e) {
|
|
278
|
-
let t = await
|
|
279
|
-
return
|
|
231
|
+
let t = await o.fromPromise(c({ path: { uuid: e } }));
|
|
232
|
+
return o.void(t);
|
|
280
233
|
}
|
|
281
234
|
static async sendBulk(e) {
|
|
282
|
-
return (await
|
|
235
|
+
return (await o.fromPromise(a({ query: { filter: V(e) } }))).map((e) => e.data);
|
|
283
236
|
}
|
|
284
237
|
static async updateReminderConfigs(e) {
|
|
285
|
-
let
|
|
286
|
-
return
|
|
238
|
+
let t = await o.fromPromise(i({ body: { reminders: B.reminderConfigsToDto(e) } }));
|
|
239
|
+
return o.void(t);
|
|
287
240
|
}
|
|
288
|
-
},
|
|
241
|
+
}, U = {
|
|
289
242
|
class: "flex shrink-0 gap-xxs",
|
|
290
243
|
"aria-hidden": "true"
|
|
291
|
-
},
|
|
244
|
+
}, W = /* @__PURE__ */ T({
|
|
292
245
|
__name: "DunningCaseReminderLevelIndicator",
|
|
293
246
|
props: {
|
|
294
247
|
level: {},
|
|
295
248
|
size: { default: "md" }
|
|
296
249
|
},
|
|
297
250
|
setup(e) {
|
|
298
|
-
let t = e, n =
|
|
299
|
-
return (e, t) => (
|
|
251
|
+
let t = e, n = S(() => Math.min(3, Math.max(0, t.level ?? 0))), r = S(() => t.level === 3 ? "error" : t.level === 2 ? "warning" : "brand"), i = S(() => t.size === "sm" ? "h-(--spacing-sm) w-(--spacing-md)" : "h-(--spacing-sm) w-(--spacing-lg)");
|
|
252
|
+
return (e, t) => (D(), C("span", U, [(D(), C(x, null, O(3, (e) => w("span", {
|
|
300
253
|
key: e,
|
|
301
|
-
class:
|
|
254
|
+
class: E([[i.value, e <= n.value ? {
|
|
302
255
|
"border-brand-500 bg-brand-500": r.value === "brand",
|
|
303
256
|
"border-warning-500 bg-warning-solid": r.value === "warning",
|
|
304
257
|
"border-error bg-error-solid": r.value === "error"
|
|
305
258
|
} : "border-secondary bg-primary"], "rounded-full border"])
|
|
306
259
|
}, null, 2)), 64))]));
|
|
307
260
|
}
|
|
308
|
-
}),
|
|
309
|
-
function
|
|
310
|
-
return
|
|
311
|
-
staleTime:
|
|
312
|
-
queryFn: () =>
|
|
261
|
+
}), G = 3e5;
|
|
262
|
+
function K() {
|
|
263
|
+
return k("reminderConfig", {
|
|
264
|
+
staleTime: G,
|
|
265
|
+
queryFn: () => H.getReminderConfigs()
|
|
313
266
|
});
|
|
314
267
|
}
|
|
315
268
|
//#endregion
|
|
316
|
-
export {
|
|
269
|
+
export { B as i, W as n, H as r, K as t };
|