@wisemen/wise-invoicing-web 0.0.4 → 0.0.6

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 (91) hide show
  1. package/dist/{BillingDocumentDetailViewDataProvider-pePmiXWb.js → BillingDocumentDetailViewDataProvider-BGE-p_FL.js} +953 -863
  2. package/dist/BillingDocumentDetailViewDataProvider.css +1 -1
  3. package/dist/{BillingDocumentPdf-Dg5JlQE1.js → BillingDocumentPdf-Ca81NkZq.js} +4 -4
  4. package/dist/{CreditNoteDetailViewDataProvider-C-A0jyVr.js → CreditNoteDetailViewDataProvider-b5dY_4mH.js} +181 -181
  5. package/dist/{CreditNotePdfViewDataProvider-DNUvFVDj.js → CreditNotePdfViewDataProvider-C2QqCdQ7.js} +3 -3
  6. package/dist/{CustomFieldValueText-DDQq-975.js → CustomFieldValueText-ne5yy02J.js} +2 -2
  7. package/dist/DataProvider-Dj34ljUX.js +75 -0
  8. package/dist/{DunningCaseDetailViewDataProvider-0WV-7-vg.js → DunningCaseDetailViewDataProvider-jsh-LlGx.js} +68 -59
  9. package/dist/DunningCaseOverviewView-WbXalMt6.js +747 -0
  10. package/dist/{DunningCaseReminderPdfViewDataProvider-DcM-7ECg.js → DunningCaseReminderPdfViewDataProvider-B3Y2aYFf.js} +1 -1
  11. package/dist/DunningCaseSendDialog-D7jAZ8yT.js +349 -0
  12. package/dist/{InvoiceDetailViewDataProvider-BDL9lAWe.js → InvoiceDetailViewDataProvider-BAVdcJay.js} +589 -498
  13. package/dist/{InvoiceOverviewViewDataProvider-B_jrcC_8.js → InvoiceOverviewViewDataProvider-BT9cuQXw.js} +546 -482
  14. package/dist/{InvoicePdfView-Bygb-9z6.js → InvoicePdfView-BpIaYdZX.js} +2 -2
  15. package/dist/{InvoicePdfViewDataProvider-nBk3XNrE.js → InvoicePdfViewDataProvider-DGCnmNE-.js} +3 -3
  16. package/dist/{InvoicePublicPdfViewDataProvider-DHJP_-7-.js → InvoicePublicPdfViewDataProvider-KV0_hKUI.js} +3 -3
  17. package/dist/{IssuerSettingsViewDataProvider-Dk_Q6w6f.js → IssuerSettingsViewDataProvider-Bs4rEES2.js} +4 -4
  18. package/dist/ReminderSettingsViewDataProvider-D4bRLLXx.js +711 -0
  19. package/dist/{api.util-Dm_TQedZ.js → api.util-BCSgCfpS.js} +528 -509
  20. package/dist/{billingDocumentDetail.transformer-zMTbka5p.js → billingDocumentDetail.transformer-DIKAl4_L.js} +58 -89
  21. package/dist/client/index.d.ts +1 -1
  22. package/dist/client/types.gen.d.ts +28 -5
  23. package/dist/client/zod.gen.d.ts +869 -623
  24. package/dist/{creditNoteDetail.query-BZqgZRSu.js → creditNoteDetail.query-DHP69UiB.js} +13 -13
  25. package/dist/{dist-DP8KNFVD.js → dist-D9lp7NDv.js} +20 -36
  26. package/dist/{dist-DJ8yJcb9.js → dist-PErDVE6-.js} +621 -671
  27. package/dist/{documentTitle.composable-CeaFddr1.js → documentTitle.composable-4ApFl9TZ.js} +10 -8
  28. package/dist/{i18n.lib-DUbAMBRb.js → i18n.lib-BGcQ_OBF.js} +50 -2
  29. package/dist/index.d.ts +51 -2
  30. package/dist/index.js +78 -78
  31. package/dist/{invoice.service-ChHEtXBA.js → invoice.service-DG5eacZC.js} +46 -46
  32. package/dist/{invoiceDeliveryStatus.util-BsA-MlA3.js → invoiceDeliveryStatus.util-CX-IdqAu.js} +28 -28
  33. package/dist/{invoiceDetail.query-O_CGvdwg.js → invoiceDetail.query-C_IMGjOX.js} +1 -1
  34. package/dist/{invoicingConfig.composable-c6w_aMm1.js → invoicingConfig.composable-Kad_HHx_.js} +2 -2
  35. package/dist/{issuerSettings.query-RqtrZFaB.js → issuerSettings.query-6wnSPphB.js} +2 -2
  36. package/dist/libs/i18n.lib.d.ts +50 -2
  37. package/dist/locales/en-US.json.d.ts +25 -1
  38. package/dist/locales/nl-BE.json.d.ts +25 -1
  39. package/dist/models/billing-document/billingDocumentLineItemGroupUpdateForm.model.d.ts +9 -3
  40. package/dist/modules/dunning-case/actions/dunningCase.actions.d.ts +12 -0
  41. package/dist/modules/dunning-case/actions/dunningCaseNavigateToCustomer.action.d.ts +1 -0
  42. package/dist/modules/dunning-case/actions/dunningCaseNavigateToDetail.action.d.ts +1 -0
  43. package/dist/modules/dunning-case/api/mutations/reminderConfigUpdate.mutation.d.ts +2 -0
  44. package/dist/modules/dunning-case/models/dunningCase.model.d.ts +12 -3
  45. package/dist/modules/dunning-case/models/reminderConfigForm.model.d.ts +3 -1
  46. package/dist/modules/dunning-case/use-cases/overview/components/DunningCaseOverviewActionsCell.vue.d.ts +13 -0
  47. package/dist/modules/dunning-case/use-cases/overview/components/DunningCaseOverviewCustomerCell.vue.d.ts +7 -0
  48. package/dist/modules/dunning-case/use-cases/overview/components/DunningCaseOverviewDaysOverdueCell.vue.d.ts +7 -0
  49. package/dist/modules/dunning-case/use-cases/overview/components/DunningCaseOverviewLastReminderCell.vue.d.ts +7 -0
  50. package/dist/modules/dunning-case/use-cases/overview/components/DunningCaseOverviewLevelCell.vue.d.ts +7 -0
  51. package/dist/modules/dunning-case/use-cases/overview/components/DunningCaseOverviewMetrics.vue.d.ts +8 -0
  52. package/dist/modules/dunning-case/use-cases/overview/components/DunningCaseOverviewOutstandingCell.vue.d.ts +7 -0
  53. package/dist/modules/dunning-case/use-cases/overview/components/DunningCaseOverviewReminderCell.vue.d.ts +7 -0
  54. package/dist/modules/dunning-case/use-cases/overview/components/dunningCaseOverviewActionsCell.spec.d.ts +1 -0
  55. package/dist/modules/dunning-case/use-cases/overview/components/dunningCaseOverviewLastReminderCell.spec.d.ts +1 -0
  56. package/dist/modules/dunning-case/use-cases/overview/components/dunningCaseOverviewReminderCell.spec.d.ts +1 -0
  57. package/dist/modules/dunning-case/use-cases/overview/composables/dunningCaseOverview.composable.d.ts +24 -0
  58. package/dist/modules/dunning-case/use-cases/overview/composables/dunningCaseOverviewTableColumns.composable.d.ts +8 -0
  59. package/dist/modules/dunning-case/use-cases/send/dialogs/dunningCaseBulkSendDialog.spec.d.ts +1 -0
  60. package/dist/modules/dunning-case/use-cases/settings/components/ReminderLadderRow.vue.d.ts +3 -1
  61. package/dist/modules/dunning-case/use-cases/settings/components/reminderLadderFeeNotice.spec.d.ts +1 -0
  62. package/dist/modules/dunning-case/use-cases/settings/composables/reminderLadder.composable.d.ts +3 -1
  63. package/dist/modules/invoice/api/invoiceIndexCache.util.d.ts +4 -4
  64. package/dist/modules/invoice/api/queries/invoiceUserSearch.query.d.ts +3 -0
  65. package/dist/modules/invoice/api/query-keys/invoice.queryKeys.d.ts +8 -0
  66. package/dist/modules/invoice/api/services/invoiceUser.service.d.ts +6 -0
  67. package/dist/modules/invoice/components/form/InvoiceFormPreparedByField.vue.d.ts +16 -0
  68. package/dist/modules/invoice/models/invoice/update/invoicePreparer.model.d.ts +4 -0
  69. package/dist/modules/invoice/models/invoice/update/invoicePreparer.transformer.d.ts +5 -0
  70. package/dist/modules/invoice/models/invoice/update/invoiceUserSearchQueryParams.model.d.ts +3 -0
  71. package/dist/modules/invoice/models/invoice/update/invoiceUserSearchQueryParams.transformer.d.ts +6 -0
  72. package/dist/modules/invoice/use-cases/overview/dialogs/InvoiceOverviewBulkActionDialog.vue.d.ts +1 -0
  73. package/dist/{plainDate.transformer-BxvJpJOv.js → plainDate.transformer-Dfe5r84P.js} +32 -1
  74. package/dist/{reminderConfig.query-DzTN2AvU.js → reminderConfig.query-hmDNKreg.js} +105 -91
  75. package/dist/search.composable-BCtYqudV.js +52 -0
  76. package/dist/style.css +1 -1
  77. package/dist/ui/billing-document/table/billingDocumentLineItemsTable.context.d.ts +6 -6
  78. package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsEditor.composable.d.ts +1 -1
  79. package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsRowMutations.composable.d.ts +2 -2
  80. package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsRowMutations.composable.spec.d.ts +1 -0
  81. package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsTableDrag.composable.d.ts +3 -1
  82. package/dist/ui/billing-document/table/field/BillingDocumentLineItemsTableField.vue.d.ts +2 -0
  83. package/dist/ui/billing-document/table/field/BillingDocumentLineItemsTableTextField.vue.d.ts +1 -0
  84. package/dist/ui/billing-document/table/utils/billingDocumentLineItemsEditor.util.d.ts +19 -0
  85. package/dist/ui/data-provider/DataProviderErrorState.vue.d.ts +7 -0
  86. package/dist/ui/data-provider/dataProviderErrorState.spec.d.ts +1 -0
  87. package/package.json +6 -1
  88. package/dist/DataProvider-CfHLB3rH.js +0 -48
  89. package/dist/DunningCaseOverviewView-CHdzfbhb.js +0 -553
  90. package/dist/DunningCaseSendDialog-DBtwr2ue.js +0 -350
  91. package/dist/ReminderSettingsViewDataProvider-CDBjfU7R.js +0 -668
@@ -1,7 +1,8 @@
1
1
  import { Temporal } from 'temporal-polyfill';
2
2
  import { z } from 'zod';
3
- import { CustomerType, DunningCaseBlockedReason, ReminderSchedule, SettlementStatus } from '../../../client/index.ts';
3
+ import { CustomerType, DunningCaseBlockedReason, FeeType, ReminderSchedule, SettlementStatus } from '../../../client/index.ts';
4
4
  import { Monetary } from '../../../utils/monetary/monetary.model.ts';
5
+ import { Percentage } from '../../../utils/percentage.util.ts';
5
6
  export declare const dunningCaseUuidSchema: z.core.$ZodBranded<z.ZodUUID, "DunningCaseUuid", "out">;
6
7
  export type DunningCaseUuid = z.infer<typeof dunningCaseUuidSchema>;
7
8
  export interface DunningCaseIndexCustomer {
@@ -56,6 +57,10 @@ export interface DunningCaseInvoice {
56
57
  subject: string | null;
57
58
  totalCreditedAmount: Monetary;
58
59
  }
60
+ /**
61
+ * Returns the non-protested balance per reminder level, indexed by level: index 0 holds the
62
+ * balance that has not been reminded yet. Presentation decides in which order it is read.
63
+ */
59
64
  export declare function getDunningCaseOutstandingSplit(invoices: readonly Pick<DunningCaseInvoice, 'balanceDueAmount' | 'isDisputed' | 'level'>[], emptyAmount: Monetary): Monetary[];
60
65
  export interface DunningCaseDetail {
61
66
  uuid: DunningCaseUuid;
@@ -64,7 +69,6 @@ export interface DunningCaseDetail {
64
69
  lastReminderSentAt: Temporal.Instant | null;
65
70
  nextReminderOn: Temporal.PlainDate | null;
66
71
  updatedAt: Temporal.Instant;
67
- isClosed: boolean;
68
72
  blockedReason: DunningCaseBlockedReason | null;
69
73
  canSendReminder: boolean;
70
74
  customer: {
@@ -97,9 +101,14 @@ export interface ReminderConfigTemplate {
97
101
  subject: string;
98
102
  };
99
103
  }
104
+ export interface ReminderConfigFee {
105
+ amount: Monetary | null;
106
+ percentage: Percentage | null;
107
+ type: FeeType;
108
+ }
100
109
  export interface ReminderConfig {
101
110
  uuid: string;
102
- fee: Monetary;
111
+ fee: ReminderConfigFee;
103
112
  offsetDays: number;
104
113
  schedule: ReminderSchedule;
105
114
  sequence: number;
@@ -1,10 +1,12 @@
1
1
  import { z } from 'zod';
2
- import { Currency, ReminderSchedule } from '../../../client/index.ts';
2
+ import { Currency, FeeType, ReminderSchedule } from '../../../client/index.ts';
3
3
  export declare const reminderConfigFormSchema: z.ZodObject<{
4
4
  reminders: z.ZodArray<z.ZodObject<{
5
5
  feeAmount: z.ZodNumber;
6
6
  feeCurrency: z.ZodEnum<typeof Currency>;
7
+ feePercentage: z.ZodNumber;
7
8
  feePrecision: z.ZodNumber;
9
+ feeType: z.ZodEnum<typeof FeeType>;
8
10
  offsetDays: z.ZodNumber;
9
11
  schedule: z.ZodEnum<typeof ReminderSchedule>;
10
12
  sequence: z.ZodNumber;
@@ -0,0 +1,13 @@
1
+ import { DunningCaseIndex } from '../../../models/dunningCase.model.ts';
2
+ type __VLS_Props = {
3
+ item: DunningCaseIndex;
4
+ };
5
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
6
+ send: () => any;
7
+ viewCustomer: () => any;
8
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
9
+ onSend?: (() => any) | undefined;
10
+ onViewCustomer?: (() => any) | undefined;
11
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
12
+ declare const _default: typeof __VLS_export;
13
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import { DunningCaseIndex } from '../../../models/dunningCase.model.ts';
2
+ type __VLS_Props = {
3
+ item: DunningCaseIndex;
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,7 @@
1
+ import { DunningCaseIndex } from '../../../models/dunningCase.model.ts';
2
+ type __VLS_Props = {
3
+ item: DunningCaseIndex;
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,7 @@
1
+ import { DunningCaseIndex } from '../../../models/dunningCase.model.ts';
2
+ type __VLS_Props = {
3
+ item: DunningCaseIndex;
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,7 @@
1
+ import { DunningCaseIndex } from '../../../models/dunningCase.model.ts';
2
+ type __VLS_Props = {
3
+ item: DunningCaseIndex;
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,8 @@
1
+ type __VLS_Props = {
2
+ hasLevelCountError: boolean;
3
+ levelCounts: Array<number | null>;
4
+ levelCountTotal: number | null;
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,7 @@
1
+ import { DunningCaseIndex } from '../../../models/dunningCase.model.ts';
2
+ type __VLS_Props = {
3
+ item: DunningCaseIndex;
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,7 @@
1
+ import { DunningCaseIndex } from '../../../models/dunningCase.model.ts';
2
+ type __VLS_Props = {
3
+ item: DunningCaseIndex;
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,24 @@
1
+ import { ApiError } from '@wisemen/vue-core-api-utils';
2
+ import { ComputedRef } from 'vue';
3
+ import { CustomerUuid } from '../../../../../models/customer/customerUuid.model.ts';
4
+ import { DunningCaseIndex } from '../../../models/dunningCase.model.ts';
5
+ interface UseDunningCaseOverviewParams {
6
+ customerUuid: ComputedRef<CustomerUuid | undefined>;
7
+ activeLevel: ComputedRef<number | null>;
8
+ }
9
+ /**
10
+ * Data layer for the dunning-case overview: the paginated case list for the
11
+ * active tab plus the per-level totals shown in the metrics panel.
12
+ */
13
+ export declare function useDunningCaseOverview(params: UseDunningCaseOverviewParams): {
14
+ hasLevelCountError: ComputedRef<boolean>;
15
+ isFetchingNextPage: ComputedRef<boolean>;
16
+ isLoading: ComputedRef<boolean>;
17
+ data: ComputedRef<DunningCaseIndex[]>;
18
+ error: ComputedRef<ApiError | null>;
19
+ fetchNextPage: () => Promise<void>;
20
+ levelCounts: ComputedRef<(number | null)[]>;
21
+ levelCountTotal: ComputedRef<number | null>;
22
+ result: ComputedRef<import('@wisemen/vue-core-api-utils').AsyncResult<import('@wisemen/vue-core-api-utils').OffsetPaginationResponse<DunningCaseIndex>, ApiError<string>>>;
23
+ };
24
+ export {};
@@ -0,0 +1,8 @@
1
+ import { UITableColumn } from '@wisemen/vue-core-design-system';
2
+ import { DunningCaseIndex } from '../../../models/dunningCase.model.ts';
3
+ interface UseDunningCaseOverviewTableColumnsOptions {
4
+ onSend: (item: DunningCaseIndex) => void;
5
+ onViewCustomer: (item: DunningCaseIndex) => void;
6
+ }
7
+ export declare function useDunningCaseOverviewTableColumns(options: UseDunningCaseOverviewTableColumnsOptions): import('vue').ComputedRef<UITableColumn<DunningCaseIndex, string>[]>;
8
+ export {};
@@ -1,11 +1,13 @@
1
1
  import { SelectItem } from '@wisemen/vue-core-design-system';
2
2
  import { Field } from 'formango';
3
- import { Currency, ReminderSchedule } from '../../../../../client/index.ts';
3
+ import { Currency, FeeType, ReminderSchedule } from '../../../../../client/index.ts';
4
4
  type __VLS_Props = {
5
5
  absoluteDay: number;
6
6
  canUpdate: boolean;
7
7
  feeCurrency: Currency | undefined;
8
8
  feeField: Field<number>;
9
+ feePercentageField: Field<number>;
10
+ feeTypeField: Field<FeeType>;
9
11
  level: number;
10
12
  offsetField: Field<number>;
11
13
  scheduleField: Field<ReminderSchedule>;
@@ -1,8 +1,10 @@
1
1
  import { Field } from 'formango';
2
2
  import { ComputedRef, Ref } from 'vue';
3
- import { Currency, ReminderSchedule } from '../../../../../client/index.ts';
3
+ import { Currency, FeeType, ReminderSchedule } from '../../../../../client/index.ts';
4
4
  export interface ReminderLadderFields {
5
5
  feeAmount: Field<number>;
6
+ feePercentage: Field<number>;
7
+ feeType: Field<FeeType>;
6
8
  offsetDays: Field<number>;
7
9
  schedule: Field<ReminderSchedule>;
8
10
  }
@@ -2,10 +2,10 @@ import { InvoiceIndex } from '../models/invoice/index/invoiceIndex.model.ts';
2
2
  import { InvoiceUuid } from '../models/invoiceUuid.model.ts';
3
3
  export declare class InvoiceIndexCacheUtil {
4
4
  /**
5
- * The invoice index is served from Typesense, which is only updated
6
- * asynchronously after a bulk action, so an immediate refetch still returns
7
- * the old statuses. Patch the cached rows right away so the result of the
8
- * action remains visible until the user reloads or leaves the overview.
5
+ * Records an optimistic {@link patch} for the given invoices, applies it to the
6
+ * cached index rows right away, and starts re-applying it on every subsequent
7
+ * index response. See the file header for why the patch has to be pinned
8
+ * rather than applied once.
9
9
  */
10
10
  static reflectBulkAction(invoiceUuids: InvoiceUuid[], patch: Partial<InvoiceIndex>): void;
11
11
  }
@@ -0,0 +1,3 @@
1
+ import { InfiniteQueryOptions } from '@wisemen/vue-core-api-utils';
2
+ import { InvoiceUserSearchQueryParams } from '../../models/invoice/update/invoiceUserSearchQueryParams.model.ts';
3
+ export declare function useInvoiceUserSearchQuery(options: InfiniteQueryOptions<InvoiceUserSearchQueryParams>): import('@wisemen/vue-core-api-utils').UseOffsetInfiniteQueryReturnType<import('../../models/invoice/update/invoicePreparer.model').InvoicePreparer, string>;
@@ -8,6 +8,8 @@ import { InvoiceIndex } from '../../models/invoice/index/invoiceIndex.model.ts';
8
8
  import { InvoiceIndexQueryParams } from '../../models/invoice/index/invoiceIndexQueryParams.model.ts';
9
9
  import { InvoicePayment } from '../../models/invoice/payment/invoicePayment.model.ts';
10
10
  import { InvoicePdfDetail } from '../../models/invoice/pdf/invoicePdfDetail.model.ts';
11
+ import { InvoicePreparer } from '../../models/invoice/update/invoicePreparer.model.ts';
12
+ import { InvoiceUserSearchQueryParams } from '../../models/invoice/update/invoiceUserSearchQueryParams.model.ts';
11
13
  import { InvoiceUuid } from '../../models/invoiceUuid.model.ts';
12
14
  export interface InvoiceQueryKeys {
13
15
  invoiceActivityLogIndex: {
@@ -52,4 +54,10 @@ export interface InvoiceQueryKeys {
52
54
  token: string | null;
53
55
  };
54
56
  };
57
+ invoiceUserSearch: {
58
+ entity: InvoicePreparer[];
59
+ params: {
60
+ queryParams?: InvoiceUserSearchQueryParams;
61
+ };
62
+ };
55
63
  }
@@ -0,0 +1,6 @@
1
+ import { OffsetPagination, OffsetPaginationResult } from '@wisemen/vue-core-api-utils';
2
+ import { InvoicePreparer } from '../../models/invoice/update/invoicePreparer.model.ts';
3
+ import { InvoiceUserSearchQueryParams } from '../../models/invoice/update/invoiceUserSearchQueryParams.model.ts';
4
+ export declare class InvoiceUserService {
5
+ static getAll(params: OffsetPagination<InvoiceUserSearchQueryParams>): Promise<OffsetPaginationResult<InvoicePreparer>>;
6
+ }
@@ -0,0 +1,16 @@
1
+ import { Field } from 'formango';
2
+ import { InvoicePreparer } from '../../models/invoice/update/invoicePreparer.model.ts';
3
+ type __VLS_Props = {
4
+ isLoading: boolean;
5
+ field: Field<InvoicePreparer>;
6
+ users: InvoicePreparer[];
7
+ };
8
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
9
+ nextPage: () => any;
10
+ updateSearch: (search: string) => any;
11
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
12
+ onNextPage?: (() => any) | undefined;
13
+ onUpdateSearch?: ((search: string) => any) | undefined;
14
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
15
+ declare const _default: typeof __VLS_export;
16
+ export default _default;
@@ -0,0 +1,4 @@
1
+ export interface InvoicePreparer {
2
+ uuid: string;
3
+ name: string;
4
+ }
@@ -0,0 +1,5 @@
1
+ import { UserIndexView } from '../../../../../client/index.ts';
2
+ import { InvoicePreparer } from './invoicePreparer.model.ts';
3
+ export declare class InvoicePreparerTransformer {
4
+ static fromDto(dto: UserIndexView): InvoicePreparer;
5
+ }
@@ -0,0 +1,3 @@
1
+ import { WithSearchQuery } from '../../../../../types/query.type.ts';
2
+ export interface InvoiceUserSearchQueryParams extends WithSearchQuery {
3
+ }
@@ -0,0 +1,6 @@
1
+ import { OffsetPagination } from '@wisemen/vue-core-api-utils';
2
+ import { ViewUserIndexV1Data } from '../../../../../client/index.ts';
3
+ import { InvoiceUserSearchQueryParams } from './invoiceUserSearchQueryParams.model.ts';
4
+ export declare class InvoiceUserSearchQueryParamsTransformer {
5
+ static toDto(params: OffsetPagination<InvoiceUserSearchQueryParams>): ViewUserIndexV1Data['query'];
6
+ }
@@ -9,6 +9,7 @@ type __VLS_Props = {
9
9
  icon: Component;
10
10
  loadingLabel: string;
11
11
  noneProcessableLabel: string;
12
+ previewErrorLabel: string | null;
12
13
  processableCount: number;
13
14
  processableLabel: string;
14
15
  skippedInvoices: InvoiceIndex[];
@@ -22,6 +22,37 @@ var t = class e {
22
22
  return t === null ? null : e.toDto(t);
23
23
  }
24
24
  }, n = class {
25
+ value;
26
+ constructor(e) {
27
+ if (!Number.isFinite(e) || e < 0 || e > 100) throw Error(`Percentage value must be between 0 and 100, got ${e}`);
28
+ this.value = e;
29
+ }
30
+ getValue() {
31
+ return this.value;
32
+ }
33
+ toFraction() {
34
+ return this.value / 100;
35
+ }
36
+ toString(e = navigator.language) {
37
+ return Intl.NumberFormat(e, {
38
+ maximumFractionDigits: 2,
39
+ style: "percent"
40
+ }).format(this.toFraction());
41
+ }
42
+ }, r = class e {
43
+ static fromDto(e) {
44
+ return new n(e * 100);
45
+ }
46
+ static fromNullableDto(t) {
47
+ return t == null ? null : e.fromDto(t);
48
+ }
49
+ static toDto(e) {
50
+ return e.toFraction();
51
+ }
52
+ static toNullableDto(t) {
53
+ return t === null ? null : e.toDto(t);
54
+ }
55
+ }, i = class {
25
56
  static fromDto(t) {
26
57
  return e.PlainDate.from(t);
27
58
  }
@@ -36,4 +67,4 @@ var t = class e {
36
67
  }
37
68
  };
38
69
  //#endregion
39
- export { t as n, n as t };
70
+ export { t as i, n, r, i as t };