@wisemen/wise-invoicing-web 0.5.0 → 0.7.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-CD0Seawd.js → ApprovalReminderSettingsViewDataProvider-Dsp3ee3c.js} +4 -4
- package/dist/{BillingDocumentDetailViewDataProvider-BgVYrLu8.js → BillingDocumentDetailViewDataProvider-TX-tovKU.js} +1708 -1576
- package/dist/BillingDocumentDetailViewDataProvider.css +1 -1
- package/dist/{BillingDocumentPdf-LYvPMzYT.js → BillingDocumentPdf-c-7N80u4.js} +266 -205
- package/dist/{CreditNoteDetailViewDataProvider-CpSIbMM2.js → CreditNoteDetailViewDataProvider-BNT0h67Q.js} +196 -189
- package/dist/{CreditNotePdfViewDataProvider-Dtnu9gS3.js → CreditNotePdfViewDataProvider-qgOuhUf_.js} +2 -2
- package/dist/{CustomFieldValueText-DA0aPKwC.js → CustomFieldValueText-BP4bKQh7.js} +68 -38
- package/dist/{DunningCaseDetailViewDataProvider-DutSCkco.js → DunningCaseDetailViewDataProvider-BNByfQTc.js} +13 -13
- package/dist/{DunningCaseOverviewView-D8o4VMQD.js → DunningCaseOverviewView-Dvwaw597.js} +23 -23
- package/dist/{DunningCaseReminderPdfViewDataProvider-I_ZQiAuK.js → DunningCaseReminderPdfViewDataProvider-D1avIVyK.js} +1 -1
- package/dist/{DunningCaseSendDialog-DGg7bXeZ.js → DunningCaseSendDialog-DwB_jFum.js} +17 -17
- package/dist/{InvoiceApprovalOutOfSyncIndicator-AJOQe8j8.js → InvoiceApprovalOutOfSyncIndicator-B_9HLzpt.js} +2 -2
- package/dist/{InvoiceApprovalOverviewView-C4MI4IqD.js → InvoiceApprovalOverviewView-jawT-M1t.js} +213 -213
- package/dist/{InvoiceApprovalStatusBadge-BJ3Q18bf.js → InvoiceApprovalStatusBadge-D6Sr6JmN.js} +4 -4
- package/dist/{InvoiceApproveDialogDataProvider-CMZ0zDZo.js → InvoiceApproveDialogDataProvider-Bwb8bP1e.js} +16 -16
- package/dist/{InvoiceDetailViewDataProvider-k1yIeHYP.js → InvoiceDetailViewDataProvider-B8mMYTQf.js} +648 -642
- package/dist/{InvoiceOverviewViewDataProvider-BrgmweRE.js → InvoiceOverviewViewDataProvider-CLgV-Jcv.js} +501 -501
- package/dist/{InvoicePdfView-CB8gx8TE.js → InvoicePdfView-C518PlHp.js} +2 -2
- package/dist/{InvoicePdfViewDataProvider-Cs4Gqa0h.js → InvoicePdfViewDataProvider-ClfBkHUZ.js} +3 -3
- package/dist/{InvoicePublicPdfViewDataProvider-BaSvVJ8W.js → InvoicePublicPdfViewDataProvider-CoXBj3Je.js} +3 -3
- package/dist/{InvoicePublicProFormaPdfViewDataProvider-S3N9E91M.js → InvoicePublicProFormaPdfViewDataProvider-WlVD7sw1.js} +3 -3
- package/dist/{InvoicingFileUploadProvider-BLBjPKqx.js → InvoicingFileUploadProvider-Dl1LvCPm.js} +2 -2
- package/dist/{IssuerSettingsViewDataProvider-BStn0jFI.js → IssuerSettingsViewDataProvider-CXyyCvoZ.js} +51 -46
- package/dist/PeppolSettingsViewDataProvider-Cptga29B.js +276 -0
- package/dist/{ReminderSettingsViewDataProvider-BotrOSmS.js → ReminderSettingsViewDataProvider-BZgzQIxM.js} +63 -63
- package/dist/{api.util-D6m6OY3_.js → api.util-CR2xLnNj.js} +785 -670
- package/dist/{billingDocumentDetail.transformer-Da-Nt4bI.js → billingDocumentDetail.transformer-D1f6Nv-U.js} +9 -2
- package/dist/client/index.d.ts +2 -2
- package/dist/client/sdk.gen.d.ts +4 -1
- package/dist/client/types.gen.d.ts +240 -56
- package/dist/client/zod.gen.d.ts +4206 -1343
- package/dist/composables/invoicingConfig.composable.d.ts +12 -0
- package/dist/{creditNoteDetail.query-Yb8TdZNm.js → creditNoteDetail.query-DGeG9_sO.js} +15 -15
- package/dist/{dist-DCbLgB6Y.js → dist-BMzyJZTx.js} +258 -114
- package/dist/{dist-BpDuRYDT.js → dist-DALBiuub.js} +134 -134
- package/dist/{documentTitle.composable-CRJjS6p-.js → documentTitle.composable-RvqrZTBa.js} +28 -26
- package/dist/{download.util-B5Q7KUC9.js → download.util-LyRpGWKA.js} +9 -0
- package/dist/{i18n.lib-DBxdqkbJ.js → i18n.lib-MOiHLIGc.js} +58 -2
- package/dist/index.d.ts +59 -2
- package/dist/index.js +232 -212
- package/dist/{invoice.service-DWDl9XRh.js → invoice.service-Fv4F4aZq.js} +39 -38
- package/dist/{invoiceApproval.service-Fwlxgd9o.js → invoiceApproval.service-DJvXagC7.js} +7 -7
- package/dist/{invoiceApprovalStatus.util-q-zHLdFV.js → invoiceApprovalStatus.util-B98WeAf0.js} +2 -2
- package/dist/{invoiceCustomer.service-DOexR54S.js → invoiceCustomer.service-CDyrtcwH.js} +6 -6
- package/dist/{invoiceDetail.query-B5w0Vlsy.js → invoiceDetail.query-UHE0NCLh.js} +1 -1
- package/dist/{invoiceIndexCache.util-CUlp4R7R.js → invoiceIndexCache.util-CLM7FO6z.js} +3 -3
- package/dist/{invoicingConfig.composable-CaWQMTP1.js → invoicingConfig.composable-UC7tGtBj.js} +14 -10
- package/dist/{issuerSettings.query-BHuLjV9P.js → issuerSettings.query-CoiXblSm.js} +2 -2
- package/dist/libs/i18n.lib.d.ts +56 -0
- package/dist/locales/en-US.json.d.ts +29 -1
- package/dist/locales/nl-BE.json.d.ts +29 -1
- package/dist/models/billing-document/billingDocumentAdvancePayment.util.d.ts +9 -0
- package/dist/models/billing-document/billingDocumentAdvancePayment.util.spec.d.ts +1 -0
- package/dist/models/billing-document/billingDocumentDetail.model.d.ts +1 -0
- package/dist/modules/custom-field/components/CustomFieldList.vue.d.ts +0 -1
- package/dist/modules/custom-field/components/customFieldList.spec.d.ts +1 -0
- package/dist/modules/custom-field/components/customFieldTypeIcon.d.ts +16 -0
- package/dist/modules/custom-field/components/customFieldValueText.spec.d.ts +1 -0
- package/dist/modules/custom-field/composables/customFieldReferenceLinks.composable.d.ts +16 -0
- package/dist/modules/custom-field/composables/customFieldReferenceLinks.composable.spec.d.ts +1 -0
- package/dist/modules/custom-field/models/custom-field-definition/customFieldDefinition.model.d.ts +6 -0
- package/dist/modules/custom-field/models/custom-field-definition/customFieldDefinition.transformer.spec.d.ts +1 -0
- package/dist/modules/custom-field/models/custom-field-definition/customFieldDefinition.util.d.ts +6 -0
- package/dist/modules/custom-field/models/custom-field-definition/customFieldViewKey.model.d.ts +9 -0
- package/dist/modules/custom-field/models/custom-field-value/customFieldValue.model.d.ts +1 -1
- package/dist/modules/custom-field/models/custom-field-value/customFieldValue.util.d.ts +10 -0
- package/dist/modules/custom-field/test/builders/customFieldDefinition.builder.d.ts +3 -1
- package/dist/modules/invoice/models/invoice/pdf/invoicePdfDetail.model.d.ts +1 -0
- package/dist/modules/invoice/use-cases/detail/composables/invoiceDetailPaymentsTableColumns.composable.d.ts +1 -1
- package/dist/modules/invoice-delivery/api/mutations/peppolConnectionUpdate.mutation.d.ts +6 -0
- package/dist/modules/invoice-delivery/api/queries/peppolConnection.query.d.ts +1 -0
- package/dist/modules/invoice-delivery/api/query-keys/invoiceDelivery.queryKeys.d.ts +6 -0
- package/dist/modules/invoice-delivery/api/services/peppolConnection.service.d.ts +8 -0
- package/dist/modules/invoice-delivery/components/form/PeppolConnectionFormApiKeyField.vue.d.ts +8 -0
- package/dist/modules/invoice-delivery/components/form/PeppolConnectionFormCompanyField.vue.d.ts +11 -0
- package/dist/modules/invoice-delivery/components/form/PeppolConnectionFormEnabledField.vue.d.ts +7 -0
- package/dist/modules/invoice-delivery/components/form/PeppolConnectionFormProviderField.vue.d.ts +9 -0
- package/dist/modules/invoice-delivery/index.d.ts +1 -0
- package/dist/modules/invoice-delivery/models/deliveryReason.util.d.ts +6 -0
- package/dist/modules/invoice-delivery/models/peppolConnection.model.d.ts +18 -0
- package/dist/modules/invoice-delivery/models/peppolConnection.transformer.d.ts +9 -0
- package/dist/modules/invoice-delivery/models/peppolConnectionForm.model.d.ts +9 -0
- package/dist/modules/invoice-delivery/use-cases/settings/views/PeppolSettingsView.vue.d.ts +7 -0
- package/dist/modules/invoice-delivery/use-cases/settings/views/PeppolSettingsViewDataProvider.vue.d.ts +3 -0
- package/dist/modules/settings/routes/settings.routes.d.ts +7 -0
- package/dist/{reminderConfig.query-C4J6m4ER.js → reminderConfig.query-aRFzY6uZ.js} +22 -22
- package/dist/style.css +1 -1
- package/dist/types/queryKey.type.d.ts +2 -1
- package/dist/ui/billing-document/table/billingDocumentLineItemsTable.context.d.ts +114 -0
- package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsEditor.composable.d.ts +57 -36
- package/dist/ui/customer-invoice-list/composables/customerInvoiceTableColumns.composable.d.ts +6 -1
- package/dist/ui/customer-invoice-list/composables/customerInvoiceTableColumns.composable.spec.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
import { Component, MaybeRefOrGetter } from 'vue';
|
|
2
2
|
import { RouteLocationRaw } from 'vue-router';
|
|
3
|
+
import { CustomFieldEntityType } from '../client/index.ts';
|
|
4
|
+
/**
|
|
5
|
+
* A reference custom field value, together with the definition fields that say what it
|
|
6
|
+
* points to. The package does not know the referenced entity, so the host maps it to a route.
|
|
7
|
+
*/
|
|
8
|
+
export interface CustomFieldReference {
|
|
9
|
+
entityType: CustomFieldEntityType;
|
|
10
|
+
key: string;
|
|
11
|
+
value: string;
|
|
12
|
+
}
|
|
3
13
|
export interface InvoicingConfig {
|
|
4
14
|
isDeliveryDateVisible?: boolean;
|
|
5
15
|
isGlobalDiscountEnabled?: boolean;
|
|
@@ -11,6 +21,7 @@ export interface InvoicingInitProps {
|
|
|
11
21
|
environment?: string;
|
|
12
22
|
getAccessToken?: () => Promise<string | null>;
|
|
13
23
|
getCustomerDetailRoute?: (customerUuid: string) => RouteLocationRaw | null;
|
|
24
|
+
getCustomFieldReferenceRoute?: (reference: CustomFieldReference) => RouteLocationRaw | null;
|
|
14
25
|
/**
|
|
15
26
|
* Renders the invoice PDF instead of the built-in layout, on both the in-app preview and the
|
|
16
27
|
* public token route. It receives a single `invoice: InvoicePdfDetail` prop, so a host app can
|
|
@@ -26,6 +37,7 @@ export declare function useInvoicingConfig(): {
|
|
|
26
37
|
isInitialized: import('vue').ComputedRef<boolean>;
|
|
27
38
|
isLineDiscountEnabled: import('vue').ComputedRef<boolean>;
|
|
28
39
|
getCustomerDetailRoute: (customerUuid: string) => RouteLocationRaw | null;
|
|
40
|
+
getCustomFieldReferenceRoute: (reference: CustomFieldReference) => RouteLocationRaw | null;
|
|
29
41
|
init: (props: InvoicingInitProps) => Promise<void>;
|
|
30
42
|
invoicePdfComponent: import('vue').ComputedRef<Component | null>;
|
|
31
43
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { r as u, x as d } from "./documentTitle.composable-
|
|
1
|
+
import { H as e, L as t, S as n, T as r, V as i, Y as a, h as o, it as s, t as c, y as l } from "./api.util-CR2xLnNj.js";
|
|
2
|
+
import { r as u, x as d } from "./documentTitle.composable-RvqrZTBa.js";
|
|
3
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-
|
|
4
|
+
import { a as m, n as h, o as g, t as _ } from "./billingDocumentDetail.transformer-D1f6Nv-U.js";
|
|
5
5
|
import { t as v } from "./dist-BFx8U4Su.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
|
|
@@ -62,7 +62,7 @@ var w = class {
|
|
|
62
62
|
}
|
|
63
63
|
}, T = class {
|
|
64
64
|
static async delete(e) {
|
|
65
|
-
let t = await c.fromPromise(
|
|
65
|
+
let t = await c.fromPromise(o({ path: { uuid: e } }));
|
|
66
66
|
return c.void(t);
|
|
67
67
|
}
|
|
68
68
|
static async finalize(e) {
|
|
@@ -70,7 +70,7 @@ var w = class {
|
|
|
70
70
|
return c.void(t);
|
|
71
71
|
}
|
|
72
72
|
static async getActivityLogs(e, t) {
|
|
73
|
-
return (await c.fromPromise(
|
|
73
|
+
return (await c.fromPromise(a({ query: {
|
|
74
74
|
filter: {
|
|
75
75
|
entityUuids: [e],
|
|
76
76
|
roles: [u.CREDIT_NOTE]
|
|
@@ -85,7 +85,7 @@ var w = class {
|
|
|
85
85
|
}));
|
|
86
86
|
}
|
|
87
87
|
static async getByUuid(e) {
|
|
88
|
-
return (await c.fromPromise(
|
|
88
|
+
return (await c.fromPromise(s({ path: { uuid: e } }))).map((e) => b.fromDto(e.data));
|
|
89
89
|
}
|
|
90
90
|
static async markAsDraft(e) {
|
|
91
91
|
let t = await c.fromPromise(n({ path: { uuid: e } }));
|
|
@@ -99,20 +99,20 @@ var w = class {
|
|
|
99
99
|
let n = await c.fromPromise(t({ path: { uuid: e } }));
|
|
100
100
|
return c.void(n);
|
|
101
101
|
}
|
|
102
|
-
static async update(
|
|
103
|
-
let n = await c.fromPromise(i({
|
|
104
|
-
body: x.toDto(t),
|
|
105
|
-
path: { uuid: e }
|
|
106
|
-
}));
|
|
107
|
-
return c.void(n);
|
|
108
|
-
}
|
|
109
|
-
static async updateLines(t, n) {
|
|
102
|
+
static async update(t, n) {
|
|
110
103
|
let r = await c.fromPromise(e({
|
|
111
|
-
body:
|
|
104
|
+
body: x.toDto(n),
|
|
112
105
|
path: { uuid: t }
|
|
113
106
|
}));
|
|
114
107
|
return c.void(r);
|
|
115
108
|
}
|
|
109
|
+
static async updateLines(e, t) {
|
|
110
|
+
let n = await c.fromPromise(i({
|
|
111
|
+
body: w.toDto(t),
|
|
112
|
+
path: { uuid: e }
|
|
113
|
+
}));
|
|
114
|
+
return c.void(n);
|
|
115
|
+
}
|
|
116
116
|
};
|
|
117
117
|
//#endregion
|
|
118
118
|
//#region src/modules/credit-note/api/queries/creditNoteDetail.query.ts
|