@wisemen/wise-invoicing-web 0.11.2 → 0.12.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.
Files changed (79) hide show
  1. package/dist/{ApprovalReminderSettingsViewDataProvider-D0kpogSQ.js → ApprovalReminderSettingsViewDataProvider-BnHeEMZD.js} +6 -10
  2. package/dist/{BillingDocumentDetailViewDataProvider-D_oc3-0D.js → BillingDocumentDetailViewDataProvider-Dm8C5WNN.js} +1311 -1327
  3. package/dist/{BillingDocumentPdf-wlv-k8KE.js → BillingDocumentPdf-57ksqoPW.js} +16 -22
  4. package/dist/{CreditNoteDetailViewDataProvider-DoFm2xgo.js → CreditNoteDetailViewDataProvider-CC4gnwSN.js} +154 -172
  5. package/dist/{CreditNotePdfViewDataProvider-QpzNsVsK.js → CreditNotePdfViewDataProvider-C9vgN3kV.js} +4 -4
  6. package/dist/{CustomFieldValueText-DZzqLZ0K.js → CustomFieldValueText-CvWq0fl_.js} +3 -3
  7. package/dist/{DataProvider-C3uEds9v.js → DataProvider-BtnD-BzI.js} +1 -1
  8. package/dist/{DunningCaseSendDialog-Bol8NF1J.js → DunningCaseSendDialog-CfWSrquA.js} +6 -14
  9. package/dist/{InvoiceApprovalOutOfSyncIndicator-C4ZLDRiv.js → InvoiceApprovalOutOfSyncIndicator-CKLAraIU.js} +1 -1
  10. package/dist/{InvoiceApprovalOverviewView-BAmEOum7.js → InvoiceApprovalOverviewView-DpL-vV8_.js} +10 -18
  11. package/dist/{InvoiceApprovalStatusBadge-C2Wj9b_Z.js → InvoiceApprovalStatusBadge-oVWkCqZY.js} +3 -3
  12. package/dist/{InvoiceApproveDialogDataProvider-S81Mc5oS.js → InvoiceApproveDialogDataProvider-serNDdl9.js} +16 -32
  13. package/dist/{InvoiceDetailViewDataProvider-Dqu6qlky.js → InvoiceDetailViewDataProvider-BaT7fgsi.js} +591 -665
  14. package/dist/{InvoicePdfView-D0G-Pik3.js → InvoicePdfView-MaBnd78V.js} +2 -2
  15. package/dist/{InvoicePdfViewDataProvider-DXXbPe-Z.js → InvoicePdfViewDataProvider-BIHBY608.js} +4 -4
  16. package/dist/{InvoicePublicProFormaPdfViewDataProvider-CdGFZD-G.js → InvoicePublicProFormaPdfViewDataProvider-KY8pN59k.js} +4 -4
  17. package/dist/{InvoicingFileUploadProvider-BsK5eRGE.js → InvoicingFileUploadProvider-CxmF68sz.js} +2 -2
  18. package/dist/IssuerSettingsViewDataProvider-DJzVZS8Q.js +543 -0
  19. package/dist/{PeppolSettingsViewDataProvider-ZdJQGqux.js → PeppolSettingsViewDataProvider-C7lwtu7n.js} +6 -20
  20. package/dist/{api.util-B3JqQVJA.js → api.util-Ct8FnoLB.js} +628 -547
  21. package/dist/{billingDocumentDetail.transformer-CcnSe7Fz.js → billingDocumentDetail.transformer-B3ypgtIv.js} +4 -2
  22. package/dist/client/index.d.ts +1 -1
  23. package/dist/client/types.gen.d.ts +177 -7
  24. package/dist/client/zod.gen.d.ts +406 -6
  25. package/dist/composables/invoicingConfig.composable.d.ts +15 -0
  26. package/dist/{creditNoteDetail.query-BVbXoNt-.js → creditNoteDetail.query-C2BYvPKC.js} +5 -3
  27. package/dist/{dist-DALBiuub.js → dist-BZgvL8_m.js} +19 -30
  28. package/dist/{documentTitle.composable-RvqrZTBa.js → documentTitle.composable-BqZWKGw1.js} +35 -29
  29. package/dist/{i18n.lib-BkdaaKCs.js → i18n.lib-8sQYo5_y.js} +101 -7
  30. package/dist/index.d.ts +96 -2
  31. package/dist/index.js +4517 -228
  32. package/dist/{invoice.service-jakQLnDu.js → invoice.service-CtePUw1R.js} +8 -5
  33. package/dist/{invoiceApproval.service-DR9g1Dek.js → invoiceApproval.service-CQzG8_wX.js} +2 -2
  34. package/dist/{invoiceApprovalStatus.util-Nd4E3qlZ.js → invoiceApprovalStatus.util-C4su45dU.js} +2 -2
  35. package/dist/{invoiceCustomer.service-Bp59E0ZJ.js → invoiceCustomer.service-CzbM3ey1.js} +2 -2
  36. package/dist/{invoiceDetail.query-BBhA0ZAn.js → invoiceDetail.query-NNAoIuWN.js} +1 -1
  37. package/dist/{invoiceIndexCache.util-Ba2MGULh.js → invoiceIndexCache.util-DI0WM-eW.js} +4 -8
  38. package/dist/{invoicingConfig.composable-k8p1Y_eJ.js → invoicingConfig.composable-DXJ71Uq_.js} +20 -18
  39. package/dist/issuerSettings.query-ggEHdk0S.js +204 -0
  40. package/dist/libs/i18n.lib.d.ts +96 -2
  41. package/dist/locales/en-US.json.d.ts +50 -3
  42. package/dist/locales/nl-BE.json.d.ts +51 -4
  43. package/dist/models/billing-document/billingDocumentCreditable.util.d.ts +19 -0
  44. package/dist/models/billing-document/billingDocumentCreditable.util.spec.d.ts +1 -0
  45. package/dist/models/billing-document/billingDocumentDetail.model.d.ts +2 -0
  46. package/dist/models/billing-document/billingDocumentUpdateLines.model.d.ts +2 -0
  47. package/dist/modules/invoice/models/invoice/detail/invoiceDetail.model.d.ts +4 -1
  48. package/dist/modules/invoice/models/invoice/index/invoiceIndexQueryParams.model.d.ts +1 -0
  49. package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewFilters.composable.d.ts +1 -1
  50. package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewFilters.composable.spec.d.ts +1 -0
  51. package/dist/modules/settings/api/mutations/issuerSettingsUpdate.mutation.d.ts +22 -1
  52. package/dist/modules/settings/models/issuer-settings/invoiceSequenceFormat.util.d.ts +16 -0
  53. package/dist/modules/settings/models/issuer-settings/invoiceSequenceFormat.util.spec.d.ts +1 -0
  54. package/dist/modules/settings/models/issuer-settings/issuerSettings.model.d.ts +7 -2
  55. package/dist/modules/settings/models/issuer-settings/issuerSettings.transformer.d.ts +2 -0
  56. package/dist/modules/settings/models/issuer-settings/issuerSettingsForm.model.d.ts +23 -2
  57. package/dist/modules/settings/use-cases/overview/components/InvoiceSequenceFormatFields.vue.d.ts +11 -0
  58. package/dist/modules/settings/use-cases/overview/components/InvoiceSequenceNumberPreview.vue.d.ts +12 -0
  59. package/dist/modules/settings/use-cases/overview/components/InvoiceSequencePreviewCard.vue.d.ts +13 -0
  60. package/dist/modules/settings/use-cases/overview/components/SharedSequencePreviewCard.vue.d.ts +8 -0
  61. package/dist/modules/settings/use-cases/overview/composables/sequenceFormatFields.composable.d.ts +16 -0
  62. package/dist/{reminderConfig.query-BIfCEIYX.js → reminderConfig.query-C2xT3DJH.js} +2 -2
  63. package/dist/{src-DUSgQTKr.js → src-Vz2dm4sM.js} +1 -3
  64. package/dist/style.css +1 -1
  65. package/dist/types/apiError.type.d.ts +2 -2
  66. package/dist/ui/billing-document/table/billingDocumentLineItemsTable.context.d.ts +24 -0
  67. package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsEditor.composable.d.ts +4 -0
  68. package/dist/ui/billing-document/table/utils/billingDocumentLineItemsEditor.util.d.ts +4 -0
  69. package/package.json +2 -2
  70. package/dist/DunningCaseDetailViewDataProvider-uRJFWZtQ.js +0 -439
  71. package/dist/DunningCaseOverviewView-DpQoXamE.js +0 -799
  72. package/dist/DunningCaseReminderPdfViewDataProvider-D-CfDeC8.js +0 -490
  73. package/dist/InvoiceOverviewViewDataProvider-WKzgF7cl.js +0 -1929
  74. package/dist/InvoicePublicPdfViewDataProvider-ndVoAAY3.js +0 -45
  75. package/dist/IssuerSettingsViewDataProvider-Ca7GPCDE.js +0 -193
  76. package/dist/ReminderSettingsViewDataProvider-DTC0Ud5z.js +0 -709
  77. package/dist/issuerSettings.query-BOgWdNmP.js +0 -118
  78. package/dist/rolldown-runtime-Dy4uBu1J.js +0 -11
  79. /package/dist/{DunningCaseReminderPdfViewDataProvider.css → index.css} +0 -0
@@ -487,7 +487,7 @@ var ce = (e) => te({
487
487
  })(ge({
488
488
  baseUrl: "https://vue.project-template.development.appwi.se",
489
489
  throwOnError: !0
490
- })), m = e.enum(/* @__PURE__ */ "all_permissions,api-key.create,api-key.read,api-key.read-own,api-key.delete,api-key.delete-own,custom-field-definition.read,customer.create,customer.read,customer.update,customer.deactivate,customer.reactivate,dunning-case.read,dunning-case.send,invoice-approval.approve,invoice-approval.cancel,invoice-approval.read,invoice-approval.reject,invoice-approval.restart,invoice-approval.send,invoice.create,invoice.delete,invoice.read,invoice.send-email,invoice.update,invoice.payment.create,invoice.payment.delete,invoice.payment.read,peppol-connection.update,issuer.read,issuer.update,recipient.read,recipient.create,recipient.update,recipient.delete,reminder-config.read,activity-log.read,event-log.read,file.read,file.create,file.delete,jobs.read.index,jobs.read.detail,notification.read.own,notification.read.config,notification.update.read,notification.update.unread,notification.preferences.update.channel,notification.preferences.update.preset,notification.preferences.update.types,notification.preferences.read.own,notification.migrate-type,notification.send-test,reminder-config.update,role.read,role.create,role.update,role.delete,role.cache.clear,send_push_notification,typesense,user.read,user.create,user.update,user.delete,tenant.create,tenant.read_index,tenant.read_detail,tenant.update,tenant.deactivate".split(",")), _e = e.object({
490
+ })), m = e.enum(/* @__PURE__ */ "all_permissions,api-key.create,api-key.read,api-key.read-own,api-key.delete,api-key.delete-own,custom-field-definition.read,customer.create,customer.read,customer.update,customer.deactivate,customer.reactivate,dunning-case.read,dunning-case.send,invoice-approval.approve,invoice-approval.cancel,invoice-approval.read,invoice-approval.reject,invoice-approval.restart,invoice-approval.send,invoice.create,invoice.delete,invoice.read,invoice.send-email,invoice.update,invoice.payment.create,invoice.payment.delete,invoice.payment.read,invoice.externally-created.update,peppol-connection.update,issuer.read,issuer.update,recipient.read,recipient.create,recipient.update,recipient.delete,reminder-config.read,activity-log.read,event-log.read,file.read,file.create,file.delete,jobs.read.index,jobs.read.detail,notification.read.own,notification.read.config,notification.update.read,notification.update.unread,notification.preferences.update.channel,notification.preferences.update.preset,notification.preferences.update.types,notification.preferences.read.own,notification.migrate-type,notification.send-test,reminder-config.update,role.read,role.create,role.update,role.delete,role.cache.clear,send_push_notification,typesense,user.read,user.create,user.update,user.delete,tenant.create,tenant.read_index,tenant.read_detail,tenant.update,tenant.deactivate".split(",")), _e = e.object({
491
491
  name: e.string(),
492
492
  key: m,
493
493
  description: e.string()
@@ -1175,7 +1175,29 @@ e.object({
1175
1175
  status: e.enum(["404"]),
1176
1176
  code: e.enum(["issuer_not_found"])
1177
1177
  });
1178
- var Ut = e.object({
1178
+ var Ut = e.enum([
1179
+ "none",
1180
+ "YYYY",
1181
+ "YY",
1182
+ "YYYYMM",
1183
+ "YYMM",
1184
+ "YYYYMMDD"
1185
+ ]), Wt = e.enum([
1186
+ "none",
1187
+ "hyphen",
1188
+ "slash",
1189
+ "underscore",
1190
+ "period"
1191
+ ]), Gt = e.object({
1192
+ value: Wt,
1193
+ afterPrefix: e.boolean(),
1194
+ afterDate: e.boolean()
1195
+ }), Kt = e.object({
1196
+ prefix: e.string().max(10).nullable(),
1197
+ dateFormat: Ut,
1198
+ minDigits: e.int().gte(0).lte(10),
1199
+ separator: Gt
1200
+ }), qt = e.enum(["never", "yearly"]), Jt = e.object({
1179
1201
  uuid: e.uuid(),
1180
1202
  createdAt: e.string(),
1181
1203
  updatedAt: e.string(),
@@ -1188,10 +1210,26 @@ var Ut = e.object({
1188
1210
  bic: e.string().nullable(),
1189
1211
  bankAccountNumber: e.string().nullable(),
1190
1212
  currency: y,
1191
- sequencePrefix: e.string().nullable(),
1213
+ invoiceSequenceFormat: Kt,
1214
+ creditNoteSequenceFormat: Kt,
1215
+ shareCreditNoteSequence: e.boolean(),
1216
+ isSequenceFormatChangeImmediate: e.boolean(),
1217
+ isCreditNoteSequenceChangeImmediate: e.boolean(),
1218
+ sequenceReset: qt,
1192
1219
  defaultPaymentTerm: Pt,
1193
- requiresInvoiceApprovalFile: e.boolean()
1194
- }), Wt = e.object({
1220
+ requiresInvoiceApprovalFile: e.boolean(),
1221
+ allowsEditingExternallyCreatedInvoices: e.boolean()
1222
+ });
1223
+ e.object({
1224
+ detail: e.string().optional(),
1225
+ status: e.enum(["400"]),
1226
+ code: e.enum(["sequence_date_format_incompatible_with_reset"])
1227
+ }), e.object({
1228
+ detail: e.string().optional(),
1229
+ status: e.enum(["409"]),
1230
+ code: e.enum(["sequence_sharing_would_reuse_numbers"])
1231
+ });
1232
+ var Yt = e.object({
1195
1233
  email: e.email().nullable(),
1196
1234
  name: e.string().nullable(),
1197
1235
  phoneNumber: e.string().nullable(),
@@ -1201,7 +1239,10 @@ var Ut = e.object({
1201
1239
  bankAccountNumber: e.string().nullable(),
1202
1240
  bic: e.string().nullable(),
1203
1241
  currency: y,
1204
- sequencePrefix: e.string().nullable(),
1242
+ invoiceSequenceFormat: Kt,
1243
+ creditNoteSequenceFormat: Kt.optional(),
1244
+ shareCreditNoteSequence: e.boolean().optional(),
1245
+ sequenceReset: qt,
1205
1246
  defaultPaymentTerm: Pt
1206
1247
  });
1207
1248
  e.object({
@@ -1253,7 +1294,7 @@ var T = e.object({
1253
1294
  definitionUuid: e.uuid(),
1254
1295
  type: e.enum(["reference"]),
1255
1296
  value: e.string()
1256
- }), Gt = e.enum(["standard", "credit_note"]), Kt = e.object({
1297
+ }), Xt = e.enum(["standard", "credit_note"]), Zt = e.object({
1257
1298
  uuid: e.uuid(),
1258
1299
  name: e.string().nullable(),
1259
1300
  email: e.email().nullable(),
@@ -1263,11 +1304,11 @@ var T = e.object({
1263
1304
  vatNumber: e.string().nullable(),
1264
1305
  bankAccountNumber: e.string().nullable(),
1265
1306
  alternativeBankAccountNumber: e.string().nullable()
1266
- }), qt = e.object({
1307
+ }), Qt = e.object({
1267
1308
  uuid: e.uuid(),
1268
1309
  name: e.string().nullable(),
1269
1310
  email: e.email().nullable()
1270
- }), Jt = e.object({
1311
+ }), $t = e.object({
1271
1312
  uuid: e.uuid(),
1272
1313
  name: e.string().nullable(),
1273
1314
  email: e.email().nullable(),
@@ -1279,10 +1320,10 @@ var T = e.object({
1279
1320
  "draft",
1280
1321
  "ready",
1281
1322
  "finalized"
1282
- ]), Yt = e.object({
1323
+ ]), en = e.object({
1283
1324
  locale: e.string(),
1284
1325
  value: e.string()
1285
- }), I = e.object({ items: e.array(Yt) }), Xt = e.enum([
1326
+ }), I = e.object({ items: e.array(en) }), tn = e.enum([
1286
1327
  "text",
1287
1328
  "text_array",
1288
1329
  "number",
@@ -1293,36 +1334,36 @@ var T = e.object({
1293
1334
  "multi_select",
1294
1335
  "monetary",
1295
1336
  "reference"
1296
- ]), Zt = e.object({
1337
+ ]), nn = e.object({
1297
1338
  value: e.string(),
1298
1339
  label: I,
1299
1340
  order: e.number()
1300
- }), Qt = e.object({
1341
+ }), rn = e.object({
1301
1342
  key: e.string(),
1302
1343
  order: e.number()
1303
- }), $t = e.object({
1344
+ }), an = e.object({
1304
1345
  uuid: e.uuid(),
1305
1346
  tenantUuid: e.uuid().nullable(),
1306
1347
  entityType: e.string(),
1307
1348
  key: e.string(),
1308
1349
  label: I,
1309
1350
  description: I.nullable(),
1310
- type: Xt,
1351
+ type: tn,
1311
1352
  isRequired: e.boolean(),
1312
- choices: e.array(Zt).nullable(),
1353
+ choices: e.array(nn).nullable(),
1313
1354
  rules: e.record(e.string(), e.unknown()).nullable(),
1314
- views: e.array(Qt)
1355
+ views: e.array(rn)
1315
1356
  }), L = e.enum([
1316
1357
  "0",
1317
1358
  "6",
1318
1359
  "12",
1319
1360
  "21"
1320
- ]), en = e.enum(["percentage", "amount"]), R = e.object({
1321
- type: en,
1361
+ ]), on = e.enum(["percentage", "amount"]), R = e.object({
1362
+ type: on,
1322
1363
  amount: b.nullable(),
1323
1364
  percentage: e.number().nullable(),
1324
1365
  description: e.string().nullable()
1325
- }), tn = e.enum([
1366
+ }), sn = e.enum([
1326
1367
  "piece",
1327
1368
  "hour",
1328
1369
  "day",
@@ -1332,7 +1373,7 @@ var T = e.object({
1332
1373
  "cubic_meter",
1333
1374
  "square_meter",
1334
1375
  "litre"
1335
- ]), nn = e.object({
1376
+ ]), cn = e.object({
1336
1377
  uuid: e.uuid(),
1337
1378
  groupUuid: e.uuid().nullable(),
1338
1379
  position: e.number(),
@@ -1357,9 +1398,9 @@ var T = e.object({
1357
1398
  netAmount: b,
1358
1399
  grossAmount: b,
1359
1400
  discount: R.nullable(),
1360
- unit: tn,
1401
+ unit: sn,
1361
1402
  isDiscount: e.boolean()
1362
- }), rn = e.object({
1403
+ }), ln = e.object({
1363
1404
  uuid: e.uuid(),
1364
1405
  position: e.number(),
1365
1406
  name: e.string(),
@@ -1376,35 +1417,35 @@ var T = e.object({
1376
1417
  N,
1377
1418
  P
1378
1419
  ])),
1379
- lines: e.array(nn),
1380
- groups: e.array(e.lazy(() => rn))
1381
- }), an = e.object({
1420
+ lines: e.array(cn),
1421
+ groups: e.array(e.lazy(() => ln))
1422
+ }), un = e.object({
1382
1423
  vatRate: L,
1383
1424
  netAmount: b,
1384
1425
  vatAmount: b
1385
- }), on = e.object({
1426
+ }), dn = e.object({
1386
1427
  uuid: e.uuid(),
1387
1428
  createdAt: e.iso.datetime(),
1388
1429
  status: v,
1389
1430
  sequence: e.string().nullable()
1390
- }), sn = e.enum([
1431
+ }), fn = e.enum([
1391
1432
  "unsent",
1392
1433
  "processing",
1393
1434
  "sent",
1394
1435
  "viewed",
1395
1436
  "failed"
1396
- ]), cn = e.object({
1437
+ ]), pn = e.object({
1397
1438
  uuid: e.uuid(),
1398
1439
  sequence: e.string().nullable(),
1399
- type: Gt,
1440
+ type: Xt,
1400
1441
  createdAt: e.iso.datetime(),
1401
1442
  updatedAt: e.iso.datetime(),
1402
1443
  issueOn: e.iso.date().nullable(),
1403
1444
  dueOn: e.iso.date().nullable(),
1404
1445
  deliveredOn: e.iso.date().nullable(),
1405
- issuer: Kt,
1406
- recipient: qt.nullable(),
1407
- customer: Jt,
1446
+ issuer: Zt,
1447
+ recipient: Qt.nullable(),
1448
+ customer: $t,
1408
1449
  status: v,
1409
1450
  lifecycleStatus: F,
1410
1451
  paymentReference: e.string().nullable(),
@@ -1422,10 +1463,10 @@ var T = e.object({
1422
1463
  N,
1423
1464
  P
1424
1465
  ])),
1425
- customFieldDefinitions: e.array($t),
1426
- ungroupedLines: e.array(nn),
1427
- groups: e.array(rn),
1428
- vatSummaries: e.array(an),
1466
+ customFieldDefinitions: e.array(an),
1467
+ ungroupedLines: e.array(cn),
1468
+ groups: e.array(ln),
1469
+ vatSummaries: e.array(un),
1429
1470
  grossAmount: b,
1430
1471
  netAmount: b,
1431
1472
  effectiveNet: b,
@@ -1434,18 +1475,19 @@ var T = e.object({
1434
1475
  globalDiscount: R.nullable(),
1435
1476
  advancePaymentAmount: b.nullable(),
1436
1477
  amountDue: b,
1437
- originalInvoice: on.nullable(),
1478
+ originalInvoice: dn.nullable(),
1438
1479
  externalRemarks: e.string().nullable(),
1439
- deliveryStatus: sn,
1480
+ deliveryStatus: fn,
1440
1481
  isDisputed: e.boolean()
1441
- }), ln = e.object({
1482
+ }), mn = e.object({
1442
1483
  billingDocument: w.nullish(),
1443
1484
  approval: w.nullish()
1444
- }), un = e.object({
1485
+ }), hn = e.object({
1445
1486
  customerUuid: e.uuid(),
1446
1487
  requiresPriorApproval: e.boolean().optional(),
1447
- contactOverride: ln.optional()
1448
- }), dn = e.object({ uuid: e.uuid() }), fn = e.object({
1488
+ isExternallyCreated: e.boolean().optional(),
1489
+ contactOverride: mn.optional()
1490
+ }), gn = e.object({ uuid: e.uuid() }), _n = e.object({
1449
1491
  uuid: e.uuid(),
1450
1492
  name: e.string().nullable(),
1451
1493
  email: e.email().nullable(),
@@ -1455,14 +1497,14 @@ var T = e.object({
1455
1497
  vatNumber: e.string().nullable(),
1456
1498
  bankAccountNumber: e.string().nullable(),
1457
1499
  alternativeBankAccountNumber: e.string().nullable()
1458
- }), pn = e.object({
1500
+ }), vn = e.object({
1459
1501
  uuid: e.uuid(),
1460
1502
  name: e.string().nullable(),
1461
1503
  email: e.email().nullable()
1462
- }), mn = e.object({
1504
+ }), yn = e.object({
1463
1505
  billingDocument: C.nullable(),
1464
1506
  approval: C.nullable()
1465
- }), hn = e.object({
1507
+ }), bn = e.object({
1466
1508
  uuid: e.uuid(),
1467
1509
  name: e.string().nullable(),
1468
1510
  email: e.email().nullable(),
@@ -1472,16 +1514,17 @@ var T = e.object({
1472
1514
  vatNumber: e.string().nullable(),
1473
1515
  type: _,
1474
1516
  approvalEmail: e.email().nullable()
1475
- }), gn = e.object({
1517
+ }), xn = e.object({
1476
1518
  uuid: e.uuid(),
1477
1519
  quantity: e.number(),
1478
1520
  remainingQuantity: e.number().nullable()
1479
- }), _n = e.object({
1521
+ }), Sn = e.object({
1480
1522
  uuid: e.uuid(),
1481
1523
  groupUuid: e.uuid().nullable(),
1482
1524
  position: e.number(),
1483
1525
  name: e.string(),
1484
1526
  description: e.string().nullable(),
1527
+ externalId: e.string().nullable(),
1485
1528
  customFields: e.array(e.union([
1486
1529
  T,
1487
1530
  E,
@@ -1501,14 +1544,15 @@ var T = e.object({
1501
1544
  netAmount: b,
1502
1545
  grossAmount: b,
1503
1546
  discount: R.nullable(),
1504
- unit: tn,
1547
+ unit: sn,
1505
1548
  isDiscount: e.boolean(),
1506
- originalLine: gn.nullable()
1507
- }), vn = e.object({
1549
+ originalLine: xn.nullable()
1550
+ }), Cn = e.object({
1508
1551
  uuid: e.uuid(),
1509
1552
  position: e.number(),
1510
1553
  name: e.string(),
1511
1554
  description: e.string().nullable(),
1555
+ externalId: e.string().nullable(),
1512
1556
  customFields: e.array(e.union([
1513
1557
  T,
1514
1558
  E,
@@ -1521,18 +1565,18 @@ var T = e.object({
1521
1565
  N,
1522
1566
  P
1523
1567
  ])),
1524
- lines: e.array(_n),
1525
- groups: e.array(e.lazy(() => vn))
1526
- }), yn = e.object({
1568
+ lines: e.array(Sn),
1569
+ groups: e.array(e.lazy(() => Cn))
1570
+ }), wn = e.object({
1527
1571
  vatRate: L,
1528
1572
  netAmount: b,
1529
1573
  vatAmount: b
1530
- }), bn = e.object({
1574
+ }), Tn = e.object({
1531
1575
  uuid: e.uuid(),
1532
1576
  name: e.string(),
1533
1577
  mimeType: Ae,
1534
1578
  blurHash: e.string().nullable()
1535
- }), xn = e.object({
1579
+ }), En = e.object({
1536
1580
  uuid: e.uuid(),
1537
1581
  createdAt: e.iso.datetime(),
1538
1582
  status: v,
@@ -1542,15 +1586,15 @@ var T = e.object({
1542
1586
  paidAmount: b.nullable(),
1543
1587
  balanceDueAmount: b.nullable(),
1544
1588
  creditableAmount: b.nullable()
1545
- }), Sn = e.object({
1589
+ }), Dn = e.object({
1546
1590
  uuid: e.string(),
1547
1591
  firstName: e.string().nullable(),
1548
1592
  lastName: e.string().nullable()
1549
- }), Cn = e.enum(["user", "service_user"]), wn = e.object({
1593
+ }), On = e.enum(["user", "service_user"]), kn = e.object({
1550
1594
  uuid: e.uuid(),
1551
1595
  firstName: e.string().nullable(),
1552
1596
  lastName: e.string().nullable(),
1553
- type: Cn
1597
+ type: On
1554
1598
  }), z = e.enum([
1555
1599
  "unpaid",
1556
1600
  "partially_paid",
@@ -1558,20 +1602,20 @@ var T = e.object({
1558
1602
  "overpaid",
1559
1603
  "credited",
1560
1604
  "settled"
1561
- ]), Tn = e.object({
1605
+ ]), An = e.object({
1562
1606
  uuid: e.uuid(),
1563
1607
  sentAt: e.iso.datetime()
1564
- }), En = e.enum(["after_last_reminder", "after_due_date"]), Dn = e.object({
1608
+ }), jn = e.enum(["after_last_reminder", "after_due_date"]), Mn = e.object({
1565
1609
  uuid: e.uuid(),
1566
1610
  sequence: e.number(),
1567
- schedule: En,
1611
+ schedule: jn,
1568
1612
  offsetDays: e.number()
1569
- }), On = e.enum([
1613
+ }), Nn = e.enum([
1570
1614
  "approved",
1571
1615
  "rejected",
1572
1616
  "requested",
1573
1617
  "expired"
1574
- ]), kn = e.enum([
1618
+ ]), Pn = e.enum([
1575
1619
  "incorrect_price",
1576
1620
  "incorrect_quantity",
1577
1621
  "incorrect_customer_or_reference_data",
@@ -1579,34 +1623,34 @@ var T = e.object({
1579
1623
  "missing_or_incorrect_attachment",
1580
1624
  "missing_or_incorrect_po_reference",
1581
1625
  "other"
1582
- ]), An = e.union([e.literal(1), e.literal(2)]), jn = e.object({
1626
+ ]), Fn = e.union([e.literal(1), e.literal(2)]), In = e.object({
1583
1627
  uuid: e.uuid(),
1584
1628
  sentAt: e.string().nullable(),
1585
- status: On,
1629
+ status: Nn,
1586
1630
  answeredAt: e.string().nullable(),
1587
1631
  customerRemark: e.string().nullable(),
1588
- proFormaFile: bn.nullable(),
1589
- approvalProofs: e.array(bn),
1632
+ proFormaFile: Tn.nullable(),
1633
+ approvalProofs: e.array(Tn),
1590
1634
  isActive: e.boolean(),
1591
1635
  remarks: e.string().nullable(),
1592
- rejectionReason: kn.nullable(),
1593
- level: An.nullable(),
1636
+ rejectionReason: Pn.nullable(),
1637
+ level: Fn.nullable(),
1594
1638
  reminderSentAt: e.iso.datetime().nullable()
1595
- }), Mn = e.object({
1639
+ }), Ln = e.object({
1596
1640
  uuid: e.uuid(),
1597
1641
  sequence: e.string().nullable(),
1598
- type: Gt,
1642
+ type: Xt,
1599
1643
  createdAt: e.iso.datetime(),
1600
1644
  updatedAt: e.iso.datetime(),
1601
1645
  issueOn: e.iso.date().nullable(),
1602
1646
  dueOn: e.iso.date().nullable(),
1603
1647
  deliveredOn: e.iso.date().nullable(),
1604
- issuer: fn,
1605
- recipient: pn.nullable(),
1648
+ issuer: _n,
1649
+ recipient: vn.nullable(),
1606
1650
  billingDocumentRecipient: C.nullable(),
1607
1651
  approvalRecipient: C.nullable(),
1608
- contactOverride: mn,
1609
- customer: hn,
1652
+ contactOverride: yn,
1653
+ customer: bn,
1610
1654
  status: v,
1611
1655
  lifecycleStatus: F,
1612
1656
  paymentReference: e.string().nullable(),
@@ -1624,23 +1668,23 @@ var T = e.object({
1624
1668
  N,
1625
1669
  P
1626
1670
  ])),
1627
- ungroupedLines: e.array(_n),
1628
- groups: e.array(vn),
1629
- vatSummaries: e.array(yn),
1671
+ ungroupedLines: e.array(Sn),
1672
+ groups: e.array(Cn),
1673
+ vatSummaries: e.array(wn),
1630
1674
  grossAmount: b,
1631
1675
  netAmount: b,
1632
1676
  effectiveNet: b,
1633
1677
  vatAmount: b,
1634
1678
  totalDiscountAmount: b.nullable(),
1635
1679
  globalDiscount: R.nullable(),
1636
- attachments: e.array(bn),
1637
- approvalProofs: e.array(bn),
1638
- rejectionFiles: e.array(bn),
1639
- creditNotes: e.array(xn),
1640
- originalInvoice: xn.nullable(),
1641
- preparedBy: Sn,
1642
- lastUpdatedBy: wn.nullable(),
1643
- file: bn.nullable(),
1680
+ attachments: e.array(Tn),
1681
+ approvalProofs: e.array(Tn),
1682
+ rejectionFiles: e.array(Tn),
1683
+ creditNotes: e.array(En),
1684
+ originalInvoice: En.nullable(),
1685
+ preparedBy: Dn,
1686
+ lastUpdatedBy: kn.nullable(),
1687
+ file: Tn.nullable(),
1644
1688
  externalRemarks: e.string().nullable(),
1645
1689
  paidAmount: b.nullable(),
1646
1690
  settlementStatus: z,
@@ -1648,22 +1692,24 @@ var T = e.object({
1648
1692
  advancePaymentAmount: b.nullable(),
1649
1693
  amountDue: b,
1650
1694
  currency: y,
1651
- deliveryStatus: sn,
1695
+ deliveryStatus: fn,
1652
1696
  isDisputed: e.boolean(),
1653
1697
  isOverdue: e.boolean(),
1654
- reminders: e.array(Tn),
1655
- reminderConfigs: e.array(Dn),
1698
+ reminders: e.array(An),
1699
+ reminderConfigs: e.array(Mn),
1656
1700
  requiresPriorApproval: e.boolean(),
1657
- approval: e.array(jn),
1658
- hasChangesSinceApprovalSent: e.boolean()
1659
- }), Nn = e.enum([
1701
+ approval: e.array(In),
1702
+ hasChangesSinceApprovalSent: e.boolean(),
1703
+ isEditable: e.boolean(),
1704
+ isExternallyCreated: e.boolean()
1705
+ }), Rn = e.enum([
1660
1706
  "created_at",
1661
1707
  "issued_on",
1662
1708
  "sequence",
1663
1709
  "customer",
1664
1710
  "netAmount"
1665
- ]), Pn = e.object({
1666
- key: Nn,
1711
+ ]), zn = e.object({
1712
+ key: Rn,
1667
1713
  order: yt
1668
1714
  }), B = e.object({
1669
1715
  definitionUuid: e.uuid(),
@@ -1712,8 +1758,8 @@ var T = e.object({
1712
1758
  e.enum(["infinity"]),
1713
1759
  e.enum(["-infinity"])
1714
1760
  ])
1715
- }), Fn = e.enum(["include", "exclude"]), X = e.object({
1716
- scope: Fn,
1761
+ }), Bn = e.enum(["include", "exclude"]), X = e.object({
1762
+ scope: Bn,
1717
1763
  values: e.array(e.uuid())
1718
1764
  }), Z = e.enum([
1719
1765
  "no_approval_required",
@@ -1723,7 +1769,7 @@ var T = e.object({
1723
1769
  "approved",
1724
1770
  "rejected",
1725
1771
  "expired"
1726
- ]), In = e.object({
1772
+ ]), Vn = e.object({
1727
1773
  statuses: e.array(v).optional(),
1728
1774
  lifecycleStatuses: e.array(F).optional(),
1729
1775
  customerUuids: e.array(e.uuid()).optional(),
@@ -1748,24 +1794,25 @@ var T = e.object({
1748
1794
  ])).optional(),
1749
1795
  hasChangesSinceApprovalSent: e.boolean().optional(),
1750
1796
  approvalStatuses: e.array(Z).optional(),
1751
- isApprovalCancelled: e.boolean().optional()
1752
- }), Ln = e.object({
1797
+ isApprovalCancelled: e.boolean().optional(),
1798
+ isExternallyCreated: e.boolean().optional()
1799
+ }), Hn = e.object({
1753
1800
  uuid: e.uuid(),
1754
1801
  externalId: e.string().nullable(),
1755
1802
  name: e.string()
1756
- }), Rn = e.object({
1757
- status: On,
1758
- level: An.nullable(),
1803
+ }), Un = e.object({
1804
+ status: Nn,
1805
+ level: Fn.nullable(),
1759
1806
  sentAt: e.iso.datetime().nullable(),
1760
1807
  reminderSentAt: e.iso.datetime().nullable()
1761
- }), zn = e.object({
1808
+ }), Wn = e.object({
1762
1809
  uuid: e.uuid(),
1763
- type: Gt,
1810
+ type: Xt,
1764
1811
  createdAt: e.iso.datetime(),
1765
1812
  issuedOn: e.iso.date().nullable(),
1766
1813
  dueOn: e.iso.date().nullable(),
1767
1814
  subject: e.string().nullable(),
1768
- customer: Ln,
1815
+ customer: Hn,
1769
1816
  status: v,
1770
1817
  lifecycleStatus: F,
1771
1818
  netAmount: b,
@@ -1777,7 +1824,7 @@ var T = e.object({
1777
1824
  balanceDueAmount: b.nullable(),
1778
1825
  isDisputed: e.boolean(),
1779
1826
  isOverdue: e.boolean(),
1780
- deliveryStatus: sn,
1827
+ deliveryStatus: fn,
1781
1828
  customFields: e.array(e.union([
1782
1829
  T,
1783
1830
  E,
@@ -1792,9 +1839,9 @@ var T = e.object({
1792
1839
  ])),
1793
1840
  requiresPriorApproval: e.boolean(),
1794
1841
  hasChangesSinceApprovalSent: e.boolean(),
1795
- approval: Rn.nullable()
1796
- }), Bn = e.object({
1797
- items: e.array(zn),
1842
+ approval: Un.nullable()
1843
+ }), Gn = e.object({
1844
+ items: e.array(Wn),
1798
1845
  meta: g
1799
1846
  });
1800
1847
  e.object({
@@ -1809,8 +1856,12 @@ e.object({
1809
1856
  detail: e.string().optional(),
1810
1857
  status: e.enum(["409"]),
1811
1858
  code: e.enum(["can_not_change_invoice_customer_with_approval_created"])
1859
+ }), e.object({
1860
+ detail: e.string().optional(),
1861
+ status: e.enum(["403"]),
1862
+ code: e.enum(["externally_created_invoice_not_editable"])
1812
1863
  });
1813
- var Vn = e.object({
1864
+ var Kn = e.object({
1814
1865
  issuedOn: e.iso.date(),
1815
1866
  deliveredOn: e.iso.date().nullable(),
1816
1867
  dueOn: e.iso.date(),
@@ -1818,7 +1869,7 @@ var Vn = e.object({
1818
1869
  subject: e.string().nullable(),
1819
1870
  preparedByUuid: e.uuid(),
1820
1871
  recipientUuid: e.uuid().nullish(),
1821
- contactOverride: ln.optional(),
1872
+ contactOverride: mn.optional(),
1822
1873
  externalRemarks: e.string().nullable(),
1823
1874
  customerUuid: e.uuid().optional(),
1824
1875
  customFields: e.array(e.union([
@@ -1855,15 +1906,16 @@ e.object({
1855
1906
  status: e.enum(["400"]),
1856
1907
  code: e.enum(["invoice_line_group_max_depth_exceeded"])
1857
1908
  });
1858
- var Hn = e.object({
1909
+ var qn = e.object({
1859
1910
  name: e.string(),
1860
1911
  description: e.string().nullable(),
1912
+ externalId: e.string().nullish(),
1861
1913
  position: e.int(),
1862
1914
  quantity: e.number().lte(1e4),
1863
1915
  unitPrice: b,
1864
1916
  vatRate: L,
1865
1917
  discount: R.nullable(),
1866
- unit: tn,
1918
+ unit: sn,
1867
1919
  isDiscount: e.boolean(),
1868
1920
  customFields: e.array(e.union([
1869
1921
  T,
@@ -1877,11 +1929,12 @@ var Hn = e.object({
1877
1929
  N,
1878
1930
  P
1879
1931
  ])).optional()
1880
- }), Un = e.object({
1932
+ }), Jn = e.object({
1881
1933
  name: e.string(),
1882
1934
  description: e.string().nullable(),
1935
+ externalId: e.string().nullish(),
1883
1936
  position: e.int(),
1884
- lines: e.array(Hn),
1937
+ lines: e.array(qn),
1885
1938
  customFields: e.array(e.union([
1886
1939
  T,
1887
1940
  E,
@@ -1894,23 +1947,23 @@ var Hn = e.object({
1894
1947
  N,
1895
1948
  P
1896
1949
  ])).optional(),
1897
- groups: e.array(e.lazy(() => Un)).optional()
1898
- }), Wn = e.object({
1899
- groups: e.array(Un),
1900
- ungroupedLines: e.array(Hn)
1950
+ groups: e.array(e.lazy(() => Jn)).optional()
1951
+ }), Yn = e.object({
1952
+ groups: e.array(Jn),
1953
+ ungroupedLines: e.array(qn)
1901
1954
  });
1902
1955
  e.object({
1903
1956
  detail: e.string().optional(),
1904
1957
  status: e.enum(["409"]),
1905
1958
  code: e.enum(["global_discount_exceeds_total_net"])
1906
1959
  }), e.object({ discount: R.nullable() });
1907
- var Gn = e.object({ discount: R });
1960
+ var Xn = e.object({ discount: R });
1908
1961
  e.object({
1909
1962
  detail: e.string().optional(),
1910
1963
  status: e.enum(["409"]),
1911
1964
  code: e.enum(["file_unconfirmed"])
1912
1965
  });
1913
- var Kn = e.object({ fileUuids: e.array(e.uuid()) });
1966
+ var Zn = e.object({ fileUuids: e.array(e.uuid()) });
1914
1967
  e.object({
1915
1968
  detail: e.string().optional(),
1916
1969
  status: e.enum(["404"]),
@@ -1924,15 +1977,33 @@ e.object({
1924
1977
  status: e.enum(["409"]),
1925
1978
  code: e.enum(["invoice_already_finalized"])
1926
1979
  });
1927
- var qn = e.object({
1928
- approvalStatus: On.nullable(),
1929
- level: An.nullable()
1980
+ var Qn = e.object({
1981
+ approvalStatus: Nn.nullable(),
1982
+ level: Fn.nullable()
1930
1983
  });
1931
1984
  e.object({
1932
1985
  detail: e.string().optional(),
1933
1986
  status: e.enum(["409"]),
1934
1987
  code: e.enum(["invoice_finalization_requires_approval"]),
1935
- meta: qn
1988
+ meta: Qn
1989
+ }), e.object({
1990
+ detail: e.string().optional(),
1991
+ status: e.enum(["400"]),
1992
+ code: e.enum(["invoice_issued_on_in_future"])
1993
+ });
1994
+ var $n = e.object({ lastIssuedOn: e.iso.date() });
1995
+ e.object({
1996
+ detail: e.string().optional(),
1997
+ status: e.enum(["409"]),
1998
+ code: e.enum(["invoice_issued_on_before_last_issued"]),
1999
+ meta: $n
2000
+ });
2001
+ var er = e.object({ periodEndedOn: e.iso.date() });
2002
+ e.object({
2003
+ detail: e.string().optional(),
2004
+ status: e.enum(["409"]),
2005
+ code: e.enum(["invoice_issued_on_in_closed_period"]),
2006
+ meta: er
1936
2007
  }), e.object({
1937
2008
  detail: e.string().optional(),
1938
2009
  status: e.enum(["409"]),
@@ -1944,23 +2015,24 @@ e.object({
1944
2015
  }), e.object({
1945
2016
  detail: e.string().optional(),
1946
2017
  status: e.enum(["409"]),
1947
- code: e.enum(["credit_note_settled"])
2018
+ code: e.enum(["invoice_fully_credited"])
1948
2019
  });
1949
- var Jn = e.object({ uuid: e.uuid() });
2020
+ var tr = e.object({ uuid: e.uuid() });
1950
2021
  e.object({
1951
2022
  detail: e.string().optional(),
1952
2023
  status: e.enum(["409"]),
1953
2024
  code: e.enum(["invoice_not_credit_note"])
1954
2025
  });
1955
- var Yn = e.object({
2026
+ var nr = e.object({
1956
2027
  name: e.string(),
1957
2028
  description: e.string().nullable(),
2029
+ externalId: e.string().nullish(),
1958
2030
  position: e.int(),
1959
2031
  quantity: e.number().lte(1e4),
1960
2032
  unitPrice: b,
1961
2033
  vatRate: L,
1962
2034
  discount: R.nullable(),
1963
- unit: tn,
2035
+ unit: sn,
1964
2036
  isDiscount: e.boolean(),
1965
2037
  customFields: e.array(e.union([
1966
2038
  T,
@@ -1974,11 +2046,12 @@ var Yn = e.object({
1974
2046
  N,
1975
2047
  P
1976
2048
  ])).optional()
1977
- }), Xn = e.object({
2049
+ }), rr = e.object({
1978
2050
  name: e.string(),
1979
2051
  description: e.string().nullable(),
2052
+ externalId: e.string().nullish(),
1980
2053
  position: e.int(),
1981
- lines: e.array(Yn),
2054
+ lines: e.array(nr),
1982
2055
  customFields: e.array(e.union([
1983
2056
  T,
1984
2057
  E,
@@ -1991,16 +2064,16 @@ var Yn = e.object({
1991
2064
  N,
1992
2065
  P
1993
2066
  ])).optional(),
1994
- groups: e.array(e.lazy(() => Xn)).optional()
1995
- }), Zn = e.object({
1996
- groups: e.array(Xn),
1997
- ungroupedLines: e.array(Yn)
1998
- }), Qn = e.object({ billingDocument: w.nullish() }), $n = e.object({
2067
+ groups: e.array(e.lazy(() => rr)).optional()
2068
+ }), ir = e.object({
2069
+ groups: e.array(rr),
2070
+ ungroupedLines: e.array(nr)
2071
+ }), ar = e.object({ billingDocument: w.nullish() }), or = e.object({
1999
2072
  issuedOn: e.iso.date(),
2000
2073
  poNumber: e.string().nullable(),
2001
2074
  subject: e.string().nullable(),
2002
2075
  recipientUuid: e.uuid().nullish(),
2003
- contactOverride: Qn.optional(),
2076
+ contactOverride: ar.optional(),
2004
2077
  externalRemarks: e.string().nullable(),
2005
2078
  preparedByUuid: e.uuid().optional(),
2006
2079
  customFields: e.array(e.union([
@@ -2045,7 +2118,7 @@ e.object({
2045
2118
  status: e.enum(["503"]),
2046
2119
  code: e.enum(["mail_unavailable"])
2047
2120
  });
2048
- var er = e.object({
2121
+ var sr = e.object({
2049
2122
  statuses: e.array(v).optional(),
2050
2123
  lifecycleStatuses: e.array(F).optional(),
2051
2124
  customerUuids: e.array(e.uuid()).optional(),
@@ -2070,29 +2143,30 @@ var er = e.object({
2070
2143
  ])).optional(),
2071
2144
  hasChangesSinceApprovalSent: e.boolean().optional(),
2072
2145
  approvalStatuses: e.array(Z).optional(),
2073
- isApprovalCancelled: e.boolean().optional()
2146
+ isApprovalCancelled: e.boolean().optional(),
2147
+ isExternallyCreated: e.boolean().optional()
2074
2148
  }), Q = e.object({
2075
2149
  total: e.number(),
2076
2150
  processed: e.number(),
2077
2151
  skipped: e.number()
2078
- }), tr = e.object({ pointer: e.string() }), nr = e.object({
2152
+ }), cr = e.object({ pointer: e.string() }), lr = e.object({
2079
2153
  code: e.string(),
2080
2154
  detail: e.string().optional(),
2081
2155
  title: e.string().optional(),
2082
2156
  id: e.string().optional(),
2083
2157
  status: e.string().optional(),
2084
- source: tr.optional(),
2158
+ source: cr.optional(),
2085
2159
  meta: e.record(e.string(), e.unknown()).optional()
2086
- }), rr = e.object({
2160
+ }), ur = e.object({
2087
2161
  status: e.number(),
2088
- errors: e.array(nr)
2162
+ errors: e.array(lr)
2089
2163
  }), $ = e.object({
2090
2164
  uuid: e.string(),
2091
- errors: e.array(rr)
2092
- }), ir = e.object({
2165
+ errors: e.array(ur)
2166
+ }), dr = e.object({
2093
2167
  meta: Q,
2094
2168
  skipped: e.array($)
2095
- }), ar = e.object({
2169
+ }), fr = e.object({
2096
2170
  statuses: e.array(v).optional(),
2097
2171
  lifecycleStatuses: e.array(F).optional(),
2098
2172
  customerUuids: e.array(e.uuid()).optional(),
@@ -2117,8 +2191,9 @@ var er = e.object({
2117
2191
  ])).optional(),
2118
2192
  hasChangesSinceApprovalSent: e.boolean().optional(),
2119
2193
  approvalStatuses: e.array(Z).optional(),
2120
- isApprovalCancelled: e.boolean().optional()
2121
- }), or = e.object({
2194
+ isApprovalCancelled: e.boolean().optional(),
2195
+ isExternallyCreated: e.boolean().optional()
2196
+ }), pr = e.object({
2122
2197
  meta: Q,
2123
2198
  skipped: e.array($)
2124
2199
  });
@@ -2135,7 +2210,7 @@ e.object({
2135
2210
  status: e.enum(["409"]),
2136
2211
  code: e.enum(["delete_invoice_with_approval"])
2137
2212
  });
2138
- var sr = e.object({ uuid: e.uuid() });
2213
+ var mr = e.object({ uuid: e.uuid() });
2139
2214
  e.object({
2140
2215
  detail: e.string().optional(),
2141
2216
  status: e.enum(["409"]),
@@ -2149,7 +2224,7 @@ e.object({
2149
2224
  status: e.enum(["409"]),
2150
2225
  code: e.enum(["invoice_status_not_eligible_for_paid"])
2151
2226
  });
2152
- var cr = e.object({
2227
+ var hr = e.object({
2153
2228
  statuses: e.array(v).optional(),
2154
2229
  lifecycleStatuses: e.array(F).optional(),
2155
2230
  customerUuids: e.array(e.uuid()).optional(),
@@ -2174,11 +2249,12 @@ var cr = e.object({
2174
2249
  ])).optional(),
2175
2250
  hasChangesSinceApprovalSent: e.boolean().optional(),
2176
2251
  approvalStatuses: e.array(Z).optional(),
2177
- isApprovalCancelled: e.boolean().optional()
2178
- }), lr = e.object({
2252
+ isApprovalCancelled: e.boolean().optional(),
2253
+ isExternallyCreated: e.boolean().optional()
2254
+ }), gr = e.object({
2179
2255
  meta: Q,
2180
2256
  skipped: e.array($)
2181
- }), ur = e.object({
2257
+ }), _r = e.object({
2182
2258
  statuses: e.array(v).optional(),
2183
2259
  lifecycleStatuses: e.array(F).optional(),
2184
2260
  customerUuids: e.array(e.uuid()).optional(),
@@ -2203,8 +2279,9 @@ var cr = e.object({
2203
2279
  ])).optional(),
2204
2280
  hasChangesSinceApprovalSent: e.boolean().optional(),
2205
2281
  approvalStatuses: e.array(Z).optional(),
2206
- isApprovalCancelled: e.boolean().optional()
2207
- }), dr = e.object({
2282
+ isApprovalCancelled: e.boolean().optional(),
2283
+ isExternallyCreated: e.boolean().optional()
2284
+ }), vr = e.object({
2208
2285
  meta: Q,
2209
2286
  skipped: e.array($)
2210
2287
  });
@@ -2213,7 +2290,7 @@ e.object({
2213
2290
  status: e.enum(["409"]),
2214
2291
  code: e.enum(["invoice_not_disputed"])
2215
2292
  });
2216
- var fr = e.object({
2293
+ var yr = e.object({
2217
2294
  statuses: e.array(v).optional(),
2218
2295
  lifecycleStatuses: e.array(F).optional(),
2219
2296
  customerUuids: e.array(e.uuid()).optional(),
@@ -2238,11 +2315,12 @@ var fr = e.object({
2238
2315
  ])).optional(),
2239
2316
  hasChangesSinceApprovalSent: e.boolean().optional(),
2240
2317
  approvalStatuses: e.array(Z).optional(),
2241
- isApprovalCancelled: e.boolean().optional()
2242
- }), pr = e.object({
2318
+ isApprovalCancelled: e.boolean().optional(),
2319
+ isExternallyCreated: e.boolean().optional()
2320
+ }), br = e.object({
2243
2321
  meta: Q,
2244
2322
  skipped: e.array($)
2245
- }), mr = e.object({
2323
+ }), xr = e.object({
2246
2324
  statuses: e.array(v).optional(),
2247
2325
  lifecycleStatuses: e.array(F).optional(),
2248
2326
  customerUuids: e.array(e.uuid()).optional(),
@@ -2267,8 +2345,9 @@ var fr = e.object({
2267
2345
  ])).optional(),
2268
2346
  hasChangesSinceApprovalSent: e.boolean().optional(),
2269
2347
  approvalStatuses: e.array(Z).optional(),
2270
- isApprovalCancelled: e.boolean().optional()
2271
- }), hr = e.object({
2348
+ isApprovalCancelled: e.boolean().optional(),
2349
+ isExternallyCreated: e.boolean().optional()
2350
+ }), Sr = e.object({
2272
2351
  meta: Q,
2273
2352
  skipped: e.array($)
2274
2353
  });
@@ -2277,7 +2356,7 @@ e.object({
2277
2356
  status: e.enum(["404"]),
2278
2357
  code: e.enum(["pro_forma_not_found"])
2279
2358
  });
2280
- var gr = e.object({
2359
+ var Cr = e.object({
2281
2360
  entityUuids: e.array(e.uuid()).optional(),
2282
2361
  entityTypes: e.array(e.enum([
2283
2362
  "customer",
@@ -2295,13 +2374,13 @@ var gr = e.object({
2295
2374
  "approval",
2296
2375
  "attachment"
2297
2376
  ])).optional()
2298
- }), _r = e.object({
2377
+ }), wr = e.object({
2299
2378
  createdAt: e.string(),
2300
2379
  uuid: e.uuid()
2301
- }), vr = e.object({
2380
+ }), Tr = e.object({
2302
2381
  limit: e.number().gte(0).lte(100).optional(),
2303
- key: _r.nullish()
2304
- }), yr = e.enum([
2382
+ key: wr.nullish()
2383
+ }), Er = e.enum([
2305
2384
  "invoice-created",
2306
2385
  "invoice-updated",
2307
2386
  "invoice-finalized",
@@ -2325,40 +2404,40 @@ var gr = e.object({
2325
2404
  "credit-note-created",
2326
2405
  "credit-note-updated",
2327
2406
  "customer-updated"
2328
- ]), br = e.enum([
2407
+ ]), Dr = e.enum([
2329
2408
  "create",
2330
2409
  "update",
2331
2410
  "delete"
2332
- ]), xr = e.enum([
2411
+ ]), Or = e.enum([
2333
2412
  "user",
2334
2413
  "service",
2335
2414
  "system"
2336
- ]), Sr = e.object({
2415
+ ]), kr = e.object({
2337
2416
  uuid: e.uuid(),
2338
2417
  firstName: e.string().nullable(),
2339
2418
  lastName: e.string().nullable(),
2340
2419
  email: e.string().nullable()
2341
- }), Cr = e.enum([
2420
+ }), Ar = e.enum([
2342
2421
  "actor",
2343
2422
  "customer",
2344
2423
  "invoice",
2345
2424
  "credit_note",
2346
2425
  "approval",
2347
2426
  "attachment"
2348
- ]), wr = e.enum([
2427
+ ]), jr = e.enum([
2349
2428
  "customer",
2350
2429
  "invoice",
2351
2430
  "credit_note",
2352
2431
  "approval",
2353
2432
  "api_key",
2354
2433
  "file"
2355
- ]), Tr = e.object({
2356
- role: Cr,
2357
- type: wr,
2434
+ ]), Mr = e.object({
2435
+ role: Ar,
2436
+ type: jr,
2358
2437
  uuid: e.uuid(),
2359
2438
  label: e.string().nullable()
2360
- }), Er = e.object({
2361
- entityRole: Cr,
2439
+ }), Nr = e.object({
2440
+ entityRole: Ar,
2362
2441
  field: e.string(),
2363
2442
  from: e.union([
2364
2443
  e.string(),
@@ -2370,17 +2449,17 @@ var gr = e.object({
2370
2449
  e.number(),
2371
2450
  e.boolean()
2372
2451
  ]).nullable()
2373
- }), Dr = e.object({
2452
+ }), Pr = e.object({
2374
2453
  createdAt: e.iso.datetime(),
2375
- action: yr,
2376
- changeType: br,
2377
- actorType: xr,
2378
- actor: Sr.nullable(),
2379
- entities: e.array(Tr),
2380
- changes: e.array(Er).nullable()
2381
- }), Or = e.object({
2382
- logs: e.array(Dr),
2383
- nextKey: _r.nullable()
2454
+ action: Er,
2455
+ changeType: Dr,
2456
+ actorType: Or,
2457
+ actor: kr.nullable(),
2458
+ entities: e.array(Mr),
2459
+ changes: e.array(Nr).nullable()
2460
+ }), Fr = e.object({
2461
+ logs: e.array(Pr),
2462
+ nextKey: wr.nullable()
2384
2463
  });
2385
2464
  e.object({
2386
2465
  detail: e.string().optional(),
@@ -2395,14 +2474,14 @@ e.object({
2395
2474
  status: e.enum(["409"]),
2396
2475
  code: e.enum(["payment_external_id_already_exists"])
2397
2476
  });
2398
- var kr = e.enum(["standard", "advance"]), Ar = e.object({
2477
+ var Ir = e.enum(["standard", "advance"]), Lr = e.object({
2399
2478
  amount: b,
2400
2479
  date: e.iso.date(),
2401
2480
  paymentReference: e.string().nullish(),
2402
2481
  remarks: e.string().nullish(),
2403
- type: kr.optional(),
2482
+ type: Ir.optional(),
2404
2483
  externalId: e.string().nullish()
2405
- }), jr = e.object({ uuid: e.uuid() });
2484
+ }), Rr = e.object({ uuid: e.uuid() });
2406
2485
  e.object({
2407
2486
  detail: e.string().optional(),
2408
2487
  status: e.enum(["404"]),
@@ -2416,35 +2495,35 @@ e.object({
2416
2495
  status: e.enum(["409"]),
2417
2496
  code: e.enum(["advance_payment_locked"])
2418
2497
  });
2419
- var Mr = e.enum(["manual", "exact"]), Nr = e.object({
2498
+ var zr = e.enum(["manual", "exact"]), Br = e.object({
2420
2499
  uuid: e.uuid(),
2421
2500
  amount: b,
2422
2501
  date: e.iso.date(),
2423
2502
  createdAt: e.iso.datetime(),
2424
2503
  paymentReference: e.string().nullable(),
2425
2504
  remarks: e.string().nullable(),
2426
- source: Mr,
2427
- type: kr
2428
- }), Pr = e.object({ items: e.array(Nr) }), Fr = e.union([
2505
+ source: zr,
2506
+ type: Ir
2507
+ }), Vr = e.object({ items: e.array(Br) }), Hr = e.union([
2429
2508
  e.literal(1),
2430
2509
  e.literal(2),
2431
2510
  e.literal(3)
2432
- ]), Ir = e.object({
2511
+ ]), Ur = e.object({
2433
2512
  subject: I,
2434
2513
  body: I
2435
- }), Lr = e.enum(["percentage", "amount"]), Rr = e.object({
2436
- type: Lr,
2514
+ }), Wr = e.enum(["percentage", "amount"]), Gr = e.object({
2515
+ type: Wr,
2437
2516
  amount: b.nullable(),
2438
2517
  percentage: e.number().nullable()
2439
- }), zr = e.object({
2518
+ }), Kr = e.object({
2440
2519
  uuid: e.uuid(),
2441
2520
  issuerUuid: e.uuid(),
2442
- sequence: Fr,
2443
- schedule: En,
2521
+ sequence: Hr,
2522
+ schedule: jn,
2444
2523
  offsetDays: e.number(),
2445
- template: Ir,
2446
- fee: Rr
2447
- }), Br = e.object({ items: e.array(zr) });
2524
+ template: Ur,
2525
+ fee: Gr
2526
+ }), qr = e.object({ items: e.array(Kr) });
2448
2527
  e.object({
2449
2528
  detail: e.string().optional(),
2450
2529
  status: e.enum(["400"]),
@@ -2458,36 +2537,36 @@ e.object({
2458
2537
  status: e.enum(["400"]),
2459
2538
  code: e.enum(["additional_reminder_config"])
2460
2539
  });
2461
- var Vr = e.object({
2540
+ var Jr = e.object({
2462
2541
  subject: I,
2463
2542
  body: I
2464
- }), Hr = e.object({
2543
+ }), Yr = e.object({
2465
2544
  sequence: e.number(),
2466
2545
  offsetDays: e.int().gte(1),
2467
- schedule: En,
2468
- template: Vr,
2469
- fee: Rr
2470
- }), Ur = e.object({ reminders: e.array(Hr) }), Wr = e.enum([
2546
+ schedule: jn,
2547
+ template: Jr,
2548
+ fee: Gr
2549
+ }), Xr = e.object({ reminders: e.array(Yr) }), Zr = e.enum([
2471
2550
  "invoice",
2472
2551
  "invoice-line",
2473
2552
  "invoice-line-group"
2474
- ]), Gr = e.object({ entityTypes: e.array(Wr).optional() });
2553
+ ]), Qr = e.object({ entityTypes: e.array(Zr).optional() });
2475
2554
  e.object({
2476
2555
  detail: e.string().optional(),
2477
2556
  status: e.enum(["404"]),
2478
2557
  code: e.enum(["dunning_case_not_found"])
2479
2558
  });
2480
- var Kr = e.object({
2559
+ var $r = e.object({
2481
2560
  uuid: e.uuid(),
2482
2561
  type: _,
2483
2562
  name: e.string(),
2484
2563
  vatNumber: e.string().nullable(),
2485
2564
  email: e.string().nullable()
2486
- }), qr = e.object({
2565
+ }), ei = e.object({
2487
2566
  uuid: e.uuid(),
2488
2567
  date: e.iso.date(),
2489
2568
  amount: b
2490
- }), Jr = e.object({
2569
+ }), ti = e.object({
2491
2570
  uuid: e.uuid(),
2492
2571
  sequence: e.string(),
2493
2572
  grossAmount: b,
@@ -2496,7 +2575,7 @@ var Kr = e.object({
2496
2575
  e.enum(["infinity"]),
2497
2576
  e.enum(["-infinity"])
2498
2577
  ])
2499
- }), Yr = e.object({
2578
+ }), ni = e.object({
2500
2579
  uuid: e.uuid(),
2501
2580
  subject: e.string().nullable(),
2502
2581
  sequence: e.string(),
@@ -2508,9 +2587,9 @@ var Kr = e.object({
2508
2587
  paidAmount: b,
2509
2588
  isDisputed: e.boolean(),
2510
2589
  settlementStatus: z,
2511
- payments: e.array(qr),
2512
- creditNotes: e.array(Jr)
2513
- }), Xr = e.object({
2590
+ payments: e.array(ei),
2591
+ creditNotes: e.array(ti)
2592
+ }), ri = e.object({
2514
2593
  uuid: e.uuid(),
2515
2594
  sentAt: e.union([
2516
2595
  e.iso.datetime(),
@@ -2518,7 +2597,7 @@ var Kr = e.object({
2518
2597
  e.enum(["-infinity"])
2519
2598
  ]).nullable(),
2520
2599
  hasErrors: e.boolean()
2521
- }), Zr = e.enum(["missing_email"]), Qr = e.object({
2600
+ }), ii = e.enum(["missing_email"]), ai = e.object({
2522
2601
  uuid: e.uuid(),
2523
2602
  createdAt: e.iso.datetime(),
2524
2603
  updatedAt: e.iso.datetime(),
@@ -2526,8 +2605,8 @@ var Kr = e.object({
2526
2605
  isClosed: e.boolean(),
2527
2606
  nextReminderOn: e.iso.date().nullable(),
2528
2607
  level: e.number().nullable(),
2529
- customer: Kr,
2530
- invoices: e.array(Yr),
2608
+ customer: $r,
2609
+ invoices: e.array(ni),
2531
2610
  outstandingBalance: b,
2532
2611
  totalPaid: b,
2533
2612
  totalInvoiced: b,
@@ -2540,17 +2619,17 @@ var Kr = e.object({
2540
2619
  ]).nullable(),
2541
2620
  canSendReminder: e.boolean(),
2542
2621
  canRetryReminder: e.boolean(),
2543
- latestCreatedReminder: Xr.nullable(),
2544
- blockedReason: Zr.nullable()
2545
- }), $r = e.object({
2622
+ latestCreatedReminder: ri.nullable(),
2623
+ blockedReason: ii.nullable()
2624
+ }), oi = e.object({
2546
2625
  isOpen: e.boolean().optional(),
2547
2626
  customerUuid: e.uuid().optional(),
2548
2627
  level: e.number().optional(),
2549
2628
  dunningCaseUuids: X.optional()
2550
- }), ei = e.object({
2629
+ }), si = e.object({
2551
2630
  uuid: e.uuid(),
2552
2631
  name: e.string()
2553
- }), ti = e.object({
2632
+ }), ci = e.object({
2554
2633
  uuid: e.uuid(),
2555
2634
  sentAt: e.union([
2556
2635
  e.iso.datetime(),
@@ -2558,9 +2637,9 @@ var Kr = e.object({
2558
2637
  e.enum(["-infinity"])
2559
2638
  ]).nullable(),
2560
2639
  hasErrors: e.boolean()
2561
- }), ni = e.object({
2640
+ }), li = e.object({
2562
2641
  uuid: e.uuid(),
2563
- customer: ei,
2642
+ customer: si,
2564
2643
  level: e.number().nullable(),
2565
2644
  daysOverdue: e.number(),
2566
2645
  outstandingBalance: b,
@@ -2576,10 +2655,10 @@ var Kr = e.object({
2576
2655
  ]).nullable(),
2577
2656
  canSendReminder: e.boolean(),
2578
2657
  canRetryReminder: e.boolean(),
2579
- latestCreatedReminder: ti.nullable(),
2580
- blockedReason: Zr.nullable()
2581
- }), ri = e.object({
2582
- items: e.array(ni),
2658
+ latestCreatedReminder: ci.nullable(),
2659
+ blockedReason: ii.nullable()
2660
+ }), ui = e.object({
2661
+ items: e.array(li),
2583
2662
  meta: g
2584
2663
  });
2585
2664
  e.object({
@@ -2607,23 +2686,23 @@ e.object({
2607
2686
  status: e.enum(["409"]),
2608
2687
  code: e.enum(["dunning_case_reminder_not_retryable"])
2609
2688
  });
2610
- var ii = e.object({
2689
+ var di = e.object({
2611
2690
  isOpen: e.boolean().optional(),
2612
2691
  customerUuid: e.uuid().optional(),
2613
2692
  level: e.number().optional(),
2614
2693
  dunningCaseUuids: X.optional()
2615
- }), ai = e.object({
2694
+ }), fi = e.object({
2616
2695
  meta: Q,
2617
2696
  skipped: e.array($)
2618
- }), oi = e.object({
2697
+ }), pi = e.object({
2619
2698
  isOpen: e.boolean().optional(),
2620
2699
  customerUuid: e.uuid().optional(),
2621
2700
  level: e.number().optional(),
2622
2701
  dunningCaseUuids: X.optional()
2623
- }), si = e.object({
2702
+ }), mi = e.object({
2624
2703
  meta: Q,
2625
2704
  skipped: e.array($)
2626
- }), ci = e.object({
2705
+ }), hi = e.object({
2627
2706
  name: e.string().nullable(),
2628
2707
  email: e.email().nullable(),
2629
2708
  phoneNumber: e.string().nullable(),
@@ -2633,7 +2712,7 @@ var ii = e.object({
2633
2712
  bankAccountNumber: e.string().nullable(),
2634
2713
  alternativeBankAccountNumber: e.string().nullable(),
2635
2714
  currency: y
2636
- }), li = e.object({
2715
+ }), gi = e.object({
2637
2716
  name: e.string(),
2638
2717
  address: S.nullable(),
2639
2718
  email: e.email().nullable(),
@@ -2643,10 +2722,10 @@ var ii = e.object({
2643
2722
  type: _,
2644
2723
  locale: Fe,
2645
2724
  currency: y
2646
- }), ui = e.object({
2725
+ }), _i = e.object({
2647
2726
  name: e.string().nullable(),
2648
2727
  email: e.email()
2649
- }), di = e.object({
2728
+ }), vi = e.object({
2650
2729
  sequence: e.string(),
2651
2730
  issuedOn: e.iso.date(),
2652
2731
  dueOn: e.iso.date(),
@@ -2655,21 +2734,21 @@ var ii = e.object({
2655
2734
  daysOverdue: e.number(),
2656
2735
  fee: b,
2657
2736
  isNew: e.boolean()
2658
- }), fi = e.object({
2737
+ }), yi = e.object({
2659
2738
  sequence: e.string(),
2660
2739
  issuedOn: e.iso.date(),
2661
2740
  dueOn: e.iso.date(),
2662
2741
  outstandingBalance: b,
2663
2742
  daysOverdue: e.number()
2664
- }), pi = e.object({
2743
+ }), bi = e.object({
2665
2744
  createdAt: e.iso.datetime(),
2666
2745
  sentAt: e.iso.datetime().nullable(),
2667
2746
  level: e.number(),
2668
- issuer: ci,
2669
- customer: li,
2670
- recipient: ui,
2671
- invoices: e.array(di),
2672
- outstandingInvoices: e.array(fi),
2747
+ issuer: hi,
2748
+ customer: gi,
2749
+ recipient: _i,
2750
+ invoices: e.array(vi),
2751
+ outstandingInvoices: e.array(yi),
2673
2752
  totalFee: b
2674
2753
  });
2675
2754
  e.object({
@@ -2693,7 +2772,7 @@ e.object({
2693
2772
  status: e.enum(["409"]),
2694
2773
  code: e.enum(["customer_has_no_approval_email"])
2695
2774
  });
2696
- var mi = e.object({
2775
+ var xi = e.object({
2697
2776
  statuses: e.array(v).optional(),
2698
2777
  lifecycleStatuses: e.array(F).optional(),
2699
2778
  customerUuids: e.array(e.uuid()).optional(),
@@ -2718,11 +2797,12 @@ var mi = e.object({
2718
2797
  ])).optional(),
2719
2798
  hasChangesSinceApprovalSent: e.boolean().optional(),
2720
2799
  approvalStatuses: e.array(Z).optional(),
2721
- isApprovalCancelled: e.boolean().optional()
2722
- }), hi = e.object({
2800
+ isApprovalCancelled: e.boolean().optional(),
2801
+ isExternallyCreated: e.boolean().optional()
2802
+ }), Si = e.object({
2723
2803
  meta: Q,
2724
2804
  skipped: e.array($)
2725
- }), gi = e.object({
2805
+ }), Ci = e.object({
2726
2806
  statuses: e.array(v).optional(),
2727
2807
  lifecycleStatuses: e.array(F).optional(),
2728
2808
  customerUuids: e.array(e.uuid()).optional(),
@@ -2747,8 +2827,9 @@ var mi = e.object({
2747
2827
  ])).optional(),
2748
2828
  hasChangesSinceApprovalSent: e.boolean().optional(),
2749
2829
  approvalStatuses: e.array(Z).optional(),
2750
- isApprovalCancelled: e.boolean().optional()
2751
- }), _i = e.object({
2830
+ isApprovalCancelled: e.boolean().optional(),
2831
+ isExternallyCreated: e.boolean().optional()
2832
+ }), wi = e.object({
2752
2833
  meta: Q,
2753
2834
  skipped: e.array($)
2754
2835
  });
@@ -2765,7 +2846,7 @@ e.object({
2765
2846
  status: e.enum(["400"]),
2766
2847
  code: e.enum(["missing_invoice_approval_file"])
2767
2848
  });
2768
- var vi = e.object({
2849
+ var Ti = e.object({
2769
2850
  fileUuids: e.array(e.uuid()).optional(),
2770
2851
  remarks: e.string().nullish()
2771
2852
  });
@@ -2774,9 +2855,9 @@ e.object({
2774
2855
  status: e.enum(["400"]),
2775
2856
  code: e.enum(["missing_rejection_remarks"])
2776
2857
  });
2777
- var yi = e.object({
2858
+ var Ei = e.object({
2778
2859
  remarks: e.string().max(500).nullish(),
2779
- reason: kn,
2860
+ reason: Pn,
2780
2861
  fileUuids: e.array(e.uuid()).optional()
2781
2862
  });
2782
2863
  e.object({
@@ -2796,18 +2877,18 @@ e.object({
2796
2877
  status: e.enum(["409"]),
2797
2878
  code: e.enum(["approval_restart_requires_active_approval"])
2798
2879
  });
2799
- var bi = e.object({
2800
- status: On.optional(),
2880
+ var Di = e.object({
2881
+ status: Nn.optional(),
2801
2882
  invoiceUuid: e.uuid().optional(),
2802
2883
  customerUuid: e.uuid().optional(),
2803
- level: An.optional(),
2884
+ level: Fn.optional(),
2804
2885
  hasChangesSinceApprovalSent: e.boolean().optional(),
2805
2886
  isCancelled: e.boolean().optional()
2806
- }), xi = e.object({
2887
+ }), Oi = e.object({
2807
2888
  uuid: e.uuid(),
2808
2889
  subject: e.string().nullable(),
2809
2890
  hasChangesSinceApprovalSent: e.boolean()
2810
- }), Si = e.object({
2891
+ }), ki = e.object({
2811
2892
  uuid: e.uuid(),
2812
2893
  issuedOn: e.union([
2813
2894
  e.iso.date(),
@@ -2817,16 +2898,16 @@ var bi = e.object({
2817
2898
  netAmount: b,
2818
2899
  grossAmount: b,
2819
2900
  balanceDueAmount: b.nullable()
2820
- }), Ci = e.object({
2901
+ }), Ai = e.object({
2821
2902
  uuid: e.uuid(),
2822
2903
  name: e.string().nullable()
2823
- }), wi = e.object({
2904
+ }), ji = e.object({
2824
2905
  name: e.string().nullable(),
2825
2906
  email: e.email().nullable()
2826
- }), Ti = e.object({
2907
+ }), Mi = e.object({
2827
2908
  uuid: e.uuid(),
2828
2909
  createdAt: e.iso.datetime(),
2829
- status: On,
2910
+ status: Nn,
2830
2911
  sentAt: e.union([
2831
2912
  e.iso.datetime(),
2832
2913
  e.enum(["infinity"]),
@@ -2848,21 +2929,21 @@ var bi = e.object({
2848
2929
  e.enum(["-infinity"])
2849
2930
  ]).nullable(),
2850
2931
  customerRemark: e.string().nullable(),
2851
- rejectionReason: kn.nullable(),
2852
- level: An.nullable(),
2932
+ rejectionReason: Pn.nullable(),
2933
+ level: Fn.nullable(),
2853
2934
  lastReminderSentAt: e.union([
2854
2935
  e.iso.datetime(),
2855
2936
  e.enum(["infinity"]),
2856
2937
  e.enum(["-infinity"])
2857
2938
  ]).nullable(),
2858
- invoice: xi,
2859
- proForma: Si,
2860
- customer: Ci,
2861
- recipient: wi
2862
- }), Ei = e.object({
2863
- items: e.array(Ti),
2939
+ invoice: Oi,
2940
+ proForma: ki,
2941
+ customer: Ai,
2942
+ recipient: ji
2943
+ }), Ni = e.object({
2944
+ items: e.array(Mi),
2864
2945
  meta: g
2865
- }), Di = e.object({
2946
+ }), Pi = e.object({
2866
2947
  uuid: e.uuid(),
2867
2948
  name: e.string().nullable(),
2868
2949
  email: e.email().nullable(),
@@ -2872,7 +2953,7 @@ var bi = e.object({
2872
2953
  vatNumber: e.string().nullable(),
2873
2954
  bankAccountNumber: e.string().nullable(),
2874
2955
  alternativeBankAccountNumber: e.string().nullable()
2875
- }), Oi = e.object({
2956
+ }), Fi = e.object({
2876
2957
  uuid: e.uuid(),
2877
2958
  name: e.string().nullable(),
2878
2959
  email: e.email().nullable(),
@@ -2880,7 +2961,7 @@ var bi = e.object({
2880
2961
  address: S.nullable(),
2881
2962
  vatNumber: e.string().nullable(),
2882
2963
  type: _
2883
- }), ki = e.object({
2964
+ }), Ii = e.object({
2884
2965
  uuid: e.uuid(),
2885
2966
  groupUuid: e.uuid().nullable(),
2886
2967
  position: e.number(),
@@ -2905,9 +2986,9 @@ var bi = e.object({
2905
2986
  netAmount: b,
2906
2987
  grossAmount: b,
2907
2988
  discount: R.nullable(),
2908
- unit: tn,
2989
+ unit: sn,
2909
2990
  isDiscount: e.boolean()
2910
- }), Ai = e.object({
2991
+ }), Li = e.object({
2911
2992
  uuid: e.uuid(),
2912
2993
  position: e.number(),
2913
2994
  name: e.string(),
@@ -2924,19 +3005,19 @@ var bi = e.object({
2924
3005
  N,
2925
3006
  P
2926
3007
  ])),
2927
- lines: e.array(ki),
2928
- groups: e.array(e.lazy(() => Ai))
2929
- }), ji = e.object({
3008
+ lines: e.array(Ii),
3009
+ groups: e.array(e.lazy(() => Li))
3010
+ }), Ri = e.object({
2930
3011
  vatRate: L,
2931
3012
  netAmount: b,
2932
3013
  vatAmount: b
2933
- }), Mi = e.object({
3014
+ }), zi = e.object({
2934
3015
  uuid: e.uuid(),
2935
3016
  createdAt: e.iso.datetime(),
2936
3017
  updatedAt: e.iso.datetime(),
2937
3018
  issueOn: e.iso.date().nullable(),
2938
- issuer: Di,
2939
- customer: Oi,
3019
+ issuer: Pi,
3020
+ customer: Fi,
2940
3021
  paymentReference: e.string().nullable(),
2941
3022
  subject: e.string().nullable(),
2942
3023
  poNumber: e.string().nullable(),
@@ -2952,9 +3033,9 @@ var bi = e.object({
2952
3033
  N,
2953
3034
  P
2954
3035
  ])),
2955
- ungroupedLines: e.array(ki),
2956
- groups: e.array(Ai),
2957
- vatSummaries: e.array(ji),
3036
+ ungroupedLines: e.array(Ii),
3037
+ groups: e.array(Li),
3038
+ vatSummaries: e.array(Ri),
2958
3039
  grossAmount: b,
2959
3040
  netAmount: b,
2960
3041
  effectiveNet: b,
@@ -2964,14 +3045,14 @@ var bi = e.object({
2964
3045
  advancePaymentAmount: b.nullable(),
2965
3046
  amountDue: b,
2966
3047
  externalRemarks: e.string().nullable()
2967
- }), Ni = e.enum(["after_approval_request", "after_last_reminder"]), Pi = e.object({
3048
+ }), Bi = e.enum(["after_approval_request", "after_last_reminder"]), Vi = e.object({
2968
3049
  uuid: e.uuid(),
2969
3050
  issuerUuid: e.uuid(),
2970
- sequence: An,
2971
- schedule: Ni,
3051
+ sequence: Fn,
3052
+ schedule: Bi,
2972
3053
  offsetDays: e.number(),
2973
- template: Ir
2974
- }), Fi = e.object({ items: e.array(Pi) });
3054
+ template: Ur
3055
+ }), Hi = e.object({ items: e.array(Vi) });
2975
3056
  e.object({
2976
3057
  detail: e.string().optional(),
2977
3058
  status: e.enum(["400"]),
@@ -2985,34 +3066,34 @@ e.object({
2985
3066
  status: e.enum(["400"]),
2986
3067
  code: e.enum(["additional_approval_reminder_config"])
2987
3068
  });
2988
- var Ii = e.object({
2989
- sequence: An,
3069
+ var Ui = e.object({
3070
+ sequence: Fn,
2990
3071
  offsetDays: e.int().gte(1),
2991
- schedule: Ni,
2992
- template: Vr
2993
- }), Li = e.object({ reminders: e.array(Ii).max(2) }), Ri = e.enum(["soluz"]), zi = e.object({
2994
- provider: Ri,
3072
+ schedule: Bi,
3073
+ template: Jr
3074
+ }), Wi = e.object({ reminders: e.array(Ui).max(2) }), Gi = e.enum(["soluz"]), Ki = e.object({
3075
+ provider: Gi,
2995
3076
  partyId: e.string(),
2996
3077
  enabled: e.boolean(),
2997
3078
  hasApiKey: e.boolean(),
2998
3079
  validatedAt: e.iso.datetime()
2999
- }), Bi = e.object({
3000
- connection: zi.nullable(),
3001
- providers: e.array(Ri)
3080
+ }), qi = e.object({
3081
+ connection: Ki.nullable(),
3082
+ providers: e.array(Gi)
3002
3083
  });
3003
3084
  e.object({
3004
3085
  detail: e.string().optional(),
3005
3086
  status: e.enum(["400"]),
3006
3087
  code: e.enum(["peppol_error"]),
3007
3088
  meta: e.record(e.string(), e.unknown())
3008
- }), e.object({ provider: Ri });
3009
- var Vi = e.object({
3089
+ }), e.object({ provider: Gi });
3090
+ var Ji = e.object({
3010
3091
  id: e.string(),
3011
3092
  name: e.string(),
3012
3093
  vatNumber: e.string()
3013
- }), Hi = e.object({ companies: e.array(Vi) });
3094
+ }), Yi = e.object({ companies: e.array(Ji) });
3014
3095
  e.object({
3015
- provider: Ri,
3096
+ provider: Gi,
3016
3097
  partyId: e.string(),
3017
3098
  enabled: e.boolean()
3018
3099
  }), e.object({
@@ -3020,11 +3101,11 @@ e.object({
3020
3101
  status: e.enum(["500"]),
3021
3102
  code: e.enum(["internal_server_error"])
3022
3103
  });
3023
- var Ui = e.object({
3024
- provider: Ri,
3104
+ var Xi = e.object({
3105
+ provider: Gi,
3025
3106
  apiKey: e.string().optional()
3026
- }), Wi = e.object({
3027
- provider: Ri,
3107
+ }), Zi = e.object({
3108
+ provider: Gi,
3028
3109
  apiKey: e.string().optional(),
3029
3110
  partyId: e.string(),
3030
3111
  enabled: e.boolean()
@@ -3036,14 +3117,14 @@ e.object({
3036
3117
  fresh: e.boolean(),
3037
3118
  collections: e.array(Ce).optional()
3038
3119
  }), e.object({ collections: e.array(Ce).optional() }), e.object({ user: e.uuid() }), e.object({ uuid: e.uuid() });
3039
- var Gi = e.object({
3120
+ var Qi = e.object({
3040
3121
  pagination: h.optional(),
3041
3122
  search: e.string().optional()
3042
- }), Ki = De;
3123
+ }), $i = De;
3043
3124
  e.void(), e.void(), e.object({ role: e.uuid() }), e.void(), e.object({ role: e.uuid() }), e.object({ role: e.uuid() }), e.void();
3044
- var qi = je, Ji = Me;
3125
+ var ea = je, ta = Me;
3045
3126
  e.object({ file: e.uuid() }), e.void();
3046
- var Yi = Ne, Xi = e.object({ file: e.uuid() }), Zi = e.void(), Qi = e.object({ file: e.uuid() });
3127
+ var na = Ne, ra = e.object({ file: e.uuid() }), ia = e.void(), aa = e.object({ file: e.uuid() });
3047
3128
  e.object({ file: e.uuid() }), e.object({ token: e.string() }), e.object({
3048
3129
  filter: ze.optional(),
3049
3130
  pagination: Ve.optional()
@@ -3062,695 +3143,695 @@ e.object({ file: e.uuid() }), e.object({ token: e.string() }), e.object({
3062
3143
  pagination: h.optional(),
3063
3144
  search: e.string().optional()
3064
3145
  }), 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();
3065
- var $i = e.object({
3146
+ var oa = e.object({
3066
3147
  pagination: h.optional(),
3067
3148
  filter: Lt.optional(),
3068
3149
  search: e.string().optional()
3069
- }), ea = zt, ta = e.object({ uuid: e.uuid() }), na = It;
3150
+ }), sa = zt, ca = e.object({ uuid: e.uuid() }), la = It;
3070
3151
  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();
3071
- var ra = e.object({ uuid: e.uuid() }), ia = e.object({ pagination: h.optional() }), aa = Ht, oa = Ut, sa = Wt, ca = e.void(), la = e.object({ token: e.string() }), ua = cn, da = e.object({
3152
+ var ua = e.object({ uuid: e.uuid() }), da = e.object({ pagination: h.optional() }), fa = Ht, pa = Jt, ma = Yt, ha = e.void(), ga = e.object({ token: e.string() }), _a = pn, va = e.object({
3072
3153
  pagination: h.optional(),
3073
- sort: e.array(Pn).optional(),
3074
- filter: In.optional(),
3154
+ sort: e.array(zn).optional(),
3155
+ filter: Vn.optional(),
3075
3156
  search: e.string().optional()
3076
- }), fa = Bn, pa = un, ma = dn, ha = e.object({ uuid: e.uuid() }), ga = e.void(), _a = e.object({ uuid: e.uuid() }), va = Mn, ya = Vn, ba = e.object({ uuid: e.uuid() }), xa = e.void(), Sa = Wn, Ca = e.object({ uuid: e.uuid() }), wa = e.void();
3157
+ }), ya = Gn, ba = hn, xa = gn, Sa = e.object({ uuid: e.uuid() }), Ca = e.void(), wa = e.object({ uuid: e.uuid() }), Ta = Ln, Ea = Kn, Da = e.object({ uuid: e.uuid() }), Oa = e.void(), ka = Yn, Aa = e.object({ uuid: e.uuid() }), ja = e.void();
3077
3158
  e.object({ uuid: e.uuid() }), e.void();
3078
- var Ta = Gn, Ea = e.object({ uuid: e.uuid() }), Da = e.void(), Oa = Kn, ka = e.object({ uuid: e.uuid() }), Aa = e.void(), ja = e.object({ uuid: e.uuid() }), Ma = e.object({ uuid: e.uuid() }), Na = Jn, Pa = Zn, Fa = e.object({ uuid: e.uuid() }), Ia = e.void(), La = $n, Ra = e.object({ uuid: e.uuid() }), za = e.void(), Ba = e.object({ uuid: e.uuid() }), Va = e.object({ uuid: e.uuid() }), Ha = e.object({
3079
- filter: er.optional(),
3159
+ var Ma = Xn, Na = e.object({ uuid: e.uuid() }), Pa = e.void(), Fa = Zn, Ia = e.object({ uuid: e.uuid() }), La = e.void(), Ra = e.object({ uuid: e.uuid() }), za = e.object({ uuid: e.uuid() }), Ba = tr, Va = ir, Ha = e.object({ uuid: e.uuid() }), Ua = e.void(), Wa = or, Ga = e.object({ uuid: e.uuid() }), Ka = e.void(), qa = e.object({ uuid: e.uuid() }), Ja = e.object({ uuid: e.uuid() }), Ya = e.object({
3160
+ filter: sr.optional(),
3080
3161
  search: e.string().optional()
3081
- }), Ua = ir, Wa = e.object({
3082
- filter: ar.optional(),
3162
+ }), Xa = dr, Za = e.object({
3163
+ filter: fr.optional(),
3083
3164
  search: e.string().optional()
3084
- }), Ga = or, Ka = e.object({ uuid: e.uuid() }), qa = e.void(), Ja = e.object({ uuid: e.uuid() }), Ya = sr, Xa = e.object({ uuid: e.uuid() }), Za = e.void(), Qa = e.object({ uuid: e.uuid() }), $a = e.void(), eo = e.object({ uuid: e.uuid() }), to = e.void(), no = e.object({ uuid: e.uuid() }), ro = e.void(), io = e.object({ uuid: e.uuid() }), ao = e.void(), oo = e.object({
3085
- filter: cr.optional(),
3165
+ }), Qa = pr, $a = e.object({ uuid: e.uuid() }), eo = e.void(), to = e.object({ uuid: e.uuid() }), no = mr, ro = e.object({ uuid: e.uuid() }), io = e.void(), ao = e.object({ uuid: e.uuid() }), oo = e.void(), so = e.object({ uuid: e.uuid() }), co = e.void(), lo = e.object({ uuid: e.uuid() }), uo = e.void(), fo = e.object({ uuid: e.uuid() }), po = e.void(), mo = e.object({
3166
+ filter: hr.optional(),
3086
3167
  search: e.string().optional()
3087
- }), so = lr, co = e.object({
3088
- filter: ur.optional(),
3168
+ }), ho = gr, go = e.object({
3169
+ filter: _r.optional(),
3089
3170
  search: e.string().optional()
3090
- }), lo = dr, uo = e.object({ uuid: e.uuid() }), fo = e.void(), po = e.object({
3091
- filter: fr.optional(),
3171
+ }), _o = vr, vo = e.object({ uuid: e.uuid() }), yo = e.void(), bo = e.object({
3172
+ filter: yr.optional(),
3092
3173
  search: e.string().optional()
3093
- }), mo = pr, ho = e.object({
3094
- filter: mr.optional(),
3174
+ }), xo = br, So = e.object({
3175
+ filter: xr.optional(),
3095
3176
  search: e.string().optional()
3096
- }), go = hr, _o = e.object({ uuid: e.uuid() }), vo = e.void(), yo = e.object({
3097
- filter: gr.optional(),
3098
- pagination: vr.optional()
3099
- }), bo = Or, xo = e.object({ uuid: e.uuid() }), So = Pr, Co = Ar, wo = e.object({ uuid: e.uuid() }), To = jr, Eo = e.object({
3177
+ }), Co = Sr, wo = e.object({ uuid: e.uuid() }), To = e.void(), Eo = e.object({
3178
+ filter: Cr.optional(),
3179
+ pagination: Tr.optional()
3180
+ }), Do = Fr, Oo = e.object({ uuid: e.uuid() }), ko = Vr, Ao = Lr, jo = e.object({ uuid: e.uuid() }), Mo = Rr, No = e.object({
3100
3181
  uuid: e.uuid(),
3101
3182
  paymentUuid: e.uuid()
3102
- }), Do = e.void(), Oo = Br, ko = Ur, Ao = e.void(), jo = e.object({ filter: Gr.optional() }), Mo = e.array($t), No = e.object({ uuid: e.uuid() }), Po = Qr, Fo = e.object({
3183
+ }), Po = e.void(), Fo = qr, Io = Xr, Lo = e.void(), Ro = e.object({ filter: Qr.optional() }), zo = e.array(an), Bo = e.object({ uuid: e.uuid() }), Vo = ai, Ho = e.object({
3103
3184
  pagination: h.optional(),
3104
- filter: $r.optional()
3105
- }), Io = ri, Lo = e.object({ uuid: e.uuid() }), Ro = e.object({ uuid: e.uuid() }), zo = e.object({ filter: ii.optional() }), Bo = ai, Vo = e.object({ filter: oi.optional() }), Ho = si, Uo = e.object({ token: e.string() }), Wo = pi, Go = e.object({ uuid: e.uuid() }), Ko = e.object({
3106
- filter: mi.optional(),
3185
+ filter: oi.optional()
3186
+ }), Uo = ui, Wo = e.object({ uuid: e.uuid() }), Go = e.object({ uuid: e.uuid() }), Ko = e.object({ filter: di.optional() }), qo = fi, Jo = e.object({ filter: pi.optional() }), Yo = mi, Xo = e.object({ token: e.string() }), Zo = bi, Qo = e.object({ uuid: e.uuid() }), $o = e.object({
3187
+ filter: xi.optional(),
3107
3188
  search: e.string().optional()
3108
- }), qo = hi, Jo = e.object({
3109
- filter: gi.optional(),
3189
+ }), es = Si, ts = e.object({
3190
+ filter: Ci.optional(),
3110
3191
  search: e.string().optional()
3111
- }), Yo = _i, Xo = vi, Zo = e.object({ uuid: e.uuid() }), Qo = e.void(), $o = yi, es = e.object({ uuid: e.uuid() }), ts = e.void(), ns = e.object({ uuid: e.uuid() }), rs = e.void(), is = e.object({ uuid: e.uuid() }), as = e.object({
3192
+ }), ns = wi, rs = Ti, is = e.object({ uuid: e.uuid() }), as = e.void(), os = Ei, ss = e.object({ uuid: e.uuid() }), cs = e.void(), ls = e.object({ uuid: e.uuid() }), us = e.void(), ds = e.object({ uuid: e.uuid() }), fs = e.object({
3112
3193
  pagination: h.optional(),
3113
- filter: bi.optional()
3114
- }), os = Ei, ss = e.object({ token: e.string() }), cs = Mi, ls = Fi, us = Li, ds = e.void(), fs = Bi, ps = Wi, ms = Ui, hs = Hi, gs = (t) => (t?.client ?? p).get({
3194
+ filter: Di.optional()
3195
+ }), ps = Ni, ms = e.object({ token: e.string() }), hs = zi, gs = Hi, _s = Wi, vs = e.void(), ys = qi, bs = Zi, xs = Xi, Ss = Yi, Cs = (t) => (t?.client ?? p).get({
3115
3196
  requestValidator: async (t) => await e.object({
3116
3197
  body: e.never().optional(),
3117
3198
  path: e.never().optional(),
3118
- query: Gi.optional()
3199
+ query: Qi.optional()
3119
3200
  }).parseAsync(t),
3120
- responseValidator: async (e) => await Ki.parseAsync(e),
3201
+ responseValidator: async (e) => await $i.parseAsync(e),
3121
3202
  url: "/api/v1/users",
3122
3203
  ...t
3123
- }), _s = (t) => (t.client ?? p).post({
3204
+ }), ws = (t) => (t.client ?? p).post({
3124
3205
  requestValidator: async (t) => await e.object({
3125
- body: qi,
3206
+ body: ea,
3126
3207
  path: e.never().optional(),
3127
3208
  query: e.never().optional()
3128
3209
  }).parseAsync(t),
3129
- responseValidator: async (e) => await Ji.parseAsync(e),
3210
+ responseValidator: async (e) => await ta.parseAsync(e),
3130
3211
  url: "/api/v1/files",
3131
3212
  ...t,
3132
3213
  headers: {
3133
3214
  "Content-Type": "application/json",
3134
3215
  ...t.headers
3135
3216
  }
3136
- }), vs = (t) => (t.client ?? p).post({
3217
+ }), Ts = (t) => (t.client ?? p).post({
3137
3218
  requestValidator: async (t) => await e.object({
3138
- body: Yi,
3139
- path: Xi,
3219
+ body: na,
3220
+ path: ra,
3140
3221
  query: e.never().optional()
3141
3222
  }).parseAsync(t),
3142
- responseValidator: async (e) => await Zi.parseAsync(e),
3223
+ responseValidator: async (e) => await ia.parseAsync(e),
3143
3224
  url: "/api/v2/files/{file}/confirm-upload",
3144
3225
  ...t,
3145
3226
  headers: {
3146
3227
  "Content-Type": "application/json",
3147
3228
  ...t.headers
3148
3229
  }
3149
- }), ys = (t) => (t.client ?? p).post({
3230
+ }), Es = (t) => (t.client ?? p).post({
3150
3231
  requestValidator: async (t) => await e.object({
3151
3232
  body: e.never().optional(),
3152
- path: Qi,
3233
+ path: aa,
3153
3234
  query: e.never().optional()
3154
3235
  }).parseAsync(t),
3155
3236
  url: "/api/v1/files/{file}/download",
3156
3237
  ...t
3157
- }), bs = (t) => (t?.client ?? p).get({
3238
+ }), Ds = (t) => (t?.client ?? p).get({
3158
3239
  requestValidator: async (t) => await e.object({
3159
3240
  body: e.never().optional(),
3160
3241
  path: e.never().optional(),
3161
- query: $i.optional()
3242
+ query: oa.optional()
3162
3243
  }).parseAsync(t),
3163
- responseValidator: async (e) => await ea.parseAsync(e),
3244
+ responseValidator: async (e) => await sa.parseAsync(e),
3164
3245
  url: "/api/v1/customers",
3165
3246
  ...t
3166
- }), xs = (t) => (t.client ?? p).get({
3247
+ }), Os = (t) => (t.client ?? p).get({
3167
3248
  requestValidator: async (t) => await e.object({
3168
3249
  body: e.never().optional(),
3169
- path: ta,
3250
+ path: ca,
3170
3251
  query: e.never().optional()
3171
3252
  }).parseAsync(t),
3172
- responseValidator: async (e) => await na.parseAsync(e),
3253
+ responseValidator: async (e) => await la.parseAsync(e),
3173
3254
  url: "/api/v1/customers/{uuid}",
3174
3255
  ...t
3175
- }), Ss = (t) => (t.client ?? p).get({
3256
+ }), ks = (t) => (t.client ?? p).get({
3176
3257
  requestValidator: async (t) => await e.object({
3177
3258
  body: e.never().optional(),
3178
- path: ra,
3179
- query: ia.optional()
3259
+ path: ua,
3260
+ query: da.optional()
3180
3261
  }).parseAsync(t),
3181
- responseValidator: async (e) => await aa.parseAsync(e),
3262
+ responseValidator: async (e) => await fa.parseAsync(e),
3182
3263
  url: "/api/v1/customers/{uuid}/recipients",
3183
3264
  ...t
3184
- }), Cs = (t) => (t?.client ?? p).get({
3265
+ }), As = (t) => (t?.client ?? p).get({
3185
3266
  requestValidator: async (t) => await e.object({
3186
3267
  body: e.never().optional(),
3187
3268
  path: e.never().optional(),
3188
3269
  query: e.never().optional()
3189
3270
  }).parseAsync(t),
3190
- responseValidator: async (e) => await oa.parseAsync(e),
3271
+ responseValidator: async (e) => await pa.parseAsync(e),
3191
3272
  url: "/api/v1/issuers",
3192
3273
  ...t
3193
- }), ws = (t) => (t.client ?? p).put({
3274
+ }), js = (t) => (t.client ?? p).put({
3194
3275
  requestValidator: async (t) => await e.object({
3195
- body: sa,
3276
+ body: ma,
3196
3277
  path: e.never().optional(),
3197
3278
  query: e.never().optional()
3198
3279
  }).parseAsync(t),
3199
- responseValidator: async (e) => await ca.parseAsync(e),
3280
+ responseValidator: async (e) => await ha.parseAsync(e),
3200
3281
  url: "/api/v1/issuers",
3201
3282
  ...t,
3202
3283
  headers: {
3203
3284
  "Content-Type": "application/json",
3204
3285
  ...t.headers
3205
3286
  }
3206
- }), Ts = (t) => (t.client ?? p).get({
3287
+ }), Ms = (t) => (t.client ?? p).get({
3207
3288
  requestValidator: async (t) => await e.object({
3208
3289
  body: e.never().optional(),
3209
3290
  path: e.never().optional(),
3210
- query: la
3291
+ query: ga
3211
3292
  }).parseAsync(t),
3212
- responseValidator: async (e) => await ua.parseAsync(e),
3293
+ responseValidator: async (e) => await _a.parseAsync(e),
3213
3294
  url: "/api/v1/public/invoices",
3214
3295
  ...t
3215
- }), Es = (t) => (t?.client ?? p).get({
3296
+ }), Ns = (t) => (t?.client ?? p).get({
3216
3297
  requestValidator: async (t) => await e.object({
3217
3298
  body: e.never().optional(),
3218
3299
  path: e.never().optional(),
3219
- query: da.optional()
3300
+ query: va.optional()
3220
3301
  }).parseAsync(t),
3221
- responseValidator: async (e) => await fa.parseAsync(e),
3302
+ responseValidator: async (e) => await ya.parseAsync(e),
3222
3303
  url: "/api/v1/invoices",
3223
3304
  ...t
3224
- }), Ds = (t) => (t.client ?? p).post({
3305
+ }), Ps = (t) => (t.client ?? p).post({
3225
3306
  requestValidator: async (t) => await e.object({
3226
- body: pa,
3307
+ body: ba,
3227
3308
  path: e.never().optional(),
3228
3309
  query: e.never().optional()
3229
3310
  }).parseAsync(t),
3230
- responseValidator: async (e) => await ma.parseAsync(e),
3311
+ responseValidator: async (e) => await xa.parseAsync(e),
3231
3312
  url: "/api/v1/invoices",
3232
3313
  ...t,
3233
3314
  headers: {
3234
3315
  "Content-Type": "application/json",
3235
3316
  ...t.headers
3236
3317
  }
3237
- }), Os = (t) => (t.client ?? p).delete({
3318
+ }), Fs = (t) => (t.client ?? p).delete({
3238
3319
  requestValidator: async (t) => await e.object({
3239
3320
  body: e.never().optional(),
3240
- path: ha,
3321
+ path: Sa,
3241
3322
  query: e.never().optional()
3242
3323
  }).parseAsync(t),
3243
- responseValidator: async (e) => await ga.parseAsync(e),
3324
+ responseValidator: async (e) => await Ca.parseAsync(e),
3244
3325
  url: "/api/v1/invoices/{uuid}",
3245
3326
  ...t
3246
- }), ks = (t) => (t.client ?? p).get({
3327
+ }), Is = (t) => (t.client ?? p).get({
3247
3328
  requestValidator: async (t) => await e.object({
3248
3329
  body: e.never().optional(),
3249
- path: _a,
3330
+ path: wa,
3250
3331
  query: e.never().optional()
3251
3332
  }).parseAsync(t),
3252
- responseValidator: async (e) => await va.parseAsync(e),
3333
+ responseValidator: async (e) => await Ta.parseAsync(e),
3253
3334
  url: "/api/v1/invoices/{uuid}",
3254
3335
  ...t
3255
- }), As = (t) => (t.client ?? p).patch({
3336
+ }), Ls = (t) => (t.client ?? p).patch({
3256
3337
  requestValidator: async (t) => await e.object({
3257
- body: ya,
3258
- path: ba,
3338
+ body: Ea,
3339
+ path: Da,
3259
3340
  query: e.never().optional()
3260
3341
  }).parseAsync(t),
3261
- responseValidator: async (e) => await xa.parseAsync(e),
3342
+ responseValidator: async (e) => await Oa.parseAsync(e),
3262
3343
  url: "/api/v1/invoices/{uuid}",
3263
3344
  ...t,
3264
3345
  headers: {
3265
3346
  "Content-Type": "application/json",
3266
3347
  ...t.headers
3267
3348
  }
3268
- }), js = (t) => (t.client ?? p).patch({
3349
+ }), Rs = (t) => (t.client ?? p).patch({
3269
3350
  requestValidator: async (t) => await e.object({
3270
- body: Sa,
3271
- path: Ca,
3351
+ body: ka,
3352
+ path: Aa,
3272
3353
  query: e.never().optional()
3273
3354
  }).parseAsync(t),
3274
- responseValidator: async (e) => await wa.parseAsync(e),
3355
+ responseValidator: async (e) => await ja.parseAsync(e),
3275
3356
  url: "/api/v1/invoices/{uuid}/lines",
3276
3357
  ...t,
3277
3358
  headers: {
3278
3359
  "Content-Type": "application/json",
3279
3360
  ...t.headers
3280
3361
  }
3281
- }), Ms = (t) => (t.client ?? p).patch({
3362
+ }), zs = (t) => (t.client ?? p).patch({
3282
3363
  requestValidator: async (t) => await e.object({
3283
- body: Ta,
3284
- path: Ea,
3364
+ body: Ma,
3365
+ path: Na,
3285
3366
  query: e.never().optional()
3286
3367
  }).parseAsync(t),
3287
- responseValidator: async (e) => await Da.parseAsync(e),
3368
+ responseValidator: async (e) => await Pa.parseAsync(e),
3288
3369
  url: "/api/v2/invoices/{uuid}/discount",
3289
3370
  ...t,
3290
3371
  headers: {
3291
3372
  "Content-Type": "application/json",
3292
3373
  ...t.headers
3293
3374
  }
3294
- }), Ns = (t) => (t.client ?? p).patch({
3375
+ }), Bs = (t) => (t.client ?? p).patch({
3295
3376
  requestValidator: async (t) => await e.object({
3296
- body: Oa,
3297
- path: ka,
3377
+ body: Fa,
3378
+ path: Ia,
3298
3379
  query: e.never().optional()
3299
3380
  }).parseAsync(t),
3300
- responseValidator: async (e) => await Aa.parseAsync(e),
3381
+ responseValidator: async (e) => await La.parseAsync(e),
3301
3382
  url: "/api/v1/invoices/{uuid}/attachments",
3302
3383
  ...t,
3303
3384
  headers: {
3304
3385
  "Content-Type": "application/json",
3305
3386
  ...t.headers
3306
3387
  }
3307
- }), Ps = (t) => (t.client ?? p).post({
3388
+ }), Vs = (t) => (t.client ?? p).post({
3308
3389
  requestValidator: async (t) => await e.object({
3309
3390
  body: e.never().optional(),
3310
- path: ja,
3391
+ path: Ra,
3311
3392
  query: e.never().optional()
3312
3393
  }).parseAsync(t),
3313
3394
  url: "/api/v1/invoices/{uuid}/finalize",
3314
3395
  ...t
3315
- }), Fs = (t) => (t.client ?? p).post({
3396
+ }), Hs = (t) => (t.client ?? p).post({
3316
3397
  requestValidator: async (t) => await e.object({
3317
3398
  body: e.never().optional(),
3318
- path: Ma,
3399
+ path: za,
3319
3400
  query: e.never().optional()
3320
3401
  }).parseAsync(t),
3321
- responseValidator: async (e) => await Na.parseAsync(e),
3402
+ responseValidator: async (e) => await Ba.parseAsync(e),
3322
3403
  url: "/api/v1/invoices/{uuid}/credit-note",
3323
3404
  ...t
3324
- }), Is = (t) => (t.client ?? p).patch({
3405
+ }), Us = (t) => (t.client ?? p).patch({
3325
3406
  requestValidator: async (t) => await e.object({
3326
- body: Pa,
3327
- path: Fa,
3407
+ body: Va,
3408
+ path: Ha,
3328
3409
  query: e.never().optional()
3329
3410
  }).parseAsync(t),
3330
- responseValidator: async (e) => await Ia.parseAsync(e),
3411
+ responseValidator: async (e) => await Ua.parseAsync(e),
3331
3412
  url: "/api/v1/credit-notes/{uuid}/lines",
3332
3413
  ...t,
3333
3414
  headers: {
3334
3415
  "Content-Type": "application/json",
3335
3416
  ...t.headers
3336
3417
  }
3337
- }), Ls = (t) => (t.client ?? p).patch({
3418
+ }), Ws = (t) => (t.client ?? p).patch({
3338
3419
  requestValidator: async (t) => await e.object({
3339
- body: La,
3340
- path: Ra,
3420
+ body: Wa,
3421
+ path: Ga,
3341
3422
  query: e.never().optional()
3342
3423
  }).parseAsync(t),
3343
- responseValidator: async (e) => await za.parseAsync(e),
3424
+ responseValidator: async (e) => await Ka.parseAsync(e),
3344
3425
  url: "/api/v1/credit-notes/{uuid}",
3345
3426
  ...t,
3346
3427
  headers: {
3347
3428
  "Content-Type": "application/json",
3348
3429
  ...t.headers
3349
3430
  }
3350
- }), Rs = (t) => (t.client ?? p).post({
3431
+ }), Gs = (t) => (t.client ?? p).post({
3351
3432
  requestValidator: async (t) => await e.object({
3352
3433
  body: e.never().optional(),
3353
- path: Ba,
3434
+ path: qa,
3354
3435
  query: e.never().optional()
3355
3436
  }).parseAsync(t),
3356
3437
  url: "/api/v1/credit-notes/{uuid}/finalize",
3357
3438
  ...t
3358
- }), zs = (t) => (t.client ?? p).post({
3439
+ }), Ks = (t) => (t.client ?? p).post({
3359
3440
  requestValidator: async (t) => await e.object({
3360
3441
  body: e.never().optional(),
3361
- path: Va,
3442
+ path: Ja,
3362
3443
  query: e.never().optional()
3363
3444
  }).parseAsync(t),
3364
3445
  url: "/api/v1/invoices/{uuid}/send-email",
3365
3446
  ...t
3366
- }), Bs = (t) => (t?.client ?? p).post({
3447
+ }), qs = (t) => (t?.client ?? p).post({
3367
3448
  requestValidator: async (t) => await e.object({
3368
3449
  body: e.never().optional(),
3369
3450
  path: e.never().optional(),
3370
- query: Ha.optional()
3451
+ query: Ya.optional()
3371
3452
  }).parseAsync(t),
3372
- responseValidator: async (e) => await Ua.parseAsync(e),
3453
+ responseValidator: async (e) => await Xa.parseAsync(e),
3373
3454
  url: "/api/v1/invoices/send-mail",
3374
3455
  ...t
3375
- }), Vs = (t) => (t?.client ?? p).get({
3456
+ }), Js = (t) => (t?.client ?? p).get({
3376
3457
  requestValidator: async (t) => await e.object({
3377
3458
  body: e.never().optional(),
3378
3459
  path: e.never().optional(),
3379
- query: Wa.optional()
3460
+ query: Za.optional()
3380
3461
  }).parseAsync(t),
3381
- responseValidator: async (e) => await Ga.parseAsync(e),
3462
+ responseValidator: async (e) => await Qa.parseAsync(e),
3382
3463
  url: "/api/v1/invoices/send-mail/preview",
3383
3464
  ...t
3384
- }), Hs = (t) => (t.client ?? p).post({
3465
+ }), Ys = (t) => (t.client ?? p).post({
3385
3466
  requestValidator: async (t) => await e.object({
3386
3467
  body: e.never().optional(),
3387
- path: Ka,
3468
+ path: $a,
3388
3469
  query: e.never().optional()
3389
3470
  }).parseAsync(t),
3390
- responseValidator: async (e) => await qa.parseAsync(e),
3471
+ responseValidator: async (e) => await eo.parseAsync(e),
3391
3472
  url: "/api/v1/invoices/{uuid}/mark-as-ready",
3392
3473
  ...t
3393
- }), Us = (t) => (t.client ?? p).post({
3474
+ }), Xs = (t) => (t.client ?? p).post({
3394
3475
  requestValidator: async (t) => await e.object({
3395
3476
  body: e.never().optional(),
3396
- path: Ja,
3477
+ path: to,
3397
3478
  query: e.never().optional()
3398
3479
  }).parseAsync(t),
3399
- responseValidator: async (e) => await Ya.parseAsync(e),
3480
+ responseValidator: async (e) => await no.parseAsync(e),
3400
3481
  url: "/api/v1/invoices/{uuid}/duplicate",
3401
3482
  ...t
3402
- }), Ws = (t) => (t.client ?? p).post({
3483
+ }), Zs = (t) => (t.client ?? p).post({
3403
3484
  requestValidator: async (t) => await e.object({
3404
3485
  body: e.never().optional(),
3405
- path: Xa,
3486
+ path: ro,
3406
3487
  query: e.never().optional()
3407
3488
  }).parseAsync(t),
3408
- responseValidator: async (e) => await Za.parseAsync(e),
3489
+ responseValidator: async (e) => await io.parseAsync(e),
3409
3490
  url: "/api/v1/invoices/{uuid}/mark-as-draft",
3410
3491
  ...t
3411
- }), Gs = (t) => (t.client ?? p).post({
3492
+ }), Qs = (t) => (t.client ?? p).post({
3412
3493
  requestValidator: async (t) => await e.object({
3413
3494
  body: e.never().optional(),
3414
- path: Qa,
3495
+ path: ao,
3415
3496
  query: e.never().optional()
3416
3497
  }).parseAsync(t),
3417
- responseValidator: async (e) => await $a.parseAsync(e),
3498
+ responseValidator: async (e) => await oo.parseAsync(e),
3418
3499
  url: "/api/v1/invoices/{uuid}/mark-as-prior-approval-required",
3419
3500
  ...t
3420
- }), Ks = (t) => (t.client ?? p).post({
3501
+ }), $s = (t) => (t.client ?? p).post({
3421
3502
  requestValidator: async (t) => await e.object({
3422
3503
  body: e.never().optional(),
3423
- path: eo,
3504
+ path: so,
3424
3505
  query: e.never().optional()
3425
3506
  }).parseAsync(t),
3426
- responseValidator: async (e) => await to.parseAsync(e),
3507
+ responseValidator: async (e) => await co.parseAsync(e),
3427
3508
  url: "/api/v1/invoices/{uuid}/unmark-as-prior-approval-required",
3428
3509
  ...t
3429
- }), qs = (t) => (t.client ?? p).post({
3510
+ }), ec = (t) => (t.client ?? p).post({
3430
3511
  requestValidator: async (t) => await e.object({
3431
3512
  body: e.never().optional(),
3432
- path: no,
3513
+ path: lo,
3433
3514
  query: e.never().optional()
3434
3515
  }).parseAsync(t),
3435
- responseValidator: async (e) => await ro.parseAsync(e),
3516
+ responseValidator: async (e) => await uo.parseAsync(e),
3436
3517
  url: "/api/v1/invoices/{uuid}/mark-as-disputed",
3437
3518
  ...t
3438
- }), Js = (t) => (t.client ?? p).post({
3519
+ }), tc = (t) => (t.client ?? p).post({
3439
3520
  requestValidator: async (t) => await e.object({
3440
3521
  body: e.never().optional(),
3441
- path: io,
3522
+ path: fo,
3442
3523
  query: e.never().optional()
3443
3524
  }).parseAsync(t),
3444
- responseValidator: async (e) => await ao.parseAsync(e),
3525
+ responseValidator: async (e) => await po.parseAsync(e),
3445
3526
  url: "/api/v1/invoices/{uuid}/mark-as-paid",
3446
3527
  ...t
3447
- }), Ys = (t) => (t?.client ?? p).get({
3528
+ }), nc = (t) => (t?.client ?? p).get({
3448
3529
  requestValidator: async (t) => await e.object({
3449
3530
  body: e.never().optional(),
3450
3531
  path: e.never().optional(),
3451
- query: oo.optional()
3532
+ query: mo.optional()
3452
3533
  }).parseAsync(t),
3453
- responseValidator: async (e) => await so.parseAsync(e),
3534
+ responseValidator: async (e) => await ho.parseAsync(e),
3454
3535
  url: "/api/v1/invoices/mark-as-ready/preview",
3455
3536
  ...t
3456
- }), Xs = (t) => (t?.client ?? p).post({
3537
+ }), rc = (t) => (t?.client ?? p).post({
3457
3538
  requestValidator: async (t) => await e.object({
3458
3539
  body: e.never().optional(),
3459
3540
  path: e.never().optional(),
3460
- query: co.optional()
3541
+ query: go.optional()
3461
3542
  }).parseAsync(t),
3462
- responseValidator: async (e) => await lo.parseAsync(e),
3543
+ responseValidator: async (e) => await _o.parseAsync(e),
3463
3544
  url: "/api/v1/invoices/mark-as-ready",
3464
3545
  ...t
3465
- }), Zs = (t) => (t.client ?? p).post({
3546
+ }), ic = (t) => (t.client ?? p).post({
3466
3547
  requestValidator: async (t) => await e.object({
3467
3548
  body: e.never().optional(),
3468
- path: uo,
3549
+ path: vo,
3469
3550
  query: e.never().optional()
3470
3551
  }).parseAsync(t),
3471
- responseValidator: async (e) => await fo.parseAsync(e),
3552
+ responseValidator: async (e) => await yo.parseAsync(e),
3472
3553
  url: "/api/v1/invoices/{uuid}/withdraw-disputed",
3473
3554
  ...t
3474
- }), Qs = (t) => (t?.client ?? p).get({
3555
+ }), ac = (t) => (t?.client ?? p).get({
3475
3556
  requestValidator: async (t) => await e.object({
3476
3557
  body: e.never().optional(),
3477
3558
  path: e.never().optional(),
3478
- query: po.optional()
3559
+ query: bo.optional()
3479
3560
  }).parseAsync(t),
3480
- responseValidator: async (e) => await mo.parseAsync(e),
3561
+ responseValidator: async (e) => await xo.parseAsync(e),
3481
3562
  url: "/api/v1/invoices/finalize/preview",
3482
3563
  ...t
3483
- }), $s = (t) => (t?.client ?? p).post({
3564
+ }), oc = (t) => (t?.client ?? p).post({
3484
3565
  requestValidator: async (t) => await e.object({
3485
3566
  body: e.never().optional(),
3486
3567
  path: e.never().optional(),
3487
- query: ho.optional()
3568
+ query: So.optional()
3488
3569
  }).parseAsync(t),
3489
- responseValidator: async (e) => await go.parseAsync(e),
3570
+ responseValidator: async (e) => await Co.parseAsync(e),
3490
3571
  url: "/api/v1/invoices/finalize",
3491
3572
  ...t
3492
- }), ec = (t) => (t.client ?? p).post({
3573
+ }), sc = (t) => (t.client ?? p).post({
3493
3574
  requestValidator: async (t) => await e.object({
3494
3575
  body: e.never().optional(),
3495
- path: _o,
3576
+ path: wo,
3496
3577
  query: e.never().optional()
3497
3578
  }).parseAsync(t),
3498
- responseValidator: async (e) => await vo.parseAsync(e),
3579
+ responseValidator: async (e) => await To.parseAsync(e),
3499
3580
  url: "/api/v1/invoices/{uuid}/restore-from-pro-forma",
3500
3581
  ...t
3501
- }), tc = (t) => (t?.client ?? p).get({
3582
+ }), cc = (t) => (t?.client ?? p).get({
3502
3583
  requestValidator: async (t) => await e.object({
3503
3584
  body: e.never().optional(),
3504
3585
  path: e.never().optional(),
3505
- query: yo.optional()
3586
+ query: Eo.optional()
3506
3587
  }).parseAsync(t),
3507
- responseValidator: async (e) => await bo.parseAsync(e),
3588
+ responseValidator: async (e) => await Do.parseAsync(e),
3508
3589
  url: "/api/v1/activity-logs",
3509
3590
  ...t
3510
- }), nc = (t) => (t.client ?? p).get({
3591
+ }), lc = (t) => (t.client ?? p).get({
3511
3592
  requestValidator: async (t) => await e.object({
3512
3593
  body: e.never().optional(),
3513
- path: xo,
3594
+ path: Oo,
3514
3595
  query: e.never().optional()
3515
3596
  }).parseAsync(t),
3516
- responseValidator: async (e) => await So.parseAsync(e),
3597
+ responseValidator: async (e) => await ko.parseAsync(e),
3517
3598
  url: "/api/v1/invoices/{uuid}/payments",
3518
3599
  ...t
3519
- }), rc = (t) => (t.client ?? p).post({
3600
+ }), uc = (t) => (t.client ?? p).post({
3520
3601
  requestValidator: async (t) => await e.object({
3521
- body: Co,
3522
- path: wo,
3602
+ body: Ao,
3603
+ path: jo,
3523
3604
  query: e.never().optional()
3524
3605
  }).parseAsync(t),
3525
- responseValidator: async (e) => await To.parseAsync(e),
3606
+ responseValidator: async (e) => await Mo.parseAsync(e),
3526
3607
  url: "/api/v1/invoices/{uuid}/payments",
3527
3608
  ...t,
3528
3609
  headers: {
3529
3610
  "Content-Type": "application/json",
3530
3611
  ...t.headers
3531
3612
  }
3532
- }), ic = (t) => (t.client ?? p).delete({
3613
+ }), dc = (t) => (t.client ?? p).delete({
3533
3614
  requestValidator: async (t) => await e.object({
3534
3615
  body: e.never().optional(),
3535
- path: Eo,
3616
+ path: No,
3536
3617
  query: e.never().optional()
3537
3618
  }).parseAsync(t),
3538
- responseValidator: async (e) => await Do.parseAsync(e),
3619
+ responseValidator: async (e) => await Po.parseAsync(e),
3539
3620
  url: "/api/v1/invoices/{uuid}/payments/{paymentUuid}",
3540
3621
  ...t
3541
- }), ac = (t) => (t?.client ?? p).get({
3622
+ }), fc = (t) => (t?.client ?? p).get({
3542
3623
  requestValidator: async (t) => await e.object({
3543
3624
  body: e.never().optional(),
3544
3625
  path: e.never().optional(),
3545
3626
  query: e.never().optional()
3546
3627
  }).parseAsync(t),
3547
- responseValidator: async (e) => await Oo.parseAsync(e),
3628
+ responseValidator: async (e) => await Fo.parseAsync(e),
3548
3629
  url: "/api/v1/issuers/reminder-configs",
3549
3630
  ...t
3550
- }), oc = (t) => (t.client ?? p).patch({
3631
+ }), pc = (t) => (t.client ?? p).patch({
3551
3632
  requestValidator: async (t) => await e.object({
3552
- body: ko,
3633
+ body: Io,
3553
3634
  path: e.never().optional(),
3554
3635
  query: e.never().optional()
3555
3636
  }).parseAsync(t),
3556
- responseValidator: async (e) => await Ao.parseAsync(e),
3637
+ responseValidator: async (e) => await Lo.parseAsync(e),
3557
3638
  url: "/api/v1/issuers/reminder-configs",
3558
3639
  ...t,
3559
3640
  headers: {
3560
3641
  "Content-Type": "application/json",
3561
3642
  ...t.headers
3562
3643
  }
3563
- }), sc = (t) => (t?.client ?? p).get({
3644
+ }), mc = (t) => (t?.client ?? p).get({
3564
3645
  requestValidator: async (t) => await e.object({
3565
3646
  body: e.never().optional(),
3566
3647
  path: e.never().optional(),
3567
- query: jo.optional()
3648
+ query: Ro.optional()
3568
3649
  }).parseAsync(t),
3569
- responseValidator: async (e) => await Mo.parseAsync(e),
3650
+ responseValidator: async (e) => await zo.parseAsync(e),
3570
3651
  url: "/api/v1/custom-field-definitions",
3571
3652
  ...t
3572
- }), cc = (t) => (t.client ?? p).get({
3653
+ }), hc = (t) => (t.client ?? p).get({
3573
3654
  requestValidator: async (t) => await e.object({
3574
3655
  body: e.never().optional(),
3575
- path: No,
3656
+ path: Bo,
3576
3657
  query: e.never().optional()
3577
3658
  }).parseAsync(t),
3578
- responseValidator: async (e) => await Po.parseAsync(e),
3659
+ responseValidator: async (e) => await Vo.parseAsync(e),
3579
3660
  url: "/api/v1/dunning-cases/{uuid}",
3580
3661
  ...t
3581
- }), lc = (t) => (t?.client ?? p).get({
3662
+ }), gc = (t) => (t?.client ?? p).get({
3582
3663
  requestValidator: async (t) => await e.object({
3583
3664
  body: e.never().optional(),
3584
3665
  path: e.never().optional(),
3585
- query: Fo.optional()
3666
+ query: Ho.optional()
3586
3667
  }).parseAsync(t),
3587
- responseValidator: async (e) => await Io.parseAsync(e),
3668
+ responseValidator: async (e) => await Uo.parseAsync(e),
3588
3669
  url: "/api/v1/dunning-cases",
3589
3670
  ...t
3590
- }), uc = (t) => (t.client ?? p).post({
3671
+ }), _c = (t) => (t.client ?? p).post({
3591
3672
  requestValidator: async (t) => await e.object({
3592
3673
  body: e.never().optional(),
3593
- path: Lo,
3674
+ path: Wo,
3594
3675
  query: e.never().optional()
3595
3676
  }).parseAsync(t),
3596
3677
  url: "/api/v1/dunning-cases/{uuid}/send",
3597
3678
  ...t
3598
- }), dc = (t) => (t.client ?? p).post({
3679
+ }), vc = (t) => (t.client ?? p).post({
3599
3680
  requestValidator: async (t) => await e.object({
3600
3681
  body: e.never().optional(),
3601
- path: Ro,
3682
+ path: Go,
3602
3683
  query: e.never().optional()
3603
3684
  }).parseAsync(t),
3604
3685
  url: "/api/v1/dunning-case-reminders/{uuid}/retry",
3605
3686
  ...t
3606
- }), fc = (t) => (t?.client ?? p).post({
3687
+ }), yc = (t) => (t?.client ?? p).post({
3607
3688
  requestValidator: async (t) => await e.object({
3608
3689
  body: e.never().optional(),
3609
3690
  path: e.never().optional(),
3610
- query: zo.optional()
3691
+ query: Ko.optional()
3611
3692
  }).parseAsync(t),
3612
- responseValidator: async (e) => await Bo.parseAsync(e),
3693
+ responseValidator: async (e) => await qo.parseAsync(e),
3613
3694
  url: "/api/v1/dunning-cases/send",
3614
3695
  ...t
3615
- }), pc = (t) => (t?.client ?? p).get({
3696
+ }), bc = (t) => (t?.client ?? p).get({
3616
3697
  requestValidator: async (t) => await e.object({
3617
3698
  body: e.never().optional(),
3618
3699
  path: e.never().optional(),
3619
- query: Vo.optional()
3700
+ query: Jo.optional()
3620
3701
  }).parseAsync(t),
3621
- responseValidator: async (e) => await Ho.parseAsync(e),
3702
+ responseValidator: async (e) => await Yo.parseAsync(e),
3622
3703
  url: "/api/v1/dunning-cases/send/preview",
3623
3704
  ...t
3624
- }), mc = (t) => (t.client ?? p).get({
3705
+ }), xc = (t) => (t.client ?? p).get({
3625
3706
  requestValidator: async (t) => await e.object({
3626
3707
  body: e.never().optional(),
3627
3708
  path: e.never().optional(),
3628
- query: Uo
3709
+ query: Xo
3629
3710
  }).parseAsync(t),
3630
- responseValidator: async (e) => await Wo.parseAsync(e),
3711
+ responseValidator: async (e) => await Zo.parseAsync(e),
3631
3712
  url: "/api/v1/public/dunning-case-reminder-invoices",
3632
3713
  ...t
3633
- }), hc = (t) => (t.client ?? p).post({
3714
+ }), Sc = (t) => (t.client ?? p).post({
3634
3715
  requestValidator: async (t) => await e.object({
3635
3716
  body: e.never().optional(),
3636
- path: Go,
3717
+ path: Qo,
3637
3718
  query: e.never().optional()
3638
3719
  }).parseAsync(t),
3639
3720
  url: "/api/v1/invoices/{uuid}/send-approval",
3640
3721
  ...t
3641
- }), gc = (t) => (t?.client ?? p).get({
3722
+ }), Cc = (t) => (t?.client ?? p).get({
3642
3723
  requestValidator: async (t) => await e.object({
3643
3724
  body: e.never().optional(),
3644
3725
  path: e.never().optional(),
3645
- query: Ko.optional()
3726
+ query: $o.optional()
3646
3727
  }).parseAsync(t),
3647
- responseValidator: async (e) => await qo.parseAsync(e),
3728
+ responseValidator: async (e) => await es.parseAsync(e),
3648
3729
  url: "/api/v1/invoices/send-approval/preview",
3649
3730
  ...t
3650
- }), _c = (t) => (t?.client ?? p).post({
3731
+ }), wc = (t) => (t?.client ?? p).post({
3651
3732
  requestValidator: async (t) => await e.object({
3652
3733
  body: e.never().optional(),
3653
3734
  path: e.never().optional(),
3654
- query: Jo.optional()
3735
+ query: ts.optional()
3655
3736
  }).parseAsync(t),
3656
- responseValidator: async (e) => await Yo.parseAsync(e),
3737
+ responseValidator: async (e) => await ns.parseAsync(e),
3657
3738
  url: "/api/v1/invoices/send-approval",
3658
3739
  ...t
3659
- }), vc = (t) => (t.client ?? p).post({
3740
+ }), Tc = (t) => (t.client ?? p).post({
3660
3741
  requestValidator: async (t) => await e.object({
3661
- body: Xo,
3662
- path: Zo,
3742
+ body: rs,
3743
+ path: is,
3663
3744
  query: e.never().optional()
3664
3745
  }).parseAsync(t),
3665
- responseValidator: async (e) => await Qo.parseAsync(e),
3746
+ responseValidator: async (e) => await as.parseAsync(e),
3666
3747
  url: "/api/v1/invoice-approvals/{uuid}/approve",
3667
3748
  ...t,
3668
3749
  headers: {
3669
3750
  "Content-Type": "application/json",
3670
3751
  ...t.headers
3671
3752
  }
3672
- }), yc = (t) => (t.client ?? p).post({
3753
+ }), Ec = (t) => (t.client ?? p).post({
3673
3754
  requestValidator: async (t) => await e.object({
3674
- body: $o,
3675
- path: es,
3755
+ body: os,
3756
+ path: ss,
3676
3757
  query: e.never().optional()
3677
3758
  }).parseAsync(t),
3678
- responseValidator: async (e) => await ts.parseAsync(e),
3759
+ responseValidator: async (e) => await cs.parseAsync(e),
3679
3760
  url: "/api/v1/invoice-approvals/{uuid}/reject",
3680
3761
  ...t,
3681
3762
  headers: {
3682
3763
  "Content-Type": "application/json",
3683
3764
  ...t.headers
3684
3765
  }
3685
- }), bc = (t) => (t.client ?? p).post({
3766
+ }), Dc = (t) => (t.client ?? p).post({
3686
3767
  requestValidator: async (t) => await e.object({
3687
3768
  body: e.never().optional(),
3688
- path: ns,
3769
+ path: ls,
3689
3770
  query: e.never().optional()
3690
3771
  }).parseAsync(t),
3691
- responseValidator: async (e) => await rs.parseAsync(e),
3772
+ responseValidator: async (e) => await us.parseAsync(e),
3692
3773
  url: "/api/v1/invoice-approvals/{uuid}/cancel",
3693
3774
  ...t
3694
- }), xc = (t) => (t.client ?? p).post({
3775
+ }), Oc = (t) => (t.client ?? p).post({
3695
3776
  requestValidator: async (t) => await e.object({
3696
3777
  body: e.never().optional(),
3697
- path: is,
3778
+ path: ds,
3698
3779
  query: e.never().optional()
3699
3780
  }).parseAsync(t),
3700
3781
  url: "/api/v1/invoices/{uuid}/restart-approval",
3701
3782
  ...t
3702
- }), Sc = (t) => (t?.client ?? p).get({
3783
+ }), kc = (t) => (t?.client ?? p).get({
3703
3784
  requestValidator: async (t) => await e.object({
3704
3785
  body: e.never().optional(),
3705
3786
  path: e.never().optional(),
3706
- query: as.optional()
3787
+ query: fs.optional()
3707
3788
  }).parseAsync(t),
3708
- responseValidator: async (e) => await os.parseAsync(e),
3789
+ responseValidator: async (e) => await ps.parseAsync(e),
3709
3790
  url: "/api/v1/invoice-approvals",
3710
3791
  ...t
3711
- }), Cc = (t) => (t.client ?? p).get({
3792
+ }), Ac = (t) => (t.client ?? p).get({
3712
3793
  requestValidator: async (t) => await e.object({
3713
3794
  body: e.never().optional(),
3714
3795
  path: e.never().optional(),
3715
- query: ss
3796
+ query: ms
3716
3797
  }).parseAsync(t),
3717
- responseValidator: async (e) => await cs.parseAsync(e),
3798
+ responseValidator: async (e) => await hs.parseAsync(e),
3718
3799
  url: "/api/v1/public/pro-formas",
3719
3800
  ...t
3720
- }), wc = (t) => (t?.client ?? p).get({
3801
+ }), jc = (t) => (t?.client ?? p).get({
3721
3802
  requestValidator: async (t) => await e.object({
3722
3803
  body: e.never().optional(),
3723
3804
  path: e.never().optional(),
3724
3805
  query: e.never().optional()
3725
3806
  }).parseAsync(t),
3726
- responseValidator: async (e) => await ls.parseAsync(e),
3807
+ responseValidator: async (e) => await gs.parseAsync(e),
3727
3808
  url: "/api/v1/issuers/approval-reminder-configs",
3728
3809
  ...t
3729
- }), Tc = (t) => (t.client ?? p).patch({
3810
+ }), Mc = (t) => (t.client ?? p).patch({
3730
3811
  requestValidator: async (t) => await e.object({
3731
- body: us,
3812
+ body: _s,
3732
3813
  path: e.never().optional(),
3733
3814
  query: e.never().optional()
3734
3815
  }).parseAsync(t),
3735
- responseValidator: async (e) => await ds.parseAsync(e),
3816
+ responseValidator: async (e) => await vs.parseAsync(e),
3736
3817
  url: "/api/v1/issuers/approval-reminder-configs",
3737
3818
  ...t,
3738
3819
  headers: {
3739
3820
  "Content-Type": "application/json",
3740
3821
  ...t.headers
3741
3822
  }
3742
- }), Ec = (t) => (t?.client ?? p).get({
3823
+ }), Nc = (t) => (t?.client ?? p).get({
3743
3824
  requestValidator: async (t) => await e.object({
3744
3825
  body: e.never().optional(),
3745
3826
  path: e.never().optional(),
3746
3827
  query: e.never().optional()
3747
3828
  }).parseAsync(t),
3748
- responseValidator: async (e) => await fs.parseAsync(e),
3829
+ responseValidator: async (e) => await ys.parseAsync(e),
3749
3830
  url: "/api/v1/issuers/peppol-connection",
3750
3831
  ...t
3751
- }), Dc = (t) => (t.client ?? p).put({
3832
+ }), Pc = (t) => (t.client ?? p).put({
3752
3833
  requestValidator: async (t) => await e.object({
3753
- body: ps,
3834
+ body: bs,
3754
3835
  path: e.never().optional(),
3755
3836
  query: e.never().optional()
3756
3837
  }).parseAsync(t),
@@ -3760,13 +3841,13 @@ var Ta = Gn, Ea = e.object({ uuid: e.uuid() }), Da = e.void(), Oa = Kn, ka = e.o
3760
3841
  "Content-Type": "application/json",
3761
3842
  ...t.headers
3762
3843
  }
3763
- }), Oc = (t) => (t.client ?? p).post({
3844
+ }), Fc = (t) => (t.client ?? p).post({
3764
3845
  requestValidator: async (t) => await e.object({
3765
- body: ms,
3846
+ body: xs,
3766
3847
  path: e.never().optional(),
3767
3848
  query: e.never().optional()
3768
3849
  }).parseAsync(t),
3769
- responseValidator: async (e) => await hs.parseAsync(e),
3850
+ responseValidator: async (e) => await Ss.parseAsync(e),
3770
3851
  url: "/api/v1/issuers/peppol-connection/test",
3771
3852
  ...t,
3772
3853
  headers: {
@@ -3776,19 +3857,19 @@ var Ta = Gn, Ea = e.object({ uuid: e.uuid() }), Da = e.void(), Oa = Kn, ka = e.o
3776
3857
  });
3777
3858
  //#endregion
3778
3859
  //#region src/utils/api.util.ts
3779
- function kc(e) {
3860
+ function Ic(e) {
3780
3861
  return typeof e == "object" && !!e && Array.isArray(e.errors);
3781
3862
  }
3782
- function Ac(e) {
3783
- return kc(e) || e instanceof Error ? e : Error(String(e));
3863
+ function Lc(e) {
3864
+ return Ic(e) || e instanceof Error ? e : Error(String(e));
3784
3865
  }
3785
- var jc = class {
3866
+ var Rc = class {
3786
3867
  static async fromPromise(e) {
3787
- return await t.fromPromise(e, Ac);
3868
+ return await t.fromPromise(e, Lc);
3788
3869
  }
3789
3870
  static void(e) {
3790
3871
  return e.isErr() ? n(e.error) : r();
3791
3872
  }
3792
3873
  };
3793
3874
  //#endregion
3794
- export { bs as $, Vs as A, Tc as B, Js as C, Ys as D, Qs as E, uc as F, As as G, Ls as H, hc as I, oc as J, ws as K, zs as L, xc as M, ec as N, pc as O, dc as P, xs as Q, Oc as R, Ws as S, Hs as T, Ns as U, Is as V, js as W, wc as X, tc as Y, sc as Z, ys as _, Xs as a, Es as at, Ps as b, Bs as c, Ec as ct, Fs as d, Cc as dt, Ss as et, _s as f, ac as ft, ic as g, Os as h, p as ht, $s as i, ks as it, yc as j, gc as k, bc as l, mc as lt, rc as m, Zs as mt, Ms as n, lc as nt, fc as o, nc as ot, Ds as p, gs as pt, Dc as q, vc as r, Sc as rt, _c as s, Cs as st, jc as t, cc as tt, vs as u, Ts as ut, Us as v, Gs as w, qs as x, Rs as y, Ks as z };
3875
+ export { Ds as $, Js as A, Mc as B, tc as C, nc as D, ac as E, _c as F, Ls as G, Ws as H, Sc as I, pc as J, js as K, Ks as L, Oc as M, sc as N, bc as O, vc as P, Os as Q, Fc as R, Zs as S, Ys as T, Bs as U, Us as V, Rs as W, jc as X, cc as Y, mc as Z, Es as _, rc as a, Ns as at, Vs as b, qs as c, Nc as ct, Hs as d, Ac as dt, ks as et, ws as f, fc as ft, dc as g, Fs as h, p as ht, oc as i, Is as it, Ec as j, Cc as k, Dc as l, xc as lt, uc as m, ic as mt, zs as n, gc as nt, yc as o, lc as ot, Ps as p, Cs as pt, Pc as q, Tc as r, kc as rt, wc as s, As as st, Rc as t, hc as tt, Ts as u, Ms as ut, Xs as v, Qs as w, ec as x, Gs as y, $s as z };