@wisemen/wise-invoicing-web 0.19.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ApprovalReminderSettingsViewDataProvider-DyrHExKn.js +962 -0
- package/dist/{BillingDocumentDetailViewDataProvider-BZCFhsjA.js → BillingDocumentDetailViewDataProvider-kFzqhrxW.js} +1632 -1619
- package/dist/{BillingDocumentPdf-DMTwOlzG.js → BillingDocumentPdf-Dp6HSypy.js} +10 -10
- package/dist/{DunningCaseSendDialog-DfMYo2LV.js → DunningCaseSendDialog-1S6OD9wd.js} +36 -36
- package/dist/{InvoiceApprovalOutOfSyncIndicator-BjlBhzNg.js → InvoiceApprovalOutOfSyncIndicator-DaM5hQVT.js} +16 -13
- package/dist/{InvoiceApprovalOverviewView-BH5rJgk6.js → InvoiceApprovalOverviewView-DM_LiO19.js} +237 -237
- package/dist/{InvoiceApprovalStatusBadge-CaVSCtI0.js → InvoiceApprovalStatusBadge-mbYHYU3x.js} +6 -6
- package/dist/{InvoicePdfView-DRqX3P-X.js → InvoicePdfView-YbDJpTIA.js} +2 -2
- package/dist/{InvoicePublicProFormaPdfViewDataProvider-Dz2jGWVg.js → InvoicePublicProFormaPdfViewDataProvider-BgAhcvB6.js} +3 -3
- package/dist/InvoiceRejectDialogDataProvider-yegAlkDB.js +410 -0
- package/dist/{InvoiceStatusBadge-BI41yxpr.js → InvoiceStatusBadge-Bo5PDjEy.js} +23 -23
- package/dist/{InvoicingFileUploadProvider-rU9APFrt.js → InvoicingFileUploadProvider-DVh22OUB.js} +2 -2
- package/dist/{IssuerSettingsViewDataProvider-nNg0lR7Y.js → IssuerSettingsViewDataProvider-BgSFemZr.js} +66 -66
- package/dist/{PeppolSettingsViewDataProvider-CFelH70Q.js → PeppolSettingsViewDataProvider-_Bx0xx9e.js} +3 -3
- package/dist/ReminderTemplatesPanel-DxmfU2xK.js +103 -0
- package/dist/{api.util-sW4gNny-.js → api.util-lGbimoKL.js} +814 -667
- package/dist/billingDocumentDetail.transformer-C5-zjIhL.js +319 -0
- package/dist/client/index.d.ts +2 -2
- package/dist/client/sdk.gen.d.ts +12 -7
- package/dist/client/types.gen.d.ts +396 -94
- package/dist/client/zod.gen.d.ts +3003 -401
- package/dist/{creditNoteDetail.query-C4DvgGFR.js → creditNoteDetail.query-CqJeWeRV.js} +25 -25
- package/dist/{customFieldDefinitionIndex.query-BBqxMfvT.js → customFieldDefinitionIndex.query-Co7hoMow.js} +75 -66
- package/dist/{deliveryReason.util-KBh3q_-P.js → deliveryReason.util-ny1rA7Sm.js} +6 -6
- package/dist/{dist-47-1LAzT.js → dist-CrNFh-CR.js} +59 -59
- package/dist/{dist-B33lNwLw.js → dist-DmVrfBOT.js} +149 -79
- package/dist/{documentTitle.composable-Dl8Cm3v3.js → documentTitle.composable-aTEYXgaZ.js} +37 -35
- package/dist/html.util-vG4ow95N.js +52 -0
- package/dist/{i18n.lib-DckceEsg.js → i18n.lib-B1H9r0km.js} +198 -26
- package/dist/index.d.ts +184 -12
- package/dist/index.js +1990 -1829
- package/dist/{invoice.service-v9uIoFgR.js → invoice.service-D9ubyWPb.js} +224 -181
- package/dist/invoiceApproval.service-BtDIOHIo.js +182 -0
- package/dist/{invoiceApprovalStatus.util-CB5pi_hm.js → invoiceApprovalStatus.util-Bqq_bILG.js} +29 -29
- package/dist/{invoiceCustomer.service-Bl4vN_U5.js → invoiceCustomer.service-D0AtVrLg.js} +6 -6
- package/dist/{invoiceDetail.query-MElhxTMM.js → invoiceDetail.query-BNL6MkvC.js} +1 -1
- package/dist/{invoicingConfig.composable-D-hxnEnh.js → invoicingConfig.composable-DEF0lzNP.js} +2 -2
- package/dist/{issuerSettings.query-CR7EtvNm.js → issuerSettings.query-Cu-I6OAg.js} +30 -30
- package/dist/libs/i18n.lib.d.ts +184 -12
- package/dist/locales/en-US.json.d.ts +99 -13
- package/dist/locales/nl-BE.json.d.ts +99 -13
- package/dist/models/billing-document/billingDocumentDetail.model.d.ts +2 -2
- package/dist/models/file-reference/fileReference.transformer.d.ts +3 -0
- package/dist/modules/invoice/api/mutations/invoiceApprovalUpdate.mutation.d.ts +16 -0
- package/dist/modules/invoice/api/mutations/invoiceApproveApproval.mutation.d.ts +2 -2
- package/dist/modules/invoice/api/mutations/invoiceBulkSendApproval.mutation.d.ts +2 -2
- package/dist/modules/invoice/api/mutations/invoiceRejectApproval.mutation.d.ts +2 -2
- package/dist/modules/invoice/api/mutations/invoiceSetApprovalMode.mutation.d.ts +7 -0
- package/dist/modules/invoice/api/services/invoice.service.d.ts +7 -5
- package/dist/modules/invoice/models/invoice/approval/invoiceApprovalMode.model.d.ts +3 -0
- package/dist/modules/invoice/models/invoice/approval/invoiceApprovalMode.transformer.d.ts +6 -0
- package/dist/modules/invoice/models/invoice/approval/invoiceApprovalModeForm.model.d.ts +7 -0
- package/dist/modules/invoice/models/invoice/approval/invoiceApprovalNote.model.d.ts +2 -0
- package/dist/modules/invoice/models/invoice/approval/invoiceApprovalUpdate.transformer.d.ts +7 -0
- package/dist/modules/invoice/models/invoice/approval/invoiceApprovalUpdateForm.model.d.ts +13 -0
- package/dist/modules/invoice/models/invoice/approval/invoiceApprove.transformer.d.ts +3 -0
- package/dist/modules/invoice/models/invoice/approval/invoiceApproveForm.model.d.ts +2 -2
- package/dist/modules/invoice/models/invoice/approval/invoiceReject.transformer.d.ts +3 -0
- package/dist/modules/invoice/models/invoice/approval/invoiceRejectForm.model.d.ts +2 -2
- package/dist/modules/invoice/models/invoice/detail/invoiceDetail.model.d.ts +7 -1
- package/dist/modules/invoice/models/invoice/index/invoiceIndexQueryParams.model.d.ts +1 -0
- package/dist/modules/invoice/models/invoice/invoiceStatus.util.d.ts +1 -0
- package/dist/modules/invoice/use-cases/detail/components/InvoiceApprovalBanner.vue.d.ts +13 -0
- package/dist/modules/invoice/use-cases/detail/composables/invoiceDetailHeaderActions.composable.d.ts +2 -0
- package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceApprovalModeDialog.vue.d.ts +13 -0
- package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceApprovalUpdateDialog.vue.d.ts +16 -0
- package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceApproveDialog.vue.d.ts +4 -0
- package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceRejectDialog.vue.d.ts +4 -0
- package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceRejectDialogDataProvider.vue.d.ts +13 -0
- package/dist/modules/invoice-approval/actions/invoiceApprovalSendRequest.action.d.ts +1 -1
- package/dist/modules/invoice-approval/api/mutations/approvalFollowUpPauseCreate.mutation.d.ts +7 -0
- package/dist/modules/invoice-approval/api/mutations/approvalFollowUpPauseDelete.mutation.d.ts +4 -0
- package/dist/modules/invoice-approval/api/mutations/approvalFollowUpPauseUpdate.mutation.d.ts +10 -0
- package/dist/modules/invoice-approval/api/mutations/approvalMailTemplateUpdate.mutation.d.ts +14 -0
- package/dist/modules/invoice-approval/api/mutations/approvalReminderConfigUpdate.mutation.d.ts +14 -1
- package/dist/modules/invoice-approval/api/queries/approvalFollowUpPauseIndex.query.d.ts +2 -0
- package/dist/modules/invoice-approval/api/queries/approvalReminderConfig.query.d.ts +1 -1
- package/dist/modules/invoice-approval/api/query-keys/invoiceApproval.queryKeys.d.ts +9 -2
- package/dist/modules/invoice-approval/api/services/invoiceApproval.service.d.ts +10 -2
- package/dist/modules/invoice-approval/models/approvalFollowUpPause.model.d.ts +11 -0
- package/dist/modules/invoice-approval/models/approvalFollowUpPause.transformer.d.ts +11 -0
- package/dist/modules/invoice-approval/models/approvalFollowUpPauseForm.model.d.ts +11 -0
- package/dist/modules/invoice-approval/models/approvalMailTemplate.transformer.d.ts +6 -0
- package/dist/modules/invoice-approval/models/approvalMailTemplate.transformer.spec.d.ts +1 -0
- package/dist/modules/invoice-approval/models/approvalMailTemplateForm.model.d.ts +18 -0
- package/dist/modules/invoice-approval/models/approvalReminderConfigForm.model.d.ts +15 -2
- package/dist/modules/invoice-approval/models/approvalSettingsForm.model.d.ts +39 -0
- package/dist/modules/invoice-approval/models/approvalSettingsForm.spec.d.ts +1 -0
- package/dist/modules/invoice-approval/models/invoiceApprovalIndex.model.d.ts +2 -1
- package/dist/modules/invoice-approval/use-cases/settings/components/ApprovalFollowUpPauseList.vue.d.ts +20 -0
- package/dist/modules/invoice-approval/use-cases/settings/components/ApprovalFollowUpPauseRow.vue.d.ts +20 -0
- package/dist/modules/invoice-approval/use-cases/settings/components/ApprovalFollowUpPausesPanel.vue.d.ts +7 -0
- package/dist/modules/invoice-approval/use-cases/settings/composables/approvalFollowUpPauseDialogs.composable.d.ts +8 -0
- package/dist/modules/invoice-approval/use-cases/settings/dialogs/ApprovalFollowUpPauseDeleteDialog.vue.d.ts +11 -0
- package/dist/modules/invoice-approval/use-cases/settings/dialogs/ApprovalFollowUpPauseFormDialog.vue.d.ts +14 -0
- package/dist/modules/invoice-approval/use-cases/settings/views/ApprovalReminderSettingsView.vue.d.ts +2 -1
- package/dist/modules/invoice-approval/utils/approvalFollowUpPausePeriod.util.d.ts +41 -0
- package/dist/modules/invoice-approval/utils/approvalFollowUpPausePeriod.util.spec.d.ts +1 -0
- package/dist/{reminderConfig.query-DJmhJp6W.js → reminderConfig.query-DHMHVOeX.js} +67 -114
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/ApprovalReminderSettingsViewDataProvider-C1cI6KQq.js +0 -147
- package/dist/InvoiceRejectDialog-_5i8eFuk.js +0 -361
- package/dist/billingDocumentDetail.transformer-Ifa6tWtE.js +0 -310
- package/dist/invoiceApproval.service-DXIKgCI_.js +0 -72
- package/dist/modules/invoice/api/mutations/invoiceMarkAsPriorApprovalRequired.mutation.d.ts +0 -4
- package/dist/modules/invoice/api/mutations/invoiceUnmarkAsPriorApprovalRequired.mutation.d.ts +0 -4
|
@@ -487,15 +487,15 @@ var ce = (e) => te({
|
|
|
487
487
|
})(ge({
|
|
488
488
|
baseUrl: "https://vue.project-template.development.appwi.se",
|
|
489
489
|
throwOnError: !0
|
|
490
|
-
})),
|
|
490
|
+
})), m = e.enum(/* @__PURE__ */ "all_permissions,api-key.create,api-key.read,api-key.read-own,api-key.delete,api-key.delete-own,custom-field-definition.read,customer.create,customer.read,customer.update,customer.deactivate,customer.reactivate,dunning-case.read,dunning-case.send,invoice-approval.approve,invoice-approval.cancel,invoice-approval.read,invoice-approval.reject,invoice-approval.restart,invoice-approval.send,invoice-approval.update,invoice.create,invoice.delete,invoice.read,invoice.send-email,invoice.send-peppol,invoice.update,invoice.payment.create,invoice.payment.delete,invoice.payment.read,invoice.externally-created.update,peppol-connection.update,issuer.read,issuer.update,recipient.read,recipient.create,recipient.update,recipient.delete,reminder-config.read,activity-log.read,event-log.read,file.read,file.create,file.delete,jobs.read.index,jobs.read.detail,notification.read.own,notification.read.config,notification.update.read,notification.update.unread,notification.preferences.update.channel,notification.preferences.update.preset,notification.preferences.update.types,notification.preferences.read.own,notification.migrate-type,notification.send-test,reminder-config.update,role.read,role.create,role.update,role.delete,role.cache.clear,send_push_notification,typesense,user.read,user.create,user.update,user.delete,tenant.create,tenant.read_index,tenant.read_detail,tenant.update,tenant.deactivate".split(",")), _e = e.object({
|
|
491
491
|
name: e.string(),
|
|
492
|
-
key:
|
|
492
|
+
key: m,
|
|
493
493
|
description: e.string()
|
|
494
|
-
}),
|
|
494
|
+
}), ve = e.object({
|
|
495
495
|
name: e.string(),
|
|
496
|
-
permissions: e.array(
|
|
496
|
+
permissions: e.array(_e)
|
|
497
497
|
});
|
|
498
|
-
e.object({ groups: e.array(
|
|
498
|
+
e.object({ groups: e.array(ve) }), e.object({
|
|
499
499
|
detail: e.string().optional(),
|
|
500
500
|
status: e.enum(["400"]),
|
|
501
501
|
code: e.enum(["api_key_invalid_permissions"])
|
|
@@ -505,12 +505,12 @@ e.object({ groups: e.array(ye) }), e.object({
|
|
|
505
505
|
code: e.enum(["api_key_invalid_expires_at"])
|
|
506
506
|
}), e.object({
|
|
507
507
|
name: e.string(),
|
|
508
|
-
permissions: e.array(
|
|
508
|
+
permissions: e.array(m),
|
|
509
509
|
expiresAt: e.iso.datetime().nullish()
|
|
510
510
|
}), e.object({
|
|
511
511
|
uuid: e.uuid(),
|
|
512
512
|
name: e.string(),
|
|
513
|
-
permissions: e.array(
|
|
513
|
+
permissions: e.array(m),
|
|
514
514
|
userUuid: e.uuid(),
|
|
515
515
|
userEmail: e.string().nullable(),
|
|
516
516
|
maskedKey: e.string(),
|
|
@@ -522,32 +522,32 @@ e.object({ groups: e.array(ye) }), e.object({
|
|
|
522
522
|
status: e.enum(["404"]),
|
|
523
523
|
code: e.enum(["api_key_not_found"])
|
|
524
524
|
});
|
|
525
|
-
var
|
|
525
|
+
var ye = e.object({
|
|
526
526
|
createdAt: e.iso.datetime(),
|
|
527
527
|
uuid: e.uuid()
|
|
528
|
-
}),
|
|
528
|
+
}), be = e.object({
|
|
529
529
|
limit: e.number().gte(0).lte(100).optional(),
|
|
530
|
-
key:
|
|
531
|
-
}),
|
|
530
|
+
key: ye.nullish()
|
|
531
|
+
}), xe = e.object({
|
|
532
532
|
uuid: e.uuid(),
|
|
533
533
|
name: e.string(),
|
|
534
|
-
permissions: e.array(
|
|
534
|
+
permissions: e.array(m),
|
|
535
535
|
userUuid: e.string(),
|
|
536
536
|
userEmail: e.string().nullable(),
|
|
537
537
|
maskedKey: e.string(),
|
|
538
538
|
expiresAt: e.iso.datetime().nullable(),
|
|
539
539
|
createdAt: e.iso.datetime()
|
|
540
|
-
}),
|
|
540
|
+
}), Se = e.object({ next: ye.nullable() });
|
|
541
541
|
e.object({
|
|
542
|
-
items: e.array(
|
|
543
|
-
meta:
|
|
542
|
+
items: e.array(xe),
|
|
543
|
+
meta: Se
|
|
544
544
|
}), e.object({
|
|
545
545
|
environment: e.string(),
|
|
546
546
|
commit: e.string(),
|
|
547
547
|
version: e.string(),
|
|
548
548
|
timestamp: e.iso.datetime()
|
|
549
549
|
});
|
|
550
|
-
var
|
|
550
|
+
var Ce = e.enum([
|
|
551
551
|
"user",
|
|
552
552
|
"customer",
|
|
553
553
|
"recipient",
|
|
@@ -563,12 +563,12 @@ e.object({ collections: e.array(e.enum([
|
|
|
563
563
|
status: e.enum(["404"]),
|
|
564
564
|
code: e.enum(["user_not_found"])
|
|
565
565
|
}), e.object({ roleUuids: e.array(e.uuid()) });
|
|
566
|
-
var
|
|
566
|
+
var we = e.object({
|
|
567
567
|
uuid: e.uuid(),
|
|
568
568
|
createdAt: e.iso.datetime(),
|
|
569
569
|
updatedAt: e.iso.datetime(),
|
|
570
570
|
name: e.string(),
|
|
571
|
-
permissions: e.array(
|
|
571
|
+
permissions: e.array(m),
|
|
572
572
|
isDefault: e.boolean(),
|
|
573
573
|
isSystemAdmin: e.boolean()
|
|
574
574
|
});
|
|
@@ -578,16 +578,16 @@ e.object({
|
|
|
578
578
|
firstName: e.string().nullable(),
|
|
579
579
|
lastName: e.string().nullable(),
|
|
580
580
|
tenantUuid: e.uuid().nullable(),
|
|
581
|
-
roles: e.array(
|
|
581
|
+
roles: e.array(we)
|
|
582
582
|
}), e.object({
|
|
583
583
|
uuid: e.uuid(),
|
|
584
584
|
email: e.email().nullable(),
|
|
585
585
|
firstName: e.string().nullable(),
|
|
586
586
|
lastName: e.string().nullable(),
|
|
587
587
|
tenantUuid: e.uuid().nullable(),
|
|
588
|
-
roles: e.array(
|
|
588
|
+
roles: e.array(we)
|
|
589
589
|
});
|
|
590
|
-
var
|
|
590
|
+
var Te = e.object({
|
|
591
591
|
limit: e.number().gte(1).lte(100),
|
|
592
592
|
offset: e.number().gte(0)
|
|
593
593
|
}), Ee = e.object({
|
|
@@ -617,14 +617,14 @@ var ke = e.object({
|
|
|
617
617
|
createdAt: e.iso.datetime(),
|
|
618
618
|
updatedAt: e.iso.datetime(),
|
|
619
619
|
name: e.string(),
|
|
620
|
-
permissions: e.array(
|
|
620
|
+
permissions: e.array(m),
|
|
621
621
|
isDefault: e.boolean(),
|
|
622
622
|
isSystemAdmin: e.boolean()
|
|
623
623
|
});
|
|
624
624
|
e.object({ items: e.array(ke) });
|
|
625
625
|
var Ae = e.object({
|
|
626
626
|
roleUuid: e.uuid(),
|
|
627
|
-
permissions: e.array(
|
|
627
|
+
permissions: e.array(m)
|
|
628
628
|
});
|
|
629
629
|
e.object({ roles: e.array(Ae) });
|
|
630
630
|
var je = e.enum([
|
|
@@ -727,7 +727,7 @@ var ze = e.enum([
|
|
|
727
727
|
}), He = e.object({
|
|
728
728
|
limit: e.number().gte(0).lte(100).optional(),
|
|
729
729
|
key: Ve.nullish()
|
|
730
|
-
}), Ue = e.enum(/* @__PURE__ */ "api-key.created,api-key.deleted,approval-reminder.sent,credit-note.created,credit-note.updated,credit-note.finalized,credit-note.invoice-lines.updated,credit-note.deleted,credit-note.email-sent,customer.created,customer.updated,customer.synced,customer.deactivated,customer.reactivated,file.created,file.uploaded,issuer.updated,issuer.created,peppol-connection.updated,invoice-approval.approved,invoice-approval.cancelled,invoice-approval.created,invoice-approval.expired,invoice-approval.rejected,invoice-approval.sent,invoice-approval.superseded,invoice.attachments.updated,invoice.created,invoice.deleted,invoice.discount.applied,invoice.disputed-withdrawn,invoice.duplicated,invoice.email-sent,invoice.finalization-blocked,invoice.finalized,invoice.marked-as-disputed,invoice.marked-as-draft,invoice.marked-as-overdue,invoice.marked-as-paid,invoice.marked-as-prior-approval-required,invoice.marked-as-ready,invoice.pdf.generated,invoice.restored-from-pro-forma,invoice.unmarked-as-prior-approval-required,invoice.updated,invoice.delivery-updated,payment.created,payment.deleted,pro-forma.created,pro-forma.pdf.generated,notification.created,notification.read,notification.read.all,notification.unread,notification.types.migrated,notification.preference.preset.updated,role.created,role.deleted,role.renamed,role.permissions.updated,role.permissions.cache.cleared,test-notification.sent,user.created,user.updated,user.role-assigned,user.roles-set,user.notification.created,user.default-notification-preferences.assigned,user.assigned-as-admin,recipient.created,recipient.updated,recipient.default-set,recipient.deleted,approval-reminder-config.updated,reminder-config.updated,dunning-case.synced,dunning-case.closed,dunning-case.reminder.created,dunning-case.reminder.pdf.generated,dunning-case.reminder.retried,dunning-case.reminder.sent,tenant.created,tenant.updated,tenant.deactivated".split(",")), We = e.object({
|
|
730
|
+
}), Ue = e.enum(/* @__PURE__ */ "api-key.created,api-key.deleted,approval-reminder.sent,credit-note.created,credit-note.updated,credit-note.finalized,credit-note.invoice-lines.updated,credit-note.deleted,credit-note.email-sent,customer.created,customer.updated,customer.synced,customer.deactivated,customer.reactivated,file.created,file.uploaded,issuer.updated,issuer.created,peppol-connection.updated,invoice-approval.approved,invoice-approval.cancelled,invoice-approval.created,invoice-approval.expired,invoice-approval.rejected,invoice-approval.sent,invoice-approval.superseded,invoice-approval.updated,invoice.approval-mode-changed,invoice.attachments.updated,invoice.created,invoice.deleted,invoice.discount.applied,invoice.disputed-withdrawn,invoice.duplicated,invoice.email-sent,invoice.finalization-blocked,invoice.finalized,invoice.marked-as-disputed,invoice.marked-as-draft,invoice.marked-as-overdue,invoice.marked-as-paid,invoice.marked-as-prior-approval-required,invoice.marked-as-ready,invoice.pdf.generated,invoice.restored-from-pro-forma,invoice.unmarked-as-prior-approval-required,invoice.updated,invoice.delivery-updated,payment.created,payment.deleted,pro-forma.created,pro-forma.pdf.generated,notification.created,notification.read,notification.read.all,notification.unread,notification.types.migrated,notification.preference.preset.updated,role.created,role.deleted,role.renamed,role.permissions.updated,role.permissions.cache.cleared,test-notification.sent,user.created,user.updated,user.role-assigned,user.roles-set,user.notification.created,user.default-notification-preferences.assigned,user.assigned-as-admin,recipient.created,recipient.updated,recipient.default-set,recipient.deleted,approval-reminder-config.updated,approval-mail-template.updated,approval-follow-up-pause.created,approval-follow-up-pause.updated,approval-follow-up-pause.deleted,reminder-config.updated,dunning-case.synced,dunning-case.closed,dunning-case.reminder.created,dunning-case.reminder.pdf.generated,dunning-case.reminder.retried,dunning-case.reminder.sent,tenant.created,tenant.updated,tenant.deactivated".split(",")), We = e.object({
|
|
731
731
|
uuid: e.uuid(),
|
|
732
732
|
createdAt: e.iso.datetime(),
|
|
733
733
|
version: e.int().gte(0),
|
|
@@ -1007,7 +1007,7 @@ var At = e.object({
|
|
|
1007
1007
|
streetNumber: e.string().nullable(),
|
|
1008
1008
|
unit: e.string().nullable(),
|
|
1009
1009
|
coordinates: At.nullable()
|
|
1010
|
-
});
|
|
1010
|
+
}), x = e.enum(["pro_forma", "finalized"]);
|
|
1011
1011
|
e.object({
|
|
1012
1012
|
name: e.string(),
|
|
1013
1013
|
address: jt.nullable(),
|
|
@@ -1016,7 +1016,7 @@ e.object({
|
|
|
1016
1016
|
vatNumber: e.string().nullable(),
|
|
1017
1017
|
type: g,
|
|
1018
1018
|
locale: Ie,
|
|
1019
|
-
|
|
1019
|
+
approvalMode: x.nullish(),
|
|
1020
1020
|
approvalEmail: e.email().max(255).nullable(),
|
|
1021
1021
|
reference: e.string().nullish()
|
|
1022
1022
|
}), e.object({ uuid: e.uuid() }), e.object({
|
|
@@ -1027,7 +1027,7 @@ e.object({
|
|
|
1027
1027
|
var Mt = e.object({
|
|
1028
1028
|
longitude: e.number(),
|
|
1029
1029
|
latitude: e.number()
|
|
1030
|
-
}),
|
|
1030
|
+
}), S = e.object({
|
|
1031
1031
|
placeName: e.string().nullable(),
|
|
1032
1032
|
placeId: e.string().nullable(),
|
|
1033
1033
|
country: e.string().nullable(),
|
|
@@ -1049,22 +1049,22 @@ var Mt = e.object({
|
|
|
1049
1049
|
]), Ft = e.object({
|
|
1050
1050
|
value: e.number(),
|
|
1051
1051
|
unit: Pt
|
|
1052
|
-
}),
|
|
1052
|
+
}), C = e.object({
|
|
1053
1053
|
name: e.string().nullable(),
|
|
1054
1054
|
email: e.email(),
|
|
1055
1055
|
ccEmails: e.array(e.email()),
|
|
1056
1056
|
bccEmails: e.array(e.email())
|
|
1057
1057
|
}), It = e.object({
|
|
1058
|
-
invoice:
|
|
1059
|
-
creditNote:
|
|
1060
|
-
approval:
|
|
1061
|
-
dunning:
|
|
1058
|
+
invoice: C.nullable(),
|
|
1059
|
+
creditNote: C.nullable(),
|
|
1060
|
+
approval: C.nullable(),
|
|
1061
|
+
dunning: C.nullable()
|
|
1062
1062
|
}), Lt = e.object({
|
|
1063
1063
|
uuid: e.uuid(),
|
|
1064
1064
|
createdAt: e.iso.datetime(),
|
|
1065
1065
|
updatedAt: e.iso.datetime(),
|
|
1066
1066
|
name: e.string(),
|
|
1067
|
-
address:
|
|
1067
|
+
address: S.nullable(),
|
|
1068
1068
|
email: e.email().nullable(),
|
|
1069
1069
|
phone: e.string().nullable(),
|
|
1070
1070
|
vatNumber: e.string().nullable(),
|
|
@@ -1074,7 +1074,7 @@ var Mt = e.object({
|
|
|
1074
1074
|
currency: v,
|
|
1075
1075
|
isDeactivated: e.boolean(),
|
|
1076
1076
|
defaultPaymentTerm: Ft,
|
|
1077
|
-
|
|
1077
|
+
approvalMode: x.nullable(),
|
|
1078
1078
|
approvalEmail: e.email().nullable(),
|
|
1079
1079
|
contacts: It,
|
|
1080
1080
|
reference: e.string().nullable()
|
|
@@ -1089,7 +1089,7 @@ var Mt = e.object({
|
|
|
1089
1089
|
email: e.string().nullable(),
|
|
1090
1090
|
phone: e.string().nullable(),
|
|
1091
1091
|
vatNumber: e.string().nullable(),
|
|
1092
|
-
address:
|
|
1092
|
+
address: S,
|
|
1093
1093
|
source: Nt,
|
|
1094
1094
|
type: g,
|
|
1095
1095
|
isDeactivated: e.boolean()
|
|
@@ -1119,7 +1119,7 @@ e.object({
|
|
|
1119
1119
|
locale: Ie,
|
|
1120
1120
|
currency: v,
|
|
1121
1121
|
defaultPaymentTerm: Ft.optional(),
|
|
1122
|
-
|
|
1122
|
+
approvalMode: x.nullish(),
|
|
1123
1123
|
approvalEmail: e.email().max(255).nullable(),
|
|
1124
1124
|
reference: e.string().nullish()
|
|
1125
1125
|
}), e.object({
|
|
@@ -1208,7 +1208,7 @@ var Gt = e.enum([
|
|
|
1208
1208
|
name: e.string().nullable(),
|
|
1209
1209
|
phoneNumber: e.string().nullable(),
|
|
1210
1210
|
website: e.string().nullable(),
|
|
1211
|
-
address:
|
|
1211
|
+
address: S.nullable(),
|
|
1212
1212
|
vatNumber: e.string().nullable(),
|
|
1213
1213
|
bic: e.string().nullable(),
|
|
1214
1214
|
bankAccountNumber: e.string().nullable(),
|
|
@@ -1253,23 +1253,23 @@ e.object({
|
|
|
1253
1253
|
status: e.enum(["404"]),
|
|
1254
1254
|
code: e.enum(["invoice_not_found"])
|
|
1255
1255
|
});
|
|
1256
|
-
var
|
|
1256
|
+
var w = e.object({
|
|
1257
1257
|
definitionUuid: e.uuid(),
|
|
1258
1258
|
type: e.enum(["text"]),
|
|
1259
1259
|
value: e.string()
|
|
1260
|
-
}),
|
|
1260
|
+
}), T = e.object({
|
|
1261
1261
|
definitionUuid: e.uuid(),
|
|
1262
1262
|
type: e.enum(["text_array"]),
|
|
1263
1263
|
value: e.array(e.string())
|
|
1264
|
-
}),
|
|
1264
|
+
}), E = e.object({
|
|
1265
1265
|
definitionUuid: e.uuid(),
|
|
1266
1266
|
type: e.enum(["number"]),
|
|
1267
1267
|
value: e.number()
|
|
1268
|
-
}),
|
|
1268
|
+
}), D = e.object({
|
|
1269
1269
|
definitionUuid: e.uuid(),
|
|
1270
1270
|
type: e.enum(["boolean"]),
|
|
1271
1271
|
value: e.boolean()
|
|
1272
|
-
}),
|
|
1272
|
+
}), O = e.object({
|
|
1273
1273
|
definitionUuid: e.uuid(),
|
|
1274
1274
|
type: e.enum(["date"]),
|
|
1275
1275
|
value: e.union([
|
|
@@ -1277,23 +1277,23 @@ var C = e.object({
|
|
|
1277
1277
|
e.enum(["infinity"]),
|
|
1278
1278
|
e.enum(["-infinity"])
|
|
1279
1279
|
])
|
|
1280
|
-
}),
|
|
1280
|
+
}), k = e.object({
|
|
1281
1281
|
definitionUuid: e.uuid(),
|
|
1282
1282
|
type: e.enum(["timestamp"]),
|
|
1283
1283
|
value: e.iso.datetime()
|
|
1284
|
-
}),
|
|
1284
|
+
}), A = e.object({
|
|
1285
1285
|
definitionUuid: e.uuid(),
|
|
1286
1286
|
type: e.enum(["single_select"]),
|
|
1287
1287
|
value: e.string()
|
|
1288
|
-
}),
|
|
1288
|
+
}), j = e.object({
|
|
1289
1289
|
definitionUuid: e.uuid(),
|
|
1290
1290
|
type: e.enum(["multi_select"]),
|
|
1291
1291
|
value: e.array(e.string())
|
|
1292
|
-
}),
|
|
1292
|
+
}), M = e.object({
|
|
1293
1293
|
definitionUuid: e.uuid(),
|
|
1294
1294
|
type: e.enum(["monetary"]),
|
|
1295
1295
|
value: y
|
|
1296
|
-
}),
|
|
1296
|
+
}), N = e.object({
|
|
1297
1297
|
definitionUuid: e.uuid(),
|
|
1298
1298
|
type: e.enum(["reference"]),
|
|
1299
1299
|
value: e.string()
|
|
@@ -1303,7 +1303,7 @@ var C = e.object({
|
|
|
1303
1303
|
email: e.email().nullable(),
|
|
1304
1304
|
phoneNumber: e.string().nullable(),
|
|
1305
1305
|
website: e.string().nullable(),
|
|
1306
|
-
address:
|
|
1306
|
+
address: S.nullable(),
|
|
1307
1307
|
vatNumber: e.string().nullable(),
|
|
1308
1308
|
bankAccountNumber: e.string().nullable(),
|
|
1309
1309
|
alternativeBankAccountNumber: e.string().nullable()
|
|
@@ -1316,17 +1316,17 @@ var C = e.object({
|
|
|
1316
1316
|
name: e.string().nullable(),
|
|
1317
1317
|
email: e.email().nullable(),
|
|
1318
1318
|
phoneNumber: e.string().nullable(),
|
|
1319
|
-
address:
|
|
1319
|
+
address: S.nullable(),
|
|
1320
1320
|
vatNumber: e.string().nullable(),
|
|
1321
1321
|
type: g
|
|
1322
|
-
}),
|
|
1322
|
+
}), P = e.enum([
|
|
1323
1323
|
"draft",
|
|
1324
1324
|
"ready",
|
|
1325
1325
|
"finalized"
|
|
1326
1326
|
]), nn = e.object({
|
|
1327
1327
|
locale: e.string(),
|
|
1328
1328
|
value: e.string()
|
|
1329
|
-
}),
|
|
1329
|
+
}), F = e.object({ items: e.array(nn) }), rn = e.enum([
|
|
1330
1330
|
"text",
|
|
1331
1331
|
"text_array",
|
|
1332
1332
|
"number",
|
|
@@ -1339,7 +1339,7 @@ var C = e.object({
|
|
|
1339
1339
|
"reference"
|
|
1340
1340
|
]), an = e.object({
|
|
1341
1341
|
value: e.string(),
|
|
1342
|
-
label:
|
|
1342
|
+
label: F,
|
|
1343
1343
|
order: e.number()
|
|
1344
1344
|
}), on = e.object({
|
|
1345
1345
|
key: e.string(),
|
|
@@ -1349,19 +1349,19 @@ var C = e.object({
|
|
|
1349
1349
|
tenantUuid: e.uuid().nullable(),
|
|
1350
1350
|
entityType: e.string(),
|
|
1351
1351
|
key: e.string(),
|
|
1352
|
-
label:
|
|
1353
|
-
description:
|
|
1352
|
+
label: F,
|
|
1353
|
+
description: F.nullable(),
|
|
1354
1354
|
type: rn,
|
|
1355
1355
|
isRequired: e.boolean(),
|
|
1356
1356
|
choices: e.array(an).nullable(),
|
|
1357
1357
|
rules: e.record(e.string(), e.unknown()).nullable(),
|
|
1358
1358
|
views: e.array(on)
|
|
1359
|
-
}),
|
|
1359
|
+
}), I = e.enum([
|
|
1360
1360
|
"0",
|
|
1361
1361
|
"6",
|
|
1362
1362
|
"12",
|
|
1363
1363
|
"21"
|
|
1364
|
-
]), cn = e.enum(["percentage", "amount"]),
|
|
1364
|
+
]), cn = e.enum(["percentage", "amount"]), L = e.object({
|
|
1365
1365
|
type: cn,
|
|
1366
1366
|
amount: y.nullable(),
|
|
1367
1367
|
percentage: e.number().nullable(),
|
|
@@ -1384,7 +1384,6 @@ var C = e.object({
|
|
|
1384
1384
|
name: e.string(),
|
|
1385
1385
|
description: e.string().nullable(),
|
|
1386
1386
|
customFields: e.array(e.union([
|
|
1387
|
-
C,
|
|
1388
1387
|
w,
|
|
1389
1388
|
T,
|
|
1390
1389
|
E,
|
|
@@ -1393,15 +1392,16 @@ var C = e.object({
|
|
|
1393
1392
|
k,
|
|
1394
1393
|
A,
|
|
1395
1394
|
j,
|
|
1396
|
-
M
|
|
1395
|
+
M,
|
|
1396
|
+
N
|
|
1397
1397
|
])),
|
|
1398
1398
|
quantity: e.number(),
|
|
1399
1399
|
unitPrice: y,
|
|
1400
|
-
vatRate:
|
|
1400
|
+
vatRate: I,
|
|
1401
1401
|
vatRatePercentage: e.number(),
|
|
1402
1402
|
netAmount: y,
|
|
1403
1403
|
grossAmount: y,
|
|
1404
|
-
discount:
|
|
1404
|
+
discount: L.nullable(),
|
|
1405
1405
|
unit: ln,
|
|
1406
1406
|
isDiscount: e.boolean()
|
|
1407
1407
|
}), dn = e.object({
|
|
@@ -1410,7 +1410,6 @@ var C = e.object({
|
|
|
1410
1410
|
name: e.string(),
|
|
1411
1411
|
description: e.string().nullable(),
|
|
1412
1412
|
customFields: e.array(e.union([
|
|
1413
|
-
C,
|
|
1414
1413
|
w,
|
|
1415
1414
|
T,
|
|
1416
1415
|
E,
|
|
@@ -1419,12 +1418,14 @@ var C = e.object({
|
|
|
1419
1418
|
k,
|
|
1420
1419
|
A,
|
|
1421
1420
|
j,
|
|
1422
|
-
M
|
|
1421
|
+
M,
|
|
1422
|
+
N
|
|
1423
1423
|
])),
|
|
1424
1424
|
lines: e.array(un),
|
|
1425
|
-
groups: e.array(e.lazy(() => dn))
|
|
1425
|
+
groups: e.array(e.lazy(() => dn)),
|
|
1426
|
+
grossTotal: y
|
|
1426
1427
|
}), fn = e.object({
|
|
1427
|
-
vatRate:
|
|
1428
|
+
vatRate: I,
|
|
1428
1429
|
netAmount: y,
|
|
1429
1430
|
vatAmount: y
|
|
1430
1431
|
}), pn = e.object({
|
|
@@ -1451,13 +1452,12 @@ var C = e.object({
|
|
|
1451
1452
|
recipient: en.nullable(),
|
|
1452
1453
|
customer: tn,
|
|
1453
1454
|
status: _,
|
|
1454
|
-
lifecycleStatus:
|
|
1455
|
+
lifecycleStatus: P,
|
|
1455
1456
|
paymentReference: e.string().nullable(),
|
|
1456
1457
|
subject: e.string().nullable(),
|
|
1457
1458
|
poNumber: e.string().nullable(),
|
|
1458
1459
|
reference: e.string().nullable(),
|
|
1459
1460
|
customFields: e.array(e.union([
|
|
1460
|
-
C,
|
|
1461
1461
|
w,
|
|
1462
1462
|
T,
|
|
1463
1463
|
E,
|
|
@@ -1466,7 +1466,8 @@ var C = e.object({
|
|
|
1466
1466
|
k,
|
|
1467
1467
|
A,
|
|
1468
1468
|
j,
|
|
1469
|
-
M
|
|
1469
|
+
M,
|
|
1470
|
+
N
|
|
1470
1471
|
])),
|
|
1471
1472
|
customFieldDefinitions: e.array(sn),
|
|
1472
1473
|
ungroupedLines: e.array(un),
|
|
@@ -1477,7 +1478,7 @@ var C = e.object({
|
|
|
1477
1478
|
effectiveNet: y,
|
|
1478
1479
|
vatAmount: y,
|
|
1479
1480
|
totalDiscountAmount: y.nullable(),
|
|
1480
|
-
globalDiscount:
|
|
1481
|
+
globalDiscount: L.nullable(),
|
|
1481
1482
|
advancePaymentAmount: y.nullable(),
|
|
1482
1483
|
amountDue: y,
|
|
1483
1484
|
originalInvoice: pn.nullable(),
|
|
@@ -1516,12 +1517,11 @@ var gn = e.object({
|
|
|
1516
1517
|
position: e.int(),
|
|
1517
1518
|
quantity: e.number().lte(1e4),
|
|
1518
1519
|
unitPrice: y,
|
|
1519
|
-
vatRate:
|
|
1520
|
-
discount:
|
|
1520
|
+
vatRate: I,
|
|
1521
|
+
discount: L.nullable(),
|
|
1521
1522
|
unit: ln,
|
|
1522
1523
|
isDiscount: e.boolean(),
|
|
1523
1524
|
customFields: e.array(e.union([
|
|
1524
|
-
C,
|
|
1525
1525
|
w,
|
|
1526
1526
|
T,
|
|
1527
1527
|
E,
|
|
@@ -1530,7 +1530,8 @@ var gn = e.object({
|
|
|
1530
1530
|
k,
|
|
1531
1531
|
A,
|
|
1532
1532
|
j,
|
|
1533
|
-
M
|
|
1533
|
+
M,
|
|
1534
|
+
N
|
|
1534
1535
|
])).optional()
|
|
1535
1536
|
}), vn = e.object({
|
|
1536
1537
|
name: e.string(),
|
|
@@ -1539,7 +1540,6 @@ var gn = e.object({
|
|
|
1539
1540
|
position: e.int(),
|
|
1540
1541
|
lines: e.array(_n),
|
|
1541
1542
|
customFields: e.array(e.union([
|
|
1542
|
-
C,
|
|
1543
1543
|
w,
|
|
1544
1544
|
T,
|
|
1545
1545
|
E,
|
|
@@ -1548,7 +1548,8 @@ var gn = e.object({
|
|
|
1548
1548
|
k,
|
|
1549
1549
|
A,
|
|
1550
1550
|
j,
|
|
1551
|
-
M
|
|
1551
|
+
M,
|
|
1552
|
+
N
|
|
1552
1553
|
])).optional(),
|
|
1553
1554
|
groups: e.array(e.lazy(() => vn)).optional()
|
|
1554
1555
|
}), yn = e.object({
|
|
@@ -1556,7 +1557,7 @@ var gn = e.object({
|
|
|
1556
1557
|
ungroupedLines: e.array(_n)
|
|
1557
1558
|
}), bn = e.object({
|
|
1558
1559
|
customerUuid: e.uuid(),
|
|
1559
|
-
|
|
1560
|
+
approvalMode: x.nullish(),
|
|
1560
1561
|
isExternallyCreated: e.boolean().optional(),
|
|
1561
1562
|
contactOverride: gn.optional(),
|
|
1562
1563
|
issuedOn: e.iso.date().optional(),
|
|
@@ -1568,7 +1569,6 @@ var gn = e.object({
|
|
|
1568
1569
|
externalRemarks: e.string().nullish(),
|
|
1569
1570
|
reference: e.string().nullish(),
|
|
1570
1571
|
customFields: e.array(e.union([
|
|
1571
|
-
C,
|
|
1572
1572
|
w,
|
|
1573
1573
|
T,
|
|
1574
1574
|
E,
|
|
@@ -1577,7 +1577,8 @@ var gn = e.object({
|
|
|
1577
1577
|
k,
|
|
1578
1578
|
A,
|
|
1579
1579
|
j,
|
|
1580
|
-
M
|
|
1580
|
+
M,
|
|
1581
|
+
N
|
|
1581
1582
|
])).optional(),
|
|
1582
1583
|
lines: yn.optional()
|
|
1583
1584
|
}), xn = e.object({ uuid: e.uuid() }), Sn = e.object({
|
|
@@ -1586,7 +1587,7 @@ var gn = e.object({
|
|
|
1586
1587
|
email: e.email().nullable(),
|
|
1587
1588
|
phoneNumber: e.string().nullable(),
|
|
1588
1589
|
website: e.string().nullable(),
|
|
1589
|
-
address:
|
|
1590
|
+
address: S.nullable(),
|
|
1590
1591
|
vatNumber: e.string().nullable(),
|
|
1591
1592
|
bankAccountNumber: e.string().nullable(),
|
|
1592
1593
|
alternativeBankAccountNumber: e.string().nullable()
|
|
@@ -1595,15 +1596,15 @@ var gn = e.object({
|
|
|
1595
1596
|
name: e.string().nullable(),
|
|
1596
1597
|
email: e.email().nullable()
|
|
1597
1598
|
}), wn = e.object({
|
|
1598
|
-
billingDocument:
|
|
1599
|
-
approval:
|
|
1599
|
+
billingDocument: C.nullable(),
|
|
1600
|
+
approval: C.nullable()
|
|
1600
1601
|
}), Tn = e.object({
|
|
1601
1602
|
uuid: e.uuid(),
|
|
1602
1603
|
name: e.string().nullable(),
|
|
1603
1604
|
email: e.email().nullable(),
|
|
1604
1605
|
externalId: e.string().nullable(),
|
|
1605
1606
|
phoneNumber: e.string().nullable(),
|
|
1606
|
-
address:
|
|
1607
|
+
address: S.nullable(),
|
|
1607
1608
|
vatNumber: e.string().nullable(),
|
|
1608
1609
|
type: g,
|
|
1609
1610
|
approvalEmail: e.email().nullable()
|
|
@@ -1619,7 +1620,6 @@ var gn = e.object({
|
|
|
1619
1620
|
description: e.string().nullable(),
|
|
1620
1621
|
externalId: e.string().nullable(),
|
|
1621
1622
|
customFields: e.array(e.union([
|
|
1622
|
-
C,
|
|
1623
1623
|
w,
|
|
1624
1624
|
T,
|
|
1625
1625
|
E,
|
|
@@ -1628,15 +1628,16 @@ var gn = e.object({
|
|
|
1628
1628
|
k,
|
|
1629
1629
|
A,
|
|
1630
1630
|
j,
|
|
1631
|
-
M
|
|
1631
|
+
M,
|
|
1632
|
+
N
|
|
1632
1633
|
])),
|
|
1633
1634
|
quantity: e.number(),
|
|
1634
1635
|
unitPrice: y,
|
|
1635
|
-
vatRate:
|
|
1636
|
+
vatRate: I,
|
|
1636
1637
|
vatRatePercentage: e.number(),
|
|
1637
1638
|
netAmount: y,
|
|
1638
1639
|
grossAmount: y,
|
|
1639
|
-
discount:
|
|
1640
|
+
discount: L.nullable(),
|
|
1640
1641
|
unit: ln,
|
|
1641
1642
|
isDiscount: e.boolean(),
|
|
1642
1643
|
originalLine: En.nullable()
|
|
@@ -1647,7 +1648,6 @@ var gn = e.object({
|
|
|
1647
1648
|
description: e.string().nullable(),
|
|
1648
1649
|
externalId: e.string().nullable(),
|
|
1649
1650
|
customFields: e.array(e.union([
|
|
1650
|
-
C,
|
|
1651
1651
|
w,
|
|
1652
1652
|
T,
|
|
1653
1653
|
E,
|
|
@@ -1656,12 +1656,14 @@ var gn = e.object({
|
|
|
1656
1656
|
k,
|
|
1657
1657
|
A,
|
|
1658
1658
|
j,
|
|
1659
|
-
M
|
|
1659
|
+
M,
|
|
1660
|
+
N
|
|
1660
1661
|
])),
|
|
1661
1662
|
lines: e.array(Dn),
|
|
1662
|
-
groups: e.array(e.lazy(() => On))
|
|
1663
|
+
groups: e.array(e.lazy(() => On)),
|
|
1664
|
+
grossTotal: y
|
|
1663
1665
|
}), kn = e.object({
|
|
1664
|
-
vatRate:
|
|
1666
|
+
vatRate: I,
|
|
1665
1667
|
netAmount: y,
|
|
1666
1668
|
vatAmount: y
|
|
1667
1669
|
}), An = e.object({
|
|
@@ -1688,7 +1690,7 @@ var gn = e.object({
|
|
|
1688
1690
|
firstName: e.string().nullable(),
|
|
1689
1691
|
lastName: e.string().nullable(),
|
|
1690
1692
|
type: Nn
|
|
1691
|
-
}),
|
|
1693
|
+
}), R = e.enum([
|
|
1692
1694
|
"unpaid",
|
|
1693
1695
|
"partially_paid",
|
|
1694
1696
|
"paid",
|
|
@@ -1716,20 +1718,21 @@ var gn = e.object({
|
|
|
1716
1718
|
"missing_or_incorrect_attachment",
|
|
1717
1719
|
"missing_or_incorrect_po_reference",
|
|
1718
1720
|
"other"
|
|
1719
|
-
]),
|
|
1721
|
+
]), Bn = e.union([e.literal(1), e.literal(2)]), Vn = e.object({
|
|
1720
1722
|
uuid: e.uuid(),
|
|
1723
|
+
mode: x,
|
|
1721
1724
|
sentAt: e.string().nullable(),
|
|
1722
1725
|
status: Rn,
|
|
1723
1726
|
answeredAt: e.string().nullable(),
|
|
1724
|
-
|
|
1727
|
+
internalNote: e.string().nullable(),
|
|
1728
|
+
externalNote: e.string().nullable(),
|
|
1725
1729
|
proFormaFile: An.nullable(),
|
|
1726
|
-
|
|
1730
|
+
files: e.array(An),
|
|
1727
1731
|
isActive: e.boolean(),
|
|
1728
|
-
remarks: e.string().nullable(),
|
|
1729
1732
|
rejectionReason: zn.nullable(),
|
|
1730
|
-
level:
|
|
1733
|
+
level: Bn.nullable(),
|
|
1731
1734
|
reminderSentAt: e.iso.datetime().nullable()
|
|
1732
|
-
}),
|
|
1735
|
+
}), Hn = e.object({
|
|
1733
1736
|
uuid: e.uuid(),
|
|
1734
1737
|
sequence: e.string().nullable(),
|
|
1735
1738
|
type: Qt,
|
|
@@ -1740,17 +1743,16 @@ var gn = e.object({
|
|
|
1740
1743
|
deliveredOn: e.iso.date().nullable(),
|
|
1741
1744
|
issuer: Sn,
|
|
1742
1745
|
recipient: Cn.nullable(),
|
|
1743
|
-
billingDocumentRecipient:
|
|
1744
|
-
approvalRecipient:
|
|
1746
|
+
billingDocumentRecipient: C.nullable(),
|
|
1747
|
+
approvalRecipient: C.nullable(),
|
|
1745
1748
|
contactOverride: wn,
|
|
1746
1749
|
customer: Tn,
|
|
1747
1750
|
status: _,
|
|
1748
|
-
lifecycleStatus:
|
|
1751
|
+
lifecycleStatus: P,
|
|
1749
1752
|
paymentReference: e.string().nullable(),
|
|
1750
1753
|
subject: e.string().nullable(),
|
|
1751
1754
|
poNumber: e.string().nullable(),
|
|
1752
1755
|
customFields: e.array(e.union([
|
|
1753
|
-
C,
|
|
1754
1756
|
w,
|
|
1755
1757
|
T,
|
|
1756
1758
|
E,
|
|
@@ -1759,7 +1761,8 @@ var gn = e.object({
|
|
|
1759
1761
|
k,
|
|
1760
1762
|
A,
|
|
1761
1763
|
j,
|
|
1762
|
-
M
|
|
1764
|
+
M,
|
|
1765
|
+
N
|
|
1763
1766
|
])),
|
|
1764
1767
|
ungroupedLines: e.array(Dn),
|
|
1765
1768
|
groups: e.array(On),
|
|
@@ -1769,10 +1772,9 @@ var gn = e.object({
|
|
|
1769
1772
|
effectiveNet: y,
|
|
1770
1773
|
vatAmount: y,
|
|
1771
1774
|
totalDiscountAmount: y.nullable(),
|
|
1772
|
-
globalDiscount:
|
|
1775
|
+
globalDiscount: L.nullable(),
|
|
1773
1776
|
attachments: e.array(An),
|
|
1774
|
-
|
|
1775
|
-
rejectionFiles: e.array(An),
|
|
1777
|
+
approvalFiles: e.array(An),
|
|
1776
1778
|
creditNotes: e.array(jn),
|
|
1777
1779
|
originalInvoice: jn.nullable(),
|
|
1778
1780
|
preparedBy: Mn,
|
|
@@ -1780,7 +1782,7 @@ var gn = e.object({
|
|
|
1780
1782
|
file: An.nullable(),
|
|
1781
1783
|
externalRemarks: e.string().nullable(),
|
|
1782
1784
|
paidAmount: y.nullable(),
|
|
1783
|
-
settlementStatus:
|
|
1785
|
+
settlementStatus: R,
|
|
1784
1786
|
balanceDueAmount: y.nullable(),
|
|
1785
1787
|
advancePaymentAmount: y.nullable(),
|
|
1786
1788
|
amountDue: y,
|
|
@@ -1790,20 +1792,20 @@ var gn = e.object({
|
|
|
1790
1792
|
isOverdue: e.boolean(),
|
|
1791
1793
|
reminders: e.array(Fn),
|
|
1792
1794
|
reminderConfigs: e.array(Ln),
|
|
1793
|
-
|
|
1794
|
-
approval: e.array(
|
|
1795
|
+
approvalMode: x.nullable(),
|
|
1796
|
+
approval: e.array(Vn),
|
|
1795
1797
|
hasChangesSinceApprovalSent: e.boolean(),
|
|
1796
1798
|
isEditable: e.boolean(),
|
|
1797
1799
|
isExternallyCreated: e.boolean(),
|
|
1798
1800
|
reference: e.string().nullable()
|
|
1799
|
-
}),
|
|
1801
|
+
}), Un = e.enum([
|
|
1800
1802
|
"created_at",
|
|
1801
1803
|
"issued_on",
|
|
1802
1804
|
"sequence",
|
|
1803
1805
|
"customer",
|
|
1804
1806
|
"netAmount"
|
|
1805
|
-
]),
|
|
1806
|
-
key:
|
|
1807
|
+
]), Wn = e.object({
|
|
1808
|
+
key: Un,
|
|
1807
1809
|
order: bt
|
|
1808
1810
|
}), z = e.object({
|
|
1809
1811
|
definitionUuid: e.uuid(),
|
|
@@ -1852,8 +1854,8 @@ var gn = e.object({
|
|
|
1852
1854
|
e.enum(["infinity"]),
|
|
1853
1855
|
e.enum(["-infinity"])
|
|
1854
1856
|
])
|
|
1855
|
-
}),
|
|
1856
|
-
scope:
|
|
1857
|
+
}), Gn = e.enum(["include", "exclude"]), Y = e.object({
|
|
1858
|
+
scope: Gn,
|
|
1857
1859
|
values: e.array(e.uuid())
|
|
1858
1860
|
}), X = e.enum([
|
|
1859
1861
|
"no_approval_required",
|
|
@@ -1863,16 +1865,16 @@ var gn = e.object({
|
|
|
1863
1865
|
"approved",
|
|
1864
1866
|
"rejected",
|
|
1865
1867
|
"expired"
|
|
1866
|
-
]),
|
|
1868
|
+
]), Kn = e.object({
|
|
1867
1869
|
statuses: e.array(_).optional(),
|
|
1868
|
-
lifecycleStatuses: e.array(
|
|
1870
|
+
lifecycleStatuses: e.array(P).optional(),
|
|
1869
1871
|
customerUuids: e.array(e.uuid()).optional(),
|
|
1870
1872
|
dueOnRange: J.optional(),
|
|
1871
1873
|
issuedOnRange: J.optional(),
|
|
1872
1874
|
invoiceUuids: Y.optional(),
|
|
1873
1875
|
isDisputed: e.boolean().optional(),
|
|
1874
1876
|
isOverdue: e.boolean().optional(),
|
|
1875
|
-
settlementStatuses: e.array(
|
|
1877
|
+
settlementStatuses: e.array(R).optional(),
|
|
1876
1878
|
customerExternalIds: e.array(e.string()).optional(),
|
|
1877
1879
|
isOutstanding: e.boolean().optional(),
|
|
1878
1880
|
customFields: e.array(e.union([
|
|
@@ -1889,38 +1891,38 @@ var gn = e.object({
|
|
|
1889
1891
|
hasChangesSinceApprovalSent: e.boolean().optional(),
|
|
1890
1892
|
approvalStatuses: e.array(X).optional(),
|
|
1891
1893
|
isApprovalCancelled: e.boolean().optional(),
|
|
1892
|
-
isExternallyCreated: e.boolean().optional()
|
|
1893
|
-
|
|
1894
|
+
isExternallyCreated: e.boolean().optional(),
|
|
1895
|
+
poNumber: e.string().optional()
|
|
1896
|
+
}), qn = e.object({
|
|
1894
1897
|
uuid: e.uuid(),
|
|
1895
1898
|
externalId: e.string().nullable(),
|
|
1896
1899
|
name: e.string()
|
|
1897
|
-
}),
|
|
1900
|
+
}), Jn = e.object({
|
|
1898
1901
|
status: Rn,
|
|
1899
|
-
level:
|
|
1902
|
+
level: Bn.nullable(),
|
|
1900
1903
|
sentAt: e.iso.datetime().nullable(),
|
|
1901
1904
|
reminderSentAt: e.iso.datetime().nullable()
|
|
1902
|
-
}),
|
|
1905
|
+
}), Yn = e.object({
|
|
1903
1906
|
uuid: e.uuid(),
|
|
1904
1907
|
type: Qt,
|
|
1905
1908
|
createdAt: e.iso.datetime(),
|
|
1906
1909
|
issuedOn: e.iso.date().nullable(),
|
|
1907
1910
|
dueOn: e.iso.date().nullable(),
|
|
1908
1911
|
subject: e.string().nullable(),
|
|
1909
|
-
customer:
|
|
1912
|
+
customer: qn,
|
|
1910
1913
|
status: _,
|
|
1911
|
-
lifecycleStatus:
|
|
1914
|
+
lifecycleStatus: P,
|
|
1912
1915
|
netAmount: y,
|
|
1913
1916
|
grossAmount: y,
|
|
1914
1917
|
sequence: e.string().nullable(),
|
|
1915
1918
|
paidAmount: y.nullable(),
|
|
1916
1919
|
totalCreditedAmount: y.nullable(),
|
|
1917
|
-
settlementStatus:
|
|
1920
|
+
settlementStatus: R,
|
|
1918
1921
|
balanceDueAmount: y.nullable(),
|
|
1919
1922
|
isDisputed: e.boolean(),
|
|
1920
1923
|
isOverdue: e.boolean(),
|
|
1921
1924
|
deliveryStatus: mn,
|
|
1922
1925
|
customFields: e.array(e.union([
|
|
1923
|
-
C,
|
|
1924
1926
|
w,
|
|
1925
1927
|
T,
|
|
1926
1928
|
E,
|
|
@@ -1929,13 +1931,14 @@ var gn = e.object({
|
|
|
1929
1931
|
k,
|
|
1930
1932
|
A,
|
|
1931
1933
|
j,
|
|
1932
|
-
M
|
|
1934
|
+
M,
|
|
1935
|
+
N
|
|
1933
1936
|
])),
|
|
1934
|
-
|
|
1937
|
+
approvalMode: x.nullable(),
|
|
1935
1938
|
hasChangesSinceApprovalSent: e.boolean(),
|
|
1936
|
-
approval:
|
|
1937
|
-
}),
|
|
1938
|
-
items: e.array(
|
|
1939
|
+
approval: Jn.nullable()
|
|
1940
|
+
}), Xn = e.object({
|
|
1941
|
+
items: e.array(Yn),
|
|
1939
1942
|
meta: h
|
|
1940
1943
|
});
|
|
1941
1944
|
e.object({
|
|
@@ -1951,7 +1954,7 @@ e.object({
|
|
|
1951
1954
|
status: e.enum(["403"]),
|
|
1952
1955
|
code: e.enum(["externally_created_invoice_not_editable"])
|
|
1953
1956
|
});
|
|
1954
|
-
var
|
|
1957
|
+
var Zn = e.object({
|
|
1955
1958
|
issuedOn: e.iso.date(),
|
|
1956
1959
|
deliveredOn: e.iso.date().nullable(),
|
|
1957
1960
|
dueOn: e.iso.date(),
|
|
@@ -1963,7 +1966,6 @@ var Xn = e.object({
|
|
|
1963
1966
|
externalRemarks: e.string().nullable(),
|
|
1964
1967
|
customerUuid: e.uuid().optional(),
|
|
1965
1968
|
customFields: e.array(e.union([
|
|
1966
|
-
C,
|
|
1967
1969
|
w,
|
|
1968
1970
|
T,
|
|
1969
1971
|
E,
|
|
@@ -1972,7 +1974,8 @@ var Xn = e.object({
|
|
|
1972
1974
|
k,
|
|
1973
1975
|
A,
|
|
1974
1976
|
j,
|
|
1975
|
-
M
|
|
1977
|
+
M,
|
|
1978
|
+
N
|
|
1976
1979
|
])).optional(),
|
|
1977
1980
|
reference: e.string().nullish()
|
|
1978
1981
|
});
|
|
@@ -1984,15 +1987,19 @@ e.object({
|
|
|
1984
1987
|
detail: e.string().optional(),
|
|
1985
1988
|
status: e.enum(["409"]),
|
|
1986
1989
|
code: e.enum(["global_discount_exceeds_total_net"])
|
|
1987
|
-
}), e.object({ discount:
|
|
1988
|
-
var
|
|
1990
|
+
}), e.object({ discount: L.nullable() });
|
|
1991
|
+
var Qn = e.object({ discount: L });
|
|
1989
1992
|
e.object({
|
|
1990
1993
|
detail: e.string().optional(),
|
|
1991
1994
|
status: e.enum(["409"]),
|
|
1992
1995
|
code: e.enum(["file_unconfirmed"])
|
|
1993
1996
|
});
|
|
1994
|
-
var
|
|
1997
|
+
var $n = e.object({ fileUuids: e.array(e.uuid()) });
|
|
1995
1998
|
e.object({
|
|
1999
|
+
detail: e.string().optional(),
|
|
2000
|
+
status: e.enum(["409"]),
|
|
2001
|
+
code: e.enum(["customer_has_no_approval_email"])
|
|
2002
|
+
}), e.object({
|
|
1996
2003
|
detail: e.string().optional(),
|
|
1997
2004
|
status: e.enum(["404"]),
|
|
1998
2005
|
code: e.enum(["invoice_sequence_counter_not_found"])
|
|
@@ -2005,49 +2012,49 @@ e.object({
|
|
|
2005
2012
|
status: e.enum(["409"]),
|
|
2006
2013
|
code: e.enum(["invoice_already_finalized"])
|
|
2007
2014
|
});
|
|
2008
|
-
var
|
|
2015
|
+
var er = e.object({
|
|
2009
2016
|
approvalStatus: Rn.nullable(),
|
|
2010
|
-
level:
|
|
2017
|
+
level: Bn.nullable()
|
|
2011
2018
|
});
|
|
2012
2019
|
e.object({
|
|
2013
2020
|
detail: e.string().optional(),
|
|
2014
2021
|
status: e.enum(["409"]),
|
|
2015
2022
|
code: e.enum(["invoice_finalization_requires_approval"]),
|
|
2016
|
-
meta:
|
|
2023
|
+
meta: er
|
|
2017
2024
|
}), e.object({
|
|
2018
2025
|
detail: e.string().optional(),
|
|
2019
2026
|
status: e.enum(["400"]),
|
|
2020
2027
|
code: e.enum(["invoice_issued_on_in_future"])
|
|
2021
2028
|
});
|
|
2022
|
-
var
|
|
2029
|
+
var tr = e.object({ lastIssuedOn: e.iso.date() });
|
|
2023
2030
|
e.object({
|
|
2024
2031
|
detail: e.string().optional(),
|
|
2025
2032
|
status: e.enum(["409"]),
|
|
2026
2033
|
code: e.enum(["invoice_issued_on_before_last_issued"]),
|
|
2027
|
-
meta:
|
|
2034
|
+
meta: tr
|
|
2028
2035
|
});
|
|
2029
|
-
var
|
|
2036
|
+
var nr = e.object({ periodEndedOn: e.iso.date() });
|
|
2030
2037
|
e.object({
|
|
2031
2038
|
detail: e.string().optional(),
|
|
2032
2039
|
status: e.enum(["409"]),
|
|
2033
2040
|
code: e.enum(["invoice_issued_on_in_closed_period"]),
|
|
2034
|
-
meta:
|
|
2041
|
+
meta: nr
|
|
2035
2042
|
});
|
|
2036
|
-
var
|
|
2043
|
+
var rr = e.enum([
|
|
2037
2044
|
"missing_company_identity",
|
|
2038
2045
|
"missing_purchase_order_reference",
|
|
2039
2046
|
"invalid_invoice_lines",
|
|
2040
2047
|
"zero_vat_requires_explicit_tax_category",
|
|
2041
2048
|
"missing_payment_account",
|
|
2042
2049
|
"incomplete_address"
|
|
2043
|
-
]),
|
|
2050
|
+
]), ir = e.object({ reasons: e.array(rr) });
|
|
2044
2051
|
e.object({
|
|
2045
2052
|
detail: e.string().optional(),
|
|
2046
2053
|
status: e.enum(["400"]),
|
|
2047
2054
|
code: e.enum(["invoice_not_peppol_compliant"]),
|
|
2048
|
-
meta:
|
|
2055
|
+
meta: ir
|
|
2049
2056
|
});
|
|
2050
|
-
var
|
|
2057
|
+
var ar = e.object({ sendOnFinalization: e.boolean().optional() });
|
|
2051
2058
|
e.object({
|
|
2052
2059
|
detail: e.string().optional(),
|
|
2053
2060
|
status: e.enum(["409"]),
|
|
@@ -2061,25 +2068,24 @@ e.object({
|
|
|
2061
2068
|
status: e.enum(["409"]),
|
|
2062
2069
|
code: e.enum(["invoice_fully_credited"])
|
|
2063
2070
|
});
|
|
2064
|
-
var
|
|
2071
|
+
var or = e.object({ uuid: e.uuid() });
|
|
2065
2072
|
e.object({
|
|
2066
2073
|
detail: e.string().optional(),
|
|
2067
2074
|
status: e.enum(["409"]),
|
|
2068
2075
|
code: e.enum(["invoice_not_credit_note"])
|
|
2069
2076
|
});
|
|
2070
|
-
var
|
|
2077
|
+
var sr = e.object({
|
|
2071
2078
|
name: e.string(),
|
|
2072
2079
|
description: e.string().nullable(),
|
|
2073
2080
|
externalId: e.string().nullish(),
|
|
2074
2081
|
position: e.int(),
|
|
2075
2082
|
quantity: e.number().lte(1e4),
|
|
2076
2083
|
unitPrice: y,
|
|
2077
|
-
vatRate:
|
|
2078
|
-
discount:
|
|
2084
|
+
vatRate: I,
|
|
2085
|
+
discount: L.nullable(),
|
|
2079
2086
|
unit: ln,
|
|
2080
2087
|
isDiscount: e.boolean(),
|
|
2081
2088
|
customFields: e.array(e.union([
|
|
2082
|
-
C,
|
|
2083
2089
|
w,
|
|
2084
2090
|
T,
|
|
2085
2091
|
E,
|
|
@@ -2088,16 +2094,16 @@ var or = e.object({
|
|
|
2088
2094
|
k,
|
|
2089
2095
|
A,
|
|
2090
2096
|
j,
|
|
2091
|
-
M
|
|
2097
|
+
M,
|
|
2098
|
+
N
|
|
2092
2099
|
])).optional()
|
|
2093
|
-
}),
|
|
2100
|
+
}), cr = e.object({
|
|
2094
2101
|
name: e.string(),
|
|
2095
2102
|
description: e.string().nullable(),
|
|
2096
2103
|
externalId: e.string().nullish(),
|
|
2097
2104
|
position: e.int(),
|
|
2098
|
-
lines: e.array(
|
|
2105
|
+
lines: e.array(sr),
|
|
2099
2106
|
customFields: e.array(e.union([
|
|
2100
|
-
C,
|
|
2101
2107
|
w,
|
|
2102
2108
|
T,
|
|
2103
2109
|
E,
|
|
@@ -2106,22 +2112,22 @@ var or = e.object({
|
|
|
2106
2112
|
k,
|
|
2107
2113
|
A,
|
|
2108
2114
|
j,
|
|
2109
|
-
M
|
|
2115
|
+
M,
|
|
2116
|
+
N
|
|
2110
2117
|
])).optional(),
|
|
2111
|
-
groups: e.array(e.lazy(() =>
|
|
2112
|
-
}),
|
|
2113
|
-
groups: e.array(
|
|
2114
|
-
ungroupedLines: e.array(
|
|
2115
|
-
}),
|
|
2118
|
+
groups: e.array(e.lazy(() => cr)).optional()
|
|
2119
|
+
}), lr = e.object({
|
|
2120
|
+
groups: e.array(cr),
|
|
2121
|
+
ungroupedLines: e.array(sr)
|
|
2122
|
+
}), ur = e.object({ billingDocument: Vt.nullish() }), dr = e.object({
|
|
2116
2123
|
issuedOn: e.iso.date(),
|
|
2117
2124
|
poNumber: e.string().nullable(),
|
|
2118
2125
|
subject: e.string().nullable(),
|
|
2119
2126
|
recipientUuid: e.uuid().nullish(),
|
|
2120
|
-
contactOverride:
|
|
2127
|
+
contactOverride: ur.optional(),
|
|
2121
2128
|
externalRemarks: e.string().nullable(),
|
|
2122
2129
|
preparedByUuid: e.uuid().optional(),
|
|
2123
2130
|
customFields: e.array(e.union([
|
|
2124
|
-
C,
|
|
2125
2131
|
w,
|
|
2126
2132
|
T,
|
|
2127
2133
|
E,
|
|
@@ -2130,7 +2136,8 @@ var or = e.object({
|
|
|
2130
2136
|
k,
|
|
2131
2137
|
A,
|
|
2132
2138
|
j,
|
|
2133
|
-
M
|
|
2139
|
+
M,
|
|
2140
|
+
N
|
|
2134
2141
|
])).optional(),
|
|
2135
2142
|
reference: e.string().nullish()
|
|
2136
2143
|
});
|
|
@@ -2155,12 +2162,14 @@ e.object({
|
|
|
2155
2162
|
status: e.enum(["409"]),
|
|
2156
2163
|
code: e.enum(["delete_invoice_with_approval"])
|
|
2157
2164
|
});
|
|
2158
|
-
var
|
|
2165
|
+
var fr = e.object({ uuid: e.uuid() }), pr = e.object({ uuid: e.uuid() });
|
|
2159
2166
|
e.object({
|
|
2160
2167
|
detail: e.string().optional(),
|
|
2161
2168
|
status: e.enum(["409"]),
|
|
2162
|
-
code: e.enum(["
|
|
2163
|
-
})
|
|
2169
|
+
code: e.enum(["approval_mode_change_with_active_approval"])
|
|
2170
|
+
});
|
|
2171
|
+
var mr = e.object({ approvalMode: x.nullable() });
|
|
2172
|
+
e.object({
|
|
2164
2173
|
detail: e.string().optional(),
|
|
2165
2174
|
status: e.enum(["409"]),
|
|
2166
2175
|
code: e.enum(["invoice_not_finalized"])
|
|
@@ -2169,16 +2178,16 @@ e.object({
|
|
|
2169
2178
|
status: e.enum(["409"]),
|
|
2170
2179
|
code: e.enum(["invoice_status_not_eligible_for_paid"])
|
|
2171
2180
|
});
|
|
2172
|
-
var
|
|
2181
|
+
var hr = e.object({
|
|
2173
2182
|
statuses: e.array(_).optional(),
|
|
2174
|
-
lifecycleStatuses: e.array(
|
|
2183
|
+
lifecycleStatuses: e.array(P).optional(),
|
|
2175
2184
|
customerUuids: e.array(e.uuid()).optional(),
|
|
2176
2185
|
dueOnRange: J.optional(),
|
|
2177
2186
|
issuedOnRange: J.optional(),
|
|
2178
2187
|
invoiceUuids: Y.optional(),
|
|
2179
2188
|
isDisputed: e.boolean().optional(),
|
|
2180
2189
|
isOverdue: e.boolean().optional(),
|
|
2181
|
-
settlementStatuses: e.array(
|
|
2190
|
+
settlementStatuses: e.array(R).optional(),
|
|
2182
2191
|
customerExternalIds: e.array(e.string()).optional(),
|
|
2183
2192
|
isOutstanding: e.boolean().optional(),
|
|
2184
2193
|
customFields: e.array(e.union([
|
|
@@ -2195,38 +2204,39 @@ var pr = e.object({
|
|
|
2195
2204
|
hasChangesSinceApprovalSent: e.boolean().optional(),
|
|
2196
2205
|
approvalStatuses: e.array(X).optional(),
|
|
2197
2206
|
isApprovalCancelled: e.boolean().optional(),
|
|
2198
|
-
isExternallyCreated: e.boolean().optional()
|
|
2207
|
+
isExternallyCreated: e.boolean().optional(),
|
|
2208
|
+
poNumber: e.string().optional()
|
|
2199
2209
|
}), Z = e.object({
|
|
2200
2210
|
total: e.number(),
|
|
2201
2211
|
processed: e.number(),
|
|
2202
2212
|
skipped: e.number()
|
|
2203
|
-
}),
|
|
2213
|
+
}), gr = e.object({ pointer: e.string() }), _r = e.object({
|
|
2204
2214
|
code: e.string(),
|
|
2205
2215
|
detail: e.string().optional(),
|
|
2206
2216
|
title: e.string().optional(),
|
|
2207
2217
|
id: e.string().optional(),
|
|
2208
2218
|
status: e.string().optional(),
|
|
2209
|
-
source:
|
|
2219
|
+
source: gr.optional(),
|
|
2210
2220
|
meta: e.record(e.string(), e.unknown()).optional()
|
|
2211
|
-
}),
|
|
2221
|
+
}), vr = e.object({
|
|
2212
2222
|
status: e.number(),
|
|
2213
|
-
errors: e.array(
|
|
2223
|
+
errors: e.array(_r)
|
|
2214
2224
|
}), Q = e.object({
|
|
2215
2225
|
uuid: e.string(),
|
|
2216
|
-
errors: e.array(
|
|
2217
|
-
}),
|
|
2226
|
+
errors: e.array(vr)
|
|
2227
|
+
}), yr = e.object({
|
|
2218
2228
|
meta: Z,
|
|
2219
2229
|
skipped: e.array(Q)
|
|
2220
|
-
}),
|
|
2230
|
+
}), br = e.object({
|
|
2221
2231
|
statuses: e.array(_).optional(),
|
|
2222
|
-
lifecycleStatuses: e.array(
|
|
2232
|
+
lifecycleStatuses: e.array(P).optional(),
|
|
2223
2233
|
customerUuids: e.array(e.uuid()).optional(),
|
|
2224
2234
|
dueOnRange: J.optional(),
|
|
2225
2235
|
issuedOnRange: J.optional(),
|
|
2226
2236
|
invoiceUuids: Y.optional(),
|
|
2227
2237
|
isDisputed: e.boolean().optional(),
|
|
2228
2238
|
isOverdue: e.boolean().optional(),
|
|
2229
|
-
settlementStatuses: e.array(
|
|
2239
|
+
settlementStatuses: e.array(R).optional(),
|
|
2230
2240
|
customerExternalIds: e.array(e.string()).optional(),
|
|
2231
2241
|
isOutstanding: e.boolean().optional(),
|
|
2232
2242
|
customFields: e.array(e.union([
|
|
@@ -2243,8 +2253,9 @@ var pr = e.object({
|
|
|
2243
2253
|
hasChangesSinceApprovalSent: e.boolean().optional(),
|
|
2244
2254
|
approvalStatuses: e.array(X).optional(),
|
|
2245
2255
|
isApprovalCancelled: e.boolean().optional(),
|
|
2246
|
-
isExternallyCreated: e.boolean().optional()
|
|
2247
|
-
|
|
2256
|
+
isExternallyCreated: e.boolean().optional(),
|
|
2257
|
+
poNumber: e.string().optional()
|
|
2258
|
+
}), xr = e.object({
|
|
2248
2259
|
meta: Z,
|
|
2249
2260
|
skipped: e.array(Q)
|
|
2250
2261
|
});
|
|
@@ -2253,16 +2264,16 @@ e.object({
|
|
|
2253
2264
|
status: e.enum(["409"]),
|
|
2254
2265
|
code: e.enum(["invoice_not_disputed"])
|
|
2255
2266
|
});
|
|
2256
|
-
var
|
|
2267
|
+
var Sr = e.object({
|
|
2257
2268
|
statuses: e.array(_).optional(),
|
|
2258
|
-
lifecycleStatuses: e.array(
|
|
2269
|
+
lifecycleStatuses: e.array(P).optional(),
|
|
2259
2270
|
customerUuids: e.array(e.uuid()).optional(),
|
|
2260
2271
|
dueOnRange: J.optional(),
|
|
2261
2272
|
issuedOnRange: J.optional(),
|
|
2262
2273
|
invoiceUuids: Y.optional(),
|
|
2263
2274
|
isDisputed: e.boolean().optional(),
|
|
2264
2275
|
isOverdue: e.boolean().optional(),
|
|
2265
|
-
settlementStatuses: e.array(
|
|
2276
|
+
settlementStatuses: e.array(R).optional(),
|
|
2266
2277
|
customerExternalIds: e.array(e.string()).optional(),
|
|
2267
2278
|
isOutstanding: e.boolean().optional(),
|
|
2268
2279
|
customFields: e.array(e.union([
|
|
@@ -2279,20 +2290,21 @@ var br = e.object({
|
|
|
2279
2290
|
hasChangesSinceApprovalSent: e.boolean().optional(),
|
|
2280
2291
|
approvalStatuses: e.array(X).optional(),
|
|
2281
2292
|
isApprovalCancelled: e.boolean().optional(),
|
|
2282
|
-
isExternallyCreated: e.boolean().optional()
|
|
2283
|
-
|
|
2293
|
+
isExternallyCreated: e.boolean().optional(),
|
|
2294
|
+
poNumber: e.string().optional()
|
|
2295
|
+
}), Cr = e.object({
|
|
2284
2296
|
meta: Z,
|
|
2285
2297
|
skipped: e.array(Q)
|
|
2286
|
-
}),
|
|
2298
|
+
}), wr = e.object({ sendOnFinalization: e.boolean().optional() }), Tr = e.object({
|
|
2287
2299
|
statuses: e.array(_).optional(),
|
|
2288
|
-
lifecycleStatuses: e.array(
|
|
2300
|
+
lifecycleStatuses: e.array(P).optional(),
|
|
2289
2301
|
customerUuids: e.array(e.uuid()).optional(),
|
|
2290
2302
|
dueOnRange: J.optional(),
|
|
2291
2303
|
issuedOnRange: J.optional(),
|
|
2292
2304
|
invoiceUuids: Y.optional(),
|
|
2293
2305
|
isDisputed: e.boolean().optional(),
|
|
2294
2306
|
isOverdue: e.boolean().optional(),
|
|
2295
|
-
settlementStatuses: e.array(
|
|
2307
|
+
settlementStatuses: e.array(R).optional(),
|
|
2296
2308
|
customerExternalIds: e.array(e.string()).optional(),
|
|
2297
2309
|
isOutstanding: e.boolean().optional(),
|
|
2298
2310
|
customFields: e.array(e.union([
|
|
@@ -2309,20 +2321,21 @@ var br = e.object({
|
|
|
2309
2321
|
hasChangesSinceApprovalSent: e.boolean().optional(),
|
|
2310
2322
|
approvalStatuses: e.array(X).optional(),
|
|
2311
2323
|
isApprovalCancelled: e.boolean().optional(),
|
|
2312
|
-
isExternallyCreated: e.boolean().optional()
|
|
2313
|
-
|
|
2324
|
+
isExternallyCreated: e.boolean().optional(),
|
|
2325
|
+
poNumber: e.string().optional()
|
|
2326
|
+
}), Er = e.object({
|
|
2314
2327
|
meta: Z,
|
|
2315
2328
|
skipped: e.array(Q)
|
|
2316
|
-
}),
|
|
2329
|
+
}), Dr = e.object({
|
|
2317
2330
|
statuses: e.array(_).optional(),
|
|
2318
|
-
lifecycleStatuses: e.array(
|
|
2331
|
+
lifecycleStatuses: e.array(P).optional(),
|
|
2319
2332
|
customerUuids: e.array(e.uuid()).optional(),
|
|
2320
2333
|
dueOnRange: J.optional(),
|
|
2321
2334
|
issuedOnRange: J.optional(),
|
|
2322
2335
|
invoiceUuids: Y.optional(),
|
|
2323
2336
|
isDisputed: e.boolean().optional(),
|
|
2324
2337
|
isOverdue: e.boolean().optional(),
|
|
2325
|
-
settlementStatuses: e.array(
|
|
2338
|
+
settlementStatuses: e.array(R).optional(),
|
|
2326
2339
|
customerExternalIds: e.array(e.string()).optional(),
|
|
2327
2340
|
isOutstanding: e.boolean().optional(),
|
|
2328
2341
|
customFields: e.array(e.union([
|
|
@@ -2339,20 +2352,21 @@ var br = e.object({
|
|
|
2339
2352
|
hasChangesSinceApprovalSent: e.boolean().optional(),
|
|
2340
2353
|
approvalStatuses: e.array(X).optional(),
|
|
2341
2354
|
isApprovalCancelled: e.boolean().optional(),
|
|
2342
|
-
isExternallyCreated: e.boolean().optional()
|
|
2343
|
-
|
|
2355
|
+
isExternallyCreated: e.boolean().optional(),
|
|
2356
|
+
poNumber: e.string().optional()
|
|
2357
|
+
}), Or = e.object({
|
|
2344
2358
|
meta: Z,
|
|
2345
2359
|
skipped: e.array(Q)
|
|
2346
|
-
}),
|
|
2360
|
+
}), kr = e.object({
|
|
2347
2361
|
statuses: e.array(_).optional(),
|
|
2348
|
-
lifecycleStatuses: e.array(
|
|
2362
|
+
lifecycleStatuses: e.array(P).optional(),
|
|
2349
2363
|
customerUuids: e.array(e.uuid()).optional(),
|
|
2350
2364
|
dueOnRange: J.optional(),
|
|
2351
2365
|
issuedOnRange: J.optional(),
|
|
2352
2366
|
invoiceUuids: Y.optional(),
|
|
2353
2367
|
isDisputed: e.boolean().optional(),
|
|
2354
2368
|
isOverdue: e.boolean().optional(),
|
|
2355
|
-
settlementStatuses: e.array(
|
|
2369
|
+
settlementStatuses: e.array(R).optional(),
|
|
2356
2370
|
customerExternalIds: e.array(e.string()).optional(),
|
|
2357
2371
|
isOutstanding: e.boolean().optional(),
|
|
2358
2372
|
customFields: e.array(e.union([
|
|
@@ -2369,8 +2383,9 @@ var br = e.object({
|
|
|
2369
2383
|
hasChangesSinceApprovalSent: e.boolean().optional(),
|
|
2370
2384
|
approvalStatuses: e.array(X).optional(),
|
|
2371
2385
|
isApprovalCancelled: e.boolean().optional(),
|
|
2372
|
-
isExternallyCreated: e.boolean().optional()
|
|
2373
|
-
|
|
2386
|
+
isExternallyCreated: e.boolean().optional(),
|
|
2387
|
+
poNumber: e.string().optional()
|
|
2388
|
+
}), Ar = e.object({
|
|
2374
2389
|
meta: Z,
|
|
2375
2390
|
skipped: e.array(Q)
|
|
2376
2391
|
});
|
|
@@ -2379,7 +2394,7 @@ e.object({
|
|
|
2379
2394
|
status: e.enum(["404"]),
|
|
2380
2395
|
code: e.enum(["pro_forma_not_found"])
|
|
2381
2396
|
});
|
|
2382
|
-
var
|
|
2397
|
+
var jr = e.object({
|
|
2383
2398
|
entityUuids: e.array(e.uuid()).optional(),
|
|
2384
2399
|
entityTypes: e.array(e.enum([
|
|
2385
2400
|
"customer",
|
|
@@ -2397,13 +2412,13 @@ var kr = e.object({
|
|
|
2397
2412
|
"approval",
|
|
2398
2413
|
"attachment"
|
|
2399
2414
|
])).optional()
|
|
2400
|
-
}),
|
|
2415
|
+
}), Mr = e.object({
|
|
2401
2416
|
createdAt: e.string(),
|
|
2402
2417
|
uuid: e.uuid()
|
|
2403
|
-
}),
|
|
2418
|
+
}), Nr = e.object({
|
|
2404
2419
|
limit: e.number().gte(0).lte(100).optional(),
|
|
2405
|
-
key:
|
|
2406
|
-
}),
|
|
2420
|
+
key: Mr.nullish()
|
|
2421
|
+
}), Pr = e.enum([
|
|
2407
2422
|
"invoice-created",
|
|
2408
2423
|
"invoice-updated",
|
|
2409
2424
|
"invoice-finalized",
|
|
@@ -2413,6 +2428,7 @@ var kr = e.object({
|
|
|
2413
2428
|
"invoice-marked-as-ready",
|
|
2414
2429
|
"invoice-marked-as-prior-approval-required",
|
|
2415
2430
|
"invoice-unmarked-as-prior-approval-required",
|
|
2431
|
+
"invoice-approval-mode-changed",
|
|
2416
2432
|
"invoice-marked-as-paid",
|
|
2417
2433
|
"invoice-payment-created",
|
|
2418
2434
|
"invoice-payment-deleted",
|
|
@@ -2422,45 +2438,46 @@ var kr = e.object({
|
|
|
2422
2438
|
"invoice-approval-cancelled",
|
|
2423
2439
|
"invoice-approval-expired",
|
|
2424
2440
|
"invoice-approval-reminder-sent",
|
|
2441
|
+
"invoice-approval-updated",
|
|
2425
2442
|
"invoice-finalization-blocked",
|
|
2426
2443
|
"dunning-case-reminder-sent",
|
|
2427
2444
|
"credit-note-created",
|
|
2428
2445
|
"credit-note-updated",
|
|
2429
2446
|
"customer-updated"
|
|
2430
|
-
]),
|
|
2447
|
+
]), Fr = e.enum([
|
|
2431
2448
|
"create",
|
|
2432
2449
|
"update",
|
|
2433
2450
|
"delete"
|
|
2434
|
-
]),
|
|
2451
|
+
]), Ir = e.enum([
|
|
2435
2452
|
"user",
|
|
2436
2453
|
"service",
|
|
2437
2454
|
"system"
|
|
2438
|
-
]),
|
|
2455
|
+
]), Lr = e.object({
|
|
2439
2456
|
uuid: e.uuid(),
|
|
2440
2457
|
firstName: e.string().nullable(),
|
|
2441
2458
|
lastName: e.string().nullable(),
|
|
2442
2459
|
email: e.string().nullable()
|
|
2443
|
-
}),
|
|
2460
|
+
}), Rr = e.enum([
|
|
2444
2461
|
"actor",
|
|
2445
2462
|
"customer",
|
|
2446
2463
|
"invoice",
|
|
2447
2464
|
"credit_note",
|
|
2448
2465
|
"approval",
|
|
2449
2466
|
"attachment"
|
|
2450
|
-
]),
|
|
2467
|
+
]), zr = e.enum([
|
|
2451
2468
|
"customer",
|
|
2452
2469
|
"invoice",
|
|
2453
2470
|
"credit_note",
|
|
2454
2471
|
"approval",
|
|
2455
2472
|
"api_key",
|
|
2456
2473
|
"file"
|
|
2457
|
-
]),
|
|
2458
|
-
role:
|
|
2459
|
-
type:
|
|
2474
|
+
]), Br = e.object({
|
|
2475
|
+
role: Rr,
|
|
2476
|
+
type: zr,
|
|
2460
2477
|
uuid: e.uuid(),
|
|
2461
2478
|
label: e.string().nullable()
|
|
2462
|
-
}),
|
|
2463
|
-
entityRole:
|
|
2479
|
+
}), Vr = e.object({
|
|
2480
|
+
entityRole: Rr,
|
|
2464
2481
|
field: e.string(),
|
|
2465
2482
|
from: e.union([
|
|
2466
2483
|
e.string(),
|
|
@@ -2472,17 +2489,17 @@ var kr = e.object({
|
|
|
2472
2489
|
e.number(),
|
|
2473
2490
|
e.boolean()
|
|
2474
2491
|
]).nullable()
|
|
2475
|
-
}),
|
|
2492
|
+
}), Hr = e.object({
|
|
2476
2493
|
createdAt: e.iso.datetime(),
|
|
2477
|
-
action:
|
|
2478
|
-
changeType:
|
|
2479
|
-
actorType:
|
|
2480
|
-
actor:
|
|
2481
|
-
entities: e.array(
|
|
2482
|
-
changes: e.array(
|
|
2483
|
-
}),
|
|
2484
|
-
logs: e.array(
|
|
2485
|
-
nextKey:
|
|
2494
|
+
action: Pr,
|
|
2495
|
+
changeType: Fr,
|
|
2496
|
+
actorType: Ir,
|
|
2497
|
+
actor: Lr.nullable(),
|
|
2498
|
+
entities: e.array(Br),
|
|
2499
|
+
changes: e.array(Vr).nullable()
|
|
2500
|
+
}), Ur = e.object({
|
|
2501
|
+
logs: e.array(Hr),
|
|
2502
|
+
nextKey: Mr.nullable()
|
|
2486
2503
|
});
|
|
2487
2504
|
e.object({
|
|
2488
2505
|
detail: e.string().optional(),
|
|
@@ -2497,14 +2514,14 @@ e.object({
|
|
|
2497
2514
|
status: e.enum(["409"]),
|
|
2498
2515
|
code: e.enum(["payment_external_id_already_exists"])
|
|
2499
2516
|
});
|
|
2500
|
-
var
|
|
2517
|
+
var Wr = e.enum(["standard", "advance"]), Gr = e.object({
|
|
2501
2518
|
amount: y,
|
|
2502
2519
|
date: e.iso.date(),
|
|
2503
2520
|
paymentReference: e.string().nullish(),
|
|
2504
2521
|
remarks: e.string().nullish(),
|
|
2505
|
-
type:
|
|
2522
|
+
type: Wr.optional(),
|
|
2506
2523
|
externalId: e.string().nullish()
|
|
2507
|
-
}),
|
|
2524
|
+
}), Kr = e.object({ uuid: e.uuid() });
|
|
2508
2525
|
e.object({
|
|
2509
2526
|
detail: e.string().optional(),
|
|
2510
2527
|
status: e.enum(["404"]),
|
|
@@ -2518,35 +2535,35 @@ e.object({
|
|
|
2518
2535
|
status: e.enum(["409"]),
|
|
2519
2536
|
code: e.enum(["advance_payment_locked"])
|
|
2520
2537
|
});
|
|
2521
|
-
var
|
|
2538
|
+
var qr = e.enum(["manual", "exact"]), Jr = e.object({
|
|
2522
2539
|
uuid: e.uuid(),
|
|
2523
2540
|
amount: y,
|
|
2524
2541
|
date: e.iso.date(),
|
|
2525
2542
|
createdAt: e.iso.datetime(),
|
|
2526
2543
|
paymentReference: e.string().nullable(),
|
|
2527
2544
|
remarks: e.string().nullable(),
|
|
2528
|
-
source:
|
|
2529
|
-
type:
|
|
2530
|
-
}),
|
|
2545
|
+
source: qr,
|
|
2546
|
+
type: Wr
|
|
2547
|
+
}), Yr = e.object({ items: e.array(Jr) }), Xr = e.union([
|
|
2531
2548
|
e.literal(1),
|
|
2532
2549
|
e.literal(2),
|
|
2533
2550
|
e.literal(3)
|
|
2534
|
-
]),
|
|
2535
|
-
subject:
|
|
2536
|
-
body:
|
|
2537
|
-
}),
|
|
2538
|
-
type:
|
|
2551
|
+
]), Zr = e.object({
|
|
2552
|
+
subject: F,
|
|
2553
|
+
body: F
|
|
2554
|
+
}), Qr = e.enum(["percentage", "amount"]), $r = e.object({
|
|
2555
|
+
type: Qr,
|
|
2539
2556
|
amount: y.nullable(),
|
|
2540
2557
|
percentage: e.number().nullable()
|
|
2541
|
-
}),
|
|
2558
|
+
}), ei = e.object({
|
|
2542
2559
|
uuid: e.uuid(),
|
|
2543
2560
|
issuerUuid: e.uuid(),
|
|
2544
|
-
sequence:
|
|
2561
|
+
sequence: Xr,
|
|
2545
2562
|
schedule: In,
|
|
2546
2563
|
offsetDays: e.number(),
|
|
2547
|
-
template:
|
|
2548
|
-
fee:
|
|
2549
|
-
}),
|
|
2564
|
+
template: Zr,
|
|
2565
|
+
fee: $r
|
|
2566
|
+
}), ti = e.object({ items: e.array(ei) });
|
|
2550
2567
|
e.object({
|
|
2551
2568
|
detail: e.string().optional(),
|
|
2552
2569
|
status: e.enum(["400"]),
|
|
@@ -2560,36 +2577,36 @@ e.object({
|
|
|
2560
2577
|
status: e.enum(["400"]),
|
|
2561
2578
|
code: e.enum(["additional_reminder_config"])
|
|
2562
2579
|
});
|
|
2563
|
-
var
|
|
2564
|
-
subject:
|
|
2565
|
-
body:
|
|
2566
|
-
}),
|
|
2580
|
+
var ni = e.object({
|
|
2581
|
+
subject: F,
|
|
2582
|
+
body: F
|
|
2583
|
+
}), ri = e.object({
|
|
2567
2584
|
sequence: e.number(),
|
|
2568
2585
|
offsetDays: e.int().gte(1),
|
|
2569
2586
|
schedule: In,
|
|
2570
|
-
template:
|
|
2571
|
-
fee:
|
|
2572
|
-
}),
|
|
2587
|
+
template: ni,
|
|
2588
|
+
fee: $r
|
|
2589
|
+
}), ii = e.object({ reminders: e.array(ri) }), ai = e.enum([
|
|
2573
2590
|
"invoice",
|
|
2574
2591
|
"invoice-line",
|
|
2575
2592
|
"invoice-line-group"
|
|
2576
|
-
]),
|
|
2593
|
+
]), oi = e.object({ entityTypes: e.array(ai).optional() });
|
|
2577
2594
|
e.object({
|
|
2578
2595
|
detail: e.string().optional(),
|
|
2579
2596
|
status: e.enum(["404"]),
|
|
2580
2597
|
code: e.enum(["dunning_case_not_found"])
|
|
2581
2598
|
});
|
|
2582
|
-
var
|
|
2599
|
+
var si = e.object({
|
|
2583
2600
|
uuid: e.uuid(),
|
|
2584
2601
|
type: g,
|
|
2585
2602
|
name: e.string(),
|
|
2586
2603
|
vatNumber: e.string().nullable(),
|
|
2587
2604
|
email: e.string().nullable()
|
|
2588
|
-
}),
|
|
2605
|
+
}), ci = e.object({
|
|
2589
2606
|
uuid: e.uuid(),
|
|
2590
2607
|
date: e.iso.date(),
|
|
2591
2608
|
amount: y
|
|
2592
|
-
}),
|
|
2609
|
+
}), li = e.object({
|
|
2593
2610
|
uuid: e.uuid(),
|
|
2594
2611
|
sequence: e.string(),
|
|
2595
2612
|
grossAmount: y,
|
|
@@ -2598,7 +2615,7 @@ var ai = e.object({
|
|
|
2598
2615
|
e.enum(["infinity"]),
|
|
2599
2616
|
e.enum(["-infinity"])
|
|
2600
2617
|
])
|
|
2601
|
-
}),
|
|
2618
|
+
}), ui = e.object({
|
|
2602
2619
|
uuid: e.uuid(),
|
|
2603
2620
|
subject: e.string().nullable(),
|
|
2604
2621
|
sequence: e.string(),
|
|
@@ -2609,10 +2626,10 @@ var ai = e.object({
|
|
|
2609
2626
|
totalCreditedAmount: y,
|
|
2610
2627
|
paidAmount: y,
|
|
2611
2628
|
isDisputed: e.boolean(),
|
|
2612
|
-
settlementStatus:
|
|
2613
|
-
payments: e.array(
|
|
2614
|
-
creditNotes: e.array(
|
|
2615
|
-
}),
|
|
2629
|
+
settlementStatus: R,
|
|
2630
|
+
payments: e.array(ci),
|
|
2631
|
+
creditNotes: e.array(li)
|
|
2632
|
+
}), di = e.object({
|
|
2616
2633
|
uuid: e.uuid(),
|
|
2617
2634
|
sentAt: e.union([
|
|
2618
2635
|
e.iso.datetime(),
|
|
@@ -2620,7 +2637,7 @@ var ai = e.object({
|
|
|
2620
2637
|
e.enum(["-infinity"])
|
|
2621
2638
|
]).nullable(),
|
|
2622
2639
|
hasErrors: e.boolean()
|
|
2623
|
-
}),
|
|
2640
|
+
}), fi = e.enum(["missing_email"]), pi = e.object({
|
|
2624
2641
|
uuid: e.uuid(),
|
|
2625
2642
|
createdAt: e.iso.datetime(),
|
|
2626
2643
|
updatedAt: e.iso.datetime(),
|
|
@@ -2628,8 +2645,8 @@ var ai = e.object({
|
|
|
2628
2645
|
isClosed: e.boolean(),
|
|
2629
2646
|
nextReminderOn: e.iso.date().nullable(),
|
|
2630
2647
|
level: e.number().nullable(),
|
|
2631
|
-
customer:
|
|
2632
|
-
invoices: e.array(
|
|
2648
|
+
customer: si,
|
|
2649
|
+
invoices: e.array(ui),
|
|
2633
2650
|
outstandingBalance: y,
|
|
2634
2651
|
totalPaid: y,
|
|
2635
2652
|
totalInvoiced: y,
|
|
@@ -2642,17 +2659,17 @@ var ai = e.object({
|
|
|
2642
2659
|
]).nullable(),
|
|
2643
2660
|
canSendReminder: e.boolean(),
|
|
2644
2661
|
canRetryReminder: e.boolean(),
|
|
2645
|
-
latestCreatedReminder:
|
|
2646
|
-
blockedReason:
|
|
2647
|
-
}),
|
|
2662
|
+
latestCreatedReminder: di.nullable(),
|
|
2663
|
+
blockedReason: fi.nullable()
|
|
2664
|
+
}), mi = e.object({
|
|
2648
2665
|
isOpen: e.boolean().optional(),
|
|
2649
2666
|
customerUuid: e.uuid().optional(),
|
|
2650
2667
|
level: e.number().optional(),
|
|
2651
2668
|
dunningCaseUuids: Y.optional()
|
|
2652
|
-
}),
|
|
2669
|
+
}), hi = e.object({
|
|
2653
2670
|
uuid: e.uuid(),
|
|
2654
2671
|
name: e.string()
|
|
2655
|
-
}),
|
|
2672
|
+
}), gi = e.object({
|
|
2656
2673
|
uuid: e.uuid(),
|
|
2657
2674
|
sentAt: e.union([
|
|
2658
2675
|
e.iso.datetime(),
|
|
@@ -2660,9 +2677,9 @@ var ai = e.object({
|
|
|
2660
2677
|
e.enum(["-infinity"])
|
|
2661
2678
|
]).nullable(),
|
|
2662
2679
|
hasErrors: e.boolean()
|
|
2663
|
-
}),
|
|
2680
|
+
}), _i = e.object({
|
|
2664
2681
|
uuid: e.uuid(),
|
|
2665
|
-
customer:
|
|
2682
|
+
customer: hi,
|
|
2666
2683
|
level: e.number().nullable(),
|
|
2667
2684
|
daysOverdue: e.number(),
|
|
2668
2685
|
outstandingBalance: y,
|
|
@@ -2678,10 +2695,10 @@ var ai = e.object({
|
|
|
2678
2695
|
]).nullable(),
|
|
2679
2696
|
canSendReminder: e.boolean(),
|
|
2680
2697
|
canRetryReminder: e.boolean(),
|
|
2681
|
-
latestCreatedReminder:
|
|
2682
|
-
blockedReason:
|
|
2683
|
-
}),
|
|
2684
|
-
items: e.array(
|
|
2698
|
+
latestCreatedReminder: gi.nullable(),
|
|
2699
|
+
blockedReason: fi.nullable()
|
|
2700
|
+
}), vi = e.object({
|
|
2701
|
+
items: e.array(_i),
|
|
2685
2702
|
meta: h
|
|
2686
2703
|
});
|
|
2687
2704
|
e.object({
|
|
@@ -2713,35 +2730,35 @@ e.object({
|
|
|
2713
2730
|
status: e.enum(["409"]),
|
|
2714
2731
|
code: e.enum(["dunning_case_reminder_not_retryable"])
|
|
2715
2732
|
});
|
|
2716
|
-
var
|
|
2733
|
+
var yi = e.object({
|
|
2717
2734
|
isOpen: e.boolean().optional(),
|
|
2718
2735
|
customerUuid: e.uuid().optional(),
|
|
2719
2736
|
level: e.number().optional(),
|
|
2720
2737
|
dunningCaseUuids: Y.optional()
|
|
2721
|
-
}),
|
|
2738
|
+
}), bi = e.object({
|
|
2722
2739
|
meta: Z,
|
|
2723
2740
|
skipped: e.array(Q)
|
|
2724
|
-
}),
|
|
2741
|
+
}), xi = e.object({
|
|
2725
2742
|
isOpen: e.boolean().optional(),
|
|
2726
2743
|
customerUuid: e.uuid().optional(),
|
|
2727
2744
|
level: e.number().optional(),
|
|
2728
2745
|
dunningCaseUuids: Y.optional()
|
|
2729
|
-
}),
|
|
2746
|
+
}), Si = e.object({
|
|
2730
2747
|
meta: Z,
|
|
2731
2748
|
skipped: e.array(Q)
|
|
2732
|
-
}),
|
|
2749
|
+
}), Ci = e.object({
|
|
2733
2750
|
name: e.string().nullable(),
|
|
2734
2751
|
email: e.email().nullable(),
|
|
2735
2752
|
phoneNumber: e.string().nullable(),
|
|
2736
2753
|
website: e.string().nullable(),
|
|
2737
|
-
address:
|
|
2754
|
+
address: S.nullable(),
|
|
2738
2755
|
vatNumber: e.string().nullable(),
|
|
2739
2756
|
bankAccountNumber: e.string().nullable(),
|
|
2740
2757
|
alternativeBankAccountNumber: e.string().nullable(),
|
|
2741
2758
|
currency: v
|
|
2742
|
-
}),
|
|
2759
|
+
}), wi = e.object({
|
|
2743
2760
|
name: e.string(),
|
|
2744
|
-
address:
|
|
2761
|
+
address: S.nullable(),
|
|
2745
2762
|
email: e.email().nullable(),
|
|
2746
2763
|
externalId: e.string().nullable(),
|
|
2747
2764
|
phoneNumber: e.string().nullable(),
|
|
@@ -2749,10 +2766,10 @@ var _i = e.object({
|
|
|
2749
2766
|
type: g,
|
|
2750
2767
|
locale: Ie,
|
|
2751
2768
|
currency: v
|
|
2752
|
-
}),
|
|
2769
|
+
}), Ti = e.object({
|
|
2753
2770
|
name: e.string().nullable(),
|
|
2754
2771
|
email: e.email()
|
|
2755
|
-
}),
|
|
2772
|
+
}), Ei = e.object({
|
|
2756
2773
|
sequence: e.string(),
|
|
2757
2774
|
issuedOn: e.iso.date(),
|
|
2758
2775
|
dueOn: e.iso.date(),
|
|
@@ -2761,24 +2778,28 @@ var _i = e.object({
|
|
|
2761
2778
|
daysOverdue: e.number(),
|
|
2762
2779
|
fee: y,
|
|
2763
2780
|
isNew: e.boolean()
|
|
2764
|
-
}),
|
|
2781
|
+
}), Di = e.object({
|
|
2765
2782
|
sequence: e.string(),
|
|
2766
2783
|
issuedOn: e.iso.date(),
|
|
2767
2784
|
dueOn: e.iso.date(),
|
|
2768
2785
|
outstandingBalance: y,
|
|
2769
2786
|
daysOverdue: e.number()
|
|
2770
|
-
}),
|
|
2787
|
+
}), Oi = e.object({
|
|
2771
2788
|
createdAt: e.iso.datetime(),
|
|
2772
2789
|
sentAt: e.iso.datetime().nullable(),
|
|
2773
2790
|
level: e.number(),
|
|
2774
|
-
issuer:
|
|
2775
|
-
customer:
|
|
2776
|
-
recipient:
|
|
2777
|
-
invoices: e.array(
|
|
2778
|
-
outstandingInvoices: e.array(
|
|
2791
|
+
issuer: Ci,
|
|
2792
|
+
customer: wi,
|
|
2793
|
+
recipient: Ti,
|
|
2794
|
+
invoices: e.array(Ei),
|
|
2795
|
+
outstandingInvoices: e.array(Di),
|
|
2779
2796
|
totalFee: y
|
|
2780
2797
|
});
|
|
2781
2798
|
e.object({
|
|
2799
|
+
detail: e.string().optional(),
|
|
2800
|
+
status: e.enum(["409"]),
|
|
2801
|
+
code: e.enum(["approval_requested_on_finalization"])
|
|
2802
|
+
}), e.object({
|
|
2782
2803
|
detail: e.string().optional(),
|
|
2783
2804
|
status: e.enum(["409"]),
|
|
2784
2805
|
code: e.enum(["approval_requires_editable_invoice"])
|
|
@@ -2794,21 +2815,17 @@ e.object({
|
|
|
2794
2815
|
detail: e.string().optional(),
|
|
2795
2816
|
status: e.enum(["409"]),
|
|
2796
2817
|
code: e.enum(["approval_already_sent_error"])
|
|
2797
|
-
}), e.object({
|
|
2798
|
-
detail: e.string().optional(),
|
|
2799
|
-
status: e.enum(["409"]),
|
|
2800
|
-
code: e.enum(["customer_has_no_approval_email"])
|
|
2801
2818
|
});
|
|
2802
|
-
var
|
|
2819
|
+
var ki = e.object({
|
|
2803
2820
|
statuses: e.array(_).optional(),
|
|
2804
|
-
lifecycleStatuses: e.array(
|
|
2821
|
+
lifecycleStatuses: e.array(P).optional(),
|
|
2805
2822
|
customerUuids: e.array(e.uuid()).optional(),
|
|
2806
2823
|
dueOnRange: J.optional(),
|
|
2807
2824
|
issuedOnRange: J.optional(),
|
|
2808
2825
|
invoiceUuids: Y.optional(),
|
|
2809
2826
|
isDisputed: e.boolean().optional(),
|
|
2810
2827
|
isOverdue: e.boolean().optional(),
|
|
2811
|
-
settlementStatuses: e.array(
|
|
2828
|
+
settlementStatuses: e.array(R).optional(),
|
|
2812
2829
|
customerExternalIds: e.array(e.string()).optional(),
|
|
2813
2830
|
isOutstanding: e.boolean().optional(),
|
|
2814
2831
|
customFields: e.array(e.union([
|
|
@@ -2825,20 +2842,21 @@ var Di = e.object({
|
|
|
2825
2842
|
hasChangesSinceApprovalSent: e.boolean().optional(),
|
|
2826
2843
|
approvalStatuses: e.array(X).optional(),
|
|
2827
2844
|
isApprovalCancelled: e.boolean().optional(),
|
|
2828
|
-
isExternallyCreated: e.boolean().optional()
|
|
2829
|
-
|
|
2845
|
+
isExternallyCreated: e.boolean().optional(),
|
|
2846
|
+
poNumber: e.string().optional()
|
|
2847
|
+
}), Ai = e.object({
|
|
2830
2848
|
meta: Z,
|
|
2831
2849
|
skipped: e.array(Q)
|
|
2832
|
-
}),
|
|
2850
|
+
}), ji = e.object({
|
|
2833
2851
|
statuses: e.array(_).optional(),
|
|
2834
|
-
lifecycleStatuses: e.array(
|
|
2852
|
+
lifecycleStatuses: e.array(P).optional(),
|
|
2835
2853
|
customerUuids: e.array(e.uuid()).optional(),
|
|
2836
2854
|
dueOnRange: J.optional(),
|
|
2837
2855
|
issuedOnRange: J.optional(),
|
|
2838
2856
|
invoiceUuids: Y.optional(),
|
|
2839
2857
|
isDisputed: e.boolean().optional(),
|
|
2840
2858
|
isOverdue: e.boolean().optional(),
|
|
2841
|
-
settlementStatuses: e.array(
|
|
2859
|
+
settlementStatuses: e.array(R).optional(),
|
|
2842
2860
|
customerExternalIds: e.array(e.string()).optional(),
|
|
2843
2861
|
isOutstanding: e.boolean().optional(),
|
|
2844
2862
|
customFields: e.array(e.union([
|
|
@@ -2855,8 +2873,9 @@ var Di = e.object({
|
|
|
2855
2873
|
hasChangesSinceApprovalSent: e.boolean().optional(),
|
|
2856
2874
|
approvalStatuses: e.array(X).optional(),
|
|
2857
2875
|
isApprovalCancelled: e.boolean().optional(),
|
|
2858
|
-
isExternallyCreated: e.boolean().optional()
|
|
2859
|
-
|
|
2876
|
+
isExternallyCreated: e.boolean().optional(),
|
|
2877
|
+
poNumber: e.string().optional()
|
|
2878
|
+
}), Mi = e.object({
|
|
2860
2879
|
meta: Z,
|
|
2861
2880
|
skipped: e.array(Q)
|
|
2862
2881
|
});
|
|
@@ -2873,17 +2892,17 @@ e.object({
|
|
|
2873
2892
|
status: e.enum(["400"]),
|
|
2874
2893
|
code: e.enum(["missing_invoice_approval_file"])
|
|
2875
2894
|
});
|
|
2876
|
-
var
|
|
2895
|
+
var Ni = e.object({
|
|
2877
2896
|
fileUuids: e.array(e.uuid()).optional(),
|
|
2878
|
-
|
|
2897
|
+
internalNote: e.string().max(500).nullish()
|
|
2879
2898
|
});
|
|
2880
2899
|
e.object({
|
|
2881
2900
|
detail: e.string().optional(),
|
|
2882
2901
|
status: e.enum(["400"]),
|
|
2883
2902
|
code: e.enum(["missing_rejection_remarks"])
|
|
2884
2903
|
});
|
|
2885
|
-
var
|
|
2886
|
-
|
|
2904
|
+
var Pi = e.object({
|
|
2905
|
+
internalNote: e.string().max(500).nullish(),
|
|
2887
2906
|
reason: zn,
|
|
2888
2907
|
fileUuids: e.array(e.uuid()).optional()
|
|
2889
2908
|
});
|
|
@@ -2891,6 +2910,10 @@ e.object({
|
|
|
2891
2910
|
detail: e.string().optional(),
|
|
2892
2911
|
status: e.enum(["409"]),
|
|
2893
2912
|
code: e.enum(["invoice_approval_already_cancelled"])
|
|
2913
|
+
}), e.object({
|
|
2914
|
+
detail: e.string().optional(),
|
|
2915
|
+
status: e.enum(["409"]),
|
|
2916
|
+
code: e.enum(["invoice_approval_not_active"])
|
|
2894
2917
|
}), e.object({
|
|
2895
2918
|
detail: e.string().optional(),
|
|
2896
2919
|
status: e.enum(["409"]),
|
|
@@ -2904,18 +2927,22 @@ e.object({
|
|
|
2904
2927
|
status: e.enum(["409"]),
|
|
2905
2928
|
code: e.enum(["approval_restart_requires_active_approval"])
|
|
2906
2929
|
});
|
|
2907
|
-
var
|
|
2930
|
+
var Fi = e.object({
|
|
2931
|
+
internalNote: e.string().max(500).nullable(),
|
|
2932
|
+
fileUuids: e.array(e.uuid())
|
|
2933
|
+
}), Ii = e.object({
|
|
2908
2934
|
status: Rn.optional(),
|
|
2935
|
+
mode: x.optional(),
|
|
2909
2936
|
invoiceUuid: e.uuid().optional(),
|
|
2910
2937
|
customerUuid: e.uuid().optional(),
|
|
2911
|
-
level:
|
|
2938
|
+
level: Bn.optional(),
|
|
2912
2939
|
hasChangesSinceApprovalSent: e.boolean().optional(),
|
|
2913
2940
|
isCancelled: e.boolean().optional()
|
|
2914
|
-
}),
|
|
2941
|
+
}), Li = e.object({
|
|
2915
2942
|
uuid: e.uuid(),
|
|
2916
2943
|
subject: e.string().nullable(),
|
|
2917
2944
|
hasChangesSinceApprovalSent: e.boolean()
|
|
2918
|
-
}),
|
|
2945
|
+
}), Ri = e.object({
|
|
2919
2946
|
uuid: e.uuid(),
|
|
2920
2947
|
issuedOn: e.union([
|
|
2921
2948
|
e.iso.date(),
|
|
@@ -2925,15 +2952,16 @@ var Ni = e.object({
|
|
|
2925
2952
|
netAmount: y,
|
|
2926
2953
|
grossAmount: y,
|
|
2927
2954
|
balanceDueAmount: y.nullable()
|
|
2928
|
-
}),
|
|
2955
|
+
}), zi = e.object({
|
|
2929
2956
|
uuid: e.uuid(),
|
|
2930
2957
|
name: e.string().nullable()
|
|
2931
|
-
}),
|
|
2958
|
+
}), Bi = e.object({
|
|
2932
2959
|
name: e.string().nullable(),
|
|
2933
2960
|
email: e.email().nullable()
|
|
2934
|
-
}),
|
|
2961
|
+
}), Vi = e.object({
|
|
2935
2962
|
uuid: e.uuid(),
|
|
2936
2963
|
createdAt: e.iso.datetime(),
|
|
2964
|
+
mode: x,
|
|
2937
2965
|
status: Rn,
|
|
2938
2966
|
sentAt: e.union([
|
|
2939
2967
|
e.iso.datetime(),
|
|
@@ -2955,47 +2983,49 @@ var Ni = e.object({
|
|
|
2955
2983
|
e.enum(["infinity"]),
|
|
2956
2984
|
e.enum(["-infinity"])
|
|
2957
2985
|
]).nullable(),
|
|
2958
|
-
|
|
2986
|
+
internalNote: e.string().nullable(),
|
|
2987
|
+
externalNote: e.string().nullable(),
|
|
2959
2988
|
rejectionReason: zn.nullable(),
|
|
2960
|
-
level:
|
|
2989
|
+
level: Bn.nullable(),
|
|
2961
2990
|
lastReminderSentAt: e.union([
|
|
2962
2991
|
e.iso.datetime(),
|
|
2963
2992
|
e.enum(["infinity"]),
|
|
2964
2993
|
e.enum(["-infinity"])
|
|
2965
2994
|
]).nullable(),
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2995
|
+
netAmount: y,
|
|
2996
|
+
grossAmount: y,
|
|
2997
|
+
invoice: Li,
|
|
2998
|
+
proForma: Ri.nullable(),
|
|
2999
|
+
customer: zi,
|
|
3000
|
+
recipient: Bi
|
|
3001
|
+
}), Hi = e.object({
|
|
3002
|
+
items: e.array(Vi),
|
|
2972
3003
|
meta: h
|
|
2973
|
-
}),
|
|
3004
|
+
}), Ui = e.object({
|
|
2974
3005
|
uuid: e.uuid(),
|
|
2975
3006
|
name: e.string().nullable(),
|
|
2976
3007
|
email: e.email().nullable(),
|
|
2977
3008
|
phoneNumber: e.string().nullable(),
|
|
2978
3009
|
website: e.string().nullable(),
|
|
2979
|
-
address:
|
|
3010
|
+
address: S.nullable(),
|
|
2980
3011
|
vatNumber: e.string().nullable(),
|
|
2981
3012
|
bankAccountNumber: e.string().nullable(),
|
|
2982
3013
|
alternativeBankAccountNumber: e.string().nullable()
|
|
2983
|
-
}),
|
|
3014
|
+
}), Wi = e.object({
|
|
2984
3015
|
uuid: e.uuid(),
|
|
2985
3016
|
name: e.string().nullable(),
|
|
2986
3017
|
email: e.email().nullable(),
|
|
2987
3018
|
phoneNumber: e.string().nullable(),
|
|
2988
|
-
address:
|
|
3019
|
+
address: S.nullable(),
|
|
2989
3020
|
vatNumber: e.string().nullable(),
|
|
2990
3021
|
type: g
|
|
2991
|
-
}),
|
|
3022
|
+
}), Gi = e.object({
|
|
2992
3023
|
uuid: e.uuid(),
|
|
2993
3024
|
groupUuid: e.uuid().nullable(),
|
|
2994
3025
|
position: e.number(),
|
|
2995
3026
|
name: e.string(),
|
|
2996
3027
|
description: e.string().nullable(),
|
|
2997
3028
|
customFields: e.array(e.union([
|
|
2998
|
-
C,
|
|
2999
3029
|
w,
|
|
3000
3030
|
T,
|
|
3001
3031
|
E,
|
|
@@ -3004,24 +3034,24 @@ var Ni = e.object({
|
|
|
3004
3034
|
k,
|
|
3005
3035
|
A,
|
|
3006
3036
|
j,
|
|
3007
|
-
M
|
|
3037
|
+
M,
|
|
3038
|
+
N
|
|
3008
3039
|
])),
|
|
3009
3040
|
quantity: e.number(),
|
|
3010
3041
|
unitPrice: y,
|
|
3011
|
-
vatRate:
|
|
3042
|
+
vatRate: I,
|
|
3012
3043
|
vatRatePercentage: e.number(),
|
|
3013
3044
|
netAmount: y,
|
|
3014
3045
|
grossAmount: y,
|
|
3015
|
-
discount:
|
|
3046
|
+
discount: L.nullable(),
|
|
3016
3047
|
unit: ln,
|
|
3017
3048
|
isDiscount: e.boolean()
|
|
3018
|
-
}),
|
|
3049
|
+
}), Ki = e.object({
|
|
3019
3050
|
uuid: e.uuid(),
|
|
3020
3051
|
position: e.number(),
|
|
3021
3052
|
name: e.string(),
|
|
3022
3053
|
description: e.string().nullable(),
|
|
3023
3054
|
customFields: e.array(e.union([
|
|
3024
|
-
C,
|
|
3025
3055
|
w,
|
|
3026
3056
|
T,
|
|
3027
3057
|
E,
|
|
@@ -3030,26 +3060,26 @@ var Ni = e.object({
|
|
|
3030
3060
|
k,
|
|
3031
3061
|
A,
|
|
3032
3062
|
j,
|
|
3033
|
-
M
|
|
3063
|
+
M,
|
|
3064
|
+
N
|
|
3034
3065
|
])),
|
|
3035
|
-
lines: e.array(
|
|
3036
|
-
groups: e.array(e.lazy(() =>
|
|
3037
|
-
}),
|
|
3038
|
-
vatRate:
|
|
3066
|
+
lines: e.array(Gi),
|
|
3067
|
+
groups: e.array(e.lazy(() => Ki))
|
|
3068
|
+
}), qi = e.object({
|
|
3069
|
+
vatRate: I,
|
|
3039
3070
|
netAmount: y,
|
|
3040
3071
|
vatAmount: y
|
|
3041
|
-
}),
|
|
3072
|
+
}), Ji = e.object({
|
|
3042
3073
|
uuid: e.uuid(),
|
|
3043
3074
|
createdAt: e.iso.datetime(),
|
|
3044
3075
|
updatedAt: e.iso.datetime(),
|
|
3045
3076
|
issueOn: e.iso.date().nullable(),
|
|
3046
|
-
issuer:
|
|
3047
|
-
customer:
|
|
3077
|
+
issuer: Ui,
|
|
3078
|
+
customer: Wi,
|
|
3048
3079
|
paymentReference: e.string().nullable(),
|
|
3049
3080
|
subject: e.string().nullable(),
|
|
3050
3081
|
poNumber: e.string().nullable(),
|
|
3051
3082
|
customFields: e.array(e.union([
|
|
3052
|
-
C,
|
|
3053
3083
|
w,
|
|
3054
3084
|
T,
|
|
3055
3085
|
E,
|
|
@@ -3058,28 +3088,32 @@ var Ni = e.object({
|
|
|
3058
3088
|
k,
|
|
3059
3089
|
A,
|
|
3060
3090
|
j,
|
|
3061
|
-
M
|
|
3091
|
+
M,
|
|
3092
|
+
N
|
|
3062
3093
|
])),
|
|
3063
|
-
ungroupedLines: e.array(
|
|
3064
|
-
groups: e.array(
|
|
3065
|
-
vatSummaries: e.array(
|
|
3094
|
+
ungroupedLines: e.array(Gi),
|
|
3095
|
+
groups: e.array(Ki),
|
|
3096
|
+
vatSummaries: e.array(qi),
|
|
3066
3097
|
grossAmount: y,
|
|
3067
3098
|
netAmount: y,
|
|
3068
3099
|
effectiveNet: y,
|
|
3069
3100
|
vatAmount: y,
|
|
3070
3101
|
totalDiscountAmount: y.nullable(),
|
|
3071
|
-
globalDiscount:
|
|
3102
|
+
globalDiscount: L.nullable(),
|
|
3072
3103
|
advancePaymentAmount: y.nullable(),
|
|
3073
3104
|
amountDue: y,
|
|
3074
3105
|
externalRemarks: e.string().nullable()
|
|
3075
|
-
}),
|
|
3106
|
+
}), Yi = e.enum(["after_approval_request", "after_last_reminder"]), Xi = e.object({
|
|
3076
3107
|
uuid: e.uuid(),
|
|
3077
3108
|
issuerUuid: e.uuid(),
|
|
3078
|
-
sequence:
|
|
3079
|
-
schedule:
|
|
3109
|
+
sequence: Bn,
|
|
3110
|
+
schedule: Yi,
|
|
3080
3111
|
offsetDays: e.number(),
|
|
3081
|
-
template:
|
|
3082
|
-
}),
|
|
3112
|
+
template: Zr
|
|
3113
|
+
}), Zi = e.object({
|
|
3114
|
+
items: e.array(Xi),
|
|
3115
|
+
approvalMailTemplate: Zr
|
|
3116
|
+
});
|
|
3083
3117
|
e.object({
|
|
3084
3118
|
detail: e.string().optional(),
|
|
3085
3119
|
status: e.enum(["400"]),
|
|
@@ -3093,19 +3127,67 @@ e.object({
|
|
|
3093
3127
|
status: e.enum(["400"]),
|
|
3094
3128
|
code: e.enum(["additional_approval_reminder_config"])
|
|
3095
3129
|
});
|
|
3096
|
-
var
|
|
3097
|
-
sequence:
|
|
3130
|
+
var Qi = e.object({
|
|
3131
|
+
sequence: Bn,
|
|
3098
3132
|
offsetDays: e.int().gte(1),
|
|
3099
|
-
schedule:
|
|
3100
|
-
template:
|
|
3101
|
-
}),
|
|
3133
|
+
schedule: Yi,
|
|
3134
|
+
template: ni
|
|
3135
|
+
}), $i = e.object({ reminders: e.array(Qi).max(2) }), ea = e.object({
|
|
3136
|
+
subject: F,
|
|
3137
|
+
body: F
|
|
3138
|
+
}), ta = e.object({ isPast: e.boolean().optional() }), na = e.object({
|
|
3139
|
+
startDate: e.union([
|
|
3140
|
+
e.iso.date(),
|
|
3141
|
+
e.enum(["infinity"]),
|
|
3142
|
+
e.enum(["-infinity"])
|
|
3143
|
+
]),
|
|
3144
|
+
endDate: e.union([
|
|
3145
|
+
e.iso.date(),
|
|
3146
|
+
e.enum(["infinity"]),
|
|
3147
|
+
e.enum(["-infinity"])
|
|
3148
|
+
])
|
|
3149
|
+
}), ra = e.object({
|
|
3150
|
+
uuid: e.uuid(),
|
|
3151
|
+
name: e.string(),
|
|
3152
|
+
period: na
|
|
3153
|
+
}), ia = e.object({ items: e.array(ra) });
|
|
3154
|
+
e.object({
|
|
3155
|
+
detail: e.string().optional(),
|
|
3156
|
+
status: e.enum(["409"]),
|
|
3157
|
+
code: e.enum(["approval_follow_up_pause_overlap"])
|
|
3158
|
+
}), e.object({
|
|
3159
|
+
detail: e.string().optional(),
|
|
3160
|
+
status: e.enum(["400"]),
|
|
3161
|
+
code: e.enum(["approval_follow_up_pause_period_in_past"])
|
|
3162
|
+
});
|
|
3163
|
+
var aa = e.object({
|
|
3164
|
+
name: e.string().max(100),
|
|
3165
|
+
period: J
|
|
3166
|
+
}), oa = e.object({ uuid: e.uuid() });
|
|
3167
|
+
e.object({
|
|
3168
|
+
detail: e.string().optional(),
|
|
3169
|
+
status: e.enum(["404"]),
|
|
3170
|
+
code: e.enum(["approval_follow_up_pause_not_found"])
|
|
3171
|
+
}), e.object({
|
|
3172
|
+
detail: e.string().optional(),
|
|
3173
|
+
status: e.enum(["409"]),
|
|
3174
|
+
code: e.enum(["approval_follow_up_pause_past"])
|
|
3175
|
+
}), e.object({
|
|
3176
|
+
detail: e.string().optional(),
|
|
3177
|
+
status: e.enum(["409"]),
|
|
3178
|
+
code: e.enum(["approval_follow_up_pause_started"])
|
|
3179
|
+
});
|
|
3180
|
+
var sa = e.object({
|
|
3181
|
+
name: e.string().max(100),
|
|
3182
|
+
period: J
|
|
3183
|
+
}), $ = e.enum(["soluz"]), ca = e.object({
|
|
3102
3184
|
provider: $,
|
|
3103
3185
|
partyId: e.string(),
|
|
3104
3186
|
enabled: e.boolean(),
|
|
3105
3187
|
hasApiKey: e.boolean(),
|
|
3106
3188
|
validatedAt: e.iso.datetime()
|
|
3107
|
-
}),
|
|
3108
|
-
connection:
|
|
3189
|
+
}), la = e.object({
|
|
3190
|
+
connection: ca.nullable(),
|
|
3109
3191
|
providers: e.array($)
|
|
3110
3192
|
});
|
|
3111
3193
|
e.object({
|
|
@@ -3114,11 +3196,11 @@ e.object({
|
|
|
3114
3196
|
code: e.enum(["peppol_error"]),
|
|
3115
3197
|
meta: e.record(e.string(), e.unknown())
|
|
3116
3198
|
}), e.object({ provider: $ });
|
|
3117
|
-
var
|
|
3199
|
+
var ua = e.object({
|
|
3118
3200
|
id: e.string(),
|
|
3119
3201
|
name: e.string(),
|
|
3120
3202
|
vatNumber: e.string()
|
|
3121
|
-
}),
|
|
3203
|
+
}), da = e.object({ companies: e.array(ua) });
|
|
3122
3204
|
e.object({
|
|
3123
3205
|
provider: $,
|
|
3124
3206
|
partyId: e.string(),
|
|
@@ -3137,53 +3219,53 @@ e.object({
|
|
|
3137
3219
|
code: e.enum(["invoice_delivery_rejected"]),
|
|
3138
3220
|
meta: e.record(e.string(), e.unknown())
|
|
3139
3221
|
});
|
|
3140
|
-
var
|
|
3141
|
-
channel:
|
|
3222
|
+
var fa = e.enum(["email", "peppol"]), pa = e.object({ channels: e.array(fa) }), ma = e.object({
|
|
3223
|
+
channel: fa,
|
|
3142
3224
|
ready: e.number(),
|
|
3143
3225
|
queued: e.number(),
|
|
3144
3226
|
existing: e.number(),
|
|
3145
3227
|
skipped: e.number()
|
|
3146
|
-
}),
|
|
3228
|
+
}), ha = e.enum([
|
|
3147
3229
|
"queued",
|
|
3148
3230
|
"submitting",
|
|
3149
3231
|
"submitted",
|
|
3150
3232
|
"sent",
|
|
3151
3233
|
"failed",
|
|
3152
3234
|
"uncertain"
|
|
3153
|
-
]),
|
|
3235
|
+
]), ga = e.object({
|
|
3154
3236
|
uuid: e.uuid(),
|
|
3155
3237
|
invoiceUuid: e.uuid(),
|
|
3156
|
-
channel:
|
|
3157
|
-
state:
|
|
3238
|
+
channel: fa,
|
|
3239
|
+
state: ha,
|
|
3158
3240
|
provider: $.nullable(),
|
|
3159
3241
|
providerReference: e.string().nullable(),
|
|
3160
3242
|
errorCode: e.string().nullable(),
|
|
3161
3243
|
revision: e.number()
|
|
3162
|
-
}),
|
|
3244
|
+
}), _a = e.object({
|
|
3163
3245
|
label: e.string().nullable(),
|
|
3164
3246
|
queued: e.boolean(),
|
|
3165
3247
|
invoiceUuid: e.uuid(),
|
|
3166
|
-
channel:
|
|
3248
|
+
channel: fa,
|
|
3167
3249
|
eligible: e.boolean(),
|
|
3168
3250
|
reason: e.string().nullable(),
|
|
3169
|
-
delivery:
|
|
3170
|
-
}),
|
|
3251
|
+
delivery: ga.nullable()
|
|
3252
|
+
}), va = e.object({
|
|
3171
3253
|
totalDocuments: e.number(),
|
|
3172
|
-
channels: e.array(
|
|
3173
|
-
items: e.array(
|
|
3174
|
-
}),
|
|
3175
|
-
channels: e.array(
|
|
3254
|
+
channels: e.array(ma),
|
|
3255
|
+
items: e.array(_a)
|
|
3256
|
+
}), ya = e.object({
|
|
3257
|
+
channels: e.array(fa),
|
|
3176
3258
|
invoiceUuids: e.array(e.uuid()).optional()
|
|
3177
|
-
}),
|
|
3259
|
+
}), ba = e.object({
|
|
3178
3260
|
uuid: e.uuid(),
|
|
3179
3261
|
invoiceUuid: e.uuid(),
|
|
3180
|
-
channel:
|
|
3181
|
-
state:
|
|
3262
|
+
channel: fa,
|
|
3263
|
+
state: ha,
|
|
3182
3264
|
provider: $.nullable(),
|
|
3183
3265
|
providerReference: e.string().nullable(),
|
|
3184
3266
|
errorCode: e.string().nullable(),
|
|
3185
3267
|
revision: e.number()
|
|
3186
|
-
}),
|
|
3268
|
+
}), xa = e.object({ deliveries: e.array(ba) });
|
|
3187
3269
|
e.object({
|
|
3188
3270
|
detail: e.string().optional(),
|
|
3189
3271
|
status: e.enum(["409"]),
|
|
@@ -3197,16 +3279,16 @@ e.object({
|
|
|
3197
3279
|
status: e.enum(["503"]),
|
|
3198
3280
|
code: e.enum(["mail_unavailable"])
|
|
3199
3281
|
});
|
|
3200
|
-
var
|
|
3282
|
+
var Sa = e.object({ uuid: e.uuid() });
|
|
3201
3283
|
e.object({
|
|
3202
3284
|
detail: e.string().optional(),
|
|
3203
3285
|
status: e.enum(["500"]),
|
|
3204
3286
|
code: e.enum(["internal_server_error"])
|
|
3205
3287
|
});
|
|
3206
|
-
var
|
|
3288
|
+
var Ca = e.object({
|
|
3207
3289
|
provider: $,
|
|
3208
3290
|
apiKey: e.string().optional()
|
|
3209
|
-
}),
|
|
3291
|
+
}), wa = e.object({
|
|
3210
3292
|
provider: $,
|
|
3211
3293
|
apiKey: e.string().optional(),
|
|
3212
3294
|
partyId: e.string(),
|
|
@@ -3214,19 +3296,19 @@ var fa = e.object({
|
|
|
3214
3296
|
});
|
|
3215
3297
|
e.object({
|
|
3216
3298
|
search: e.string().optional(),
|
|
3217
|
-
pagination:
|
|
3299
|
+
pagination: be.optional()
|
|
3218
3300
|
}), e.object({ uuid: e.uuid() }), e.void(), e.object({
|
|
3219
3301
|
fresh: e.boolean(),
|
|
3220
|
-
collections: e.array(
|
|
3221
|
-
}), e.object({ collections: e.array(
|
|
3222
|
-
var
|
|
3223
|
-
pagination:
|
|
3302
|
+
collections: e.array(Ce).optional()
|
|
3303
|
+
}), e.object({ collections: e.array(Ce).optional() }), e.object({ user: e.uuid() }), e.object({ uuid: e.uuid() });
|
|
3304
|
+
var Ta = e.object({
|
|
3305
|
+
pagination: Te.optional(),
|
|
3224
3306
|
search: e.string().optional()
|
|
3225
|
-
}),
|
|
3307
|
+
}), Ea = Oe;
|
|
3226
3308
|
e.void(), e.void(), e.object({ role: e.uuid() }), e.void(), e.object({ role: e.uuid() }), e.object({ role: e.uuid() }), e.void();
|
|
3227
|
-
var
|
|
3309
|
+
var Da = Me, Oa = Ne;
|
|
3228
3310
|
e.object({ file: e.uuid() }), e.void();
|
|
3229
|
-
var
|
|
3311
|
+
var ka = Pe, Aa = e.object({ file: e.uuid() }), ja = e.void(), Ma = e.object({ file: e.uuid() });
|
|
3230
3312
|
e.object({ file: e.uuid() }), e.object({ token: e.string() }), e.object({
|
|
3231
3313
|
filter: Be.optional(),
|
|
3232
3314
|
pagination: He.optional()
|
|
@@ -3242,261 +3324,261 @@ e.object({ file: e.uuid() }), e.object({ token: e.string() }), e.object({
|
|
|
3242
3324
|
filter: Ct.optional(),
|
|
3243
3325
|
pagination: Tt.optional()
|
|
3244
3326
|
}), e.object({ jobId: e.uuid() }), e.object({
|
|
3245
|
-
pagination:
|
|
3327
|
+
pagination: Te.optional(),
|
|
3246
3328
|
search: e.string().optional()
|
|
3247
3329
|
}), e.object({ uuid: e.uuid() }), e.object({ uuid: e.uuid() }), e.void(), e.object({ uuid: e.uuid() }), e.object({ slug: e.string() }), e.object({ uuid: e.uuid() }), e.void();
|
|
3248
|
-
var
|
|
3249
|
-
pagination:
|
|
3330
|
+
var Na = e.object({
|
|
3331
|
+
pagination: Te.optional(),
|
|
3250
3332
|
filter: Rt.optional(),
|
|
3251
3333
|
search: e.string().optional()
|
|
3252
|
-
}),
|
|
3334
|
+
}), Pa = Bt, Fa = e.object({ uuid: e.uuid() }), Ia = Lt;
|
|
3253
3335
|
e.object({ uuid: e.uuid() }), e.void(), e.object({ uuid: e.uuid() }), e.void(), e.object({ uuid: e.uuid() }), e.void(), e.object({ uuid: e.uuid() }), e.void(), e.object({ uuid: e.uuid() }), e.void(), e.object({ uuid: e.uuid() }), e.void(), e.object({ uuid: e.uuid() }), e.object({ uuid: e.uuid() }), e.void();
|
|
3254
|
-
var
|
|
3255
|
-
pagination:
|
|
3256
|
-
sort: e.array(
|
|
3257
|
-
filter:
|
|
3336
|
+
var La = e.object({ uuid: e.uuid() }), Ra = e.object({ pagination: Te.optional() }), za = Wt, Ba = Xt, Va = Zt, Ha = e.void(), Ua = e.object({ token: e.string() }), Wa = hn, Ga = e.object({
|
|
3337
|
+
pagination: Te.optional(),
|
|
3338
|
+
sort: e.array(Wn).optional(),
|
|
3339
|
+
filter: Kn.optional(),
|
|
3258
3340
|
search: e.string().optional()
|
|
3259
|
-
}),
|
|
3341
|
+
}), Ka = Xn, qa = bn, Ja = xn, Ya = e.object({ uuid: e.uuid() }), Xa = e.void(), Za = e.object({ uuid: e.uuid() }), Qa = Hn, $a = Zn, eo = e.object({ uuid: e.uuid() }), to = e.void(), no = yn, ro = e.object({ uuid: e.uuid() }), io = e.void();
|
|
3260
3342
|
e.object({ uuid: e.uuid() }), e.void();
|
|
3261
|
-
var
|
|
3262
|
-
filter:
|
|
3263
|
-
search: e.string().optional()
|
|
3264
|
-
}), ko = _r, Ao = e.object({
|
|
3265
|
-
filter: vr.optional(),
|
|
3343
|
+
var ao = Qn, oo = e.object({ uuid: e.uuid() }), so = e.void(), co = $n, lo = e.object({ uuid: e.uuid() }), uo = e.void(), fo = ar, po = e.object({ uuid: e.uuid() }), mo = e.object({ uuid: e.uuid() }), ho = or, go = lr, _o = e.object({ uuid: e.uuid() }), vo = e.void(), yo = dr, bo = e.object({ uuid: e.uuid() }), xo = e.void(), So = e.object({ uuid: e.uuid() }), Co = e.object({ uuid: e.uuid() }), wo = e.void(), To = e.object({ uuid: e.uuid() }), Eo = fr, Do = e.object({ uuid: e.uuid() }), Oo = pr, ko = e.object({ uuid: e.uuid() }), Ao = e.void(), jo = mr, Mo = e.object({ uuid: e.uuid() }), No = e.void(), Po = e.object({ uuid: e.uuid() }), Fo = e.void(), Io = e.object({ uuid: e.uuid() }), Lo = e.void(), Ro = e.object({
|
|
3344
|
+
filter: hr.optional(),
|
|
3266
3345
|
search: e.string().optional()
|
|
3267
|
-
}),
|
|
3346
|
+
}), zo = yr, Bo = e.object({
|
|
3268
3347
|
filter: br.optional(),
|
|
3269
3348
|
search: e.string().optional()
|
|
3270
|
-
}),
|
|
3271
|
-
filter:
|
|
3349
|
+
}), Vo = xr, Ho = e.object({ uuid: e.uuid() }), Uo = e.void(), Wo = e.object({
|
|
3350
|
+
filter: Sr.optional(),
|
|
3272
3351
|
search: e.string().optional()
|
|
3273
|
-
}),
|
|
3352
|
+
}), Go = Cr, Ko = wr, qo = e.object({
|
|
3274
3353
|
filter: Tr.optional(),
|
|
3275
3354
|
search: e.string().optional()
|
|
3276
|
-
}),
|
|
3355
|
+
}), Jo = Er, Yo = e.object({
|
|
3277
3356
|
filter: Dr.optional(),
|
|
3278
3357
|
search: e.string().optional()
|
|
3279
|
-
}),
|
|
3358
|
+
}), Xo = Or, Zo = e.object({
|
|
3280
3359
|
filter: kr.optional(),
|
|
3281
|
-
|
|
3282
|
-
}),
|
|
3360
|
+
search: e.string().optional()
|
|
3361
|
+
}), Qo = Ar, $o = e.object({ uuid: e.uuid() }), es = e.void(), ts = e.object({
|
|
3362
|
+
filter: jr.optional(),
|
|
3363
|
+
pagination: Nr.optional()
|
|
3364
|
+
}), ns = Ur, rs = e.object({ uuid: e.uuid() }), is = Yr, as = Gr, os = e.object({ uuid: e.uuid() }), ss = Kr, cs = e.object({
|
|
3283
3365
|
uuid: e.uuid(),
|
|
3284
3366
|
paymentUuid: e.uuid()
|
|
3285
|
-
}),
|
|
3286
|
-
pagination:
|
|
3287
|
-
filter:
|
|
3288
|
-
}),
|
|
3289
|
-
filter: Di.optional(),
|
|
3290
|
-
search: e.string().optional()
|
|
3291
|
-
}), ys = Oi, bs = e.object({
|
|
3367
|
+
}), ls = e.void(), us = ti, ds = ii, fs = e.void(), ps = e.object({ filter: oi.optional() }), ms = e.array(sn), hs = e.object({ uuid: e.uuid() }), gs = pi, _s = e.object({
|
|
3368
|
+
pagination: Te.optional(),
|
|
3369
|
+
filter: mi.optional()
|
|
3370
|
+
}), vs = vi, ys = e.object({ uuid: e.uuid() }), bs = e.object({ uuid: e.uuid() }), xs = e.object({ filter: yi.optional() }), Ss = bi, Cs = e.object({ filter: xi.optional() }), ws = Si, Ts = e.object({ token: e.string() }), Es = Oi, Ds = e.object({ uuid: e.uuid() }), Os = e.object({
|
|
3292
3371
|
filter: ki.optional(),
|
|
3293
3372
|
search: e.string().optional()
|
|
3294
|
-
}),
|
|
3295
|
-
|
|
3296
|
-
filter: Ni.optional()
|
|
3297
|
-
}), Ms = zi, Ns = e.object({ token: e.string() }), Ps = Gi, Fs = Ji, Is = Xi, Ls = e.void(), Rs = Qi, zs = pa, Bs = fa, Vs = ea, Hs = na, Us = e.object({ uuid: e.uuid() }), Ws = sa, Gs = ca, Ks = e.object({
|
|
3298
|
-
filter: Gn.optional(),
|
|
3373
|
+
}), ks = Ai, As = e.object({
|
|
3374
|
+
filter: ji.optional(),
|
|
3299
3375
|
search: e.string().optional()
|
|
3300
|
-
}),
|
|
3301
|
-
|
|
3376
|
+
}), js = Mi, Ms = Ni, Ns = e.object({ uuid: e.uuid() }), Ps = e.void(), Fs = Pi, Is = e.object({ uuid: e.uuid() }), Ls = e.void(), Rs = e.object({ uuid: e.uuid() }), zs = e.void(), Bs = e.object({ uuid: e.uuid() }), Vs = Fi, Hs = e.object({ uuid: e.uuid() }), Us = e.void(), Ws = e.object({
|
|
3377
|
+
pagination: Te.optional(),
|
|
3378
|
+
filter: Ii.optional()
|
|
3379
|
+
}), Gs = Hi, Ks = e.object({ token: e.string() }), qs = Ji, Js = Zi, Ys = $i, Xs = e.void(), Zs = ea, Qs = e.void(), $s = e.object({ filter: ta.optional() }), ec = ia, tc = aa, nc = oa, rc = e.object({ uuid: e.uuid() }), ic = e.void(), ac = sa, oc = e.object({ uuid: e.uuid() }), sc = e.void(), cc = la, lc = wa, uc = Ca, dc = da, fc = pa, pc = e.object({ uuid: e.uuid() }), mc = va, hc = ya, gc = e.object({
|
|
3380
|
+
filter: Kn.optional(),
|
|
3302
3381
|
search: e.string().optional()
|
|
3303
|
-
}),
|
|
3382
|
+
}), _c = va, vc = ya, yc = e.object({
|
|
3383
|
+
filter: Kn.optional(),
|
|
3384
|
+
search: e.string().optional()
|
|
3385
|
+
}), bc = va, xc = e.object({ uuid: e.uuid() }), Sc = xa, Cc = e.object({ uuid: e.uuid() }), wc = Sa, Tc = (t) => (t?.client ?? p).get({
|
|
3304
3386
|
requestValidator: async (t) => await e.object({
|
|
3305
3387
|
body: e.never().optional(),
|
|
3306
3388
|
path: e.never().optional(),
|
|
3307
|
-
query:
|
|
3389
|
+
query: Ta.optional()
|
|
3308
3390
|
}).parseAsync(t),
|
|
3309
|
-
responseValidator: async (e) => await
|
|
3391
|
+
responseValidator: async (e) => await Ea.parseAsync(e),
|
|
3310
3392
|
url: "/api/v1/users",
|
|
3311
3393
|
...t
|
|
3312
|
-
}),
|
|
3394
|
+
}), Ec = (t) => (t.client ?? p).post({
|
|
3313
3395
|
requestValidator: async (t) => await e.object({
|
|
3314
|
-
body:
|
|
3396
|
+
body: Da,
|
|
3315
3397
|
path: e.never().optional(),
|
|
3316
3398
|
query: e.never().optional()
|
|
3317
3399
|
}).parseAsync(t),
|
|
3318
|
-
responseValidator: async (e) => await
|
|
3400
|
+
responseValidator: async (e) => await Oa.parseAsync(e),
|
|
3319
3401
|
url: "/api/v1/files",
|
|
3320
3402
|
...t,
|
|
3321
3403
|
headers: {
|
|
3322
3404
|
"Content-Type": "application/json",
|
|
3323
3405
|
...t.headers
|
|
3324
3406
|
}
|
|
3325
|
-
}),
|
|
3407
|
+
}), Dc = (t) => (t.client ?? p).post({
|
|
3326
3408
|
requestValidator: async (t) => await e.object({
|
|
3327
|
-
body:
|
|
3328
|
-
path:
|
|
3409
|
+
body: ka,
|
|
3410
|
+
path: Aa,
|
|
3329
3411
|
query: e.never().optional()
|
|
3330
3412
|
}).parseAsync(t),
|
|
3331
|
-
responseValidator: async (e) => await
|
|
3413
|
+
responseValidator: async (e) => await ja.parseAsync(e),
|
|
3332
3414
|
url: "/api/v2/files/{file}/confirm-upload",
|
|
3333
3415
|
...t,
|
|
3334
3416
|
headers: {
|
|
3335
3417
|
"Content-Type": "application/json",
|
|
3336
3418
|
...t.headers
|
|
3337
3419
|
}
|
|
3338
|
-
}),
|
|
3420
|
+
}), Oc = (t) => (t.client ?? p).post({
|
|
3339
3421
|
requestValidator: async (t) => await e.object({
|
|
3340
3422
|
body: e.never().optional(),
|
|
3341
|
-
path:
|
|
3423
|
+
path: Ma,
|
|
3342
3424
|
query: e.never().optional()
|
|
3343
3425
|
}).parseAsync(t),
|
|
3344
3426
|
url: "/api/v1/files/{file}/download",
|
|
3345
3427
|
...t
|
|
3346
|
-
}),
|
|
3428
|
+
}), kc = (t) => (t?.client ?? p).get({
|
|
3347
3429
|
requestValidator: async (t) => await e.object({
|
|
3348
3430
|
body: e.never().optional(),
|
|
3349
3431
|
path: e.never().optional(),
|
|
3350
|
-
query:
|
|
3432
|
+
query: Na.optional()
|
|
3351
3433
|
}).parseAsync(t),
|
|
3352
|
-
responseValidator: async (e) => await
|
|
3434
|
+
responseValidator: async (e) => await Pa.parseAsync(e),
|
|
3353
3435
|
url: "/api/v1/customers",
|
|
3354
3436
|
...t
|
|
3355
|
-
}),
|
|
3437
|
+
}), Ac = (t) => (t.client ?? p).get({
|
|
3356
3438
|
requestValidator: async (t) => await e.object({
|
|
3357
3439
|
body: e.never().optional(),
|
|
3358
|
-
path:
|
|
3440
|
+
path: Fa,
|
|
3359
3441
|
query: e.never().optional()
|
|
3360
3442
|
}).parseAsync(t),
|
|
3361
|
-
responseValidator: async (e) => await
|
|
3443
|
+
responseValidator: async (e) => await Ia.parseAsync(e),
|
|
3362
3444
|
url: "/api/v1/customers/{uuid}",
|
|
3363
3445
|
...t
|
|
3364
|
-
}),
|
|
3446
|
+
}), jc = (t) => (t.client ?? p).get({
|
|
3365
3447
|
requestValidator: async (t) => await e.object({
|
|
3366
3448
|
body: e.never().optional(),
|
|
3367
|
-
path:
|
|
3368
|
-
query:
|
|
3449
|
+
path: La,
|
|
3450
|
+
query: Ra.optional()
|
|
3369
3451
|
}).parseAsync(t),
|
|
3370
|
-
responseValidator: async (e) => await
|
|
3452
|
+
responseValidator: async (e) => await za.parseAsync(e),
|
|
3371
3453
|
url: "/api/v1/customers/{uuid}/recipients",
|
|
3372
3454
|
...t
|
|
3373
|
-
}),
|
|
3455
|
+
}), Mc = (t) => (t?.client ?? p).get({
|
|
3374
3456
|
requestValidator: async (t) => await e.object({
|
|
3375
3457
|
body: e.never().optional(),
|
|
3376
3458
|
path: e.never().optional(),
|
|
3377
3459
|
query: e.never().optional()
|
|
3378
3460
|
}).parseAsync(t),
|
|
3379
|
-
responseValidator: async (e) => await
|
|
3461
|
+
responseValidator: async (e) => await Ba.parseAsync(e),
|
|
3380
3462
|
url: "/api/v1/issuers",
|
|
3381
3463
|
...t
|
|
3382
|
-
}),
|
|
3464
|
+
}), Nc = (t) => (t.client ?? p).put({
|
|
3383
3465
|
requestValidator: async (t) => await e.object({
|
|
3384
|
-
body:
|
|
3466
|
+
body: Va,
|
|
3385
3467
|
path: e.never().optional(),
|
|
3386
3468
|
query: e.never().optional()
|
|
3387
3469
|
}).parseAsync(t),
|
|
3388
|
-
responseValidator: async (e) => await
|
|
3470
|
+
responseValidator: async (e) => await Ha.parseAsync(e),
|
|
3389
3471
|
url: "/api/v1/issuers",
|
|
3390
3472
|
...t,
|
|
3391
3473
|
headers: {
|
|
3392
3474
|
"Content-Type": "application/json",
|
|
3393
3475
|
...t.headers
|
|
3394
3476
|
}
|
|
3395
|
-
}),
|
|
3477
|
+
}), Pc = (t) => (t.client ?? p).get({
|
|
3396
3478
|
requestValidator: async (t) => await e.object({
|
|
3397
3479
|
body: e.never().optional(),
|
|
3398
3480
|
path: e.never().optional(),
|
|
3399
|
-
query:
|
|
3481
|
+
query: Ua
|
|
3400
3482
|
}).parseAsync(t),
|
|
3401
|
-
responseValidator: async (e) => await
|
|
3483
|
+
responseValidator: async (e) => await Wa.parseAsync(e),
|
|
3402
3484
|
url: "/api/v1/public/invoices",
|
|
3403
3485
|
...t
|
|
3404
|
-
}),
|
|
3486
|
+
}), Fc = (t) => (t?.client ?? p).get({
|
|
3405
3487
|
requestValidator: async (t) => await e.object({
|
|
3406
3488
|
body: e.never().optional(),
|
|
3407
3489
|
path: e.never().optional(),
|
|
3408
|
-
query:
|
|
3490
|
+
query: Ga.optional()
|
|
3409
3491
|
}).parseAsync(t),
|
|
3410
|
-
responseValidator: async (e) => await
|
|
3492
|
+
responseValidator: async (e) => await Ka.parseAsync(e),
|
|
3411
3493
|
url: "/api/v1/invoices",
|
|
3412
3494
|
...t
|
|
3413
|
-
}),
|
|
3495
|
+
}), Ic = (t) => (t.client ?? p).post({
|
|
3414
3496
|
requestValidator: async (t) => await e.object({
|
|
3415
|
-
body:
|
|
3497
|
+
body: qa,
|
|
3416
3498
|
path: e.never().optional(),
|
|
3417
3499
|
query: e.never().optional()
|
|
3418
3500
|
}).parseAsync(t),
|
|
3419
|
-
responseValidator: async (e) => await
|
|
3501
|
+
responseValidator: async (e) => await Ja.parseAsync(e),
|
|
3420
3502
|
url: "/api/v1/invoices",
|
|
3421
3503
|
...t,
|
|
3422
3504
|
headers: {
|
|
3423
3505
|
"Content-Type": "application/json",
|
|
3424
3506
|
...t.headers
|
|
3425
3507
|
}
|
|
3426
|
-
}),
|
|
3508
|
+
}), Lc = (t) => (t.client ?? p).delete({
|
|
3427
3509
|
requestValidator: async (t) => await e.object({
|
|
3428
3510
|
body: e.never().optional(),
|
|
3429
|
-
path:
|
|
3511
|
+
path: Ya,
|
|
3430
3512
|
query: e.never().optional()
|
|
3431
3513
|
}).parseAsync(t),
|
|
3432
|
-
responseValidator: async (e) => await
|
|
3514
|
+
responseValidator: async (e) => await Xa.parseAsync(e),
|
|
3433
3515
|
url: "/api/v1/invoices/{uuid}",
|
|
3434
3516
|
...t
|
|
3435
|
-
}),
|
|
3517
|
+
}), Rc = (t) => (t.client ?? p).get({
|
|
3436
3518
|
requestValidator: async (t) => await e.object({
|
|
3437
3519
|
body: e.never().optional(),
|
|
3438
|
-
path:
|
|
3520
|
+
path: Za,
|
|
3439
3521
|
query: e.never().optional()
|
|
3440
3522
|
}).parseAsync(t),
|
|
3441
|
-
responseValidator: async (e) => await
|
|
3523
|
+
responseValidator: async (e) => await Qa.parseAsync(e),
|
|
3442
3524
|
url: "/api/v1/invoices/{uuid}",
|
|
3443
3525
|
...t
|
|
3444
|
-
}),
|
|
3526
|
+
}), zc = (t) => (t.client ?? p).patch({
|
|
3445
3527
|
requestValidator: async (t) => await e.object({
|
|
3446
|
-
body:
|
|
3447
|
-
path:
|
|
3528
|
+
body: $a,
|
|
3529
|
+
path: eo,
|
|
3448
3530
|
query: e.never().optional()
|
|
3449
3531
|
}).parseAsync(t),
|
|
3450
|
-
responseValidator: async (e) => await
|
|
3532
|
+
responseValidator: async (e) => await to.parseAsync(e),
|
|
3451
3533
|
url: "/api/v1/invoices/{uuid}",
|
|
3452
3534
|
...t,
|
|
3453
3535
|
headers: {
|
|
3454
3536
|
"Content-Type": "application/json",
|
|
3455
3537
|
...t.headers
|
|
3456
3538
|
}
|
|
3457
|
-
}),
|
|
3539
|
+
}), Bc = (t) => (t.client ?? p).patch({
|
|
3458
3540
|
requestValidator: async (t) => await e.object({
|
|
3459
|
-
body:
|
|
3460
|
-
path:
|
|
3541
|
+
body: no,
|
|
3542
|
+
path: ro,
|
|
3461
3543
|
query: e.never().optional()
|
|
3462
3544
|
}).parseAsync(t),
|
|
3463
|
-
responseValidator: async (e) => await
|
|
3545
|
+
responseValidator: async (e) => await io.parseAsync(e),
|
|
3464
3546
|
url: "/api/v1/invoices/{uuid}/lines",
|
|
3465
3547
|
...t,
|
|
3466
3548
|
headers: {
|
|
3467
3549
|
"Content-Type": "application/json",
|
|
3468
3550
|
...t.headers
|
|
3469
3551
|
}
|
|
3470
|
-
}),
|
|
3552
|
+
}), Vc = (t) => (t.client ?? p).patch({
|
|
3471
3553
|
requestValidator: async (t) => await e.object({
|
|
3472
|
-
body:
|
|
3473
|
-
path:
|
|
3554
|
+
body: ao,
|
|
3555
|
+
path: oo,
|
|
3474
3556
|
query: e.never().optional()
|
|
3475
3557
|
}).parseAsync(t),
|
|
3476
|
-
responseValidator: async (e) => await
|
|
3558
|
+
responseValidator: async (e) => await so.parseAsync(e),
|
|
3477
3559
|
url: "/api/v2/invoices/{uuid}/discount",
|
|
3478
3560
|
...t,
|
|
3479
3561
|
headers: {
|
|
3480
3562
|
"Content-Type": "application/json",
|
|
3481
3563
|
...t.headers
|
|
3482
3564
|
}
|
|
3483
|
-
}),
|
|
3565
|
+
}), Hc = (t) => (t.client ?? p).patch({
|
|
3484
3566
|
requestValidator: async (t) => await e.object({
|
|
3485
|
-
body:
|
|
3486
|
-
path:
|
|
3567
|
+
body: co,
|
|
3568
|
+
path: lo,
|
|
3487
3569
|
query: e.never().optional()
|
|
3488
3570
|
}).parseAsync(t),
|
|
3489
|
-
responseValidator: async (e) => await
|
|
3571
|
+
responseValidator: async (e) => await uo.parseAsync(e),
|
|
3490
3572
|
url: "/api/v1/invoices/{uuid}/attachments",
|
|
3491
3573
|
...t,
|
|
3492
3574
|
headers: {
|
|
3493
3575
|
"Content-Type": "application/json",
|
|
3494
3576
|
...t.headers
|
|
3495
3577
|
}
|
|
3496
|
-
}),
|
|
3578
|
+
}), Uc = (t) => (t.client ?? p).post({
|
|
3497
3579
|
requestValidator: async (t) => await e.object({
|
|
3498
|
-
body:
|
|
3499
|
-
path:
|
|
3580
|
+
body: fo,
|
|
3581
|
+
path: po,
|
|
3500
3582
|
query: e.never().optional()
|
|
3501
3583
|
}).parseAsync(t),
|
|
3502
3584
|
url: "/api/v1/invoices/{uuid}/finalize",
|
|
@@ -3505,450 +3587,515 @@ var Ja = Zn, Ya = e.object({ uuid: e.uuid() }), Xa = e.void(), Za = Qn, Qa = e.o
|
|
|
3505
3587
|
"Content-Type": "application/json",
|
|
3506
3588
|
...t.headers
|
|
3507
3589
|
}
|
|
3508
|
-
}),
|
|
3590
|
+
}), Wc = (t) => (t.client ?? p).post({
|
|
3509
3591
|
requestValidator: async (t) => await e.object({
|
|
3510
3592
|
body: e.never().optional(),
|
|
3511
|
-
path:
|
|
3593
|
+
path: mo,
|
|
3512
3594
|
query: e.never().optional()
|
|
3513
3595
|
}).parseAsync(t),
|
|
3514
|
-
responseValidator: async (e) => await
|
|
3596
|
+
responseValidator: async (e) => await ho.parseAsync(e),
|
|
3515
3597
|
url: "/api/v1/invoices/{uuid}/credit-note",
|
|
3516
3598
|
...t
|
|
3517
|
-
}),
|
|
3599
|
+
}), Gc = (t) => (t.client ?? p).patch({
|
|
3518
3600
|
requestValidator: async (t) => await e.object({
|
|
3519
|
-
body:
|
|
3520
|
-
path:
|
|
3601
|
+
body: go,
|
|
3602
|
+
path: _o,
|
|
3521
3603
|
query: e.never().optional()
|
|
3522
3604
|
}).parseAsync(t),
|
|
3523
|
-
responseValidator: async (e) => await
|
|
3605
|
+
responseValidator: async (e) => await vo.parseAsync(e),
|
|
3524
3606
|
url: "/api/v1/credit-notes/{uuid}/lines",
|
|
3525
3607
|
...t,
|
|
3526
3608
|
headers: {
|
|
3527
3609
|
"Content-Type": "application/json",
|
|
3528
3610
|
...t.headers
|
|
3529
3611
|
}
|
|
3530
|
-
}),
|
|
3612
|
+
}), Kc = (t) => (t.client ?? p).patch({
|
|
3531
3613
|
requestValidator: async (t) => await e.object({
|
|
3532
|
-
body:
|
|
3533
|
-
path:
|
|
3614
|
+
body: yo,
|
|
3615
|
+
path: bo,
|
|
3534
3616
|
query: e.never().optional()
|
|
3535
3617
|
}).parseAsync(t),
|
|
3536
|
-
responseValidator: async (e) => await
|
|
3618
|
+
responseValidator: async (e) => await xo.parseAsync(e),
|
|
3537
3619
|
url: "/api/v1/credit-notes/{uuid}",
|
|
3538
3620
|
...t,
|
|
3539
3621
|
headers: {
|
|
3540
3622
|
"Content-Type": "application/json",
|
|
3541
3623
|
...t.headers
|
|
3542
3624
|
}
|
|
3543
|
-
}),
|
|
3625
|
+
}), qc = (t) => (t.client ?? p).post({
|
|
3544
3626
|
requestValidator: async (t) => await e.object({
|
|
3545
3627
|
body: e.never().optional(),
|
|
3546
|
-
path:
|
|
3628
|
+
path: So,
|
|
3547
3629
|
query: e.never().optional()
|
|
3548
3630
|
}).parseAsync(t),
|
|
3549
3631
|
url: "/api/v1/credit-notes/{uuid}/finalize",
|
|
3550
3632
|
...t
|
|
3551
|
-
}),
|
|
3633
|
+
}), Jc = (t) => (t.client ?? p).post({
|
|
3552
3634
|
requestValidator: async (t) => await e.object({
|
|
3553
3635
|
body: e.never().optional(),
|
|
3554
|
-
path:
|
|
3636
|
+
path: Co,
|
|
3555
3637
|
query: e.never().optional()
|
|
3556
3638
|
}).parseAsync(t),
|
|
3557
|
-
responseValidator: async (e) => await
|
|
3639
|
+
responseValidator: async (e) => await wo.parseAsync(e),
|
|
3558
3640
|
url: "/api/v1/invoices/{uuid}/mark-as-ready",
|
|
3559
3641
|
...t
|
|
3560
|
-
}),
|
|
3642
|
+
}), Yc = (t) => (t.client ?? p).post({
|
|
3561
3643
|
requestValidator: async (t) => await e.object({
|
|
3562
3644
|
body: e.never().optional(),
|
|
3563
|
-
path:
|
|
3645
|
+
path: To,
|
|
3564
3646
|
query: e.never().optional()
|
|
3565
3647
|
}).parseAsync(t),
|
|
3566
|
-
responseValidator: async (e) => await
|
|
3648
|
+
responseValidator: async (e) => await Eo.parseAsync(e),
|
|
3567
3649
|
url: "/api/v1/invoices/{uuid}/duplicate",
|
|
3568
3650
|
...t
|
|
3569
|
-
}),
|
|
3651
|
+
}), Xc = (t) => (t.client ?? p).post({
|
|
3570
3652
|
requestValidator: async (t) => await e.object({
|
|
3571
3653
|
body: e.never().optional(),
|
|
3572
|
-
path:
|
|
3654
|
+
path: Do,
|
|
3573
3655
|
query: e.never().optional()
|
|
3574
3656
|
}).parseAsync(t),
|
|
3575
|
-
responseValidator: async (e) => await
|
|
3657
|
+
responseValidator: async (e) => await Oo.parseAsync(e),
|
|
3576
3658
|
url: "/api/v1/invoices/{uuid}/copy-to-invoice",
|
|
3577
3659
|
...t
|
|
3578
|
-
}),
|
|
3660
|
+
}), Zc = (t) => (t.client ?? p).post({
|
|
3579
3661
|
requestValidator: async (t) => await e.object({
|
|
3580
3662
|
body: e.never().optional(),
|
|
3581
|
-
path:
|
|
3663
|
+
path: ko,
|
|
3582
3664
|
query: e.never().optional()
|
|
3583
3665
|
}).parseAsync(t),
|
|
3584
|
-
responseValidator: async (e) => await
|
|
3666
|
+
responseValidator: async (e) => await Ao.parseAsync(e),
|
|
3585
3667
|
url: "/api/v1/invoices/{uuid}/mark-as-draft",
|
|
3586
3668
|
...t
|
|
3587
|
-
}),
|
|
3588
|
-
requestValidator: async (t) => await e.object({
|
|
3589
|
-
body: e.never().optional(),
|
|
3590
|
-
path: bo,
|
|
3591
|
-
query: e.never().optional()
|
|
3592
|
-
}).parseAsync(t),
|
|
3593
|
-
responseValidator: async (e) => await xo.parseAsync(e),
|
|
3594
|
-
url: "/api/v1/invoices/{uuid}/mark-as-prior-approval-required",
|
|
3595
|
-
...t
|
|
3596
|
-
}), kc = (t) => (t.client ?? p).post({
|
|
3669
|
+
}), Qc = (t) => (t.client ?? p).patch({
|
|
3597
3670
|
requestValidator: async (t) => await e.object({
|
|
3598
|
-
body:
|
|
3599
|
-
path:
|
|
3671
|
+
body: jo,
|
|
3672
|
+
path: Mo,
|
|
3600
3673
|
query: e.never().optional()
|
|
3601
3674
|
}).parseAsync(t),
|
|
3602
|
-
responseValidator: async (e) => await
|
|
3603
|
-
url: "/api/v1/invoices/{uuid}/
|
|
3604
|
-
...t
|
|
3605
|
-
|
|
3675
|
+
responseValidator: async (e) => await No.parseAsync(e),
|
|
3676
|
+
url: "/api/v1/invoices/{uuid}/approval-mode",
|
|
3677
|
+
...t,
|
|
3678
|
+
headers: {
|
|
3679
|
+
"Content-Type": "application/json",
|
|
3680
|
+
...t.headers
|
|
3681
|
+
}
|
|
3682
|
+
}), $c = (t) => (t.client ?? p).post({
|
|
3606
3683
|
requestValidator: async (t) => await e.object({
|
|
3607
3684
|
body: e.never().optional(),
|
|
3608
|
-
path:
|
|
3685
|
+
path: Po,
|
|
3609
3686
|
query: e.never().optional()
|
|
3610
3687
|
}).parseAsync(t),
|
|
3611
|
-
responseValidator: async (e) => await
|
|
3688
|
+
responseValidator: async (e) => await Fo.parseAsync(e),
|
|
3612
3689
|
url: "/api/v1/invoices/{uuid}/mark-as-disputed",
|
|
3613
3690
|
...t
|
|
3614
|
-
}),
|
|
3691
|
+
}), el = (t) => (t.client ?? p).post({
|
|
3615
3692
|
requestValidator: async (t) => await e.object({
|
|
3616
3693
|
body: e.never().optional(),
|
|
3617
|
-
path:
|
|
3694
|
+
path: Io,
|
|
3618
3695
|
query: e.never().optional()
|
|
3619
3696
|
}).parseAsync(t),
|
|
3620
|
-
responseValidator: async (e) => await
|
|
3697
|
+
responseValidator: async (e) => await Lo.parseAsync(e),
|
|
3621
3698
|
url: "/api/v1/invoices/{uuid}/mark-as-paid",
|
|
3622
3699
|
...t
|
|
3623
|
-
}),
|
|
3700
|
+
}), tl = (t) => (t?.client ?? p).get({
|
|
3624
3701
|
requestValidator: async (t) => await e.object({
|
|
3625
3702
|
body: e.never().optional(),
|
|
3626
3703
|
path: e.never().optional(),
|
|
3627
|
-
query:
|
|
3704
|
+
query: Ro.optional()
|
|
3628
3705
|
}).parseAsync(t),
|
|
3629
|
-
responseValidator: async (e) => await
|
|
3706
|
+
responseValidator: async (e) => await zo.parseAsync(e),
|
|
3630
3707
|
url: "/api/v1/invoices/mark-as-ready/preview",
|
|
3631
3708
|
...t
|
|
3632
|
-
}),
|
|
3709
|
+
}), nl = (t) => (t?.client ?? p).post({
|
|
3633
3710
|
requestValidator: async (t) => await e.object({
|
|
3634
3711
|
body: e.never().optional(),
|
|
3635
3712
|
path: e.never().optional(),
|
|
3636
|
-
query:
|
|
3713
|
+
query: Bo.optional()
|
|
3637
3714
|
}).parseAsync(t),
|
|
3638
|
-
responseValidator: async (e) => await
|
|
3715
|
+
responseValidator: async (e) => await Vo.parseAsync(e),
|
|
3639
3716
|
url: "/api/v1/invoices/mark-as-ready",
|
|
3640
3717
|
...t
|
|
3641
|
-
}),
|
|
3718
|
+
}), rl = (t) => (t.client ?? p).post({
|
|
3642
3719
|
requestValidator: async (t) => await e.object({
|
|
3643
3720
|
body: e.never().optional(),
|
|
3644
|
-
path:
|
|
3721
|
+
path: Ho,
|
|
3645
3722
|
query: e.never().optional()
|
|
3646
3723
|
}).parseAsync(t),
|
|
3647
|
-
responseValidator: async (e) => await
|
|
3724
|
+
responseValidator: async (e) => await Uo.parseAsync(e),
|
|
3648
3725
|
url: "/api/v1/invoices/{uuid}/withdraw-disputed",
|
|
3649
3726
|
...t
|
|
3650
|
-
}),
|
|
3727
|
+
}), il = (t) => (t?.client ?? p).get({
|
|
3651
3728
|
requestValidator: async (t) => await e.object({
|
|
3652
3729
|
body: e.never().optional(),
|
|
3653
3730
|
path: e.never().optional(),
|
|
3654
|
-
query:
|
|
3731
|
+
query: Wo.optional()
|
|
3655
3732
|
}).parseAsync(t),
|
|
3656
|
-
responseValidator: async (e) => await
|
|
3733
|
+
responseValidator: async (e) => await Go.parseAsync(e),
|
|
3657
3734
|
url: "/api/v1/invoices/finalize/preview",
|
|
3658
3735
|
...t
|
|
3659
|
-
}),
|
|
3736
|
+
}), al = (t) => (t.client ?? p).post({
|
|
3660
3737
|
requestValidator: async (t) => await e.object({
|
|
3661
|
-
body:
|
|
3738
|
+
body: Ko,
|
|
3662
3739
|
path: e.never().optional(),
|
|
3663
|
-
query:
|
|
3740
|
+
query: qo.optional()
|
|
3664
3741
|
}).parseAsync(t),
|
|
3665
|
-
responseValidator: async (e) => await
|
|
3742
|
+
responseValidator: async (e) => await Jo.parseAsync(e),
|
|
3666
3743
|
url: "/api/v1/invoices/finalize",
|
|
3667
3744
|
...t,
|
|
3668
3745
|
headers: {
|
|
3669
3746
|
"Content-Type": "application/json",
|
|
3670
3747
|
...t.headers
|
|
3671
3748
|
}
|
|
3672
|
-
}),
|
|
3749
|
+
}), ol = (t) => (t?.client ?? p).get({
|
|
3673
3750
|
requestValidator: async (t) => await e.object({
|
|
3674
3751
|
body: e.never().optional(),
|
|
3675
3752
|
path: e.never().optional(),
|
|
3676
|
-
query:
|
|
3753
|
+
query: Yo.optional()
|
|
3677
3754
|
}).parseAsync(t),
|
|
3678
|
-
responseValidator: async (e) => await
|
|
3755
|
+
responseValidator: async (e) => await Xo.parseAsync(e),
|
|
3679
3756
|
url: "/api/v1/invoices/delete/preview",
|
|
3680
3757
|
...t
|
|
3681
|
-
}),
|
|
3758
|
+
}), sl = (t) => (t?.client ?? p).post({
|
|
3682
3759
|
requestValidator: async (t) => await e.object({
|
|
3683
3760
|
body: e.never().optional(),
|
|
3684
3761
|
path: e.never().optional(),
|
|
3685
|
-
query:
|
|
3762
|
+
query: Zo.optional()
|
|
3686
3763
|
}).parseAsync(t),
|
|
3687
|
-
responseValidator: async (e) => await
|
|
3764
|
+
responseValidator: async (e) => await Qo.parseAsync(e),
|
|
3688
3765
|
url: "/api/v1/invoices/delete",
|
|
3689
3766
|
...t
|
|
3690
|
-
}),
|
|
3767
|
+
}), cl = (t) => (t.client ?? p).post({
|
|
3691
3768
|
requestValidator: async (t) => await e.object({
|
|
3692
3769
|
body: e.never().optional(),
|
|
3693
|
-
path:
|
|
3770
|
+
path: $o,
|
|
3694
3771
|
query: e.never().optional()
|
|
3695
3772
|
}).parseAsync(t),
|
|
3696
|
-
responseValidator: async (e) => await
|
|
3773
|
+
responseValidator: async (e) => await es.parseAsync(e),
|
|
3697
3774
|
url: "/api/v1/invoices/{uuid}/restore-from-pro-forma",
|
|
3698
3775
|
...t
|
|
3699
|
-
}),
|
|
3776
|
+
}), ll = (t) => (t?.client ?? p).get({
|
|
3700
3777
|
requestValidator: async (t) => await e.object({
|
|
3701
3778
|
body: e.never().optional(),
|
|
3702
3779
|
path: e.never().optional(),
|
|
3703
|
-
query:
|
|
3780
|
+
query: ts.optional()
|
|
3704
3781
|
}).parseAsync(t),
|
|
3705
|
-
responseValidator: async (e) => await
|
|
3782
|
+
responseValidator: async (e) => await ns.parseAsync(e),
|
|
3706
3783
|
url: "/api/v1/activity-logs",
|
|
3707
3784
|
...t
|
|
3708
|
-
}),
|
|
3785
|
+
}), ul = (t) => (t.client ?? p).get({
|
|
3709
3786
|
requestValidator: async (t) => await e.object({
|
|
3710
3787
|
body: e.never().optional(),
|
|
3711
|
-
path:
|
|
3788
|
+
path: rs,
|
|
3712
3789
|
query: e.never().optional()
|
|
3713
3790
|
}).parseAsync(t),
|
|
3714
|
-
responseValidator: async (e) => await
|
|
3791
|
+
responseValidator: async (e) => await is.parseAsync(e),
|
|
3715
3792
|
url: "/api/v1/invoices/{uuid}/payments",
|
|
3716
3793
|
...t
|
|
3717
|
-
}),
|
|
3794
|
+
}), dl = (t) => (t.client ?? p).post({
|
|
3718
3795
|
requestValidator: async (t) => await e.object({
|
|
3719
|
-
body:
|
|
3720
|
-
path:
|
|
3796
|
+
body: as,
|
|
3797
|
+
path: os,
|
|
3721
3798
|
query: e.never().optional()
|
|
3722
3799
|
}).parseAsync(t),
|
|
3723
|
-
responseValidator: async (e) => await
|
|
3800
|
+
responseValidator: async (e) => await ss.parseAsync(e),
|
|
3724
3801
|
url: "/api/v1/invoices/{uuid}/payments",
|
|
3725
3802
|
...t,
|
|
3726
3803
|
headers: {
|
|
3727
3804
|
"Content-Type": "application/json",
|
|
3728
3805
|
...t.headers
|
|
3729
3806
|
}
|
|
3730
|
-
}),
|
|
3807
|
+
}), fl = (t) => (t.client ?? p).delete({
|
|
3731
3808
|
requestValidator: async (t) => await e.object({
|
|
3732
3809
|
body: e.never().optional(),
|
|
3733
|
-
path:
|
|
3810
|
+
path: cs,
|
|
3734
3811
|
query: e.never().optional()
|
|
3735
3812
|
}).parseAsync(t),
|
|
3736
|
-
responseValidator: async (e) => await
|
|
3813
|
+
responseValidator: async (e) => await ls.parseAsync(e),
|
|
3737
3814
|
url: "/api/v1/invoices/{uuid}/payments/{paymentUuid}",
|
|
3738
3815
|
...t
|
|
3739
|
-
}),
|
|
3816
|
+
}), pl = (t) => (t?.client ?? p).get({
|
|
3740
3817
|
requestValidator: async (t) => await e.object({
|
|
3741
3818
|
body: e.never().optional(),
|
|
3742
3819
|
path: e.never().optional(),
|
|
3743
3820
|
query: e.never().optional()
|
|
3744
3821
|
}).parseAsync(t),
|
|
3745
|
-
responseValidator: async (e) => await
|
|
3822
|
+
responseValidator: async (e) => await us.parseAsync(e),
|
|
3746
3823
|
url: "/api/v1/issuers/reminder-configs",
|
|
3747
3824
|
...t
|
|
3748
|
-
}),
|
|
3825
|
+
}), ml = (t) => (t.client ?? p).patch({
|
|
3749
3826
|
requestValidator: async (t) => await e.object({
|
|
3750
|
-
body:
|
|
3827
|
+
body: ds,
|
|
3751
3828
|
path: e.never().optional(),
|
|
3752
3829
|
query: e.never().optional()
|
|
3753
3830
|
}).parseAsync(t),
|
|
3754
|
-
responseValidator: async (e) => await
|
|
3831
|
+
responseValidator: async (e) => await fs.parseAsync(e),
|
|
3755
3832
|
url: "/api/v1/issuers/reminder-configs",
|
|
3756
3833
|
...t,
|
|
3757
3834
|
headers: {
|
|
3758
3835
|
"Content-Type": "application/json",
|
|
3759
3836
|
...t.headers
|
|
3760
3837
|
}
|
|
3761
|
-
}),
|
|
3838
|
+
}), hl = (t) => (t?.client ?? p).get({
|
|
3762
3839
|
requestValidator: async (t) => await e.object({
|
|
3763
3840
|
body: e.never().optional(),
|
|
3764
3841
|
path: e.never().optional(),
|
|
3765
|
-
query:
|
|
3842
|
+
query: ps.optional()
|
|
3766
3843
|
}).parseAsync(t),
|
|
3767
|
-
responseValidator: async (e) => await
|
|
3844
|
+
responseValidator: async (e) => await ms.parseAsync(e),
|
|
3768
3845
|
url: "/api/v1/custom-field-definitions",
|
|
3769
3846
|
...t
|
|
3770
|
-
}),
|
|
3847
|
+
}), gl = (t) => (t.client ?? p).get({
|
|
3771
3848
|
requestValidator: async (t) => await e.object({
|
|
3772
3849
|
body: e.never().optional(),
|
|
3773
|
-
path:
|
|
3850
|
+
path: hs,
|
|
3774
3851
|
query: e.never().optional()
|
|
3775
3852
|
}).parseAsync(t),
|
|
3776
|
-
responseValidator: async (e) => await
|
|
3853
|
+
responseValidator: async (e) => await gs.parseAsync(e),
|
|
3777
3854
|
url: "/api/v1/dunning-cases/{uuid}",
|
|
3778
3855
|
...t
|
|
3779
|
-
}),
|
|
3856
|
+
}), _l = (t) => (t?.client ?? p).get({
|
|
3780
3857
|
requestValidator: async (t) => await e.object({
|
|
3781
3858
|
body: e.never().optional(),
|
|
3782
3859
|
path: e.never().optional(),
|
|
3783
|
-
query:
|
|
3860
|
+
query: _s.optional()
|
|
3784
3861
|
}).parseAsync(t),
|
|
3785
|
-
responseValidator: async (e) => await
|
|
3862
|
+
responseValidator: async (e) => await vs.parseAsync(e),
|
|
3786
3863
|
url: "/api/v1/dunning-cases",
|
|
3787
3864
|
...t
|
|
3788
|
-
}),
|
|
3865
|
+
}), vl = (t) => (t.client ?? p).post({
|
|
3789
3866
|
requestValidator: async (t) => await e.object({
|
|
3790
3867
|
body: e.never().optional(),
|
|
3791
|
-
path:
|
|
3868
|
+
path: ys,
|
|
3792
3869
|
query: e.never().optional()
|
|
3793
3870
|
}).parseAsync(t),
|
|
3794
3871
|
url: "/api/v1/dunning-cases/{uuid}/send",
|
|
3795
3872
|
...t
|
|
3796
|
-
}),
|
|
3873
|
+
}), yl = (t) => (t.client ?? p).post({
|
|
3797
3874
|
requestValidator: async (t) => await e.object({
|
|
3798
3875
|
body: e.never().optional(),
|
|
3799
|
-
path:
|
|
3876
|
+
path: bs,
|
|
3800
3877
|
query: e.never().optional()
|
|
3801
3878
|
}).parseAsync(t),
|
|
3802
3879
|
url: "/api/v1/dunning-case-reminders/{uuid}/retry",
|
|
3803
3880
|
...t
|
|
3804
|
-
}),
|
|
3881
|
+
}), bl = (t) => (t?.client ?? p).post({
|
|
3805
3882
|
requestValidator: async (t) => await e.object({
|
|
3806
3883
|
body: e.never().optional(),
|
|
3807
3884
|
path: e.never().optional(),
|
|
3808
|
-
query:
|
|
3885
|
+
query: xs.optional()
|
|
3809
3886
|
}).parseAsync(t),
|
|
3810
|
-
responseValidator: async (e) => await
|
|
3887
|
+
responseValidator: async (e) => await Ss.parseAsync(e),
|
|
3811
3888
|
url: "/api/v1/dunning-cases/send",
|
|
3812
3889
|
...t
|
|
3813
|
-
}),
|
|
3890
|
+
}), xl = (t) => (t?.client ?? p).get({
|
|
3814
3891
|
requestValidator: async (t) => await e.object({
|
|
3815
3892
|
body: e.never().optional(),
|
|
3816
3893
|
path: e.never().optional(),
|
|
3817
|
-
query:
|
|
3894
|
+
query: Cs.optional()
|
|
3818
3895
|
}).parseAsync(t),
|
|
3819
|
-
responseValidator: async (e) => await
|
|
3896
|
+
responseValidator: async (e) => await ws.parseAsync(e),
|
|
3820
3897
|
url: "/api/v1/dunning-cases/send/preview",
|
|
3821
3898
|
...t
|
|
3822
|
-
}),
|
|
3899
|
+
}), Sl = (t) => (t.client ?? p).get({
|
|
3823
3900
|
requestValidator: async (t) => await e.object({
|
|
3824
3901
|
body: e.never().optional(),
|
|
3825
3902
|
path: e.never().optional(),
|
|
3826
|
-
query:
|
|
3903
|
+
query: Ts
|
|
3827
3904
|
}).parseAsync(t),
|
|
3828
|
-
responseValidator: async (e) => await
|
|
3905
|
+
responseValidator: async (e) => await Es.parseAsync(e),
|
|
3829
3906
|
url: "/api/v1/public/dunning-case-reminder-invoices",
|
|
3830
3907
|
...t
|
|
3831
|
-
}),
|
|
3908
|
+
}), Cl = (t) => (t.client ?? p).post({
|
|
3832
3909
|
requestValidator: async (t) => await e.object({
|
|
3833
3910
|
body: e.never().optional(),
|
|
3834
|
-
path:
|
|
3911
|
+
path: Ds,
|
|
3835
3912
|
query: e.never().optional()
|
|
3836
3913
|
}).parseAsync(t),
|
|
3837
|
-
url: "/api/v1/invoices/{uuid}/send-approval",
|
|
3914
|
+
url: "/api/v1/invoices/{uuid}/send-pro-forma-approval",
|
|
3838
3915
|
...t
|
|
3839
|
-
}),
|
|
3916
|
+
}), wl = (t) => (t?.client ?? p).get({
|
|
3840
3917
|
requestValidator: async (t) => await e.object({
|
|
3841
3918
|
body: e.never().optional(),
|
|
3842
3919
|
path: e.never().optional(),
|
|
3843
|
-
query:
|
|
3920
|
+
query: Os.optional()
|
|
3844
3921
|
}).parseAsync(t),
|
|
3845
|
-
responseValidator: async (e) => await
|
|
3846
|
-
url: "/api/v1/invoices/send-approval/preview",
|
|
3922
|
+
responseValidator: async (e) => await ks.parseAsync(e),
|
|
3923
|
+
url: "/api/v1/invoices/send-pro-forma-approval/preview",
|
|
3847
3924
|
...t
|
|
3848
|
-
}),
|
|
3925
|
+
}), Tl = (t) => (t?.client ?? p).post({
|
|
3849
3926
|
requestValidator: async (t) => await e.object({
|
|
3850
3927
|
body: e.never().optional(),
|
|
3851
3928
|
path: e.never().optional(),
|
|
3852
|
-
query:
|
|
3929
|
+
query: As.optional()
|
|
3853
3930
|
}).parseAsync(t),
|
|
3854
|
-
responseValidator: async (e) => await
|
|
3855
|
-
url: "/api/v1/invoices/send-approval",
|
|
3931
|
+
responseValidator: async (e) => await js.parseAsync(e),
|
|
3932
|
+
url: "/api/v1/invoices/send-pro-forma-approval",
|
|
3856
3933
|
...t
|
|
3857
|
-
}),
|
|
3934
|
+
}), El = (t) => (t.client ?? p).post({
|
|
3858
3935
|
requestValidator: async (t) => await e.object({
|
|
3859
|
-
body:
|
|
3860
|
-
path:
|
|
3936
|
+
body: Ms,
|
|
3937
|
+
path: Ns,
|
|
3861
3938
|
query: e.never().optional()
|
|
3862
3939
|
}).parseAsync(t),
|
|
3863
|
-
responseValidator: async (e) => await
|
|
3940
|
+
responseValidator: async (e) => await Ps.parseAsync(e),
|
|
3864
3941
|
url: "/api/v1/invoice-approvals/{uuid}/approve",
|
|
3865
3942
|
...t,
|
|
3866
3943
|
headers: {
|
|
3867
3944
|
"Content-Type": "application/json",
|
|
3868
3945
|
...t.headers
|
|
3869
3946
|
}
|
|
3870
|
-
}),
|
|
3947
|
+
}), Dl = (t) => (t.client ?? p).post({
|
|
3871
3948
|
requestValidator: async (t) => await e.object({
|
|
3872
|
-
body:
|
|
3873
|
-
path:
|
|
3949
|
+
body: Fs,
|
|
3950
|
+
path: Is,
|
|
3874
3951
|
query: e.never().optional()
|
|
3875
3952
|
}).parseAsync(t),
|
|
3876
|
-
responseValidator: async (e) => await
|
|
3953
|
+
responseValidator: async (e) => await Ls.parseAsync(e),
|
|
3877
3954
|
url: "/api/v1/invoice-approvals/{uuid}/reject",
|
|
3878
3955
|
...t,
|
|
3879
3956
|
headers: {
|
|
3880
3957
|
"Content-Type": "application/json",
|
|
3881
3958
|
...t.headers
|
|
3882
3959
|
}
|
|
3883
|
-
}),
|
|
3960
|
+
}), Ol = (t) => (t.client ?? p).post({
|
|
3884
3961
|
requestValidator: async (t) => await e.object({
|
|
3885
3962
|
body: e.never().optional(),
|
|
3886
|
-
path:
|
|
3963
|
+
path: Rs,
|
|
3887
3964
|
query: e.never().optional()
|
|
3888
3965
|
}).parseAsync(t),
|
|
3889
|
-
responseValidator: async (e) => await
|
|
3966
|
+
responseValidator: async (e) => await zs.parseAsync(e),
|
|
3890
3967
|
url: "/api/v1/invoice-approvals/{uuid}/cancel",
|
|
3891
3968
|
...t
|
|
3892
|
-
}),
|
|
3969
|
+
}), kl = (t) => (t.client ?? p).post({
|
|
3893
3970
|
requestValidator: async (t) => await e.object({
|
|
3894
3971
|
body: e.never().optional(),
|
|
3895
|
-
path:
|
|
3972
|
+
path: Bs,
|
|
3896
3973
|
query: e.never().optional()
|
|
3897
3974
|
}).parseAsync(t),
|
|
3898
|
-
url: "/api/v1/invoices/{uuid}/restart-approval",
|
|
3975
|
+
url: "/api/v1/invoices/{uuid}/restart-pro-forma-approval",
|
|
3899
3976
|
...t
|
|
3900
|
-
}),
|
|
3977
|
+
}), Al = (t) => (t.client ?? p).patch({
|
|
3978
|
+
requestValidator: async (t) => await e.object({
|
|
3979
|
+
body: Vs,
|
|
3980
|
+
path: Hs,
|
|
3981
|
+
query: e.never().optional()
|
|
3982
|
+
}).parseAsync(t),
|
|
3983
|
+
responseValidator: async (e) => await Us.parseAsync(e),
|
|
3984
|
+
url: "/api/v1/invoice-approvals/{uuid}",
|
|
3985
|
+
...t,
|
|
3986
|
+
headers: {
|
|
3987
|
+
"Content-Type": "application/json",
|
|
3988
|
+
...t.headers
|
|
3989
|
+
}
|
|
3990
|
+
}), jl = (t) => (t?.client ?? p).get({
|
|
3901
3991
|
requestValidator: async (t) => await e.object({
|
|
3902
3992
|
body: e.never().optional(),
|
|
3903
3993
|
path: e.never().optional(),
|
|
3904
|
-
query:
|
|
3994
|
+
query: Ws.optional()
|
|
3905
3995
|
}).parseAsync(t),
|
|
3906
|
-
responseValidator: async (e) => await
|
|
3996
|
+
responseValidator: async (e) => await Gs.parseAsync(e),
|
|
3907
3997
|
url: "/api/v1/invoice-approvals",
|
|
3908
3998
|
...t
|
|
3909
|
-
}),
|
|
3999
|
+
}), Ml = (t) => (t.client ?? p).get({
|
|
3910
4000
|
requestValidator: async (t) => await e.object({
|
|
3911
4001
|
body: e.never().optional(),
|
|
3912
4002
|
path: e.never().optional(),
|
|
3913
|
-
query:
|
|
4003
|
+
query: Ks
|
|
3914
4004
|
}).parseAsync(t),
|
|
3915
|
-
responseValidator: async (e) => await
|
|
4005
|
+
responseValidator: async (e) => await qs.parseAsync(e),
|
|
3916
4006
|
url: "/api/v1/public/pro-formas",
|
|
3917
4007
|
...t
|
|
3918
|
-
}),
|
|
4008
|
+
}), Nl = (t) => (t?.client ?? p).get({
|
|
3919
4009
|
requestValidator: async (t) => await e.object({
|
|
3920
4010
|
body: e.never().optional(),
|
|
3921
4011
|
path: e.never().optional(),
|
|
3922
4012
|
query: e.never().optional()
|
|
3923
4013
|
}).parseAsync(t),
|
|
3924
|
-
responseValidator: async (e) => await
|
|
4014
|
+
responseValidator: async (e) => await Js.parseAsync(e),
|
|
3925
4015
|
url: "/api/v1/issuers/approval-reminder-configs",
|
|
3926
4016
|
...t
|
|
3927
|
-
}),
|
|
4017
|
+
}), Pl = (t) => (t.client ?? p).patch({
|
|
3928
4018
|
requestValidator: async (t) => await e.object({
|
|
3929
|
-
body:
|
|
4019
|
+
body: Ys,
|
|
3930
4020
|
path: e.never().optional(),
|
|
3931
4021
|
query: e.never().optional()
|
|
3932
4022
|
}).parseAsync(t),
|
|
3933
|
-
responseValidator: async (e) => await
|
|
4023
|
+
responseValidator: async (e) => await Xs.parseAsync(e),
|
|
3934
4024
|
url: "/api/v1/issuers/approval-reminder-configs",
|
|
3935
4025
|
...t,
|
|
3936
4026
|
headers: {
|
|
3937
4027
|
"Content-Type": "application/json",
|
|
3938
4028
|
...t.headers
|
|
3939
4029
|
}
|
|
3940
|
-
}),
|
|
4030
|
+
}), Fl = (t) => (t.client ?? p).patch({
|
|
4031
|
+
requestValidator: async (t) => await e.object({
|
|
4032
|
+
body: Zs,
|
|
4033
|
+
path: e.never().optional(),
|
|
4034
|
+
query: e.never().optional()
|
|
4035
|
+
}).parseAsync(t),
|
|
4036
|
+
responseValidator: async (e) => await Qs.parseAsync(e),
|
|
4037
|
+
url: "/api/v1/issuers/approval-mail-template",
|
|
4038
|
+
...t,
|
|
4039
|
+
headers: {
|
|
4040
|
+
"Content-Type": "application/json",
|
|
4041
|
+
...t.headers
|
|
4042
|
+
}
|
|
4043
|
+
}), Il = (t) => (t?.client ?? p).get({
|
|
3941
4044
|
requestValidator: async (t) => await e.object({
|
|
3942
4045
|
body: e.never().optional(),
|
|
3943
4046
|
path: e.never().optional(),
|
|
4047
|
+
query: $s.optional()
|
|
4048
|
+
}).parseAsync(t),
|
|
4049
|
+
responseValidator: async (e) => await ec.parseAsync(e),
|
|
4050
|
+
url: "/api/v1/issuers/approval-follow-up-pauses",
|
|
4051
|
+
...t
|
|
4052
|
+
}), Ll = (t) => (t.client ?? p).post({
|
|
4053
|
+
requestValidator: async (t) => await e.object({
|
|
4054
|
+
body: tc,
|
|
4055
|
+
path: e.never().optional(),
|
|
4056
|
+
query: e.never().optional()
|
|
4057
|
+
}).parseAsync(t),
|
|
4058
|
+
responseValidator: async (e) => await nc.parseAsync(e),
|
|
4059
|
+
url: "/api/v1/issuers/approval-follow-up-pauses",
|
|
4060
|
+
...t,
|
|
4061
|
+
headers: {
|
|
4062
|
+
"Content-Type": "application/json",
|
|
4063
|
+
...t.headers
|
|
4064
|
+
}
|
|
4065
|
+
}), Rl = (t) => (t.client ?? p).delete({
|
|
4066
|
+
requestValidator: async (t) => await e.object({
|
|
4067
|
+
body: e.never().optional(),
|
|
4068
|
+
path: rc,
|
|
3944
4069
|
query: e.never().optional()
|
|
3945
4070
|
}).parseAsync(t),
|
|
3946
|
-
responseValidator: async (e) => await
|
|
4071
|
+
responseValidator: async (e) => await ic.parseAsync(e),
|
|
4072
|
+
url: "/api/v1/issuers/approval-follow-up-pauses/{uuid}",
|
|
4073
|
+
...t
|
|
4074
|
+
}), zl = (t) => (t.client ?? p).patch({
|
|
4075
|
+
requestValidator: async (t) => await e.object({
|
|
4076
|
+
body: ac,
|
|
4077
|
+
path: oc,
|
|
4078
|
+
query: e.never().optional()
|
|
4079
|
+
}).parseAsync(t),
|
|
4080
|
+
responseValidator: async (e) => await sc.parseAsync(e),
|
|
4081
|
+
url: "/api/v1/issuers/approval-follow-up-pauses/{uuid}",
|
|
4082
|
+
...t,
|
|
4083
|
+
headers: {
|
|
4084
|
+
"Content-Type": "application/json",
|
|
4085
|
+
...t.headers
|
|
4086
|
+
}
|
|
4087
|
+
}), Bl = (t) => (t?.client ?? p).get({
|
|
4088
|
+
requestValidator: async (t) => await e.object({
|
|
4089
|
+
body: e.never().optional(),
|
|
4090
|
+
path: e.never().optional(),
|
|
4091
|
+
query: e.never().optional()
|
|
4092
|
+
}).parseAsync(t),
|
|
4093
|
+
responseValidator: async (e) => await cc.parseAsync(e),
|
|
3947
4094
|
url: "/api/v1/issuers/peppol-connection",
|
|
3948
4095
|
...t
|
|
3949
|
-
}),
|
|
4096
|
+
}), Vl = (t) => (t.client ?? p).put({
|
|
3950
4097
|
requestValidator: async (t) => await e.object({
|
|
3951
|
-
body:
|
|
4098
|
+
body: lc,
|
|
3952
4099
|
path: e.never().optional(),
|
|
3953
4100
|
query: e.never().optional()
|
|
3954
4101
|
}).parseAsync(t),
|
|
@@ -3958,92 +4105,92 @@ var Ja = Zn, Ya = e.object({ uuid: e.uuid() }), Xa = e.void(), Za = Qn, Qa = e.o
|
|
|
3958
4105
|
"Content-Type": "application/json",
|
|
3959
4106
|
...t.headers
|
|
3960
4107
|
}
|
|
3961
|
-
}),
|
|
4108
|
+
}), Hl = (t) => (t.client ?? p).post({
|
|
3962
4109
|
requestValidator: async (t) => await e.object({
|
|
3963
|
-
body:
|
|
4110
|
+
body: uc,
|
|
3964
4111
|
path: e.never().optional(),
|
|
3965
4112
|
query: e.never().optional()
|
|
3966
4113
|
}).parseAsync(t),
|
|
3967
|
-
responseValidator: async (e) => await
|
|
4114
|
+
responseValidator: async (e) => await dc.parseAsync(e),
|
|
3968
4115
|
url: "/api/v1/issuers/peppol-connection/test",
|
|
3969
4116
|
...t,
|
|
3970
4117
|
headers: {
|
|
3971
4118
|
"Content-Type": "application/json",
|
|
3972
4119
|
...t.headers
|
|
3973
4120
|
}
|
|
3974
|
-
}),
|
|
4121
|
+
}), Ul = (t) => (t.client ?? p).post({
|
|
3975
4122
|
requestValidator: async (t) => await e.object({
|
|
3976
|
-
body:
|
|
3977
|
-
path:
|
|
4123
|
+
body: fc,
|
|
4124
|
+
path: pc,
|
|
3978
4125
|
query: e.never().optional()
|
|
3979
4126
|
}).parseAsync(t),
|
|
3980
|
-
responseValidator: async (e) => await
|
|
4127
|
+
responseValidator: async (e) => await mc.parseAsync(e),
|
|
3981
4128
|
url: "/api/v1/invoices/{uuid}/send",
|
|
3982
4129
|
...t,
|
|
3983
4130
|
headers: {
|
|
3984
4131
|
"Content-Type": "application/json",
|
|
3985
4132
|
...t.headers
|
|
3986
4133
|
}
|
|
3987
|
-
}),
|
|
4134
|
+
}), Wl = (t) => (t.client ?? p).post({
|
|
3988
4135
|
requestValidator: async (t) => await e.object({
|
|
3989
|
-
body:
|
|
4136
|
+
body: hc,
|
|
3990
4137
|
path: e.never().optional(),
|
|
3991
|
-
query:
|
|
4138
|
+
query: gc.optional()
|
|
3992
4139
|
}).parseAsync(t),
|
|
3993
|
-
responseValidator: async (e) => await
|
|
4140
|
+
responseValidator: async (e) => await _c.parseAsync(e),
|
|
3994
4141
|
url: "/api/v1/invoices/send",
|
|
3995
4142
|
...t,
|
|
3996
4143
|
headers: {
|
|
3997
4144
|
"Content-Type": "application/json",
|
|
3998
4145
|
...t.headers
|
|
3999
4146
|
}
|
|
4000
|
-
}),
|
|
4147
|
+
}), Gl = (t) => (t.client ?? p).post({
|
|
4001
4148
|
requestValidator: async (t) => await e.object({
|
|
4002
|
-
body:
|
|
4149
|
+
body: vc,
|
|
4003
4150
|
path: e.never().optional(),
|
|
4004
|
-
query:
|
|
4151
|
+
query: yc.optional()
|
|
4005
4152
|
}).parseAsync(t),
|
|
4006
|
-
responseValidator: async (e) => await
|
|
4153
|
+
responseValidator: async (e) => await bc.parseAsync(e),
|
|
4007
4154
|
url: "/api/v1/invoices/send/preview",
|
|
4008
4155
|
...t,
|
|
4009
4156
|
headers: {
|
|
4010
4157
|
"Content-Type": "application/json",
|
|
4011
4158
|
...t.headers
|
|
4012
4159
|
}
|
|
4013
|
-
}),
|
|
4160
|
+
}), Kl = (t) => (t.client ?? p).get({
|
|
4014
4161
|
requestValidator: async (t) => await e.object({
|
|
4015
4162
|
body: e.never().optional(),
|
|
4016
|
-
path:
|
|
4163
|
+
path: xc,
|
|
4017
4164
|
query: e.never().optional()
|
|
4018
4165
|
}).parseAsync(t),
|
|
4019
|
-
responseValidator: async (e) => await
|
|
4166
|
+
responseValidator: async (e) => await Sc.parseAsync(e),
|
|
4020
4167
|
url: "/api/v1/invoices/{uuid}/deliveries",
|
|
4021
4168
|
...t
|
|
4022
|
-
}),
|
|
4169
|
+
}), ql = (t) => (t.client ?? p).post({
|
|
4023
4170
|
requestValidator: async (t) => await e.object({
|
|
4024
4171
|
body: e.never().optional(),
|
|
4025
|
-
path:
|
|
4172
|
+
path: Cc,
|
|
4026
4173
|
query: e.never().optional()
|
|
4027
4174
|
}).parseAsync(t),
|
|
4028
|
-
responseValidator: async (e) => await
|
|
4175
|
+
responseValidator: async (e) => await wc.parseAsync(e),
|
|
4029
4176
|
url: "/api/v1/invoices/{uuid}/reminders",
|
|
4030
4177
|
...t
|
|
4031
4178
|
});
|
|
4032
4179
|
//#endregion
|
|
4033
4180
|
//#region src/utils/api.util.ts
|
|
4034
|
-
function
|
|
4181
|
+
function Jl(e) {
|
|
4035
4182
|
return typeof e == "object" && !!e && Array.isArray(e.errors);
|
|
4036
4183
|
}
|
|
4037
|
-
function
|
|
4038
|
-
return
|
|
4184
|
+
function Yl(e) {
|
|
4185
|
+
return Jl(e) || e instanceof Error ? e : Error(String(e));
|
|
4039
4186
|
}
|
|
4040
|
-
var
|
|
4187
|
+
var Xl = class {
|
|
4041
4188
|
static async fromPromise(e) {
|
|
4042
|
-
return await t.fromPromise(e,
|
|
4189
|
+
return await t.fromPromise(e, Yl);
|
|
4043
4190
|
}
|
|
4044
4191
|
static void(e) {
|
|
4045
4192
|
return e.isErr() ? n(e.error) : r();
|
|
4046
4193
|
}
|
|
4047
4194
|
};
|
|
4048
4195
|
//#endregion
|
|
4049
|
-
export {
|
|
4196
|
+
export { zc as $, il as A, ql as B, qc as C, Tc as Ct, el as D, Zc as E, Dl as F, zl as G, Cl as H, kl as I, Gc as J, Fl as K, cl as L, xl as M, wl as N, Jc as O, Gl as P, Bc as Q, yl as R, Yc as S, pl as St, $c as T, p as Tt, Qc as U, Ul as V, Hl as W, Al as X, Kc as Y, Hc as Z, dl as _, Mc as _t, al as a, Nl as at, fl as b, Pc as bt, Wl as c, kc as ct, Dc as d, _l as dt, Nc as et, Xc as f, jl as ft, Ic as g, ul as gt, Ec as h, Fc as ht, sl as i, Il as it, tl as j, ol as k, Tl as l, jc as lt, Wc as m, Rc as mt, Vc as n, ml as nt, nl as o, hl as ot, Ll as p, Kl as pt, Pl as q, El as r, ll as rt, bl as s, Ac as st, Xl as t, Vl as tt, Ol as u, gl as ut, Rl as v, Bl as vt, Uc as w, rl as wt, Oc as x, Ml as xt, Lc as y, Sl as yt, vl as z };
|