@wisemen/wise-invoicing-web 0.16.0 → 0.18.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-CpGYtZKw.js → ApprovalReminderSettingsViewDataProvider-BZBuz6EF.js} +4 -4
- package/dist/{BillingDocumentDetailViewDataProvider-CA71dgRN.js → BillingDocumentDetailViewDataProvider-BCADHPFR.js} +1080 -1079
- package/dist/BillingDocumentDetailViewDataProvider.css +1 -1
- package/dist/{BillingDocumentPdf-CvUxfHDH.js → BillingDocumentPdf-ddBlGdIN.js} +4 -4
- package/dist/{CreditNoteDetailViewDataProvider-DK7hkA8d.js → CreditNoteDetailViewDataProvider-Donn5pVv.js} +222 -205
- package/dist/{CreditNotePdfViewDataProvider-DcQxB1p4.js → CreditNotePdfViewDataProvider-c-apCeCW.js} +3 -3
- package/dist/{DunningCaseSendDialog-BWbEi9Vr.js → DunningCaseSendDialog-fgL9OsV8.js} +3 -3
- package/dist/{InvoiceApprovalOutOfSyncIndicator-CptL1bbz.js → InvoiceApprovalOutOfSyncIndicator-BoPBNXx1.js} +1 -1
- package/dist/{InvoiceApprovalOverviewView-dsTZWXyZ.js → InvoiceApprovalOverviewView-BIiJ6gen.js} +9 -9
- package/dist/{InvoiceApprovalStatusBadge-6cSp2XOq.js → InvoiceApprovalStatusBadge-CaVSCtI0.js} +4 -4
- package/dist/{InvoiceApproveDialogDataProvider-DsxA74kh.js → InvoiceApproveDialogDataProvider-C9NhZX-D.js} +7 -7
- package/dist/{InvoiceDeliverySendDialog-byobpQe1.js → InvoiceDeliverySendDialog-BICcd6Cf.js} +186 -114
- package/dist/{InvoiceDetailViewDataProvider-DgNkoQNH.js → InvoiceDetailViewDataProvider-BppXFT6D.js} +609 -600
- package/dist/{InvoicePdfView-CA-nt_Qs.js → InvoicePdfView-BRJaAErd.js} +2 -2
- package/dist/{InvoicePdfViewDataProvider-CVgcgc9t.js → InvoicePdfViewDataProvider-J7NP1Dhh.js} +3 -3
- package/dist/{InvoicePublicProFormaPdfViewDataProvider-BIhn-msJ.js → InvoicePublicProFormaPdfViewDataProvider-mZaggXYf.js} +3 -3
- package/dist/{InvoicingFileUploadProvider-DFjM7Xcj.js → InvoicingFileUploadProvider-rU9APFrt.js} +2 -2
- package/dist/{IssuerSettingsViewDataProvider-2Gk7FgL2.js → IssuerSettingsViewDataProvider-D13f6rvi.js} +4 -4
- package/dist/{PeppolSettingsViewDataProvider-CLgFRfm_.js → PeppolSettingsViewDataProvider-DymLdaRM.js} +3 -3
- package/dist/{api.util-DMgdn9-w.js → api.util-sW4gNny-.js} +832 -779
- package/dist/{billingDocumentDetail.transformer-DFlbGUZp.js → billingDocumentDetail.transformer-DcNMzl46.js} +3 -2
- package/dist/client/index.d.ts +1 -1
- package/dist/client/sdk.gen.d.ts +1 -1
- package/dist/client/types.gen.d.ts +134 -70
- package/dist/client/zod.gen.d.ts +15385 -11665
- package/dist/{creditNoteDetail.query-D7J1umi4.js → creditNoteDetail.query-DiS_-xFz.js} +5 -3
- package/dist/{deliveryReason.util-iMVhwjiW.js → deliveryReason.util-KBh3q_-P.js} +2 -2
- package/dist/{dist-Ck8ZEByl.js → dist-C99_-gWv.js} +2 -2
- package/dist/{dist-ByzJNujV.js → dist-CyUNvdkD.js} +1 -1
- package/dist/{documentTitle.composable-QdSLs6eT.js → documentTitle.composable-Dl8Cm3v3.js} +1 -1
- package/dist/{i18n.lib-CEXUpXfo.js → i18n.lib-DckceEsg.js} +12 -2
- package/dist/index.d.ts +10 -0
- package/dist/index.js +789 -844
- package/dist/{invoice.service-NBqJSMkg.js → invoice.service-2QiktTs9.js} +14 -6
- package/dist/{invoiceApproval.service-Bk--tRnu.js → invoiceApproval.service-DXIKgCI_.js} +2 -2
- package/dist/{invoiceApprovalStatus.util-CYWPHuJD.js → invoiceApprovalStatus.util-CB5pi_hm.js} +2 -2
- package/dist/{invoiceCustomer.service-D13Cwb13.js → invoiceCustomer.service-BNQJt1KV.js} +2 -2
- package/dist/{invoiceDeliveryStatus.util-BExQWz3m.js → invoiceDeliveryStatus.util-Dp9hD1Tj.js} +3 -3
- package/dist/{invoiceDetail.query-CLvnFeZh.js → invoiceDetail.query-MIrBYgNS.js} +1 -1
- package/dist/{invoicingConfig.composable-BebjIIAC.js → invoicingConfig.composable-D-hxnEnh.js} +2 -2
- package/dist/{issuerSettings.query-P_gGS0ER.js → issuerSettings.query-CR7EtvNm.js} +2 -2
- package/dist/libs/i18n.lib.d.ts +10 -0
- package/dist/locales/en-US.json.d.ts +6 -1
- package/dist/locales/nl-BE.json.d.ts +6 -1
- package/dist/models/billing-document/billingDocumentDetail.model.d.ts +1 -0
- package/dist/modules/credit-note/api/mutations/creditNoteUpdate.mutation.d.ts +1 -0
- package/dist/modules/credit-note/models/update/creditNoteUpdateForm.model.d.ts +1 -0
- package/dist/modules/invoice/api/mutations/invoiceBulkFinalize.mutation.d.ts +1 -0
- package/dist/modules/invoice/api/mutations/invoiceUpdate.mutation.d.ts +1 -0
- package/dist/modules/invoice/api/services/invoice.service.d.ts +1 -1
- package/dist/modules/invoice/models/invoice/payment/invoicePaymentCreateForm.model.d.ts +1 -1
- package/dist/modules/invoice/models/invoice/update/invoiceUpdateForm.model.d.ts +1 -0
- package/dist/modules/invoice/use-cases/overview/dialogs/InvoiceOverviewBulkActionDialog.vue.d.ts +11 -1
- package/dist/{reminderConfig.query-s-gBYoPo.js → reminderConfig.query-DJmhJp6W.js} +2 -2
- package/dist/style.css +1 -1
- package/dist/types/apiError.type.d.ts +2 -2
- package/package.json +4 -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
|
+
})), _e = 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.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(",")), ve = e.object({
|
|
491
491
|
name: e.string(),
|
|
492
|
-
key:
|
|
492
|
+
key: _e,
|
|
493
493
|
description: e.string()
|
|
494
|
-
}),
|
|
494
|
+
}), ye = e.object({
|
|
495
495
|
name: e.string(),
|
|
496
|
-
permissions: e.array(
|
|
496
|
+
permissions: e.array(ve)
|
|
497
497
|
});
|
|
498
|
-
e.object({ groups: e.array(
|
|
498
|
+
e.object({ groups: e.array(ye) }), 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(ve) }), 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(_e),
|
|
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(_e),
|
|
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(ve) }), e.object({
|
|
|
522
522
|
status: e.enum(["404"]),
|
|
523
523
|
code: e.enum(["api_key_not_found"])
|
|
524
524
|
});
|
|
525
|
-
var
|
|
525
|
+
var be = e.object({
|
|
526
526
|
createdAt: e.iso.datetime(),
|
|
527
527
|
uuid: e.uuid()
|
|
528
|
-
}), be = e.object({
|
|
529
|
-
limit: e.number().gte(0).lte(100).optional(),
|
|
530
|
-
key: ye.nullish()
|
|
531
528
|
}), xe = e.object({
|
|
529
|
+
limit: e.number().gte(0).lte(100).optional(),
|
|
530
|
+
key: be.nullish()
|
|
531
|
+
}), Se = e.object({
|
|
532
532
|
uuid: e.uuid(),
|
|
533
533
|
name: e.string(),
|
|
534
|
-
permissions: e.array(
|
|
534
|
+
permissions: e.array(_e),
|
|
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
|
+
}), Ce = e.object({ next: be.nullable() });
|
|
541
541
|
e.object({
|
|
542
|
-
items: e.array(
|
|
543
|
-
meta:
|
|
542
|
+
items: e.array(Se),
|
|
543
|
+
meta: Ce
|
|
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 we = 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 Te = 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(_e),
|
|
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(Te)
|
|
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(Te)
|
|
589
589
|
});
|
|
590
|
-
var
|
|
590
|
+
var m = 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(_e),
|
|
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(_e)
|
|
628
628
|
});
|
|
629
629
|
e.object({ roles: e.array(Ae) });
|
|
630
630
|
var je = e.enum([
|
|
@@ -1017,7 +1017,8 @@ e.object({
|
|
|
1017
1017
|
type: g,
|
|
1018
1018
|
locale: Ie,
|
|
1019
1019
|
requiresPriorApproval: e.boolean().optional().default(!1),
|
|
1020
|
-
approvalEmail: e.email().max(255).nullable()
|
|
1020
|
+
approvalEmail: e.email().max(255).nullable(),
|
|
1021
|
+
reference: e.string().nullish()
|
|
1021
1022
|
}), e.object({ uuid: e.uuid() }), e.object({
|
|
1022
1023
|
detail: e.string().optional(),
|
|
1023
1024
|
status: e.enum(["404"]),
|
|
@@ -1075,7 +1076,8 @@ var Mt = e.object({
|
|
|
1075
1076
|
defaultPaymentTerm: Ft,
|
|
1076
1077
|
requiresPriorApproval: e.boolean(),
|
|
1077
1078
|
approvalEmail: e.email().nullable(),
|
|
1078
|
-
contacts: It
|
|
1079
|
+
contacts: It,
|
|
1080
|
+
reference: e.string().nullable()
|
|
1079
1081
|
}), Rt = e.object({
|
|
1080
1082
|
isDeactivated: e.boolean().optional(),
|
|
1081
1083
|
vatNumber: e.string().optional(),
|
|
@@ -1118,23 +1120,24 @@ e.object({
|
|
|
1118
1120
|
currency: v,
|
|
1119
1121
|
defaultPaymentTerm: Ft.optional(),
|
|
1120
1122
|
requiresPriorApproval: e.boolean().optional(),
|
|
1121
|
-
approvalEmail: e.email().max(255).nullable()
|
|
1123
|
+
approvalEmail: e.email().max(255).nullable(),
|
|
1124
|
+
reference: e.string().nullish()
|
|
1122
1125
|
}), e.object({
|
|
1123
1126
|
detail: e.string().optional(),
|
|
1124
1127
|
status: e.enum(["409"]),
|
|
1125
1128
|
code: e.enum(["external_customer_contacts_read_only"])
|
|
1126
1129
|
});
|
|
1127
|
-
var
|
|
1130
|
+
var Vt = e.object({
|
|
1128
1131
|
name: e.string().nullable(),
|
|
1129
1132
|
email: e.email().max(255),
|
|
1130
1133
|
ccEmails: e.array(e.email()).max(10),
|
|
1131
1134
|
bccEmails: e.array(e.email()).max(10)
|
|
1132
1135
|
});
|
|
1133
1136
|
e.object({
|
|
1134
|
-
invoice:
|
|
1135
|
-
creditNote:
|
|
1136
|
-
approval:
|
|
1137
|
-
dunning:
|
|
1137
|
+
invoice: Vt.nullish(),
|
|
1138
|
+
creditNote: Vt.nullish(),
|
|
1139
|
+
approval: Vt.nullish(),
|
|
1140
|
+
dunning: Vt.nullish()
|
|
1138
1141
|
}), e.object({
|
|
1139
1142
|
customerUuid: e.uuid(),
|
|
1140
1143
|
email: e.string(),
|
|
@@ -1145,7 +1148,7 @@ e.object({
|
|
|
1145
1148
|
status: e.enum(["404"]),
|
|
1146
1149
|
code: e.enum(["recipient_not_found"])
|
|
1147
1150
|
});
|
|
1148
|
-
var
|
|
1151
|
+
var Ht = e.object({
|
|
1149
1152
|
uuid: e.uuid(),
|
|
1150
1153
|
name: e.string()
|
|
1151
1154
|
});
|
|
@@ -1153,21 +1156,21 @@ e.object({
|
|
|
1153
1156
|
uuid: e.uuid(),
|
|
1154
1157
|
name: e.string().nullable(),
|
|
1155
1158
|
email: e.string(),
|
|
1156
|
-
customer:
|
|
1159
|
+
customer: Ht,
|
|
1157
1160
|
isDefault: e.boolean()
|
|
1158
1161
|
}), e.object({
|
|
1159
1162
|
email: e.string(),
|
|
1160
1163
|
name: e.string().nullish(),
|
|
1161
1164
|
isDefault: e.boolean()
|
|
1162
1165
|
});
|
|
1163
|
-
var
|
|
1166
|
+
var Ut = e.object({
|
|
1164
1167
|
uuid: e.uuid(),
|
|
1165
1168
|
name: e.string().nullable(),
|
|
1166
1169
|
email: e.email(),
|
|
1167
1170
|
customerUuid: e.uuid(),
|
|
1168
1171
|
isDefault: e.boolean()
|
|
1169
|
-
}),
|
|
1170
|
-
items: e.array(
|
|
1172
|
+
}), Wt = e.object({
|
|
1173
|
+
items: e.array(Ut),
|
|
1171
1174
|
meta: h
|
|
1172
1175
|
});
|
|
1173
1176
|
e.object({
|
|
@@ -1175,29 +1178,29 @@ e.object({
|
|
|
1175
1178
|
status: e.enum(["404"]),
|
|
1176
1179
|
code: e.enum(["issuer_not_found"])
|
|
1177
1180
|
});
|
|
1178
|
-
var
|
|
1181
|
+
var Gt = e.enum([
|
|
1179
1182
|
"none",
|
|
1180
1183
|
"YYYY",
|
|
1181
1184
|
"YY",
|
|
1182
1185
|
"YYYYMM",
|
|
1183
1186
|
"YYMM",
|
|
1184
1187
|
"YYYYMMDD"
|
|
1185
|
-
]),
|
|
1188
|
+
]), Kt = e.enum([
|
|
1186
1189
|
"none",
|
|
1187
1190
|
"hyphen",
|
|
1188
1191
|
"slash",
|
|
1189
1192
|
"underscore",
|
|
1190
1193
|
"period"
|
|
1191
|
-
]),
|
|
1192
|
-
value:
|
|
1194
|
+
]), qt = e.object({
|
|
1195
|
+
value: Kt,
|
|
1193
1196
|
afterPrefix: e.boolean(),
|
|
1194
1197
|
afterDate: e.boolean()
|
|
1195
|
-
}),
|
|
1198
|
+
}), Jt = e.object({
|
|
1196
1199
|
prefix: e.string().max(10).nullable(),
|
|
1197
|
-
dateFormat:
|
|
1200
|
+
dateFormat: Gt,
|
|
1198
1201
|
minDigits: e.int().gte(0).lte(10),
|
|
1199
|
-
separator:
|
|
1200
|
-
}),
|
|
1202
|
+
separator: qt
|
|
1203
|
+
}), Yt = e.enum(["never", "yearly"]), Xt = e.object({
|
|
1201
1204
|
uuid: e.uuid(),
|
|
1202
1205
|
createdAt: e.string(),
|
|
1203
1206
|
updatedAt: e.string(),
|
|
@@ -1210,12 +1213,12 @@ var Wt = e.enum([
|
|
|
1210
1213
|
bic: e.string().nullable(),
|
|
1211
1214
|
bankAccountNumber: e.string().nullable(),
|
|
1212
1215
|
currency: v,
|
|
1213
|
-
invoiceSequenceFormat:
|
|
1214
|
-
creditNoteSequenceFormat:
|
|
1216
|
+
invoiceSequenceFormat: Jt,
|
|
1217
|
+
creditNoteSequenceFormat: Jt,
|
|
1215
1218
|
shareCreditNoteSequence: e.boolean(),
|
|
1216
1219
|
isSequenceFormatChangeImmediate: e.boolean(),
|
|
1217
1220
|
isCreditNoteSequenceChangeImmediate: e.boolean(),
|
|
1218
|
-
sequenceReset:
|
|
1221
|
+
sequenceReset: Yt,
|
|
1219
1222
|
defaultPaymentTerm: Ft,
|
|
1220
1223
|
requiresInvoiceApprovalFile: e.boolean(),
|
|
1221
1224
|
allowsEditingExternallyCreatedInvoices: e.boolean()
|
|
@@ -1229,7 +1232,7 @@ e.object({
|
|
|
1229
1232
|
status: e.enum(["409"]),
|
|
1230
1233
|
code: e.enum(["sequence_sharing_would_reuse_numbers"])
|
|
1231
1234
|
});
|
|
1232
|
-
var
|
|
1235
|
+
var Zt = e.object({
|
|
1233
1236
|
email: e.email().nullable(),
|
|
1234
1237
|
name: e.string().nullable(),
|
|
1235
1238
|
phoneNumber: e.string().nullable(),
|
|
@@ -1239,10 +1242,10 @@ var Xt = e.object({
|
|
|
1239
1242
|
bankAccountNumber: e.string().nullable(),
|
|
1240
1243
|
bic: e.string().nullable(),
|
|
1241
1244
|
currency: v,
|
|
1242
|
-
invoiceSequenceFormat:
|
|
1243
|
-
creditNoteSequenceFormat:
|
|
1245
|
+
invoiceSequenceFormat: Jt,
|
|
1246
|
+
creditNoteSequenceFormat: Jt.optional(),
|
|
1244
1247
|
shareCreditNoteSequence: e.boolean().optional(),
|
|
1245
|
-
sequenceReset:
|
|
1248
|
+
sequenceReset: Yt,
|
|
1246
1249
|
defaultPaymentTerm: Ft
|
|
1247
1250
|
});
|
|
1248
1251
|
e.object({
|
|
@@ -1250,23 +1253,23 @@ e.object({
|
|
|
1250
1253
|
status: e.enum(["404"]),
|
|
1251
1254
|
code: e.enum(["invoice_not_found"])
|
|
1252
1255
|
});
|
|
1253
|
-
var
|
|
1256
|
+
var C = e.object({
|
|
1254
1257
|
definitionUuid: e.uuid(),
|
|
1255
1258
|
type: e.enum(["text"]),
|
|
1256
1259
|
value: e.string()
|
|
1257
|
-
}),
|
|
1260
|
+
}), w = e.object({
|
|
1258
1261
|
definitionUuid: e.uuid(),
|
|
1259
1262
|
type: e.enum(["text_array"]),
|
|
1260
1263
|
value: e.array(e.string())
|
|
1261
|
-
}),
|
|
1264
|
+
}), T = e.object({
|
|
1262
1265
|
definitionUuid: e.uuid(),
|
|
1263
1266
|
type: e.enum(["number"]),
|
|
1264
1267
|
value: e.number()
|
|
1265
|
-
}),
|
|
1268
|
+
}), E = e.object({
|
|
1266
1269
|
definitionUuid: e.uuid(),
|
|
1267
1270
|
type: e.enum(["boolean"]),
|
|
1268
1271
|
value: e.boolean()
|
|
1269
|
-
}),
|
|
1272
|
+
}), D = e.object({
|
|
1270
1273
|
definitionUuid: e.uuid(),
|
|
1271
1274
|
type: e.enum(["date"]),
|
|
1272
1275
|
value: e.union([
|
|
@@ -1274,27 +1277,27 @@ var w = e.object({
|
|
|
1274
1277
|
e.enum(["infinity"]),
|
|
1275
1278
|
e.enum(["-infinity"])
|
|
1276
1279
|
])
|
|
1277
|
-
}),
|
|
1280
|
+
}), O = e.object({
|
|
1278
1281
|
definitionUuid: e.uuid(),
|
|
1279
1282
|
type: e.enum(["timestamp"]),
|
|
1280
1283
|
value: e.iso.datetime()
|
|
1281
|
-
}),
|
|
1284
|
+
}), k = e.object({
|
|
1282
1285
|
definitionUuid: e.uuid(),
|
|
1283
1286
|
type: e.enum(["single_select"]),
|
|
1284
1287
|
value: e.string()
|
|
1285
|
-
}),
|
|
1288
|
+
}), A = e.object({
|
|
1286
1289
|
definitionUuid: e.uuid(),
|
|
1287
1290
|
type: e.enum(["multi_select"]),
|
|
1288
1291
|
value: e.array(e.string())
|
|
1289
|
-
}),
|
|
1292
|
+
}), j = e.object({
|
|
1290
1293
|
definitionUuid: e.uuid(),
|
|
1291
1294
|
type: e.enum(["monetary"]),
|
|
1292
1295
|
value: y
|
|
1293
|
-
}),
|
|
1296
|
+
}), M = e.object({
|
|
1294
1297
|
definitionUuid: e.uuid(),
|
|
1295
1298
|
type: e.enum(["reference"]),
|
|
1296
1299
|
value: e.string()
|
|
1297
|
-
}),
|
|
1300
|
+
}), Qt = e.enum(["standard", "credit_note"]), $t = e.object({
|
|
1298
1301
|
uuid: e.uuid(),
|
|
1299
1302
|
name: e.string().nullable(),
|
|
1300
1303
|
email: e.email().nullable(),
|
|
@@ -1304,11 +1307,11 @@ var w = e.object({
|
|
|
1304
1307
|
vatNumber: e.string().nullable(),
|
|
1305
1308
|
bankAccountNumber: e.string().nullable(),
|
|
1306
1309
|
alternativeBankAccountNumber: e.string().nullable()
|
|
1307
|
-
}),
|
|
1310
|
+
}), en = e.object({
|
|
1308
1311
|
uuid: e.uuid(),
|
|
1309
1312
|
name: e.string().nullable(),
|
|
1310
1313
|
email: e.email().nullable()
|
|
1311
|
-
}),
|
|
1314
|
+
}), tn = e.object({
|
|
1312
1315
|
uuid: e.uuid(),
|
|
1313
1316
|
name: e.string().nullable(),
|
|
1314
1317
|
email: e.email().nullable(),
|
|
@@ -1316,14 +1319,14 @@ var w = e.object({
|
|
|
1316
1319
|
address: x.nullable(),
|
|
1317
1320
|
vatNumber: e.string().nullable(),
|
|
1318
1321
|
type: g
|
|
1319
|
-
}),
|
|
1322
|
+
}), N = e.enum([
|
|
1320
1323
|
"draft",
|
|
1321
1324
|
"ready",
|
|
1322
1325
|
"finalized"
|
|
1323
|
-
]),
|
|
1326
|
+
]), nn = e.object({
|
|
1324
1327
|
locale: e.string(),
|
|
1325
1328
|
value: e.string()
|
|
1326
|
-
}),
|
|
1329
|
+
}), P = e.object({ items: e.array(nn) }), rn = e.enum([
|
|
1327
1330
|
"text",
|
|
1328
1331
|
"text_array",
|
|
1329
1332
|
"number",
|
|
@@ -1334,37 +1337,38 @@ var w = e.object({
|
|
|
1334
1337
|
"multi_select",
|
|
1335
1338
|
"monetary",
|
|
1336
1339
|
"reference"
|
|
1337
|
-
]),
|
|
1340
|
+
]), an = e.object({
|
|
1338
1341
|
value: e.string(),
|
|
1339
|
-
label:
|
|
1342
|
+
label: P,
|
|
1340
1343
|
order: e.number()
|
|
1341
|
-
}),
|
|
1344
|
+
}), on = e.object({
|
|
1342
1345
|
key: e.string(),
|
|
1343
1346
|
order: e.number()
|
|
1344
|
-
}),
|
|
1347
|
+
}), sn = e.object({
|
|
1345
1348
|
uuid: e.uuid(),
|
|
1346
1349
|
tenantUuid: e.uuid().nullable(),
|
|
1347
1350
|
entityType: e.string(),
|
|
1348
1351
|
key: e.string(),
|
|
1349
|
-
label:
|
|
1350
|
-
description:
|
|
1351
|
-
type:
|
|
1352
|
+
label: P,
|
|
1353
|
+
description: P.nullable(),
|
|
1354
|
+
type: rn,
|
|
1352
1355
|
isRequired: e.boolean(),
|
|
1353
|
-
choices: e.array(
|
|
1356
|
+
choices: e.array(an).nullable(),
|
|
1354
1357
|
rules: e.record(e.string(), e.unknown()).nullable(),
|
|
1355
|
-
views: e.array(
|
|
1356
|
-
}),
|
|
1358
|
+
views: e.array(on)
|
|
1359
|
+
}), F = e.enum([
|
|
1357
1360
|
"0",
|
|
1358
1361
|
"6",
|
|
1359
1362
|
"12",
|
|
1360
1363
|
"21"
|
|
1361
|
-
]),
|
|
1362
|
-
type:
|
|
1364
|
+
]), cn = e.enum(["percentage", "amount"]), I = e.object({
|
|
1365
|
+
type: cn,
|
|
1363
1366
|
amount: y.nullable(),
|
|
1364
1367
|
percentage: e.number().nullable(),
|
|
1365
1368
|
description: e.string().nullable()
|
|
1366
|
-
}),
|
|
1369
|
+
}), ln = e.enum([
|
|
1367
1370
|
"piece",
|
|
1371
|
+
"minute",
|
|
1368
1372
|
"hour",
|
|
1369
1373
|
"day",
|
|
1370
1374
|
"kilometer",
|
|
@@ -1373,13 +1377,14 @@ var w = e.object({
|
|
|
1373
1377
|
"cubic_meter",
|
|
1374
1378
|
"square_meter",
|
|
1375
1379
|
"litre"
|
|
1376
|
-
]),
|
|
1380
|
+
]), un = e.object({
|
|
1377
1381
|
uuid: e.uuid(),
|
|
1378
1382
|
groupUuid: e.uuid().nullable(),
|
|
1379
1383
|
position: e.number(),
|
|
1380
1384
|
name: e.string(),
|
|
1381
1385
|
description: e.string().nullable(),
|
|
1382
1386
|
customFields: e.array(e.union([
|
|
1387
|
+
C,
|
|
1383
1388
|
w,
|
|
1384
1389
|
T,
|
|
1385
1390
|
E,
|
|
@@ -1388,24 +1393,24 @@ var w = e.object({
|
|
|
1388
1393
|
k,
|
|
1389
1394
|
A,
|
|
1390
1395
|
j,
|
|
1391
|
-
M
|
|
1392
|
-
N
|
|
1396
|
+
M
|
|
1393
1397
|
])),
|
|
1394
1398
|
quantity: e.number(),
|
|
1395
1399
|
unitPrice: y,
|
|
1396
|
-
vatRate:
|
|
1400
|
+
vatRate: F,
|
|
1397
1401
|
vatRatePercentage: e.number(),
|
|
1398
1402
|
netAmount: y,
|
|
1399
1403
|
grossAmount: y,
|
|
1400
|
-
discount:
|
|
1401
|
-
unit:
|
|
1404
|
+
discount: I.nullable(),
|
|
1405
|
+
unit: ln,
|
|
1402
1406
|
isDiscount: e.boolean()
|
|
1403
|
-
}),
|
|
1407
|
+
}), dn = e.object({
|
|
1404
1408
|
uuid: e.uuid(),
|
|
1405
1409
|
position: e.number(),
|
|
1406
1410
|
name: e.string(),
|
|
1407
1411
|
description: e.string().nullable(),
|
|
1408
1412
|
customFields: e.array(e.union([
|
|
1413
|
+
C,
|
|
1409
1414
|
w,
|
|
1410
1415
|
T,
|
|
1411
1416
|
E,
|
|
@@ -1414,44 +1419,45 @@ var w = e.object({
|
|
|
1414
1419
|
k,
|
|
1415
1420
|
A,
|
|
1416
1421
|
j,
|
|
1417
|
-
M
|
|
1418
|
-
N
|
|
1422
|
+
M
|
|
1419
1423
|
])),
|
|
1420
|
-
lines: e.array(
|
|
1421
|
-
groups: e.array(e.lazy(() =>
|
|
1422
|
-
}),
|
|
1423
|
-
vatRate:
|
|
1424
|
+
lines: e.array(un),
|
|
1425
|
+
groups: e.array(e.lazy(() => dn))
|
|
1426
|
+
}), fn = e.object({
|
|
1427
|
+
vatRate: F,
|
|
1424
1428
|
netAmount: y,
|
|
1425
1429
|
vatAmount: y
|
|
1426
|
-
}),
|
|
1430
|
+
}), pn = e.object({
|
|
1427
1431
|
uuid: e.uuid(),
|
|
1428
1432
|
createdAt: e.iso.datetime(),
|
|
1429
1433
|
status: _,
|
|
1430
1434
|
sequence: e.string().nullable()
|
|
1431
|
-
}),
|
|
1435
|
+
}), mn = e.enum([
|
|
1432
1436
|
"unsent",
|
|
1433
1437
|
"processing",
|
|
1434
1438
|
"sent",
|
|
1435
1439
|
"viewed",
|
|
1436
1440
|
"failed"
|
|
1437
|
-
]),
|
|
1441
|
+
]), hn = e.object({
|
|
1438
1442
|
uuid: e.uuid(),
|
|
1439
1443
|
sequence: e.string().nullable(),
|
|
1440
|
-
type:
|
|
1444
|
+
type: Qt,
|
|
1441
1445
|
createdAt: e.iso.datetime(),
|
|
1442
1446
|
updatedAt: e.iso.datetime(),
|
|
1443
1447
|
issueOn: e.iso.date().nullable(),
|
|
1444
1448
|
dueOn: e.iso.date().nullable(),
|
|
1445
1449
|
deliveredOn: e.iso.date().nullable(),
|
|
1446
|
-
issuer:
|
|
1447
|
-
recipient:
|
|
1448
|
-
customer:
|
|
1450
|
+
issuer: $t,
|
|
1451
|
+
recipient: en.nullable(),
|
|
1452
|
+
customer: tn,
|
|
1449
1453
|
status: _,
|
|
1450
|
-
lifecycleStatus:
|
|
1454
|
+
lifecycleStatus: N,
|
|
1451
1455
|
paymentReference: e.string().nullable(),
|
|
1452
1456
|
subject: e.string().nullable(),
|
|
1453
1457
|
poNumber: e.string().nullable(),
|
|
1458
|
+
reference: e.string().nullable(),
|
|
1454
1459
|
customFields: e.array(e.union([
|
|
1460
|
+
C,
|
|
1455
1461
|
w,
|
|
1456
1462
|
T,
|
|
1457
1463
|
E,
|
|
@@ -1460,34 +1466,121 @@ var w = e.object({
|
|
|
1460
1466
|
k,
|
|
1461
1467
|
A,
|
|
1462
1468
|
j,
|
|
1463
|
-
M
|
|
1464
|
-
N
|
|
1469
|
+
M
|
|
1465
1470
|
])),
|
|
1466
|
-
customFieldDefinitions: e.array(
|
|
1467
|
-
ungroupedLines: e.array(
|
|
1468
|
-
groups: e.array(
|
|
1469
|
-
vatSummaries: e.array(
|
|
1471
|
+
customFieldDefinitions: e.array(sn),
|
|
1472
|
+
ungroupedLines: e.array(un),
|
|
1473
|
+
groups: e.array(dn),
|
|
1474
|
+
vatSummaries: e.array(fn),
|
|
1470
1475
|
grossAmount: y,
|
|
1471
1476
|
netAmount: y,
|
|
1472
1477
|
effectiveNet: y,
|
|
1473
1478
|
vatAmount: y,
|
|
1474
1479
|
totalDiscountAmount: y.nullable(),
|
|
1475
|
-
globalDiscount:
|
|
1480
|
+
globalDiscount: I.nullable(),
|
|
1476
1481
|
advancePaymentAmount: y.nullable(),
|
|
1477
1482
|
amountDue: y,
|
|
1478
|
-
originalInvoice:
|
|
1483
|
+
originalInvoice: pn.nullable(),
|
|
1479
1484
|
externalRemarks: e.string().nullable(),
|
|
1480
|
-
deliveryStatus:
|
|
1485
|
+
deliveryStatus: mn,
|
|
1481
1486
|
isDisputed: e.boolean()
|
|
1482
|
-
})
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1487
|
+
});
|
|
1488
|
+
e.object({
|
|
1489
|
+
detail: e.string().optional(),
|
|
1490
|
+
status: e.enum(["409"]),
|
|
1491
|
+
code: e.enum(["currency_mismatch"])
|
|
1492
|
+
}), e.object({
|
|
1493
|
+
detail: e.string().optional(),
|
|
1494
|
+
status: e.enum(["400"]),
|
|
1495
|
+
code: e.enum(["discount_line_has_discount"])
|
|
1496
|
+
}), e.object({
|
|
1497
|
+
detail: e.string().optional(),
|
|
1498
|
+
status: e.enum(["400"]),
|
|
1499
|
+
code: e.enum(["invoice_line_and_group_position_overlap"])
|
|
1500
|
+
}), e.object({
|
|
1501
|
+
detail: e.string().optional(),
|
|
1502
|
+
status: e.enum(["400"]),
|
|
1503
|
+
code: e.enum(["invoice_line_group_max_depth_exceeded"])
|
|
1504
|
+
}), e.object({
|
|
1505
|
+
detail: e.string().optional(),
|
|
1506
|
+
status: e.enum(["400"]),
|
|
1507
|
+
code: e.enum(["custom_field_value_validation"])
|
|
1508
|
+
});
|
|
1509
|
+
var gn = e.object({
|
|
1510
|
+
billingDocument: Vt.nullish(),
|
|
1511
|
+
approval: Vt.nullish()
|
|
1512
|
+
}), _n = e.object({
|
|
1513
|
+
name: e.string(),
|
|
1514
|
+
description: e.string().nullable(),
|
|
1515
|
+
externalId: e.string().nullish(),
|
|
1516
|
+
position: e.int(),
|
|
1517
|
+
quantity: e.number().lte(1e4),
|
|
1518
|
+
unitPrice: y,
|
|
1519
|
+
vatRate: F,
|
|
1520
|
+
discount: I.nullable(),
|
|
1521
|
+
unit: ln,
|
|
1522
|
+
isDiscount: e.boolean(),
|
|
1523
|
+
customFields: e.array(e.union([
|
|
1524
|
+
C,
|
|
1525
|
+
w,
|
|
1526
|
+
T,
|
|
1527
|
+
E,
|
|
1528
|
+
D,
|
|
1529
|
+
O,
|
|
1530
|
+
k,
|
|
1531
|
+
A,
|
|
1532
|
+
j,
|
|
1533
|
+
M
|
|
1534
|
+
])).optional()
|
|
1535
|
+
}), vn = e.object({
|
|
1536
|
+
name: e.string(),
|
|
1537
|
+
description: e.string().nullable(),
|
|
1538
|
+
externalId: e.string().nullish(),
|
|
1539
|
+
position: e.int(),
|
|
1540
|
+
lines: e.array(_n),
|
|
1541
|
+
customFields: e.array(e.union([
|
|
1542
|
+
C,
|
|
1543
|
+
w,
|
|
1544
|
+
T,
|
|
1545
|
+
E,
|
|
1546
|
+
D,
|
|
1547
|
+
O,
|
|
1548
|
+
k,
|
|
1549
|
+
A,
|
|
1550
|
+
j,
|
|
1551
|
+
M
|
|
1552
|
+
])).optional(),
|
|
1553
|
+
groups: e.array(e.lazy(() => vn)).optional()
|
|
1554
|
+
}), yn = e.object({
|
|
1555
|
+
groups: e.array(vn),
|
|
1556
|
+
ungroupedLines: e.array(_n)
|
|
1557
|
+
}), bn = e.object({
|
|
1486
1558
|
customerUuid: e.uuid(),
|
|
1487
1559
|
requiresPriorApproval: e.boolean().optional(),
|
|
1488
1560
|
isExternallyCreated: e.boolean().optional(),
|
|
1489
|
-
contactOverride:
|
|
1490
|
-
|
|
1561
|
+
contactOverride: gn.optional(),
|
|
1562
|
+
issuedOn: e.iso.date().optional(),
|
|
1563
|
+
deliveredOn: e.iso.date().nullish(),
|
|
1564
|
+
dueOn: e.iso.date().optional(),
|
|
1565
|
+
poNumber: e.string().nullish(),
|
|
1566
|
+
subject: e.string().nullish(),
|
|
1567
|
+
preparedByUuid: e.uuid().optional(),
|
|
1568
|
+
externalRemarks: e.string().nullish(),
|
|
1569
|
+
reference: e.string().nullish(),
|
|
1570
|
+
customFields: e.array(e.union([
|
|
1571
|
+
C,
|
|
1572
|
+
w,
|
|
1573
|
+
T,
|
|
1574
|
+
E,
|
|
1575
|
+
D,
|
|
1576
|
+
O,
|
|
1577
|
+
k,
|
|
1578
|
+
A,
|
|
1579
|
+
j,
|
|
1580
|
+
M
|
|
1581
|
+
])).optional(),
|
|
1582
|
+
lines: yn.optional()
|
|
1583
|
+
}), xn = e.object({ uuid: e.uuid() }), Sn = e.object({
|
|
1491
1584
|
uuid: e.uuid(),
|
|
1492
1585
|
name: e.string().nullable(),
|
|
1493
1586
|
email: e.email().nullable(),
|
|
@@ -1497,14 +1590,14 @@ var w = e.object({
|
|
|
1497
1590
|
vatNumber: e.string().nullable(),
|
|
1498
1591
|
bankAccountNumber: e.string().nullable(),
|
|
1499
1592
|
alternativeBankAccountNumber: e.string().nullable()
|
|
1500
|
-
}),
|
|
1593
|
+
}), Cn = e.object({
|
|
1501
1594
|
uuid: e.uuid(),
|
|
1502
1595
|
name: e.string().nullable(),
|
|
1503
1596
|
email: e.email().nullable()
|
|
1504
|
-
}),
|
|
1597
|
+
}), wn = e.object({
|
|
1505
1598
|
billingDocument: S.nullable(),
|
|
1506
1599
|
approval: S.nullable()
|
|
1507
|
-
}),
|
|
1600
|
+
}), Tn = e.object({
|
|
1508
1601
|
uuid: e.uuid(),
|
|
1509
1602
|
name: e.string().nullable(),
|
|
1510
1603
|
email: e.email().nullable(),
|
|
@@ -1514,11 +1607,11 @@ var w = e.object({
|
|
|
1514
1607
|
vatNumber: e.string().nullable(),
|
|
1515
1608
|
type: g,
|
|
1516
1609
|
approvalEmail: e.email().nullable()
|
|
1517
|
-
}),
|
|
1610
|
+
}), En = e.object({
|
|
1518
1611
|
uuid: e.uuid(),
|
|
1519
1612
|
quantity: e.number(),
|
|
1520
1613
|
remainingQuantity: e.number().nullable()
|
|
1521
|
-
}),
|
|
1614
|
+
}), Dn = e.object({
|
|
1522
1615
|
uuid: e.uuid(),
|
|
1523
1616
|
groupUuid: e.uuid().nullable(),
|
|
1524
1617
|
position: e.number(),
|
|
@@ -1526,6 +1619,7 @@ var w = e.object({
|
|
|
1526
1619
|
description: e.string().nullable(),
|
|
1527
1620
|
externalId: e.string().nullable(),
|
|
1528
1621
|
customFields: e.array(e.union([
|
|
1622
|
+
C,
|
|
1529
1623
|
w,
|
|
1530
1624
|
T,
|
|
1531
1625
|
E,
|
|
@@ -1534,26 +1628,26 @@ var w = e.object({
|
|
|
1534
1628
|
k,
|
|
1535
1629
|
A,
|
|
1536
1630
|
j,
|
|
1537
|
-
M
|
|
1538
|
-
N
|
|
1631
|
+
M
|
|
1539
1632
|
])),
|
|
1540
1633
|
quantity: e.number(),
|
|
1541
1634
|
unitPrice: y,
|
|
1542
|
-
vatRate:
|
|
1635
|
+
vatRate: F,
|
|
1543
1636
|
vatRatePercentage: e.number(),
|
|
1544
1637
|
netAmount: y,
|
|
1545
1638
|
grossAmount: y,
|
|
1546
|
-
discount:
|
|
1547
|
-
unit:
|
|
1639
|
+
discount: I.nullable(),
|
|
1640
|
+
unit: ln,
|
|
1548
1641
|
isDiscount: e.boolean(),
|
|
1549
|
-
originalLine:
|
|
1550
|
-
}),
|
|
1642
|
+
originalLine: En.nullable()
|
|
1643
|
+
}), On = e.object({
|
|
1551
1644
|
uuid: e.uuid(),
|
|
1552
1645
|
position: e.number(),
|
|
1553
1646
|
name: e.string(),
|
|
1554
1647
|
description: e.string().nullable(),
|
|
1555
1648
|
externalId: e.string().nullable(),
|
|
1556
1649
|
customFields: e.array(e.union([
|
|
1650
|
+
C,
|
|
1557
1651
|
w,
|
|
1558
1652
|
T,
|
|
1559
1653
|
E,
|
|
@@ -1562,21 +1656,20 @@ var w = e.object({
|
|
|
1562
1656
|
k,
|
|
1563
1657
|
A,
|
|
1564
1658
|
j,
|
|
1565
|
-
M
|
|
1566
|
-
N
|
|
1659
|
+
M
|
|
1567
1660
|
])),
|
|
1568
|
-
lines: e.array(
|
|
1569
|
-
groups: e.array(e.lazy(() =>
|
|
1570
|
-
}),
|
|
1571
|
-
vatRate:
|
|
1661
|
+
lines: e.array(Dn),
|
|
1662
|
+
groups: e.array(e.lazy(() => On))
|
|
1663
|
+
}), kn = e.object({
|
|
1664
|
+
vatRate: F,
|
|
1572
1665
|
netAmount: y,
|
|
1573
1666
|
vatAmount: y
|
|
1574
|
-
}),
|
|
1667
|
+
}), An = e.object({
|
|
1575
1668
|
uuid: e.uuid(),
|
|
1576
1669
|
name: e.string(),
|
|
1577
1670
|
mimeType: je,
|
|
1578
1671
|
blurHash: e.string().nullable()
|
|
1579
|
-
}),
|
|
1672
|
+
}), jn = e.object({
|
|
1580
1673
|
uuid: e.uuid(),
|
|
1581
1674
|
createdAt: e.iso.datetime(),
|
|
1582
1675
|
status: _,
|
|
@@ -1586,36 +1679,36 @@ var w = e.object({
|
|
|
1586
1679
|
paidAmount: y.nullable(),
|
|
1587
1680
|
balanceDueAmount: y.nullable(),
|
|
1588
1681
|
creditableAmount: y.nullable()
|
|
1589
|
-
}),
|
|
1682
|
+
}), Mn = e.object({
|
|
1590
1683
|
uuid: e.string(),
|
|
1591
1684
|
firstName: e.string().nullable(),
|
|
1592
1685
|
lastName: e.string().nullable()
|
|
1593
|
-
}),
|
|
1686
|
+
}), Nn = e.enum(["user", "service_user"]), Pn = e.object({
|
|
1594
1687
|
uuid: e.uuid(),
|
|
1595
1688
|
firstName: e.string().nullable(),
|
|
1596
1689
|
lastName: e.string().nullable(),
|
|
1597
|
-
type:
|
|
1598
|
-
}),
|
|
1690
|
+
type: Nn
|
|
1691
|
+
}), L = e.enum([
|
|
1599
1692
|
"unpaid",
|
|
1600
1693
|
"partially_paid",
|
|
1601
1694
|
"paid",
|
|
1602
1695
|
"overpaid",
|
|
1603
1696
|
"credited",
|
|
1604
1697
|
"settled"
|
|
1605
|
-
]),
|
|
1698
|
+
]), Fn = e.object({
|
|
1606
1699
|
uuid: e.uuid(),
|
|
1607
1700
|
sentAt: e.iso.datetime()
|
|
1608
|
-
}),
|
|
1701
|
+
}), In = e.enum(["after_last_reminder", "after_due_date"]), Ln = e.object({
|
|
1609
1702
|
uuid: e.uuid(),
|
|
1610
1703
|
sequence: e.number(),
|
|
1611
|
-
schedule:
|
|
1704
|
+
schedule: In,
|
|
1612
1705
|
offsetDays: e.number()
|
|
1613
|
-
}),
|
|
1706
|
+
}), Rn = e.enum([
|
|
1614
1707
|
"approved",
|
|
1615
1708
|
"rejected",
|
|
1616
1709
|
"requested",
|
|
1617
1710
|
"expired"
|
|
1618
|
-
]),
|
|
1711
|
+
]), zn = e.enum([
|
|
1619
1712
|
"incorrect_price",
|
|
1620
1713
|
"incorrect_quantity",
|
|
1621
1714
|
"incorrect_customer_or_reference_data",
|
|
@@ -1623,40 +1716,41 @@ var w = e.object({
|
|
|
1623
1716
|
"missing_or_incorrect_attachment",
|
|
1624
1717
|
"missing_or_incorrect_po_reference",
|
|
1625
1718
|
"other"
|
|
1626
|
-
]),
|
|
1719
|
+
]), R = e.union([e.literal(1), e.literal(2)]), Bn = e.object({
|
|
1627
1720
|
uuid: e.uuid(),
|
|
1628
1721
|
sentAt: e.string().nullable(),
|
|
1629
|
-
status:
|
|
1722
|
+
status: Rn,
|
|
1630
1723
|
answeredAt: e.string().nullable(),
|
|
1631
1724
|
customerRemark: e.string().nullable(),
|
|
1632
|
-
proFormaFile:
|
|
1633
|
-
approvalProofs: e.array(
|
|
1725
|
+
proFormaFile: An.nullable(),
|
|
1726
|
+
approvalProofs: e.array(An),
|
|
1634
1727
|
isActive: e.boolean(),
|
|
1635
1728
|
remarks: e.string().nullable(),
|
|
1636
|
-
rejectionReason:
|
|
1637
|
-
level:
|
|
1729
|
+
rejectionReason: zn.nullable(),
|
|
1730
|
+
level: R.nullable(),
|
|
1638
1731
|
reminderSentAt: e.iso.datetime().nullable()
|
|
1639
|
-
}),
|
|
1732
|
+
}), Vn = e.object({
|
|
1640
1733
|
uuid: e.uuid(),
|
|
1641
1734
|
sequence: e.string().nullable(),
|
|
1642
|
-
type:
|
|
1735
|
+
type: Qt,
|
|
1643
1736
|
createdAt: e.iso.datetime(),
|
|
1644
1737
|
updatedAt: e.iso.datetime(),
|
|
1645
1738
|
issueOn: e.iso.date().nullable(),
|
|
1646
1739
|
dueOn: e.iso.date().nullable(),
|
|
1647
1740
|
deliveredOn: e.iso.date().nullable(),
|
|
1648
|
-
issuer:
|
|
1649
|
-
recipient:
|
|
1741
|
+
issuer: Sn,
|
|
1742
|
+
recipient: Cn.nullable(),
|
|
1650
1743
|
billingDocumentRecipient: S.nullable(),
|
|
1651
1744
|
approvalRecipient: S.nullable(),
|
|
1652
|
-
contactOverride:
|
|
1653
|
-
customer:
|
|
1745
|
+
contactOverride: wn,
|
|
1746
|
+
customer: Tn,
|
|
1654
1747
|
status: _,
|
|
1655
|
-
lifecycleStatus:
|
|
1748
|
+
lifecycleStatus: N,
|
|
1656
1749
|
paymentReference: e.string().nullable(),
|
|
1657
1750
|
subject: e.string().nullable(),
|
|
1658
1751
|
poNumber: e.string().nullable(),
|
|
1659
1752
|
customFields: e.array(e.union([
|
|
1753
|
+
C,
|
|
1660
1754
|
w,
|
|
1661
1755
|
T,
|
|
1662
1756
|
E,
|
|
@@ -1665,51 +1759,51 @@ var w = e.object({
|
|
|
1665
1759
|
k,
|
|
1666
1760
|
A,
|
|
1667
1761
|
j,
|
|
1668
|
-
M
|
|
1669
|
-
N
|
|
1762
|
+
M
|
|
1670
1763
|
])),
|
|
1671
|
-
ungroupedLines: e.array(
|
|
1672
|
-
groups: e.array(
|
|
1673
|
-
vatSummaries: e.array(
|
|
1764
|
+
ungroupedLines: e.array(Dn),
|
|
1765
|
+
groups: e.array(On),
|
|
1766
|
+
vatSummaries: e.array(kn),
|
|
1674
1767
|
grossAmount: y,
|
|
1675
1768
|
netAmount: y,
|
|
1676
1769
|
effectiveNet: y,
|
|
1677
1770
|
vatAmount: y,
|
|
1678
1771
|
totalDiscountAmount: y.nullable(),
|
|
1679
|
-
globalDiscount:
|
|
1680
|
-
attachments: e.array(
|
|
1681
|
-
approvalProofs: e.array(
|
|
1682
|
-
rejectionFiles: e.array(
|
|
1683
|
-
creditNotes: e.array(
|
|
1684
|
-
originalInvoice:
|
|
1685
|
-
preparedBy:
|
|
1686
|
-
lastUpdatedBy:
|
|
1687
|
-
file:
|
|
1772
|
+
globalDiscount: I.nullable(),
|
|
1773
|
+
attachments: e.array(An),
|
|
1774
|
+
approvalProofs: e.array(An),
|
|
1775
|
+
rejectionFiles: e.array(An),
|
|
1776
|
+
creditNotes: e.array(jn),
|
|
1777
|
+
originalInvoice: jn.nullable(),
|
|
1778
|
+
preparedBy: Mn,
|
|
1779
|
+
lastUpdatedBy: Pn.nullable(),
|
|
1780
|
+
file: An.nullable(),
|
|
1688
1781
|
externalRemarks: e.string().nullable(),
|
|
1689
1782
|
paidAmount: y.nullable(),
|
|
1690
|
-
settlementStatus:
|
|
1783
|
+
settlementStatus: L,
|
|
1691
1784
|
balanceDueAmount: y.nullable(),
|
|
1692
1785
|
advancePaymentAmount: y.nullable(),
|
|
1693
1786
|
amountDue: y,
|
|
1694
1787
|
currency: v,
|
|
1695
|
-
deliveryStatus:
|
|
1788
|
+
deliveryStatus: mn,
|
|
1696
1789
|
isDisputed: e.boolean(),
|
|
1697
1790
|
isOverdue: e.boolean(),
|
|
1698
|
-
reminders: e.array(
|
|
1699
|
-
reminderConfigs: e.array(
|
|
1791
|
+
reminders: e.array(Fn),
|
|
1792
|
+
reminderConfigs: e.array(Ln),
|
|
1700
1793
|
requiresPriorApproval: e.boolean(),
|
|
1701
|
-
approval: e.array(
|
|
1794
|
+
approval: e.array(Bn),
|
|
1702
1795
|
hasChangesSinceApprovalSent: e.boolean(),
|
|
1703
1796
|
isEditable: e.boolean(),
|
|
1704
|
-
isExternallyCreated: e.boolean()
|
|
1705
|
-
|
|
1797
|
+
isExternallyCreated: e.boolean(),
|
|
1798
|
+
reference: e.string().nullable()
|
|
1799
|
+
}), Hn = e.enum([
|
|
1706
1800
|
"created_at",
|
|
1707
1801
|
"issued_on",
|
|
1708
1802
|
"sequence",
|
|
1709
1803
|
"customer",
|
|
1710
1804
|
"netAmount"
|
|
1711
|
-
]),
|
|
1712
|
-
key:
|
|
1805
|
+
]), Un = e.object({
|
|
1806
|
+
key: Hn,
|
|
1713
1807
|
order: bt
|
|
1714
1808
|
}), z = e.object({
|
|
1715
1809
|
definitionUuid: e.uuid(),
|
|
@@ -1758,8 +1852,8 @@ var w = e.object({
|
|
|
1758
1852
|
e.enum(["infinity"]),
|
|
1759
1853
|
e.enum(["-infinity"])
|
|
1760
1854
|
])
|
|
1761
|
-
}),
|
|
1762
|
-
scope:
|
|
1855
|
+
}), Wn = e.enum(["include", "exclude"]), Y = e.object({
|
|
1856
|
+
scope: Wn,
|
|
1763
1857
|
values: e.array(e.uuid())
|
|
1764
1858
|
}), X = e.enum([
|
|
1765
1859
|
"no_approval_required",
|
|
@@ -1769,16 +1863,16 @@ var w = e.object({
|
|
|
1769
1863
|
"approved",
|
|
1770
1864
|
"rejected",
|
|
1771
1865
|
"expired"
|
|
1772
|
-
]),
|
|
1866
|
+
]), Gn = e.object({
|
|
1773
1867
|
statuses: e.array(_).optional(),
|
|
1774
|
-
lifecycleStatuses: e.array(
|
|
1868
|
+
lifecycleStatuses: e.array(N).optional(),
|
|
1775
1869
|
customerUuids: e.array(e.uuid()).optional(),
|
|
1776
1870
|
dueOnRange: J.optional(),
|
|
1777
1871
|
issuedOnRange: J.optional(),
|
|
1778
1872
|
invoiceUuids: Y.optional(),
|
|
1779
1873
|
isDisputed: e.boolean().optional(),
|
|
1780
1874
|
isOverdue: e.boolean().optional(),
|
|
1781
|
-
settlementStatuses: e.array(
|
|
1875
|
+
settlementStatuses: e.array(L).optional(),
|
|
1782
1876
|
customerExternalIds: e.array(e.string()).optional(),
|
|
1783
1877
|
isOutstanding: e.boolean().optional(),
|
|
1784
1878
|
customFields: e.array(e.union([
|
|
@@ -1796,36 +1890,37 @@ var w = e.object({
|
|
|
1796
1890
|
approvalStatuses: e.array(X).optional(),
|
|
1797
1891
|
isApprovalCancelled: e.boolean().optional(),
|
|
1798
1892
|
isExternallyCreated: e.boolean().optional()
|
|
1799
|
-
}),
|
|
1893
|
+
}), Kn = e.object({
|
|
1800
1894
|
uuid: e.uuid(),
|
|
1801
1895
|
externalId: e.string().nullable(),
|
|
1802
1896
|
name: e.string()
|
|
1803
|
-
}),
|
|
1804
|
-
status:
|
|
1805
|
-
level:
|
|
1897
|
+
}), qn = e.object({
|
|
1898
|
+
status: Rn,
|
|
1899
|
+
level: R.nullable(),
|
|
1806
1900
|
sentAt: e.iso.datetime().nullable(),
|
|
1807
1901
|
reminderSentAt: e.iso.datetime().nullable()
|
|
1808
|
-
}),
|
|
1902
|
+
}), Jn = e.object({
|
|
1809
1903
|
uuid: e.uuid(),
|
|
1810
|
-
type:
|
|
1904
|
+
type: Qt,
|
|
1811
1905
|
createdAt: e.iso.datetime(),
|
|
1812
1906
|
issuedOn: e.iso.date().nullable(),
|
|
1813
1907
|
dueOn: e.iso.date().nullable(),
|
|
1814
1908
|
subject: e.string().nullable(),
|
|
1815
|
-
customer:
|
|
1909
|
+
customer: Kn,
|
|
1816
1910
|
status: _,
|
|
1817
|
-
lifecycleStatus:
|
|
1911
|
+
lifecycleStatus: N,
|
|
1818
1912
|
netAmount: y,
|
|
1819
1913
|
grossAmount: y,
|
|
1820
1914
|
sequence: e.string().nullable(),
|
|
1821
1915
|
paidAmount: y.nullable(),
|
|
1822
1916
|
totalCreditedAmount: y.nullable(),
|
|
1823
|
-
settlementStatus:
|
|
1917
|
+
settlementStatus: L,
|
|
1824
1918
|
balanceDueAmount: y.nullable(),
|
|
1825
1919
|
isDisputed: e.boolean(),
|
|
1826
1920
|
isOverdue: e.boolean(),
|
|
1827
|
-
deliveryStatus:
|
|
1921
|
+
deliveryStatus: mn,
|
|
1828
1922
|
customFields: e.array(e.union([
|
|
1923
|
+
C,
|
|
1829
1924
|
w,
|
|
1830
1925
|
T,
|
|
1831
1926
|
E,
|
|
@@ -1834,24 +1929,19 @@ var w = e.object({
|
|
|
1834
1929
|
k,
|
|
1835
1930
|
A,
|
|
1836
1931
|
j,
|
|
1837
|
-
M
|
|
1838
|
-
N
|
|
1932
|
+
M
|
|
1839
1933
|
])),
|
|
1840
1934
|
requiresPriorApproval: e.boolean(),
|
|
1841
1935
|
hasChangesSinceApprovalSent: e.boolean(),
|
|
1842
|
-
approval:
|
|
1843
|
-
}),
|
|
1844
|
-
items: e.array(
|
|
1936
|
+
approval: qn.nullable()
|
|
1937
|
+
}), Yn = e.object({
|
|
1938
|
+
items: e.array(Jn),
|
|
1845
1939
|
meta: h
|
|
1846
1940
|
});
|
|
1847
1941
|
e.object({
|
|
1848
1942
|
detail: e.string().optional(),
|
|
1849
1943
|
status: e.enum(["409"]),
|
|
1850
1944
|
code: e.enum(["edit_non_draft_invoice"])
|
|
1851
|
-
}), e.object({
|
|
1852
|
-
detail: e.string().optional(),
|
|
1853
|
-
status: e.enum(["400"]),
|
|
1854
|
-
code: e.enum(["custom_field_value_validation"])
|
|
1855
1945
|
}), e.object({
|
|
1856
1946
|
detail: e.string().optional(),
|
|
1857
1947
|
status: e.enum(["409"]),
|
|
@@ -1861,7 +1951,7 @@ e.object({
|
|
|
1861
1951
|
status: e.enum(["403"]),
|
|
1862
1952
|
code: e.enum(["externally_created_invoice_not_editable"])
|
|
1863
1953
|
});
|
|
1864
|
-
var
|
|
1954
|
+
var Xn = e.object({
|
|
1865
1955
|
issuedOn: e.iso.date(),
|
|
1866
1956
|
deliveredOn: e.iso.date().nullable(),
|
|
1867
1957
|
dueOn: e.iso.date(),
|
|
@@ -1869,10 +1959,11 @@ var qn = e.object({
|
|
|
1869
1959
|
subject: e.string().nullable(),
|
|
1870
1960
|
preparedByUuid: e.uuid(),
|
|
1871
1961
|
recipientUuid: e.uuid().nullish(),
|
|
1872
|
-
contactOverride:
|
|
1962
|
+
contactOverride: gn.optional(),
|
|
1873
1963
|
externalRemarks: e.string().nullable(),
|
|
1874
1964
|
customerUuid: e.uuid().optional(),
|
|
1875
1965
|
customFields: e.array(e.union([
|
|
1966
|
+
C,
|
|
1876
1967
|
w,
|
|
1877
1968
|
T,
|
|
1878
1969
|
E,
|
|
@@ -1881,83 +1972,20 @@ var qn = e.object({
|
|
|
1881
1972
|
k,
|
|
1882
1973
|
A,
|
|
1883
1974
|
j,
|
|
1884
|
-
M
|
|
1885
|
-
|
|
1886
|
-
|
|
1975
|
+
M
|
|
1976
|
+
])).optional(),
|
|
1977
|
+
reference: e.string().nullish()
|
|
1887
1978
|
});
|
|
1888
1979
|
e.object({
|
|
1889
|
-
detail: e.string().optional(),
|
|
1890
|
-
status: e.enum(["409"]),
|
|
1891
|
-
code: e.enum(["currency_mismatch"])
|
|
1892
|
-
}), e.object({
|
|
1893
1980
|
detail: e.string().optional(),
|
|
1894
1981
|
status: e.enum(["409"]),
|
|
1895
1982
|
code: e.enum(["invoice_not_standard"])
|
|
1896
1983
|
}), e.object({
|
|
1897
|
-
detail: e.string().optional(),
|
|
1898
|
-
status: e.enum(["400"]),
|
|
1899
|
-
code: e.enum(["discount_line_has_discount"])
|
|
1900
|
-
}), e.object({
|
|
1901
|
-
detail: e.string().optional(),
|
|
1902
|
-
status: e.enum(["400"]),
|
|
1903
|
-
code: e.enum(["invoice_line_and_group_position_overlap"])
|
|
1904
|
-
}), e.object({
|
|
1905
|
-
detail: e.string().optional(),
|
|
1906
|
-
status: e.enum(["400"]),
|
|
1907
|
-
code: e.enum(["invoice_line_group_max_depth_exceeded"])
|
|
1908
|
-
});
|
|
1909
|
-
var Jn = e.object({
|
|
1910
|
-
name: e.string(),
|
|
1911
|
-
description: e.string().nullable(),
|
|
1912
|
-
externalId: e.string().nullish(),
|
|
1913
|
-
position: e.int(),
|
|
1914
|
-
quantity: e.number().lte(1e4),
|
|
1915
|
-
unitPrice: y,
|
|
1916
|
-
vatRate: I,
|
|
1917
|
-
discount: L.nullable(),
|
|
1918
|
-
unit: cn,
|
|
1919
|
-
isDiscount: e.boolean(),
|
|
1920
|
-
customFields: e.array(e.union([
|
|
1921
|
-
w,
|
|
1922
|
-
T,
|
|
1923
|
-
E,
|
|
1924
|
-
D,
|
|
1925
|
-
O,
|
|
1926
|
-
k,
|
|
1927
|
-
A,
|
|
1928
|
-
j,
|
|
1929
|
-
M,
|
|
1930
|
-
N
|
|
1931
|
-
])).optional()
|
|
1932
|
-
}), Yn = e.object({
|
|
1933
|
-
name: e.string(),
|
|
1934
|
-
description: e.string().nullable(),
|
|
1935
|
-
externalId: e.string().nullish(),
|
|
1936
|
-
position: e.int(),
|
|
1937
|
-
lines: e.array(Jn),
|
|
1938
|
-
customFields: e.array(e.union([
|
|
1939
|
-
w,
|
|
1940
|
-
T,
|
|
1941
|
-
E,
|
|
1942
|
-
D,
|
|
1943
|
-
O,
|
|
1944
|
-
k,
|
|
1945
|
-
A,
|
|
1946
|
-
j,
|
|
1947
|
-
M,
|
|
1948
|
-
N
|
|
1949
|
-
])).optional(),
|
|
1950
|
-
groups: e.array(e.lazy(() => Yn)).optional()
|
|
1951
|
-
}), Xn = e.object({
|
|
1952
|
-
groups: e.array(Yn),
|
|
1953
|
-
ungroupedLines: e.array(Jn)
|
|
1954
|
-
});
|
|
1955
|
-
e.object({
|
|
1956
1984
|
detail: e.string().optional(),
|
|
1957
1985
|
status: e.enum(["409"]),
|
|
1958
1986
|
code: e.enum(["global_discount_exceeds_total_net"])
|
|
1959
|
-
}), e.object({ discount:
|
|
1960
|
-
var Zn = e.object({ discount:
|
|
1987
|
+
}), e.object({ discount: I.nullable() });
|
|
1988
|
+
var Zn = e.object({ discount: I });
|
|
1961
1989
|
e.object({
|
|
1962
1990
|
detail: e.string().optional(),
|
|
1963
1991
|
status: e.enum(["409"]),
|
|
@@ -1978,8 +2006,8 @@ e.object({
|
|
|
1978
2006
|
code: e.enum(["invoice_already_finalized"])
|
|
1979
2007
|
});
|
|
1980
2008
|
var $n = e.object({
|
|
1981
|
-
approvalStatus:
|
|
1982
|
-
level:
|
|
2009
|
+
approvalStatus: Rn.nullable(),
|
|
2010
|
+
level: R.nullable()
|
|
1983
2011
|
});
|
|
1984
2012
|
e.object({
|
|
1985
2013
|
detail: e.string().optional(),
|
|
@@ -2004,7 +2032,23 @@ e.object({
|
|
|
2004
2032
|
status: e.enum(["409"]),
|
|
2005
2033
|
code: e.enum(["invoice_issued_on_in_closed_period"]),
|
|
2006
2034
|
meta: tr
|
|
2007
|
-
})
|
|
2035
|
+
});
|
|
2036
|
+
var nr = e.enum([
|
|
2037
|
+
"missing_company_identity",
|
|
2038
|
+
"missing_purchase_order_reference",
|
|
2039
|
+
"invalid_invoice_lines",
|
|
2040
|
+
"zero_vat_requires_explicit_tax_category",
|
|
2041
|
+
"missing_payment_account",
|
|
2042
|
+
"incomplete_address"
|
|
2043
|
+
]), rr = e.object({ reasons: e.array(nr) });
|
|
2044
|
+
e.object({
|
|
2045
|
+
detail: e.string().optional(),
|
|
2046
|
+
status: e.enum(["400"]),
|
|
2047
|
+
code: e.enum(["invoice_not_peppol_compliant"]),
|
|
2048
|
+
meta: rr
|
|
2049
|
+
});
|
|
2050
|
+
var ir = e.object({ sendOnFinalization: e.boolean().optional() });
|
|
2051
|
+
e.object({
|
|
2008
2052
|
detail: e.string().optional(),
|
|
2009
2053
|
status: e.enum(["409"]),
|
|
2010
2054
|
code: e.enum(["credit_note_from_draft_invoice"])
|
|
@@ -2017,24 +2061,25 @@ e.object({
|
|
|
2017
2061
|
status: e.enum(["409"]),
|
|
2018
2062
|
code: e.enum(["invoice_fully_credited"])
|
|
2019
2063
|
});
|
|
2020
|
-
var
|
|
2064
|
+
var ar = e.object({ uuid: e.uuid() });
|
|
2021
2065
|
e.object({
|
|
2022
2066
|
detail: e.string().optional(),
|
|
2023
2067
|
status: e.enum(["409"]),
|
|
2024
2068
|
code: e.enum(["invoice_not_credit_note"])
|
|
2025
2069
|
});
|
|
2026
|
-
var
|
|
2070
|
+
var or = e.object({
|
|
2027
2071
|
name: e.string(),
|
|
2028
2072
|
description: e.string().nullable(),
|
|
2029
2073
|
externalId: e.string().nullish(),
|
|
2030
2074
|
position: e.int(),
|
|
2031
2075
|
quantity: e.number().lte(1e4),
|
|
2032
2076
|
unitPrice: y,
|
|
2033
|
-
vatRate:
|
|
2034
|
-
discount:
|
|
2035
|
-
unit:
|
|
2077
|
+
vatRate: F,
|
|
2078
|
+
discount: I.nullable(),
|
|
2079
|
+
unit: ln,
|
|
2036
2080
|
isDiscount: e.boolean(),
|
|
2037
2081
|
customFields: e.array(e.union([
|
|
2082
|
+
C,
|
|
2038
2083
|
w,
|
|
2039
2084
|
T,
|
|
2040
2085
|
E,
|
|
@@ -2043,16 +2088,16 @@ var rr = e.object({
|
|
|
2043
2088
|
k,
|
|
2044
2089
|
A,
|
|
2045
2090
|
j,
|
|
2046
|
-
M
|
|
2047
|
-
N
|
|
2091
|
+
M
|
|
2048
2092
|
])).optional()
|
|
2049
|
-
}),
|
|
2093
|
+
}), sr = e.object({
|
|
2050
2094
|
name: e.string(),
|
|
2051
2095
|
description: e.string().nullable(),
|
|
2052
2096
|
externalId: e.string().nullish(),
|
|
2053
2097
|
position: e.int(),
|
|
2054
|
-
lines: e.array(
|
|
2098
|
+
lines: e.array(or),
|
|
2055
2099
|
customFields: e.array(e.union([
|
|
2100
|
+
C,
|
|
2056
2101
|
w,
|
|
2057
2102
|
T,
|
|
2058
2103
|
E,
|
|
@@ -2061,22 +2106,22 @@ var rr = e.object({
|
|
|
2061
2106
|
k,
|
|
2062
2107
|
A,
|
|
2063
2108
|
j,
|
|
2064
|
-
M
|
|
2065
|
-
N
|
|
2109
|
+
M
|
|
2066
2110
|
])).optional(),
|
|
2067
|
-
groups: e.array(e.lazy(() =>
|
|
2068
|
-
}),
|
|
2069
|
-
groups: e.array(
|
|
2070
|
-
ungroupedLines: e.array(
|
|
2071
|
-
}),
|
|
2111
|
+
groups: e.array(e.lazy(() => sr)).optional()
|
|
2112
|
+
}), cr = e.object({
|
|
2113
|
+
groups: e.array(sr),
|
|
2114
|
+
ungroupedLines: e.array(or)
|
|
2115
|
+
}), lr = e.object({ billingDocument: Vt.nullish() }), ur = e.object({
|
|
2072
2116
|
issuedOn: e.iso.date(),
|
|
2073
2117
|
poNumber: e.string().nullable(),
|
|
2074
2118
|
subject: e.string().nullable(),
|
|
2075
2119
|
recipientUuid: e.uuid().nullish(),
|
|
2076
|
-
contactOverride:
|
|
2120
|
+
contactOverride: lr.optional(),
|
|
2077
2121
|
externalRemarks: e.string().nullable(),
|
|
2078
2122
|
preparedByUuid: e.uuid().optional(),
|
|
2079
2123
|
customFields: e.array(e.union([
|
|
2124
|
+
C,
|
|
2080
2125
|
w,
|
|
2081
2126
|
T,
|
|
2082
2127
|
E,
|
|
@@ -2085,9 +2130,9 @@ var rr = e.object({
|
|
|
2085
2130
|
k,
|
|
2086
2131
|
A,
|
|
2087
2132
|
j,
|
|
2088
|
-
M
|
|
2089
|
-
|
|
2090
|
-
|
|
2133
|
+
M
|
|
2134
|
+
])).optional(),
|
|
2135
|
+
reference: e.string().nullish()
|
|
2091
2136
|
});
|
|
2092
2137
|
e.object({
|
|
2093
2138
|
detail: e.string().optional(),
|
|
@@ -2110,7 +2155,7 @@ e.object({
|
|
|
2110
2155
|
status: e.enum(["409"]),
|
|
2111
2156
|
code: e.enum(["delete_invoice_with_approval"])
|
|
2112
2157
|
});
|
|
2113
|
-
var
|
|
2158
|
+
var dr = e.object({ uuid: e.uuid() }), fr = e.object({ uuid: e.uuid() });
|
|
2114
2159
|
e.object({
|
|
2115
2160
|
detail: e.string().optional(),
|
|
2116
2161
|
status: e.enum(["409"]),
|
|
@@ -2124,16 +2169,16 @@ e.object({
|
|
|
2124
2169
|
status: e.enum(["409"]),
|
|
2125
2170
|
code: e.enum(["invoice_status_not_eligible_for_paid"])
|
|
2126
2171
|
});
|
|
2127
|
-
var
|
|
2172
|
+
var pr = e.object({
|
|
2128
2173
|
statuses: e.array(_).optional(),
|
|
2129
|
-
lifecycleStatuses: e.array(
|
|
2174
|
+
lifecycleStatuses: e.array(N).optional(),
|
|
2130
2175
|
customerUuids: e.array(e.uuid()).optional(),
|
|
2131
2176
|
dueOnRange: J.optional(),
|
|
2132
2177
|
issuedOnRange: J.optional(),
|
|
2133
2178
|
invoiceUuids: Y.optional(),
|
|
2134
2179
|
isDisputed: e.boolean().optional(),
|
|
2135
2180
|
isOverdue: e.boolean().optional(),
|
|
2136
|
-
settlementStatuses: e.array(
|
|
2181
|
+
settlementStatuses: e.array(L).optional(),
|
|
2137
2182
|
customerExternalIds: e.array(e.string()).optional(),
|
|
2138
2183
|
isOutstanding: e.boolean().optional(),
|
|
2139
2184
|
customFields: e.array(e.union([
|
|
@@ -2155,33 +2200,33 @@ var ur = e.object({
|
|
|
2155
2200
|
total: e.number(),
|
|
2156
2201
|
processed: e.number(),
|
|
2157
2202
|
skipped: e.number()
|
|
2158
|
-
}),
|
|
2203
|
+
}), mr = e.object({ pointer: e.string() }), hr = e.object({
|
|
2159
2204
|
code: e.string(),
|
|
2160
2205
|
detail: e.string().optional(),
|
|
2161
2206
|
title: e.string().optional(),
|
|
2162
2207
|
id: e.string().optional(),
|
|
2163
2208
|
status: e.string().optional(),
|
|
2164
|
-
source:
|
|
2209
|
+
source: mr.optional(),
|
|
2165
2210
|
meta: e.record(e.string(), e.unknown()).optional()
|
|
2166
|
-
}),
|
|
2211
|
+
}), gr = e.object({
|
|
2167
2212
|
status: e.number(),
|
|
2168
|
-
errors: e.array(
|
|
2213
|
+
errors: e.array(hr)
|
|
2169
2214
|
}), Q = e.object({
|
|
2170
2215
|
uuid: e.string(),
|
|
2171
|
-
errors: e.array(
|
|
2172
|
-
}),
|
|
2216
|
+
errors: e.array(gr)
|
|
2217
|
+
}), _r = e.object({
|
|
2173
2218
|
meta: Z,
|
|
2174
2219
|
skipped: e.array(Q)
|
|
2175
|
-
}),
|
|
2220
|
+
}), vr = e.object({
|
|
2176
2221
|
statuses: e.array(_).optional(),
|
|
2177
|
-
lifecycleStatuses: e.array(
|
|
2222
|
+
lifecycleStatuses: e.array(N).optional(),
|
|
2178
2223
|
customerUuids: e.array(e.uuid()).optional(),
|
|
2179
2224
|
dueOnRange: J.optional(),
|
|
2180
2225
|
issuedOnRange: J.optional(),
|
|
2181
2226
|
invoiceUuids: Y.optional(),
|
|
2182
2227
|
isDisputed: e.boolean().optional(),
|
|
2183
2228
|
isOverdue: e.boolean().optional(),
|
|
2184
|
-
settlementStatuses: e.array(
|
|
2229
|
+
settlementStatuses: e.array(L).optional(),
|
|
2185
2230
|
customerExternalIds: e.array(e.string()).optional(),
|
|
2186
2231
|
isOutstanding: e.boolean().optional(),
|
|
2187
2232
|
customFields: e.array(e.union([
|
|
@@ -2199,7 +2244,7 @@ var ur = e.object({
|
|
|
2199
2244
|
approvalStatuses: e.array(X).optional(),
|
|
2200
2245
|
isApprovalCancelled: e.boolean().optional(),
|
|
2201
2246
|
isExternallyCreated: e.boolean().optional()
|
|
2202
|
-
}),
|
|
2247
|
+
}), yr = e.object({
|
|
2203
2248
|
meta: Z,
|
|
2204
2249
|
skipped: e.array(Q)
|
|
2205
2250
|
});
|
|
@@ -2208,16 +2253,16 @@ e.object({
|
|
|
2208
2253
|
status: e.enum(["409"]),
|
|
2209
2254
|
code: e.enum(["invoice_not_disputed"])
|
|
2210
2255
|
});
|
|
2211
|
-
var
|
|
2256
|
+
var br = e.object({
|
|
2212
2257
|
statuses: e.array(_).optional(),
|
|
2213
|
-
lifecycleStatuses: e.array(
|
|
2258
|
+
lifecycleStatuses: e.array(N).optional(),
|
|
2214
2259
|
customerUuids: e.array(e.uuid()).optional(),
|
|
2215
2260
|
dueOnRange: J.optional(),
|
|
2216
2261
|
issuedOnRange: J.optional(),
|
|
2217
2262
|
invoiceUuids: Y.optional(),
|
|
2218
2263
|
isDisputed: e.boolean().optional(),
|
|
2219
2264
|
isOverdue: e.boolean().optional(),
|
|
2220
|
-
settlementStatuses: e.array(
|
|
2265
|
+
settlementStatuses: e.array(L).optional(),
|
|
2221
2266
|
customerExternalIds: e.array(e.string()).optional(),
|
|
2222
2267
|
isOutstanding: e.boolean().optional(),
|
|
2223
2268
|
customFields: e.array(e.union([
|
|
@@ -2235,19 +2280,19 @@ var _r = e.object({
|
|
|
2235
2280
|
approvalStatuses: e.array(X).optional(),
|
|
2236
2281
|
isApprovalCancelled: e.boolean().optional(),
|
|
2237
2282
|
isExternallyCreated: e.boolean().optional()
|
|
2238
|
-
}),
|
|
2283
|
+
}), xr = e.object({
|
|
2239
2284
|
meta: Z,
|
|
2240
2285
|
skipped: e.array(Q)
|
|
2241
|
-
}),
|
|
2286
|
+
}), Sr = e.object({ sendOnFinalization: e.boolean().optional() }), Cr = e.object({
|
|
2242
2287
|
statuses: e.array(_).optional(),
|
|
2243
|
-
lifecycleStatuses: e.array(
|
|
2288
|
+
lifecycleStatuses: e.array(N).optional(),
|
|
2244
2289
|
customerUuids: e.array(e.uuid()).optional(),
|
|
2245
2290
|
dueOnRange: J.optional(),
|
|
2246
2291
|
issuedOnRange: J.optional(),
|
|
2247
2292
|
invoiceUuids: Y.optional(),
|
|
2248
2293
|
isDisputed: e.boolean().optional(),
|
|
2249
2294
|
isOverdue: e.boolean().optional(),
|
|
2250
|
-
settlementStatuses: e.array(
|
|
2295
|
+
settlementStatuses: e.array(L).optional(),
|
|
2251
2296
|
customerExternalIds: e.array(e.string()).optional(),
|
|
2252
2297
|
isOutstanding: e.boolean().optional(),
|
|
2253
2298
|
customFields: e.array(e.union([
|
|
@@ -2265,19 +2310,19 @@ var _r = e.object({
|
|
|
2265
2310
|
approvalStatuses: e.array(X).optional(),
|
|
2266
2311
|
isApprovalCancelled: e.boolean().optional(),
|
|
2267
2312
|
isExternallyCreated: e.boolean().optional()
|
|
2268
|
-
}),
|
|
2313
|
+
}), wr = e.object({
|
|
2269
2314
|
meta: Z,
|
|
2270
2315
|
skipped: e.array(Q)
|
|
2271
|
-
}),
|
|
2316
|
+
}), Tr = e.object({
|
|
2272
2317
|
statuses: e.array(_).optional(),
|
|
2273
|
-
lifecycleStatuses: e.array(
|
|
2318
|
+
lifecycleStatuses: e.array(N).optional(),
|
|
2274
2319
|
customerUuids: e.array(e.uuid()).optional(),
|
|
2275
2320
|
dueOnRange: J.optional(),
|
|
2276
2321
|
issuedOnRange: J.optional(),
|
|
2277
2322
|
invoiceUuids: Y.optional(),
|
|
2278
2323
|
isDisputed: e.boolean().optional(),
|
|
2279
2324
|
isOverdue: e.boolean().optional(),
|
|
2280
|
-
settlementStatuses: e.array(
|
|
2325
|
+
settlementStatuses: e.array(L).optional(),
|
|
2281
2326
|
customerExternalIds: e.array(e.string()).optional(),
|
|
2282
2327
|
isOutstanding: e.boolean().optional(),
|
|
2283
2328
|
customFields: e.array(e.union([
|
|
@@ -2295,19 +2340,19 @@ var _r = e.object({
|
|
|
2295
2340
|
approvalStatuses: e.array(X).optional(),
|
|
2296
2341
|
isApprovalCancelled: e.boolean().optional(),
|
|
2297
2342
|
isExternallyCreated: e.boolean().optional()
|
|
2298
|
-
}),
|
|
2343
|
+
}), Er = e.object({
|
|
2299
2344
|
meta: Z,
|
|
2300
2345
|
skipped: e.array(Q)
|
|
2301
|
-
}),
|
|
2346
|
+
}), Dr = e.object({
|
|
2302
2347
|
statuses: e.array(_).optional(),
|
|
2303
|
-
lifecycleStatuses: e.array(
|
|
2348
|
+
lifecycleStatuses: e.array(N).optional(),
|
|
2304
2349
|
customerUuids: e.array(e.uuid()).optional(),
|
|
2305
2350
|
dueOnRange: J.optional(),
|
|
2306
2351
|
issuedOnRange: J.optional(),
|
|
2307
2352
|
invoiceUuids: Y.optional(),
|
|
2308
2353
|
isDisputed: e.boolean().optional(),
|
|
2309
2354
|
isOverdue: e.boolean().optional(),
|
|
2310
|
-
settlementStatuses: e.array(
|
|
2355
|
+
settlementStatuses: e.array(L).optional(),
|
|
2311
2356
|
customerExternalIds: e.array(e.string()).optional(),
|
|
2312
2357
|
isOutstanding: e.boolean().optional(),
|
|
2313
2358
|
customFields: e.array(e.union([
|
|
@@ -2325,7 +2370,7 @@ var _r = e.object({
|
|
|
2325
2370
|
approvalStatuses: e.array(X).optional(),
|
|
2326
2371
|
isApprovalCancelled: e.boolean().optional(),
|
|
2327
2372
|
isExternallyCreated: e.boolean().optional()
|
|
2328
|
-
}),
|
|
2373
|
+
}), Or = e.object({
|
|
2329
2374
|
meta: Z,
|
|
2330
2375
|
skipped: e.array(Q)
|
|
2331
2376
|
});
|
|
@@ -2334,7 +2379,7 @@ e.object({
|
|
|
2334
2379
|
status: e.enum(["404"]),
|
|
2335
2380
|
code: e.enum(["pro_forma_not_found"])
|
|
2336
2381
|
});
|
|
2337
|
-
var
|
|
2382
|
+
var kr = e.object({
|
|
2338
2383
|
entityUuids: e.array(e.uuid()).optional(),
|
|
2339
2384
|
entityTypes: e.array(e.enum([
|
|
2340
2385
|
"customer",
|
|
@@ -2352,13 +2397,13 @@ var Tr = e.object({
|
|
|
2352
2397
|
"approval",
|
|
2353
2398
|
"attachment"
|
|
2354
2399
|
])).optional()
|
|
2355
|
-
}),
|
|
2400
|
+
}), Ar = e.object({
|
|
2356
2401
|
createdAt: e.string(),
|
|
2357
2402
|
uuid: e.uuid()
|
|
2358
|
-
}),
|
|
2403
|
+
}), jr = e.object({
|
|
2359
2404
|
limit: e.number().gte(0).lte(100).optional(),
|
|
2360
|
-
key:
|
|
2361
|
-
}),
|
|
2405
|
+
key: Ar.nullish()
|
|
2406
|
+
}), Mr = e.enum([
|
|
2362
2407
|
"invoice-created",
|
|
2363
2408
|
"invoice-updated",
|
|
2364
2409
|
"invoice-finalized",
|
|
@@ -2382,40 +2427,40 @@ var Tr = e.object({
|
|
|
2382
2427
|
"credit-note-created",
|
|
2383
2428
|
"credit-note-updated",
|
|
2384
2429
|
"customer-updated"
|
|
2385
|
-
]),
|
|
2430
|
+
]), Nr = e.enum([
|
|
2386
2431
|
"create",
|
|
2387
2432
|
"update",
|
|
2388
2433
|
"delete"
|
|
2389
|
-
]),
|
|
2434
|
+
]), Pr = e.enum([
|
|
2390
2435
|
"user",
|
|
2391
2436
|
"service",
|
|
2392
2437
|
"system"
|
|
2393
|
-
]),
|
|
2438
|
+
]), Fr = e.object({
|
|
2394
2439
|
uuid: e.uuid(),
|
|
2395
2440
|
firstName: e.string().nullable(),
|
|
2396
2441
|
lastName: e.string().nullable(),
|
|
2397
2442
|
email: e.string().nullable()
|
|
2398
|
-
}),
|
|
2443
|
+
}), Ir = e.enum([
|
|
2399
2444
|
"actor",
|
|
2400
2445
|
"customer",
|
|
2401
2446
|
"invoice",
|
|
2402
2447
|
"credit_note",
|
|
2403
2448
|
"approval",
|
|
2404
2449
|
"attachment"
|
|
2405
|
-
]),
|
|
2450
|
+
]), Lr = e.enum([
|
|
2406
2451
|
"customer",
|
|
2407
2452
|
"invoice",
|
|
2408
2453
|
"credit_note",
|
|
2409
2454
|
"approval",
|
|
2410
2455
|
"api_key",
|
|
2411
2456
|
"file"
|
|
2412
|
-
]),
|
|
2413
|
-
role:
|
|
2414
|
-
type:
|
|
2457
|
+
]), Rr = e.object({
|
|
2458
|
+
role: Ir,
|
|
2459
|
+
type: Lr,
|
|
2415
2460
|
uuid: e.uuid(),
|
|
2416
2461
|
label: e.string().nullable()
|
|
2417
|
-
}),
|
|
2418
|
-
entityRole:
|
|
2462
|
+
}), zr = e.object({
|
|
2463
|
+
entityRole: Ir,
|
|
2419
2464
|
field: e.string(),
|
|
2420
2465
|
from: e.union([
|
|
2421
2466
|
e.string(),
|
|
@@ -2427,17 +2472,17 @@ var Tr = e.object({
|
|
|
2427
2472
|
e.number(),
|
|
2428
2473
|
e.boolean()
|
|
2429
2474
|
]).nullable()
|
|
2430
|
-
}),
|
|
2475
|
+
}), Br = e.object({
|
|
2431
2476
|
createdAt: e.iso.datetime(),
|
|
2432
|
-
action:
|
|
2433
|
-
changeType:
|
|
2434
|
-
actorType:
|
|
2435
|
-
actor:
|
|
2436
|
-
entities: e.array(
|
|
2437
|
-
changes: e.array(
|
|
2438
|
-
}),
|
|
2439
|
-
logs: e.array(
|
|
2440
|
-
nextKey:
|
|
2477
|
+
action: Mr,
|
|
2478
|
+
changeType: Nr,
|
|
2479
|
+
actorType: Pr,
|
|
2480
|
+
actor: Fr.nullable(),
|
|
2481
|
+
entities: e.array(Rr),
|
|
2482
|
+
changes: e.array(zr).nullable()
|
|
2483
|
+
}), Vr = e.object({
|
|
2484
|
+
logs: e.array(Br),
|
|
2485
|
+
nextKey: Ar.nullable()
|
|
2441
2486
|
});
|
|
2442
2487
|
e.object({
|
|
2443
2488
|
detail: e.string().optional(),
|
|
@@ -2452,14 +2497,14 @@ e.object({
|
|
|
2452
2497
|
status: e.enum(["409"]),
|
|
2453
2498
|
code: e.enum(["payment_external_id_already_exists"])
|
|
2454
2499
|
});
|
|
2455
|
-
var
|
|
2500
|
+
var Hr = e.enum(["standard", "advance"]), Ur = e.object({
|
|
2456
2501
|
amount: y,
|
|
2457
2502
|
date: e.iso.date(),
|
|
2458
2503
|
paymentReference: e.string().nullish(),
|
|
2459
2504
|
remarks: e.string().nullish(),
|
|
2460
|
-
type:
|
|
2505
|
+
type: Hr.optional(),
|
|
2461
2506
|
externalId: e.string().nullish()
|
|
2462
|
-
}),
|
|
2507
|
+
}), Wr = e.object({ uuid: e.uuid() });
|
|
2463
2508
|
e.object({
|
|
2464
2509
|
detail: e.string().optional(),
|
|
2465
2510
|
status: e.enum(["404"]),
|
|
@@ -2473,35 +2518,35 @@ e.object({
|
|
|
2473
2518
|
status: e.enum(["409"]),
|
|
2474
2519
|
code: e.enum(["advance_payment_locked"])
|
|
2475
2520
|
});
|
|
2476
|
-
var
|
|
2521
|
+
var Gr = e.enum(["manual", "exact"]), Kr = e.object({
|
|
2477
2522
|
uuid: e.uuid(),
|
|
2478
2523
|
amount: y,
|
|
2479
2524
|
date: e.iso.date(),
|
|
2480
2525
|
createdAt: e.iso.datetime(),
|
|
2481
2526
|
paymentReference: e.string().nullable(),
|
|
2482
2527
|
remarks: e.string().nullable(),
|
|
2483
|
-
source:
|
|
2484
|
-
type:
|
|
2485
|
-
}),
|
|
2528
|
+
source: Gr,
|
|
2529
|
+
type: Hr
|
|
2530
|
+
}), qr = e.object({ items: e.array(Kr) }), Jr = e.union([
|
|
2486
2531
|
e.literal(1),
|
|
2487
2532
|
e.literal(2),
|
|
2488
2533
|
e.literal(3)
|
|
2489
|
-
]),
|
|
2490
|
-
subject:
|
|
2491
|
-
body:
|
|
2492
|
-
}),
|
|
2493
|
-
type:
|
|
2534
|
+
]), Yr = e.object({
|
|
2535
|
+
subject: P,
|
|
2536
|
+
body: P
|
|
2537
|
+
}), Xr = e.enum(["percentage", "amount"]), Zr = e.object({
|
|
2538
|
+
type: Xr,
|
|
2494
2539
|
amount: y.nullable(),
|
|
2495
2540
|
percentage: e.number().nullable()
|
|
2496
|
-
}),
|
|
2541
|
+
}), Qr = e.object({
|
|
2497
2542
|
uuid: e.uuid(),
|
|
2498
2543
|
issuerUuid: e.uuid(),
|
|
2499
|
-
sequence:
|
|
2500
|
-
schedule:
|
|
2544
|
+
sequence: Jr,
|
|
2545
|
+
schedule: In,
|
|
2501
2546
|
offsetDays: e.number(),
|
|
2502
|
-
template:
|
|
2503
|
-
fee:
|
|
2504
|
-
}),
|
|
2547
|
+
template: Yr,
|
|
2548
|
+
fee: Zr
|
|
2549
|
+
}), $r = e.object({ items: e.array(Qr) });
|
|
2505
2550
|
e.object({
|
|
2506
2551
|
detail: e.string().optional(),
|
|
2507
2552
|
status: e.enum(["400"]),
|
|
@@ -2515,36 +2560,36 @@ e.object({
|
|
|
2515
2560
|
status: e.enum(["400"]),
|
|
2516
2561
|
code: e.enum(["additional_reminder_config"])
|
|
2517
2562
|
});
|
|
2518
|
-
var
|
|
2519
|
-
subject:
|
|
2520
|
-
body:
|
|
2521
|
-
}),
|
|
2563
|
+
var ei = e.object({
|
|
2564
|
+
subject: P,
|
|
2565
|
+
body: P
|
|
2566
|
+
}), ti = e.object({
|
|
2522
2567
|
sequence: e.number(),
|
|
2523
2568
|
offsetDays: e.int().gte(1),
|
|
2524
|
-
schedule:
|
|
2525
|
-
template:
|
|
2526
|
-
fee:
|
|
2527
|
-
}),
|
|
2569
|
+
schedule: In,
|
|
2570
|
+
template: ei,
|
|
2571
|
+
fee: Zr
|
|
2572
|
+
}), ni = e.object({ reminders: e.array(ti) }), ri = e.enum([
|
|
2528
2573
|
"invoice",
|
|
2529
2574
|
"invoice-line",
|
|
2530
2575
|
"invoice-line-group"
|
|
2531
|
-
]),
|
|
2576
|
+
]), ii = e.object({ entityTypes: e.array(ri).optional() });
|
|
2532
2577
|
e.object({
|
|
2533
2578
|
detail: e.string().optional(),
|
|
2534
2579
|
status: e.enum(["404"]),
|
|
2535
2580
|
code: e.enum(["dunning_case_not_found"])
|
|
2536
2581
|
});
|
|
2537
|
-
var
|
|
2582
|
+
var ai = e.object({
|
|
2538
2583
|
uuid: e.uuid(),
|
|
2539
2584
|
type: g,
|
|
2540
2585
|
name: e.string(),
|
|
2541
2586
|
vatNumber: e.string().nullable(),
|
|
2542
2587
|
email: e.string().nullable()
|
|
2543
|
-
}),
|
|
2588
|
+
}), oi = e.object({
|
|
2544
2589
|
uuid: e.uuid(),
|
|
2545
2590
|
date: e.iso.date(),
|
|
2546
2591
|
amount: y
|
|
2547
|
-
}),
|
|
2592
|
+
}), si = e.object({
|
|
2548
2593
|
uuid: e.uuid(),
|
|
2549
2594
|
sequence: e.string(),
|
|
2550
2595
|
grossAmount: y,
|
|
@@ -2553,7 +2598,7 @@ var ti = e.object({
|
|
|
2553
2598
|
e.enum(["infinity"]),
|
|
2554
2599
|
e.enum(["-infinity"])
|
|
2555
2600
|
])
|
|
2556
|
-
}),
|
|
2601
|
+
}), ci = e.object({
|
|
2557
2602
|
uuid: e.uuid(),
|
|
2558
2603
|
subject: e.string().nullable(),
|
|
2559
2604
|
sequence: e.string(),
|
|
@@ -2564,10 +2609,10 @@ var ti = e.object({
|
|
|
2564
2609
|
totalCreditedAmount: y,
|
|
2565
2610
|
paidAmount: y,
|
|
2566
2611
|
isDisputed: e.boolean(),
|
|
2567
|
-
settlementStatus:
|
|
2568
|
-
payments: e.array(
|
|
2569
|
-
creditNotes: e.array(
|
|
2570
|
-
}),
|
|
2612
|
+
settlementStatus: L,
|
|
2613
|
+
payments: e.array(oi),
|
|
2614
|
+
creditNotes: e.array(si)
|
|
2615
|
+
}), li = e.object({
|
|
2571
2616
|
uuid: e.uuid(),
|
|
2572
2617
|
sentAt: e.union([
|
|
2573
2618
|
e.iso.datetime(),
|
|
@@ -2575,7 +2620,7 @@ var ti = e.object({
|
|
|
2575
2620
|
e.enum(["-infinity"])
|
|
2576
2621
|
]).nullable(),
|
|
2577
2622
|
hasErrors: e.boolean()
|
|
2578
|
-
}),
|
|
2623
|
+
}), ui = e.enum(["missing_email"]), di = e.object({
|
|
2579
2624
|
uuid: e.uuid(),
|
|
2580
2625
|
createdAt: e.iso.datetime(),
|
|
2581
2626
|
updatedAt: e.iso.datetime(),
|
|
@@ -2583,8 +2628,8 @@ var ti = e.object({
|
|
|
2583
2628
|
isClosed: e.boolean(),
|
|
2584
2629
|
nextReminderOn: e.iso.date().nullable(),
|
|
2585
2630
|
level: e.number().nullable(),
|
|
2586
|
-
customer:
|
|
2587
|
-
invoices: e.array(
|
|
2631
|
+
customer: ai,
|
|
2632
|
+
invoices: e.array(ci),
|
|
2588
2633
|
outstandingBalance: y,
|
|
2589
2634
|
totalPaid: y,
|
|
2590
2635
|
totalInvoiced: y,
|
|
@@ -2597,17 +2642,17 @@ var ti = e.object({
|
|
|
2597
2642
|
]).nullable(),
|
|
2598
2643
|
canSendReminder: e.boolean(),
|
|
2599
2644
|
canRetryReminder: e.boolean(),
|
|
2600
|
-
latestCreatedReminder:
|
|
2601
|
-
blockedReason:
|
|
2602
|
-
}),
|
|
2645
|
+
latestCreatedReminder: li.nullable(),
|
|
2646
|
+
blockedReason: ui.nullable()
|
|
2647
|
+
}), fi = e.object({
|
|
2603
2648
|
isOpen: e.boolean().optional(),
|
|
2604
2649
|
customerUuid: e.uuid().optional(),
|
|
2605
2650
|
level: e.number().optional(),
|
|
2606
2651
|
dunningCaseUuids: Y.optional()
|
|
2607
|
-
}),
|
|
2652
|
+
}), pi = e.object({
|
|
2608
2653
|
uuid: e.uuid(),
|
|
2609
2654
|
name: e.string()
|
|
2610
|
-
}),
|
|
2655
|
+
}), mi = e.object({
|
|
2611
2656
|
uuid: e.uuid(),
|
|
2612
2657
|
sentAt: e.union([
|
|
2613
2658
|
e.iso.datetime(),
|
|
@@ -2615,9 +2660,9 @@ var ti = e.object({
|
|
|
2615
2660
|
e.enum(["-infinity"])
|
|
2616
2661
|
]).nullable(),
|
|
2617
2662
|
hasErrors: e.boolean()
|
|
2618
|
-
}),
|
|
2663
|
+
}), hi = e.object({
|
|
2619
2664
|
uuid: e.uuid(),
|
|
2620
|
-
customer:
|
|
2665
|
+
customer: pi,
|
|
2621
2666
|
level: e.number().nullable(),
|
|
2622
2667
|
daysOverdue: e.number(),
|
|
2623
2668
|
outstandingBalance: y,
|
|
@@ -2633,10 +2678,10 @@ var ti = e.object({
|
|
|
2633
2678
|
]).nullable(),
|
|
2634
2679
|
canSendReminder: e.boolean(),
|
|
2635
2680
|
canRetryReminder: e.boolean(),
|
|
2636
|
-
latestCreatedReminder:
|
|
2637
|
-
blockedReason:
|
|
2638
|
-
}),
|
|
2639
|
-
items: e.array(
|
|
2681
|
+
latestCreatedReminder: mi.nullable(),
|
|
2682
|
+
blockedReason: ui.nullable()
|
|
2683
|
+
}), gi = e.object({
|
|
2684
|
+
items: e.array(hi),
|
|
2640
2685
|
meta: h
|
|
2641
2686
|
});
|
|
2642
2687
|
e.object({
|
|
@@ -2668,23 +2713,23 @@ e.object({
|
|
|
2668
2713
|
status: e.enum(["409"]),
|
|
2669
2714
|
code: e.enum(["dunning_case_reminder_not_retryable"])
|
|
2670
2715
|
});
|
|
2671
|
-
var
|
|
2716
|
+
var _i = e.object({
|
|
2672
2717
|
isOpen: e.boolean().optional(),
|
|
2673
2718
|
customerUuid: e.uuid().optional(),
|
|
2674
2719
|
level: e.number().optional(),
|
|
2675
2720
|
dunningCaseUuids: Y.optional()
|
|
2676
|
-
}),
|
|
2721
|
+
}), vi = e.object({
|
|
2677
2722
|
meta: Z,
|
|
2678
2723
|
skipped: e.array(Q)
|
|
2679
|
-
}),
|
|
2724
|
+
}), yi = e.object({
|
|
2680
2725
|
isOpen: e.boolean().optional(),
|
|
2681
2726
|
customerUuid: e.uuid().optional(),
|
|
2682
2727
|
level: e.number().optional(),
|
|
2683
2728
|
dunningCaseUuids: Y.optional()
|
|
2684
|
-
}),
|
|
2729
|
+
}), bi = e.object({
|
|
2685
2730
|
meta: Z,
|
|
2686
2731
|
skipped: e.array(Q)
|
|
2687
|
-
}),
|
|
2732
|
+
}), xi = e.object({
|
|
2688
2733
|
name: e.string().nullable(),
|
|
2689
2734
|
email: e.email().nullable(),
|
|
2690
2735
|
phoneNumber: e.string().nullable(),
|
|
@@ -2694,7 +2739,7 @@ var pi = e.object({
|
|
|
2694
2739
|
bankAccountNumber: e.string().nullable(),
|
|
2695
2740
|
alternativeBankAccountNumber: e.string().nullable(),
|
|
2696
2741
|
currency: v
|
|
2697
|
-
}),
|
|
2742
|
+
}), Si = e.object({
|
|
2698
2743
|
name: e.string(),
|
|
2699
2744
|
address: x.nullable(),
|
|
2700
2745
|
email: e.email().nullable(),
|
|
@@ -2704,10 +2749,10 @@ var pi = e.object({
|
|
|
2704
2749
|
type: g,
|
|
2705
2750
|
locale: Ie,
|
|
2706
2751
|
currency: v
|
|
2707
|
-
}),
|
|
2752
|
+
}), Ci = e.object({
|
|
2708
2753
|
name: e.string().nullable(),
|
|
2709
2754
|
email: e.email()
|
|
2710
|
-
}),
|
|
2755
|
+
}), wi = e.object({
|
|
2711
2756
|
sequence: e.string(),
|
|
2712
2757
|
issuedOn: e.iso.date(),
|
|
2713
2758
|
dueOn: e.iso.date(),
|
|
@@ -2716,21 +2761,21 @@ var pi = e.object({
|
|
|
2716
2761
|
daysOverdue: e.number(),
|
|
2717
2762
|
fee: y,
|
|
2718
2763
|
isNew: e.boolean()
|
|
2719
|
-
}),
|
|
2764
|
+
}), Ti = e.object({
|
|
2720
2765
|
sequence: e.string(),
|
|
2721
2766
|
issuedOn: e.iso.date(),
|
|
2722
2767
|
dueOn: e.iso.date(),
|
|
2723
2768
|
outstandingBalance: y,
|
|
2724
2769
|
daysOverdue: e.number()
|
|
2725
|
-
}),
|
|
2770
|
+
}), Ei = e.object({
|
|
2726
2771
|
createdAt: e.iso.datetime(),
|
|
2727
2772
|
sentAt: e.iso.datetime().nullable(),
|
|
2728
2773
|
level: e.number(),
|
|
2729
|
-
issuer:
|
|
2730
|
-
customer:
|
|
2731
|
-
recipient:
|
|
2732
|
-
invoices: e.array(
|
|
2733
|
-
outstandingInvoices: e.array(
|
|
2774
|
+
issuer: xi,
|
|
2775
|
+
customer: Si,
|
|
2776
|
+
recipient: Ci,
|
|
2777
|
+
invoices: e.array(wi),
|
|
2778
|
+
outstandingInvoices: e.array(Ti),
|
|
2734
2779
|
totalFee: y
|
|
2735
2780
|
});
|
|
2736
2781
|
e.object({
|
|
@@ -2754,16 +2799,16 @@ e.object({
|
|
|
2754
2799
|
status: e.enum(["409"]),
|
|
2755
2800
|
code: e.enum(["customer_has_no_approval_email"])
|
|
2756
2801
|
});
|
|
2757
|
-
var
|
|
2802
|
+
var Di = e.object({
|
|
2758
2803
|
statuses: e.array(_).optional(),
|
|
2759
|
-
lifecycleStatuses: e.array(
|
|
2804
|
+
lifecycleStatuses: e.array(N).optional(),
|
|
2760
2805
|
customerUuids: e.array(e.uuid()).optional(),
|
|
2761
2806
|
dueOnRange: J.optional(),
|
|
2762
2807
|
issuedOnRange: J.optional(),
|
|
2763
2808
|
invoiceUuids: Y.optional(),
|
|
2764
2809
|
isDisputed: e.boolean().optional(),
|
|
2765
2810
|
isOverdue: e.boolean().optional(),
|
|
2766
|
-
settlementStatuses: e.array(
|
|
2811
|
+
settlementStatuses: e.array(L).optional(),
|
|
2767
2812
|
customerExternalIds: e.array(e.string()).optional(),
|
|
2768
2813
|
isOutstanding: e.boolean().optional(),
|
|
2769
2814
|
customFields: e.array(e.union([
|
|
@@ -2781,19 +2826,19 @@ var Ci = e.object({
|
|
|
2781
2826
|
approvalStatuses: e.array(X).optional(),
|
|
2782
2827
|
isApprovalCancelled: e.boolean().optional(),
|
|
2783
2828
|
isExternallyCreated: e.boolean().optional()
|
|
2784
|
-
}),
|
|
2829
|
+
}), Oi = e.object({
|
|
2785
2830
|
meta: Z,
|
|
2786
2831
|
skipped: e.array(Q)
|
|
2787
|
-
}),
|
|
2832
|
+
}), ki = e.object({
|
|
2788
2833
|
statuses: e.array(_).optional(),
|
|
2789
|
-
lifecycleStatuses: e.array(
|
|
2834
|
+
lifecycleStatuses: e.array(N).optional(),
|
|
2790
2835
|
customerUuids: e.array(e.uuid()).optional(),
|
|
2791
2836
|
dueOnRange: J.optional(),
|
|
2792
2837
|
issuedOnRange: J.optional(),
|
|
2793
2838
|
invoiceUuids: Y.optional(),
|
|
2794
2839
|
isDisputed: e.boolean().optional(),
|
|
2795
2840
|
isOverdue: e.boolean().optional(),
|
|
2796
|
-
settlementStatuses: e.array(
|
|
2841
|
+
settlementStatuses: e.array(L).optional(),
|
|
2797
2842
|
customerExternalIds: e.array(e.string()).optional(),
|
|
2798
2843
|
isOutstanding: e.boolean().optional(),
|
|
2799
2844
|
customFields: e.array(e.union([
|
|
@@ -2811,7 +2856,7 @@ var Ci = e.object({
|
|
|
2811
2856
|
approvalStatuses: e.array(X).optional(),
|
|
2812
2857
|
isApprovalCancelled: e.boolean().optional(),
|
|
2813
2858
|
isExternallyCreated: e.boolean().optional()
|
|
2814
|
-
}),
|
|
2859
|
+
}), Ai = e.object({
|
|
2815
2860
|
meta: Z,
|
|
2816
2861
|
skipped: e.array(Q)
|
|
2817
2862
|
});
|
|
@@ -2828,7 +2873,7 @@ e.object({
|
|
|
2828
2873
|
status: e.enum(["400"]),
|
|
2829
2874
|
code: e.enum(["missing_invoice_approval_file"])
|
|
2830
2875
|
});
|
|
2831
|
-
var
|
|
2876
|
+
var ji = e.object({
|
|
2832
2877
|
fileUuids: e.array(e.uuid()).optional(),
|
|
2833
2878
|
remarks: e.string().nullish()
|
|
2834
2879
|
});
|
|
@@ -2837,9 +2882,9 @@ e.object({
|
|
|
2837
2882
|
status: e.enum(["400"]),
|
|
2838
2883
|
code: e.enum(["missing_rejection_remarks"])
|
|
2839
2884
|
});
|
|
2840
|
-
var
|
|
2885
|
+
var Mi = e.object({
|
|
2841
2886
|
remarks: e.string().max(500).nullish(),
|
|
2842
|
-
reason:
|
|
2887
|
+
reason: zn,
|
|
2843
2888
|
fileUuids: e.array(e.uuid()).optional()
|
|
2844
2889
|
});
|
|
2845
2890
|
e.object({
|
|
@@ -2859,18 +2904,18 @@ e.object({
|
|
|
2859
2904
|
status: e.enum(["409"]),
|
|
2860
2905
|
code: e.enum(["approval_restart_requires_active_approval"])
|
|
2861
2906
|
});
|
|
2862
|
-
var
|
|
2863
|
-
status:
|
|
2907
|
+
var Ni = e.object({
|
|
2908
|
+
status: Rn.optional(),
|
|
2864
2909
|
invoiceUuid: e.uuid().optional(),
|
|
2865
2910
|
customerUuid: e.uuid().optional(),
|
|
2866
|
-
level:
|
|
2911
|
+
level: R.optional(),
|
|
2867
2912
|
hasChangesSinceApprovalSent: e.boolean().optional(),
|
|
2868
2913
|
isCancelled: e.boolean().optional()
|
|
2869
|
-
}),
|
|
2914
|
+
}), Pi = e.object({
|
|
2870
2915
|
uuid: e.uuid(),
|
|
2871
2916
|
subject: e.string().nullable(),
|
|
2872
2917
|
hasChangesSinceApprovalSent: e.boolean()
|
|
2873
|
-
}),
|
|
2918
|
+
}), Fi = e.object({
|
|
2874
2919
|
uuid: e.uuid(),
|
|
2875
2920
|
issuedOn: e.union([
|
|
2876
2921
|
e.iso.date(),
|
|
@@ -2880,16 +2925,16 @@ var ki = e.object({
|
|
|
2880
2925
|
netAmount: y,
|
|
2881
2926
|
grossAmount: y,
|
|
2882
2927
|
balanceDueAmount: y.nullable()
|
|
2883
|
-
}),
|
|
2928
|
+
}), Ii = e.object({
|
|
2884
2929
|
uuid: e.uuid(),
|
|
2885
2930
|
name: e.string().nullable()
|
|
2886
|
-
}),
|
|
2931
|
+
}), Li = e.object({
|
|
2887
2932
|
name: e.string().nullable(),
|
|
2888
2933
|
email: e.email().nullable()
|
|
2889
|
-
}),
|
|
2934
|
+
}), Ri = e.object({
|
|
2890
2935
|
uuid: e.uuid(),
|
|
2891
2936
|
createdAt: e.iso.datetime(),
|
|
2892
|
-
status:
|
|
2937
|
+
status: Rn,
|
|
2893
2938
|
sentAt: e.union([
|
|
2894
2939
|
e.iso.datetime(),
|
|
2895
2940
|
e.enum(["infinity"]),
|
|
@@ -2911,21 +2956,21 @@ var ki = e.object({
|
|
|
2911
2956
|
e.enum(["-infinity"])
|
|
2912
2957
|
]).nullable(),
|
|
2913
2958
|
customerRemark: e.string().nullable(),
|
|
2914
|
-
rejectionReason:
|
|
2915
|
-
level:
|
|
2959
|
+
rejectionReason: zn.nullable(),
|
|
2960
|
+
level: R.nullable(),
|
|
2916
2961
|
lastReminderSentAt: e.union([
|
|
2917
2962
|
e.iso.datetime(),
|
|
2918
2963
|
e.enum(["infinity"]),
|
|
2919
2964
|
e.enum(["-infinity"])
|
|
2920
2965
|
]).nullable(),
|
|
2921
|
-
invoice:
|
|
2922
|
-
proForma:
|
|
2923
|
-
customer:
|
|
2924
|
-
recipient:
|
|
2925
|
-
}),
|
|
2926
|
-
items: e.array(
|
|
2966
|
+
invoice: Pi,
|
|
2967
|
+
proForma: Fi,
|
|
2968
|
+
customer: Ii,
|
|
2969
|
+
recipient: Li
|
|
2970
|
+
}), zi = e.object({
|
|
2971
|
+
items: e.array(Ri),
|
|
2927
2972
|
meta: h
|
|
2928
|
-
}),
|
|
2973
|
+
}), Bi = e.object({
|
|
2929
2974
|
uuid: e.uuid(),
|
|
2930
2975
|
name: e.string().nullable(),
|
|
2931
2976
|
email: e.email().nullable(),
|
|
@@ -2935,7 +2980,7 @@ var ki = e.object({
|
|
|
2935
2980
|
vatNumber: e.string().nullable(),
|
|
2936
2981
|
bankAccountNumber: e.string().nullable(),
|
|
2937
2982
|
alternativeBankAccountNumber: e.string().nullable()
|
|
2938
|
-
}),
|
|
2983
|
+
}), Vi = e.object({
|
|
2939
2984
|
uuid: e.uuid(),
|
|
2940
2985
|
name: e.string().nullable(),
|
|
2941
2986
|
email: e.email().nullable(),
|
|
@@ -2943,13 +2988,14 @@ var ki = e.object({
|
|
|
2943
2988
|
address: x.nullable(),
|
|
2944
2989
|
vatNumber: e.string().nullable(),
|
|
2945
2990
|
type: g
|
|
2946
|
-
}),
|
|
2991
|
+
}), Hi = e.object({
|
|
2947
2992
|
uuid: e.uuid(),
|
|
2948
2993
|
groupUuid: e.uuid().nullable(),
|
|
2949
2994
|
position: e.number(),
|
|
2950
2995
|
name: e.string(),
|
|
2951
2996
|
description: e.string().nullable(),
|
|
2952
2997
|
customFields: e.array(e.union([
|
|
2998
|
+
C,
|
|
2953
2999
|
w,
|
|
2954
3000
|
T,
|
|
2955
3001
|
E,
|
|
@@ -2958,24 +3004,24 @@ var ki = e.object({
|
|
|
2958
3004
|
k,
|
|
2959
3005
|
A,
|
|
2960
3006
|
j,
|
|
2961
|
-
M
|
|
2962
|
-
N
|
|
3007
|
+
M
|
|
2963
3008
|
])),
|
|
2964
3009
|
quantity: e.number(),
|
|
2965
3010
|
unitPrice: y,
|
|
2966
|
-
vatRate:
|
|
3011
|
+
vatRate: F,
|
|
2967
3012
|
vatRatePercentage: e.number(),
|
|
2968
3013
|
netAmount: y,
|
|
2969
3014
|
grossAmount: y,
|
|
2970
|
-
discount:
|
|
2971
|
-
unit:
|
|
3015
|
+
discount: I.nullable(),
|
|
3016
|
+
unit: ln,
|
|
2972
3017
|
isDiscount: e.boolean()
|
|
2973
|
-
}),
|
|
3018
|
+
}), Ui = e.object({
|
|
2974
3019
|
uuid: e.uuid(),
|
|
2975
3020
|
position: e.number(),
|
|
2976
3021
|
name: e.string(),
|
|
2977
3022
|
description: e.string().nullable(),
|
|
2978
3023
|
customFields: e.array(e.union([
|
|
3024
|
+
C,
|
|
2979
3025
|
w,
|
|
2980
3026
|
T,
|
|
2981
3027
|
E,
|
|
@@ -2984,26 +3030,26 @@ var ki = e.object({
|
|
|
2984
3030
|
k,
|
|
2985
3031
|
A,
|
|
2986
3032
|
j,
|
|
2987
|
-
M
|
|
2988
|
-
N
|
|
3033
|
+
M
|
|
2989
3034
|
])),
|
|
2990
|
-
lines: e.array(
|
|
2991
|
-
groups: e.array(e.lazy(() =>
|
|
2992
|
-
}),
|
|
2993
|
-
vatRate:
|
|
3035
|
+
lines: e.array(Hi),
|
|
3036
|
+
groups: e.array(e.lazy(() => Ui))
|
|
3037
|
+
}), Wi = e.object({
|
|
3038
|
+
vatRate: F,
|
|
2994
3039
|
netAmount: y,
|
|
2995
3040
|
vatAmount: y
|
|
2996
|
-
}),
|
|
3041
|
+
}), Gi = e.object({
|
|
2997
3042
|
uuid: e.uuid(),
|
|
2998
3043
|
createdAt: e.iso.datetime(),
|
|
2999
3044
|
updatedAt: e.iso.datetime(),
|
|
3000
3045
|
issueOn: e.iso.date().nullable(),
|
|
3001
|
-
issuer:
|
|
3002
|
-
customer:
|
|
3046
|
+
issuer: Bi,
|
|
3047
|
+
customer: Vi,
|
|
3003
3048
|
paymentReference: e.string().nullable(),
|
|
3004
3049
|
subject: e.string().nullable(),
|
|
3005
3050
|
poNumber: e.string().nullable(),
|
|
3006
3051
|
customFields: e.array(e.union([
|
|
3052
|
+
C,
|
|
3007
3053
|
w,
|
|
3008
3054
|
T,
|
|
3009
3055
|
E,
|
|
@@ -3012,29 +3058,28 @@ var ki = e.object({
|
|
|
3012
3058
|
k,
|
|
3013
3059
|
A,
|
|
3014
3060
|
j,
|
|
3015
|
-
M
|
|
3016
|
-
N
|
|
3061
|
+
M
|
|
3017
3062
|
])),
|
|
3018
|
-
ungroupedLines: e.array(
|
|
3019
|
-
groups: e.array(
|
|
3020
|
-
vatSummaries: e.array(
|
|
3063
|
+
ungroupedLines: e.array(Hi),
|
|
3064
|
+
groups: e.array(Ui),
|
|
3065
|
+
vatSummaries: e.array(Wi),
|
|
3021
3066
|
grossAmount: y,
|
|
3022
3067
|
netAmount: y,
|
|
3023
3068
|
effectiveNet: y,
|
|
3024
3069
|
vatAmount: y,
|
|
3025
3070
|
totalDiscountAmount: y.nullable(),
|
|
3026
|
-
globalDiscount:
|
|
3071
|
+
globalDiscount: I.nullable(),
|
|
3027
3072
|
advancePaymentAmount: y.nullable(),
|
|
3028
3073
|
amountDue: y,
|
|
3029
3074
|
externalRemarks: e.string().nullable()
|
|
3030
|
-
}),
|
|
3075
|
+
}), Ki = e.enum(["after_approval_request", "after_last_reminder"]), qi = e.object({
|
|
3031
3076
|
uuid: e.uuid(),
|
|
3032
3077
|
issuerUuid: e.uuid(),
|
|
3033
|
-
sequence:
|
|
3034
|
-
schedule:
|
|
3078
|
+
sequence: R,
|
|
3079
|
+
schedule: Ki,
|
|
3035
3080
|
offsetDays: e.number(),
|
|
3036
|
-
template:
|
|
3037
|
-
}),
|
|
3081
|
+
template: Yr
|
|
3082
|
+
}), Ji = e.object({ items: e.array(qi) });
|
|
3038
3083
|
e.object({
|
|
3039
3084
|
detail: e.string().optional(),
|
|
3040
3085
|
status: e.enum(["400"]),
|
|
@@ -3048,19 +3093,19 @@ e.object({
|
|
|
3048
3093
|
status: e.enum(["400"]),
|
|
3049
3094
|
code: e.enum(["additional_approval_reminder_config"])
|
|
3050
3095
|
});
|
|
3051
|
-
var
|
|
3052
|
-
sequence:
|
|
3096
|
+
var Yi = e.object({
|
|
3097
|
+
sequence: R,
|
|
3053
3098
|
offsetDays: e.int().gte(1),
|
|
3054
|
-
schedule:
|
|
3055
|
-
template:
|
|
3056
|
-
}),
|
|
3099
|
+
schedule: Ki,
|
|
3100
|
+
template: ei
|
|
3101
|
+
}), Xi = e.object({ reminders: e.array(Yi).max(2) }), $ = e.enum(["soluz"]), Zi = e.object({
|
|
3057
3102
|
provider: $,
|
|
3058
3103
|
partyId: e.string(),
|
|
3059
3104
|
enabled: e.boolean(),
|
|
3060
3105
|
hasApiKey: e.boolean(),
|
|
3061
3106
|
validatedAt: e.iso.datetime()
|
|
3062
|
-
}),
|
|
3063
|
-
connection:
|
|
3107
|
+
}), Qi = e.object({
|
|
3108
|
+
connection: Zi.nullable(),
|
|
3064
3109
|
providers: e.array($)
|
|
3065
3110
|
});
|
|
3066
3111
|
e.object({
|
|
@@ -3069,11 +3114,11 @@ e.object({
|
|
|
3069
3114
|
code: e.enum(["peppol_error"]),
|
|
3070
3115
|
meta: e.record(e.string(), e.unknown())
|
|
3071
3116
|
}), e.object({ provider: $ });
|
|
3072
|
-
var
|
|
3117
|
+
var $i = e.object({
|
|
3073
3118
|
id: e.string(),
|
|
3074
3119
|
name: e.string(),
|
|
3075
3120
|
vatNumber: e.string()
|
|
3076
|
-
}),
|
|
3121
|
+
}), ea = e.object({ companies: e.array($i) });
|
|
3077
3122
|
e.object({
|
|
3078
3123
|
provider: $,
|
|
3079
3124
|
partyId: e.string(),
|
|
@@ -3092,53 +3137,53 @@ e.object({
|
|
|
3092
3137
|
code: e.enum(["invoice_delivery_rejected"]),
|
|
3093
3138
|
meta: e.record(e.string(), e.unknown())
|
|
3094
3139
|
});
|
|
3095
|
-
var
|
|
3096
|
-
channel:
|
|
3140
|
+
var ta = e.enum(["email", "peppol"]), na = e.object({ channels: e.array(ta) }), ra = e.object({
|
|
3141
|
+
channel: ta,
|
|
3097
3142
|
ready: e.number(),
|
|
3098
3143
|
queued: e.number(),
|
|
3099
3144
|
existing: e.number(),
|
|
3100
3145
|
skipped: e.number()
|
|
3101
|
-
}),
|
|
3146
|
+
}), ia = e.enum([
|
|
3102
3147
|
"queued",
|
|
3103
3148
|
"submitting",
|
|
3104
3149
|
"submitted",
|
|
3105
3150
|
"sent",
|
|
3106
3151
|
"failed",
|
|
3107
3152
|
"uncertain"
|
|
3108
|
-
]),
|
|
3153
|
+
]), aa = e.object({
|
|
3109
3154
|
uuid: e.uuid(),
|
|
3110
3155
|
invoiceUuid: e.uuid(),
|
|
3111
|
-
channel:
|
|
3112
|
-
state:
|
|
3156
|
+
channel: ta,
|
|
3157
|
+
state: ia,
|
|
3113
3158
|
provider: $.nullable(),
|
|
3114
3159
|
providerReference: e.string().nullable(),
|
|
3115
3160
|
errorCode: e.string().nullable(),
|
|
3116
3161
|
revision: e.number()
|
|
3117
|
-
}),
|
|
3162
|
+
}), oa = e.object({
|
|
3118
3163
|
label: e.string().nullable(),
|
|
3119
3164
|
queued: e.boolean(),
|
|
3120
3165
|
invoiceUuid: e.uuid(),
|
|
3121
|
-
channel:
|
|
3166
|
+
channel: ta,
|
|
3122
3167
|
eligible: e.boolean(),
|
|
3123
3168
|
reason: e.string().nullable(),
|
|
3124
|
-
delivery:
|
|
3125
|
-
}),
|
|
3169
|
+
delivery: aa.nullable()
|
|
3170
|
+
}), sa = e.object({
|
|
3126
3171
|
totalDocuments: e.number(),
|
|
3127
|
-
channels: e.array(
|
|
3128
|
-
items: e.array(
|
|
3129
|
-
}),
|
|
3130
|
-
channels: e.array(
|
|
3172
|
+
channels: e.array(ra),
|
|
3173
|
+
items: e.array(oa)
|
|
3174
|
+
}), ca = e.object({
|
|
3175
|
+
channels: e.array(ta),
|
|
3131
3176
|
invoiceUuids: e.array(e.uuid()).optional()
|
|
3132
|
-
}),
|
|
3177
|
+
}), la = e.object({
|
|
3133
3178
|
uuid: e.uuid(),
|
|
3134
3179
|
invoiceUuid: e.uuid(),
|
|
3135
|
-
channel:
|
|
3136
|
-
state:
|
|
3180
|
+
channel: ta,
|
|
3181
|
+
state: ia,
|
|
3137
3182
|
provider: $.nullable(),
|
|
3138
3183
|
providerReference: e.string().nullable(),
|
|
3139
3184
|
errorCode: e.string().nullable(),
|
|
3140
3185
|
revision: e.number()
|
|
3141
|
-
}),
|
|
3186
|
+
}), ua = e.object({ deliveries: e.array(la) });
|
|
3142
3187
|
e.object({
|
|
3143
3188
|
detail: e.string().optional(),
|
|
3144
3189
|
status: e.enum(["409"]),
|
|
@@ -3152,16 +3197,16 @@ e.object({
|
|
|
3152
3197
|
status: e.enum(["503"]),
|
|
3153
3198
|
code: e.enum(["mail_unavailable"])
|
|
3154
3199
|
});
|
|
3155
|
-
var
|
|
3200
|
+
var da = e.object({ uuid: e.uuid() });
|
|
3156
3201
|
e.object({
|
|
3157
3202
|
detail: e.string().optional(),
|
|
3158
3203
|
status: e.enum(["500"]),
|
|
3159
3204
|
code: e.enum(["internal_server_error"])
|
|
3160
3205
|
});
|
|
3161
|
-
var
|
|
3206
|
+
var fa = e.object({
|
|
3162
3207
|
provider: $,
|
|
3163
3208
|
apiKey: e.string().optional()
|
|
3164
|
-
}),
|
|
3209
|
+
}), pa = e.object({
|
|
3165
3210
|
provider: $,
|
|
3166
3211
|
apiKey: e.string().optional(),
|
|
3167
3212
|
partyId: e.string(),
|
|
@@ -3169,19 +3214,19 @@ var ca = e.object({
|
|
|
3169
3214
|
});
|
|
3170
3215
|
e.object({
|
|
3171
3216
|
search: e.string().optional(),
|
|
3172
|
-
pagination:
|
|
3217
|
+
pagination: xe.optional()
|
|
3173
3218
|
}), e.object({ uuid: e.uuid() }), e.void(), e.object({
|
|
3174
3219
|
fresh: e.boolean(),
|
|
3175
|
-
collections: e.array(
|
|
3176
|
-
}), e.object({ collections: e.array(
|
|
3177
|
-
var
|
|
3178
|
-
pagination:
|
|
3220
|
+
collections: e.array(we).optional()
|
|
3221
|
+
}), e.object({ collections: e.array(we).optional() }), e.object({ user: e.uuid() }), e.object({ uuid: e.uuid() });
|
|
3222
|
+
var ma = e.object({
|
|
3223
|
+
pagination: m.optional(),
|
|
3179
3224
|
search: e.string().optional()
|
|
3180
|
-
}),
|
|
3225
|
+
}), ha = Oe;
|
|
3181
3226
|
e.void(), e.void(), e.object({ role: e.uuid() }), e.void(), e.object({ role: e.uuid() }), e.object({ role: e.uuid() }), e.void();
|
|
3182
|
-
var
|
|
3227
|
+
var ga = Me, _a = Ne;
|
|
3183
3228
|
e.object({ file: e.uuid() }), e.void();
|
|
3184
|
-
var
|
|
3229
|
+
var va = Pe, ya = e.object({ file: e.uuid() }), ba = e.void(), xa = e.object({ file: e.uuid() });
|
|
3185
3230
|
e.object({ file: e.uuid() }), e.object({ token: e.string() }), e.object({
|
|
3186
3231
|
filter: Be.optional(),
|
|
3187
3232
|
pagination: He.optional()
|
|
@@ -3197,705 +3242,713 @@ e.object({ file: e.uuid() }), e.object({ token: e.string() }), e.object({
|
|
|
3197
3242
|
filter: Ct.optional(),
|
|
3198
3243
|
pagination: Tt.optional()
|
|
3199
3244
|
}), e.object({ jobId: e.uuid() }), e.object({
|
|
3200
|
-
pagination:
|
|
3245
|
+
pagination: m.optional(),
|
|
3201
3246
|
search: e.string().optional()
|
|
3202
3247
|
}), 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();
|
|
3203
|
-
var
|
|
3204
|
-
pagination:
|
|
3248
|
+
var Sa = e.object({
|
|
3249
|
+
pagination: m.optional(),
|
|
3205
3250
|
filter: Rt.optional(),
|
|
3206
3251
|
search: e.string().optional()
|
|
3207
|
-
}),
|
|
3252
|
+
}), Ca = Bt, wa = e.object({ uuid: e.uuid() }), Ta = Lt;
|
|
3208
3253
|
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();
|
|
3209
|
-
var
|
|
3210
|
-
pagination:
|
|
3211
|
-
sort: e.array(
|
|
3212
|
-
filter:
|
|
3254
|
+
var Ea = e.object({ uuid: e.uuid() }), Da = e.object({ pagination: m.optional() }), Oa = Wt, ka = Xt, Aa = Zt, ja = e.void(), Ma = e.object({ token: e.string() }), Na = hn, Pa = e.object({
|
|
3255
|
+
pagination: m.optional(),
|
|
3256
|
+
sort: e.array(Un).optional(),
|
|
3257
|
+
filter: Gn.optional(),
|
|
3213
3258
|
search: e.string().optional()
|
|
3214
|
-
}),
|
|
3259
|
+
}), Fa = Yn, Ia = bn, La = xn, Ra = e.object({ uuid: e.uuid() }), za = e.void(), Ba = e.object({ uuid: e.uuid() }), Va = Vn, Ha = Xn, Ua = e.object({ uuid: e.uuid() }), Wa = e.void(), Ga = yn, Ka = e.object({ uuid: e.uuid() }), qa = e.void();
|
|
3215
3260
|
e.object({ uuid: e.uuid() }), e.void();
|
|
3216
|
-
var
|
|
3217
|
-
filter:
|
|
3218
|
-
search: e.string().optional()
|
|
3219
|
-
}), wo = mr, To = e.object({
|
|
3220
|
-
filter: hr.optional(),
|
|
3221
|
-
search: e.string().optional()
|
|
3222
|
-
}), Eo = gr, Do = e.object({ uuid: e.uuid() }), Oo = e.void(), ko = e.object({
|
|
3223
|
-
filter: _r.optional(),
|
|
3261
|
+
var Ja = Zn, Ya = e.object({ uuid: e.uuid() }), Xa = e.void(), Za = Qn, Qa = e.object({ uuid: e.uuid() }), $a = e.void(), eo = ir, to = e.object({ uuid: e.uuid() }), no = e.object({ uuid: e.uuid() }), ro = ar, io = cr, ao = e.object({ uuid: e.uuid() }), oo = e.void(), so = ur, co = e.object({ uuid: e.uuid() }), lo = e.void(), uo = e.object({ uuid: e.uuid() }), fo = e.object({ uuid: e.uuid() }), po = e.void(), mo = e.object({ uuid: e.uuid() }), ho = dr, go = e.object({ uuid: e.uuid() }), _o = fr, vo = e.object({ uuid: e.uuid() }), yo = e.void(), bo = e.object({ uuid: e.uuid() }), xo = e.void(), So = e.object({ uuid: e.uuid() }), Co = e.void(), wo = e.object({ uuid: e.uuid() }), To = e.void(), Eo = e.object({ uuid: e.uuid() }), Do = e.void(), Oo = e.object({
|
|
3262
|
+
filter: pr.optional(),
|
|
3224
3263
|
search: e.string().optional()
|
|
3225
|
-
}),
|
|
3226
|
-
filter:
|
|
3264
|
+
}), ko = _r, Ao = e.object({
|
|
3265
|
+
filter: vr.optional(),
|
|
3227
3266
|
search: e.string().optional()
|
|
3228
|
-
}), Mo =
|
|
3229
|
-
filter:
|
|
3267
|
+
}), jo = yr, Mo = e.object({ uuid: e.uuid() }), No = e.void(), Po = e.object({
|
|
3268
|
+
filter: br.optional(),
|
|
3230
3269
|
search: e.string().optional()
|
|
3231
|
-
}),
|
|
3270
|
+
}), Fo = xr, Io = Sr, Lo = e.object({
|
|
3232
3271
|
filter: Cr.optional(),
|
|
3233
3272
|
search: e.string().optional()
|
|
3234
|
-
}),
|
|
3273
|
+
}), Ro = wr, zo = e.object({
|
|
3235
3274
|
filter: Tr.optional(),
|
|
3236
|
-
|
|
3237
|
-
}), Bo =
|
|
3275
|
+
search: e.string().optional()
|
|
3276
|
+
}), Bo = Er, Vo = e.object({
|
|
3277
|
+
filter: Dr.optional(),
|
|
3278
|
+
search: e.string().optional()
|
|
3279
|
+
}), Ho = Or, Uo = e.object({ uuid: e.uuid() }), Wo = e.void(), Go = e.object({
|
|
3280
|
+
filter: kr.optional(),
|
|
3281
|
+
pagination: jr.optional()
|
|
3282
|
+
}), Ko = Vr, qo = e.object({ uuid: e.uuid() }), Jo = qr, Yo = Ur, Xo = e.object({ uuid: e.uuid() }), Zo = Wr, Qo = e.object({
|
|
3238
3283
|
uuid: e.uuid(),
|
|
3239
3284
|
paymentUuid: e.uuid()
|
|
3240
|
-
}),
|
|
3241
|
-
pagination:
|
|
3242
|
-
filter:
|
|
3243
|
-
}),
|
|
3244
|
-
filter:
|
|
3285
|
+
}), $o = e.void(), es = $r, ts = ni, ns = e.void(), rs = e.object({ filter: ii.optional() }), is = e.array(sn), as = e.object({ uuid: e.uuid() }), os = di, ss = e.object({
|
|
3286
|
+
pagination: m.optional(),
|
|
3287
|
+
filter: fi.optional()
|
|
3288
|
+
}), cs = gi, ls = e.object({ uuid: e.uuid() }), us = e.object({ uuid: e.uuid() }), ds = e.object({ filter: _i.optional() }), fs = vi, ps = e.object({ filter: yi.optional() }), ms = bi, hs = e.object({ token: e.string() }), gs = Ei, _s = e.object({ uuid: e.uuid() }), vs = e.object({
|
|
3289
|
+
filter: Di.optional(),
|
|
3245
3290
|
search: e.string().optional()
|
|
3246
|
-
}),
|
|
3247
|
-
filter:
|
|
3291
|
+
}), ys = Oi, bs = e.object({
|
|
3292
|
+
filter: ki.optional(),
|
|
3248
3293
|
search: e.string().optional()
|
|
3249
|
-
}),
|
|
3250
|
-
pagination:
|
|
3251
|
-
filter:
|
|
3252
|
-
}),
|
|
3253
|
-
filter:
|
|
3294
|
+
}), xs = Ai, Ss = ji, Cs = e.object({ uuid: e.uuid() }), ws = e.void(), Ts = Mi, Es = e.object({ uuid: e.uuid() }), Ds = e.void(), Os = e.object({ uuid: e.uuid() }), ks = e.void(), As = e.object({ uuid: e.uuid() }), js = e.object({
|
|
3295
|
+
pagination: m.optional(),
|
|
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(),
|
|
3254
3299
|
search: e.string().optional()
|
|
3255
|
-
}),
|
|
3256
|
-
filter:
|
|
3300
|
+
}), qs = sa, Js = ca, Ys = e.object({
|
|
3301
|
+
filter: Gn.optional(),
|
|
3257
3302
|
search: e.string().optional()
|
|
3258
|
-
}),
|
|
3303
|
+
}), Xs = sa, Zs = e.object({ uuid: e.uuid() }), Qs = ua, $s = e.object({ uuid: e.uuid() }), ec = da, tc = (t) => (t?.client ?? p).get({
|
|
3259
3304
|
requestValidator: async (t) => await e.object({
|
|
3260
3305
|
body: e.never().optional(),
|
|
3261
3306
|
path: e.never().optional(),
|
|
3262
|
-
query:
|
|
3307
|
+
query: ma.optional()
|
|
3263
3308
|
}).parseAsync(t),
|
|
3264
|
-
responseValidator: async (e) => await
|
|
3309
|
+
responseValidator: async (e) => await ha.parseAsync(e),
|
|
3265
3310
|
url: "/api/v1/users",
|
|
3266
3311
|
...t
|
|
3267
|
-
}),
|
|
3312
|
+
}), nc = (t) => (t.client ?? p).post({
|
|
3268
3313
|
requestValidator: async (t) => await e.object({
|
|
3269
|
-
body:
|
|
3314
|
+
body: ga,
|
|
3270
3315
|
path: e.never().optional(),
|
|
3271
3316
|
query: e.never().optional()
|
|
3272
3317
|
}).parseAsync(t),
|
|
3273
|
-
responseValidator: async (e) => await
|
|
3318
|
+
responseValidator: async (e) => await _a.parseAsync(e),
|
|
3274
3319
|
url: "/api/v1/files",
|
|
3275
3320
|
...t,
|
|
3276
3321
|
headers: {
|
|
3277
3322
|
"Content-Type": "application/json",
|
|
3278
3323
|
...t.headers
|
|
3279
3324
|
}
|
|
3280
|
-
}),
|
|
3325
|
+
}), rc = (t) => (t.client ?? p).post({
|
|
3281
3326
|
requestValidator: async (t) => await e.object({
|
|
3282
|
-
body:
|
|
3283
|
-
path:
|
|
3327
|
+
body: va,
|
|
3328
|
+
path: ya,
|
|
3284
3329
|
query: e.never().optional()
|
|
3285
3330
|
}).parseAsync(t),
|
|
3286
|
-
responseValidator: async (e) => await
|
|
3331
|
+
responseValidator: async (e) => await ba.parseAsync(e),
|
|
3287
3332
|
url: "/api/v2/files/{file}/confirm-upload",
|
|
3288
3333
|
...t,
|
|
3289
3334
|
headers: {
|
|
3290
3335
|
"Content-Type": "application/json",
|
|
3291
3336
|
...t.headers
|
|
3292
3337
|
}
|
|
3293
|
-
}),
|
|
3338
|
+
}), ic = (t) => (t.client ?? p).post({
|
|
3294
3339
|
requestValidator: async (t) => await e.object({
|
|
3295
3340
|
body: e.never().optional(),
|
|
3296
|
-
path:
|
|
3341
|
+
path: xa,
|
|
3297
3342
|
query: e.never().optional()
|
|
3298
3343
|
}).parseAsync(t),
|
|
3299
3344
|
url: "/api/v1/files/{file}/download",
|
|
3300
3345
|
...t
|
|
3301
|
-
}),
|
|
3346
|
+
}), ac = (t) => (t?.client ?? p).get({
|
|
3302
3347
|
requestValidator: async (t) => await e.object({
|
|
3303
3348
|
body: e.never().optional(),
|
|
3304
3349
|
path: e.never().optional(),
|
|
3305
|
-
query:
|
|
3350
|
+
query: Sa.optional()
|
|
3306
3351
|
}).parseAsync(t),
|
|
3307
|
-
responseValidator: async (e) => await
|
|
3352
|
+
responseValidator: async (e) => await Ca.parseAsync(e),
|
|
3308
3353
|
url: "/api/v1/customers",
|
|
3309
3354
|
...t
|
|
3310
|
-
}),
|
|
3355
|
+
}), oc = (t) => (t.client ?? p).get({
|
|
3311
3356
|
requestValidator: async (t) => await e.object({
|
|
3312
3357
|
body: e.never().optional(),
|
|
3313
|
-
path:
|
|
3358
|
+
path: wa,
|
|
3314
3359
|
query: e.never().optional()
|
|
3315
3360
|
}).parseAsync(t),
|
|
3316
|
-
responseValidator: async (e) => await
|
|
3361
|
+
responseValidator: async (e) => await Ta.parseAsync(e),
|
|
3317
3362
|
url: "/api/v1/customers/{uuid}",
|
|
3318
3363
|
...t
|
|
3319
|
-
}),
|
|
3364
|
+
}), sc = (t) => (t.client ?? p).get({
|
|
3320
3365
|
requestValidator: async (t) => await e.object({
|
|
3321
3366
|
body: e.never().optional(),
|
|
3322
|
-
path:
|
|
3323
|
-
query:
|
|
3367
|
+
path: Ea,
|
|
3368
|
+
query: Da.optional()
|
|
3324
3369
|
}).parseAsync(t),
|
|
3325
|
-
responseValidator: async (e) => await
|
|
3370
|
+
responseValidator: async (e) => await Oa.parseAsync(e),
|
|
3326
3371
|
url: "/api/v1/customers/{uuid}/recipients",
|
|
3327
3372
|
...t
|
|
3328
|
-
}),
|
|
3373
|
+
}), cc = (t) => (t?.client ?? p).get({
|
|
3329
3374
|
requestValidator: async (t) => await e.object({
|
|
3330
3375
|
body: e.never().optional(),
|
|
3331
3376
|
path: e.never().optional(),
|
|
3332
3377
|
query: e.never().optional()
|
|
3333
3378
|
}).parseAsync(t),
|
|
3334
|
-
responseValidator: async (e) => await
|
|
3379
|
+
responseValidator: async (e) => await ka.parseAsync(e),
|
|
3335
3380
|
url: "/api/v1/issuers",
|
|
3336
3381
|
...t
|
|
3337
|
-
}),
|
|
3382
|
+
}), lc = (t) => (t.client ?? p).put({
|
|
3338
3383
|
requestValidator: async (t) => await e.object({
|
|
3339
|
-
body:
|
|
3384
|
+
body: Aa,
|
|
3340
3385
|
path: e.never().optional(),
|
|
3341
3386
|
query: e.never().optional()
|
|
3342
3387
|
}).parseAsync(t),
|
|
3343
|
-
responseValidator: async (e) => await
|
|
3388
|
+
responseValidator: async (e) => await ja.parseAsync(e),
|
|
3344
3389
|
url: "/api/v1/issuers",
|
|
3345
3390
|
...t,
|
|
3346
3391
|
headers: {
|
|
3347
3392
|
"Content-Type": "application/json",
|
|
3348
3393
|
...t.headers
|
|
3349
3394
|
}
|
|
3350
|
-
}),
|
|
3395
|
+
}), uc = (t) => (t.client ?? p).get({
|
|
3351
3396
|
requestValidator: async (t) => await e.object({
|
|
3352
3397
|
body: e.never().optional(),
|
|
3353
3398
|
path: e.never().optional(),
|
|
3354
|
-
query:
|
|
3399
|
+
query: Ma
|
|
3355
3400
|
}).parseAsync(t),
|
|
3356
|
-
responseValidator: async (e) => await
|
|
3401
|
+
responseValidator: async (e) => await Na.parseAsync(e),
|
|
3357
3402
|
url: "/api/v1/public/invoices",
|
|
3358
3403
|
...t
|
|
3359
|
-
}),
|
|
3404
|
+
}), dc = (t) => (t?.client ?? p).get({
|
|
3360
3405
|
requestValidator: async (t) => await e.object({
|
|
3361
3406
|
body: e.never().optional(),
|
|
3362
3407
|
path: e.never().optional(),
|
|
3363
|
-
query:
|
|
3408
|
+
query: Pa.optional()
|
|
3364
3409
|
}).parseAsync(t),
|
|
3365
|
-
responseValidator: async (e) => await
|
|
3410
|
+
responseValidator: async (e) => await Fa.parseAsync(e),
|
|
3366
3411
|
url: "/api/v1/invoices",
|
|
3367
3412
|
...t
|
|
3368
|
-
}),
|
|
3413
|
+
}), fc = (t) => (t.client ?? p).post({
|
|
3369
3414
|
requestValidator: async (t) => await e.object({
|
|
3370
|
-
body:
|
|
3415
|
+
body: Ia,
|
|
3371
3416
|
path: e.never().optional(),
|
|
3372
3417
|
query: e.never().optional()
|
|
3373
3418
|
}).parseAsync(t),
|
|
3374
|
-
responseValidator: async (e) => await
|
|
3419
|
+
responseValidator: async (e) => await La.parseAsync(e),
|
|
3375
3420
|
url: "/api/v1/invoices",
|
|
3376
3421
|
...t,
|
|
3377
3422
|
headers: {
|
|
3378
3423
|
"Content-Type": "application/json",
|
|
3379
3424
|
...t.headers
|
|
3380
3425
|
}
|
|
3381
|
-
}),
|
|
3426
|
+
}), pc = (t) => (t.client ?? p).delete({
|
|
3382
3427
|
requestValidator: async (t) => await e.object({
|
|
3383
3428
|
body: e.never().optional(),
|
|
3384
|
-
path:
|
|
3429
|
+
path: Ra,
|
|
3385
3430
|
query: e.never().optional()
|
|
3386
3431
|
}).parseAsync(t),
|
|
3387
|
-
responseValidator: async (e) => await
|
|
3432
|
+
responseValidator: async (e) => await za.parseAsync(e),
|
|
3388
3433
|
url: "/api/v1/invoices/{uuid}",
|
|
3389
3434
|
...t
|
|
3390
|
-
}),
|
|
3435
|
+
}), mc = (t) => (t.client ?? p).get({
|
|
3391
3436
|
requestValidator: async (t) => await e.object({
|
|
3392
3437
|
body: e.never().optional(),
|
|
3393
|
-
path:
|
|
3438
|
+
path: Ba,
|
|
3394
3439
|
query: e.never().optional()
|
|
3395
3440
|
}).parseAsync(t),
|
|
3396
|
-
responseValidator: async (e) => await
|
|
3441
|
+
responseValidator: async (e) => await Va.parseAsync(e),
|
|
3397
3442
|
url: "/api/v1/invoices/{uuid}",
|
|
3398
3443
|
...t
|
|
3399
|
-
}),
|
|
3444
|
+
}), hc = (t) => (t.client ?? p).patch({
|
|
3400
3445
|
requestValidator: async (t) => await e.object({
|
|
3401
|
-
body:
|
|
3402
|
-
path:
|
|
3446
|
+
body: Ha,
|
|
3447
|
+
path: Ua,
|
|
3403
3448
|
query: e.never().optional()
|
|
3404
3449
|
}).parseAsync(t),
|
|
3405
|
-
responseValidator: async (e) => await
|
|
3450
|
+
responseValidator: async (e) => await Wa.parseAsync(e),
|
|
3406
3451
|
url: "/api/v1/invoices/{uuid}",
|
|
3407
3452
|
...t,
|
|
3408
3453
|
headers: {
|
|
3409
3454
|
"Content-Type": "application/json",
|
|
3410
3455
|
...t.headers
|
|
3411
3456
|
}
|
|
3412
|
-
}),
|
|
3457
|
+
}), gc = (t) => (t.client ?? p).patch({
|
|
3413
3458
|
requestValidator: async (t) => await e.object({
|
|
3414
|
-
body:
|
|
3415
|
-
path:
|
|
3459
|
+
body: Ga,
|
|
3460
|
+
path: Ka,
|
|
3416
3461
|
query: e.never().optional()
|
|
3417
3462
|
}).parseAsync(t),
|
|
3418
|
-
responseValidator: async (e) => await
|
|
3463
|
+
responseValidator: async (e) => await qa.parseAsync(e),
|
|
3419
3464
|
url: "/api/v1/invoices/{uuid}/lines",
|
|
3420
3465
|
...t,
|
|
3421
3466
|
headers: {
|
|
3422
3467
|
"Content-Type": "application/json",
|
|
3423
3468
|
...t.headers
|
|
3424
3469
|
}
|
|
3425
|
-
}),
|
|
3470
|
+
}), _c = (t) => (t.client ?? p).patch({
|
|
3426
3471
|
requestValidator: async (t) => await e.object({
|
|
3427
|
-
body:
|
|
3428
|
-
path:
|
|
3472
|
+
body: Ja,
|
|
3473
|
+
path: Ya,
|
|
3429
3474
|
query: e.never().optional()
|
|
3430
3475
|
}).parseAsync(t),
|
|
3431
|
-
responseValidator: async (e) => await
|
|
3476
|
+
responseValidator: async (e) => await Xa.parseAsync(e),
|
|
3432
3477
|
url: "/api/v2/invoices/{uuid}/discount",
|
|
3433
3478
|
...t,
|
|
3434
3479
|
headers: {
|
|
3435
3480
|
"Content-Type": "application/json",
|
|
3436
3481
|
...t.headers
|
|
3437
3482
|
}
|
|
3438
|
-
}),
|
|
3483
|
+
}), vc = (t) => (t.client ?? p).patch({
|
|
3439
3484
|
requestValidator: async (t) => await e.object({
|
|
3440
|
-
body:
|
|
3441
|
-
path:
|
|
3485
|
+
body: Za,
|
|
3486
|
+
path: Qa,
|
|
3442
3487
|
query: e.never().optional()
|
|
3443
3488
|
}).parseAsync(t),
|
|
3444
|
-
responseValidator: async (e) => await
|
|
3489
|
+
responseValidator: async (e) => await $a.parseAsync(e),
|
|
3445
3490
|
url: "/api/v1/invoices/{uuid}/attachments",
|
|
3446
3491
|
...t,
|
|
3447
3492
|
headers: {
|
|
3448
3493
|
"Content-Type": "application/json",
|
|
3449
3494
|
...t.headers
|
|
3450
3495
|
}
|
|
3451
|
-
}),
|
|
3496
|
+
}), yc = (t) => (t.client ?? p).post({
|
|
3452
3497
|
requestValidator: async (t) => await e.object({
|
|
3453
|
-
body:
|
|
3454
|
-
path:
|
|
3498
|
+
body: eo,
|
|
3499
|
+
path: to,
|
|
3455
3500
|
query: e.never().optional()
|
|
3456
3501
|
}).parseAsync(t),
|
|
3457
3502
|
url: "/api/v1/invoices/{uuid}/finalize",
|
|
3458
|
-
...t
|
|
3459
|
-
|
|
3503
|
+
...t,
|
|
3504
|
+
headers: {
|
|
3505
|
+
"Content-Type": "application/json",
|
|
3506
|
+
...t.headers
|
|
3507
|
+
}
|
|
3508
|
+
}), bc = (t) => (t.client ?? p).post({
|
|
3460
3509
|
requestValidator: async (t) => await e.object({
|
|
3461
3510
|
body: e.never().optional(),
|
|
3462
|
-
path:
|
|
3511
|
+
path: no,
|
|
3463
3512
|
query: e.never().optional()
|
|
3464
3513
|
}).parseAsync(t),
|
|
3465
|
-
responseValidator: async (e) => await
|
|
3514
|
+
responseValidator: async (e) => await ro.parseAsync(e),
|
|
3466
3515
|
url: "/api/v1/invoices/{uuid}/credit-note",
|
|
3467
3516
|
...t
|
|
3468
|
-
}),
|
|
3517
|
+
}), xc = (t) => (t.client ?? p).patch({
|
|
3469
3518
|
requestValidator: async (t) => await e.object({
|
|
3470
|
-
body:
|
|
3471
|
-
path:
|
|
3519
|
+
body: io,
|
|
3520
|
+
path: ao,
|
|
3472
3521
|
query: e.never().optional()
|
|
3473
3522
|
}).parseAsync(t),
|
|
3474
|
-
responseValidator: async (e) => await
|
|
3523
|
+
responseValidator: async (e) => await oo.parseAsync(e),
|
|
3475
3524
|
url: "/api/v1/credit-notes/{uuid}/lines",
|
|
3476
3525
|
...t,
|
|
3477
3526
|
headers: {
|
|
3478
3527
|
"Content-Type": "application/json",
|
|
3479
3528
|
...t.headers
|
|
3480
3529
|
}
|
|
3481
|
-
}),
|
|
3530
|
+
}), Sc = (t) => (t.client ?? p).patch({
|
|
3482
3531
|
requestValidator: async (t) => await e.object({
|
|
3483
|
-
body:
|
|
3484
|
-
path:
|
|
3532
|
+
body: so,
|
|
3533
|
+
path: co,
|
|
3485
3534
|
query: e.never().optional()
|
|
3486
3535
|
}).parseAsync(t),
|
|
3487
|
-
responseValidator: async (e) => await
|
|
3536
|
+
responseValidator: async (e) => await lo.parseAsync(e),
|
|
3488
3537
|
url: "/api/v1/credit-notes/{uuid}",
|
|
3489
3538
|
...t,
|
|
3490
3539
|
headers: {
|
|
3491
3540
|
"Content-Type": "application/json",
|
|
3492
3541
|
...t.headers
|
|
3493
3542
|
}
|
|
3494
|
-
}),
|
|
3543
|
+
}), Cc = (t) => (t.client ?? p).post({
|
|
3495
3544
|
requestValidator: async (t) => await e.object({
|
|
3496
3545
|
body: e.never().optional(),
|
|
3497
|
-
path:
|
|
3546
|
+
path: uo,
|
|
3498
3547
|
query: e.never().optional()
|
|
3499
3548
|
}).parseAsync(t),
|
|
3500
3549
|
url: "/api/v1/credit-notes/{uuid}/finalize",
|
|
3501
3550
|
...t
|
|
3502
|
-
}),
|
|
3551
|
+
}), wc = (t) => (t.client ?? p).post({
|
|
3503
3552
|
requestValidator: async (t) => await e.object({
|
|
3504
3553
|
body: e.never().optional(),
|
|
3505
|
-
path:
|
|
3554
|
+
path: fo,
|
|
3506
3555
|
query: e.never().optional()
|
|
3507
3556
|
}).parseAsync(t),
|
|
3508
|
-
responseValidator: async (e) => await
|
|
3557
|
+
responseValidator: async (e) => await po.parseAsync(e),
|
|
3509
3558
|
url: "/api/v1/invoices/{uuid}/mark-as-ready",
|
|
3510
3559
|
...t
|
|
3511
|
-
}),
|
|
3560
|
+
}), Tc = (t) => (t.client ?? p).post({
|
|
3512
3561
|
requestValidator: async (t) => await e.object({
|
|
3513
3562
|
body: e.never().optional(),
|
|
3514
|
-
path:
|
|
3563
|
+
path: mo,
|
|
3515
3564
|
query: e.never().optional()
|
|
3516
3565
|
}).parseAsync(t),
|
|
3517
|
-
responseValidator: async (e) => await
|
|
3566
|
+
responseValidator: async (e) => await ho.parseAsync(e),
|
|
3518
3567
|
url: "/api/v1/invoices/{uuid}/duplicate",
|
|
3519
3568
|
...t
|
|
3520
|
-
}),
|
|
3569
|
+
}), Ec = (t) => (t.client ?? p).post({
|
|
3521
3570
|
requestValidator: async (t) => await e.object({
|
|
3522
3571
|
body: e.never().optional(),
|
|
3523
|
-
path:
|
|
3572
|
+
path: go,
|
|
3524
3573
|
query: e.never().optional()
|
|
3525
3574
|
}).parseAsync(t),
|
|
3526
|
-
responseValidator: async (e) => await
|
|
3575
|
+
responseValidator: async (e) => await _o.parseAsync(e),
|
|
3527
3576
|
url: "/api/v1/invoices/{uuid}/copy-to-invoice",
|
|
3528
3577
|
...t
|
|
3529
|
-
}),
|
|
3578
|
+
}), Dc = (t) => (t.client ?? p).post({
|
|
3530
3579
|
requestValidator: async (t) => await e.object({
|
|
3531
3580
|
body: e.never().optional(),
|
|
3532
|
-
path:
|
|
3581
|
+
path: vo,
|
|
3533
3582
|
query: e.never().optional()
|
|
3534
3583
|
}).parseAsync(t),
|
|
3535
|
-
responseValidator: async (e) => await
|
|
3584
|
+
responseValidator: async (e) => await yo.parseAsync(e),
|
|
3536
3585
|
url: "/api/v1/invoices/{uuid}/mark-as-draft",
|
|
3537
3586
|
...t
|
|
3538
|
-
}),
|
|
3587
|
+
}), Oc = (t) => (t.client ?? p).post({
|
|
3539
3588
|
requestValidator: async (t) => await e.object({
|
|
3540
3589
|
body: e.never().optional(),
|
|
3541
|
-
path:
|
|
3590
|
+
path: bo,
|
|
3542
3591
|
query: e.never().optional()
|
|
3543
3592
|
}).parseAsync(t),
|
|
3544
|
-
responseValidator: async (e) => await
|
|
3593
|
+
responseValidator: async (e) => await xo.parseAsync(e),
|
|
3545
3594
|
url: "/api/v1/invoices/{uuid}/mark-as-prior-approval-required",
|
|
3546
3595
|
...t
|
|
3547
|
-
}),
|
|
3596
|
+
}), kc = (t) => (t.client ?? p).post({
|
|
3548
3597
|
requestValidator: async (t) => await e.object({
|
|
3549
3598
|
body: e.never().optional(),
|
|
3550
|
-
path:
|
|
3599
|
+
path: So,
|
|
3551
3600
|
query: e.never().optional()
|
|
3552
3601
|
}).parseAsync(t),
|
|
3553
|
-
responseValidator: async (e) => await
|
|
3602
|
+
responseValidator: async (e) => await Co.parseAsync(e),
|
|
3554
3603
|
url: "/api/v1/invoices/{uuid}/unmark-as-prior-approval-required",
|
|
3555
3604
|
...t
|
|
3556
|
-
}),
|
|
3605
|
+
}), Ac = (t) => (t.client ?? p).post({
|
|
3557
3606
|
requestValidator: async (t) => await e.object({
|
|
3558
3607
|
body: e.never().optional(),
|
|
3559
|
-
path:
|
|
3608
|
+
path: wo,
|
|
3560
3609
|
query: e.never().optional()
|
|
3561
3610
|
}).parseAsync(t),
|
|
3562
|
-
responseValidator: async (e) => await
|
|
3611
|
+
responseValidator: async (e) => await To.parseAsync(e),
|
|
3563
3612
|
url: "/api/v1/invoices/{uuid}/mark-as-disputed",
|
|
3564
3613
|
...t
|
|
3565
|
-
}),
|
|
3614
|
+
}), jc = (t) => (t.client ?? p).post({
|
|
3566
3615
|
requestValidator: async (t) => await e.object({
|
|
3567
3616
|
body: e.never().optional(),
|
|
3568
|
-
path:
|
|
3617
|
+
path: Eo,
|
|
3569
3618
|
query: e.never().optional()
|
|
3570
3619
|
}).parseAsync(t),
|
|
3571
|
-
responseValidator: async (e) => await
|
|
3620
|
+
responseValidator: async (e) => await Do.parseAsync(e),
|
|
3572
3621
|
url: "/api/v1/invoices/{uuid}/mark-as-paid",
|
|
3573
3622
|
...t
|
|
3574
|
-
}),
|
|
3623
|
+
}), Mc = (t) => (t?.client ?? p).get({
|
|
3575
3624
|
requestValidator: async (t) => await e.object({
|
|
3576
3625
|
body: e.never().optional(),
|
|
3577
3626
|
path: e.never().optional(),
|
|
3578
|
-
query:
|
|
3627
|
+
query: Oo.optional()
|
|
3579
3628
|
}).parseAsync(t),
|
|
3580
|
-
responseValidator: async (e) => await
|
|
3629
|
+
responseValidator: async (e) => await ko.parseAsync(e),
|
|
3581
3630
|
url: "/api/v1/invoices/mark-as-ready/preview",
|
|
3582
3631
|
...t
|
|
3583
|
-
}),
|
|
3632
|
+
}), Nc = (t) => (t?.client ?? p).post({
|
|
3584
3633
|
requestValidator: async (t) => await e.object({
|
|
3585
3634
|
body: e.never().optional(),
|
|
3586
3635
|
path: e.never().optional(),
|
|
3587
|
-
query:
|
|
3636
|
+
query: Ao.optional()
|
|
3588
3637
|
}).parseAsync(t),
|
|
3589
|
-
responseValidator: async (e) => await
|
|
3638
|
+
responseValidator: async (e) => await jo.parseAsync(e),
|
|
3590
3639
|
url: "/api/v1/invoices/mark-as-ready",
|
|
3591
3640
|
...t
|
|
3592
|
-
}),
|
|
3641
|
+
}), Pc = (t) => (t.client ?? p).post({
|
|
3593
3642
|
requestValidator: async (t) => await e.object({
|
|
3594
3643
|
body: e.never().optional(),
|
|
3595
|
-
path:
|
|
3644
|
+
path: Mo,
|
|
3596
3645
|
query: e.never().optional()
|
|
3597
3646
|
}).parseAsync(t),
|
|
3598
|
-
responseValidator: async (e) => await
|
|
3647
|
+
responseValidator: async (e) => await No.parseAsync(e),
|
|
3599
3648
|
url: "/api/v1/invoices/{uuid}/withdraw-disputed",
|
|
3600
3649
|
...t
|
|
3601
|
-
}),
|
|
3650
|
+
}), Fc = (t) => (t?.client ?? p).get({
|
|
3602
3651
|
requestValidator: async (t) => await e.object({
|
|
3603
3652
|
body: e.never().optional(),
|
|
3604
3653
|
path: e.never().optional(),
|
|
3605
|
-
query:
|
|
3654
|
+
query: Po.optional()
|
|
3606
3655
|
}).parseAsync(t),
|
|
3607
|
-
responseValidator: async (e) => await
|
|
3656
|
+
responseValidator: async (e) => await Fo.parseAsync(e),
|
|
3608
3657
|
url: "/api/v1/invoices/finalize/preview",
|
|
3609
3658
|
...t
|
|
3610
|
-
}),
|
|
3659
|
+
}), Ic = (t) => (t.client ?? p).post({
|
|
3611
3660
|
requestValidator: async (t) => await e.object({
|
|
3612
|
-
body:
|
|
3661
|
+
body: Io,
|
|
3613
3662
|
path: e.never().optional(),
|
|
3614
|
-
query:
|
|
3663
|
+
query: Lo.optional()
|
|
3615
3664
|
}).parseAsync(t),
|
|
3616
|
-
responseValidator: async (e) => await
|
|
3665
|
+
responseValidator: async (e) => await Ro.parseAsync(e),
|
|
3617
3666
|
url: "/api/v1/invoices/finalize",
|
|
3618
|
-
...t
|
|
3619
|
-
|
|
3667
|
+
...t,
|
|
3668
|
+
headers: {
|
|
3669
|
+
"Content-Type": "application/json",
|
|
3670
|
+
...t.headers
|
|
3671
|
+
}
|
|
3672
|
+
}), Lc = (t) => (t?.client ?? p).get({
|
|
3620
3673
|
requestValidator: async (t) => await e.object({
|
|
3621
3674
|
body: e.never().optional(),
|
|
3622
3675
|
path: e.never().optional(),
|
|
3623
|
-
query:
|
|
3676
|
+
query: zo.optional()
|
|
3624
3677
|
}).parseAsync(t),
|
|
3625
|
-
responseValidator: async (e) => await
|
|
3678
|
+
responseValidator: async (e) => await Bo.parseAsync(e),
|
|
3626
3679
|
url: "/api/v1/invoices/delete/preview",
|
|
3627
3680
|
...t
|
|
3628
|
-
}),
|
|
3681
|
+
}), Rc = (t) => (t?.client ?? p).post({
|
|
3629
3682
|
requestValidator: async (t) => await e.object({
|
|
3630
3683
|
body: e.never().optional(),
|
|
3631
3684
|
path: e.never().optional(),
|
|
3632
|
-
query:
|
|
3685
|
+
query: Vo.optional()
|
|
3633
3686
|
}).parseAsync(t),
|
|
3634
|
-
responseValidator: async (e) => await
|
|
3687
|
+
responseValidator: async (e) => await Ho.parseAsync(e),
|
|
3635
3688
|
url: "/api/v1/invoices/delete",
|
|
3636
3689
|
...t
|
|
3637
|
-
}),
|
|
3690
|
+
}), zc = (t) => (t.client ?? p).post({
|
|
3638
3691
|
requestValidator: async (t) => await e.object({
|
|
3639
3692
|
body: e.never().optional(),
|
|
3640
|
-
path:
|
|
3693
|
+
path: Uo,
|
|
3641
3694
|
query: e.never().optional()
|
|
3642
3695
|
}).parseAsync(t),
|
|
3643
|
-
responseValidator: async (e) => await
|
|
3696
|
+
responseValidator: async (e) => await Wo.parseAsync(e),
|
|
3644
3697
|
url: "/api/v1/invoices/{uuid}/restore-from-pro-forma",
|
|
3645
3698
|
...t
|
|
3646
|
-
}),
|
|
3699
|
+
}), Bc = (t) => (t?.client ?? p).get({
|
|
3647
3700
|
requestValidator: async (t) => await e.object({
|
|
3648
3701
|
body: e.never().optional(),
|
|
3649
3702
|
path: e.never().optional(),
|
|
3650
|
-
query:
|
|
3703
|
+
query: Go.optional()
|
|
3651
3704
|
}).parseAsync(t),
|
|
3652
|
-
responseValidator: async (e) => await
|
|
3705
|
+
responseValidator: async (e) => await Ko.parseAsync(e),
|
|
3653
3706
|
url: "/api/v1/activity-logs",
|
|
3654
3707
|
...t
|
|
3655
|
-
}),
|
|
3708
|
+
}), Vc = (t) => (t.client ?? p).get({
|
|
3656
3709
|
requestValidator: async (t) => await e.object({
|
|
3657
3710
|
body: e.never().optional(),
|
|
3658
|
-
path:
|
|
3711
|
+
path: qo,
|
|
3659
3712
|
query: e.never().optional()
|
|
3660
3713
|
}).parseAsync(t),
|
|
3661
|
-
responseValidator: async (e) => await
|
|
3714
|
+
responseValidator: async (e) => await Jo.parseAsync(e),
|
|
3662
3715
|
url: "/api/v1/invoices/{uuid}/payments",
|
|
3663
3716
|
...t
|
|
3664
|
-
}),
|
|
3717
|
+
}), Hc = (t) => (t.client ?? p).post({
|
|
3665
3718
|
requestValidator: async (t) => await e.object({
|
|
3666
|
-
body:
|
|
3667
|
-
path:
|
|
3719
|
+
body: Yo,
|
|
3720
|
+
path: Xo,
|
|
3668
3721
|
query: e.never().optional()
|
|
3669
3722
|
}).parseAsync(t),
|
|
3670
|
-
responseValidator: async (e) => await
|
|
3723
|
+
responseValidator: async (e) => await Zo.parseAsync(e),
|
|
3671
3724
|
url: "/api/v1/invoices/{uuid}/payments",
|
|
3672
3725
|
...t,
|
|
3673
3726
|
headers: {
|
|
3674
3727
|
"Content-Type": "application/json",
|
|
3675
3728
|
...t.headers
|
|
3676
3729
|
}
|
|
3677
|
-
}),
|
|
3730
|
+
}), Uc = (t) => (t.client ?? p).delete({
|
|
3678
3731
|
requestValidator: async (t) => await e.object({
|
|
3679
3732
|
body: e.never().optional(),
|
|
3680
|
-
path:
|
|
3733
|
+
path: Qo,
|
|
3681
3734
|
query: e.never().optional()
|
|
3682
3735
|
}).parseAsync(t),
|
|
3683
|
-
responseValidator: async (e) => await
|
|
3736
|
+
responseValidator: async (e) => await $o.parseAsync(e),
|
|
3684
3737
|
url: "/api/v1/invoices/{uuid}/payments/{paymentUuid}",
|
|
3685
3738
|
...t
|
|
3686
|
-
}),
|
|
3739
|
+
}), Wc = (t) => (t?.client ?? p).get({
|
|
3687
3740
|
requestValidator: async (t) => await e.object({
|
|
3688
3741
|
body: e.never().optional(),
|
|
3689
3742
|
path: e.never().optional(),
|
|
3690
3743
|
query: e.never().optional()
|
|
3691
3744
|
}).parseAsync(t),
|
|
3692
|
-
responseValidator: async (e) => await
|
|
3745
|
+
responseValidator: async (e) => await es.parseAsync(e),
|
|
3693
3746
|
url: "/api/v1/issuers/reminder-configs",
|
|
3694
3747
|
...t
|
|
3695
|
-
}),
|
|
3748
|
+
}), Gc = (t) => (t.client ?? p).patch({
|
|
3696
3749
|
requestValidator: async (t) => await e.object({
|
|
3697
|
-
body:
|
|
3750
|
+
body: ts,
|
|
3698
3751
|
path: e.never().optional(),
|
|
3699
3752
|
query: e.never().optional()
|
|
3700
3753
|
}).parseAsync(t),
|
|
3701
|
-
responseValidator: async (e) => await
|
|
3754
|
+
responseValidator: async (e) => await ns.parseAsync(e),
|
|
3702
3755
|
url: "/api/v1/issuers/reminder-configs",
|
|
3703
3756
|
...t,
|
|
3704
3757
|
headers: {
|
|
3705
3758
|
"Content-Type": "application/json",
|
|
3706
3759
|
...t.headers
|
|
3707
3760
|
}
|
|
3708
|
-
}),
|
|
3761
|
+
}), Kc = (t) => (t?.client ?? p).get({
|
|
3709
3762
|
requestValidator: async (t) => await e.object({
|
|
3710
3763
|
body: e.never().optional(),
|
|
3711
3764
|
path: e.never().optional(),
|
|
3712
|
-
query:
|
|
3765
|
+
query: rs.optional()
|
|
3713
3766
|
}).parseAsync(t),
|
|
3714
|
-
responseValidator: async (e) => await
|
|
3767
|
+
responseValidator: async (e) => await is.parseAsync(e),
|
|
3715
3768
|
url: "/api/v1/custom-field-definitions",
|
|
3716
3769
|
...t
|
|
3717
|
-
}),
|
|
3770
|
+
}), qc = (t) => (t.client ?? p).get({
|
|
3718
3771
|
requestValidator: async (t) => await e.object({
|
|
3719
3772
|
body: e.never().optional(),
|
|
3720
|
-
path:
|
|
3773
|
+
path: as,
|
|
3721
3774
|
query: e.never().optional()
|
|
3722
3775
|
}).parseAsync(t),
|
|
3723
|
-
responseValidator: async (e) => await
|
|
3776
|
+
responseValidator: async (e) => await os.parseAsync(e),
|
|
3724
3777
|
url: "/api/v1/dunning-cases/{uuid}",
|
|
3725
3778
|
...t
|
|
3726
|
-
}),
|
|
3779
|
+
}), Jc = (t) => (t?.client ?? p).get({
|
|
3727
3780
|
requestValidator: async (t) => await e.object({
|
|
3728
3781
|
body: e.never().optional(),
|
|
3729
3782
|
path: e.never().optional(),
|
|
3730
|
-
query:
|
|
3783
|
+
query: ss.optional()
|
|
3731
3784
|
}).parseAsync(t),
|
|
3732
|
-
responseValidator: async (e) => await
|
|
3785
|
+
responseValidator: async (e) => await cs.parseAsync(e),
|
|
3733
3786
|
url: "/api/v1/dunning-cases",
|
|
3734
3787
|
...t
|
|
3735
|
-
}),
|
|
3788
|
+
}), Yc = (t) => (t.client ?? p).post({
|
|
3736
3789
|
requestValidator: async (t) => await e.object({
|
|
3737
3790
|
body: e.never().optional(),
|
|
3738
|
-
path:
|
|
3791
|
+
path: ls,
|
|
3739
3792
|
query: e.never().optional()
|
|
3740
3793
|
}).parseAsync(t),
|
|
3741
3794
|
url: "/api/v1/dunning-cases/{uuid}/send",
|
|
3742
3795
|
...t
|
|
3743
|
-
}),
|
|
3796
|
+
}), Xc = (t) => (t.client ?? p).post({
|
|
3744
3797
|
requestValidator: async (t) => await e.object({
|
|
3745
3798
|
body: e.never().optional(),
|
|
3746
|
-
path:
|
|
3799
|
+
path: us,
|
|
3747
3800
|
query: e.never().optional()
|
|
3748
3801
|
}).parseAsync(t),
|
|
3749
3802
|
url: "/api/v1/dunning-case-reminders/{uuid}/retry",
|
|
3750
3803
|
...t
|
|
3751
|
-
}),
|
|
3804
|
+
}), Zc = (t) => (t?.client ?? p).post({
|
|
3752
3805
|
requestValidator: async (t) => await e.object({
|
|
3753
3806
|
body: e.never().optional(),
|
|
3754
3807
|
path: e.never().optional(),
|
|
3755
|
-
query:
|
|
3808
|
+
query: ds.optional()
|
|
3756
3809
|
}).parseAsync(t),
|
|
3757
|
-
responseValidator: async (e) => await
|
|
3810
|
+
responseValidator: async (e) => await fs.parseAsync(e),
|
|
3758
3811
|
url: "/api/v1/dunning-cases/send",
|
|
3759
3812
|
...t
|
|
3760
|
-
}),
|
|
3813
|
+
}), Qc = (t) => (t?.client ?? p).get({
|
|
3761
3814
|
requestValidator: async (t) => await e.object({
|
|
3762
3815
|
body: e.never().optional(),
|
|
3763
3816
|
path: e.never().optional(),
|
|
3764
|
-
query:
|
|
3817
|
+
query: ps.optional()
|
|
3765
3818
|
}).parseAsync(t),
|
|
3766
|
-
responseValidator: async (e) => await
|
|
3819
|
+
responseValidator: async (e) => await ms.parseAsync(e),
|
|
3767
3820
|
url: "/api/v1/dunning-cases/send/preview",
|
|
3768
3821
|
...t
|
|
3769
|
-
}),
|
|
3822
|
+
}), $c = (t) => (t.client ?? p).get({
|
|
3770
3823
|
requestValidator: async (t) => await e.object({
|
|
3771
3824
|
body: e.never().optional(),
|
|
3772
3825
|
path: e.never().optional(),
|
|
3773
|
-
query:
|
|
3826
|
+
query: hs
|
|
3774
3827
|
}).parseAsync(t),
|
|
3775
|
-
responseValidator: async (e) => await
|
|
3828
|
+
responseValidator: async (e) => await gs.parseAsync(e),
|
|
3776
3829
|
url: "/api/v1/public/dunning-case-reminder-invoices",
|
|
3777
3830
|
...t
|
|
3778
|
-
}),
|
|
3831
|
+
}), el = (t) => (t.client ?? p).post({
|
|
3779
3832
|
requestValidator: async (t) => await e.object({
|
|
3780
3833
|
body: e.never().optional(),
|
|
3781
|
-
path:
|
|
3834
|
+
path: _s,
|
|
3782
3835
|
query: e.never().optional()
|
|
3783
3836
|
}).parseAsync(t),
|
|
3784
3837
|
url: "/api/v1/invoices/{uuid}/send-approval",
|
|
3785
3838
|
...t
|
|
3786
|
-
}),
|
|
3839
|
+
}), tl = (t) => (t?.client ?? p).get({
|
|
3787
3840
|
requestValidator: async (t) => await e.object({
|
|
3788
3841
|
body: e.never().optional(),
|
|
3789
3842
|
path: e.never().optional(),
|
|
3790
|
-
query:
|
|
3843
|
+
query: vs.optional()
|
|
3791
3844
|
}).parseAsync(t),
|
|
3792
|
-
responseValidator: async (e) => await
|
|
3845
|
+
responseValidator: async (e) => await ys.parseAsync(e),
|
|
3793
3846
|
url: "/api/v1/invoices/send-approval/preview",
|
|
3794
3847
|
...t
|
|
3795
|
-
}),
|
|
3848
|
+
}), nl = (t) => (t?.client ?? p).post({
|
|
3796
3849
|
requestValidator: async (t) => await e.object({
|
|
3797
3850
|
body: e.never().optional(),
|
|
3798
3851
|
path: e.never().optional(),
|
|
3799
|
-
query:
|
|
3852
|
+
query: bs.optional()
|
|
3800
3853
|
}).parseAsync(t),
|
|
3801
|
-
responseValidator: async (e) => await
|
|
3854
|
+
responseValidator: async (e) => await xs.parseAsync(e),
|
|
3802
3855
|
url: "/api/v1/invoices/send-approval",
|
|
3803
3856
|
...t
|
|
3804
|
-
}),
|
|
3857
|
+
}), rl = (t) => (t.client ?? p).post({
|
|
3805
3858
|
requestValidator: async (t) => await e.object({
|
|
3806
|
-
body:
|
|
3807
|
-
path:
|
|
3859
|
+
body: Ss,
|
|
3860
|
+
path: Cs,
|
|
3808
3861
|
query: e.never().optional()
|
|
3809
3862
|
}).parseAsync(t),
|
|
3810
|
-
responseValidator: async (e) => await
|
|
3863
|
+
responseValidator: async (e) => await ws.parseAsync(e),
|
|
3811
3864
|
url: "/api/v1/invoice-approvals/{uuid}/approve",
|
|
3812
3865
|
...t,
|
|
3813
3866
|
headers: {
|
|
3814
3867
|
"Content-Type": "application/json",
|
|
3815
3868
|
...t.headers
|
|
3816
3869
|
}
|
|
3817
|
-
}),
|
|
3870
|
+
}), il = (t) => (t.client ?? p).post({
|
|
3818
3871
|
requestValidator: async (t) => await e.object({
|
|
3819
|
-
body:
|
|
3820
|
-
path:
|
|
3872
|
+
body: Ts,
|
|
3873
|
+
path: Es,
|
|
3821
3874
|
query: e.never().optional()
|
|
3822
3875
|
}).parseAsync(t),
|
|
3823
|
-
responseValidator: async (e) => await
|
|
3876
|
+
responseValidator: async (e) => await Ds.parseAsync(e),
|
|
3824
3877
|
url: "/api/v1/invoice-approvals/{uuid}/reject",
|
|
3825
3878
|
...t,
|
|
3826
3879
|
headers: {
|
|
3827
3880
|
"Content-Type": "application/json",
|
|
3828
3881
|
...t.headers
|
|
3829
3882
|
}
|
|
3830
|
-
}),
|
|
3883
|
+
}), al = (t) => (t.client ?? p).post({
|
|
3831
3884
|
requestValidator: async (t) => await e.object({
|
|
3832
3885
|
body: e.never().optional(),
|
|
3833
|
-
path:
|
|
3886
|
+
path: Os,
|
|
3834
3887
|
query: e.never().optional()
|
|
3835
3888
|
}).parseAsync(t),
|
|
3836
|
-
responseValidator: async (e) => await
|
|
3889
|
+
responseValidator: async (e) => await ks.parseAsync(e),
|
|
3837
3890
|
url: "/api/v1/invoice-approvals/{uuid}/cancel",
|
|
3838
3891
|
...t
|
|
3839
|
-
}),
|
|
3892
|
+
}), ol = (t) => (t.client ?? p).post({
|
|
3840
3893
|
requestValidator: async (t) => await e.object({
|
|
3841
3894
|
body: e.never().optional(),
|
|
3842
|
-
path:
|
|
3895
|
+
path: As,
|
|
3843
3896
|
query: e.never().optional()
|
|
3844
3897
|
}).parseAsync(t),
|
|
3845
3898
|
url: "/api/v1/invoices/{uuid}/restart-approval",
|
|
3846
3899
|
...t
|
|
3847
|
-
}),
|
|
3900
|
+
}), sl = (t) => (t?.client ?? p).get({
|
|
3848
3901
|
requestValidator: async (t) => await e.object({
|
|
3849
3902
|
body: e.never().optional(),
|
|
3850
3903
|
path: e.never().optional(),
|
|
3851
|
-
query:
|
|
3904
|
+
query: js.optional()
|
|
3852
3905
|
}).parseAsync(t),
|
|
3853
|
-
responseValidator: async (e) => await
|
|
3906
|
+
responseValidator: async (e) => await Ms.parseAsync(e),
|
|
3854
3907
|
url: "/api/v1/invoice-approvals",
|
|
3855
3908
|
...t
|
|
3856
|
-
}),
|
|
3909
|
+
}), cl = (t) => (t.client ?? p).get({
|
|
3857
3910
|
requestValidator: async (t) => await e.object({
|
|
3858
3911
|
body: e.never().optional(),
|
|
3859
3912
|
path: e.never().optional(),
|
|
3860
|
-
query:
|
|
3913
|
+
query: Ns
|
|
3861
3914
|
}).parseAsync(t),
|
|
3862
|
-
responseValidator: async (e) => await
|
|
3915
|
+
responseValidator: async (e) => await Ps.parseAsync(e),
|
|
3863
3916
|
url: "/api/v1/public/pro-formas",
|
|
3864
3917
|
...t
|
|
3865
|
-
}),
|
|
3918
|
+
}), ll = (t) => (t?.client ?? p).get({
|
|
3866
3919
|
requestValidator: async (t) => await e.object({
|
|
3867
3920
|
body: e.never().optional(),
|
|
3868
3921
|
path: e.never().optional(),
|
|
3869
3922
|
query: e.never().optional()
|
|
3870
3923
|
}).parseAsync(t),
|
|
3871
|
-
responseValidator: async (e) => await
|
|
3924
|
+
responseValidator: async (e) => await Fs.parseAsync(e),
|
|
3872
3925
|
url: "/api/v1/issuers/approval-reminder-configs",
|
|
3873
3926
|
...t
|
|
3874
|
-
}),
|
|
3927
|
+
}), ul = (t) => (t.client ?? p).patch({
|
|
3875
3928
|
requestValidator: async (t) => await e.object({
|
|
3876
|
-
body:
|
|
3929
|
+
body: Is,
|
|
3877
3930
|
path: e.never().optional(),
|
|
3878
3931
|
query: e.never().optional()
|
|
3879
3932
|
}).parseAsync(t),
|
|
3880
|
-
responseValidator: async (e) => await
|
|
3933
|
+
responseValidator: async (e) => await Ls.parseAsync(e),
|
|
3881
3934
|
url: "/api/v1/issuers/approval-reminder-configs",
|
|
3882
3935
|
...t,
|
|
3883
3936
|
headers: {
|
|
3884
3937
|
"Content-Type": "application/json",
|
|
3885
3938
|
...t.headers
|
|
3886
3939
|
}
|
|
3887
|
-
}),
|
|
3940
|
+
}), dl = (t) => (t?.client ?? p).get({
|
|
3888
3941
|
requestValidator: async (t) => await e.object({
|
|
3889
3942
|
body: e.never().optional(),
|
|
3890
3943
|
path: e.never().optional(),
|
|
3891
3944
|
query: e.never().optional()
|
|
3892
3945
|
}).parseAsync(t),
|
|
3893
|
-
responseValidator: async (e) => await
|
|
3946
|
+
responseValidator: async (e) => await Rs.parseAsync(e),
|
|
3894
3947
|
url: "/api/v1/issuers/peppol-connection",
|
|
3895
3948
|
...t
|
|
3896
|
-
}),
|
|
3949
|
+
}), fl = (t) => (t.client ?? p).put({
|
|
3897
3950
|
requestValidator: async (t) => await e.object({
|
|
3898
|
-
body:
|
|
3951
|
+
body: zs,
|
|
3899
3952
|
path: e.never().optional(),
|
|
3900
3953
|
query: e.never().optional()
|
|
3901
3954
|
}).parseAsync(t),
|
|
@@ -3905,92 +3958,92 @@ var Wa = Zn, Ga = e.object({ uuid: e.uuid() }), Ka = e.void(), qa = Qn, Ja = e.o
|
|
|
3905
3958
|
"Content-Type": "application/json",
|
|
3906
3959
|
...t.headers
|
|
3907
3960
|
}
|
|
3908
|
-
}),
|
|
3961
|
+
}), pl = (t) => (t.client ?? p).post({
|
|
3909
3962
|
requestValidator: async (t) => await e.object({
|
|
3910
|
-
body:
|
|
3963
|
+
body: Bs,
|
|
3911
3964
|
path: e.never().optional(),
|
|
3912
3965
|
query: e.never().optional()
|
|
3913
3966
|
}).parseAsync(t),
|
|
3914
|
-
responseValidator: async (e) => await
|
|
3967
|
+
responseValidator: async (e) => await Vs.parseAsync(e),
|
|
3915
3968
|
url: "/api/v1/issuers/peppol-connection/test",
|
|
3916
3969
|
...t,
|
|
3917
3970
|
headers: {
|
|
3918
3971
|
"Content-Type": "application/json",
|
|
3919
3972
|
...t.headers
|
|
3920
3973
|
}
|
|
3921
|
-
}),
|
|
3974
|
+
}), ml = (t) => (t.client ?? p).post({
|
|
3922
3975
|
requestValidator: async (t) => await e.object({
|
|
3923
|
-
body:
|
|
3924
|
-
path:
|
|
3976
|
+
body: Hs,
|
|
3977
|
+
path: Us,
|
|
3925
3978
|
query: e.never().optional()
|
|
3926
3979
|
}).parseAsync(t),
|
|
3927
|
-
responseValidator: async (e) => await
|
|
3980
|
+
responseValidator: async (e) => await Ws.parseAsync(e),
|
|
3928
3981
|
url: "/api/v1/invoices/{uuid}/send",
|
|
3929
3982
|
...t,
|
|
3930
3983
|
headers: {
|
|
3931
3984
|
"Content-Type": "application/json",
|
|
3932
3985
|
...t.headers
|
|
3933
3986
|
}
|
|
3934
|
-
}),
|
|
3987
|
+
}), hl = (t) => (t.client ?? p).post({
|
|
3935
3988
|
requestValidator: async (t) => await e.object({
|
|
3936
|
-
body:
|
|
3989
|
+
body: Gs,
|
|
3937
3990
|
path: e.never().optional(),
|
|
3938
|
-
query:
|
|
3991
|
+
query: Ks.optional()
|
|
3939
3992
|
}).parseAsync(t),
|
|
3940
|
-
responseValidator: async (e) => await
|
|
3993
|
+
responseValidator: async (e) => await qs.parseAsync(e),
|
|
3941
3994
|
url: "/api/v1/invoices/send",
|
|
3942
3995
|
...t,
|
|
3943
3996
|
headers: {
|
|
3944
3997
|
"Content-Type": "application/json",
|
|
3945
3998
|
...t.headers
|
|
3946
3999
|
}
|
|
3947
|
-
}),
|
|
4000
|
+
}), gl = (t) => (t.client ?? p).post({
|
|
3948
4001
|
requestValidator: async (t) => await e.object({
|
|
3949
|
-
body:
|
|
4002
|
+
body: Js,
|
|
3950
4003
|
path: e.never().optional(),
|
|
3951
|
-
query:
|
|
4004
|
+
query: Ys.optional()
|
|
3952
4005
|
}).parseAsync(t),
|
|
3953
|
-
responseValidator: async (e) => await
|
|
4006
|
+
responseValidator: async (e) => await Xs.parseAsync(e),
|
|
3954
4007
|
url: "/api/v1/invoices/send/preview",
|
|
3955
4008
|
...t,
|
|
3956
4009
|
headers: {
|
|
3957
4010
|
"Content-Type": "application/json",
|
|
3958
4011
|
...t.headers
|
|
3959
4012
|
}
|
|
3960
|
-
}),
|
|
4013
|
+
}), _l = (t) => (t.client ?? p).get({
|
|
3961
4014
|
requestValidator: async (t) => await e.object({
|
|
3962
4015
|
body: e.never().optional(),
|
|
3963
|
-
path:
|
|
4016
|
+
path: Zs,
|
|
3964
4017
|
query: e.never().optional()
|
|
3965
4018
|
}).parseAsync(t),
|
|
3966
|
-
responseValidator: async (e) => await
|
|
4019
|
+
responseValidator: async (e) => await Qs.parseAsync(e),
|
|
3967
4020
|
url: "/api/v1/invoices/{uuid}/deliveries",
|
|
3968
4021
|
...t
|
|
3969
|
-
}),
|
|
4022
|
+
}), vl = (t) => (t.client ?? p).post({
|
|
3970
4023
|
requestValidator: async (t) => await e.object({
|
|
3971
4024
|
body: e.never().optional(),
|
|
3972
|
-
path:
|
|
4025
|
+
path: $s,
|
|
3973
4026
|
query: e.never().optional()
|
|
3974
4027
|
}).parseAsync(t),
|
|
3975
|
-
responseValidator: async (e) => await
|
|
4028
|
+
responseValidator: async (e) => await ec.parseAsync(e),
|
|
3976
4029
|
url: "/api/v1/invoices/{uuid}/reminders",
|
|
3977
4030
|
...t
|
|
3978
4031
|
});
|
|
3979
4032
|
//#endregion
|
|
3980
4033
|
//#region src/utils/api.util.ts
|
|
3981
|
-
function
|
|
4034
|
+
function yl(e) {
|
|
3982
4035
|
return typeof e == "object" && !!e && Array.isArray(e.errors);
|
|
3983
4036
|
}
|
|
3984
|
-
function
|
|
3985
|
-
return
|
|
4037
|
+
function bl(e) {
|
|
4038
|
+
return yl(e) || e instanceof Error ? e : Error(String(e));
|
|
3986
4039
|
}
|
|
3987
|
-
var
|
|
4040
|
+
var xl = class {
|
|
3988
4041
|
static async fromPromise(e) {
|
|
3989
|
-
return await t.fromPromise(e,
|
|
4042
|
+
return await t.fromPromise(e, bl);
|
|
3990
4043
|
}
|
|
3991
4044
|
static void(e) {
|
|
3992
4045
|
return e.isErr() ? n(e.error) : r();
|
|
3993
4046
|
}
|
|
3994
4047
|
};
|
|
3995
4048
|
//#endregion
|
|
3996
|
-
export {
|
|
4049
|
+
export { Bc as $, Mc as A, vl as B, Ac as C, wc as D, Oc as E, ol as F, xc as G, pl as H, zc as I, gc as J, Sc as K, Xc as L, tl as M, gl as N, Lc as O, il as P, Gc as Q, Yc as R, yc as S, jc as T, kc as U, ml as V, ul as W, lc as X, hc as Y, fl as Z, pc as _, Wc as _t, Ic as a, qc as at, Tc as b, p as bt, nl as c, _l as ct, rc as d, Vc as dt, ll as et, Ec as f, cc as ft, Hc as g, cl as gt, fc as h, uc as ht, Rc as i, sc as it, Qc as j, Fc as k, hl as l, mc as lt, nc as m, $c as mt, _c as n, oc as nt, Nc as o, Jc as ot, bc as p, dl as pt, vc as q, rl as r, ac as rt, Zc as s, sl as st, xl as t, Kc as tt, al as u, dc as ut, Uc as v, tc as vt, Dc as w, Cc as x, ic as y, Pc as yt, el as z };
|