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