@wisemen/wise-invoicing-web 1.0.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.
- package/dist/AccountingSettingsViewDataProvider-BtDPqr_P.js +981 -0
- package/dist/{ApprovalReminderSettingsViewDataProvider-DyrHExKn.js → ApprovalReminderSettingsViewDataProvider-CuFo2JF5.js} +287 -287
- package/dist/{BillingDocumentDetailViewDataProvider-kFzqhrxW.js → BillingDocumentDetailViewDataProvider-qKW6LiRR.js} +1629 -1604
- package/dist/{BillingDocumentPdf-Dp6HSypy.js → BillingDocumentPdf-CgnrE4eq.js} +5 -5
- package/dist/{DataProvider-BtnD-BzI.js → DataProvider-Dj5ckiN2.js} +6 -9
- package/dist/{DunningCaseSendDialog-1S6OD9wd.js → DunningCaseSendDialog-CQ1yvbUt.js} +36 -36
- package/dist/{InvoiceApprovalOutOfSyncIndicator-DaM5hQVT.js → InvoiceApprovalOutOfSyncIndicator-BeqzoD3H.js} +2 -2
- package/dist/{InvoiceApprovalOverviewView-DM_LiO19.js → InvoiceApprovalOverviewView-B0ulYsYy.js} +230 -230
- package/dist/{InvoiceApprovalStatusBadge-mbYHYU3x.js → InvoiceApprovalStatusBadge-BZuyVHKk.js} +4 -4
- package/dist/{InvoicePdfView-YbDJpTIA.js → InvoicePdfView-BBTa7EaO.js} +2 -2
- package/dist/{InvoicePublicProFormaPdfViewDataProvider-BgAhcvB6.js → InvoicePublicProFormaPdfViewDataProvider-_Tbt2pTv.js} +4 -4
- package/dist/{InvoiceRejectDialogDataProvider-yegAlkDB.js → InvoiceRejectDialogDataProvider-ma2UsSzC.js} +33 -33
- package/dist/{InvoiceStatusBadge-Bo5PDjEy.js → InvoiceStatusBadge-JIR1gUDL.js} +3 -3
- package/dist/{InvoicingFileUploadProvider-DVh22OUB.js → InvoicingFileUploadProvider-B-eq6i9v.js} +14 -14
- package/dist/{IssuerSettingsViewDataProvider-BgSFemZr.js → IssuerSettingsViewDataProvider-CHyCCy9K.js} +66 -66
- package/dist/{PeppolSettingsViewDataProvider-_Bx0xx9e.js → PeppolSettingsViewDataProvider-j1btvXOf.js} +4 -4
- package/dist/{api.util-lGbimoKL.js → api.util-BkwbrwEm.js} +1026 -800
- package/dist/billingDocumentDetail.transformer-B-GSRQc0.js +324 -0
- package/dist/client/index.d.ts +2 -2
- package/dist/client/sdk.gen.d.ts +10 -1
- package/dist/client/types.gen.d.ts +452 -1
- package/dist/client/zod.gen.d.ts +524 -0
- package/dist/composables/invoicingConfig.composable.d.ts +3 -0
- package/dist/{creditNoteDetail.query-CqJeWeRV.js → creditNoteDetail.query-Tg4s5B8Q.js} +34 -34
- package/dist/{customFieldDefinitionIndex.query-Co7hoMow.js → customFieldDefinitionIndex.query-DtMibcTn.js} +28 -28
- package/dist/{deliveryReason.util-ny1rA7Sm.js → deliveryReason.util-BuCD1Fuz.js} +6 -6
- package/dist/{dist-CrNFh-CR.js → dist-AbMUaDf-.js} +93 -93
- package/dist/{dist-DmVrfBOT.js → dist-DaJ08k0k.js} +231 -119
- package/dist/{documentTitle.composable-aTEYXgaZ.js → documentTitle.composable-Bxu0YL71.js} +27 -19
- package/dist/{i18n.lib-B1H9r0km.js → i18n.lib-C8TA6PCf.js} +162 -2
- package/dist/index.d.ts +160 -0
- package/dist/index.js +1576 -1554
- package/dist/instant.transformer-KmBsH3E9.js +18 -0
- package/dist/{invoice.service-D9ubyWPb.js → invoice.service-BtgRZKrv.js} +152 -151
- package/dist/{invoiceApproval.service-BtDIOHIo.js → invoiceApproval.service-DEvaL-MH.js} +22 -21
- package/dist/invoiceApprovalStatus.util-NpxAuQ0t.js +83 -0
- package/dist/{invoiceCustomer.service-D0AtVrLg.js → invoiceCustomer.service-Cowdna7o.js} +6 -6
- package/dist/{invoiceDetail.query-BNL6MkvC.js → invoiceDetail.query-nEhWRrdL.js} +1 -1
- package/dist/{invoicingConfig.composable-DEF0lzNP.js → invoicingConfig.composable-CW47czLa.js} +20 -19
- package/dist/{issuerSettings.query-Cu-I6OAg.js → issuerSettings.query-CIWw1Zku.js} +27 -27
- package/dist/libs/i18n.lib.d.ts +160 -0
- package/dist/locales/en-US.json.d.ts +81 -1
- package/dist/locales/nl-BE.json.d.ts +81 -1
- package/dist/models/billing-document/billingDocumentDetail.model.d.ts +7 -1
- package/dist/modules/accounting/api/mutations/accountingConnectionDisconnect.mutation.d.ts +4 -0
- package/dist/modules/accounting/api/mutations/accountingPostingProfileUpdate.mutation.d.ts +15 -0
- package/dist/modules/accounting/api/mutations/exactAccountingConnect.mutation.d.ts +6 -0
- package/dist/modules/accounting/api/queries/accountingConnection.query.d.ts +1 -0
- package/dist/modules/accounting/api/queries/exactAuthorizationConfig.query.d.ts +1 -0
- package/dist/modules/accounting/api/queries/exactGlAccounts.query.d.ts +3 -0
- package/dist/modules/accounting/api/queries/exactJournals.query.d.ts +3 -0
- package/dist/modules/accounting/api/query-keys/accounting.queryKeys.d.ts +24 -0
- package/dist/modules/accounting/api/services/accountingConnection.service.d.ts +19 -0
- package/dist/modules/accounting/components/AccountingPostingProfileFields.vue.d.ts +14 -0
- package/dist/modules/accounting/components/AccountingSyncStatusBadge.vue.d.ts +7 -0
- package/dist/modules/accounting/components/ExactGlAccountField.vue.d.ts +12 -0
- package/dist/modules/accounting/components/ExactLogo.vue.d.ts +3 -0
- package/dist/modules/accounting/composables/exactLookupError.composable.d.ts +19 -0
- package/dist/modules/accounting/models/accountingConnection.model.d.ts +34 -0
- package/dist/modules/accounting/models/accountingConnection.transformer.d.ts +23 -0
- package/dist/modules/accounting/models/accountingConnection.transformer.spec.d.ts +1 -0
- package/dist/modules/accounting/models/accountingConnectionReadiness.util.d.ts +10 -0
- package/dist/modules/accounting/models/accountingConnectionUuid.model.d.ts +3 -0
- package/dist/modules/accounting/models/accountingError.util.d.ts +13 -0
- package/dist/modules/accounting/models/accountingError.util.spec.d.ts +1 -0
- package/dist/modules/accounting/models/accountingPostingProfileForm.model.d.ts +14 -0
- package/dist/modules/accounting/models/accountingPostingProfileForm.model.spec.d.ts +1 -0
- package/dist/modules/accounting/models/accountingPostingProfileUpdateForm.model.d.ts +17 -0
- package/dist/modules/accounting/models/exactAccountingConnectForm.model.d.ts +9 -0
- package/dist/modules/accounting/models/exactAccountingConnectForm.model.spec.d.ts +1 -0
- package/dist/modules/accounting/models/exactLookupOption.model.d.ts +5 -0
- package/dist/modules/accounting/models/exactLookupOption.util.d.ts +4 -0
- package/dist/modules/accounting/models/exactRegion.util.d.ts +5 -0
- package/dist/modules/accounting/models/exactRegion.util.spec.d.ts +1 -0
- package/dist/modules/accounting/routes/accounting.routes.d.ts +9 -0
- package/dist/modules/accounting/use-cases/settings/components/AccountingConnectionDetails.vue.d.ts +7 -0
- package/dist/modules/accounting/use-cases/settings/components/AccountingConnectionNotice.vue.d.ts +11 -0
- package/dist/modules/accounting/use-cases/settings/components/AccountingPostingProfileForm.vue.d.ts +8 -0
- package/dist/modules/accounting/use-cases/settings/components/ExactAccountingConnectForm.vue.d.ts +12 -0
- package/dist/modules/accounting/use-cases/settings/composables/accountingAuthorizationResult.composable.d.ts +5 -0
- package/dist/modules/accounting/use-cases/settings/composables/exactConnect.composable.d.ts +11 -0
- package/dist/modules/accounting/use-cases/settings/dialogs/AccountingConnectionDisconnectDialog.vue.d.ts +11 -0
- package/dist/modules/accounting/use-cases/settings/views/AccountingSettingsView.vue.d.ts +9 -0
- package/dist/modules/accounting/use-cases/settings/views/AccountingSettingsViewDataProvider.vue.d.ts +3 -0
- package/dist/modules/settings/routes/settings.routes.d.ts +7 -0
- package/dist/{plainDate.transformer-Bhiz9jW7.js → plainDate.transformer-BxvJpJOv.js} +4 -17
- package/dist/{reminderConfig.query-DHMHVOeX.js → reminderConfig.query-nb1P7ufx.js} +38 -37
- package/dist/types/queryKey.type.d.ts +3 -2
- package/dist/ui/data-provider/DataProvider.vue.d.ts +5 -1
- package/package.json +1 -1
- package/dist/billingDocumentDetail.transformer-C5-zjIhL.js +0 -319
- package/dist/invoiceApprovalStatus.util-Bqq_bILG.js +0 -83
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { AccountingConnection } from '../../../models/accountingConnection.model.ts';
|
|
3
|
+
import { ExactAccountingConnectForm } from '../../../models/exactAccountingConnectForm.model.ts';
|
|
4
|
+
interface UseExactConnectReturnType {
|
|
5
|
+
isConnecting: Readonly<Ref<boolean>>;
|
|
6
|
+
connect: (form: ExactAccountingConnectForm) => Promise<void>;
|
|
7
|
+
reconnect: (connection: AccountingConnection) => Promise<void>;
|
|
8
|
+
}
|
|
9
|
+
/** Saves the connection settings and sends the browser to the Exact login */
|
|
10
|
+
export declare function useExactConnect(): UseExactConnectReturnType;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AccountingConnectionUuid } from '../../../models/accountingConnectionUuid.model.ts';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
connectionUuid: AccountingConnectionUuid;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
|
+
close: () => any;
|
|
7
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
8
|
+
onClose?: (() => any) | undefined;
|
|
9
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AccountingConnection, ExactAuthorizationConfig } from '../../../models/accountingConnection.model.ts';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
issuerCountryCode: string | null;
|
|
4
|
+
connection: AccountingConnection | null;
|
|
5
|
+
exactAuthorizationConfig: ExactAuthorizationConfig;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
package/dist/modules/accounting/use-cases/settings/views/AccountingSettingsViewDataProvider.vue.d.ts
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -34,4 +34,11 @@ export declare const issuerSettingsRoutes: [{
|
|
|
34
34
|
readonly meta: {
|
|
35
35
|
readonly permission: "reminder-config.read";
|
|
36
36
|
};
|
|
37
|
+
}, {
|
|
38
|
+
readonly name: "accounting-settings-module";
|
|
39
|
+
readonly path: "accounting";
|
|
40
|
+
readonly component: () => Component;
|
|
41
|
+
readonly meta: {
|
|
42
|
+
readonly permission: "issuer.read";
|
|
43
|
+
};
|
|
37
44
|
}];
|
|
@@ -1,19 +1,6 @@
|
|
|
1
1
|
import { Temporal as e } from "temporal-polyfill";
|
|
2
|
-
//#region src/utils/
|
|
3
|
-
var t = class {
|
|
4
|
-
static fromDto(t) {
|
|
5
|
-
return e.Instant.from(t);
|
|
6
|
-
}
|
|
7
|
-
static fromNullableDto(e) {
|
|
8
|
-
return e === null ? null : this.fromDto(e);
|
|
9
|
-
}
|
|
10
|
-
static toDto(e) {
|
|
11
|
-
return e.toString();
|
|
12
|
-
}
|
|
13
|
-
static toNullableDto(e) {
|
|
14
|
-
return e === null ? null : this.toDto(e);
|
|
15
|
-
}
|
|
16
|
-
}, n = class e {
|
|
2
|
+
//#region src/utils/monetary/monetary.util.ts
|
|
3
|
+
var t = class e {
|
|
17
4
|
static fromDto(e) {
|
|
18
5
|
return {
|
|
19
6
|
amount: e.amount,
|
|
@@ -34,7 +21,7 @@ var t = class {
|
|
|
34
21
|
static toNullableDto(t) {
|
|
35
22
|
return t === null ? null : e.toDto(t);
|
|
36
23
|
}
|
|
37
|
-
},
|
|
24
|
+
}, n = class {
|
|
38
25
|
static fromDto(t) {
|
|
39
26
|
return e.PlainDate.from(t);
|
|
40
27
|
}
|
|
@@ -49,4 +36,4 @@ var t = class {
|
|
|
49
36
|
}
|
|
50
37
|
};
|
|
51
38
|
//#endregion
|
|
52
|
-
export {
|
|
39
|
+
export { t as n, n as t };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { At as e, B as t, P as n, V as r, at as i, gt as a, ht as o, s, t as c } from "./api.util-BkwbrwEm.js";
|
|
2
|
+
import { M as l, S as u, f as d, x as f } from "./documentTitle.composable-Bxu0YL71.js";
|
|
3
3
|
import { n as p, t as m } from "./useCurrencyFormat.composable-MtZaqKnO.js";
|
|
4
|
-
import {
|
|
4
|
+
import { t as h } from "./instant.transformer-KmBsH3E9.js";
|
|
5
|
+
import { n as g, t as _ } from "./plainDate.transformer-BxvJpJOv.js";
|
|
5
6
|
import { n as v, t as y } from "./percentage.util-Bl78kSSk.js";
|
|
6
7
|
import { t as b } from "./html.util-vG4ow95N.js";
|
|
7
8
|
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";
|
|
@@ -20,7 +21,7 @@ function M(e) {
|
|
|
20
21
|
return e === null || e === "infinity" || e === "-infinity";
|
|
21
22
|
}
|
|
22
23
|
function N(e) {
|
|
23
|
-
return M(e) ? null :
|
|
24
|
+
return M(e) ? null : h.fromDto(e);
|
|
24
25
|
}
|
|
25
26
|
function P(e) {
|
|
26
27
|
return M(e) ? null : _.fromDto(e);
|
|
@@ -51,7 +52,7 @@ function L(e, t, n) {
|
|
|
51
52
|
feeCurrency: r?.currency ?? n.currency,
|
|
52
53
|
feePercentage: t?.fee.percentage?.value ?? 0,
|
|
53
54
|
feePrecision: r?.precision ?? n.precision,
|
|
54
|
-
feeType: t?.fee.type ??
|
|
55
|
+
feeType: t?.fee.type ?? f.AMOUNT,
|
|
55
56
|
offsetDays: t?.offsetDays ?? e,
|
|
56
57
|
schedule: t?.schedule ?? l.AFTER_DUE_DATE,
|
|
57
58
|
sequence: e,
|
|
@@ -74,11 +75,11 @@ var B = class e {
|
|
|
74
75
|
static fromDetailDto(t) {
|
|
75
76
|
return {
|
|
76
77
|
uuid: t.uuid,
|
|
77
|
-
closedAt:
|
|
78
|
-
createdAt:
|
|
78
|
+
closedAt: h.fromNullableDto(t.closedAt),
|
|
79
|
+
createdAt: h.fromDto(t.createdAt),
|
|
79
80
|
lastReminderSentAt: N(t.lastReminderSentAt),
|
|
80
81
|
nextReminderOn: _.fromNullableDto(t.nextReminderOn),
|
|
81
|
-
updatedAt:
|
|
82
|
+
updatedAt: h.fromDto(t.updatedAt),
|
|
82
83
|
blockedReason: t.blockedReason,
|
|
83
84
|
canRetryReminder: t.canRetryReminder,
|
|
84
85
|
canSendReminder: t.canSendReminder,
|
|
@@ -86,11 +87,11 @@ var B = class e {
|
|
|
86
87
|
invoices: t.invoices.map(e.fromInvoiceDto),
|
|
87
88
|
latestCreatedReminder: e.fromReminderDto(t.latestCreatedReminder),
|
|
88
89
|
level: t.level ?? 0,
|
|
89
|
-
outstandingBalance:
|
|
90
|
-
totalCredited:
|
|
91
|
-
totalFee:
|
|
92
|
-
totalInvoiced:
|
|
93
|
-
totalPaid:
|
|
90
|
+
outstandingBalance: g.fromDto(t.outstandingBalance),
|
|
91
|
+
totalCredited: g.fromDto(t.totalCredited),
|
|
92
|
+
totalFee: g.fromDto(t.totalFee),
|
|
93
|
+
totalInvoiced: g.fromDto(t.totalInvoiced),
|
|
94
|
+
totalPaid: g.fromDto(t.totalPaid)
|
|
94
95
|
};
|
|
95
96
|
}
|
|
96
97
|
static fromIndexDto(t) {
|
|
@@ -105,7 +106,7 @@ var B = class e {
|
|
|
105
106
|
daysOverdue: t.daysOverdue,
|
|
106
107
|
latestCreatedReminder: e.fromReminderDto(t.latestCreatedReminder),
|
|
107
108
|
level: t.level,
|
|
108
|
-
outstandingBalance:
|
|
109
|
+
outstandingBalance: g.fromDto(t.outstandingBalance)
|
|
109
110
|
};
|
|
110
111
|
}
|
|
111
112
|
static fromInvoiceDto(e) {
|
|
@@ -113,32 +114,32 @@ var B = class e {
|
|
|
113
114
|
uuid: e.uuid,
|
|
114
115
|
dueOn: _.fromDto(e.dueOn),
|
|
115
116
|
isDisputed: e.isDisputed,
|
|
116
|
-
balanceDueAmount:
|
|
117
|
+
balanceDueAmount: g.fromDto(e.balanceDueAmount),
|
|
117
118
|
creditNotes: e.creditNotes.map((e) => ({
|
|
118
119
|
uuid: e.uuid,
|
|
119
120
|
finalizedOn: _.fromDto(e.finalizedOn),
|
|
120
|
-
grossAmount:
|
|
121
|
+
grossAmount: g.fromDto(e.grossAmount),
|
|
121
122
|
sequence: e.sequence
|
|
122
123
|
})),
|
|
123
|
-
grossAmount:
|
|
124
|
+
grossAmount: g.fromDto(e.grossAmount),
|
|
124
125
|
level: e.level ?? 0,
|
|
125
|
-
paidAmount:
|
|
126
|
+
paidAmount: g.fromDto(e.paidAmount),
|
|
126
127
|
payments: e.payments.map((e) => ({
|
|
127
128
|
uuid: e.uuid,
|
|
128
|
-
amount:
|
|
129
|
+
amount: g.fromDto(e.amount),
|
|
129
130
|
date: _.fromDto(e.date)
|
|
130
131
|
})),
|
|
131
132
|
sequence: e.sequence,
|
|
132
133
|
settlementStatus: e.settlementStatus,
|
|
133
134
|
subject: e.subject,
|
|
134
|
-
totalCreditedAmount:
|
|
135
|
+
totalCreditedAmount: g.fromDto(e.totalCreditedAmount)
|
|
135
136
|
};
|
|
136
137
|
}
|
|
137
138
|
static fromReminderConfigDto(e) {
|
|
138
139
|
return {
|
|
139
140
|
uuid: e.uuid,
|
|
140
141
|
fee: {
|
|
141
|
-
amount: e.fee.amount === null ? null :
|
|
142
|
+
amount: e.fee.amount === null ? null : g.fromDto(e.fee.amount),
|
|
142
143
|
percentage: v.fromNullableDto(e.fee.percentage),
|
|
143
144
|
type: e.fee.type
|
|
144
145
|
},
|
|
@@ -161,10 +162,10 @@ var B = class e {
|
|
|
161
162
|
}
|
|
162
163
|
static reminderConfigsToDto(e) {
|
|
163
164
|
return e.reminders.map((e) => ({
|
|
164
|
-
fee: e.feeType ===
|
|
165
|
+
fee: e.feeType === f.PERCENTAGE ? {
|
|
165
166
|
amount: null,
|
|
166
167
|
percentage: v.toDto(new y(e.feePercentage)),
|
|
167
|
-
type:
|
|
168
|
+
type: f.PERCENTAGE
|
|
168
169
|
} : {
|
|
169
170
|
amount: {
|
|
170
171
|
amount: p(e.feeAmount, e.feePrecision),
|
|
@@ -172,7 +173,7 @@ var B = class e {
|
|
|
172
173
|
precision: e.feePrecision
|
|
173
174
|
},
|
|
174
175
|
percentage: null,
|
|
175
|
-
type:
|
|
176
|
+
type: f.AMOUNT
|
|
176
177
|
},
|
|
177
178
|
offsetDays: e.offsetDays,
|
|
178
179
|
schedule: e.schedule,
|
|
@@ -198,7 +199,7 @@ function V(e) {
|
|
|
198
199
|
customerUuid: e.customerUuid,
|
|
199
200
|
isOpen: e.isOpen,
|
|
200
201
|
dunningCaseUuids: e.dunningCaseUuids === void 0 ? void 0 : {
|
|
201
|
-
scope:
|
|
202
|
+
scope: u.INCLUDE,
|
|
202
203
|
values: e.dunningCaseUuids
|
|
203
204
|
},
|
|
204
205
|
level: e.level
|
|
@@ -206,7 +207,7 @@ function V(e) {
|
|
|
206
207
|
}
|
|
207
208
|
var H = class {
|
|
208
209
|
static async getAll(e) {
|
|
209
|
-
return (await
|
|
210
|
+
return (await c.fromPromise(a({ query: {
|
|
210
211
|
filter: V(e),
|
|
211
212
|
pagination: e.pagination
|
|
212
213
|
} }))).map((e) => ({
|
|
@@ -215,28 +216,28 @@ var H = class {
|
|
|
215
216
|
}));
|
|
216
217
|
}
|
|
217
218
|
static async getByUuid(e) {
|
|
218
|
-
return (await
|
|
219
|
+
return (await c.fromPromise(o({ path: { uuid: e } }))).map((e) => B.fromDetailDto(e.data));
|
|
219
220
|
}
|
|
220
221
|
static async getReminderConfigs() {
|
|
221
|
-
return (await
|
|
222
|
+
return (await c.fromPromise(e())).map((e) => e.data.items.map(B.fromReminderConfigDto));
|
|
222
223
|
}
|
|
223
|
-
static async previewBulk(
|
|
224
|
-
return (await
|
|
224
|
+
static async previewBulk(e) {
|
|
225
|
+
return (await c.fromPromise(n({ query: { filter: V(e) } }))).map((e) => e.data);
|
|
225
226
|
}
|
|
226
227
|
static async retry(e) {
|
|
227
|
-
let n = await
|
|
228
|
-
return
|
|
228
|
+
let n = await c.fromPromise(t({ path: { uuid: e } }));
|
|
229
|
+
return c.void(n);
|
|
229
230
|
}
|
|
230
231
|
static async send(e) {
|
|
231
|
-
let t = await
|
|
232
|
-
return
|
|
232
|
+
let t = await c.fromPromise(r({ path: { uuid: e } }));
|
|
233
|
+
return c.void(t);
|
|
233
234
|
}
|
|
234
235
|
static async sendBulk(e) {
|
|
235
|
-
return (await
|
|
236
|
+
return (await c.fromPromise(s({ query: { filter: V(e) } }))).map((e) => e.data);
|
|
236
237
|
}
|
|
237
238
|
static async updateReminderConfigs(e) {
|
|
238
|
-
let t = await
|
|
239
|
-
return
|
|
239
|
+
let t = await c.fromPromise(i({ body: { reminders: B.reminderConfigsToDto(e) } }));
|
|
240
|
+
return c.void(t);
|
|
240
241
|
}
|
|
241
242
|
}, U = {
|
|
242
243
|
class: "flex shrink-0 gap-xxs",
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AccountingQueryKeys } from '../modules/accounting/api/query-keys/accounting.queryKeys.ts';
|
|
1
2
|
import { CreditNoteQueryKeys } from '../modules/credit-note/api/query-keys/creditNote.queryKeys.ts';
|
|
2
3
|
import { CustomFieldDefinitionQueryKeys } from '../modules/custom-field/api/query-keys/customFieldDefinition.queryKeys.ts';
|
|
3
4
|
import { DunningCaseQueryKeys } from '../modules/dunning-case/api/query-keys/dunningCase.queryKeys.ts';
|
|
@@ -5,6 +6,6 @@ import { InvoiceQueryKeys } from '../modules/invoice/api/query-keys/invoice.quer
|
|
|
5
6
|
import { InvoiceApprovalQueryKeys } from '../modules/invoice-approval/api/query-keys/invoiceApproval.queryKeys.ts';
|
|
6
7
|
import { InvoiceDeliveryQueryKeys } from '../modules/invoice-delivery/api/query-keys/invoiceDelivery.queryKeys.ts';
|
|
7
8
|
import { IssuerSettingsQueryKeys } from '../modules/settings/api/query-keys/issuerSettings.queryKeys.ts';
|
|
8
|
-
export type { CreditNoteQueryKeys, CustomFieldDefinitionQueryKeys, DunningCaseQueryKeys, InvoiceApprovalQueryKeys, InvoiceQueryKeys, IssuerSettingsQueryKeys, };
|
|
9
|
-
export interface InvoicingQueryKeys extends InvoiceDeliveryQueryKeys, CreditNoteQueryKeys, CustomFieldDefinitionQueryKeys, DunningCaseQueryKeys, InvoiceApprovalQueryKeys, InvoiceQueryKeys, IssuerSettingsQueryKeys {
|
|
9
|
+
export type { AccountingQueryKeys, CreditNoteQueryKeys, CustomFieldDefinitionQueryKeys, DunningCaseQueryKeys, InvoiceApprovalQueryKeys, InvoiceQueryKeys, IssuerSettingsQueryKeys, };
|
|
10
|
+
export interface InvoicingQueryKeys extends AccountingQueryKeys, InvoiceDeliveryQueryKeys, CreditNoteQueryKeys, CustomFieldDefinitionQueryKeys, DunningCaseQueryKeys, InvoiceApprovalQueryKeys, InvoiceQueryKeys, IssuerSettingsQueryKeys {
|
|
10
11
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UseQueryReturnType } from '@wisemen/vue-core-api-utils';
|
|
1
|
+
import { ApiError, UseQueryReturnType } from '@wisemen/vue-core-api-utils';
|
|
2
2
|
declare const __VLS_export: <TQueries>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
3
|
props: import('vue').PublicProps & __VLS_PrettifyLocal<{
|
|
4
4
|
queries: { [KQuery in keyof TQueries]: UseQueryReturnType<TQueries[KQuery]>; };
|
|
@@ -9,6 +9,10 @@ declare const __VLS_export: <TQueries>(__VLS_props: NonNullable<Awaited<typeof _
|
|
|
9
9
|
attrs: any;
|
|
10
10
|
slots: {
|
|
11
11
|
loading?: (props: {}) => any;
|
|
12
|
+
} & {
|
|
13
|
+
error?: (props: {
|
|
14
|
+
error: ApiError;
|
|
15
|
+
}) => any;
|
|
12
16
|
} & {
|
|
13
17
|
default?: (props: {
|
|
14
18
|
data: { [KQuery in keyof TQueries]: TQueries[KQuery]; };
|
package/package.json
CHANGED
|
@@ -1,319 +0,0 @@
|
|
|
1
|
-
import "./api.util-lGbimoKL.js";
|
|
2
|
-
import { d as e, h as t, o as n } from "./documentTitle.composable-aTEYXgaZ.js";
|
|
3
|
-
import { t as r } from "./address.transformer-jGddczLV.js";
|
|
4
|
-
import { n as i, r as a, t as o } from "./plainDate.transformer-Bhiz9jW7.js";
|
|
5
|
-
import { t as s } from "./dist-CwkVU5yS.js";
|
|
6
|
-
import { n as c } from "./percentage.util-Bl78kSSk.js";
|
|
7
|
-
import { Temporal as l } from "temporal-polyfill";
|
|
8
|
-
//#region src/models/billing-document/activity-log/billingDocumentActivityLog.transformer.ts
|
|
9
|
-
var u = class {
|
|
10
|
-
static fromDto(e) {
|
|
11
|
-
return {
|
|
12
|
-
createdAt: a.fromDto(e.createdAt),
|
|
13
|
-
action: e.action,
|
|
14
|
-
actor: e.actor,
|
|
15
|
-
actorType: e.actorType,
|
|
16
|
-
changes: e.changes ?? [],
|
|
17
|
-
entities: e.entities
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
}, d = class {
|
|
21
|
-
static fromDto(e) {
|
|
22
|
-
if (e === null) return null;
|
|
23
|
-
if (e.type === t.PERCENTAGE) {
|
|
24
|
-
let t = c.fromNullableDto(e.percentage);
|
|
25
|
-
return t?.getValue() === 0 ? null : {
|
|
26
|
-
amount: null,
|
|
27
|
-
description: e.description,
|
|
28
|
-
percentage: t,
|
|
29
|
-
type: e.type
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
return {
|
|
33
|
-
amount: e.amount === null ? null : i.fromDto(e.amount),
|
|
34
|
-
description: e.description,
|
|
35
|
-
percentage: c.fromNullableDto(e.percentage),
|
|
36
|
-
type: e.type
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
static toDto(e) {
|
|
40
|
-
return e === null ? null : e.type === t.PERCENTAGE ? {
|
|
41
|
-
amount: null,
|
|
42
|
-
description: e.description,
|
|
43
|
-
percentage: c.toNullableDto(e.percentage),
|
|
44
|
-
type: e.type
|
|
45
|
-
} : {
|
|
46
|
-
amount: i.toNullableDto(e.amount),
|
|
47
|
-
description: e.description,
|
|
48
|
-
percentage: c.toNullableDto(e.percentage),
|
|
49
|
-
type: e.type
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
}, f = class {
|
|
53
|
-
static flattenLines(e) {
|
|
54
|
-
return e.flatMap((e) => [...e.lines, ...this.flattenLines(e.groups)]);
|
|
55
|
-
}
|
|
56
|
-
}, p = class e {
|
|
57
|
-
static fromDto(e) {
|
|
58
|
-
return {
|
|
59
|
-
uuid: e.uuid,
|
|
60
|
-
name: e.name,
|
|
61
|
-
blurHash: e.blurHash,
|
|
62
|
-
mimeType: e.mimeType
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
static fromNullableDto(t) {
|
|
66
|
-
return t === null ? null : e.fromDto(t);
|
|
67
|
-
}
|
|
68
|
-
static fromNullablePresignedDto(t) {
|
|
69
|
-
return t === null ? null : e.fromPresignedDto(t);
|
|
70
|
-
}
|
|
71
|
-
static fromPresignedDto(e) {
|
|
72
|
-
return {
|
|
73
|
-
uuid: e.uuid,
|
|
74
|
-
name: e.name,
|
|
75
|
-
mimeType: e.mimeType,
|
|
76
|
-
url: e.url
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
static toForm(e, t) {
|
|
80
|
-
return {
|
|
81
|
-
uuid: e.uuid,
|
|
82
|
-
name: e.name,
|
|
83
|
-
blurHash: e.blurHash,
|
|
84
|
-
mimeType: e.mimeType,
|
|
85
|
-
order: t,
|
|
86
|
-
url: null
|
|
87
|
-
};
|
|
88
|
-
}
|
|
89
|
-
};
|
|
90
|
-
//#endregion
|
|
91
|
-
//#region src/modules/custom-field/models/custom-field-value/customFieldValue.transformer.ts
|
|
92
|
-
function m(e) {
|
|
93
|
-
return e === "infinity" || e === "-infinity" ? e : o.fromDto(e);
|
|
94
|
-
}
|
|
95
|
-
var h = class {
|
|
96
|
-
static fromDto(t) {
|
|
97
|
-
let n = t.definitionUuid;
|
|
98
|
-
switch (t.type) {
|
|
99
|
-
case e.BOOLEAN: return {
|
|
100
|
-
definitionUuid: n,
|
|
101
|
-
type: e.BOOLEAN,
|
|
102
|
-
value: t.value
|
|
103
|
-
};
|
|
104
|
-
case e.DATE: return {
|
|
105
|
-
definitionUuid: n,
|
|
106
|
-
type: e.DATE,
|
|
107
|
-
value: m(t.value)
|
|
108
|
-
};
|
|
109
|
-
case e.MONETARY: return {
|
|
110
|
-
definitionUuid: n,
|
|
111
|
-
type: e.MONETARY,
|
|
112
|
-
value: i.fromDto(t.value)
|
|
113
|
-
};
|
|
114
|
-
case e.MULTI_SELECT: return {
|
|
115
|
-
definitionUuid: n,
|
|
116
|
-
type: e.MULTI_SELECT,
|
|
117
|
-
value: t.value
|
|
118
|
-
};
|
|
119
|
-
case e.NUMBER: return {
|
|
120
|
-
definitionUuid: n,
|
|
121
|
-
type: e.NUMBER,
|
|
122
|
-
value: t.value
|
|
123
|
-
};
|
|
124
|
-
case e.REFERENCE: return {
|
|
125
|
-
definitionUuid: n,
|
|
126
|
-
type: e.REFERENCE,
|
|
127
|
-
value: t.value
|
|
128
|
-
};
|
|
129
|
-
case e.SINGLE_SELECT: return {
|
|
130
|
-
definitionUuid: n,
|
|
131
|
-
type: e.SINGLE_SELECT,
|
|
132
|
-
value: t.value
|
|
133
|
-
};
|
|
134
|
-
case e.TEXT: return {
|
|
135
|
-
definitionUuid: n,
|
|
136
|
-
type: e.TEXT,
|
|
137
|
-
value: t.value
|
|
138
|
-
};
|
|
139
|
-
case e.TEXT_ARRAY: return {
|
|
140
|
-
definitionUuid: n,
|
|
141
|
-
type: e.TEXT_ARRAY,
|
|
142
|
-
value: t.value
|
|
143
|
-
};
|
|
144
|
-
case e.TIMESTAMP: return {
|
|
145
|
-
definitionUuid: n,
|
|
146
|
-
type: e.TIMESTAMP,
|
|
147
|
-
value: a.fromDto(t.value)
|
|
148
|
-
};
|
|
149
|
-
}
|
|
150
|
-
throw TypeError("Unsupported custom field value DTO type");
|
|
151
|
-
}
|
|
152
|
-
static toDto(t) {
|
|
153
|
-
switch (t.type) {
|
|
154
|
-
case e.BOOLEAN:
|
|
155
|
-
case e.MULTI_SELECT:
|
|
156
|
-
case e.NUMBER:
|
|
157
|
-
case e.REFERENCE:
|
|
158
|
-
case e.SINGLE_SELECT:
|
|
159
|
-
case e.TEXT:
|
|
160
|
-
case e.TEXT_ARRAY: return t;
|
|
161
|
-
case e.DATE: return {
|
|
162
|
-
...t,
|
|
163
|
-
value: typeof t.value == "string" ? t.value : o.toDto(t.value)
|
|
164
|
-
};
|
|
165
|
-
case e.MONETARY: return {
|
|
166
|
-
...t,
|
|
167
|
-
value: i.toDto(t.value)
|
|
168
|
-
};
|
|
169
|
-
case e.TIMESTAMP: return {
|
|
170
|
-
...t,
|
|
171
|
-
value: t.value.toString()
|
|
172
|
-
};
|
|
173
|
-
}
|
|
174
|
-
throw TypeError("Unsupported custom field value type");
|
|
175
|
-
}
|
|
176
|
-
};
|
|
177
|
-
//#endregion
|
|
178
|
-
//#region src/models/billing-document/billingDocumentDetail.transformer.ts
|
|
179
|
-
function g(e) {
|
|
180
|
-
return {
|
|
181
|
-
uuid: e.uuid,
|
|
182
|
-
externalId: e.externalId,
|
|
183
|
-
groupUuid: e.groupUuid,
|
|
184
|
-
isDiscount: e.isDiscount,
|
|
185
|
-
name: e.name,
|
|
186
|
-
customFields: e.customFields.map(h.fromDto),
|
|
187
|
-
description: e.description,
|
|
188
|
-
discount: d.fromDto(e.discount),
|
|
189
|
-
grossAmount: i.fromDto(e.grossAmount),
|
|
190
|
-
netAmount: i.fromDto(e.netAmount),
|
|
191
|
-
originalLine: e.originalLine === null ? null : {
|
|
192
|
-
uuid: e.originalLine.uuid,
|
|
193
|
-
quantity: e.originalLine.quantity,
|
|
194
|
-
remainingQuantity: e.originalLine.remainingQuantity
|
|
195
|
-
},
|
|
196
|
-
position: e.position,
|
|
197
|
-
quantity: e.quantity,
|
|
198
|
-
unit: e.unit,
|
|
199
|
-
unitPrice: i.fromDto(e.unitPrice),
|
|
200
|
-
vatRate: e.vatRate,
|
|
201
|
-
vatRatePercentage: c.fromDto(e.vatRatePercentage)
|
|
202
|
-
};
|
|
203
|
-
}
|
|
204
|
-
function _(e) {
|
|
205
|
-
return {
|
|
206
|
-
uuid: e.uuid,
|
|
207
|
-
externalId: e.externalId,
|
|
208
|
-
name: e.name,
|
|
209
|
-
customFields: e.customFields.map(h.fromDto),
|
|
210
|
-
description: e.description,
|
|
211
|
-
groups: e.groups.toSorted((e, t) => e.position - t.position).map(_),
|
|
212
|
-
lines: e.lines.toSorted((e, t) => e.position - t.position).map(g),
|
|
213
|
-
position: e.position
|
|
214
|
-
};
|
|
215
|
-
}
|
|
216
|
-
function v(e) {
|
|
217
|
-
return {
|
|
218
|
-
uuid: e.uuid,
|
|
219
|
-
createdAt: a.fromDto(e.createdAt),
|
|
220
|
-
grossAmount: i.fromDto(e.grossAmount),
|
|
221
|
-
paidAmount: i.fromNullableDto(e.paidAmount),
|
|
222
|
-
sequence: e.sequence,
|
|
223
|
-
status: e.status,
|
|
224
|
-
totalCreditedAmount: i.fromNullableDto(e.totalCreditedAmount)
|
|
225
|
-
};
|
|
226
|
-
}
|
|
227
|
-
function y(e) {
|
|
228
|
-
return e === null ? null : {
|
|
229
|
-
name: e.name,
|
|
230
|
-
email: e.email
|
|
231
|
-
};
|
|
232
|
-
}
|
|
233
|
-
function b(e) {
|
|
234
|
-
if (e.balanceDueAmount === null) return null;
|
|
235
|
-
let t = e.paidAmount?.amount ?? 0, n = Math.max(e.grossAmount.amount - e.balanceDueAmount.amount - t, 0);
|
|
236
|
-
return n > 0 ? i.fromDto({
|
|
237
|
-
...e.grossAmount,
|
|
238
|
-
amount: n
|
|
239
|
-
}) : null;
|
|
240
|
-
}
|
|
241
|
-
var x = class {
|
|
242
|
-
static fromViewInvoiceDetailDto(e, t, c) {
|
|
243
|
-
let u = e.ungroupedLines.map(g), m = e.groups.toSorted((e, t) => e.position - t.position).map(_), x = [...u, ...f.flattenLines(m)].toSorted((e, t) => e.position - t.position);
|
|
244
|
-
return {
|
|
245
|
-
uuid: t,
|
|
246
|
-
createdAt: a.fromDto(e.createdAt),
|
|
247
|
-
deliveredOn: o.fromNullableDto(e.deliveredOn),
|
|
248
|
-
dueOn: o.fromDto(e.dueOn ?? l.Now.plainDateISO().toString()),
|
|
249
|
-
issueOn: o.fromDto(e.issueOn ?? l.Now.plainDateISO().toString()),
|
|
250
|
-
updatedAt: a.fromDto(e.updatedAt),
|
|
251
|
-
isDisputed: e.isDisputed,
|
|
252
|
-
isOverdue: e.isOverdue,
|
|
253
|
-
issuer: {
|
|
254
|
-
uuid: e.issuer.uuid,
|
|
255
|
-
name: e.issuer.name,
|
|
256
|
-
address: r.fromNullableDto(e.issuer.address),
|
|
257
|
-
alternativeBankAccountNumber: e.issuer.alternativeBankAccountNumber,
|
|
258
|
-
bankAccountNumber: e.issuer.bankAccountNumber,
|
|
259
|
-
email: e.issuer.email,
|
|
260
|
-
phoneNumber: e.issuer.phoneNumber,
|
|
261
|
-
vatNumber: e.issuer.vatNumber,
|
|
262
|
-
website: e.issuer.website
|
|
263
|
-
},
|
|
264
|
-
advancePaymentAmount: i.fromNullableDto(e.advancePaymentAmount),
|
|
265
|
-
approvalFiles: e.approvalFiles.map(p.fromDto),
|
|
266
|
-
attachments: e.attachments.map(p.fromDto),
|
|
267
|
-
balanceDueAmount: i.fromNullableDto(e.balanceDueAmount),
|
|
268
|
-
creditNotes: e.creditNotes.map(v),
|
|
269
|
-
currency: e.currency,
|
|
270
|
-
customer: {
|
|
271
|
-
uuid: e.customer.uuid,
|
|
272
|
-
externalId: e.customer.externalId,
|
|
273
|
-
name: e.customer.name,
|
|
274
|
-
address: r.fromNullableDto(e.customer.address),
|
|
275
|
-
email: e.customer.email,
|
|
276
|
-
phoneNumber: e.customer.phoneNumber,
|
|
277
|
-
type: e.customer.type,
|
|
278
|
-
vatNumber: e.customer.vatNumber
|
|
279
|
-
},
|
|
280
|
-
customFields: e.customFields.map(h.fromDto),
|
|
281
|
-
deliveryStatus: e.deliveryStatus,
|
|
282
|
-
effectiveNet: i.fromDto(e.effectiveNet),
|
|
283
|
-
externalRemarks: s.trimOrNull(e.externalRemarks),
|
|
284
|
-
file: p.fromNullableDto(e.file),
|
|
285
|
-
globalDiscount: d.fromDto(e.globalDiscount),
|
|
286
|
-
grossAmount: i.fromDto(e.grossAmount),
|
|
287
|
-
groups: m,
|
|
288
|
-
lifecycleStatus: e.lifecycleStatus,
|
|
289
|
-
lines: x,
|
|
290
|
-
netAmount: i.fromDto(e.netAmount),
|
|
291
|
-
originalInvoice: e.originalInvoice === null ? null : v(e.originalInvoice),
|
|
292
|
-
paidAmount: i.fromNullableDto(e.paidAmount),
|
|
293
|
-
paymentReference: e.paymentReference,
|
|
294
|
-
poNumber: e.poNumber,
|
|
295
|
-
preparedBy: {
|
|
296
|
-
uuid: e.preparedBy.uuid,
|
|
297
|
-
name: `${e.preparedBy.firstName ?? "-"} ${e.preparedBy.lastName ?? "-"}`
|
|
298
|
-
},
|
|
299
|
-
recipient: y(e.approvalMode === n.PRO_FORMA ? e.approvalRecipient : e.billingDocumentRecipient),
|
|
300
|
-
reference: e.reference,
|
|
301
|
-
sequence: e.sequence,
|
|
302
|
-
settlementStatus: e.settlementStatus,
|
|
303
|
-
status: e.status,
|
|
304
|
-
subject: s.trimOrNull(e.subject),
|
|
305
|
-
totalCreditedAmount: b(e),
|
|
306
|
-
totalDiscountAmount: i.fromNullableDto(e.totalDiscountAmount),
|
|
307
|
-
type: c,
|
|
308
|
-
ungroupedLines: u,
|
|
309
|
-
vatAmount: i.fromDto(e.vatAmount),
|
|
310
|
-
vatSummaries: e.vatSummaries.map((e) => ({
|
|
311
|
-
netAmount: i.fromDto(e.netAmount),
|
|
312
|
-
vatAmount: i.fromDto(e.vatAmount),
|
|
313
|
-
vatRate: e.vatRate
|
|
314
|
-
}))
|
|
315
|
-
};
|
|
316
|
-
}
|
|
317
|
-
};
|
|
318
|
-
//#endregion
|
|
319
|
-
export { d as a, f as i, h as n, u as o, p as r, x as t };
|