@wisemen/wise-invoicing-web 0.1.1 → 0.2.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 +151 -0
- package/dist/{BillingDocumentDetailViewDataProvider-f5goWm_i.js → BillingDocumentDetailViewDataProvider-DDdtlW-2.js} +1386 -1450
- package/dist/BillingDocumentDetailViewDataProvider.css +1 -1
- package/dist/{BillingDocumentPdf-5vi2pgRM.js → BillingDocumentPdf-ehdFB6mr.js} +4 -4
- package/dist/{CreditNoteDetailViewDataProvider-Byd1QvfY.js → CreditNoteDetailViewDataProvider-11a-JO3H.js} +201 -201
- package/dist/{CreditNotePdfViewDataProvider-DI4eQkpM.js → CreditNotePdfViewDataProvider-bfeaya3P.js} +3 -3
- package/dist/{CustomFieldValueText-BGbQwhON.js → CustomFieldValueText-CZQXGE5F.js} +81 -81
- package/dist/DataProvider-C3uEds9v.js +75 -0
- package/dist/{DunningCaseDetailViewDataProvider-DKuuysqS.js → DunningCaseDetailViewDataProvider-DC-ziMoO.js} +35 -35
- package/dist/{DunningCaseOverviewView-aWttPLrC.js → DunningCaseOverviewView-y_bCmi5j.js} +180 -180
- package/dist/{DunningCaseReminderPdfViewDataProvider-I0I_WQQB.js → DunningCaseReminderPdfViewDataProvider-DNODfED_.js} +22 -23
- package/dist/{DunningCaseSendDialog-DyvA5R1p.js → DunningCaseSendDialog-BPXcqit5.js} +82 -82
- package/dist/InvoiceApprovalOverviewView-DZ14mi4L.js +870 -0
- package/dist/InvoiceApprovalStatusBadge-U-dW2hR4.js +161 -0
- package/dist/InvoiceApproveDialog-2LXneG2r.js +308 -0
- package/dist/InvoiceDetailViewDataProvider-BYeaaQzL.js +2156 -0
- package/dist/InvoiceOverviewBulkSendApprovalDialog-99dfuN4i.js +318 -0
- package/dist/InvoiceOverviewViewDataProvider-CZIQeftL.js +1620 -0
- package/dist/{InvoicePdfView-C-7m2g3b.js → InvoicePdfView-BJRTg_TH.js} +2 -2
- package/dist/{InvoicePdfViewDataProvider-BPiK110e.js → InvoicePdfViewDataProvider-CwI_uGm3.js} +4 -4
- package/dist/InvoicePublicPdfViewDataProvider-uZUfsr5K.js +45 -0
- package/dist/InvoicingFileUploadProvider-D9Xk4rQM.js +94 -0
- package/dist/{IssuerSettingsViewDataProvider-COqHGUE6.js → IssuerSettingsViewDataProvider-CGRa8F-2.js} +4 -4
- package/dist/{ReminderSettingsViewDataProvider-Dys4bUU7.js → ReminderSettingsViewDataProvider-1ucp3z2T.js} +58 -58
- package/dist/{api.util-BCSgCfpS.js → api.util-C_kMGlJN.js} +1456 -846
- package/dist/{billingDocumentDetail.transformer-BBn9R_cx.js → billingDocumentDetail.transformer-Da6_-Hv9.js} +58 -59
- package/dist/client/index.d.ts +2 -2
- package/dist/client/sdk.gen.d.ts +18 -1
- package/dist/client/types.gen.d.ts +1059 -106
- package/dist/client/zod.gen.d.ts +32759 -16136
- package/dist/{creditNoteDetail.query-BcPsB96h.js → creditNoteDetail.query-DLR7L0Ep.js} +30 -30
- package/dist/{dist-BBjpqvUl.js → dist-CoztMdYH.js} +614 -614
- package/dist/{dist-D9lp7NDv.js → dist-Cxdm09Lp.js} +210 -98
- package/dist/{documentTitle.composable-4ApFl9TZ.js → documentTitle.composable-DsBbzhXN.js} +23 -15
- package/dist/{customFieldValue.util-BwsX8exl.js → download.util-B5Q7KUC9.js} +6 -6
- package/dist/{i18n.lib-C6eb-F-e.js → i18n.lib-Cvr8pcDw.js} +272 -8
- package/dist/index.d.ts +297 -31
- package/dist/index.js +344 -324
- package/dist/invoice.service-DEEA9mal.js +745 -0
- package/dist/invoiceApproval.service-DvL3LliM.js +72 -0
- package/dist/invoiceApprovalStatus.util-3Zh10Pj8.js +79 -0
- package/dist/invoiceDeliveryStatus.util-nCsqDypY.js +211 -0
- package/dist/{invoiceDetail.query-Cek8nyaw.js → invoiceDetail.query-CRoH_SgM.js} +1 -1
- package/dist/{invoicingConfig.composable-DTmad1fe.js → invoicingConfig.composable-rxjGK882.js} +2 -2
- package/dist/{issuerSettings.query-Bvz-Oj5D.js → issuerSettings.query-Dc5gsaEm.js} +5 -5
- package/dist/libs/i18n.lib.d.ts +270 -6
- package/dist/locales/en-US.json.d.ts +136 -4
- package/dist/locales/nl-BE.json.d.ts +136 -4
- package/dist/modules/dunning-case/models/dunningCase.transformer.d.ts +0 -1
- package/dist/modules/invoice/api/mutations/invoiceApproveApproval.mutation.d.ts +16 -0
- package/dist/modules/invoice/api/mutations/invoiceArchiveApproval.mutation.d.ts +6 -0
- package/dist/modules/invoice/api/mutations/invoiceBulkSendApproval.mutation.d.ts +5 -0
- package/dist/modules/invoice/api/mutations/invoiceMarkAsPriorApprovalRequired.mutation.d.ts +4 -0
- package/dist/modules/invoice/api/mutations/invoiceRejectApproval.mutation.d.ts +9 -0
- package/dist/modules/invoice/api/mutations/invoiceRestoreFromProForma.mutation.d.ts +4 -0
- package/dist/modules/invoice/api/mutations/invoiceSendApproval.mutation.d.ts +5 -0
- package/dist/modules/invoice/api/mutations/invoiceUnmarkAsPriorApprovalRequired.mutation.d.ts +4 -0
- package/dist/modules/invoice/api/services/invoice.service.d.ts +14 -1
- package/dist/modules/invoice/components/InvoiceApprovalOutOfSyncIndicator.vue.d.ts +3 -0
- package/dist/{ui/DisplayState.vue.d.ts → modules/invoice/components/InvoiceApprovalStatusBadge.vue.d.ts} +7 -10
- package/dist/modules/invoice/components/InvoiceApprovalStatusChip.vue.d.ts +16 -0
- package/dist/modules/invoice/models/invoice/approval/invoiceApprovalTransformers.spec.d.ts +1 -0
- package/dist/modules/invoice/models/invoice/approval/invoiceApprovalUuid.model.d.ts +3 -0
- package/dist/modules/invoice/models/invoice/approval/invoiceApprove.transformer.d.ts +5 -0
- package/dist/modules/invoice/models/invoice/approval/invoiceApproveForm.model.d.ts +13 -0
- package/dist/modules/invoice/models/invoice/approval/invoiceReject.transformer.d.ts +5 -0
- package/dist/modules/invoice/models/invoice/approval/invoiceRejectForm.model.d.ts +7 -0
- package/dist/modules/invoice/models/invoice/approval/invoiceRejectForm.model.spec.d.ts +1 -0
- package/dist/modules/invoice/models/invoice/detail/invoiceDetail.model.d.ts +13 -1
- package/dist/modules/invoice/models/invoice/detail/invoiceDetail.transformer.d.ts +1 -0
- package/dist/modules/invoice/models/invoice/index/invoiceIndex.model.d.ts +4 -0
- package/dist/modules/invoice/models/invoice/index/invoiceIndexQueryParams.model.d.ts +3 -0
- package/dist/modules/invoice/models/invoice/invoiceApproval.transformer.d.ts +7 -0
- package/dist/modules/invoice/models/invoice/invoiceApprovalStatus.model.d.ts +34 -0
- package/dist/modules/invoice/models/invoice/invoiceApprovalStatus.util.d.ts +10 -0
- package/dist/modules/invoice/models/invoice/invoiceApprovalStatus.util.spec.d.ts +1 -0
- package/dist/modules/invoice/use-cases/detail/components/InvoiceApprovalBanner.vue.d.ts +19 -0
- package/dist/modules/invoice/use-cases/detail/components/InvoiceDetailHeaderSection.vue.d.ts +4 -0
- package/dist/modules/invoice/use-cases/detail/composables/invoiceDetailHeaderActions.composable.d.ts +5 -0
- package/dist/modules/invoice/use-cases/detail/composables/invoiceDetailPaymentsTableColumns.composable.d.ts +1 -1
- package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceApprovalArchiveDialog.vue.d.ts +13 -0
- package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceApprovalRevertDialog.vue.d.ts +15 -0
- package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceApproveDialog.vue.d.ts +13 -0
- package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceFinalizeOutOfSyncDialog.vue.d.ts +21 -0
- package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceRejectDialog.vue.d.ts +13 -0
- package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewBulkActionBar.vue.d.ts +3 -0
- package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewTableApprovalCell.vue.d.ts +9 -0
- package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewDataTableFilters.composable.d.ts +3 -0
- package/dist/modules/invoice/use-cases/overview/dialogs/InvoiceOverviewBulkActionDialog.vue.d.ts +1 -0
- package/dist/modules/invoice/use-cases/overview/dialogs/InvoiceOverviewBulkSendApprovalDialog.vue.d.ts +12 -0
- package/dist/modules/invoice/use-cases/overview/utils/invoiceOverviewBulkActionFeedback.util.d.ts +2 -0
- package/dist/modules/invoice/use-cases/overview/views/InvoiceOverviewView.vue.d.ts +0 -5
- package/dist/modules/invoice-approval/actions/invoiceApproval.actions.d.ts +5 -0
- package/dist/modules/invoice-approval/actions/invoiceApprovalArchive.action.d.ts +1 -0
- package/dist/modules/invoice-approval/actions/invoiceApprovalMarkAsApproved.action.d.ts +1 -0
- package/dist/modules/invoice-approval/actions/invoiceApprovalReject.action.d.ts +1 -0
- package/dist/modules/invoice-approval/actions/invoiceApprovalSendRequest.action.d.ts +1 -0
- package/dist/modules/invoice-approval/actions/invoiceApprovalUnmarkAsNeedsApproval.action.d.ts +1 -0
- package/dist/modules/invoice-approval/api/mutations/approvalReminderConfigUpdate.mutation.d.ts +8 -0
- package/dist/modules/invoice-approval/api/queries/approvalReminderConfig.query.d.ts +1 -0
- package/dist/modules/invoice-approval/api/queries/invoiceApprovalIndex.query.d.ts +3 -0
- package/dist/modules/invoice-approval/api/query-keys/invoiceApproval.queryKeys.d.ts +15 -0
- package/dist/modules/invoice-approval/api/services/invoiceApproval.service.d.ts +10 -0
- package/dist/modules/invoice-approval/components/InvoiceApprovalReminderLevelIndicator.vue.d.ts +7 -0
- package/dist/modules/invoice-approval/models/approvalReminderConfig.transformer.d.ts +6 -0
- package/dist/modules/invoice-approval/models/approvalReminderConfigForm.model.d.ts +11 -0
- package/dist/modules/invoice-approval/models/approvalReminderConfigForm.spec.d.ts +1 -0
- package/dist/modules/invoice-approval/models/invoiceApprovalIndex.model.d.ts +21 -0
- package/dist/modules/invoice-approval/models/invoiceApprovalIndex.transformer.d.ts +5 -0
- package/dist/modules/invoice-approval/models/invoiceApprovalIndexQueryParams.model.d.ts +9 -0
- package/dist/modules/invoice-approval/models/invoiceApprovalIndexQueryParams.transformer.d.ts +6 -0
- package/dist/modules/invoice-approval/routes/invoiceApproval.routes.d.ts +24 -0
- package/dist/modules/invoice-approval/use-cases/overview/components/InvoiceApprovalOverviewActionsCell.vue.d.ts +7 -0
- package/dist/modules/invoice-approval/use-cases/overview/components/InvoiceApprovalOverviewAmountCell.vue.d.ts +7 -0
- package/dist/modules/invoice-approval/use-cases/overview/components/InvoiceApprovalOverviewInvoiceCell.vue.d.ts +7 -0
- package/dist/modules/invoice-approval/use-cases/overview/components/InvoiceApprovalOverviewMetrics.vue.d.ts +18 -0
- package/dist/modules/invoice-approval/use-cases/overview/components/InvoiceApprovalOverviewNextReminderCell.vue.d.ts +7 -0
- package/dist/modules/invoice-approval/use-cases/overview/components/InvoiceApprovalOverviewStatusCell.vue.d.ts +7 -0
- package/dist/modules/invoice-approval/use-cases/overview/composables/invoiceApprovalOverview.composable.d.ts +42 -0
- package/dist/modules/invoice-approval/use-cases/overview/composables/invoiceApprovalOverviewFilters.composable.d.ts +10 -0
- package/dist/modules/invoice-approval/use-cases/overview/composables/invoiceApprovalOverviewTableColumns.composable.d.ts +3 -0
- package/dist/modules/invoice-approval/use-cases/overview/views/InvoiceApprovalOverviewView.vue.d.ts +3 -0
- package/dist/modules/invoice-approval/use-cases/settings/views/ApprovalReminderSettingsView.vue.d.ts +7 -0
- package/dist/modules/invoice-approval/use-cases/settings/views/ApprovalReminderSettingsViewDataProvider.vue.d.ts +3 -0
- package/dist/modules/settings/routes/settings.routes.d.ts +7 -0
- package/dist/{plainDate.transformer-BxvJpJOv.js → plainDate.transformer-Bhiz9jW7.js} +17 -4
- package/dist/reminderConfig.query-snaHQmrY.js +309 -0
- package/dist/routes/invoicingRoutes.composable.d.ts +14 -6
- package/dist/search.composable-CU9OpyUB.js +52 -0
- package/dist/{src-BFgnUugN.js → src-DUSgQTKr.js} +45 -45
- package/dist/style.css +1 -1
- package/dist/types/queryKey.type.d.ts +3 -2
- package/dist/utils/html.util.d.ts +4 -0
- package/package.json +2 -1
- package/dist/AddOpenBoundaryIcon-9SqBHfoz.js +0 -25
- package/dist/AirlineIcon-Z6sH_StM.js +0 -26
- package/dist/AirplaneIcon-C-nSkD1w.js +0 -19
- package/dist/AirportIcon-m4itDKCV.js +0 -16
- package/dist/AlertTriangleIcon-DtYLCC-Y.js +0 -23
- package/dist/AllocationsIcon-hcg93Sll.js +0 -16
- package/dist/ArrowNarrowRightIcon-2-Sml68f.js +0 -23
- package/dist/AssetIcon-qOYs6Wna.js +0 -16
- package/dist/BarChartIcon-DDyzpV_3.js +0 -22
- package/dist/BellIcon-DF1OBFta.js +0 -21
- package/dist/BuildingIcon-CC5PMNeP.js +0 -22
- package/dist/ChargerIcon-aM_endLr.js +0 -16
- package/dist/ChevronDownIcon-4QiK-Z6-.js +0 -23
- package/dist/ChevronUpIcon-qBsjZ5Dz.js +0 -23
- package/dist/ClockIcon-BNiPCaiB.js +0 -23
- package/dist/ClockSnoozeIcon-BxGfwJB6.js +0 -23
- package/dist/CopyIcon-DH5ly0dZ.js +0 -19
- package/dist/DataProvider-Dj34ljUX.js +0 -75
- package/dist/DownloadCloudIcon-Cf8ftklG.js +0 -22
- package/dist/EditIcon-Dr7OHBBR.js +0 -21
- package/dist/EraserIcon-B1VJSvdI.js +0 -23
- package/dist/FileIcon-ssmQI5Yl.js +0 -23
- package/dist/FilterLinesIcon-C7YdyPBk.js +0 -23
- package/dist/GlobeIcon-BfRM6Ike.js +0 -22
- package/dist/HelpIcon-BrJ49P5y.js +0 -22
- package/dist/HourGlassIcon-D9rfU1Is.js +0 -22
- package/dist/InfoCircleIcon-Ee0SyiMc.js +0 -23
- package/dist/InvoiceDetailViewDataProvider-BU6jZfD7.js +0 -1670
- package/dist/InvoiceOverviewViewDataProvider-i8tXATJE.js +0 -1677
- package/dist/InvoicePublicPdfViewDataProvider-BJe-8hC5.js +0 -45
- package/dist/KeyboardIcon-T3o_g-1c.js +0 -22
- package/dist/LinkExternalIcon-BkHS4fCx.js +0 -22
- package/dist/LinkIcon-DuPwae98.js +0 -22
- package/dist/MarkerIcon-B1Jqenjb.js +0 -28
- package/dist/MobileBatteryIcon-GZ1SMRDV.js +0 -16
- package/dist/MonitorIcon-pbK22reU.js +0 -22
- package/dist/NotificationIcon-Ctv8vyWt.js +0 -19
- package/dist/ParkingIcon-DnUPW3pB.js +0 -24
- package/dist/PlanningIcon-CXvrskgj.js +0 -16
- package/dist/PreferenceIcon-BHS8uDyi.js +0 -22
- package/dist/ReceiptCheckIcon-QTestqCJ.js +0 -23
- package/dist/RefreshIcon-DShY-aoS.js +0 -22
- package/dist/RemoveOpenBoundaryIcon-CN8YWs6o.js +0 -28
- package/dist/RewindIcon-GWg2AQax.js +0 -22
- package/dist/SettingsIcon-CBLJ6B5u.js +0 -25
- package/dist/ShieldIcon-CVnrOcxl.js +0 -19
- package/dist/ShieldOffIcon-B9l0dDVb.js +0 -23
- package/dist/SignOutIcon-CmDkjJ5F.js +0 -21
- package/dist/SlashCircleIcon-jY5FBko5.js +0 -22
- package/dist/StandIcon-CoYnBLMn.js +0 -23
- package/dist/StarsIcon-D7ZlqOW7.js +0 -22
- package/dist/StopwatchIcon-BK0vh1lg.js +0 -22
- package/dist/TargetIcon-HMWj77-Q.js +0 -22
- package/dist/ThreeDotsIcon-BtFruOKz.js +0 -32
- package/dist/ToolIcon-DRfDb7fE.js +0 -22
- package/dist/TrashIcon-BwxBjHv5.js +0 -19
- package/dist/TurnaroundIcon-b1X61TwZ.js +0 -27
- package/dist/UploadCloudIcon-BF0equKg.js +0 -22
- package/dist/UserIcon-B0rCC6KE.js +0 -22
- package/dist/UsersIcon-cK5l_zKG.js +0 -22
- package/dist/VerifiedIcon-CELYlqcv.js +0 -22
- package/dist/WifiIcon--JPvMNEF.js +0 -23
- package/dist/WifiOffIcon-BS2KftcP.js +0 -23
- package/dist/ZapIcon-BHwcIQc0.js +0 -23
- package/dist/ZoomInIcon-Cu6r915V.js +0 -23
- package/dist/ZoomOutIcon-DwB4FRj-.js +0 -23
- package/dist/_plugin-vue_export-helper-B3ysoDQm.js +0 -8
- package/dist/instant.transformer-KmBsH3E9.js +0 -18
- package/dist/invoice.service-Bb8VqQvc.js +0 -635
- package/dist/invoiceDeliveryStatus.util-BPkGCQM6.js +0 -331
- package/dist/reminderConfig.query-DsJNqqi7.js +0 -331
- package/dist/search.composable-BCtYqudV.js +0 -52
|
@@ -3,6 +3,11 @@ export type ClientOptions = {
|
|
|
3
3
|
};
|
|
4
4
|
export declare enum Permission {
|
|
5
5
|
ALL_PERMISSIONS = "all_permissions",
|
|
6
|
+
API_KEY_CREATE = "api-key.create",
|
|
7
|
+
API_KEY_READ = "api-key.read",
|
|
8
|
+
API_KEY_READ_OWN = "api-key.read-own",
|
|
9
|
+
API_KEY_DELETE = "api-key.delete",
|
|
10
|
+
API_KEY_DELETE_OWN = "api-key.delete-own",
|
|
6
11
|
CUSTOM_FIELD_DEFINITION_READ = "custom-field-definition.read",
|
|
7
12
|
CUSTOMER_CREATE = "customer.create",
|
|
8
13
|
CUSTOMER_READ = "customer.read",
|
|
@@ -11,6 +16,12 @@ export declare enum Permission {
|
|
|
11
16
|
CUSTOMER_REACTIVATE = "customer.reactivate",
|
|
12
17
|
DUNNING_CASE_READ = "dunning-case.read",
|
|
13
18
|
DUNNING_CASE_SEND = "dunning-case.send",
|
|
19
|
+
INVOICE_APPROVAL_APPROVE = "invoice-approval.approve",
|
|
20
|
+
INVOICE_APPROVAL_CANCEL = "invoice-approval.cancel",
|
|
21
|
+
INVOICE_APPROVAL_READ = "invoice-approval.read",
|
|
22
|
+
INVOICE_APPROVAL_REJECT = "invoice-approval.reject",
|
|
23
|
+
INVOICE_APPROVAL_RESTART = "invoice-approval.restart",
|
|
24
|
+
INVOICE_APPROVAL_SEND = "invoice-approval.send",
|
|
14
25
|
INVOICE_CREATE = "invoice.create",
|
|
15
26
|
INVOICE_DELETE = "invoice.delete",
|
|
16
27
|
INVOICE_READ = "invoice.read",
|
|
@@ -73,6 +84,71 @@ export type ViewPermissionIndexGroupResponse = {
|
|
|
73
84
|
export type ViewPermissionIndexResponse = {
|
|
74
85
|
groups: Array<ViewPermissionIndexGroupResponse>;
|
|
75
86
|
};
|
|
87
|
+
export type ApiKeyInvalidPermissionsError = {
|
|
88
|
+
/**
|
|
89
|
+
* a human-readable explanation specific to this occurrence of the problem
|
|
90
|
+
*/
|
|
91
|
+
detail?: string;
|
|
92
|
+
status: '400';
|
|
93
|
+
code: 'api_key_invalid_permissions';
|
|
94
|
+
};
|
|
95
|
+
export type ApiKeyInvalidExpiresAtError = {
|
|
96
|
+
/**
|
|
97
|
+
* a human-readable explanation specific to this occurrence of the problem
|
|
98
|
+
*/
|
|
99
|
+
detail?: string;
|
|
100
|
+
status: '400';
|
|
101
|
+
code: 'api_key_invalid_expires_at';
|
|
102
|
+
};
|
|
103
|
+
export type CreateApiKeyCommand = {
|
|
104
|
+
name: string;
|
|
105
|
+
permissions: Array<Permission>;
|
|
106
|
+
expiresAt?: string | null;
|
|
107
|
+
};
|
|
108
|
+
export type CreateApiKeyResponse = {
|
|
109
|
+
uuid: string;
|
|
110
|
+
name: string;
|
|
111
|
+
permissions: Array<Permission>;
|
|
112
|
+
userUuid: string;
|
|
113
|
+
userEmail: string | null;
|
|
114
|
+
maskedKey: string;
|
|
115
|
+
expiresAt: string | null;
|
|
116
|
+
createdAt: string;
|
|
117
|
+
apiKey: string;
|
|
118
|
+
};
|
|
119
|
+
export type ApiKeyNotFoundError = {
|
|
120
|
+
/**
|
|
121
|
+
* a human-readable explanation specific to this occurrence of the problem
|
|
122
|
+
*/
|
|
123
|
+
detail?: string;
|
|
124
|
+
status: '404';
|
|
125
|
+
code: 'api_key_not_found';
|
|
126
|
+
};
|
|
127
|
+
export type ViewApiKeyIndexQueryKey = {
|
|
128
|
+
createdAt: string;
|
|
129
|
+
uuid: string;
|
|
130
|
+
};
|
|
131
|
+
export type ViewApiKeyIndexPaginationQuery = {
|
|
132
|
+
limit?: number;
|
|
133
|
+
key?: ViewApiKeyIndexQueryKey | null;
|
|
134
|
+
};
|
|
135
|
+
export type ViewApiKeyIndexItemResponse = {
|
|
136
|
+
uuid: string;
|
|
137
|
+
name: string;
|
|
138
|
+
permissions: Array<Permission>;
|
|
139
|
+
userUuid: string;
|
|
140
|
+
userEmail: string | null;
|
|
141
|
+
maskedKey: string;
|
|
142
|
+
expiresAt: string | null;
|
|
143
|
+
createdAt: string;
|
|
144
|
+
};
|
|
145
|
+
export type ViewApiKeyIndexResponseMeta = {
|
|
146
|
+
next: ViewApiKeyIndexQueryKey | null;
|
|
147
|
+
};
|
|
148
|
+
export type ViewApiKeyIndexResponse = {
|
|
149
|
+
items: Array<ViewApiKeyIndexItemResponse>;
|
|
150
|
+
meta: ViewApiKeyIndexResponseMeta;
|
|
151
|
+
};
|
|
76
152
|
export type GetApiInfoResponse = {
|
|
77
153
|
environment: string;
|
|
78
154
|
/**
|
|
@@ -305,6 +381,8 @@ export type SendPushNotificationCommand = {
|
|
|
305
381
|
userUuids: Array<string>;
|
|
306
382
|
};
|
|
307
383
|
export declare enum SubjectType {
|
|
384
|
+
API_KEY = "api-key",
|
|
385
|
+
APPROVAL_REMINDER = "approval-reminder",
|
|
308
386
|
CONTACT = "contact",
|
|
309
387
|
CUSTOMER = "customer",
|
|
310
388
|
FILE = "file",
|
|
@@ -314,6 +392,8 @@ export declare enum SubjectType {
|
|
|
314
392
|
RECIPIENT = "recipient",
|
|
315
393
|
ISSUER = "issuer",
|
|
316
394
|
INVOICE = "invoice",
|
|
395
|
+
INVOICE_APPROVAL = "invoice-approval",
|
|
396
|
+
PRO_FORMA = "pro-forma",
|
|
317
397
|
DUNNING_CASE = "dunning-case"
|
|
318
398
|
}
|
|
319
399
|
export type ViewDomainEventLogIndexFilterQuery = {
|
|
@@ -330,12 +410,15 @@ export type ViewDomainEventLogIndexPaginationQuery = {
|
|
|
330
410
|
key?: ViewDomainEventLogIndexQueryKey | null;
|
|
331
411
|
};
|
|
332
412
|
export declare enum DomainEventType {
|
|
413
|
+
API_KEY_CREATED = "api-key.created",
|
|
414
|
+
API_KEY_DELETED = "api-key.deleted",
|
|
415
|
+
APPROVAL_REMINDER_SENT = "approval-reminder.sent",
|
|
333
416
|
CREDIT_NOTE_CREATED = "credit-note.created",
|
|
334
417
|
CREDIT_NOTE_UPDATED = "credit-note.updated",
|
|
335
418
|
CREDIT_NOTE_FINALIZED = "credit-note.finalized",
|
|
336
419
|
CREDIT_NOTE_INVOICE_LINES_UPDATED = "credit-note.invoice-lines.updated",
|
|
337
420
|
CREDIT_NOTE_DELETED = "credit-note.deleted",
|
|
338
|
-
|
|
421
|
+
CREDIT_NOTE_EMAIL_SENT = "credit-note.email-sent",
|
|
339
422
|
CUSTOMER_CREATED = "customer.created",
|
|
340
423
|
CUSTOMER_UPDATED = "customer.updated",
|
|
341
424
|
CUSTOMER_SYNCED = "customer.synced",
|
|
@@ -345,23 +428,34 @@ export declare enum DomainEventType {
|
|
|
345
428
|
FILE_UPLOADED = "file.uploaded",
|
|
346
429
|
ISSUER_UPDATED = "issuer.updated",
|
|
347
430
|
ISSUER_CREATED = "issuer.created",
|
|
348
|
-
|
|
349
|
-
|
|
431
|
+
INVOICE_APPROVAL_APPROVED = "invoice-approval.approved",
|
|
432
|
+
INVOICE_APPROVAL_CANCELLED = "invoice-approval.cancelled",
|
|
433
|
+
INVOICE_APPROVAL_CREATED = "invoice-approval.created",
|
|
434
|
+
INVOICE_APPROVAL_EXPIRED = "invoice-approval.expired",
|
|
435
|
+
INVOICE_APPROVAL_REJECTED = "invoice-approval.rejected",
|
|
436
|
+
INVOICE_APPROVAL_SENT = "invoice-approval.sent",
|
|
350
437
|
INVOICE_ATTACHMENTS_UPDATED = "invoice.attachments.updated",
|
|
438
|
+
INVOICE_CREATED = "invoice.created",
|
|
439
|
+
INVOICE_DELETED = "invoice.deleted",
|
|
351
440
|
INVOICE_DISCOUNT_APPLIED = "invoice.discount.applied",
|
|
441
|
+
INVOICE_DISPUTED_WITHDRAWN = "invoice.disputed-withdrawn",
|
|
442
|
+
INVOICE_DUPLICATED = "invoice.duplicated",
|
|
443
|
+
INVOICE_EMAIL_SENT = "invoice.email-sent",
|
|
352
444
|
INVOICE_FINALIZED = "invoice.finalized",
|
|
353
|
-
|
|
354
|
-
INVOICE_SENT_EMAIL = "invoice.sent-email",
|
|
355
|
-
INVOICE_MARKED_AS_READY = "invoice.marked-as-ready",
|
|
445
|
+
INVOICE_MARKED_AS_DISPUTED = "invoice.marked-as-disputed",
|
|
356
446
|
INVOICE_MARKED_AS_DRAFT = "invoice.marked-as-draft",
|
|
357
447
|
INVOICE_MARKED_AS_OVERDUE = "invoice.marked-as-overdue",
|
|
358
|
-
INVOICE_DELETED = "invoice.deleted",
|
|
359
|
-
INVOICE_DUPLICATED = "invoice.duplicated",
|
|
360
|
-
INVOICE_MARKED_AS_DISPUTED = "invoice.marked-as-disputed",
|
|
361
448
|
INVOICE_MARKED_AS_PAID = "invoice.marked-as-paid",
|
|
362
|
-
|
|
449
|
+
INVOICE_MARKED_AS_PRIOR_APPROVAL_REQUIRED = "invoice.marked-as-prior-approval-required",
|
|
450
|
+
INVOICE_MARKED_AS_READY = "invoice.marked-as-ready",
|
|
451
|
+
INVOICE_PDF_GENERATED = "invoice.pdf.generated",
|
|
452
|
+
INVOICE_RESTORED_FROM_PRO_FORMA = "invoice.restored-from-pro-forma",
|
|
453
|
+
INVOICE_UNMARKED_AS_PRIOR_APPROVAL_REQUIRED = "invoice.unmarked-as-prior-approval-required",
|
|
454
|
+
INVOICE_UPDATED = "invoice.updated",
|
|
363
455
|
PAYMENT_CREATED = "payment.created",
|
|
364
456
|
PAYMENT_DELETED = "payment.deleted",
|
|
457
|
+
PRO_FORMA_CREATED = "pro-forma.created",
|
|
458
|
+
PRO_FORMA_PDF_GENERATED = "pro-forma.pdf.generated",
|
|
365
459
|
NOTIFICATION_CREATED = "notification.created",
|
|
366
460
|
NOTIFICATION_READ = "notification.read",
|
|
367
461
|
NOTIFICATION_READ_ALL = "notification.read.all",
|
|
@@ -385,6 +479,7 @@ export declare enum DomainEventType {
|
|
|
385
479
|
RECIPIENT_UPDATED = "recipient.updated",
|
|
386
480
|
RECIPIENT_DEFAULT_SET = "recipient.default-set",
|
|
387
481
|
RECIPIENT_DELETED = "recipient.deleted",
|
|
482
|
+
APPROVAL_REMINDER_CONFIG_UPDATED = "approval-reminder-config.updated",
|
|
388
483
|
REMINDER_CONFIG_UPDATED = "reminder-config.updated",
|
|
389
484
|
DUNNING_CASE_SYNCED = "dunning-case.synced",
|
|
390
485
|
DUNNING_CASE_CLOSED = "dunning-case.closed",
|
|
@@ -1016,6 +1111,7 @@ export type CreateCustomerCommand = {
|
|
|
1016
1111
|
vatNumber: string | null;
|
|
1017
1112
|
type: CustomerType;
|
|
1018
1113
|
locale: Locale;
|
|
1114
|
+
requiresPriorApproval?: boolean;
|
|
1019
1115
|
};
|
|
1020
1116
|
export type CreateCustomerResponse = {
|
|
1021
1117
|
uuid: string;
|
|
@@ -1079,6 +1175,7 @@ export type ViewCustomerDetailResponse = {
|
|
|
1079
1175
|
currency: Currency;
|
|
1080
1176
|
isDeactivated: boolean;
|
|
1081
1177
|
defaultPaymentTerm: DurationDto;
|
|
1178
|
+
requiresPriorApproval: boolean;
|
|
1082
1179
|
};
|
|
1083
1180
|
export type ViewCustomerIndexFilterQuery = {
|
|
1084
1181
|
isDeactivated?: boolean;
|
|
@@ -1141,6 +1238,7 @@ export type UpdateCustomerCommand = {
|
|
|
1141
1238
|
*/
|
|
1142
1239
|
currency: Currency;
|
|
1143
1240
|
defaultPaymentTerm?: DurationDto;
|
|
1241
|
+
requiresPriorApproval?: boolean;
|
|
1144
1242
|
};
|
|
1145
1243
|
export type CreateRecipientCommand = {
|
|
1146
1244
|
customerUuid: string;
|
|
@@ -1215,6 +1313,7 @@ export type ViewMyIssuerResponse = {
|
|
|
1215
1313
|
currency: Currency;
|
|
1216
1314
|
sequencePrefix: string | null;
|
|
1217
1315
|
defaultPaymentTerm: DurationDto;
|
|
1316
|
+
requiresInvoiceApprovalFile: boolean;
|
|
1218
1317
|
};
|
|
1219
1318
|
export type UpdateMyIssuerCommand = {
|
|
1220
1319
|
email: string | null;
|
|
@@ -1549,6 +1648,33 @@ export type ViewInvoiceDetailReminderConfigResponse = {
|
|
|
1549
1648
|
schedule: ReminderSchedule;
|
|
1550
1649
|
offsetDays: number;
|
|
1551
1650
|
};
|
|
1651
|
+
export declare enum InvoiceApprovalStatus {
|
|
1652
|
+
APPROVED = "approved",
|
|
1653
|
+
REJECTED = "rejected",
|
|
1654
|
+
REQUESTED = "requested",
|
|
1655
|
+
EXPIRED = "expired"
|
|
1656
|
+
}
|
|
1657
|
+
export declare enum InvoiceApprovalRejectionReason {
|
|
1658
|
+
INCORRECT_PRICE = "incorrect_price",
|
|
1659
|
+
INCORRECT_QUANTITY = "incorrect_quantity",
|
|
1660
|
+
INCORRECT_CUSTOMER_OR_REFERENCE_DATA = "incorrect_customer_or_reference_data",
|
|
1661
|
+
WORK_NOT_FULLY_DELIVERED = "work_not_fully_delivered",
|
|
1662
|
+
MISSING_OR_INCORRECT_ATTACHMENT = "missing_or_incorrect_attachment",
|
|
1663
|
+
MISSING_OR_INCORRECT_PO_REFERENCE = "missing_or_incorrect_po_reference",
|
|
1664
|
+
OTHER = "other"
|
|
1665
|
+
}
|
|
1666
|
+
export type ViewInvoiceDetailApprovalResponse = {
|
|
1667
|
+
uuid: string;
|
|
1668
|
+
sentAt: string | null;
|
|
1669
|
+
status: InvoiceApprovalStatus;
|
|
1670
|
+
answeredAt: string | null;
|
|
1671
|
+
customerRemark: string | null;
|
|
1672
|
+
proFormaFile: FileResponse | null;
|
|
1673
|
+
approvalFile: FileResponse | null;
|
|
1674
|
+
isActive: boolean;
|
|
1675
|
+
remarks: string | null;
|
|
1676
|
+
rejectionReason: InvoiceApprovalRejectionReason | null;
|
|
1677
|
+
};
|
|
1552
1678
|
export type ViewInvoiceDetailResponse = {
|
|
1553
1679
|
uuid: string;
|
|
1554
1680
|
sequence: string | null;
|
|
@@ -1601,6 +1727,9 @@ export type ViewInvoiceDetailResponse = {
|
|
|
1601
1727
|
isOverdue: boolean;
|
|
1602
1728
|
reminders: Array<ViewInvoiceDetailReminderResponse>;
|
|
1603
1729
|
reminderConfigs: Array<ViewInvoiceDetailReminderConfigResponse>;
|
|
1730
|
+
requiresPriorApproval: boolean;
|
|
1731
|
+
approval: Array<ViewInvoiceDetailApprovalResponse>;
|
|
1732
|
+
hasChangesSinceApprovalSent: boolean;
|
|
1604
1733
|
};
|
|
1605
1734
|
export declare enum ViewInvoiceIndexSortQueryKey {
|
|
1606
1735
|
CREATED_AT = "created_at",
|
|
@@ -1659,8 +1788,8 @@ export type TextCustomFieldFilter = {
|
|
|
1659
1788
|
value: string;
|
|
1660
1789
|
};
|
|
1661
1790
|
export type DateRangeDto = {
|
|
1662
|
-
startDate: string;
|
|
1663
|
-
endDate: string;
|
|
1791
|
+
startDate: string | 'infinity' | '-infinity';
|
|
1792
|
+
endDate: string | 'infinity' | '-infinity';
|
|
1664
1793
|
};
|
|
1665
1794
|
export declare enum FilterScopeApiProperty {
|
|
1666
1795
|
INCLUDE = "include",
|
|
@@ -1670,6 +1799,10 @@ export type ScopedUuidFilter = {
|
|
|
1670
1799
|
scope: FilterScopeApiProperty;
|
|
1671
1800
|
values: Array<string>;
|
|
1672
1801
|
};
|
|
1802
|
+
export declare enum ApprovalReminderLevel {
|
|
1803
|
+
_1 = 1,
|
|
1804
|
+
_2 = 2
|
|
1805
|
+
}
|
|
1673
1806
|
export type ViewInvoiceIndexFilterQuery = {
|
|
1674
1807
|
statuses?: Array<InvoiceStatus>;
|
|
1675
1808
|
lifecycleStatuses?: Array<InvoiceLifecycleStatus>;
|
|
@@ -1683,12 +1816,22 @@ export type ViewInvoiceIndexFilterQuery = {
|
|
|
1683
1816
|
customerExternalIds?: Array<string>;
|
|
1684
1817
|
isOutstanding?: boolean;
|
|
1685
1818
|
customFields?: Array<NumberCustomFieldFilter | DateCustomFieldFilter | TimestampCustomFieldFilter | BooleanCustomFieldFilter | MonetaryCustomFieldFilter | MultiSelectCustomFieldFilter | SingleSelectCustomFieldFilter | TextArrayCustomFieldFilter | TextCustomFieldFilter>;
|
|
1819
|
+
hasChangesSinceApprovalSent?: boolean;
|
|
1820
|
+
approvalStatus?: InvoiceApprovalStatus;
|
|
1821
|
+
level?: ApprovalReminderLevel;
|
|
1822
|
+
isApprovalCancelled?: boolean;
|
|
1686
1823
|
};
|
|
1687
1824
|
export type InvoiceIndexCustomerResponse = {
|
|
1688
1825
|
uuid: string;
|
|
1689
1826
|
externalId: string | null;
|
|
1690
1827
|
name: string;
|
|
1691
1828
|
};
|
|
1829
|
+
export type InvoiceIndexApprovalResponse = {
|
|
1830
|
+
status: InvoiceApprovalStatus;
|
|
1831
|
+
level: ApprovalReminderLevel | null;
|
|
1832
|
+
sentAt: string | null;
|
|
1833
|
+
reminderSentAt: string | null;
|
|
1834
|
+
};
|
|
1692
1835
|
export type InvoiceIndexResponse = {
|
|
1693
1836
|
uuid: string;
|
|
1694
1837
|
type: InvoiceType;
|
|
@@ -1710,6 +1853,9 @@ export type InvoiceIndexResponse = {
|
|
|
1710
1853
|
isOverdue: boolean;
|
|
1711
1854
|
deliveryStatus: InvoiceDeliveryStatus;
|
|
1712
1855
|
customFields: Array<TextCustomFieldValueDto | TextArrayCustomFieldValueDto | NumberCustomFieldValueDto | BooleanCustomFieldValueDto | DateCustomFieldValueDto | TimestampCustomFieldValueDto | SingleSelectCustomFieldValueDto | MultiSelectCustomFieldValueDto | MonetaryCustomFieldValueDto>;
|
|
1856
|
+
requiresPriorApproval: boolean;
|
|
1857
|
+
hasChangesSinceApprovalSent: boolean;
|
|
1858
|
+
approval: InvoiceIndexApprovalResponse | null;
|
|
1713
1859
|
};
|
|
1714
1860
|
export type ViewInvoiceIndexResponse = {
|
|
1715
1861
|
/**
|
|
@@ -1734,6 +1880,14 @@ export type CustomFieldValueValidationError = {
|
|
|
1734
1880
|
status: '400';
|
|
1735
1881
|
code: 'custom_field_value_validation';
|
|
1736
1882
|
};
|
|
1883
|
+
export type CanNotChangeInvoiceCustomerWithApprovalCreatedError = {
|
|
1884
|
+
/**
|
|
1885
|
+
* a human-readable explanation specific to this occurrence of the problem
|
|
1886
|
+
*/
|
|
1887
|
+
detail?: string;
|
|
1888
|
+
status: '409';
|
|
1889
|
+
code: 'can_not_change_invoice_customer_with_approval_created';
|
|
1890
|
+
};
|
|
1737
1891
|
export type UpdateInvoiceCommand = {
|
|
1738
1892
|
issuedOn: string;
|
|
1739
1893
|
deliveredOn: string | null;
|
|
@@ -1850,6 +2004,14 @@ export type InvoiceAlreadyFinalizedError = {
|
|
|
1850
2004
|
status: '409';
|
|
1851
2005
|
code: 'invoice_already_finalized';
|
|
1852
2006
|
};
|
|
2007
|
+
export type InvoiceFinalizationRequiresApprovalError = {
|
|
2008
|
+
/**
|
|
2009
|
+
* a human-readable explanation specific to this occurrence of the problem
|
|
2010
|
+
*/
|
|
2011
|
+
detail?: string;
|
|
2012
|
+
status: '409';
|
|
2013
|
+
code: 'invoice_finalization_requires_approval';
|
|
2014
|
+
};
|
|
1853
2015
|
export type CreditNoteFromDraftInvoiceError = {
|
|
1854
2016
|
/**
|
|
1855
2017
|
* a human-readable explanation specific to this occurrence of the problem
|
|
@@ -1986,6 +2148,10 @@ export type BulkSendInvoiceFilterQuery = {
|
|
|
1986
2148
|
customerExternalIds?: Array<string>;
|
|
1987
2149
|
isOutstanding?: boolean;
|
|
1988
2150
|
customFields?: Array<NumberCustomFieldFilter | DateCustomFieldFilter | TimestampCustomFieldFilter | BooleanCustomFieldFilter | MonetaryCustomFieldFilter | MultiSelectCustomFieldFilter | SingleSelectCustomFieldFilter | TextArrayCustomFieldFilter | TextCustomFieldFilter>;
|
|
2151
|
+
hasChangesSinceApprovalSent?: boolean;
|
|
2152
|
+
approvalStatus?: InvoiceApprovalStatus;
|
|
2153
|
+
level?: ApprovalReminderLevel;
|
|
2154
|
+
isApprovalCancelled?: boolean;
|
|
1989
2155
|
};
|
|
1990
2156
|
export type BulkActionMeta = {
|
|
1991
2157
|
total: number;
|
|
@@ -2031,6 +2197,10 @@ export type PreviewBulkSendInvoiceFilterQuery = {
|
|
|
2031
2197
|
customerExternalIds?: Array<string>;
|
|
2032
2198
|
isOutstanding?: boolean;
|
|
2033
2199
|
customFields?: Array<NumberCustomFieldFilter | DateCustomFieldFilter | TimestampCustomFieldFilter | BooleanCustomFieldFilter | MonetaryCustomFieldFilter | MultiSelectCustomFieldFilter | SingleSelectCustomFieldFilter | TextArrayCustomFieldFilter | TextCustomFieldFilter>;
|
|
2200
|
+
hasChangesSinceApprovalSent?: boolean;
|
|
2201
|
+
approvalStatus?: InvoiceApprovalStatus;
|
|
2202
|
+
level?: ApprovalReminderLevel;
|
|
2203
|
+
isApprovalCancelled?: boolean;
|
|
2034
2204
|
};
|
|
2035
2205
|
export type PreviewBulkSendInvoiceResponse = {
|
|
2036
2206
|
meta: BulkActionMeta;
|
|
@@ -2052,9 +2222,25 @@ export type InvoiceNotEditableError = {
|
|
|
2052
2222
|
status: '409';
|
|
2053
2223
|
code: 'invoice_not_editable';
|
|
2054
2224
|
};
|
|
2225
|
+
export type DeleteInvoiceWithApprovalError = {
|
|
2226
|
+
/**
|
|
2227
|
+
* a human-readable explanation specific to this occurrence of the problem
|
|
2228
|
+
*/
|
|
2229
|
+
detail?: string;
|
|
2230
|
+
status: '409';
|
|
2231
|
+
code: 'delete_invoice_with_approval';
|
|
2232
|
+
};
|
|
2055
2233
|
export type DuplicateInvoiceResponse = {
|
|
2056
2234
|
uuid: string;
|
|
2057
2235
|
};
|
|
2236
|
+
export type CanNotRemoveInvoicePriorApprovalRequirementWithApprovalCreatedError = {
|
|
2237
|
+
/**
|
|
2238
|
+
* a human-readable explanation specific to this occurrence of the problem
|
|
2239
|
+
*/
|
|
2240
|
+
detail?: string;
|
|
2241
|
+
status: '409';
|
|
2242
|
+
code: 'can_not_remove_invoice_prior_approval_requirement_with_approval_created';
|
|
2243
|
+
};
|
|
2058
2244
|
export type InvoiceNotFinalizedError = {
|
|
2059
2245
|
/**
|
|
2060
2246
|
* a human-readable explanation specific to this occurrence of the problem
|
|
@@ -2084,6 +2270,10 @@ export type PreviewBulkMarkInvoiceAsReadyFilterQuery = {
|
|
|
2084
2270
|
customerExternalIds?: Array<string>;
|
|
2085
2271
|
isOutstanding?: boolean;
|
|
2086
2272
|
customFields?: Array<NumberCustomFieldFilter | DateCustomFieldFilter | TimestampCustomFieldFilter | BooleanCustomFieldFilter | MonetaryCustomFieldFilter | MultiSelectCustomFieldFilter | SingleSelectCustomFieldFilter | TextArrayCustomFieldFilter | TextCustomFieldFilter>;
|
|
2273
|
+
hasChangesSinceApprovalSent?: boolean;
|
|
2274
|
+
approvalStatus?: InvoiceApprovalStatus;
|
|
2275
|
+
level?: ApprovalReminderLevel;
|
|
2276
|
+
isApprovalCancelled?: boolean;
|
|
2087
2277
|
};
|
|
2088
2278
|
export type PreviewBulkMarkInvoiceAsReadyResponse = {
|
|
2089
2279
|
meta: BulkActionMeta;
|
|
@@ -2102,6 +2292,10 @@ export type BulkMarkInvoiceAsReadyFilterQuery = {
|
|
|
2102
2292
|
customerExternalIds?: Array<string>;
|
|
2103
2293
|
isOutstanding?: boolean;
|
|
2104
2294
|
customFields?: Array<NumberCustomFieldFilter | DateCustomFieldFilter | TimestampCustomFieldFilter | BooleanCustomFieldFilter | MonetaryCustomFieldFilter | MultiSelectCustomFieldFilter | SingleSelectCustomFieldFilter | TextArrayCustomFieldFilter | TextCustomFieldFilter>;
|
|
2295
|
+
hasChangesSinceApprovalSent?: boolean;
|
|
2296
|
+
approvalStatus?: InvoiceApprovalStatus;
|
|
2297
|
+
level?: ApprovalReminderLevel;
|
|
2298
|
+
isApprovalCancelled?: boolean;
|
|
2105
2299
|
};
|
|
2106
2300
|
export type BulkMarkInvoiceAsReadyResponse = {
|
|
2107
2301
|
meta: BulkActionMeta;
|
|
@@ -2128,6 +2322,10 @@ export type PreviewBulkFinalizeInvoiceFilterQuery = {
|
|
|
2128
2322
|
customerExternalIds?: Array<string>;
|
|
2129
2323
|
isOutstanding?: boolean;
|
|
2130
2324
|
customFields?: Array<NumberCustomFieldFilter | DateCustomFieldFilter | TimestampCustomFieldFilter | BooleanCustomFieldFilter | MonetaryCustomFieldFilter | MultiSelectCustomFieldFilter | SingleSelectCustomFieldFilter | TextArrayCustomFieldFilter | TextCustomFieldFilter>;
|
|
2325
|
+
hasChangesSinceApprovalSent?: boolean;
|
|
2326
|
+
approvalStatus?: InvoiceApprovalStatus;
|
|
2327
|
+
level?: ApprovalReminderLevel;
|
|
2328
|
+
isApprovalCancelled?: boolean;
|
|
2131
2329
|
};
|
|
2132
2330
|
export type PreviewBulkFinalizeInvoiceResponse = {
|
|
2133
2331
|
meta: BulkActionMeta;
|
|
@@ -2146,15 +2344,27 @@ export type BulkFinalizeInvoiceFilterQuery = {
|
|
|
2146
2344
|
customerExternalIds?: Array<string>;
|
|
2147
2345
|
isOutstanding?: boolean;
|
|
2148
2346
|
customFields?: Array<NumberCustomFieldFilter | DateCustomFieldFilter | TimestampCustomFieldFilter | BooleanCustomFieldFilter | MonetaryCustomFieldFilter | MultiSelectCustomFieldFilter | SingleSelectCustomFieldFilter | TextArrayCustomFieldFilter | TextCustomFieldFilter>;
|
|
2347
|
+
hasChangesSinceApprovalSent?: boolean;
|
|
2348
|
+
approvalStatus?: InvoiceApprovalStatus;
|
|
2349
|
+
level?: ApprovalReminderLevel;
|
|
2350
|
+
isApprovalCancelled?: boolean;
|
|
2149
2351
|
};
|
|
2150
2352
|
export type BulkFinalizeInvoiceResponse = {
|
|
2151
2353
|
meta: BulkActionMeta;
|
|
2152
2354
|
skipped: Array<BulkActionSkippedItem>;
|
|
2153
2355
|
};
|
|
2356
|
+
export type ProFormaNotFoundError = {
|
|
2357
|
+
/**
|
|
2358
|
+
* a human-readable explanation specific to this occurrence of the problem
|
|
2359
|
+
*/
|
|
2360
|
+
detail?: string;
|
|
2361
|
+
status: '404';
|
|
2362
|
+
code: 'pro_forma_not_found';
|
|
2363
|
+
};
|
|
2154
2364
|
export type ViewActivityLogIndexFilterQuery = {
|
|
2155
2365
|
entityUuids?: Array<string>;
|
|
2156
|
-
entityTypes?: Array<'customer' | 'invoice' | 'credit_note'>;
|
|
2157
|
-
roles?: Array<'actor' | 'customer' | 'invoice' | 'credit_note'>;
|
|
2366
|
+
entityTypes?: Array<'customer' | 'invoice' | 'credit_note' | 'approval'>;
|
|
2367
|
+
roles?: Array<'actor' | 'customer' | 'invoice' | 'credit_note' | 'approval'>;
|
|
2158
2368
|
};
|
|
2159
2369
|
export type ViewActivityLogIndexQueryKey = {
|
|
2160
2370
|
createdAt: string;
|
|
@@ -2175,6 +2385,12 @@ export declare enum ActivityType {
|
|
|
2175
2385
|
INVOICE_MARKED_AS_PAID = "invoice-marked-as-paid",
|
|
2176
2386
|
INVOICE_PAYMENT_CREATED = "invoice-payment-created",
|
|
2177
2387
|
INVOICE_PAYMENT_DELETED = "invoice-payment-deleted",
|
|
2388
|
+
INVOICE_APPROVAL_SENT = "invoice-approval-sent",
|
|
2389
|
+
INVOICE_APPROVAL_APPROVED = "invoice-approval-approved",
|
|
2390
|
+
INVOICE_APPROVAL_REJECTED = "invoice-approval-rejected",
|
|
2391
|
+
INVOICE_APPROVAL_CANCELLED = "invoice-approval-cancelled",
|
|
2392
|
+
INVOICE_APPROVAL_EXPIRED = "invoice-approval-expired",
|
|
2393
|
+
INVOICE_APPROVAL_REMINDER_SENT = "invoice-approval-reminder-sent",
|
|
2178
2394
|
CREDIT_NOTE_CREATED = "credit-note-created",
|
|
2179
2395
|
CREDIT_NOTE_UPDATED = "credit-note-updated",
|
|
2180
2396
|
CUSTOMER_UPDATED = "customer-updated"
|
|
@@ -2199,12 +2415,14 @@ export declare enum ActivityEntityRole {
|
|
|
2199
2415
|
ACTOR = "actor",
|
|
2200
2416
|
CUSTOMER = "customer",
|
|
2201
2417
|
INVOICE = "invoice",
|
|
2202
|
-
CREDIT_NOTE = "credit_note"
|
|
2418
|
+
CREDIT_NOTE = "credit_note",
|
|
2419
|
+
APPROVAL = "approval"
|
|
2203
2420
|
}
|
|
2204
2421
|
export declare enum ActivityEntityType {
|
|
2205
2422
|
CUSTOMER = "customer",
|
|
2206
2423
|
INVOICE = "invoice",
|
|
2207
|
-
CREDIT_NOTE = "credit_note"
|
|
2424
|
+
CREDIT_NOTE = "credit_note",
|
|
2425
|
+
APPROVAL = "approval"
|
|
2208
2426
|
}
|
|
2209
2427
|
export type ActivityEntityResponse = {
|
|
2210
2428
|
role: ActivityEntityRole;
|
|
@@ -2292,7 +2510,7 @@ export type LocalizedStringItemDto = {
|
|
|
2292
2510
|
export type LocalizedStringDto = {
|
|
2293
2511
|
items: Array<LocalizedStringItemDto>;
|
|
2294
2512
|
};
|
|
2295
|
-
export type
|
|
2513
|
+
export type MailTemplateResponse = {
|
|
2296
2514
|
subject: LocalizedStringDto;
|
|
2297
2515
|
body: LocalizedStringDto;
|
|
2298
2516
|
};
|
|
@@ -2311,7 +2529,7 @@ export type ViewReminderConfigItemResponse = {
|
|
|
2311
2529
|
sequence: ReminderLevel;
|
|
2312
2530
|
schedule: ReminderSchedule;
|
|
2313
2531
|
offsetDays: number;
|
|
2314
|
-
template:
|
|
2532
|
+
template: MailTemplateResponse;
|
|
2315
2533
|
fee: FeeDto;
|
|
2316
2534
|
};
|
|
2317
2535
|
export type ViewReminderConfigResponse = {
|
|
@@ -2341,7 +2559,7 @@ export type AdditionalReminderConfigError = {
|
|
|
2341
2559
|
status: '400';
|
|
2342
2560
|
code: 'additional_reminder_config';
|
|
2343
2561
|
};
|
|
2344
|
-
export type
|
|
2562
|
+
export type MailTemplateCommand = {
|
|
2345
2563
|
subject: LocalizedStringDto;
|
|
2346
2564
|
/**
|
|
2347
2565
|
* HTML of the body
|
|
@@ -2352,7 +2570,7 @@ export type ReminderConfigCommand = {
|
|
|
2352
2570
|
sequence: number;
|
|
2353
2571
|
offsetDays: number;
|
|
2354
2572
|
schedule: ReminderSchedule;
|
|
2355
|
-
template:
|
|
2573
|
+
template: MailTemplateCommand;
|
|
2356
2574
|
fee: FeeDto;
|
|
2357
2575
|
};
|
|
2358
2576
|
export type UpdateReminderConfigCommand = {
|
|
@@ -2617,108 +2835,498 @@ export type ViewPublicDunningCaseReminderResponse = {
|
|
|
2617
2835
|
outstandingInvoices: Array<ViewPublicDunningCaseReminderOutstandingInvoiceResponse>;
|
|
2618
2836
|
totalFee: MonetaryDto;
|
|
2619
2837
|
};
|
|
2620
|
-
export type
|
|
2838
|
+
export type ApprovalRequiresEditableInvoiceError = {
|
|
2621
2839
|
/**
|
|
2622
2840
|
* a human-readable explanation specific to this occurrence of the problem
|
|
2623
2841
|
*/
|
|
2624
2842
|
detail?: string;
|
|
2625
|
-
status: '
|
|
2626
|
-
code: '
|
|
2627
|
-
};
|
|
2628
|
-
export type ViewPermissionIndexV1Data = {
|
|
2629
|
-
body?: never;
|
|
2630
|
-
path?: never;
|
|
2631
|
-
query?: never;
|
|
2632
|
-
url: '/api/v1/permissions';
|
|
2843
|
+
status: '409';
|
|
2844
|
+
code: 'approval_requires_editable_invoice';
|
|
2633
2845
|
};
|
|
2634
|
-
export type
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2846
|
+
export type ApprovalRequiresCustomerPriorApprovalError = {
|
|
2847
|
+
/**
|
|
2848
|
+
* a human-readable explanation specific to this occurrence of the problem
|
|
2849
|
+
*/
|
|
2850
|
+
detail?: string;
|
|
2851
|
+
status: '409';
|
|
2852
|
+
code: 'approval_requires_customer_prior_approval';
|
|
2639
2853
|
};
|
|
2640
|
-
export type
|
|
2641
|
-
|
|
2642
|
-
|
|
2854
|
+
export type ApprovalRequiresStandardInvoiceError = {
|
|
2855
|
+
/**
|
|
2856
|
+
* a human-readable explanation specific to this occurrence of the problem
|
|
2857
|
+
*/
|
|
2858
|
+
detail?: string;
|
|
2859
|
+
status: '409';
|
|
2860
|
+
code: 'approval_requires_standard_invoice';
|
|
2643
2861
|
};
|
|
2644
|
-
export type
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2862
|
+
export type ApprovalAlreadySentError = {
|
|
2863
|
+
/**
|
|
2864
|
+
* a human-readable explanation specific to this occurrence of the problem
|
|
2865
|
+
*/
|
|
2866
|
+
detail?: string;
|
|
2867
|
+
status: '409';
|
|
2868
|
+
code: 'approval_already_sent_error';
|
|
2650
2869
|
};
|
|
2651
|
-
export type
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2870
|
+
export type PreviewBulkSendInvoiceApprovalFilterQuery = {
|
|
2871
|
+
statuses?: Array<InvoiceStatus>;
|
|
2872
|
+
lifecycleStatuses?: Array<InvoiceLifecycleStatus>;
|
|
2873
|
+
customerUuids?: Array<string>;
|
|
2874
|
+
dueOnRange?: DateRangeDto;
|
|
2875
|
+
issuedOnRange?: DateRangeDto;
|
|
2876
|
+
invoiceUuids?: ScopedUuidFilter;
|
|
2877
|
+
isDisputed?: boolean;
|
|
2878
|
+
isOverdue?: boolean;
|
|
2879
|
+
settlementStatuses?: Array<SettlementStatus>;
|
|
2880
|
+
customerExternalIds?: Array<string>;
|
|
2881
|
+
isOutstanding?: boolean;
|
|
2882
|
+
customFields?: Array<NumberCustomFieldFilter | DateCustomFieldFilter | TimestampCustomFieldFilter | BooleanCustomFieldFilter | MonetaryCustomFieldFilter | MultiSelectCustomFieldFilter | SingleSelectCustomFieldFilter | TextArrayCustomFieldFilter | TextCustomFieldFilter>;
|
|
2883
|
+
hasChangesSinceApprovalSent?: boolean;
|
|
2884
|
+
approvalStatus?: InvoiceApprovalStatus;
|
|
2885
|
+
level?: ApprovalReminderLevel;
|
|
2886
|
+
isApprovalCancelled?: boolean;
|
|
2656
2887
|
};
|
|
2657
|
-
export type
|
|
2658
|
-
|
|
2659
|
-
|
|
2888
|
+
export type PreviewBulkSendInvoiceApprovalResponse = {
|
|
2889
|
+
meta: BulkActionMeta;
|
|
2890
|
+
skipped: Array<BulkActionSkippedItem>;
|
|
2660
2891
|
};
|
|
2661
|
-
export type
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2892
|
+
export type BulkSendInvoiceApprovalFilterQuery = {
|
|
2893
|
+
statuses?: Array<InvoiceStatus>;
|
|
2894
|
+
lifecycleStatuses?: Array<InvoiceLifecycleStatus>;
|
|
2895
|
+
customerUuids?: Array<string>;
|
|
2896
|
+
dueOnRange?: DateRangeDto;
|
|
2897
|
+
issuedOnRange?: DateRangeDto;
|
|
2898
|
+
invoiceUuids?: ScopedUuidFilter;
|
|
2899
|
+
isDisputed?: boolean;
|
|
2900
|
+
isOverdue?: boolean;
|
|
2901
|
+
settlementStatuses?: Array<SettlementStatus>;
|
|
2902
|
+
customerExternalIds?: Array<string>;
|
|
2903
|
+
isOutstanding?: boolean;
|
|
2904
|
+
customFields?: Array<NumberCustomFieldFilter | DateCustomFieldFilter | TimestampCustomFieldFilter | BooleanCustomFieldFilter | MonetaryCustomFieldFilter | MultiSelectCustomFieldFilter | SingleSelectCustomFieldFilter | TextArrayCustomFieldFilter | TextCustomFieldFilter>;
|
|
2905
|
+
hasChangesSinceApprovalSent?: boolean;
|
|
2906
|
+
approvalStatus?: InvoiceApprovalStatus;
|
|
2907
|
+
level?: ApprovalReminderLevel;
|
|
2908
|
+
isApprovalCancelled?: boolean;
|
|
2670
2909
|
};
|
|
2671
|
-
export type
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
errors?: Array<InternalServerApiError>;
|
|
2675
|
-
};
|
|
2910
|
+
export type BulkSendInvoiceApprovalResponse = {
|
|
2911
|
+
meta: BulkActionMeta;
|
|
2912
|
+
skipped: Array<BulkActionSkippedItem>;
|
|
2676
2913
|
};
|
|
2677
|
-
export type
|
|
2678
|
-
|
|
2679
|
-
|
|
2914
|
+
export type InvoiceApprovalNotFoundError = {
|
|
2915
|
+
/**
|
|
2916
|
+
* a human-readable explanation specific to this occurrence of the problem
|
|
2917
|
+
*/
|
|
2918
|
+
detail?: string;
|
|
2919
|
+
status: '404';
|
|
2920
|
+
code: 'invoice_approval_not_found';
|
|
2680
2921
|
};
|
|
2681
|
-
export type
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2922
|
+
export type InvalidInvoiceApprovalTransitionError = {
|
|
2923
|
+
/**
|
|
2924
|
+
* a human-readable explanation specific to this occurrence of the problem
|
|
2925
|
+
*/
|
|
2926
|
+
detail?: string;
|
|
2927
|
+
status: '409';
|
|
2928
|
+
code: 'invalid_invoice_approval_transition';
|
|
2688
2929
|
};
|
|
2689
|
-
export type
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2930
|
+
export type MissingInvoiceApprovalFileError = {
|
|
2931
|
+
/**
|
|
2932
|
+
* a human-readable explanation specific to this occurrence of the problem
|
|
2933
|
+
*/
|
|
2934
|
+
detail?: string;
|
|
2935
|
+
status: '400';
|
|
2936
|
+
code: 'missing_invoice_approval_file';
|
|
2694
2937
|
};
|
|
2695
|
-
export type
|
|
2696
|
-
|
|
2697
|
-
|
|
2938
|
+
export type ApproveInvoiceApprovalCommand = {
|
|
2939
|
+
fileUuid?: string | null;
|
|
2940
|
+
remarks?: string | null;
|
|
2698
2941
|
};
|
|
2699
|
-
export type
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2942
|
+
export type MissingRejectionRemarksError = {
|
|
2943
|
+
/**
|
|
2944
|
+
* a human-readable explanation specific to this occurrence of the problem
|
|
2945
|
+
*/
|
|
2946
|
+
detail?: string;
|
|
2947
|
+
status: '400';
|
|
2948
|
+
code: 'missing_rejection_remarks';
|
|
2704
2949
|
};
|
|
2705
|
-
export type
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
errors?: Array<InternalServerApiError>;
|
|
2709
|
-
};
|
|
2950
|
+
export type RejectInvoiceApprovalCommand = {
|
|
2951
|
+
remarks?: string | null;
|
|
2952
|
+
reason: InvoiceApprovalRejectionReason;
|
|
2710
2953
|
};
|
|
2711
|
-
export type
|
|
2712
|
-
|
|
2713
|
-
|
|
2954
|
+
export type InvoiceApprovalAlreadyCancelledError = {
|
|
2955
|
+
/**
|
|
2956
|
+
* a human-readable explanation specific to this occurrence of the problem
|
|
2957
|
+
*/
|
|
2958
|
+
detail?: string;
|
|
2959
|
+
status: '409';
|
|
2960
|
+
code: 'invoice_approval_already_cancelled';
|
|
2714
2961
|
};
|
|
2715
|
-
export type
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2962
|
+
export type InvalidCancelableInvoiceApprovalStatusError = {
|
|
2963
|
+
/**
|
|
2964
|
+
* a human-readable explanation specific to this occurrence of the problem
|
|
2965
|
+
*/
|
|
2966
|
+
detail?: string;
|
|
2967
|
+
status: '409';
|
|
2968
|
+
code: 'invalid_cancelable_invoice_approval_status';
|
|
2720
2969
|
};
|
|
2721
|
-
export type
|
|
2970
|
+
export type CancelInvoiceApprovalOfFinalizedInvoiceError = {
|
|
2971
|
+
/**
|
|
2972
|
+
* a human-readable explanation specific to this occurrence of the problem
|
|
2973
|
+
*/
|
|
2974
|
+
detail?: string;
|
|
2975
|
+
status: '409';
|
|
2976
|
+
code: 'cancel_approval_of_finalized_invoice';
|
|
2977
|
+
};
|
|
2978
|
+
export type ApprovalRestartRequiresActiveApprovalError = {
|
|
2979
|
+
/**
|
|
2980
|
+
* a human-readable explanation specific to this occurrence of the problem
|
|
2981
|
+
*/
|
|
2982
|
+
detail?: string;
|
|
2983
|
+
status: '409';
|
|
2984
|
+
code: 'approval_restart_requires_active_approval';
|
|
2985
|
+
};
|
|
2986
|
+
export type ViewInvoiceApprovalIndexFilterQuery = {
|
|
2987
|
+
status?: InvoiceApprovalStatus;
|
|
2988
|
+
invoiceUuid?: string;
|
|
2989
|
+
customerUuid?: string;
|
|
2990
|
+
level?: ApprovalReminderLevel;
|
|
2991
|
+
hasChangesSinceApprovalSent?: boolean;
|
|
2992
|
+
isCancelled?: boolean;
|
|
2993
|
+
};
|
|
2994
|
+
export type ViewInvoiceApprovalIndexInvoiceResponse = {
|
|
2995
|
+
uuid: string;
|
|
2996
|
+
subject: string | null;
|
|
2997
|
+
hasChangesSinceApprovalSent: boolean;
|
|
2998
|
+
};
|
|
2999
|
+
export type ViewInvoiceApprovalIndexProFormaResponse = {
|
|
3000
|
+
uuid: string;
|
|
3001
|
+
issuedOn: string | 'infinity' | '-infinity' | null;
|
|
3002
|
+
netAmount: MonetaryDto;
|
|
3003
|
+
grossAmount: MonetaryDto;
|
|
3004
|
+
balanceDueAmount: MonetaryDto | null;
|
|
3005
|
+
};
|
|
3006
|
+
export type ViewInvoiceApprovalIndexCustomerResponse = {
|
|
3007
|
+
uuid: string;
|
|
3008
|
+
name: string | null;
|
|
3009
|
+
};
|
|
3010
|
+
export type ViewInvoiceApprovalIndexRecipientResponse = {
|
|
3011
|
+
name: string | null;
|
|
3012
|
+
email: string | null;
|
|
3013
|
+
};
|
|
3014
|
+
export type ViewInvoiceApprovalIndexItemResponse = {
|
|
3015
|
+
uuid: string;
|
|
3016
|
+
createdAt: string;
|
|
3017
|
+
status: InvoiceApprovalStatus;
|
|
3018
|
+
sentAt: string | 'infinity' | '-infinity' | null;
|
|
3019
|
+
answeredAt: string | 'infinity' | '-infinity' | null;
|
|
3020
|
+
nextReminderOn: string | 'infinity' | '-infinity' | null;
|
|
3021
|
+
expiresOn: string | 'infinity' | '-infinity' | null;
|
|
3022
|
+
customerRemark: string | null;
|
|
3023
|
+
rejectionReason: InvoiceApprovalRejectionReason | null;
|
|
3024
|
+
level: ApprovalReminderLevel | null;
|
|
3025
|
+
lastReminderSentAt: string | 'infinity' | '-infinity' | null;
|
|
3026
|
+
invoice: ViewInvoiceApprovalIndexInvoiceResponse;
|
|
3027
|
+
proForma: ViewInvoiceApprovalIndexProFormaResponse;
|
|
3028
|
+
customer: ViewInvoiceApprovalIndexCustomerResponse;
|
|
3029
|
+
recipient: ViewInvoiceApprovalIndexRecipientResponse;
|
|
3030
|
+
};
|
|
3031
|
+
export type ViewInvoiceApprovalIndexResponse = {
|
|
3032
|
+
/**
|
|
3033
|
+
* The items for the current page
|
|
3034
|
+
*/
|
|
3035
|
+
items: Array<ViewInvoiceApprovalIndexItemResponse>;
|
|
3036
|
+
meta: PaginatedOffsetResponseMeta;
|
|
3037
|
+
};
|
|
3038
|
+
export type ViewPublicProFormaDetailIssuerResponse = {
|
|
3039
|
+
uuid: string;
|
|
3040
|
+
name: string | null;
|
|
3041
|
+
email: string | null;
|
|
3042
|
+
phoneNumber: string | null;
|
|
3043
|
+
website: string | null;
|
|
3044
|
+
address: AddressResponse | null;
|
|
3045
|
+
vatNumber: string | null;
|
|
3046
|
+
bankAccountNumber: string | null;
|
|
3047
|
+
alternativeBankAccountNumber: string | null;
|
|
3048
|
+
};
|
|
3049
|
+
export type ViewPublicProFormaDetailCustomerResponse = {
|
|
3050
|
+
uuid: string;
|
|
3051
|
+
name: string | null;
|
|
3052
|
+
email: string | null;
|
|
3053
|
+
phoneNumber: string | null;
|
|
3054
|
+
address: AddressResponse | null;
|
|
3055
|
+
vatNumber: string | null;
|
|
3056
|
+
type: CustomerType;
|
|
3057
|
+
};
|
|
3058
|
+
export type ViewPublicProFormaDetailLineResponse = {
|
|
3059
|
+
uuid: string;
|
|
3060
|
+
groupUuid: string | null;
|
|
3061
|
+
position: number;
|
|
3062
|
+
name: string;
|
|
3063
|
+
description: string | null;
|
|
3064
|
+
customFields: Array<TextCustomFieldValueDto | TextArrayCustomFieldValueDto | NumberCustomFieldValueDto | BooleanCustomFieldValueDto | DateCustomFieldValueDto | TimestampCustomFieldValueDto | SingleSelectCustomFieldValueDto | MultiSelectCustomFieldValueDto | MonetaryCustomFieldValueDto>;
|
|
3065
|
+
quantity: number;
|
|
3066
|
+
unitPrice: MonetaryDto;
|
|
3067
|
+
vatRate: VatRate;
|
|
3068
|
+
vatRatePercentage: number;
|
|
3069
|
+
netAmount: MonetaryDto;
|
|
3070
|
+
grossAmount: MonetaryDto;
|
|
3071
|
+
discount: DiscountDto | null;
|
|
3072
|
+
unit: UnitOfMeasurement;
|
|
3073
|
+
isDiscount: boolean;
|
|
3074
|
+
};
|
|
3075
|
+
export type ViewPublicProFormaDetailGroupResponse = {
|
|
3076
|
+
uuid: string;
|
|
3077
|
+
position: number;
|
|
3078
|
+
name: string;
|
|
3079
|
+
description: string | null;
|
|
3080
|
+
customFields: Array<TextCustomFieldValueDto | TextArrayCustomFieldValueDto | NumberCustomFieldValueDto | BooleanCustomFieldValueDto | DateCustomFieldValueDto | TimestampCustomFieldValueDto | SingleSelectCustomFieldValueDto | MultiSelectCustomFieldValueDto | MonetaryCustomFieldValueDto>;
|
|
3081
|
+
lines: Array<ViewPublicProFormaDetailLineResponse>;
|
|
3082
|
+
};
|
|
3083
|
+
export type ViewPublicProFormaDetailVatSummaryResponse = {
|
|
3084
|
+
vatRate: VatRate;
|
|
3085
|
+
netAmount: MonetaryDto;
|
|
3086
|
+
vatAmount: MonetaryDto;
|
|
3087
|
+
};
|
|
3088
|
+
export type ViewPublicProFormaDetailResponse = {
|
|
3089
|
+
uuid: string;
|
|
3090
|
+
createdAt: string;
|
|
3091
|
+
updatedAt: string;
|
|
3092
|
+
issueOn: string | null;
|
|
3093
|
+
issuer: ViewPublicProFormaDetailIssuerResponse;
|
|
3094
|
+
customer: ViewPublicProFormaDetailCustomerResponse;
|
|
3095
|
+
paymentReference: string | null;
|
|
3096
|
+
subject: string | null;
|
|
3097
|
+
poNumber: string | null;
|
|
3098
|
+
customFields: Array<TextCustomFieldValueDto | TextArrayCustomFieldValueDto | NumberCustomFieldValueDto | BooleanCustomFieldValueDto | DateCustomFieldValueDto | TimestampCustomFieldValueDto | SingleSelectCustomFieldValueDto | MultiSelectCustomFieldValueDto | MonetaryCustomFieldValueDto>;
|
|
3099
|
+
ungroupedLines: Array<ViewPublicProFormaDetailLineResponse>;
|
|
3100
|
+
groups: Array<ViewPublicProFormaDetailGroupResponse>;
|
|
3101
|
+
vatSummaries: Array<ViewPublicProFormaDetailVatSummaryResponse>;
|
|
3102
|
+
grossAmount: MonetaryDto;
|
|
3103
|
+
/**
|
|
3104
|
+
* Net amount of all lines before discount
|
|
3105
|
+
*/
|
|
3106
|
+
netAmount: MonetaryDto;
|
|
3107
|
+
/**
|
|
3108
|
+
* Net amount of all lines after discount
|
|
3109
|
+
*/
|
|
3110
|
+
effectiveNet: MonetaryDto;
|
|
3111
|
+
vatAmount: MonetaryDto;
|
|
3112
|
+
totalDiscountAmount: MonetaryDto | null;
|
|
3113
|
+
globalDiscount: DiscountDto | null;
|
|
3114
|
+
externalRemarks: string | null;
|
|
3115
|
+
};
|
|
3116
|
+
export declare enum ApprovalReminderSchedule {
|
|
3117
|
+
AFTER_APPROVAL_REQUEST = "after_approval_request",
|
|
3118
|
+
AFTER_LAST_REMINDER = "after_last_reminder"
|
|
3119
|
+
}
|
|
3120
|
+
export type ViewApprovalReminderConfigItemResponse = {
|
|
3121
|
+
uuid: string;
|
|
3122
|
+
issuerUuid: string;
|
|
3123
|
+
sequence: ApprovalReminderLevel;
|
|
3124
|
+
schedule: ApprovalReminderSchedule;
|
|
3125
|
+
offsetDays: number;
|
|
3126
|
+
template: MailTemplateResponse;
|
|
3127
|
+
};
|
|
3128
|
+
export type ViewApprovalReminderConfigResponse = {
|
|
3129
|
+
items: Array<ViewApprovalReminderConfigItemResponse>;
|
|
3130
|
+
};
|
|
3131
|
+
export type ApprovalReminderConfigNotChronologicalError = {
|
|
3132
|
+
/**
|
|
3133
|
+
* a human-readable explanation specific to this occurrence of the problem
|
|
3134
|
+
*/
|
|
3135
|
+
detail?: string;
|
|
3136
|
+
status: '400';
|
|
3137
|
+
code: 'approval_reminder_config_not_chronological';
|
|
3138
|
+
};
|
|
3139
|
+
export type MissingRequiredApprovalReminderConfigError = {
|
|
3140
|
+
/**
|
|
3141
|
+
* a human-readable explanation specific to this occurrence of the problem
|
|
3142
|
+
*/
|
|
3143
|
+
detail?: string;
|
|
3144
|
+
status: '400';
|
|
3145
|
+
code: 'missing_required_approval_reminder_config';
|
|
3146
|
+
};
|
|
3147
|
+
export type AdditionalApprovalReminderConfigError = {
|
|
3148
|
+
/**
|
|
3149
|
+
* a human-readable explanation specific to this occurrence of the problem
|
|
3150
|
+
*/
|
|
3151
|
+
detail?: string;
|
|
3152
|
+
status: '400';
|
|
3153
|
+
code: 'additional_approval_reminder_config';
|
|
3154
|
+
};
|
|
3155
|
+
export type ApprovalReminderConfigCommand = {
|
|
3156
|
+
sequence: ApprovalReminderLevel;
|
|
3157
|
+
offsetDays: number;
|
|
3158
|
+
schedule: ApprovalReminderSchedule;
|
|
3159
|
+
template: MailTemplateCommand;
|
|
3160
|
+
};
|
|
3161
|
+
export type UpdateApprovalReminderConfigCommand = {
|
|
3162
|
+
reminders: Array<ApprovalReminderConfigCommand>;
|
|
3163
|
+
};
|
|
3164
|
+
export type InternalServerApiError = {
|
|
3165
|
+
/**
|
|
3166
|
+
* a human-readable explanation specific to this occurrence of the problem
|
|
3167
|
+
*/
|
|
3168
|
+
detail?: string;
|
|
3169
|
+
status: '500';
|
|
3170
|
+
code: 'internal_server_error';
|
|
3171
|
+
};
|
|
3172
|
+
export type ViewPermissionIndexV1Data = {
|
|
3173
|
+
body?: never;
|
|
3174
|
+
path?: never;
|
|
3175
|
+
query?: never;
|
|
3176
|
+
url: '/api/v1/permissions';
|
|
3177
|
+
};
|
|
3178
|
+
export type ViewPermissionIndexV1Errors = {
|
|
3179
|
+
500: {
|
|
3180
|
+
traceId?: string | null;
|
|
3181
|
+
errors?: Array<InternalServerApiError>;
|
|
3182
|
+
};
|
|
3183
|
+
};
|
|
3184
|
+
export type ViewPermissionIndexV1Error = ViewPermissionIndexV1Errors[keyof ViewPermissionIndexV1Errors];
|
|
3185
|
+
export type ViewPermissionIndexV1Responses = {
|
|
3186
|
+
200: ViewPermissionIndexResponse;
|
|
3187
|
+
};
|
|
3188
|
+
export type ViewPermissionIndexV1Response = ViewPermissionIndexV1Responses[keyof ViewPermissionIndexV1Responses];
|
|
3189
|
+
export type ViewApiKeyIndexV1Data = {
|
|
3190
|
+
body?: never;
|
|
3191
|
+
path?: never;
|
|
3192
|
+
query?: {
|
|
3193
|
+
search?: string;
|
|
3194
|
+
pagination?: ViewApiKeyIndexPaginationQuery;
|
|
3195
|
+
};
|
|
3196
|
+
url: '/api/v1/api-keys';
|
|
3197
|
+
};
|
|
3198
|
+
export type ViewApiKeyIndexV1Errors = {
|
|
3199
|
+
500: {
|
|
3200
|
+
traceId?: string | null;
|
|
3201
|
+
errors?: Array<InternalServerApiError>;
|
|
3202
|
+
};
|
|
3203
|
+
};
|
|
3204
|
+
export type ViewApiKeyIndexV1Error = ViewApiKeyIndexV1Errors[keyof ViewApiKeyIndexV1Errors];
|
|
3205
|
+
export type ViewApiKeyIndexV1Responses = {
|
|
3206
|
+
200: ViewApiKeyIndexResponse;
|
|
3207
|
+
};
|
|
3208
|
+
export type ViewApiKeyIndexV1Response = ViewApiKeyIndexV1Responses[keyof ViewApiKeyIndexV1Responses];
|
|
3209
|
+
export type CreateApiKeyV1Data = {
|
|
3210
|
+
body: CreateApiKeyCommand;
|
|
3211
|
+
path?: never;
|
|
3212
|
+
query?: never;
|
|
3213
|
+
url: '/api/v1/api-keys';
|
|
3214
|
+
};
|
|
3215
|
+
export type CreateApiKeyV1Errors = {
|
|
3216
|
+
400: {
|
|
3217
|
+
traceId?: string | null;
|
|
3218
|
+
errors?: Array<ApiKeyInvalidPermissionsError | ApiKeyInvalidExpiresAtError>;
|
|
3219
|
+
};
|
|
3220
|
+
500: {
|
|
3221
|
+
traceId?: string | null;
|
|
3222
|
+
errors?: Array<InternalServerApiError>;
|
|
3223
|
+
};
|
|
3224
|
+
};
|
|
3225
|
+
export type CreateApiKeyV1Error = CreateApiKeyV1Errors[keyof CreateApiKeyV1Errors];
|
|
3226
|
+
export type CreateApiKeyV1Responses = {
|
|
3227
|
+
201: CreateApiKeyResponse;
|
|
3228
|
+
};
|
|
3229
|
+
export type CreateApiKeyV1Response = CreateApiKeyV1Responses[keyof CreateApiKeyV1Responses];
|
|
3230
|
+
export type DeleteApiKeyV1Data = {
|
|
3231
|
+
body?: never;
|
|
3232
|
+
path: {
|
|
3233
|
+
uuid: string;
|
|
3234
|
+
};
|
|
3235
|
+
query?: never;
|
|
3236
|
+
url: '/api/v1/api-keys/{uuid}';
|
|
3237
|
+
};
|
|
3238
|
+
export type DeleteApiKeyV1Errors = {
|
|
3239
|
+
404: {
|
|
3240
|
+
traceId?: string | null;
|
|
3241
|
+
errors?: Array<ApiKeyNotFoundError>;
|
|
3242
|
+
};
|
|
3243
|
+
500: {
|
|
3244
|
+
traceId?: string | null;
|
|
3245
|
+
errors?: Array<InternalServerApiError>;
|
|
3246
|
+
};
|
|
3247
|
+
};
|
|
3248
|
+
export type DeleteApiKeyV1Error = DeleteApiKeyV1Errors[keyof DeleteApiKeyV1Errors];
|
|
3249
|
+
export type DeleteApiKeyV1Responses = {
|
|
3250
|
+
204: void;
|
|
3251
|
+
};
|
|
3252
|
+
export type DeleteApiKeyV1Response = DeleteApiKeyV1Responses[keyof DeleteApiKeyV1Responses];
|
|
3253
|
+
export type GetApiInfoData = {
|
|
3254
|
+
body?: never;
|
|
3255
|
+
path?: never;
|
|
3256
|
+
query?: never;
|
|
3257
|
+
url: '/api';
|
|
3258
|
+
};
|
|
3259
|
+
export type GetApiInfoErrors = {
|
|
3260
|
+
500: {
|
|
3261
|
+
traceId?: string | null;
|
|
3262
|
+
errors?: Array<InternalServerApiError>;
|
|
3263
|
+
};
|
|
3264
|
+
};
|
|
3265
|
+
export type GetApiInfoError = GetApiInfoErrors[keyof GetApiInfoErrors];
|
|
3266
|
+
export type GetApiInfoResponses = {
|
|
3267
|
+
200: GetApiInfoResponse;
|
|
3268
|
+
};
|
|
3269
|
+
export type GetApiInfoResponse2 = GetApiInfoResponses[keyof GetApiInfoResponses];
|
|
3270
|
+
export type MigrateCollectionsV1Data = {
|
|
3271
|
+
body?: never;
|
|
3272
|
+
path?: never;
|
|
3273
|
+
query: {
|
|
3274
|
+
fresh: boolean;
|
|
3275
|
+
collections?: Array<TypesenseCollectionName>;
|
|
3276
|
+
};
|
|
3277
|
+
url: '/api/v1/typesense/migrate';
|
|
3278
|
+
};
|
|
3279
|
+
export type MigrateCollectionsV1Errors = {
|
|
3280
|
+
500: {
|
|
3281
|
+
traceId?: string | null;
|
|
3282
|
+
errors?: Array<InternalServerApiError>;
|
|
3283
|
+
};
|
|
3284
|
+
};
|
|
3285
|
+
export type MigrateCollectionsV1Error = MigrateCollectionsV1Errors[keyof MigrateCollectionsV1Errors];
|
|
3286
|
+
export type MigrateCollectionsV1Responses = {
|
|
3287
|
+
200: unknown;
|
|
3288
|
+
};
|
|
3289
|
+
export type ImportCollectionsV1Data = {
|
|
3290
|
+
body?: never;
|
|
3291
|
+
path?: never;
|
|
3292
|
+
query?: {
|
|
3293
|
+
collections?: Array<TypesenseCollectionName>;
|
|
3294
|
+
};
|
|
3295
|
+
url: '/api/v1/typesense/import';
|
|
3296
|
+
};
|
|
3297
|
+
export type ImportCollectionsV1Errors = {
|
|
3298
|
+
500: {
|
|
3299
|
+
traceId?: string | null;
|
|
3300
|
+
errors?: Array<InternalServerApiError>;
|
|
3301
|
+
};
|
|
3302
|
+
};
|
|
3303
|
+
export type ImportCollectionsV1Error = ImportCollectionsV1Errors[keyof ImportCollectionsV1Errors];
|
|
3304
|
+
export type ImportCollectionsV1Responses = {
|
|
3305
|
+
200: unknown;
|
|
3306
|
+
};
|
|
3307
|
+
export type ViewCollectionsV1Data = {
|
|
3308
|
+
body?: never;
|
|
3309
|
+
path?: never;
|
|
3310
|
+
query?: never;
|
|
3311
|
+
url: '/api/v1/typesense/collections/details';
|
|
3312
|
+
};
|
|
3313
|
+
export type ViewCollectionsV1Errors = {
|
|
3314
|
+
500: {
|
|
3315
|
+
traceId?: string | null;
|
|
3316
|
+
errors?: Array<InternalServerApiError>;
|
|
3317
|
+
};
|
|
3318
|
+
};
|
|
3319
|
+
export type ViewCollectionsV1Error = ViewCollectionsV1Errors[keyof ViewCollectionsV1Errors];
|
|
3320
|
+
export type ViewCollectionsV1Responses = {
|
|
3321
|
+
200: unknown;
|
|
3322
|
+
};
|
|
3323
|
+
export type ViewCollectionIndexV1Data = {
|
|
3324
|
+
body?: never;
|
|
3325
|
+
path?: never;
|
|
3326
|
+
query?: never;
|
|
3327
|
+
url: '/api/v1/typesense/collections';
|
|
3328
|
+
};
|
|
3329
|
+
export type ViewCollectionIndexV1Errors = {
|
|
2722
3330
|
500: {
|
|
2723
3331
|
traceId?: string | null;
|
|
2724
3332
|
errors?: Array<InternalServerApiError>;
|
|
@@ -4007,7 +4615,7 @@ export type DeleteInvoiceV1Errors = {
|
|
|
4007
4615
|
};
|
|
4008
4616
|
409: {
|
|
4009
4617
|
traceId?: string | null;
|
|
4010
|
-
errors?: Array<InvoiceNotEditableError>;
|
|
4618
|
+
errors?: Array<InvoiceNotEditableError | DeleteInvoiceWithApprovalError>;
|
|
4011
4619
|
};
|
|
4012
4620
|
500: {
|
|
4013
4621
|
traceId?: string | null;
|
|
@@ -4061,7 +4669,7 @@ export type UpdateInvoiceV1Errors = {
|
|
|
4061
4669
|
};
|
|
4062
4670
|
409: {
|
|
4063
4671
|
traceId?: string | null;
|
|
4064
|
-
errors?: Array<EditNonDraftInvoiceError>;
|
|
4672
|
+
errors?: Array<EditNonDraftInvoiceError | CanNotChangeInvoiceCustomerWithApprovalCreatedError>;
|
|
4065
4673
|
};
|
|
4066
4674
|
500: {
|
|
4067
4675
|
traceId?: string | null;
|
|
@@ -4200,7 +4808,7 @@ export type FinalizeInvoiceV1Errors = {
|
|
|
4200
4808
|
};
|
|
4201
4809
|
409: {
|
|
4202
4810
|
traceId?: string | null;
|
|
4203
|
-
errors?: Array<InvoiceHasNoLinesError | InvoiceAlreadyFinalizedError>;
|
|
4811
|
+
errors?: Array<InvoiceHasNoLinesError | InvoiceAlreadyFinalizedError | InvoiceFinalizationRequiresApprovalError>;
|
|
4204
4812
|
};
|
|
4205
4813
|
500: {
|
|
4206
4814
|
traceId?: string | null;
|
|
@@ -4425,7 +5033,7 @@ export type DuplicateInvoiceV1Data = {
|
|
|
4425
5033
|
export type DuplicateInvoiceV1Errors = {
|
|
4426
5034
|
404: {
|
|
4427
5035
|
traceId?: string | null;
|
|
4428
|
-
errors?: Array<InvoiceNotFoundError
|
|
5036
|
+
errors?: Array<InvoiceNotFoundError>;
|
|
4429
5037
|
};
|
|
4430
5038
|
500: {
|
|
4431
5039
|
traceId?: string | null;
|
|
@@ -4464,6 +5072,60 @@ export type MarkInvoiceAsDraftV1Responses = {
|
|
|
4464
5072
|
204: void;
|
|
4465
5073
|
};
|
|
4466
5074
|
export type MarkInvoiceAsDraftV1Response = MarkInvoiceAsDraftV1Responses[keyof MarkInvoiceAsDraftV1Responses];
|
|
5075
|
+
export type MarkInvoiceAsPriorApprovalRequiredV1Data = {
|
|
5076
|
+
body?: never;
|
|
5077
|
+
path: {
|
|
5078
|
+
uuid: string;
|
|
5079
|
+
};
|
|
5080
|
+
query?: never;
|
|
5081
|
+
url: '/api/v1/invoices/{uuid}/mark-as-prior-approval-required';
|
|
5082
|
+
};
|
|
5083
|
+
export type MarkInvoiceAsPriorApprovalRequiredV1Errors = {
|
|
5084
|
+
404: {
|
|
5085
|
+
traceId?: string | null;
|
|
5086
|
+
errors?: Array<InvoiceNotFoundError>;
|
|
5087
|
+
};
|
|
5088
|
+
409: {
|
|
5089
|
+
traceId?: string | null;
|
|
5090
|
+
errors?: Array<InvoiceNotStandardError | InvoiceNotEditableError>;
|
|
5091
|
+
};
|
|
5092
|
+
500: {
|
|
5093
|
+
traceId?: string | null;
|
|
5094
|
+
errors?: Array<InternalServerApiError>;
|
|
5095
|
+
};
|
|
5096
|
+
};
|
|
5097
|
+
export type MarkInvoiceAsPriorApprovalRequiredV1Error = MarkInvoiceAsPriorApprovalRequiredV1Errors[keyof MarkInvoiceAsPriorApprovalRequiredV1Errors];
|
|
5098
|
+
export type MarkInvoiceAsPriorApprovalRequiredV1Responses = {
|
|
5099
|
+
204: void;
|
|
5100
|
+
};
|
|
5101
|
+
export type MarkInvoiceAsPriorApprovalRequiredV1Response = MarkInvoiceAsPriorApprovalRequiredV1Responses[keyof MarkInvoiceAsPriorApprovalRequiredV1Responses];
|
|
5102
|
+
export type UnmarkInvoiceAsPriorApprovalRequiredV1Data = {
|
|
5103
|
+
body?: never;
|
|
5104
|
+
path: {
|
|
5105
|
+
uuid: string;
|
|
5106
|
+
};
|
|
5107
|
+
query?: never;
|
|
5108
|
+
url: '/api/v1/invoices/{uuid}/unmark-as-prior-approval-required';
|
|
5109
|
+
};
|
|
5110
|
+
export type UnmarkInvoiceAsPriorApprovalRequiredV1Errors = {
|
|
5111
|
+
404: {
|
|
5112
|
+
traceId?: string | null;
|
|
5113
|
+
errors?: Array<InvoiceNotFoundError>;
|
|
5114
|
+
};
|
|
5115
|
+
409: {
|
|
5116
|
+
traceId?: string | null;
|
|
5117
|
+
errors?: Array<InvoiceNotStandardError | InvoiceNotEditableError | CanNotRemoveInvoicePriorApprovalRequirementWithApprovalCreatedError>;
|
|
5118
|
+
};
|
|
5119
|
+
500: {
|
|
5120
|
+
traceId?: string | null;
|
|
5121
|
+
errors?: Array<InternalServerApiError>;
|
|
5122
|
+
};
|
|
5123
|
+
};
|
|
5124
|
+
export type UnmarkInvoiceAsPriorApprovalRequiredV1Error = UnmarkInvoiceAsPriorApprovalRequiredV1Errors[keyof UnmarkInvoiceAsPriorApprovalRequiredV1Errors];
|
|
5125
|
+
export type UnmarkInvoiceAsPriorApprovalRequiredV1Responses = {
|
|
5126
|
+
204: void;
|
|
5127
|
+
};
|
|
5128
|
+
export type UnmarkInvoiceAsPriorApprovalRequiredV1Response = UnmarkInvoiceAsPriorApprovalRequiredV1Responses[keyof UnmarkInvoiceAsPriorApprovalRequiredV1Responses];
|
|
4467
5129
|
export type MarkInvoiceAsDisputedV1Data = {
|
|
4468
5130
|
body?: never;
|
|
4469
5131
|
path: {
|
|
@@ -4625,6 +5287,33 @@ export type BulkFinalizeInvoiceV1Responses = {
|
|
|
4625
5287
|
200: BulkFinalizeInvoiceResponse;
|
|
4626
5288
|
};
|
|
4627
5289
|
export type BulkFinalizeInvoiceV1Response = BulkFinalizeInvoiceV1Responses[keyof BulkFinalizeInvoiceV1Responses];
|
|
5290
|
+
export type RestoreInvoiceFromProformaV1Data = {
|
|
5291
|
+
body?: never;
|
|
5292
|
+
path: {
|
|
5293
|
+
uuid: string;
|
|
5294
|
+
};
|
|
5295
|
+
query?: never;
|
|
5296
|
+
url: '/api/v1/invoices/{uuid}/restore-from-pro-forma';
|
|
5297
|
+
};
|
|
5298
|
+
export type RestoreInvoiceFromProformaV1Errors = {
|
|
5299
|
+
404: {
|
|
5300
|
+
traceId?: string | null;
|
|
5301
|
+
errors?: Array<InvoiceNotFoundError | ProFormaNotFoundError>;
|
|
5302
|
+
};
|
|
5303
|
+
409: {
|
|
5304
|
+
traceId?: string | null;
|
|
5305
|
+
errors?: Array<InvoiceAlreadyFinalizedError>;
|
|
5306
|
+
};
|
|
5307
|
+
500: {
|
|
5308
|
+
traceId?: string | null;
|
|
5309
|
+
errors?: Array<InternalServerApiError>;
|
|
5310
|
+
};
|
|
5311
|
+
};
|
|
5312
|
+
export type RestoreInvoiceFromProformaV1Error = RestoreInvoiceFromProformaV1Errors[keyof RestoreInvoiceFromProformaV1Errors];
|
|
5313
|
+
export type RestoreInvoiceFromProformaV1Responses = {
|
|
5314
|
+
204: void;
|
|
5315
|
+
};
|
|
5316
|
+
export type RestoreInvoiceFromProformaV1Response = RestoreInvoiceFromProformaV1Responses[keyof RestoreInvoiceFromProformaV1Responses];
|
|
4628
5317
|
export type ViewActivityLogIndexV1Data = {
|
|
4629
5318
|
body?: never;
|
|
4630
5319
|
path?: never;
|
|
@@ -4915,3 +5604,267 @@ export type ViewPublicDunningCaseReminderV1Responses = {
|
|
|
4915
5604
|
200: ViewPublicDunningCaseReminderResponse;
|
|
4916
5605
|
};
|
|
4917
5606
|
export type ViewPublicDunningCaseReminderV1Response = ViewPublicDunningCaseReminderV1Responses[keyof ViewPublicDunningCaseReminderV1Responses];
|
|
5607
|
+
export type SendInvoiceApprovalV1Data = {
|
|
5608
|
+
body?: never;
|
|
5609
|
+
path: {
|
|
5610
|
+
uuid: string;
|
|
5611
|
+
};
|
|
5612
|
+
query?: never;
|
|
5613
|
+
url: '/api/v1/invoices/{uuid}/send-approval';
|
|
5614
|
+
};
|
|
5615
|
+
export type SendInvoiceApprovalV1Errors = {
|
|
5616
|
+
404: {
|
|
5617
|
+
traceId?: string | null;
|
|
5618
|
+
errors?: Array<InvoiceNotFoundError>;
|
|
5619
|
+
};
|
|
5620
|
+
409: {
|
|
5621
|
+
traceId?: string | null;
|
|
5622
|
+
errors?: Array<ApprovalRequiresEditableInvoiceError | ApprovalRequiresCustomerPriorApprovalError | ApprovalRequiresStandardInvoiceError | ApprovalAlreadySentError | CustomerHasNoDefaultRecipientError>;
|
|
5623
|
+
};
|
|
5624
|
+
500: {
|
|
5625
|
+
traceId?: string | null;
|
|
5626
|
+
errors?: Array<InternalServerApiError>;
|
|
5627
|
+
};
|
|
5628
|
+
};
|
|
5629
|
+
export type SendInvoiceApprovalV1Error = SendInvoiceApprovalV1Errors[keyof SendInvoiceApprovalV1Errors];
|
|
5630
|
+
export type PreviewBulkSendInvoiceApprovalV1Data = {
|
|
5631
|
+
body?: never;
|
|
5632
|
+
path?: never;
|
|
5633
|
+
query?: {
|
|
5634
|
+
filter?: PreviewBulkSendInvoiceApprovalFilterQuery;
|
|
5635
|
+
search?: string;
|
|
5636
|
+
};
|
|
5637
|
+
url: '/api/v1/invoices/send-approval/preview';
|
|
5638
|
+
};
|
|
5639
|
+
export type PreviewBulkSendInvoiceApprovalV1Errors = {
|
|
5640
|
+
500: {
|
|
5641
|
+
traceId?: string | null;
|
|
5642
|
+
errors?: Array<InternalServerApiError>;
|
|
5643
|
+
};
|
|
5644
|
+
};
|
|
5645
|
+
export type PreviewBulkSendInvoiceApprovalV1Error = PreviewBulkSendInvoiceApprovalV1Errors[keyof PreviewBulkSendInvoiceApprovalV1Errors];
|
|
5646
|
+
export type PreviewBulkSendInvoiceApprovalV1Responses = {
|
|
5647
|
+
200: PreviewBulkSendInvoiceApprovalResponse;
|
|
5648
|
+
};
|
|
5649
|
+
export type PreviewBulkSendInvoiceApprovalV1Response = PreviewBulkSendInvoiceApprovalV1Responses[keyof PreviewBulkSendInvoiceApprovalV1Responses];
|
|
5650
|
+
export type BulkSendInvoiceApprovalV1Data = {
|
|
5651
|
+
body?: never;
|
|
5652
|
+
path?: never;
|
|
5653
|
+
query?: {
|
|
5654
|
+
filter?: BulkSendInvoiceApprovalFilterQuery;
|
|
5655
|
+
search?: string;
|
|
5656
|
+
};
|
|
5657
|
+
url: '/api/v1/invoices/send-approval';
|
|
5658
|
+
};
|
|
5659
|
+
export type BulkSendInvoiceApprovalV1Errors = {
|
|
5660
|
+
500: {
|
|
5661
|
+
traceId?: string | null;
|
|
5662
|
+
errors?: Array<InternalServerApiError>;
|
|
5663
|
+
};
|
|
5664
|
+
};
|
|
5665
|
+
export type BulkSendInvoiceApprovalV1Error = BulkSendInvoiceApprovalV1Errors[keyof BulkSendInvoiceApprovalV1Errors];
|
|
5666
|
+
export type BulkSendInvoiceApprovalV1Responses = {
|
|
5667
|
+
200: BulkSendInvoiceApprovalResponse;
|
|
5668
|
+
};
|
|
5669
|
+
export type BulkSendInvoiceApprovalV1Response = BulkSendInvoiceApprovalV1Responses[keyof BulkSendInvoiceApprovalV1Responses];
|
|
5670
|
+
export type ApproveInvoiceApprovalV1Data = {
|
|
5671
|
+
body: ApproveInvoiceApprovalCommand;
|
|
5672
|
+
path: {
|
|
5673
|
+
uuid: string;
|
|
5674
|
+
};
|
|
5675
|
+
query?: never;
|
|
5676
|
+
url: '/api/v1/invoice-approvals/{uuid}/approve';
|
|
5677
|
+
};
|
|
5678
|
+
export type ApproveInvoiceApprovalV1Errors = {
|
|
5679
|
+
400: {
|
|
5680
|
+
traceId?: string | null;
|
|
5681
|
+
errors?: Array<MissingInvoiceApprovalFileError>;
|
|
5682
|
+
};
|
|
5683
|
+
404: {
|
|
5684
|
+
traceId?: string | null;
|
|
5685
|
+
errors?: Array<InvoiceApprovalNotFoundError | FileNotFoundError>;
|
|
5686
|
+
};
|
|
5687
|
+
409: {
|
|
5688
|
+
traceId?: string | null;
|
|
5689
|
+
errors?: Array<InvalidInvoiceApprovalTransitionError>;
|
|
5690
|
+
};
|
|
5691
|
+
500: {
|
|
5692
|
+
traceId?: string | null;
|
|
5693
|
+
errors?: Array<InternalServerApiError>;
|
|
5694
|
+
};
|
|
5695
|
+
};
|
|
5696
|
+
export type ApproveInvoiceApprovalV1Error = ApproveInvoiceApprovalV1Errors[keyof ApproveInvoiceApprovalV1Errors];
|
|
5697
|
+
export type ApproveInvoiceApprovalV1Responses = {
|
|
5698
|
+
204: void;
|
|
5699
|
+
};
|
|
5700
|
+
export type ApproveInvoiceApprovalV1Response = ApproveInvoiceApprovalV1Responses[keyof ApproveInvoiceApprovalV1Responses];
|
|
5701
|
+
export type RejectInvoiceApprovalV1Data = {
|
|
5702
|
+
body: RejectInvoiceApprovalCommand;
|
|
5703
|
+
path: {
|
|
5704
|
+
uuid: string;
|
|
5705
|
+
};
|
|
5706
|
+
query?: never;
|
|
5707
|
+
url: '/api/v1/invoice-approvals/{uuid}/reject';
|
|
5708
|
+
};
|
|
5709
|
+
export type RejectInvoiceApprovalV1Errors = {
|
|
5710
|
+
400: {
|
|
5711
|
+
traceId?: string | null;
|
|
5712
|
+
errors?: Array<MissingRejectionRemarksError>;
|
|
5713
|
+
};
|
|
5714
|
+
404: {
|
|
5715
|
+
traceId?: string | null;
|
|
5716
|
+
errors?: Array<InvoiceApprovalNotFoundError>;
|
|
5717
|
+
};
|
|
5718
|
+
409: {
|
|
5719
|
+
traceId?: string | null;
|
|
5720
|
+
errors?: Array<InvalidInvoiceApprovalTransitionError>;
|
|
5721
|
+
};
|
|
5722
|
+
500: {
|
|
5723
|
+
traceId?: string | null;
|
|
5724
|
+
errors?: Array<InternalServerApiError>;
|
|
5725
|
+
};
|
|
5726
|
+
};
|
|
5727
|
+
export type RejectInvoiceApprovalV1Error = RejectInvoiceApprovalV1Errors[keyof RejectInvoiceApprovalV1Errors];
|
|
5728
|
+
export type RejectInvoiceApprovalV1Responses = {
|
|
5729
|
+
204: void;
|
|
5730
|
+
};
|
|
5731
|
+
export type RejectInvoiceApprovalV1Response = RejectInvoiceApprovalV1Responses[keyof RejectInvoiceApprovalV1Responses];
|
|
5732
|
+
export type CancelInvoiceApprovalV1Data = {
|
|
5733
|
+
body?: never;
|
|
5734
|
+
path: {
|
|
5735
|
+
uuid: string;
|
|
5736
|
+
};
|
|
5737
|
+
query?: never;
|
|
5738
|
+
url: '/api/v1/invoice-approvals/{uuid}/cancel';
|
|
5739
|
+
};
|
|
5740
|
+
export type CancelInvoiceApprovalV1Errors = {
|
|
5741
|
+
404: {
|
|
5742
|
+
traceId?: string | null;
|
|
5743
|
+
errors?: Array<InvoiceApprovalNotFoundError>;
|
|
5744
|
+
};
|
|
5745
|
+
409: {
|
|
5746
|
+
traceId?: string | null;
|
|
5747
|
+
errors?: Array<InvoiceApprovalAlreadyCancelledError | InvalidCancelableInvoiceApprovalStatusError | CancelInvoiceApprovalOfFinalizedInvoiceError>;
|
|
5748
|
+
};
|
|
5749
|
+
500: {
|
|
5750
|
+
traceId?: string | null;
|
|
5751
|
+
errors?: Array<InternalServerApiError>;
|
|
5752
|
+
};
|
|
5753
|
+
};
|
|
5754
|
+
export type CancelInvoiceApprovalV1Error = CancelInvoiceApprovalV1Errors[keyof CancelInvoiceApprovalV1Errors];
|
|
5755
|
+
export type CancelInvoiceApprovalV1Responses = {
|
|
5756
|
+
204: void;
|
|
5757
|
+
};
|
|
5758
|
+
export type CancelInvoiceApprovalV1Response = CancelInvoiceApprovalV1Responses[keyof CancelInvoiceApprovalV1Responses];
|
|
5759
|
+
export type RestartInvoiceApprovalV1Data = {
|
|
5760
|
+
body?: never;
|
|
5761
|
+
path: {
|
|
5762
|
+
uuid: string;
|
|
5763
|
+
};
|
|
5764
|
+
query?: never;
|
|
5765
|
+
url: '/api/v1/invoices/{uuid}/restart-approval';
|
|
5766
|
+
};
|
|
5767
|
+
export type RestartInvoiceApprovalV1Errors = {
|
|
5768
|
+
404: {
|
|
5769
|
+
traceId?: string | null;
|
|
5770
|
+
errors?: Array<InvoiceNotFoundError>;
|
|
5771
|
+
};
|
|
5772
|
+
409: {
|
|
5773
|
+
traceId?: string | null;
|
|
5774
|
+
errors?: Array<ApprovalRequiresEditableInvoiceError | ApprovalRequiresCustomerPriorApprovalError | ApprovalRequiresStandardInvoiceError | ApprovalRestartRequiresActiveApprovalError>;
|
|
5775
|
+
};
|
|
5776
|
+
500: {
|
|
5777
|
+
traceId?: string | null;
|
|
5778
|
+
errors?: Array<InternalServerApiError>;
|
|
5779
|
+
};
|
|
5780
|
+
};
|
|
5781
|
+
export type RestartInvoiceApprovalV1Error = RestartInvoiceApprovalV1Errors[keyof RestartInvoiceApprovalV1Errors];
|
|
5782
|
+
export type ViewInvoiceApprovalIndexV1Data = {
|
|
5783
|
+
body?: never;
|
|
5784
|
+
path?: never;
|
|
5785
|
+
query?: {
|
|
5786
|
+
pagination?: PaginatedOffsetQuery;
|
|
5787
|
+
filter?: ViewInvoiceApprovalIndexFilterQuery;
|
|
5788
|
+
};
|
|
5789
|
+
url: '/api/v1/invoice-approvals';
|
|
5790
|
+
};
|
|
5791
|
+
export type ViewInvoiceApprovalIndexV1Errors = {
|
|
5792
|
+
500: {
|
|
5793
|
+
traceId?: string | null;
|
|
5794
|
+
errors?: Array<InternalServerApiError>;
|
|
5795
|
+
};
|
|
5796
|
+
};
|
|
5797
|
+
export type ViewInvoiceApprovalIndexV1Error = ViewInvoiceApprovalIndexV1Errors[keyof ViewInvoiceApprovalIndexV1Errors];
|
|
5798
|
+
export type ViewInvoiceApprovalIndexV1Responses = {
|
|
5799
|
+
200: ViewInvoiceApprovalIndexResponse;
|
|
5800
|
+
};
|
|
5801
|
+
export type ViewInvoiceApprovalIndexV1Response = ViewInvoiceApprovalIndexV1Responses[keyof ViewInvoiceApprovalIndexV1Responses];
|
|
5802
|
+
export type ViewPublicProFormaDetailV1Data = {
|
|
5803
|
+
body?: never;
|
|
5804
|
+
path?: never;
|
|
5805
|
+
query: {
|
|
5806
|
+
token: string;
|
|
5807
|
+
};
|
|
5808
|
+
url: '/api/v1/public/pro-formas';
|
|
5809
|
+
};
|
|
5810
|
+
export type ViewPublicProFormaDetailV1Errors = {
|
|
5811
|
+
404: {
|
|
5812
|
+
traceId?: string | null;
|
|
5813
|
+
errors?: Array<ProFormaNotFoundError>;
|
|
5814
|
+
};
|
|
5815
|
+
500: {
|
|
5816
|
+
traceId?: string | null;
|
|
5817
|
+
errors?: Array<InternalServerApiError>;
|
|
5818
|
+
};
|
|
5819
|
+
};
|
|
5820
|
+
export type ViewPublicProFormaDetailV1Error = ViewPublicProFormaDetailV1Errors[keyof ViewPublicProFormaDetailV1Errors];
|
|
5821
|
+
export type ViewPublicProFormaDetailV1Responses = {
|
|
5822
|
+
200: ViewPublicProFormaDetailResponse;
|
|
5823
|
+
};
|
|
5824
|
+
export type ViewPublicProFormaDetailV1Response = ViewPublicProFormaDetailV1Responses[keyof ViewPublicProFormaDetailV1Responses];
|
|
5825
|
+
export type ViewApprovalReminderConfigV1Data = {
|
|
5826
|
+
body?: never;
|
|
5827
|
+
path?: never;
|
|
5828
|
+
query?: never;
|
|
5829
|
+
url: '/api/v1/issuers/approval-reminder-configs';
|
|
5830
|
+
};
|
|
5831
|
+
export type ViewApprovalReminderConfigV1Errors = {
|
|
5832
|
+
404: {
|
|
5833
|
+
traceId?: string | null;
|
|
5834
|
+
errors?: Array<IssuerNotFoundError>;
|
|
5835
|
+
};
|
|
5836
|
+
500: {
|
|
5837
|
+
traceId?: string | null;
|
|
5838
|
+
errors?: Array<InternalServerApiError>;
|
|
5839
|
+
};
|
|
5840
|
+
};
|
|
5841
|
+
export type ViewApprovalReminderConfigV1Error = ViewApprovalReminderConfigV1Errors[keyof ViewApprovalReminderConfigV1Errors];
|
|
5842
|
+
export type ViewApprovalReminderConfigV1Responses = {
|
|
5843
|
+
200: ViewApprovalReminderConfigResponse;
|
|
5844
|
+
};
|
|
5845
|
+
export type ViewApprovalReminderConfigV1Response = ViewApprovalReminderConfigV1Responses[keyof ViewApprovalReminderConfigV1Responses];
|
|
5846
|
+
export type UpdateApprovalReminderConfigV1Data = {
|
|
5847
|
+
body: UpdateApprovalReminderConfigCommand;
|
|
5848
|
+
path?: never;
|
|
5849
|
+
query?: never;
|
|
5850
|
+
url: '/api/v1/issuers/approval-reminder-configs';
|
|
5851
|
+
};
|
|
5852
|
+
export type UpdateApprovalReminderConfigV1Errors = {
|
|
5853
|
+
400: {
|
|
5854
|
+
traceId?: string | null;
|
|
5855
|
+
errors?: Array<ApprovalReminderConfigNotChronologicalError | MissingRequiredApprovalReminderConfigError | AdditionalApprovalReminderConfigError>;
|
|
5856
|
+
};
|
|
5857
|
+
404: {
|
|
5858
|
+
traceId?: string | null;
|
|
5859
|
+
errors?: Array<IssuerNotFoundError>;
|
|
5860
|
+
};
|
|
5861
|
+
500: {
|
|
5862
|
+
traceId?: string | null;
|
|
5863
|
+
errors?: Array<InternalServerApiError>;
|
|
5864
|
+
};
|
|
5865
|
+
};
|
|
5866
|
+
export type UpdateApprovalReminderConfigV1Error = UpdateApprovalReminderConfigV1Errors[keyof UpdateApprovalReminderConfigV1Errors];
|
|
5867
|
+
export type UpdateApprovalReminderConfigV1Responses = {
|
|
5868
|
+
204: void;
|
|
5869
|
+
};
|
|
5870
|
+
export type UpdateApprovalReminderConfigV1Response = UpdateApprovalReminderConfigV1Responses[keyof UpdateApprovalReminderConfigV1Responses];
|