@wisemen/wise-invoicing-web 0.20.0 → 1.0.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 (102) hide show
  1. package/dist/ApprovalReminderSettingsViewDataProvider-DyrHExKn.js +962 -0
  2. package/dist/{BillingDocumentDetailViewDataProvider-jpp-QwPi.js → BillingDocumentDetailViewDataProvider-kFzqhrxW.js} +1563 -1550
  3. package/dist/{BillingDocumentPdf-Zw3GXZVE.js → BillingDocumentPdf-Dp6HSypy.js} +5 -5
  4. package/dist/{DunningCaseSendDialog-CA-nzjzV.js → DunningCaseSendDialog-1S6OD9wd.js} +36 -36
  5. package/dist/{InvoiceApprovalOutOfSyncIndicator-Dnw03isr.js → InvoiceApprovalOutOfSyncIndicator-DaM5hQVT.js} +16 -13
  6. package/dist/{InvoiceApprovalOverviewView-CoJXggOy.js → InvoiceApprovalOverviewView-DM_LiO19.js} +210 -210
  7. package/dist/{InvoiceApprovalStatusBadge-BWx3Fhuy.js → InvoiceApprovalStatusBadge-mbYHYU3x.js} +6 -6
  8. package/dist/{InvoicePdfView-Bv5aMLh6.js → InvoicePdfView-YbDJpTIA.js} +2 -2
  9. package/dist/{InvoicePublicProFormaPdfViewDataProvider-Ca7-AmAH.js → InvoicePublicProFormaPdfViewDataProvider-BgAhcvB6.js} +3 -3
  10. package/dist/InvoiceRejectDialogDataProvider-yegAlkDB.js +410 -0
  11. package/dist/{InvoiceStatusBadge-uXAh9ypU.js → InvoiceStatusBadge-Bo5PDjEy.js} +3 -3
  12. package/dist/{InvoicingFileUploadProvider-C3cyIUhL.js → InvoicingFileUploadProvider-DVh22OUB.js} +2 -2
  13. package/dist/{IssuerSettingsViewDataProvider-C-CRF9sK.js → IssuerSettingsViewDataProvider-BgSFemZr.js} +4 -4
  14. package/dist/{PeppolSettingsViewDataProvider-COQEInsh.js → PeppolSettingsViewDataProvider-_Bx0xx9e.js} +3 -3
  15. package/dist/ReminderTemplatesPanel-DxmfU2xK.js +103 -0
  16. package/dist/{api.util-DSerLsgA.js → api.util-lGbimoKL.js} +575 -446
  17. package/dist/{billingDocumentDetail.transformer-ClWwi8h4.js → billingDocumentDetail.transformer-C5-zjIhL.js} +13 -4
  18. package/dist/client/index.d.ts +2 -2
  19. package/dist/client/sdk.gen.d.ts +8 -3
  20. package/dist/client/types.gen.d.ts +316 -49
  21. package/dist/client/zod.gen.d.ts +1465 -71
  22. package/dist/{creditNoteDetail.query-q1b6nzu0.js → creditNoteDetail.query-CqJeWeRV.js} +23 -23
  23. package/dist/{customFieldDefinitionIndex.query-DQxer9Je.js → customFieldDefinitionIndex.query-Co7hoMow.js} +65 -56
  24. package/dist/{deliveryReason.util-BlxvUaz0.js → deliveryReason.util-ny1rA7Sm.js} +6 -6
  25. package/dist/{dist-47-1LAzT.js → dist-CrNFh-CR.js} +59 -59
  26. package/dist/{dist-B33lNwLw.js → dist-DmVrfBOT.js} +149 -79
  27. package/dist/{documentTitle.composable-D5uPh3uG.js → documentTitle.composable-aTEYXgaZ.js} +1 -1
  28. package/dist/html.util-vG4ow95N.js +52 -0
  29. package/dist/{i18n.lib-DB15VQsH.js → i18n.lib-B1H9r0km.js} +196 -26
  30. package/dist/index.d.ts +182 -12
  31. package/dist/index.js +1638 -1479
  32. package/dist/{invoice.service-BKgP2p8z.js → invoice.service-D9ubyWPb.js} +245 -203
  33. package/dist/invoiceApproval.service-BtDIOHIo.js +182 -0
  34. package/dist/{invoiceApprovalStatus.util-D17DWEh1.js → invoiceApprovalStatus.util-Bqq_bILG.js} +2 -2
  35. package/dist/{invoiceCustomer.service-CLYUR6vc.js → invoiceCustomer.service-D0AtVrLg.js} +6 -6
  36. package/dist/{invoiceDetail.query-CzyZqT82.js → invoiceDetail.query-BNL6MkvC.js} +1 -1
  37. package/dist/{invoicingConfig.composable-CzgTMtog.js → invoicingConfig.composable-DEF0lzNP.js} +2 -2
  38. package/dist/{issuerSettings.query-D8T34N7f.js → issuerSettings.query-Cu-I6OAg.js} +5 -5
  39. package/dist/libs/i18n.lib.d.ts +182 -12
  40. package/dist/locales/en-US.json.d.ts +98 -13
  41. package/dist/locales/nl-BE.json.d.ts +98 -13
  42. package/dist/models/billing-document/billingDocumentDetail.model.d.ts +2 -2
  43. package/dist/models/file-reference/fileReference.transformer.d.ts +3 -0
  44. package/dist/modules/invoice/api/mutations/invoiceApprovalUpdate.mutation.d.ts +16 -0
  45. package/dist/modules/invoice/api/mutations/invoiceApproveApproval.mutation.d.ts +2 -2
  46. package/dist/modules/invoice/api/mutations/invoiceRejectApproval.mutation.d.ts +2 -2
  47. package/dist/modules/invoice/api/mutations/invoiceSetApprovalMode.mutation.d.ts +7 -0
  48. package/dist/modules/invoice/api/services/invoice.service.d.ts +4 -2
  49. package/dist/modules/invoice/models/invoice/approval/invoiceApprovalMode.model.d.ts +3 -0
  50. package/dist/modules/invoice/models/invoice/approval/invoiceApprovalMode.transformer.d.ts +6 -0
  51. package/dist/modules/invoice/models/invoice/approval/invoiceApprovalModeForm.model.d.ts +7 -0
  52. package/dist/modules/invoice/models/invoice/approval/invoiceApprovalNote.model.d.ts +2 -0
  53. package/dist/modules/invoice/models/invoice/approval/invoiceApprovalUpdate.transformer.d.ts +7 -0
  54. package/dist/modules/invoice/models/invoice/approval/invoiceApprovalUpdateForm.model.d.ts +13 -0
  55. package/dist/modules/invoice/models/invoice/approval/invoiceApprove.transformer.d.ts +3 -0
  56. package/dist/modules/invoice/models/invoice/approval/invoiceApproveForm.model.d.ts +2 -2
  57. package/dist/modules/invoice/models/invoice/approval/invoiceReject.transformer.d.ts +3 -0
  58. package/dist/modules/invoice/models/invoice/approval/invoiceRejectForm.model.d.ts +2 -2
  59. package/dist/modules/invoice/models/invoice/detail/invoiceDetail.model.d.ts +5 -0
  60. package/dist/modules/invoice/models/invoice/invoiceStatus.util.d.ts +1 -0
  61. package/dist/modules/invoice/use-cases/detail/components/InvoiceApprovalBanner.vue.d.ts +13 -0
  62. package/dist/modules/invoice/use-cases/detail/composables/invoiceDetailHeaderActions.composable.d.ts +2 -0
  63. package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceApprovalModeDialog.vue.d.ts +13 -0
  64. package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceApprovalUpdateDialog.vue.d.ts +16 -0
  65. package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceApproveDialog.vue.d.ts +4 -0
  66. package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceRejectDialog.vue.d.ts +4 -0
  67. package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceRejectDialogDataProvider.vue.d.ts +13 -0
  68. package/dist/modules/invoice-approval/api/mutations/approvalFollowUpPauseCreate.mutation.d.ts +7 -0
  69. package/dist/modules/invoice-approval/api/mutations/approvalFollowUpPauseDelete.mutation.d.ts +4 -0
  70. package/dist/modules/invoice-approval/api/mutations/approvalFollowUpPauseUpdate.mutation.d.ts +10 -0
  71. package/dist/modules/invoice-approval/api/mutations/approvalMailTemplateUpdate.mutation.d.ts +14 -0
  72. package/dist/modules/invoice-approval/api/mutations/approvalReminderConfigUpdate.mutation.d.ts +14 -1
  73. package/dist/modules/invoice-approval/api/queries/approvalFollowUpPauseIndex.query.d.ts +2 -0
  74. package/dist/modules/invoice-approval/api/queries/approvalReminderConfig.query.d.ts +1 -1
  75. package/dist/modules/invoice-approval/api/query-keys/invoiceApproval.queryKeys.d.ts +9 -2
  76. package/dist/modules/invoice-approval/api/services/invoiceApproval.service.d.ts +10 -2
  77. package/dist/modules/invoice-approval/models/approvalFollowUpPause.model.d.ts +11 -0
  78. package/dist/modules/invoice-approval/models/approvalFollowUpPause.transformer.d.ts +11 -0
  79. package/dist/modules/invoice-approval/models/approvalFollowUpPauseForm.model.d.ts +11 -0
  80. package/dist/modules/invoice-approval/models/approvalMailTemplate.transformer.d.ts +6 -0
  81. package/dist/modules/invoice-approval/models/approvalMailTemplate.transformer.spec.d.ts +1 -0
  82. package/dist/modules/invoice-approval/models/approvalMailTemplateForm.model.d.ts +18 -0
  83. package/dist/modules/invoice-approval/models/approvalReminderConfigForm.model.d.ts +15 -2
  84. package/dist/modules/invoice-approval/models/approvalSettingsForm.model.d.ts +39 -0
  85. package/dist/modules/invoice-approval/models/approvalSettingsForm.spec.d.ts +1 -0
  86. package/dist/modules/invoice-approval/use-cases/settings/components/ApprovalFollowUpPauseList.vue.d.ts +20 -0
  87. package/dist/modules/invoice-approval/use-cases/settings/components/ApprovalFollowUpPauseRow.vue.d.ts +20 -0
  88. package/dist/modules/invoice-approval/use-cases/settings/components/ApprovalFollowUpPausesPanel.vue.d.ts +7 -0
  89. package/dist/modules/invoice-approval/use-cases/settings/composables/approvalFollowUpPauseDialogs.composable.d.ts +8 -0
  90. package/dist/modules/invoice-approval/use-cases/settings/dialogs/ApprovalFollowUpPauseDeleteDialog.vue.d.ts +11 -0
  91. package/dist/modules/invoice-approval/use-cases/settings/dialogs/ApprovalFollowUpPauseFormDialog.vue.d.ts +14 -0
  92. package/dist/modules/invoice-approval/use-cases/settings/views/ApprovalReminderSettingsView.vue.d.ts +2 -1
  93. package/dist/modules/invoice-approval/utils/approvalFollowUpPausePeriod.util.d.ts +41 -0
  94. package/dist/modules/invoice-approval/utils/approvalFollowUpPausePeriod.util.spec.d.ts +1 -0
  95. package/dist/{reminderConfig.query-CFmCWWlO.js → reminderConfig.query-DHMHVOeX.js} +62 -109
  96. package/dist/style.css +1 -1
  97. package/package.json +1 -1
  98. package/dist/ApprovalReminderSettingsViewDataProvider-DMWLX53_.js +0 -147
  99. package/dist/InvoiceRejectDialog-Ca-4nz4U.js +0 -361
  100. package/dist/invoiceApproval.service-oT1fvhsW.js +0 -73
  101. package/dist/modules/invoice/api/mutations/invoiceMarkAsPriorApprovalRequired.mutation.d.ts +0 -4
  102. package/dist/modules/invoice/api/mutations/invoiceUnmarkAsPriorApprovalRequired.mutation.d.ts +0 -4
@@ -22,6 +22,7 @@ export declare enum Permission {
22
22
  INVOICE_APPROVAL_REJECT = "invoice-approval.reject",
23
23
  INVOICE_APPROVAL_RESTART = "invoice-approval.restart",
24
24
  INVOICE_APPROVAL_SEND = "invoice-approval.send",
25
+ INVOICE_APPROVAL_UPDATE = "invoice-approval.update",
25
26
  INVOICE_CREATE = "invoice.create",
26
27
  INVOICE_DELETE = "invoice.delete",
27
28
  INVOICE_READ = "invoice.read",
@@ -439,6 +440,8 @@ export declare enum DomainEventType {
439
440
  INVOICE_APPROVAL_REJECTED = "invoice-approval.rejected",
440
441
  INVOICE_APPROVAL_SENT = "invoice-approval.sent",
441
442
  INVOICE_APPROVAL_SUPERSEDED = "invoice-approval.superseded",
443
+ INVOICE_APPROVAL_UPDATED = "invoice-approval.updated",
444
+ INVOICE_APPROVAL_MODE_CHANGED = "invoice.approval-mode-changed",
442
445
  INVOICE_ATTACHMENTS_UPDATED = "invoice.attachments.updated",
443
446
  INVOICE_CREATED = "invoice.created",
444
447
  INVOICE_DELETED = "invoice.deleted",
@@ -487,6 +490,10 @@ export declare enum DomainEventType {
487
490
  RECIPIENT_DEFAULT_SET = "recipient.default-set",
488
491
  RECIPIENT_DELETED = "recipient.deleted",
489
492
  APPROVAL_REMINDER_CONFIG_UPDATED = "approval-reminder-config.updated",
493
+ APPROVAL_MAIL_TEMPLATE_UPDATED = "approval-mail-template.updated",
494
+ APPROVAL_FOLLOW_UP_PAUSE_CREATED = "approval-follow-up-pause.created",
495
+ APPROVAL_FOLLOW_UP_PAUSE_UPDATED = "approval-follow-up-pause.updated",
496
+ APPROVAL_FOLLOW_UP_PAUSE_DELETED = "approval-follow-up-pause.deleted",
490
497
  REMINDER_CONFIG_UPDATED = "reminder-config.updated",
491
498
  DUNNING_CASE_SYNCED = "dunning-case.synced",
492
499
  DUNNING_CASE_CLOSED = "dunning-case.closed",
@@ -1646,6 +1653,7 @@ export type ViewPublicInvoiceDetailGroupResponse = {
1646
1653
  customFields: Array<TextCustomFieldValueDto | TextArrayCustomFieldValueDto | NumberCustomFieldValueDto | BooleanCustomFieldValueDto | DateCustomFieldValueDto | TimestampCustomFieldValueDto | SingleSelectCustomFieldValueDto | MultiSelectCustomFieldValueDto | MonetaryCustomFieldValueDto | ReferenceCustomFieldValueDto>;
1647
1654
  lines: Array<ViewPublicInvoiceDetailLineResponse>;
1648
1655
  groups: Array<ViewPublicInvoiceDetailGroupResponse>;
1656
+ grossTotal: MonetaryDto;
1649
1657
  };
1650
1658
  export type ViewPublicInvoiceDetailVatSummaryResponse = {
1651
1659
  vatRate: VatRate;
@@ -1875,6 +1883,7 @@ export type ViewInvoiceDetailGroupResponse = {
1875
1883
  customFields: Array<TextCustomFieldValueDto | TextArrayCustomFieldValueDto | NumberCustomFieldValueDto | BooleanCustomFieldValueDto | DateCustomFieldValueDto | TimestampCustomFieldValueDto | SingleSelectCustomFieldValueDto | MultiSelectCustomFieldValueDto | MonetaryCustomFieldValueDto | ReferenceCustomFieldValueDto>;
1876
1884
  lines: Array<ViewInvoiceDetailLineResponse>;
1877
1885
  groups: Array<ViewInvoiceDetailGroupResponse>;
1886
+ grossTotal: MonetaryDto;
1878
1887
  };
1879
1888
  export type ViewInvoiceDetailVatSummaryResponse = {
1880
1889
  vatRate: VatRate;
@@ -1960,11 +1969,17 @@ export type ViewInvoiceDetailApprovalResponse = {
1960
1969
  sentAt: string | null;
1961
1970
  status: InvoiceApprovalStatus;
1962
1971
  answeredAt: string | null;
1963
- customerRemark: string | null;
1972
+ /**
1973
+ * The issuer's own notes, never shown to the customer
1974
+ */
1975
+ internalNote: string | null;
1976
+ /**
1977
+ * What the customer said about the request
1978
+ */
1979
+ externalNote: string | null;
1964
1980
  proFormaFile: FileResponse | null;
1965
- approvalProofs: Array<FileResponse>;
1981
+ files: Array<FileResponse>;
1966
1982
  isActive: boolean;
1967
- remarks: string | null;
1968
1983
  rejectionReason: InvoiceApprovalRejectionReason | null;
1969
1984
  level: ApprovalReminderLevel | null;
1970
1985
  reminderSentAt: string | null;
@@ -2011,8 +2026,10 @@ export type ViewInvoiceDetailResponse = {
2011
2026
  totalDiscountAmount: MonetaryDto | null;
2012
2027
  globalDiscount: DiscountDto | null;
2013
2028
  attachments: Array<FileResponse>;
2014
- approvalProofs: Array<FileResponse>;
2015
- rejectionFiles: Array<FileResponse>;
2029
+ /**
2030
+ * The files of the active approval
2031
+ */
2032
+ approvalFiles: Array<FileResponse>;
2016
2033
  creditNotes: Array<ViewInvoiceDetailRelatedInvoiceResponse>;
2017
2034
  originalInvoice: ViewInvoiceDetailRelatedInvoiceResponse | null;
2018
2035
  preparedBy: ViewInvoiceDetailPreparerResponse;
@@ -2499,13 +2516,16 @@ export type DuplicateInvoiceResponse = {
2499
2516
  export type CopyCreditNoteToInvoiceResponse = {
2500
2517
  uuid: string;
2501
2518
  };
2502
- export type CanNotRemoveInvoicePriorApprovalRequirementWithApprovalCreatedError = {
2519
+ export type ApprovalModeChangeWithActiveApprovalError = {
2503
2520
  /**
2504
2521
  * a human-readable explanation specific to this occurrence of the problem
2505
2522
  */
2506
2523
  detail?: string;
2507
2524
  status: '409';
2508
- code: 'can_not_remove_invoice_prior_approval_requirement_with_approval_created';
2525
+ code: 'approval_mode_change_with_active_approval';
2526
+ };
2527
+ export type SetInvoiceApprovalModeCommand = {
2528
+ approvalMode: ApprovalMode | null;
2509
2529
  };
2510
2530
  export type InvoiceNotFinalizedError = {
2511
2531
  /**
@@ -2730,6 +2750,7 @@ export declare enum ActivityType {
2730
2750
  INVOICE_MARKED_AS_READY = "invoice-marked-as-ready",
2731
2751
  INVOICE_MARKED_AS_PRIOR_APPROVAL_REQUIRED = "invoice-marked-as-prior-approval-required",
2732
2752
  INVOICE_UNMARKED_AS_PRIOR_APPROVAL_REQUIRED = "invoice-unmarked-as-prior-approval-required",
2753
+ INVOICE_APPROVAL_MODE_CHANGED = "invoice-approval-mode-changed",
2733
2754
  INVOICE_MARKED_AS_PAID = "invoice-marked-as-paid",
2734
2755
  INVOICE_PAYMENT_CREATED = "invoice-payment-created",
2735
2756
  INVOICE_PAYMENT_DELETED = "invoice-payment-deleted",
@@ -2739,6 +2760,7 @@ export declare enum ActivityType {
2739
2760
  INVOICE_APPROVAL_CANCELLED = "invoice-approval-cancelled",
2740
2761
  INVOICE_APPROVAL_EXPIRED = "invoice-approval-expired",
2741
2762
  INVOICE_APPROVAL_REMINDER_SENT = "invoice-approval-reminder-sent",
2763
+ INVOICE_APPROVAL_UPDATED = "invoice-approval-updated",
2742
2764
  INVOICE_FINALIZATION_BLOCKED = "invoice-finalization-blocked",
2743
2765
  DUNNING_CASE_REMINDER_SENT = "dunning-case-reminder-sent",
2744
2766
  CREDIT_NOTE_CREATED = "credit-note-created",
@@ -3325,8 +3347,11 @@ export type MissingInvoiceApprovalFileError = {
3325
3347
  code: 'missing_invoice_approval_file';
3326
3348
  };
3327
3349
  export type ApproveInvoiceApprovalCommand = {
3350
+ /**
3351
+ * Replaces the files of the approval
3352
+ */
3328
3353
  fileUuids?: Array<string>;
3329
- remarks?: string | null;
3354
+ internalNote?: string | null;
3330
3355
  };
3331
3356
  export type MissingRejectionRemarksError = {
3332
3357
  /**
@@ -3337,8 +3362,11 @@ export type MissingRejectionRemarksError = {
3337
3362
  code: 'missing_rejection_remarks';
3338
3363
  };
3339
3364
  export type RejectInvoiceApprovalCommand = {
3340
- remarks?: string | null;
3365
+ internalNote?: string | null;
3341
3366
  reason: InvoiceApprovalRejectionReason;
3367
+ /**
3368
+ * Replaces the files of the approval
3369
+ */
3342
3370
  fileUuids?: Array<string>;
3343
3371
  };
3344
3372
  export type InvoiceApprovalAlreadyCancelledError = {
@@ -3349,6 +3377,14 @@ export type InvoiceApprovalAlreadyCancelledError = {
3349
3377
  status: '409';
3350
3378
  code: 'invoice_approval_already_cancelled';
3351
3379
  };
3380
+ export type InvoiceApprovalNotActiveError = {
3381
+ /**
3382
+ * a human-readable explanation specific to this occurrence of the problem
3383
+ */
3384
+ detail?: string;
3385
+ status: '409';
3386
+ code: 'invoice_approval_not_active';
3387
+ };
3352
3388
  export type InvalidCancelableInvoiceApprovalStatusError = {
3353
3389
  /**
3354
3390
  * a human-readable explanation specific to this occurrence of the problem
@@ -3373,6 +3409,16 @@ export type ApprovalRestartRequiresActiveApprovalError = {
3373
3409
  status: '409';
3374
3410
  code: 'approval_restart_requires_active_approval';
3375
3411
  };
3412
+ export type UpdateInvoiceApprovalCommand = {
3413
+ /**
3414
+ * The issuer's own notes, never shown to the customer
3415
+ */
3416
+ internalNote: string | null;
3417
+ /**
3418
+ * Replaces the files of the approval
3419
+ */
3420
+ fileUuids: Array<string>;
3421
+ };
3376
3422
  export type ViewInvoiceApprovalIndexFilterQuery = {
3377
3423
  status?: InvoiceApprovalStatus;
3378
3424
  mode?: ApprovalMode;
@@ -3411,7 +3457,8 @@ export type ViewInvoiceApprovalIndexItemResponse = {
3411
3457
  answeredAt: string | 'infinity' | '-infinity' | null;
3412
3458
  nextReminderOn: string | 'infinity' | '-infinity' | null;
3413
3459
  expiresOn: string | 'infinity' | '-infinity' | null;
3414
- customerRemark: string | null;
3460
+ internalNote: string | null;
3461
+ externalNote: string | null;
3415
3462
  rejectionReason: InvoiceApprovalRejectionReason | null;
3416
3463
  level: ApprovalReminderLevel | null;
3417
3464
  lastReminderSentAt: string | 'infinity' | '-infinity' | null;
@@ -3539,6 +3586,10 @@ export type ViewApprovalReminderConfigItemResponse = {
3539
3586
  };
3540
3587
  export type ViewApprovalReminderConfigResponse = {
3541
3588
  items: Array<ViewApprovalReminderConfigItemResponse>;
3589
+ /**
3590
+ * The mail that requests the approval
3591
+ */
3592
+ approvalMailTemplate: MailTemplateResponse;
3542
3593
  };
3543
3594
  export type ApprovalReminderConfigNotChronologicalError = {
3544
3595
  /**
@@ -3573,6 +3624,91 @@ export type ApprovalReminderConfigCommand = {
3573
3624
  export type UpdateApprovalReminderConfigCommand = {
3574
3625
  reminders: Array<ApprovalReminderConfigCommand>;
3575
3626
  };
3627
+ export type UpdateApprovalMailTemplateCommand = {
3628
+ subject: LocalizedStringDto;
3629
+ /**
3630
+ * HTML of the body
3631
+ */
3632
+ body: LocalizedStringDto;
3633
+ };
3634
+ export type ViewApprovalFollowUpPauseIndexFilterQuery = {
3635
+ /**
3636
+ * True for pauses that ended before today, false for current and future pauses
3637
+ */
3638
+ isPast?: boolean;
3639
+ };
3640
+ export type DateRangeResponse = {
3641
+ startDate: string | 'infinity' | '-infinity';
3642
+ endDate: string | 'infinity' | '-infinity';
3643
+ };
3644
+ export type ViewApprovalFollowUpPauseIndexItemResponse = {
3645
+ uuid: string;
3646
+ name: string;
3647
+ /**
3648
+ * Both the start and the end date are paused
3649
+ */
3650
+ period: DateRangeResponse;
3651
+ };
3652
+ export type ViewApprovalFollowUpPauseIndexResponse = {
3653
+ items: Array<ViewApprovalFollowUpPauseIndexItemResponse>;
3654
+ };
3655
+ export type ApprovalFollowUpPauseOverlapError = {
3656
+ /**
3657
+ * a human-readable explanation specific to this occurrence of the problem
3658
+ */
3659
+ detail?: string;
3660
+ status: '409';
3661
+ code: 'approval_follow_up_pause_overlap';
3662
+ };
3663
+ export type ApprovalFollowUpPausePeriodInPastError = {
3664
+ /**
3665
+ * a human-readable explanation specific to this occurrence of the problem
3666
+ */
3667
+ detail?: string;
3668
+ status: '400';
3669
+ code: 'approval_follow_up_pause_period_in_past';
3670
+ };
3671
+ export type CreateApprovalFollowUpPauseCommand = {
3672
+ name: string;
3673
+ /**
3674
+ * Both the start and the end date are paused
3675
+ */
3676
+ period: DateRangeDto;
3677
+ };
3678
+ export type CreateApprovalFollowUpPauseResponse = {
3679
+ uuid: string;
3680
+ };
3681
+ export type ApprovalFollowUpPauseNotFoundError = {
3682
+ /**
3683
+ * a human-readable explanation specific to this occurrence of the problem
3684
+ */
3685
+ detail?: string;
3686
+ status: '404';
3687
+ code: 'approval_follow_up_pause_not_found';
3688
+ };
3689
+ export type ApprovalFollowUpPausePastError = {
3690
+ /**
3691
+ * a human-readable explanation specific to this occurrence of the problem
3692
+ */
3693
+ detail?: string;
3694
+ status: '409';
3695
+ code: 'approval_follow_up_pause_past';
3696
+ };
3697
+ export type ApprovalFollowUpPauseStartedError = {
3698
+ /**
3699
+ * a human-readable explanation specific to this occurrence of the problem
3700
+ */
3701
+ detail?: string;
3702
+ status: '409';
3703
+ code: 'approval_follow_up_pause_started';
3704
+ };
3705
+ export type UpdateApprovalFollowUpPauseCommand = {
3706
+ name: string;
3707
+ /**
3708
+ * Both the start and the end date are paused
3709
+ */
3710
+ period: DateRangeDto;
3711
+ };
3576
3712
  export declare enum PeppolProvider {
3577
3713
  SOLUZ = "soluz"
3578
3714
  }
@@ -5457,7 +5593,7 @@ export type FinalizeInvoiceV1Errors = {
5457
5593
  };
5458
5594
  409: {
5459
5595
  traceId?: string | null;
5460
- errors?: Array<CustomerHasNoApprovalEmailError | InvoiceHasNoLinesError | InvoiceAlreadyFinalizedError | InvoiceFinalizationRequiresApprovalError | InvoiceIssuedOnBeforeLastIssuedError | InvoiceIssuedOnInClosedPeriodError>;
5596
+ errors?: Array<InvoiceNotStandardError | CustomerHasNoApprovalEmailError | InvoiceHasNoLinesError | InvoiceAlreadyFinalizedError | InvoiceFinalizationRequiresApprovalError | InvoiceIssuedOnBeforeLastIssuedError | InvoiceIssuedOnInClosedPeriodError>;
5461
5597
  };
5462
5598
  500: {
5463
5599
  traceId?: string | null;
@@ -5685,60 +5821,33 @@ export type MarkInvoiceAsDraftV1Responses = {
5685
5821
  204: void;
5686
5822
  };
5687
5823
  export type MarkInvoiceAsDraftV1Response = MarkInvoiceAsDraftV1Responses[keyof MarkInvoiceAsDraftV1Responses];
5688
- export type MarkInvoiceAsPriorApprovalRequiredV1Data = {
5689
- body?: never;
5690
- path: {
5691
- uuid: string;
5692
- };
5693
- query?: never;
5694
- url: '/api/v1/invoices/{uuid}/mark-as-prior-approval-required';
5695
- };
5696
- export type MarkInvoiceAsPriorApprovalRequiredV1Errors = {
5697
- 404: {
5698
- traceId?: string | null;
5699
- errors?: Array<InvoiceNotFoundError>;
5700
- };
5701
- 409: {
5702
- traceId?: string | null;
5703
- errors?: Array<InvoiceNotStandardError | InvoiceNotEditableError>;
5704
- };
5705
- 500: {
5706
- traceId?: string | null;
5707
- errors?: Array<InternalServerApiError>;
5708
- };
5709
- };
5710
- export type MarkInvoiceAsPriorApprovalRequiredV1Error = MarkInvoiceAsPriorApprovalRequiredV1Errors[keyof MarkInvoiceAsPriorApprovalRequiredV1Errors];
5711
- export type MarkInvoiceAsPriorApprovalRequiredV1Responses = {
5712
- 204: void;
5713
- };
5714
- export type MarkInvoiceAsPriorApprovalRequiredV1Response = MarkInvoiceAsPriorApprovalRequiredV1Responses[keyof MarkInvoiceAsPriorApprovalRequiredV1Responses];
5715
- export type UnmarkInvoiceAsPriorApprovalRequiredV1Data = {
5716
- body?: never;
5824
+ export type SetInvoiceApprovalModeV1Data = {
5825
+ body: SetInvoiceApprovalModeCommand;
5717
5826
  path: {
5718
5827
  uuid: string;
5719
5828
  };
5720
5829
  query?: never;
5721
- url: '/api/v1/invoices/{uuid}/unmark-as-prior-approval-required';
5830
+ url: '/api/v1/invoices/{uuid}/approval-mode';
5722
5831
  };
5723
- export type UnmarkInvoiceAsPriorApprovalRequiredV1Errors = {
5832
+ export type SetInvoiceApprovalModeV1Errors = {
5724
5833
  404: {
5725
5834
  traceId?: string | null;
5726
5835
  errors?: Array<InvoiceNotFoundError>;
5727
5836
  };
5728
5837
  409: {
5729
5838
  traceId?: string | null;
5730
- errors?: Array<InvoiceNotStandardError | InvoiceNotEditableError | CanNotRemoveInvoicePriorApprovalRequirementWithApprovalCreatedError>;
5839
+ errors?: Array<InvoiceNotStandardError | InvoiceNotEditableError | ApprovalModeChangeWithActiveApprovalError>;
5731
5840
  };
5732
5841
  500: {
5733
5842
  traceId?: string | null;
5734
5843
  errors?: Array<InternalServerApiError>;
5735
5844
  };
5736
5845
  };
5737
- export type UnmarkInvoiceAsPriorApprovalRequiredV1Error = UnmarkInvoiceAsPriorApprovalRequiredV1Errors[keyof UnmarkInvoiceAsPriorApprovalRequiredV1Errors];
5738
- export type UnmarkInvoiceAsPriorApprovalRequiredV1Responses = {
5846
+ export type SetInvoiceApprovalModeV1Error = SetInvoiceApprovalModeV1Errors[keyof SetInvoiceApprovalModeV1Errors];
5847
+ export type SetInvoiceApprovalModeV1Responses = {
5739
5848
  204: void;
5740
5849
  };
5741
- export type UnmarkInvoiceAsPriorApprovalRequiredV1Response = UnmarkInvoiceAsPriorApprovalRequiredV1Responses[keyof UnmarkInvoiceAsPriorApprovalRequiredV1Responses];
5850
+ export type SetInvoiceApprovalModeV1Response = SetInvoiceApprovalModeV1Responses[keyof SetInvoiceApprovalModeV1Responses];
5742
5851
  export type MarkInvoiceAsDisputedV1Data = {
5743
5852
  body?: never;
5744
5853
  path: {
@@ -6362,7 +6471,7 @@ export type ApproveInvoiceApprovalV1Errors = {
6362
6471
  };
6363
6472
  409: {
6364
6473
  traceId?: string | null;
6365
- errors?: Array<InvalidInvoiceApprovalTransitionError>;
6474
+ errors?: Array<InvalidInvoiceApprovalTransitionError | FileUnconfirmedError>;
6366
6475
  };
6367
6476
  500: {
6368
6477
  traceId?: string | null;
@@ -6393,7 +6502,7 @@ export type RejectInvoiceApprovalV1Errors = {
6393
6502
  };
6394
6503
  409: {
6395
6504
  traceId?: string | null;
6396
- errors?: Array<InvalidInvoiceApprovalTransitionError>;
6505
+ errors?: Array<InvalidInvoiceApprovalTransitionError | FileUnconfirmedError>;
6397
6506
  };
6398
6507
  500: {
6399
6508
  traceId?: string | null;
@@ -6420,7 +6529,7 @@ export type CancelInvoiceApprovalV1Errors = {
6420
6529
  };
6421
6530
  409: {
6422
6531
  traceId?: string | null;
6423
- errors?: Array<InvoiceApprovalAlreadyCancelledError | InvalidCancelableInvoiceApprovalStatusError | CancelInvoiceApprovalOfFinalizedInvoiceError>;
6532
+ errors?: Array<InvoiceApprovalAlreadyCancelledError | InvoiceApprovalNotActiveError | InvalidCancelableInvoiceApprovalStatusError | CancelInvoiceApprovalOfFinalizedInvoiceError>;
6424
6533
  };
6425
6534
  500: {
6426
6535
  traceId?: string | null;
@@ -6455,6 +6564,37 @@ export type RestartProFormaApprovalV1Errors = {
6455
6564
  };
6456
6565
  };
6457
6566
  export type RestartProFormaApprovalV1Error = RestartProFormaApprovalV1Errors[keyof RestartProFormaApprovalV1Errors];
6567
+ export type UpdateInvoiceApprovalV1Data = {
6568
+ body: UpdateInvoiceApprovalCommand;
6569
+ path: {
6570
+ uuid: string;
6571
+ };
6572
+ query?: never;
6573
+ url: '/api/v1/invoice-approvals/{uuid}';
6574
+ };
6575
+ export type UpdateInvoiceApprovalV1Errors = {
6576
+ 400: {
6577
+ traceId?: string | null;
6578
+ errors?: Array<MissingInvoiceApprovalFileError>;
6579
+ };
6580
+ 404: {
6581
+ traceId?: string | null;
6582
+ errors?: Array<InvoiceApprovalNotFoundError | FileNotFoundError>;
6583
+ };
6584
+ 409: {
6585
+ traceId?: string | null;
6586
+ errors?: Array<InvoiceApprovalNotActiveError | FileUnconfirmedError>;
6587
+ };
6588
+ 500: {
6589
+ traceId?: string | null;
6590
+ errors?: Array<InternalServerApiError>;
6591
+ };
6592
+ };
6593
+ export type UpdateInvoiceApprovalV1Error = UpdateInvoiceApprovalV1Errors[keyof UpdateInvoiceApprovalV1Errors];
6594
+ export type UpdateInvoiceApprovalV1Responses = {
6595
+ 204: void;
6596
+ };
6597
+ export type UpdateInvoiceApprovalV1Response = UpdateInvoiceApprovalV1Responses[keyof UpdateInvoiceApprovalV1Responses];
6458
6598
  export type ViewInvoiceApprovalIndexV1Data = {
6459
6599
  body?: never;
6460
6600
  path?: never;
@@ -6544,6 +6684,133 @@ export type UpdateApprovalReminderConfigV1Responses = {
6544
6684
  204: void;
6545
6685
  };
6546
6686
  export type UpdateApprovalReminderConfigV1Response = UpdateApprovalReminderConfigV1Responses[keyof UpdateApprovalReminderConfigV1Responses];
6687
+ export type UpdateApprovalMailTemplateV1Data = {
6688
+ body: UpdateApprovalMailTemplateCommand;
6689
+ path?: never;
6690
+ query?: never;
6691
+ url: '/api/v1/issuers/approval-mail-template';
6692
+ };
6693
+ export type UpdateApprovalMailTemplateV1Errors = {
6694
+ 404: {
6695
+ traceId?: string | null;
6696
+ errors?: Array<IssuerNotFoundError>;
6697
+ };
6698
+ 500: {
6699
+ traceId?: string | null;
6700
+ errors?: Array<InternalServerApiError>;
6701
+ };
6702
+ };
6703
+ export type UpdateApprovalMailTemplateV1Error = UpdateApprovalMailTemplateV1Errors[keyof UpdateApprovalMailTemplateV1Errors];
6704
+ export type UpdateApprovalMailTemplateV1Responses = {
6705
+ 204: void;
6706
+ };
6707
+ export type UpdateApprovalMailTemplateV1Response = UpdateApprovalMailTemplateV1Responses[keyof UpdateApprovalMailTemplateV1Responses];
6708
+ export type ViewApprovalFollowUpPauseIndexV1Data = {
6709
+ body?: never;
6710
+ path?: never;
6711
+ query?: {
6712
+ filter?: ViewApprovalFollowUpPauseIndexFilterQuery;
6713
+ };
6714
+ url: '/api/v1/issuers/approval-follow-up-pauses';
6715
+ };
6716
+ export type ViewApprovalFollowUpPauseIndexV1Errors = {
6717
+ 500: {
6718
+ traceId?: string | null;
6719
+ errors?: Array<InternalServerApiError>;
6720
+ };
6721
+ };
6722
+ export type ViewApprovalFollowUpPauseIndexV1Error = ViewApprovalFollowUpPauseIndexV1Errors[keyof ViewApprovalFollowUpPauseIndexV1Errors];
6723
+ export type ViewApprovalFollowUpPauseIndexV1Responses = {
6724
+ 200: ViewApprovalFollowUpPauseIndexResponse;
6725
+ };
6726
+ export type ViewApprovalFollowUpPauseIndexV1Response = ViewApprovalFollowUpPauseIndexV1Responses[keyof ViewApprovalFollowUpPauseIndexV1Responses];
6727
+ export type CreateApprovalFollowUpPauseV1Data = {
6728
+ body: CreateApprovalFollowUpPauseCommand;
6729
+ path?: never;
6730
+ query?: never;
6731
+ url: '/api/v1/issuers/approval-follow-up-pauses';
6732
+ };
6733
+ export type CreateApprovalFollowUpPauseV1Errors = {
6734
+ 400: {
6735
+ traceId?: string | null;
6736
+ errors?: Array<ApprovalFollowUpPausePeriodInPastError>;
6737
+ };
6738
+ 404: {
6739
+ traceId?: string | null;
6740
+ errors?: Array<IssuerNotFoundError>;
6741
+ };
6742
+ 409: {
6743
+ traceId?: string | null;
6744
+ errors?: Array<ApprovalFollowUpPauseOverlapError>;
6745
+ };
6746
+ 500: {
6747
+ traceId?: string | null;
6748
+ errors?: Array<InternalServerApiError>;
6749
+ };
6750
+ };
6751
+ export type CreateApprovalFollowUpPauseV1Error = CreateApprovalFollowUpPauseV1Errors[keyof CreateApprovalFollowUpPauseV1Errors];
6752
+ export type CreateApprovalFollowUpPauseV1Responses = {
6753
+ 201: CreateApprovalFollowUpPauseResponse;
6754
+ };
6755
+ export type CreateApprovalFollowUpPauseV1Response = CreateApprovalFollowUpPauseV1Responses[keyof CreateApprovalFollowUpPauseV1Responses];
6756
+ export type DeleteApprovalFollowUpPauseV1Data = {
6757
+ body?: never;
6758
+ path: {
6759
+ uuid: string;
6760
+ };
6761
+ query?: never;
6762
+ url: '/api/v1/issuers/approval-follow-up-pauses/{uuid}';
6763
+ };
6764
+ export type DeleteApprovalFollowUpPauseV1Errors = {
6765
+ 404: {
6766
+ traceId?: string | null;
6767
+ errors?: Array<ApprovalFollowUpPauseNotFoundError>;
6768
+ };
6769
+ 409: {
6770
+ traceId?: string | null;
6771
+ errors?: Array<ApprovalFollowUpPausePastError | ApprovalFollowUpPauseStartedError>;
6772
+ };
6773
+ 500: {
6774
+ traceId?: string | null;
6775
+ errors?: Array<InternalServerApiError>;
6776
+ };
6777
+ };
6778
+ export type DeleteApprovalFollowUpPauseV1Error = DeleteApprovalFollowUpPauseV1Errors[keyof DeleteApprovalFollowUpPauseV1Errors];
6779
+ export type DeleteApprovalFollowUpPauseV1Responses = {
6780
+ 204: void;
6781
+ };
6782
+ export type DeleteApprovalFollowUpPauseV1Response = DeleteApprovalFollowUpPauseV1Responses[keyof DeleteApprovalFollowUpPauseV1Responses];
6783
+ export type UpdateApprovalFollowUpPauseV1Data = {
6784
+ body: UpdateApprovalFollowUpPauseCommand;
6785
+ path: {
6786
+ uuid: string;
6787
+ };
6788
+ query?: never;
6789
+ url: '/api/v1/issuers/approval-follow-up-pauses/{uuid}';
6790
+ };
6791
+ export type UpdateApprovalFollowUpPauseV1Errors = {
6792
+ 400: {
6793
+ traceId?: string | null;
6794
+ errors?: Array<ApprovalFollowUpPausePeriodInPastError>;
6795
+ };
6796
+ 404: {
6797
+ traceId?: string | null;
6798
+ errors?: Array<ApprovalFollowUpPauseNotFoundError>;
6799
+ };
6800
+ 409: {
6801
+ traceId?: string | null;
6802
+ errors?: Array<ApprovalFollowUpPauseOverlapError | ApprovalFollowUpPausePastError | ApprovalFollowUpPauseStartedError>;
6803
+ };
6804
+ 500: {
6805
+ traceId?: string | null;
6806
+ errors?: Array<InternalServerApiError>;
6807
+ };
6808
+ };
6809
+ export type UpdateApprovalFollowUpPauseV1Error = UpdateApprovalFollowUpPauseV1Errors[keyof UpdateApprovalFollowUpPauseV1Errors];
6810
+ export type UpdateApprovalFollowUpPauseV1Responses = {
6811
+ 204: void;
6812
+ };
6813
+ export type UpdateApprovalFollowUpPauseV1Response = UpdateApprovalFollowUpPauseV1Responses[keyof UpdateApprovalFollowUpPauseV1Responses];
6547
6814
  export type ViewPeppolConnectionV1Data = {
6548
6815
  body?: never;
6549
6816
  path?: never;