@wisemen/wise-invoicing-web 0.0.0-alpha.1
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/AddOpenBoundaryIcon-BEbt7idt.js +28 -0
- package/dist/AirlineIcon-CiRX64yU.js +31 -0
- package/dist/AirplaneIcon-ySlq4lyE.js +21 -0
- package/dist/AirportIcon-B84mgPeW.js +18 -0
- package/dist/AlertTriangleIcon-CBaygowk.js +24 -0
- package/dist/AllocationsIcon-BEq-KzFl.js +18 -0
- package/dist/ArrowNarrowRightIcon-CeV9G-PX.js +24 -0
- package/dist/AssetIcon-CgYKjgAv.js +18 -0
- package/dist/BarChartIcon-180sKdWD.js +24 -0
- package/dist/BellIcon-k_e3dHc9.js +23 -0
- package/dist/BillingDocumentDetailViewDataProvider.css +1 -0
- package/dist/BillingDocumentDetailViewDataProvider.vue_vue_type_script_setup_true_lang-CWKBYgXH.js +5161 -0
- package/dist/BuildingIcon-vsvoi83j.js +24 -0
- package/dist/ChargerIcon-Bp3Up7jS.js +18 -0
- package/dist/ChevronDownIcon-D9nXH3kA.js +24 -0
- package/dist/ChevronUpIcon-CkYZnNds.js +24 -0
- package/dist/ClockIcon-DltYwVJC.js +24 -0
- package/dist/ClockSnoozeIcon-x_plYT2B.js +24 -0
- package/dist/CopyIcon-DOqno1Gb.js +21 -0
- package/dist/CreditNoteDetailViewDataProvider-Dc_APzSS.js +873 -0
- package/dist/CreditNotePdfViewDataProvider-zdBDlMRD.js +36 -0
- package/dist/DownloadCloudIcon-CHztnC6f.js +24 -0
- package/dist/EditIcon-L73PCCiu.js +23 -0
- package/dist/EraserIcon-CRVRD-F9.js +24 -0
- package/dist/FileIcon-Fuwo_cD0.js +26 -0
- package/dist/FilterLinesIcon-CRaEthek.js +24 -0
- package/dist/GlobeIcon-UmFqS-_n.js +24 -0
- package/dist/HelpIcon-CyOF59jk.js +26 -0
- package/dist/HourGlassIcon-mbgmoOa_.js +24 -0
- package/dist/InfoCircleIcon-DdlwGcMV.js +24 -0
- package/dist/InvoiceDetailViewDataProvider-DeS1LPn1.js +1942 -0
- package/dist/InvoiceOverviewView-BELZjC4d.js +14297 -0
- package/dist/InvoicePdfViewDataProvider-CzzbJS9s.js +36 -0
- package/dist/InvoicePublicPdfViewDataProvider-B7fszuGq.js +4 -0
- package/dist/InvoiceSettlementStatusBadge.vue_vue_type_script_setup_true_lang-YngYVFcS.js +196 -0
- package/dist/IssuerSettingsViewDataProvider-CbKj-AK2.js +250 -0
- package/dist/KeyboardIcon-BYex7WoL.js +24 -0
- package/dist/LinkExternalIcon-QJt5WMfk.js +24 -0
- package/dist/LinkIcon-D9WPvO58.js +24 -0
- package/dist/MarkerIcon-Dacom7sa.js +31 -0
- package/dist/MobileBatteryIcon-i1TxVu66.js +18 -0
- package/dist/MonitorIcon-B6-by77x.js +24 -0
- package/dist/NotificationIcon-D5mgxQ3P.js +21 -0
- package/dist/ParkingIcon-DJzqSxFU.js +29 -0
- package/dist/PlanningIcon-Dj8UH1Cl.js +18 -0
- package/dist/PreferenceIcon-DrDfTl-0.js +24 -0
- package/dist/ReceiptCheckIcon-DfUkv_G6.js +24 -0
- package/dist/RefreshIcon-CykNw3qm.js +24 -0
- package/dist/RemoveOpenBoundaryIcon-8vTxISBg.js +31 -0
- package/dist/RewindIcon-K0KiISjE.js +24 -0
- package/dist/SettingsIcon-BA4bIP5a.js +28 -0
- package/dist/ShieldIcon-B6OfkWmr.js +21 -0
- package/dist/ShieldOffIcon-RppEweJ9.js +24 -0
- package/dist/SignOutIcon-C6x_Sv0W.js +23 -0
- package/dist/SlashCircleIcon-CbwLUV0p.js +24 -0
- package/dist/StandIcon-DW1SUHPC.js +24 -0
- package/dist/StarsIcon-I4S_hN5F.js +26 -0
- package/dist/StopwatchIcon-D8KogezG.js +24 -0
- package/dist/TargetIcon-DZL7Hi3v.js +24 -0
- package/dist/ThreeDotsIcon-CKO5p_ZD.js +32 -0
- package/dist/ToolIcon-Dbvw1D-H.js +24 -0
- package/dist/TrashIcon-02miWCrc.js +21 -0
- package/dist/TurnaroundIcon-Dee23oaX.js +30 -0
- package/dist/UploadCloudIcon-DhtpTfwc.js +24 -0
- package/dist/UserIcon-DbdAYeNN.js +24 -0
- package/dist/UsersIcon-CHaIEI5X.js +24 -0
- package/dist/VerifiedIcon-CTveuqDt.js +26 -0
- package/dist/WifiIcon-DHt-RpM2.js +24 -0
- package/dist/WifiOffIcon-D8xUKqLP.js +24 -0
- package/dist/ZapIcon-C95VuzXS.js +24 -0
- package/dist/ZoomInIcon-qDywyLfc.js +24 -0
- package/dist/ZoomOutIcon-KL3_B-6s.js +24 -0
- package/dist/_plugin-vue_export-helper-3S5xkc9H.js +453 -0
- package/dist/creditNoteDetail.query-JGvG5yYz.js +159 -0
- package/dist/formango.util-D66mMTWb.js +12 -0
- package/dist/index-Beg0OAsI.js +8082 -0
- package/dist/index-DCE3vzbe.js +7 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +1608 -0
- package/dist/index.js +40 -0
- package/dist/invoiceDetail.query-C3Llz0nF.js +13 -0
- package/dist/issuerSettings.query-H83T7-h9.js +130 -0
- package/dist/style.css +1 -0
- package/dist/style.d.ts +1 -0
- package/package.json +103 -0
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import { useQuery as u } from "@wisemen/vue-core-api-utils";
|
|
2
|
+
import { ax as c, g as m, Z as r, ay as d, az as l, aA as p, A as i, aB as y, aC as D, aD as f, z as v, aE as g, aF as N, aG as T, aH as w, aI as C, aJ as I, aK as P } from "./index-Beg0OAsI.js";
|
|
3
|
+
import "zod";
|
|
4
|
+
class b {
|
|
5
|
+
static fromDto(t) {
|
|
6
|
+
return c.fromViewInvoiceDetailDto(
|
|
7
|
+
t,
|
|
8
|
+
t.uuid,
|
|
9
|
+
m.CREDIT_NOTE
|
|
10
|
+
);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
class A {
|
|
14
|
+
static toDto(t) {
|
|
15
|
+
return {
|
|
16
|
+
issuedOn: d.toDto(t.issuedOn),
|
|
17
|
+
externalRemarks: r.trimOrNull(t.externalRemarks),
|
|
18
|
+
poNumber: r.trimOrNull(t.poNumber),
|
|
19
|
+
subject: r.trimOrNull(t.subject)
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
static toForm(t) {
|
|
23
|
+
return {
|
|
24
|
+
issuedOn: t.issueOn,
|
|
25
|
+
externalRemarks: t.externalRemarks ?? "",
|
|
26
|
+
poNumber: t.poNumber ?? "",
|
|
27
|
+
subject: t.subject ?? ""
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
function n(e) {
|
|
32
|
+
return {
|
|
33
|
+
isDiscount: e.isDiscount,
|
|
34
|
+
name: e.name,
|
|
35
|
+
description: e.description,
|
|
36
|
+
discount: p.toDto(e.discount),
|
|
37
|
+
position: e.position,
|
|
38
|
+
quantity: Math.abs(e.quantity),
|
|
39
|
+
unit: e.unit,
|
|
40
|
+
unitPrice: l.toDto(e.unitPrice),
|
|
41
|
+
vatRate: e.vatRate
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
class R {
|
|
45
|
+
static toDto(t) {
|
|
46
|
+
return {
|
|
47
|
+
groups: t.groups.map((a) => ({
|
|
48
|
+
name: a.name,
|
|
49
|
+
description: a.description,
|
|
50
|
+
lines: a.lines.map(n),
|
|
51
|
+
position: a.position
|
|
52
|
+
})),
|
|
53
|
+
ungroupedLines: t.ungroupedLines.map(n)
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
class k {
|
|
58
|
+
static async delete(t) {
|
|
59
|
+
const a = await i.fromPromise(y({
|
|
60
|
+
path: {
|
|
61
|
+
uuid: t
|
|
62
|
+
}
|
|
63
|
+
}));
|
|
64
|
+
return i.void(a);
|
|
65
|
+
}
|
|
66
|
+
static async finalize(t) {
|
|
67
|
+
const a = await i.fromPromise(D({
|
|
68
|
+
path: {
|
|
69
|
+
uuid: t
|
|
70
|
+
}
|
|
71
|
+
}));
|
|
72
|
+
return i.void(a);
|
|
73
|
+
}
|
|
74
|
+
static async getActivityLogs(t, a) {
|
|
75
|
+
return (await i.fromPromise(f({
|
|
76
|
+
query: {
|
|
77
|
+
filter: {
|
|
78
|
+
entityUuids: [
|
|
79
|
+
t
|
|
80
|
+
],
|
|
81
|
+
roles: [
|
|
82
|
+
v.CREDIT_NOTE
|
|
83
|
+
]
|
|
84
|
+
},
|
|
85
|
+
pagination: {
|
|
86
|
+
key: a.pagination.key ?? null,
|
|
87
|
+
limit: a.pagination.limit
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}))).map((o) => ({
|
|
91
|
+
data: o.data.logs.map(g.fromDto),
|
|
92
|
+
meta: {
|
|
93
|
+
next: o.data.nextKey
|
|
94
|
+
}
|
|
95
|
+
}));
|
|
96
|
+
}
|
|
97
|
+
static async getByUuid(t) {
|
|
98
|
+
return (await i.fromPromise(N({
|
|
99
|
+
path: {
|
|
100
|
+
uuid: t
|
|
101
|
+
}
|
|
102
|
+
}))).map((s) => b.fromDto(s.data));
|
|
103
|
+
}
|
|
104
|
+
static async markAsDraft(t) {
|
|
105
|
+
const a = await i.fromPromise(T({
|
|
106
|
+
path: {
|
|
107
|
+
uuid: t
|
|
108
|
+
}
|
|
109
|
+
}));
|
|
110
|
+
return i.void(a);
|
|
111
|
+
}
|
|
112
|
+
static async markAsReady(t) {
|
|
113
|
+
const a = await i.fromPromise(w({
|
|
114
|
+
path: {
|
|
115
|
+
uuid: t
|
|
116
|
+
}
|
|
117
|
+
}));
|
|
118
|
+
return i.void(a);
|
|
119
|
+
}
|
|
120
|
+
static async send(t) {
|
|
121
|
+
const a = await i.fromPromise(C({
|
|
122
|
+
path: {
|
|
123
|
+
uuid: t
|
|
124
|
+
}
|
|
125
|
+
}));
|
|
126
|
+
return i.void(a);
|
|
127
|
+
}
|
|
128
|
+
static async update(t, a) {
|
|
129
|
+
const s = await i.fromPromise(I({
|
|
130
|
+
body: A.toDto(a),
|
|
131
|
+
path: {
|
|
132
|
+
uuid: t
|
|
133
|
+
}
|
|
134
|
+
}));
|
|
135
|
+
return i.void(s);
|
|
136
|
+
}
|
|
137
|
+
static async updateLines(t, a) {
|
|
138
|
+
const s = await i.fromPromise(P({
|
|
139
|
+
body: R.toDto(a),
|
|
140
|
+
path: {
|
|
141
|
+
uuid: t
|
|
142
|
+
}
|
|
143
|
+
}));
|
|
144
|
+
return i.void(s);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
function L(e) {
|
|
148
|
+
return u("creditNoteDetail", {
|
|
149
|
+
params: {
|
|
150
|
+
creditNoteUuid: e
|
|
151
|
+
},
|
|
152
|
+
queryFn: () => k.getByUuid(e.value)
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
export {
|
|
156
|
+
k as C,
|
|
157
|
+
A as a,
|
|
158
|
+
L as u
|
|
159
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
function o(e) {
|
|
2
|
+
return {
|
|
3
|
+
isTouched: e.isTouched.value,
|
|
4
|
+
errorMessage: e.isTouched.value ? e.errors.value?.[0]?.message ?? null : null,
|
|
5
|
+
modelValue: e.modelValue.value,
|
|
6
|
+
onBlur: e.onBlur,
|
|
7
|
+
"onUpdate:modelValue": e["onUpdate:modelValue"]
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
o as t
|
|
12
|
+
};
|