@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.
Files changed (93) hide show
  1. package/dist/{ApprovalReminderSettingsViewDataProvider-CD0Seawd.js → ApprovalReminderSettingsViewDataProvider-Dsp3ee3c.js} +4 -4
  2. package/dist/{BillingDocumentDetailViewDataProvider-BgVYrLu8.js → BillingDocumentDetailViewDataProvider-TX-tovKU.js} +1708 -1576
  3. package/dist/BillingDocumentDetailViewDataProvider.css +1 -1
  4. package/dist/{BillingDocumentPdf-LYvPMzYT.js → BillingDocumentPdf-c-7N80u4.js} +266 -205
  5. package/dist/{CreditNoteDetailViewDataProvider-CpSIbMM2.js → CreditNoteDetailViewDataProvider-BNT0h67Q.js} +196 -189
  6. package/dist/{CreditNotePdfViewDataProvider-Dtnu9gS3.js → CreditNotePdfViewDataProvider-qgOuhUf_.js} +2 -2
  7. package/dist/{CustomFieldValueText-DA0aPKwC.js → CustomFieldValueText-BP4bKQh7.js} +68 -38
  8. package/dist/{DunningCaseDetailViewDataProvider-DutSCkco.js → DunningCaseDetailViewDataProvider-BNByfQTc.js} +13 -13
  9. package/dist/{DunningCaseOverviewView-D8o4VMQD.js → DunningCaseOverviewView-Dvwaw597.js} +23 -23
  10. package/dist/{DunningCaseReminderPdfViewDataProvider-I_ZQiAuK.js → DunningCaseReminderPdfViewDataProvider-D1avIVyK.js} +1 -1
  11. package/dist/{DunningCaseSendDialog-DGg7bXeZ.js → DunningCaseSendDialog-DwB_jFum.js} +17 -17
  12. package/dist/{InvoiceApprovalOutOfSyncIndicator-AJOQe8j8.js → InvoiceApprovalOutOfSyncIndicator-B_9HLzpt.js} +2 -2
  13. package/dist/{InvoiceApprovalOverviewView-C4MI4IqD.js → InvoiceApprovalOverviewView-jawT-M1t.js} +213 -213
  14. package/dist/{InvoiceApprovalStatusBadge-BJ3Q18bf.js → InvoiceApprovalStatusBadge-D6Sr6JmN.js} +4 -4
  15. package/dist/{InvoiceApproveDialogDataProvider-CMZ0zDZo.js → InvoiceApproveDialogDataProvider-Bwb8bP1e.js} +16 -16
  16. package/dist/{InvoiceDetailViewDataProvider-k1yIeHYP.js → InvoiceDetailViewDataProvider-B8mMYTQf.js} +648 -642
  17. package/dist/{InvoiceOverviewViewDataProvider-BrgmweRE.js → InvoiceOverviewViewDataProvider-CLgV-Jcv.js} +501 -501
  18. package/dist/{InvoicePdfView-CB8gx8TE.js → InvoicePdfView-C518PlHp.js} +2 -2
  19. package/dist/{InvoicePdfViewDataProvider-Cs4Gqa0h.js → InvoicePdfViewDataProvider-ClfBkHUZ.js} +3 -3
  20. package/dist/{InvoicePublicPdfViewDataProvider-BaSvVJ8W.js → InvoicePublicPdfViewDataProvider-CoXBj3Je.js} +3 -3
  21. package/dist/{InvoicePublicProFormaPdfViewDataProvider-S3N9E91M.js → InvoicePublicProFormaPdfViewDataProvider-WlVD7sw1.js} +3 -3
  22. package/dist/{InvoicingFileUploadProvider-BLBjPKqx.js → InvoicingFileUploadProvider-Dl1LvCPm.js} +2 -2
  23. package/dist/{IssuerSettingsViewDataProvider-BStn0jFI.js → IssuerSettingsViewDataProvider-CXyyCvoZ.js} +51 -46
  24. package/dist/PeppolSettingsViewDataProvider-Cptga29B.js +276 -0
  25. package/dist/{ReminderSettingsViewDataProvider-BotrOSmS.js → ReminderSettingsViewDataProvider-BZgzQIxM.js} +63 -63
  26. package/dist/{api.util-D6m6OY3_.js → api.util-CR2xLnNj.js} +785 -670
  27. package/dist/{billingDocumentDetail.transformer-Da-Nt4bI.js → billingDocumentDetail.transformer-D1f6Nv-U.js} +9 -2
  28. package/dist/client/index.d.ts +2 -2
  29. package/dist/client/sdk.gen.d.ts +4 -1
  30. package/dist/client/types.gen.d.ts +240 -56
  31. package/dist/client/zod.gen.d.ts +4206 -1343
  32. package/dist/composables/invoicingConfig.composable.d.ts +12 -0
  33. package/dist/{creditNoteDetail.query-Yb8TdZNm.js → creditNoteDetail.query-DGeG9_sO.js} +15 -15
  34. package/dist/{dist-DCbLgB6Y.js → dist-BMzyJZTx.js} +258 -114
  35. package/dist/{dist-BpDuRYDT.js → dist-DALBiuub.js} +134 -134
  36. package/dist/{documentTitle.composable-CRJjS6p-.js → documentTitle.composable-RvqrZTBa.js} +28 -26
  37. package/dist/{download.util-B5Q7KUC9.js → download.util-LyRpGWKA.js} +9 -0
  38. package/dist/{i18n.lib-DBxdqkbJ.js → i18n.lib-MOiHLIGc.js} +58 -2
  39. package/dist/index.d.ts +59 -2
  40. package/dist/index.js +232 -212
  41. package/dist/{invoice.service-DWDl9XRh.js → invoice.service-Fv4F4aZq.js} +39 -38
  42. package/dist/{invoiceApproval.service-Fwlxgd9o.js → invoiceApproval.service-DJvXagC7.js} +7 -7
  43. package/dist/{invoiceApprovalStatus.util-q-zHLdFV.js → invoiceApprovalStatus.util-B98WeAf0.js} +2 -2
  44. package/dist/{invoiceCustomer.service-DOexR54S.js → invoiceCustomer.service-CDyrtcwH.js} +6 -6
  45. package/dist/{invoiceDetail.query-B5w0Vlsy.js → invoiceDetail.query-UHE0NCLh.js} +1 -1
  46. package/dist/{invoiceIndexCache.util-CUlp4R7R.js → invoiceIndexCache.util-CLM7FO6z.js} +3 -3
  47. package/dist/{invoicingConfig.composable-CaWQMTP1.js → invoicingConfig.composable-UC7tGtBj.js} +14 -10
  48. package/dist/{issuerSettings.query-BHuLjV9P.js → issuerSettings.query-CoiXblSm.js} +2 -2
  49. package/dist/libs/i18n.lib.d.ts +56 -0
  50. package/dist/locales/en-US.json.d.ts +29 -1
  51. package/dist/locales/nl-BE.json.d.ts +29 -1
  52. package/dist/models/billing-document/billingDocumentAdvancePayment.util.d.ts +9 -0
  53. package/dist/models/billing-document/billingDocumentAdvancePayment.util.spec.d.ts +1 -0
  54. package/dist/models/billing-document/billingDocumentDetail.model.d.ts +1 -0
  55. package/dist/modules/custom-field/components/CustomFieldList.vue.d.ts +0 -1
  56. package/dist/modules/custom-field/components/customFieldList.spec.d.ts +1 -0
  57. package/dist/modules/custom-field/components/customFieldTypeIcon.d.ts +16 -0
  58. package/dist/modules/custom-field/components/customFieldValueText.spec.d.ts +1 -0
  59. package/dist/modules/custom-field/composables/customFieldReferenceLinks.composable.d.ts +16 -0
  60. package/dist/modules/custom-field/composables/customFieldReferenceLinks.composable.spec.d.ts +1 -0
  61. package/dist/modules/custom-field/models/custom-field-definition/customFieldDefinition.model.d.ts +6 -0
  62. package/dist/modules/custom-field/models/custom-field-definition/customFieldDefinition.transformer.spec.d.ts +1 -0
  63. package/dist/modules/custom-field/models/custom-field-definition/customFieldDefinition.util.d.ts +6 -0
  64. package/dist/modules/custom-field/models/custom-field-definition/customFieldViewKey.model.d.ts +9 -0
  65. package/dist/modules/custom-field/models/custom-field-value/customFieldValue.model.d.ts +1 -1
  66. package/dist/modules/custom-field/models/custom-field-value/customFieldValue.util.d.ts +10 -0
  67. package/dist/modules/custom-field/test/builders/customFieldDefinition.builder.d.ts +3 -1
  68. package/dist/modules/invoice/models/invoice/pdf/invoicePdfDetail.model.d.ts +1 -0
  69. package/dist/modules/invoice/use-cases/detail/composables/invoiceDetailPaymentsTableColumns.composable.d.ts +1 -1
  70. package/dist/modules/invoice-delivery/api/mutations/peppolConnectionUpdate.mutation.d.ts +6 -0
  71. package/dist/modules/invoice-delivery/api/queries/peppolConnection.query.d.ts +1 -0
  72. package/dist/modules/invoice-delivery/api/query-keys/invoiceDelivery.queryKeys.d.ts +6 -0
  73. package/dist/modules/invoice-delivery/api/services/peppolConnection.service.d.ts +8 -0
  74. package/dist/modules/invoice-delivery/components/form/PeppolConnectionFormApiKeyField.vue.d.ts +8 -0
  75. package/dist/modules/invoice-delivery/components/form/PeppolConnectionFormCompanyField.vue.d.ts +11 -0
  76. package/dist/modules/invoice-delivery/components/form/PeppolConnectionFormEnabledField.vue.d.ts +7 -0
  77. package/dist/modules/invoice-delivery/components/form/PeppolConnectionFormProviderField.vue.d.ts +9 -0
  78. package/dist/modules/invoice-delivery/index.d.ts +1 -0
  79. package/dist/modules/invoice-delivery/models/deliveryReason.util.d.ts +6 -0
  80. package/dist/modules/invoice-delivery/models/peppolConnection.model.d.ts +18 -0
  81. package/dist/modules/invoice-delivery/models/peppolConnection.transformer.d.ts +9 -0
  82. package/dist/modules/invoice-delivery/models/peppolConnectionForm.model.d.ts +9 -0
  83. package/dist/modules/invoice-delivery/use-cases/settings/views/PeppolSettingsView.vue.d.ts +7 -0
  84. package/dist/modules/invoice-delivery/use-cases/settings/views/PeppolSettingsViewDataProvider.vue.d.ts +3 -0
  85. package/dist/modules/settings/routes/settings.routes.d.ts +7 -0
  86. package/dist/{reminderConfig.query-C4J6m4ER.js → reminderConfig.query-aRFzY6uZ.js} +22 -22
  87. package/dist/style.css +1 -1
  88. package/dist/types/queryKey.type.d.ts +2 -1
  89. package/dist/ui/billing-document/table/billingDocumentLineItemsTable.context.d.ts +114 -0
  90. package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsEditor.composable.d.ts +57 -36
  91. package/dist/ui/customer-invoice-list/composables/customerInvoiceTableColumns.composable.d.ts +6 -1
  92. package/dist/ui/customer-invoice-list/composables/customerInvoiceTableColumns.composable.spec.d.ts +1 -0
  93. package/package.json +1 -1
@@ -0,0 +1,16 @@
1
+ /**
2
+ * The icon a custom field shows next to its label in detail lists, so a field reads like
3
+ * the built-in rows above it.
4
+ */
5
+ export declare const CUSTOM_FIELD_TYPE_ICONS: {
6
+ readonly boolean: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, SVGSVGElement>;
7
+ readonly date: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, SVGSVGElement>;
8
+ readonly monetary: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, SVGSVGElement>;
9
+ readonly multi_select: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, SVGSVGElement>;
10
+ readonly number: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, SVGSVGElement>;
11
+ readonly reference: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, SVGSVGElement>;
12
+ readonly single_select: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, SVGSVGElement>;
13
+ readonly text: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, SVGSVGElement>;
14
+ readonly text_array: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, SVGSVGElement>;
15
+ readonly timestamp: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, SVGSVGElement>;
16
+ };
@@ -0,0 +1,16 @@
1
+ import { RouteLocationRaw } from 'vue-router';
2
+ import { CustomFieldDefinition } from '../models/custom-field-definition/customFieldDefinition.model.ts';
3
+ import { CustomFieldValue } from '../models/custom-field-value/customFieldValue.model.ts';
4
+ export interface CustomFieldReferenceLink {
5
+ definition: CustomFieldDefinition;
6
+ label: string;
7
+ route: RouteLocationRaw;
8
+ }
9
+ /**
10
+ * Turns reference values into links to the host app. A reference whose route the host
11
+ * does not resolve is left out, since there is nowhere to send the user.
12
+ */
13
+ export declare function useCustomFieldReferenceLinks(): {
14
+ getLinks: (definitions: CustomFieldDefinition[], values: CustomFieldValue[]) => CustomFieldReferenceLink[];
15
+ open: (link: CustomFieldReferenceLink) => void;
16
+ };
@@ -1,5 +1,6 @@
1
1
  import { CustomFieldEntityType, CustomFieldType } from '../../../../client/index.ts';
2
2
  import { CustomFieldDefinitionUuid } from './customFieldDefinitionUuid.model.ts';
3
+ import { CustomFieldViewKey } from './customFieldViewKey.model.ts';
3
4
  export interface LocalizedString {
4
5
  items: {
5
6
  locale: string;
@@ -11,6 +12,10 @@ export interface CustomFieldChoice {
11
12
  order: number;
12
13
  value: string;
13
14
  }
15
+ export interface CustomFieldView {
16
+ key: CustomFieldViewKey;
17
+ order: number;
18
+ }
14
19
  export interface CustomFieldDefinition {
15
20
  uuid: CustomFieldDefinitionUuid;
16
21
  isRequired: boolean;
@@ -21,4 +26,5 @@ export interface CustomFieldDefinition {
21
26
  label: LocalizedString;
22
27
  rules: Record<string, unknown> | null;
23
28
  type: CustomFieldType;
29
+ views: CustomFieldView[];
24
30
  }
@@ -1,7 +1,13 @@
1
1
  import { CustomFieldEntityType } from '../../../../client/index.ts';
2
2
  import { CustomFieldDefinition, LocalizedString } from './customFieldDefinition.model.ts';
3
+ import { CustomFieldViewKey } from './customFieldViewKey.model.ts';
3
4
  export declare class CustomFieldDefinitionUtil {
4
5
  static filterByEntityType(definitions: CustomFieldDefinition[], entityType: CustomFieldEntityType): CustomFieldDefinition[];
6
+ /**
7
+ * Keeps the definitions that list the view, sorted by their order in that view.
8
+ * A definition without the view is hidden on that screen.
9
+ */
10
+ static filterByView(definitions: CustomFieldDefinition[], viewKey: CustomFieldViewKey): CustomFieldDefinition[];
5
11
  static getChoiceLabel(definition: CustomFieldDefinition, value: string, locale: string): string;
6
12
  static getLabel(definition: CustomFieldDefinition, locale: string): string;
7
13
  static getLocalizedValue(value: LocalizedString, locale: string): string;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Screens that render custom fields. A definition shows on a screen only when its
3
+ * `views` lists that screen's key, so the backend seeds these exact strings.
4
+ */
5
+ export declare enum CustomFieldViewKey {
6
+ CREDIT_NOTE_DETAIL = "credit-note-detail",
7
+ INVOICE_DETAIL = "invoice-detail",
8
+ INVOICE_OVERVIEW = "invoice-overview"
9
+ }
@@ -8,5 +8,5 @@ interface BaseCustomFieldValue<TType extends CustomFieldType, TValue> {
8
8
  value: TValue;
9
9
  }
10
10
  export type CustomFieldDateValue = '-infinity' | 'infinity' | Temporal.PlainDate;
11
- export type CustomFieldValue = BaseCustomFieldValue<CustomFieldType.BOOLEAN, boolean> | BaseCustomFieldValue<CustomFieldType.DATE, CustomFieldDateValue> | BaseCustomFieldValue<CustomFieldType.MONETARY, Monetary> | BaseCustomFieldValue<CustomFieldType.MULTI_SELECT, string[]> | BaseCustomFieldValue<CustomFieldType.NUMBER, number> | BaseCustomFieldValue<CustomFieldType.SINGLE_SELECT, string> | BaseCustomFieldValue<CustomFieldType.TEXT, string> | BaseCustomFieldValue<CustomFieldType.TEXT_ARRAY, string[]> | BaseCustomFieldValue<CustomFieldType.TIMESTAMP, Temporal.Instant>;
11
+ export type CustomFieldValue = BaseCustomFieldValue<CustomFieldType.BOOLEAN, boolean> | BaseCustomFieldValue<CustomFieldType.DATE, CustomFieldDateValue> | BaseCustomFieldValue<CustomFieldType.MONETARY, Monetary> | BaseCustomFieldValue<CustomFieldType.MULTI_SELECT, string[]> | BaseCustomFieldValue<CustomFieldType.NUMBER, number> | BaseCustomFieldValue<CustomFieldType.REFERENCE, string> | BaseCustomFieldValue<CustomFieldType.SINGLE_SELECT, string> | BaseCustomFieldValue<CustomFieldType.TEXT, string> | BaseCustomFieldValue<CustomFieldType.TEXT_ARRAY, string[]> | BaseCustomFieldValue<CustomFieldType.TIMESTAMP, Temporal.Instant>;
12
12
  export {};
@@ -1,7 +1,17 @@
1
+ import { CustomFieldDefinition } from '../custom-field-definition/customFieldDefinition.model.ts';
1
2
  import { CustomFieldDefinitionUuid } from '../custom-field-definition/customFieldDefinitionUuid.model.ts';
2
3
  import { CustomFieldValue } from './customFieldValue.model.ts';
4
+ export interface CustomFieldEntry {
5
+ definition: CustomFieldDefinition;
6
+ value: CustomFieldValue;
7
+ }
3
8
  export declare class CustomFieldValueUtil {
4
9
  static findByDefinition(values: CustomFieldValue[], definitionUuid: CustomFieldDefinitionUuid): CustomFieldValue | null;
10
+ /**
11
+ * Follows the definitions, so the entries keep their order and skip values whose
12
+ * definition is not shown on this screen, as well as definitions without a value.
13
+ */
14
+ static listByDefinitions(definitions: CustomFieldDefinition[], values: CustomFieldValue[]): CustomFieldEntry[];
5
15
  /**
6
16
  * Replaces the value for a definition, appending it when absent. Passing `null`
7
17
  * clears the field: the API treats an omitted value as unset.
@@ -1,13 +1,15 @@
1
1
  import { CustomFieldEntityType, CustomFieldType } from '../../../../client/index.ts';
2
- import { CustomFieldChoice, CustomFieldDefinition } from '../../models/custom-field-definition/customFieldDefinition.model.ts';
2
+ import { CustomFieldChoice, CustomFieldDefinition, CustomFieldView } from '../../models/custom-field-definition/customFieldDefinition.model.ts';
3
3
  import { CustomFieldDefinitionUuid } from '../../models/custom-field-definition/customFieldDefinitionUuid.model.ts';
4
4
  export declare class CustomFieldDefinitionBuilder {
5
5
  private value;
6
6
  build(): CustomFieldDefinition;
7
7
  withChoices(choices: CustomFieldChoice[]): this;
8
8
  withEntityType(entityType: CustomFieldEntityType): this;
9
+ withKey(key: string): this;
9
10
  withLabel(items: CustomFieldDefinition['label']['items']): this;
10
11
  withRules(rules: Record<string, unknown> | null): this;
11
12
  withType(type: CustomFieldType): this;
12
13
  withUuid(uuid: CustomFieldDefinitionUuid): this;
14
+ withViews(views: CustomFieldView[]): this;
13
15
  }
@@ -37,6 +37,7 @@ export interface InvoicePdfDetail {
37
37
  issueOn: Temporal.PlainDate | null;
38
38
  updatedAt: Temporal.Instant;
39
39
  issuer: BillingDocumentIssuer;
40
+ advancePaymentAmount: Monetary | null;
40
41
  customer: BillingDocumentParty;
41
42
  customFields: CustomFieldValue[];
42
43
  effectiveNet: Monetary;
@@ -2,5 +2,5 @@ import { InvoicePayment } from '../../../models/invoice/payment/invoicePayment.m
2
2
  interface UseInvoiceDetailPaymentsTableColumnsOptions {
3
3
  onDelete: (payment: InvoicePayment) => void;
4
4
  }
5
- export declare function useInvoiceDetailPaymentsTableColumns(options: UseInvoiceDetailPaymentsTableColumnsOptions): import('vue').ComputedRef<import('@wisemen/vue-core-design-system').UITableColumn<InvoicePayment, "manual" | "date" | "amount" | "actions" | "remark" | "reference">[]>;
5
+ export declare function useInvoiceDetailPaymentsTableColumns(options: UseInvoiceDetailPaymentsTableColumnsOptions): import('vue').ComputedRef<import('@wisemen/vue-core-design-system').UITableColumn<InvoicePayment, "manual" | "date" | "reference" | "amount" | "actions" | "remark">[]>;
6
6
  export {};
@@ -0,0 +1,6 @@
1
+ export declare function usePeppolConnectionUpdateMutation(): import('@wisemen/vue-core-api-utils').UseMutationReturnType<{
2
+ partyId: string;
3
+ apiKey: string;
4
+ enabled: boolean;
5
+ provider: import("../../models/peppolConnection.model").PeppolProvider.SOLUZ;
6
+ }, void, void, string>;
@@ -0,0 +1 @@
1
+ export declare function usePeppolConnectionQuery(): import('@wisemen/vue-core-api-utils').UseQueryReturnType<import('../../models/peppolConnection.model').PeppolSettings, string>;
@@ -0,0 +1,6 @@
1
+ import { PeppolSettings } from '../../models/peppolConnection.model.ts';
2
+ export interface InvoiceDeliveryQueryKeys {
3
+ peppolConnection: {
4
+ entity: PeppolSettings;
5
+ };
6
+ }
@@ -0,0 +1,8 @@
1
+ import { ApiResult } from '@wisemen/vue-core-api-utils';
2
+ import { PeppolCompany, PeppolSettings } from '../../models/peppolConnection.model.ts';
3
+ import { PeppolConnectionForm } from '../../models/peppolConnectionForm.model.ts';
4
+ export declare class PeppolConnectionService {
5
+ static get(): Promise<ApiResult<PeppolSettings>>;
6
+ static test(form: PeppolConnectionForm): Promise<ApiResult<PeppolCompany[]>>;
7
+ static update(form: PeppolConnectionForm): Promise<ApiResult<void>>;
8
+ }
@@ -0,0 +1,8 @@
1
+ import { Field } from 'formango';
2
+ type __VLS_Props = {
3
+ hasSavedKey: boolean;
4
+ field: Field<string, string>;
5
+ };
6
+ 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>;
7
+ declare const _default: typeof __VLS_export;
8
+ export default _default;
@@ -0,0 +1,11 @@
1
+ import { Field } from 'formango';
2
+ import { PeppolCompany } from '../../models/peppolConnection.model.ts';
3
+ type __VLS_Props = {
4
+ savedPartyId: string | null;
5
+ isTestCurrent: boolean;
6
+ companies: PeppolCompany[];
7
+ field: Field<string, string>;
8
+ };
9
+ 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>;
10
+ declare const _default: typeof __VLS_export;
11
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import { Field } from 'formango';
2
+ type __VLS_Props = {
3
+ field: Field<boolean, boolean>;
4
+ };
5
+ 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>;
6
+ declare const _default: typeof __VLS_export;
7
+ export default _default;
@@ -0,0 +1,9 @@
1
+ import { Field } from 'formango';
2
+ import { PeppolProvider } from '../../models/peppolConnection.model.ts';
3
+ type __VLS_Props = {
4
+ field: Field<PeppolProvider, PeppolProvider>;
5
+ providers: PeppolProvider[];
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;
@@ -0,0 +1 @@
1
+ export type { InvoiceDeliveryQueryKeys } from './api/query-keys/invoiceDelivery.queryKeys.ts';
@@ -0,0 +1,6 @@
1
+ import { ApiError } from '@wisemen/vue-core-api-utils';
2
+ import { I18nKey } from '../../../libs/i18n.lib.ts';
3
+ export declare class DeliveryReasonUtil {
4
+ static fromApiError(error: ApiError): I18nKey | null;
5
+ static translationKey(reason: string): I18nKey;
6
+ }
@@ -0,0 +1,18 @@
1
+ import { PeppolProvider } from '../../../client/index.ts';
2
+ export interface PeppolConnection {
3
+ partyId: string;
4
+ validatedAt: string;
5
+ hasApiKey: boolean;
6
+ enabled: boolean;
7
+ provider: PeppolProvider;
8
+ }
9
+ export interface PeppolSettings {
10
+ connection: PeppolConnection | null;
11
+ providers: PeppolProvider[];
12
+ }
13
+ export interface PeppolCompany {
14
+ id: string;
15
+ name: string;
16
+ vatNumber: string;
17
+ }
18
+ export { PeppolProvider } from '../../../client/index.ts';
@@ -0,0 +1,9 @@
1
+ import { TestPeppolConnectionCommandWritable, UpdatePeppolConnectionCommandWritable, ViewPeppolConnectionResponse } from '../../../client/index.ts';
2
+ import { PeppolSettings } from './peppolConnection.model.ts';
3
+ import { PeppolConnectionForm } from './peppolConnectionForm.model.ts';
4
+ export declare class PeppolConnectionTransformer {
5
+ static fromDto(dto: ViewPeppolConnectionResponse): PeppolSettings;
6
+ static toDto(form: PeppolConnectionForm): UpdatePeppolConnectionCommandWritable;
7
+ static toForm(settings: PeppolSettings): PeppolConnectionForm;
8
+ static toTestDto(form: PeppolConnectionForm): TestPeppolConnectionCommandWritable;
9
+ }
@@ -0,0 +1,9 @@
1
+ import { default as z } from 'zod';
2
+ import { PeppolProvider } from '../../../client/index.ts';
3
+ export declare const peppolConnectionFormSchema: z.ZodObject<{
4
+ partyId: z.ZodString;
5
+ apiKey: z.ZodString;
6
+ enabled: z.ZodBoolean;
7
+ provider: z.ZodEnum<typeof PeppolProvider>;
8
+ }, z.core.$strip>;
9
+ export type PeppolConnectionForm = z.infer<typeof peppolConnectionFormSchema>;
@@ -0,0 +1,7 @@
1
+ import { PeppolSettings } from '../../../models/peppolConnection.model.ts';
2
+ type __VLS_Props = {
3
+ settings: PeppolSettings;
4
+ };
5
+ 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>;
6
+ declare const _default: typeof __VLS_export;
7
+ export default _default;
@@ -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;
@@ -6,6 +6,13 @@ export declare const issuerSettingsRoutes: [{
6
6
  readonly name: "invoicing-settings-overview";
7
7
  };
8
8
  readonly children: [{
9
+ readonly name: "invoicing-peppol-settings";
10
+ readonly path: "peppol";
11
+ readonly component: () => Component;
12
+ readonly meta: {
13
+ readonly permission: "peppol-connection.update";
14
+ };
15
+ }, {
9
16
  readonly name: "invoicing-settings-overview";
10
17
  readonly path: "";
11
18
  readonly component: () => Component;
@@ -1,5 +1,5 @@
1
- import { $ as e, F as t, K as n, O as r, P as i, et as a, lt as o, o as s, t as c } from "./api.util-D6m6OY3_.js";
2
- import { c as l, h as u, m as d, w as f } from "./documentTitle.composable-CRJjS6p-.js";
1
+ import { F as e, J as t, O as n, P as r, ft as i, nt as a, o, t as s, tt as c } from "./api.util-CR2xLnNj.js";
2
+ import { T as l, c as u, h as d, m as f } from "./documentTitle.composable-RvqrZTBa.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";
@@ -98,9 +98,9 @@ function U(e, t, n) {
98
98
  feeCurrency: r?.currency ?? n.currency,
99
99
  feePercentage: t?.fee.percentage?.value ?? 0,
100
100
  feePrecision: r?.precision ?? n.precision,
101
- feeType: t?.fee.type ?? d.AMOUNT,
101
+ feeType: t?.fee.type ?? f.AMOUNT,
102
102
  offsetDays: t?.offsetDays ?? e,
103
- schedule: t?.schedule ?? f.AFTER_DUE_DATE,
103
+ schedule: t?.schedule ?? l.AFTER_DUE_DATE,
104
104
  sequence: e,
105
105
  template: t?.template ?? H()
106
106
  };
@@ -208,10 +208,10 @@ var K = class e {
208
208
  }
209
209
  static reminderConfigsToDto(e) {
210
210
  return e.reminders.map((e) => ({
211
- fee: e.feeType === d.PERCENTAGE ? {
211
+ fee: e.feeType === f.PERCENTAGE ? {
212
212
  amount: null,
213
213
  percentage: v.toDto(new y(e.feePercentage)),
214
- type: d.PERCENTAGE
214
+ type: f.PERCENTAGE
215
215
  } : {
216
216
  amount: {
217
217
  amount: p(e.feeAmount, e.feePrecision),
@@ -219,7 +219,7 @@ var K = class e {
219
219
  precision: e.feePrecision
220
220
  },
221
221
  percentage: null,
222
- type: d.AMOUNT
222
+ type: f.AMOUNT
223
223
  },
224
224
  offsetDays: e.offsetDays,
225
225
  schedule: e.schedule,
@@ -232,7 +232,7 @@ var K = class e {
232
232
  }
233
233
  static reminderConfigsToForm(e) {
234
234
  let t = e.find((e) => e.fee.amount !== null)?.fee.amount ?? null, n = {
235
- currency: t?.currency ?? l.EUR,
235
+ currency: t?.currency ?? u.EUR,
236
236
  precision: t?.precision ?? 2
237
237
  };
238
238
  return { reminders: L.map((t) => U(t, e.find((e) => e.sequence === t), n)) };
@@ -245,7 +245,7 @@ function q(e) {
245
245
  customerUuid: e.customerUuid,
246
246
  isOpen: e.isOpen,
247
247
  dunningCaseUuids: e.dunningCaseUuids === void 0 ? void 0 : {
248
- scope: u.INCLUDE,
248
+ scope: d.INCLUDE,
249
249
  values: e.dunningCaseUuids
250
250
  },
251
251
  level: e.level
@@ -253,7 +253,7 @@ function q(e) {
253
253
  }
254
254
  var J = class {
255
255
  static async getAll(e) {
256
- return (await c.fromPromise(a({ query: {
256
+ return (await s.fromPromise(a({ query: {
257
257
  filter: q(e),
258
258
  pagination: e.pagination
259
259
  } }))).map((e) => ({
@@ -261,29 +261,29 @@ var J = class {
261
261
  meta: e.data.meta
262
262
  }));
263
263
  }
264
- static async getByUuid(t) {
265
- return (await c.fromPromise(e({ path: { uuid: t } }))).map((e) => K.fromDetailDto(e.data));
264
+ static async getByUuid(e) {
265
+ return (await s.fromPromise(c({ path: { uuid: e } }))).map((e) => K.fromDetailDto(e.data));
266
266
  }
267
267
  static async getReminderConfigs() {
268
- return (await c.fromPromise(o())).map((e) => e.data.items.map(K.fromReminderConfigDto));
268
+ return (await s.fromPromise(i())).map((e) => e.data.items.map(K.fromReminderConfigDto));
269
269
  }
270
270
  static async previewBulk(e) {
271
- return (await c.fromPromise(r({ query: { filter: q(e) } }))).map((e) => e.data);
271
+ return (await s.fromPromise(n({ query: { filter: q(e) } }))).map((e) => e.data);
272
272
  }
273
273
  static async retry(e) {
274
- let t = await c.fromPromise(i({ path: { uuid: e } }));
275
- return c.void(t);
274
+ let t = await s.fromPromise(r({ path: { uuid: e } }));
275
+ return s.void(t);
276
276
  }
277
- static async send(e) {
278
- let n = await c.fromPromise(t({ path: { uuid: e } }));
279
- return c.void(n);
277
+ static async send(t) {
278
+ let n = await s.fromPromise(e({ path: { uuid: t } }));
279
+ return s.void(n);
280
280
  }
281
281
  static async sendBulk(e) {
282
- return (await c.fromPromise(s({ query: { filter: q(e) } }))).map((e) => e.data);
282
+ return (await s.fromPromise(o({ query: { filter: q(e) } }))).map((e) => e.data);
283
283
  }
284
284
  static async updateReminderConfigs(e) {
285
- let t = await c.fromPromise(n({ body: { reminders: K.reminderConfigsToDto(e) } }));
286
- return c.void(t);
285
+ let n = await s.fromPromise(t({ body: { reminders: K.reminderConfigsToDto(e) } }));
286
+ return s.void(n);
287
287
  }
288
288
  }, Y = {
289
289
  class: "flex shrink-0 gap-xxs",