@wisemen/wise-invoicing-web 0.2.0 → 0.3.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-D-qXZrPT.js → ApprovalReminderSettingsViewDataProvider-DwtfyQpx.js} +4 -4
- package/dist/{BillingDocumentDetailViewDataProvider-DDdtlW-2.js → BillingDocumentDetailViewDataProvider-TJUwMhtn.js} +1373 -1217
- package/dist/BillingDocumentDetailViewDataProvider.css +1 -1
- package/dist/{BillingDocumentPdf-ehdFB6mr.js → BillingDocumentPdf-PU9Ldfhs.js} +20 -13
- package/dist/{CreditNoteDetailViewDataProvider-11a-JO3H.js → CreditNoteDetailViewDataProvider-DOPmal5D.js} +89 -89
- package/dist/{CreditNotePdfViewDataProvider-bfeaya3P.js → CreditNotePdfViewDataProvider-BH7MaReQ.js} +2 -2
- package/dist/{CustomFieldValueText-CZQXGE5F.js → CustomFieldValueText-BjRVovZL.js} +25 -25
- package/dist/DunningCaseDetailViewDataProvider-CW8ijY3H.js +439 -0
- package/dist/{DunningCaseOverviewView-y_bCmi5j.js → DunningCaseOverviewView-Cfo-4VIw.js} +255 -203
- package/dist/{DunningCaseReminderPdfViewDataProvider-DNODfED_.js → DunningCaseReminderPdfViewDataProvider-Dr-CS_VQ.js} +4 -3
- package/dist/{DunningCaseSendDialog-BPXcqit5.js → DunningCaseSendDialog-BYFXJYMM.js} +83 -72
- package/dist/InvoiceApprovalOutOfSyncIndicator-CP2GLaeh.js +45 -0
- package/dist/InvoiceApprovalOverviewView-Cjdu9iZC.js +814 -0
- package/dist/InvoiceApprovalStatusBadge-CcX8agTF.js +127 -0
- package/dist/InvoiceApproveDialogDataProvider-4wNAetBn.js +377 -0
- package/dist/{InvoiceDetailViewDataProvider-BYeaaQzL.js → InvoiceDetailViewDataProvider-C9O3hXGo.js} +750 -692
- package/dist/InvoiceOverviewViewDataProvider-DBdw7FvZ.js +1892 -0
- package/dist/{InvoicePdfView-BJRTg_TH.js → InvoicePdfView-CvU9bRVd.js} +10 -4
- package/dist/{InvoicePdfViewDataProvider-CwI_uGm3.js → InvoicePdfViewDataProvider-CFjHQ58K.js} +3 -3
- package/dist/{InvoicePublicPdfViewDataProvider-uZUfsr5K.js → InvoicePublicPdfViewDataProvider-DDv-LdBU.js} +3 -3
- package/dist/InvoicePublicProFormaPdfViewDataProvider-BTjJnELb.js +47 -0
- package/dist/{InvoicingFileUploadProvider-D9Xk4rQM.js → InvoicingFileUploadProvider-Kcq7kSSt.js} +2 -2
- package/dist/{IssuerSettingsViewDataProvider-CGRa8F-2.js → IssuerSettingsViewDataProvider-BuSIVnIl.js} +3 -3
- package/dist/{ReminderSettingsViewDataProvider-1ucp3z2T.js → ReminderSettingsViewDataProvider-CH7gSXnj.js} +100 -102
- package/dist/{api.util-C_kMGlJN.js → api.util-CkIRZS3h.js} +985 -930
- package/dist/{billingDocumentDetail.transformer-Da6_-Hv9.js → billingDocumentDetail.transformer-Bfd8geNo.js} +5 -7
- package/dist/client/index.d.ts +2 -2
- package/dist/client/sdk.gen.d.ts +2 -1
- package/dist/client/types.gen.d.ts +114 -31
- package/dist/client/zod.gen.d.ts +343 -78
- package/dist/composables/sending-refetch/sendingRefetch.composable.d.ts +7 -0
- package/dist/composables/sending-refetch/sendingRefetch.composable.spec.d.ts +1 -0
- package/dist/{creditNoteDetail.query-DLR7L0Ep.js → creditNoteDetail.query-tLnfqsEB.js} +27 -27
- package/dist/customerUuid.model-ClN4Vi9n.js +18 -0
- package/dist/{dist-Cxdm09Lp.js → dist-BD7Allff.js} +143 -95
- package/dist/{dist-CoztMdYH.js → dist-D5agTXFI.js} +61 -61
- package/dist/{documentTitle.composable-DsBbzhXN.js → documentTitle.composable-CRJjS6p-.js} +19 -17
- package/dist/{i18n.lib-Cvr8pcDw.js → i18n.lib--mzprLMR.js} +88 -54
- package/dist/index.d.ts +56 -22
- package/dist/index.js +193 -201
- package/dist/{invoice.service-DEEA9mal.js → invoice.service-B1w16_Md.js} +184 -172
- package/dist/{invoiceApproval.service-DvL3LliM.js → invoiceApproval.service-BHAJmFkU.js} +8 -8
- package/dist/{invoiceApprovalStatus.util-3Zh10Pj8.js → invoiceApprovalStatus.util-DohOKR4q.js} +42 -38
- package/dist/invoiceCustomer.service-DpVfpQUD.js +39 -0
- package/dist/{invoiceDetail.query-CRoH_SgM.js → invoiceDetail.query-CfyNSXLS.js} +1 -1
- package/dist/{invoiceDeliveryStatus.util-nCsqDypY.js → invoiceIndexCache.util-jHsrFwcA.js} +128 -51
- package/dist/{invoicingConfig.composable-rxjGK882.js → invoicingConfig.composable-COn1rKRf.js} +2 -2
- package/dist/{issuerSettings.query-Dc5gsaEm.js → issuerSettings.query-CDFk2GiP.js} +3 -2
- package/dist/libs/i18n.lib.d.ts +56 -22
- package/dist/locales/en-US.json.d.ts +44 -27
- package/dist/locales/nl-BE.json.d.ts +44 -27
- package/dist/models/billing-document/activity-log/billingDocumentActivityLog.model.d.ts +8 -1
- package/dist/models/billing-document/activity-log/billingDocumentActivityLog.util.d.ts +12 -0
- package/dist/models/billing-document/activity-log/billingDocumentActivityLog.util.spec.d.ts +1 -0
- package/dist/models/billing-document/billingDocumentDetail.model.d.ts +2 -6
- package/dist/modules/dunning-case/api/mutations/dunningCaseReminderRetry.mutation.d.ts +4 -0
- package/dist/modules/dunning-case/api/services/dunningCase.service.d.ts +2 -1
- package/dist/modules/dunning-case/models/dunningCase.model.d.ts +5 -0
- package/dist/modules/dunning-case/models/dunningCaseReminderPdf.model.d.ts +0 -4
- package/dist/modules/dunning-case/models/dunningCaseReminderPdf.transformer.d.ts +0 -1
- package/dist/modules/dunning-case/test/builders/dunningCaseReminderPdfDto.builder.d.ts +1 -0
- package/dist/modules/dunning-case/use-cases/overview/components/DunningCaseOverviewActionsCell.vue.d.ts +2 -0
- package/dist/modules/dunning-case/use-cases/overview/composables/dunningCaseOverview.composable.d.ts +2 -2
- package/dist/modules/dunning-case/use-cases/overview/composables/dunningCaseOverview.composable.spec.d.ts +1 -0
- package/dist/modules/dunning-case/use-cases/overview/composables/dunningCaseOverviewTableColumns.composable.d.ts +1 -0
- package/dist/modules/dunning-case/use-cases/pdf/components/DunningCaseReminderPdfTable.vue.d.ts +0 -4
- package/dist/modules/dunning-case/use-cases/send/dialogs/DunningCaseBulkSendDialog.vue.d.ts +2 -1
- package/dist/modules/dunning-case/use-cases/settings/components/ReminderLadderRow.vue.d.ts +4 -4
- package/dist/modules/dunning-case/use-cases/settings/composables/reminderLadder.composable.d.ts +2 -2
- package/dist/modules/dunning-case/use-cases/settings/composables/reminderLadder.composable.spec.d.ts +1 -0
- package/dist/modules/invoice/api/mutations/invoiceRejectApproval.mutation.d.ts +8 -0
- package/dist/modules/invoice/api/queries/invoicePublicProFormaDetail.query.d.ts +2 -0
- package/dist/modules/invoice/api/query-keys/invoice.queryKeys.d.ts +6 -0
- package/dist/modules/invoice/api/services/invoice.service.d.ts +1 -0
- package/dist/modules/invoice/models/invoice/approval/invoiceApproveForm.model.d.ts +4 -2
- package/dist/modules/invoice/models/invoice/approval/invoiceApproveForm.model.spec.d.ts +1 -0
- package/dist/modules/invoice/models/invoice/approval/invoiceRejectForm.model.d.ts +8 -0
- package/dist/modules/invoice/models/invoice/detail/invoiceDetail.model.d.ts +1 -0
- package/dist/modules/invoice/models/invoice/index/invoiceIndexQueryParams.model.d.ts +2 -3
- package/dist/modules/invoice/models/invoice/invoiceApprovalStatus.model.d.ts +2 -9
- package/dist/modules/invoice/models/invoice/invoiceApprovalStatus.util.d.ts +4 -2
- package/dist/modules/invoice/models/invoice/payment/invoicePaymentCreate.transformer.spec.d.ts +1 -0
- package/dist/modules/invoice/models/invoice/pdf/invoicePdfDetail.transformer.d.ts +2 -1
- package/dist/modules/invoice/routes/invoice.routes.d.ts +4 -0
- package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceApproveDialog.vue.d.ts +1 -0
- package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceApproveDialogDataProvider.vue.d.ts +13 -0
- package/dist/modules/invoice/use-cases/detail/dialogs/InvoicePaymentDeleteDialog.vue.d.ts +13 -0
- package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewDataTableFilters.composable.d.ts +2 -3
- package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewSelection.composable.d.ts +11 -9
- package/dist/modules/invoice/use-cases/overview/dialogs/InvoiceOverviewBulkActionDialog.vue.d.ts +2 -2
- package/dist/modules/invoice/use-cases/overview/dialogs/InvoiceOverviewBulkSendApprovalDialog.vue.d.ts +3 -1
- package/dist/modules/invoice/use-cases/overview/utils/invoiceOverviewBulkActionFeedback.util.d.ts +7 -4
- package/dist/modules/invoice/use-cases/overview/utils/invoiceOverviewBulkActionFeedback.util.spec.d.ts +1 -0
- package/dist/modules/invoice/use-cases/pdf/components/BillingDocumentPdf.vue.d.ts +1 -0
- package/dist/modules/invoice/use-cases/pdf/components/InvoicePdfWatermark.vue.d.ts +4 -1
- package/dist/modules/invoice/use-cases/pdf/views/InvoicePdfView.vue.d.ts +1 -0
- package/dist/modules/invoice/use-cases/pdf/views/InvoicePublicProFormaPdfViewDataProvider.vue.d.ts +3 -0
- package/dist/modules/invoice-approval/actions/invoiceApprovalSendRequest.action.d.ts +2 -0
- package/dist/modules/invoice-approval/actions/invoiceApprovalSendRequest.spec.d.ts +1 -0
- package/dist/modules/invoice-approval/models/invoiceApprovalIndex.transformer.spec.d.ts +1 -0
- package/dist/modules/invoice-approval/models/invoiceApprovalIndexQueryParams.transformer.spec.d.ts +1 -0
- package/dist/modules/invoice-approval/use-cases/overview/composables/invoiceApprovalOverview.composable.d.ts +5 -6
- package/dist/modules/invoice-approval/use-cases/overview/composables/invoiceApprovalOverviewFilters.composable.d.ts +0 -5
- package/dist/modules/settings/models/issuer-settings/issuerSettings.model.d.ts +1 -0
- package/dist/{reminderConfig.query-snaHQmrY.js → reminderConfig.query-DSO0ekC_.js} +112 -105
- package/dist/routes/invoicingPublicRoutes.composable.d.ts +4 -0
- package/dist/style.css +1 -1
- package/dist/ui/billing-document/sidebar/BillingDocumentDetailSidebarActivityApprovalDetails.vue.d.ts +7 -0
- package/package.json +2 -2
- package/dist/DunningCaseDetailViewDataProvider-DC-ziMoO.js +0 -409
- package/dist/InvoiceApprovalOverviewView-DZ14mi4L.js +0 -870
- package/dist/InvoiceApprovalStatusBadge-U-dW2hR4.js +0 -161
- package/dist/InvoiceApproveDialog-2LXneG2r.js +0 -308
- package/dist/InvoiceOverviewBulkSendApprovalDialog-99dfuN4i.js +0 -318
- package/dist/InvoiceOverviewViewDataProvider-CZIQeftL.js +0 -1620
- package/dist/customerUuid.model-GUFYq3O2.js +0 -5
- package/dist/modules/invoice-approval/actions/invoiceApprovalUnmarkAsNeedsApproval.action.d.ts +0 -1
|
@@ -441,6 +441,7 @@ export declare enum DomainEventType {
|
|
|
441
441
|
INVOICE_DISPUTED_WITHDRAWN = "invoice.disputed-withdrawn",
|
|
442
442
|
INVOICE_DUPLICATED = "invoice.duplicated",
|
|
443
443
|
INVOICE_EMAIL_SENT = "invoice.email-sent",
|
|
444
|
+
INVOICE_FINALIZATION_BLOCKED = "invoice.finalization-blocked",
|
|
444
445
|
INVOICE_FINALIZED = "invoice.finalized",
|
|
445
446
|
INVOICE_MARKED_AS_DISPUTED = "invoice.marked-as-disputed",
|
|
446
447
|
INVOICE_MARKED_AS_DRAFT = "invoice.marked-as-draft",
|
|
@@ -485,6 +486,7 @@ export declare enum DomainEventType {
|
|
|
485
486
|
DUNNING_CASE_CLOSED = "dunning-case.closed",
|
|
486
487
|
DUNNING_CASE_REMINDER_CREATED = "dunning-case.reminder.created",
|
|
487
488
|
DUNNING_CASE_REMINDER_PDF_GENERATED = "dunning-case.reminder.pdf.generated",
|
|
489
|
+
DUNNING_CASE_REMINDER_RETRIED = "dunning-case.reminder.retried",
|
|
488
490
|
DUNNING_CASE_REMINDER_SENT = "dunning-case.reminder.sent",
|
|
489
491
|
TENANT_CREATED = "tenant.created",
|
|
490
492
|
TENANT_UPDATED = "tenant.updated",
|
|
@@ -1112,6 +1114,7 @@ export type CreateCustomerCommand = {
|
|
|
1112
1114
|
type: CustomerType;
|
|
1113
1115
|
locale: Locale;
|
|
1114
1116
|
requiresPriorApproval?: boolean;
|
|
1117
|
+
approvalEmail: string | null;
|
|
1115
1118
|
};
|
|
1116
1119
|
export type CreateCustomerResponse = {
|
|
1117
1120
|
uuid: string;
|
|
@@ -1176,6 +1179,7 @@ export type ViewCustomerDetailResponse = {
|
|
|
1176
1179
|
isDeactivated: boolean;
|
|
1177
1180
|
defaultPaymentTerm: DurationDto;
|
|
1178
1181
|
requiresPriorApproval: boolean;
|
|
1182
|
+
approvalEmail: string | null;
|
|
1179
1183
|
};
|
|
1180
1184
|
export type ViewCustomerIndexFilterQuery = {
|
|
1181
1185
|
isDeactivated?: boolean;
|
|
@@ -1225,6 +1229,14 @@ export type VatNumberRequiredError = {
|
|
|
1225
1229
|
status: '409';
|
|
1226
1230
|
code: 'vat_number_required';
|
|
1227
1231
|
};
|
|
1232
|
+
export type ApprovalEmailRequiredError = {
|
|
1233
|
+
/**
|
|
1234
|
+
* a human-readable explanation specific to this occurrence of the problem
|
|
1235
|
+
*/
|
|
1236
|
+
detail?: string;
|
|
1237
|
+
status: '409';
|
|
1238
|
+
code: 'approval_email_required';
|
|
1239
|
+
};
|
|
1228
1240
|
export type UpdateCustomerCommand = {
|
|
1229
1241
|
name: string;
|
|
1230
1242
|
address: AddressCommand | null;
|
|
@@ -1239,6 +1251,7 @@ export type UpdateCustomerCommand = {
|
|
|
1239
1251
|
currency: Currency;
|
|
1240
1252
|
defaultPaymentTerm?: DurationDto;
|
|
1241
1253
|
requiresPriorApproval?: boolean;
|
|
1254
|
+
approvalEmail: string | null;
|
|
1242
1255
|
};
|
|
1243
1256
|
export type CreateRecipientCommand = {
|
|
1244
1257
|
customerUuid: string;
|
|
@@ -1557,6 +1570,7 @@ export type ViewInvoiceDetailCustomerResponse = {
|
|
|
1557
1570
|
address: AddressResponse | null;
|
|
1558
1571
|
vatNumber: string | null;
|
|
1559
1572
|
type: CustomerType;
|
|
1573
|
+
approvalEmail: string | null;
|
|
1560
1574
|
};
|
|
1561
1575
|
export type ViewInvoiceDetailOriginalLineResponse = {
|
|
1562
1576
|
uuid: string;
|
|
@@ -1663,6 +1677,10 @@ export declare enum InvoiceApprovalRejectionReason {
|
|
|
1663
1677
|
MISSING_OR_INCORRECT_PO_REFERENCE = "missing_or_incorrect_po_reference",
|
|
1664
1678
|
OTHER = "other"
|
|
1665
1679
|
}
|
|
1680
|
+
export declare enum ApprovalReminderLevel {
|
|
1681
|
+
_1 = 1,
|
|
1682
|
+
_2 = 2
|
|
1683
|
+
}
|
|
1666
1684
|
export type ViewInvoiceDetailApprovalResponse = {
|
|
1667
1685
|
uuid: string;
|
|
1668
1686
|
sentAt: string | null;
|
|
@@ -1670,10 +1688,12 @@ export type ViewInvoiceDetailApprovalResponse = {
|
|
|
1670
1688
|
answeredAt: string | null;
|
|
1671
1689
|
customerRemark: string | null;
|
|
1672
1690
|
proFormaFile: FileResponse | null;
|
|
1673
|
-
|
|
1691
|
+
approvalProofs: Array<FileResponse>;
|
|
1674
1692
|
isActive: boolean;
|
|
1675
1693
|
remarks: string | null;
|
|
1676
1694
|
rejectionReason: InvoiceApprovalRejectionReason | null;
|
|
1695
|
+
level: ApprovalReminderLevel | null;
|
|
1696
|
+
reminderSentAt: string | null;
|
|
1677
1697
|
};
|
|
1678
1698
|
export type ViewInvoiceDetailResponse = {
|
|
1679
1699
|
uuid: string;
|
|
@@ -1709,6 +1729,8 @@ export type ViewInvoiceDetailResponse = {
|
|
|
1709
1729
|
totalDiscountAmount: MonetaryDto | null;
|
|
1710
1730
|
globalDiscount: DiscountDto | null;
|
|
1711
1731
|
attachments: Array<FileResponse>;
|
|
1732
|
+
approvalProofs: Array<FileResponse>;
|
|
1733
|
+
rejectionFiles: Array<FileResponse>;
|
|
1712
1734
|
creditNotes: Array<ViewInvoiceDetailRelatedInvoiceResponse>;
|
|
1713
1735
|
originalInvoice: ViewInvoiceDetailRelatedInvoiceResponse | null;
|
|
1714
1736
|
preparedBy: ViewInvoiceDetailPreparerResponse;
|
|
@@ -1799,9 +1821,14 @@ export type ScopedUuidFilter = {
|
|
|
1799
1821
|
scope: FilterScopeApiProperty;
|
|
1800
1822
|
values: Array<string>;
|
|
1801
1823
|
};
|
|
1802
|
-
export declare enum
|
|
1803
|
-
|
|
1804
|
-
|
|
1824
|
+
export declare enum ApprovalDisplayStatus {
|
|
1825
|
+
NO_APPROVAL_REQUIRED = "no_approval_required",
|
|
1826
|
+
AWAITING_APPROVAL = "awaiting_approval",
|
|
1827
|
+
REMINDER_1 = "reminder_1",
|
|
1828
|
+
REMINDER_2 = "reminder_2",
|
|
1829
|
+
APPROVED = "approved",
|
|
1830
|
+
REJECTED = "rejected",
|
|
1831
|
+
EXPIRED = "expired"
|
|
1805
1832
|
}
|
|
1806
1833
|
export type ViewInvoiceIndexFilterQuery = {
|
|
1807
1834
|
statuses?: Array<InvoiceStatus>;
|
|
@@ -1817,8 +1844,7 @@ export type ViewInvoiceIndexFilterQuery = {
|
|
|
1817
1844
|
isOutstanding?: boolean;
|
|
1818
1845
|
customFields?: Array<NumberCustomFieldFilter | DateCustomFieldFilter | TimestampCustomFieldFilter | BooleanCustomFieldFilter | MonetaryCustomFieldFilter | MultiSelectCustomFieldFilter | SingleSelectCustomFieldFilter | TextArrayCustomFieldFilter | TextCustomFieldFilter>;
|
|
1819
1846
|
hasChangesSinceApprovalSent?: boolean;
|
|
1820
|
-
|
|
1821
|
-
level?: ApprovalReminderLevel;
|
|
1847
|
+
approvalStatuses?: Array<ApprovalDisplayStatus>;
|
|
1822
1848
|
isApprovalCancelled?: boolean;
|
|
1823
1849
|
};
|
|
1824
1850
|
export type InvoiceIndexCustomerResponse = {
|
|
@@ -2004,6 +2030,10 @@ export type InvoiceAlreadyFinalizedError = {
|
|
|
2004
2030
|
status: '409';
|
|
2005
2031
|
code: 'invoice_already_finalized';
|
|
2006
2032
|
};
|
|
2033
|
+
export type InvoiceFinalizationRequiresApprovalErrorMeta = {
|
|
2034
|
+
approvalStatus: InvoiceApprovalStatus | null;
|
|
2035
|
+
level: ApprovalReminderLevel | null;
|
|
2036
|
+
};
|
|
2007
2037
|
export type InvoiceFinalizationRequiresApprovalError = {
|
|
2008
2038
|
/**
|
|
2009
2039
|
* a human-readable explanation specific to this occurrence of the problem
|
|
@@ -2011,6 +2041,10 @@ export type InvoiceFinalizationRequiresApprovalError = {
|
|
|
2011
2041
|
detail?: string;
|
|
2012
2042
|
status: '409';
|
|
2013
2043
|
code: 'invoice_finalization_requires_approval';
|
|
2044
|
+
/**
|
|
2045
|
+
* a meta object containing non-standard meta-information about the error
|
|
2046
|
+
*/
|
|
2047
|
+
meta: InvoiceFinalizationRequiresApprovalErrorMeta;
|
|
2014
2048
|
};
|
|
2015
2049
|
export type CreditNoteFromDraftInvoiceError = {
|
|
2016
2050
|
/**
|
|
@@ -2149,8 +2183,7 @@ export type BulkSendInvoiceFilterQuery = {
|
|
|
2149
2183
|
isOutstanding?: boolean;
|
|
2150
2184
|
customFields?: Array<NumberCustomFieldFilter | DateCustomFieldFilter | TimestampCustomFieldFilter | BooleanCustomFieldFilter | MonetaryCustomFieldFilter | MultiSelectCustomFieldFilter | SingleSelectCustomFieldFilter | TextArrayCustomFieldFilter | TextCustomFieldFilter>;
|
|
2151
2185
|
hasChangesSinceApprovalSent?: boolean;
|
|
2152
|
-
|
|
2153
|
-
level?: ApprovalReminderLevel;
|
|
2186
|
+
approvalStatuses?: Array<ApprovalDisplayStatus>;
|
|
2154
2187
|
isApprovalCancelled?: boolean;
|
|
2155
2188
|
};
|
|
2156
2189
|
export type BulkActionMeta = {
|
|
@@ -2198,8 +2231,7 @@ export type PreviewBulkSendInvoiceFilterQuery = {
|
|
|
2198
2231
|
isOutstanding?: boolean;
|
|
2199
2232
|
customFields?: Array<NumberCustomFieldFilter | DateCustomFieldFilter | TimestampCustomFieldFilter | BooleanCustomFieldFilter | MonetaryCustomFieldFilter | MultiSelectCustomFieldFilter | SingleSelectCustomFieldFilter | TextArrayCustomFieldFilter | TextCustomFieldFilter>;
|
|
2200
2233
|
hasChangesSinceApprovalSent?: boolean;
|
|
2201
|
-
|
|
2202
|
-
level?: ApprovalReminderLevel;
|
|
2234
|
+
approvalStatuses?: Array<ApprovalDisplayStatus>;
|
|
2203
2235
|
isApprovalCancelled?: boolean;
|
|
2204
2236
|
};
|
|
2205
2237
|
export type PreviewBulkSendInvoiceResponse = {
|
|
@@ -2271,8 +2303,7 @@ export type PreviewBulkMarkInvoiceAsReadyFilterQuery = {
|
|
|
2271
2303
|
isOutstanding?: boolean;
|
|
2272
2304
|
customFields?: Array<NumberCustomFieldFilter | DateCustomFieldFilter | TimestampCustomFieldFilter | BooleanCustomFieldFilter | MonetaryCustomFieldFilter | MultiSelectCustomFieldFilter | SingleSelectCustomFieldFilter | TextArrayCustomFieldFilter | TextCustomFieldFilter>;
|
|
2273
2305
|
hasChangesSinceApprovalSent?: boolean;
|
|
2274
|
-
|
|
2275
|
-
level?: ApprovalReminderLevel;
|
|
2306
|
+
approvalStatuses?: Array<ApprovalDisplayStatus>;
|
|
2276
2307
|
isApprovalCancelled?: boolean;
|
|
2277
2308
|
};
|
|
2278
2309
|
export type PreviewBulkMarkInvoiceAsReadyResponse = {
|
|
@@ -2293,8 +2324,7 @@ export type BulkMarkInvoiceAsReadyFilterQuery = {
|
|
|
2293
2324
|
isOutstanding?: boolean;
|
|
2294
2325
|
customFields?: Array<NumberCustomFieldFilter | DateCustomFieldFilter | TimestampCustomFieldFilter | BooleanCustomFieldFilter | MonetaryCustomFieldFilter | MultiSelectCustomFieldFilter | SingleSelectCustomFieldFilter | TextArrayCustomFieldFilter | TextCustomFieldFilter>;
|
|
2295
2326
|
hasChangesSinceApprovalSent?: boolean;
|
|
2296
|
-
|
|
2297
|
-
level?: ApprovalReminderLevel;
|
|
2327
|
+
approvalStatuses?: Array<ApprovalDisplayStatus>;
|
|
2298
2328
|
isApprovalCancelled?: boolean;
|
|
2299
2329
|
};
|
|
2300
2330
|
export type BulkMarkInvoiceAsReadyResponse = {
|
|
@@ -2323,8 +2353,7 @@ export type PreviewBulkFinalizeInvoiceFilterQuery = {
|
|
|
2323
2353
|
isOutstanding?: boolean;
|
|
2324
2354
|
customFields?: Array<NumberCustomFieldFilter | DateCustomFieldFilter | TimestampCustomFieldFilter | BooleanCustomFieldFilter | MonetaryCustomFieldFilter | MultiSelectCustomFieldFilter | SingleSelectCustomFieldFilter | TextArrayCustomFieldFilter | TextCustomFieldFilter>;
|
|
2325
2355
|
hasChangesSinceApprovalSent?: boolean;
|
|
2326
|
-
|
|
2327
|
-
level?: ApprovalReminderLevel;
|
|
2356
|
+
approvalStatuses?: Array<ApprovalDisplayStatus>;
|
|
2328
2357
|
isApprovalCancelled?: boolean;
|
|
2329
2358
|
};
|
|
2330
2359
|
export type PreviewBulkFinalizeInvoiceResponse = {
|
|
@@ -2345,8 +2374,7 @@ export type BulkFinalizeInvoiceFilterQuery = {
|
|
|
2345
2374
|
isOutstanding?: boolean;
|
|
2346
2375
|
customFields?: Array<NumberCustomFieldFilter | DateCustomFieldFilter | TimestampCustomFieldFilter | BooleanCustomFieldFilter | MonetaryCustomFieldFilter | MultiSelectCustomFieldFilter | SingleSelectCustomFieldFilter | TextArrayCustomFieldFilter | TextCustomFieldFilter>;
|
|
2347
2376
|
hasChangesSinceApprovalSent?: boolean;
|
|
2348
|
-
|
|
2349
|
-
level?: ApprovalReminderLevel;
|
|
2377
|
+
approvalStatuses?: Array<ApprovalDisplayStatus>;
|
|
2350
2378
|
isApprovalCancelled?: boolean;
|
|
2351
2379
|
};
|
|
2352
2380
|
export type BulkFinalizeInvoiceResponse = {
|
|
@@ -2363,8 +2391,8 @@ export type ProFormaNotFoundError = {
|
|
|
2363
2391
|
};
|
|
2364
2392
|
export type ViewActivityLogIndexFilterQuery = {
|
|
2365
2393
|
entityUuids?: Array<string>;
|
|
2366
|
-
entityTypes?: Array<'customer' | 'invoice' | 'credit_note' | 'approval'>;
|
|
2367
|
-
roles?: Array<'actor' | 'customer' | 'invoice' | 'credit_note' | 'approval'>;
|
|
2394
|
+
entityTypes?: Array<'customer' | 'invoice' | 'credit_note' | 'approval' | 'api_key' | 'file'>;
|
|
2395
|
+
roles?: Array<'actor' | 'customer' | 'invoice' | 'credit_note' | 'approval' | 'attachment'>;
|
|
2368
2396
|
};
|
|
2369
2397
|
export type ViewActivityLogIndexQueryKey = {
|
|
2370
2398
|
createdAt: string;
|
|
@@ -2382,6 +2410,8 @@ export declare enum ActivityType {
|
|
|
2382
2410
|
INVOICE_REMINDER_SENT = "invoice-reminder-sent",
|
|
2383
2411
|
INVOICE_DUPLICATED = "invoice-duplicated",
|
|
2384
2412
|
INVOICE_MARKED_AS_READY = "invoice-marked-as-ready",
|
|
2413
|
+
INVOICE_MARKED_AS_PRIOR_APPROVAL_REQUIRED = "invoice-marked-as-prior-approval-required",
|
|
2414
|
+
INVOICE_UNMARKED_AS_PRIOR_APPROVAL_REQUIRED = "invoice-unmarked-as-prior-approval-required",
|
|
2385
2415
|
INVOICE_MARKED_AS_PAID = "invoice-marked-as-paid",
|
|
2386
2416
|
INVOICE_PAYMENT_CREATED = "invoice-payment-created",
|
|
2387
2417
|
INVOICE_PAYMENT_DELETED = "invoice-payment-deleted",
|
|
@@ -2391,6 +2421,8 @@ export declare enum ActivityType {
|
|
|
2391
2421
|
INVOICE_APPROVAL_CANCELLED = "invoice-approval-cancelled",
|
|
2392
2422
|
INVOICE_APPROVAL_EXPIRED = "invoice-approval-expired",
|
|
2393
2423
|
INVOICE_APPROVAL_REMINDER_SENT = "invoice-approval-reminder-sent",
|
|
2424
|
+
INVOICE_FINALIZATION_BLOCKED = "invoice-finalization-blocked",
|
|
2425
|
+
DUNNING_CASE_REMINDER_SENT = "dunning-case-reminder-sent",
|
|
2394
2426
|
CREDIT_NOTE_CREATED = "credit-note-created",
|
|
2395
2427
|
CREDIT_NOTE_UPDATED = "credit-note-updated",
|
|
2396
2428
|
CUSTOMER_UPDATED = "customer-updated"
|
|
@@ -2416,13 +2448,16 @@ export declare enum ActivityEntityRole {
|
|
|
2416
2448
|
CUSTOMER = "customer",
|
|
2417
2449
|
INVOICE = "invoice",
|
|
2418
2450
|
CREDIT_NOTE = "credit_note",
|
|
2419
|
-
APPROVAL = "approval"
|
|
2451
|
+
APPROVAL = "approval",
|
|
2452
|
+
ATTACHMENT = "attachment"
|
|
2420
2453
|
}
|
|
2421
2454
|
export declare enum ActivityEntityType {
|
|
2422
2455
|
CUSTOMER = "customer",
|
|
2423
2456
|
INVOICE = "invoice",
|
|
2424
2457
|
CREDIT_NOTE = "credit_note",
|
|
2425
|
-
APPROVAL = "approval"
|
|
2458
|
+
APPROVAL = "approval",
|
|
2459
|
+
API_KEY = "api_key",
|
|
2460
|
+
FILE = "file"
|
|
2426
2461
|
}
|
|
2427
2462
|
export type ActivityEntityResponse = {
|
|
2428
2463
|
role: ActivityEntityRole;
|
|
@@ -2686,6 +2721,7 @@ export type ViewDunningCaseDetailResponse = {
|
|
|
2686
2721
|
totalFee: MonetaryDto;
|
|
2687
2722
|
lastReminderSentAt: string | 'infinity' | '-infinity' | null;
|
|
2688
2723
|
canSendReminder: boolean;
|
|
2724
|
+
canRetryReminder: boolean;
|
|
2689
2725
|
latestCreatedReminder: ViewDunningCaseDetailReminderResponse | null;
|
|
2690
2726
|
blockedReason: DunningCaseBlockedReason | null;
|
|
2691
2727
|
};
|
|
@@ -2713,6 +2749,7 @@ export type DunningCaseIndexResponse = {
|
|
|
2713
2749
|
nextReminderOn: string | 'infinity' | '-infinity' | null;
|
|
2714
2750
|
lastReminderSentAt: string | 'infinity' | '-infinity' | null;
|
|
2715
2751
|
canSendReminder: boolean;
|
|
2752
|
+
canRetryReminder: boolean;
|
|
2716
2753
|
latestCreatedReminder: DunningCaseIndexReminderResponse | null;
|
|
2717
2754
|
blockedReason: DunningCaseBlockedReason | null;
|
|
2718
2755
|
};
|
|
@@ -2755,6 +2792,22 @@ export type DunningCaseReminderConfigNotFoundError = {
|
|
|
2755
2792
|
status: '409';
|
|
2756
2793
|
code: 'dunning_case_reminder_config_not_found';
|
|
2757
2794
|
};
|
|
2795
|
+
export type DunningCaseReminderNotFoundError = {
|
|
2796
|
+
/**
|
|
2797
|
+
* a human-readable explanation specific to this occurrence of the problem
|
|
2798
|
+
*/
|
|
2799
|
+
detail?: string;
|
|
2800
|
+
status: '404';
|
|
2801
|
+
code: 'dunning_case_reminder_not_found';
|
|
2802
|
+
};
|
|
2803
|
+
export type DunningCaseReminderNotRetryableError = {
|
|
2804
|
+
/**
|
|
2805
|
+
* a human-readable explanation specific to this occurrence of the problem
|
|
2806
|
+
*/
|
|
2807
|
+
detail?: string;
|
|
2808
|
+
status: '409';
|
|
2809
|
+
code: 'dunning_case_reminder_not_retryable';
|
|
2810
|
+
};
|
|
2758
2811
|
export type BulkSendDunningCaseReminderFilterQuery = {
|
|
2759
2812
|
isOpen?: boolean;
|
|
2760
2813
|
customerUuid?: string;
|
|
@@ -2867,6 +2920,14 @@ export type ApprovalAlreadySentError = {
|
|
|
2867
2920
|
status: '409';
|
|
2868
2921
|
code: 'approval_already_sent_error';
|
|
2869
2922
|
};
|
|
2923
|
+
export type CustomerHasNoApprovalEmailError = {
|
|
2924
|
+
/**
|
|
2925
|
+
* a human-readable explanation specific to this occurrence of the problem
|
|
2926
|
+
*/
|
|
2927
|
+
detail?: string;
|
|
2928
|
+
status: '409';
|
|
2929
|
+
code: 'customer_has_no_approval_email';
|
|
2930
|
+
};
|
|
2870
2931
|
export type PreviewBulkSendInvoiceApprovalFilterQuery = {
|
|
2871
2932
|
statuses?: Array<InvoiceStatus>;
|
|
2872
2933
|
lifecycleStatuses?: Array<InvoiceLifecycleStatus>;
|
|
@@ -2881,8 +2942,7 @@ export type PreviewBulkSendInvoiceApprovalFilterQuery = {
|
|
|
2881
2942
|
isOutstanding?: boolean;
|
|
2882
2943
|
customFields?: Array<NumberCustomFieldFilter | DateCustomFieldFilter | TimestampCustomFieldFilter | BooleanCustomFieldFilter | MonetaryCustomFieldFilter | MultiSelectCustomFieldFilter | SingleSelectCustomFieldFilter | TextArrayCustomFieldFilter | TextCustomFieldFilter>;
|
|
2883
2944
|
hasChangesSinceApprovalSent?: boolean;
|
|
2884
|
-
|
|
2885
|
-
level?: ApprovalReminderLevel;
|
|
2945
|
+
approvalStatuses?: Array<ApprovalDisplayStatus>;
|
|
2886
2946
|
isApprovalCancelled?: boolean;
|
|
2887
2947
|
};
|
|
2888
2948
|
export type PreviewBulkSendInvoiceApprovalResponse = {
|
|
@@ -2903,8 +2963,7 @@ export type BulkSendInvoiceApprovalFilterQuery = {
|
|
|
2903
2963
|
isOutstanding?: boolean;
|
|
2904
2964
|
customFields?: Array<NumberCustomFieldFilter | DateCustomFieldFilter | TimestampCustomFieldFilter | BooleanCustomFieldFilter | MonetaryCustomFieldFilter | MultiSelectCustomFieldFilter | SingleSelectCustomFieldFilter | TextArrayCustomFieldFilter | TextCustomFieldFilter>;
|
|
2905
2965
|
hasChangesSinceApprovalSent?: boolean;
|
|
2906
|
-
|
|
2907
|
-
level?: ApprovalReminderLevel;
|
|
2966
|
+
approvalStatuses?: Array<ApprovalDisplayStatus>;
|
|
2908
2967
|
isApprovalCancelled?: boolean;
|
|
2909
2968
|
};
|
|
2910
2969
|
export type BulkSendInvoiceApprovalResponse = {
|
|
@@ -2936,7 +2995,7 @@ export type MissingInvoiceApprovalFileError = {
|
|
|
2936
2995
|
code: 'missing_invoice_approval_file';
|
|
2937
2996
|
};
|
|
2938
2997
|
export type ApproveInvoiceApprovalCommand = {
|
|
2939
|
-
|
|
2998
|
+
fileUuids?: Array<string>;
|
|
2940
2999
|
remarks?: string | null;
|
|
2941
3000
|
};
|
|
2942
3001
|
export type MissingRejectionRemarksError = {
|
|
@@ -2950,6 +3009,7 @@ export type MissingRejectionRemarksError = {
|
|
|
2950
3009
|
export type RejectInvoiceApprovalCommand = {
|
|
2951
3010
|
remarks?: string | null;
|
|
2952
3011
|
reason: InvoiceApprovalRejectionReason;
|
|
3012
|
+
fileUuids?: Array<string>;
|
|
2953
3013
|
};
|
|
2954
3014
|
export type InvoiceApprovalAlreadyCancelledError = {
|
|
2955
3015
|
/**
|
|
@@ -4300,7 +4360,7 @@ export type UpdateCustomerV1Errors = {
|
|
|
4300
4360
|
};
|
|
4301
4361
|
409: {
|
|
4302
4362
|
traceId?: string | null;
|
|
4303
|
-
errors?: Array<VatNumberAlreadyInUseError | UpdateExternalCustomerError | VatNumberRequiredError>;
|
|
4363
|
+
errors?: Array<VatNumberAlreadyInUseError | UpdateExternalCustomerError | VatNumberRequiredError | ApprovalEmailRequiredError>;
|
|
4304
4364
|
};
|
|
4305
4365
|
500: {
|
|
4306
4366
|
traceId?: string | null;
|
|
@@ -5547,6 +5607,29 @@ export type SendDunningCaseReminderV1Errors = {
|
|
|
5547
5607
|
};
|
|
5548
5608
|
};
|
|
5549
5609
|
export type SendDunningCaseReminderV1Error = SendDunningCaseReminderV1Errors[keyof SendDunningCaseReminderV1Errors];
|
|
5610
|
+
export type RetryDunningCaseReminderV1Data = {
|
|
5611
|
+
body?: never;
|
|
5612
|
+
path: {
|
|
5613
|
+
uuid: string;
|
|
5614
|
+
};
|
|
5615
|
+
query?: never;
|
|
5616
|
+
url: '/api/v1/dunning-case-reminders/{uuid}/retry';
|
|
5617
|
+
};
|
|
5618
|
+
export type RetryDunningCaseReminderV1Errors = {
|
|
5619
|
+
404: {
|
|
5620
|
+
traceId?: string | null;
|
|
5621
|
+
errors?: Array<DunningCaseReminderNotFoundError>;
|
|
5622
|
+
};
|
|
5623
|
+
409: {
|
|
5624
|
+
traceId?: string | null;
|
|
5625
|
+
errors?: Array<DunningCaseReminderNotRetryableError>;
|
|
5626
|
+
};
|
|
5627
|
+
500: {
|
|
5628
|
+
traceId?: string | null;
|
|
5629
|
+
errors?: Array<InternalServerApiError>;
|
|
5630
|
+
};
|
|
5631
|
+
};
|
|
5632
|
+
export type RetryDunningCaseReminderV1Error = RetryDunningCaseReminderV1Errors[keyof RetryDunningCaseReminderV1Errors];
|
|
5550
5633
|
export type BulkSendDunningCaseReminderV1Data = {
|
|
5551
5634
|
body?: never;
|
|
5552
5635
|
path?: never;
|
|
@@ -5619,7 +5702,7 @@ export type SendInvoiceApprovalV1Errors = {
|
|
|
5619
5702
|
};
|
|
5620
5703
|
409: {
|
|
5621
5704
|
traceId?: string | null;
|
|
5622
|
-
errors?: Array<ApprovalRequiresEditableInvoiceError | ApprovalRequiresCustomerPriorApprovalError | ApprovalRequiresStandardInvoiceError | ApprovalAlreadySentError |
|
|
5705
|
+
errors?: Array<ApprovalRequiresEditableInvoiceError | ApprovalRequiresCustomerPriorApprovalError | ApprovalRequiresStandardInvoiceError | ApprovalAlreadySentError | CustomerHasNoApprovalEmailError>;
|
|
5623
5706
|
};
|
|
5624
5707
|
500: {
|
|
5625
5708
|
traceId?: string | null;
|
|
@@ -5713,7 +5796,7 @@ export type RejectInvoiceApprovalV1Errors = {
|
|
|
5713
5796
|
};
|
|
5714
5797
|
404: {
|
|
5715
5798
|
traceId?: string | null;
|
|
5716
|
-
errors?: Array<InvoiceApprovalNotFoundError>;
|
|
5799
|
+
errors?: Array<InvoiceApprovalNotFoundError | FileNotFoundError>;
|
|
5717
5800
|
};
|
|
5718
5801
|
409: {
|
|
5719
5802
|
traceId?: string | null;
|
|
@@ -5771,7 +5854,7 @@ export type RestartInvoiceApprovalV1Errors = {
|
|
|
5771
5854
|
};
|
|
5772
5855
|
409: {
|
|
5773
5856
|
traceId?: string | null;
|
|
5774
|
-
errors?: Array<ApprovalRequiresEditableInvoiceError | ApprovalRequiresCustomerPriorApprovalError | ApprovalRequiresStandardInvoiceError | ApprovalRestartRequiresActiveApprovalError>;
|
|
5857
|
+
errors?: Array<ApprovalRequiresEditableInvoiceError | ApprovalRequiresCustomerPriorApprovalError | ApprovalRequiresStandardInvoiceError | ApprovalRestartRequiresActiveApprovalError | CustomerHasNoApprovalEmailError>;
|
|
5775
5858
|
};
|
|
5776
5859
|
500: {
|
|
5777
5860
|
traceId?: string | null;
|