@wisemen/wise-invoicing-web 0.12.0 → 0.13.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 (47) hide show
  1. package/dist/{ApprovalReminderSettingsViewDataProvider-BnHeEMZD.js → ApprovalReminderSettingsViewDataProvider-HANaeRzK.js} +3 -3
  2. package/dist/{BillingDocumentDetailViewDataProvider-Dm8C5WNN.js → BillingDocumentDetailViewDataProvider-BVrmLEP5.js} +9 -14
  3. package/dist/{BillingDocumentPdf-57ksqoPW.js → BillingDocumentPdf-BLlJw5Wp.js} +3 -3
  4. package/dist/{CreditNoteDetailViewDataProvider-CC4gnwSN.js → CreditNoteDetailViewDataProvider-CnmNQyXq.js} +6 -6
  5. package/dist/{CreditNotePdfViewDataProvider-C9vgN3kV.js → CreditNotePdfViewDataProvider-Bu8lNWSx.js} +3 -3
  6. package/dist/{CustomFieldValueText-CvWq0fl_.js → CustomFieldValueText-DX_7bMFM.js} +2 -2
  7. package/dist/{DunningCaseSendDialog-CfWSrquA.js → DunningCaseSendDialog-D5_uNt0g.js} +12 -12
  8. package/dist/{InvoiceApprovalOutOfSyncIndicator-CKLAraIU.js → InvoiceApprovalOutOfSyncIndicator-CX7hLBIC.js} +1 -1
  9. package/dist/{InvoiceApprovalOverviewView-DpL-vV8_.js → InvoiceApprovalOverviewView-1pLrgcIU.js} +6 -6
  10. package/dist/{InvoiceApprovalStatusBadge-oVWkCqZY.js → InvoiceApprovalStatusBadge-DqsSuo4M.js} +2 -2
  11. package/dist/{InvoiceApproveDialogDataProvider-serNDdl9.js → InvoiceApproveDialogDataProvider-D22o3mIC.js} +6 -6
  12. package/dist/{InvoiceDetailViewDataProvider-BaT7fgsi.js → InvoiceDetailViewDataProvider-DoqOGDZb.js} +14 -14
  13. package/dist/{InvoicePdfView-MaBnd78V.js → InvoicePdfView-Df9masUV.js} +1 -1
  14. package/dist/{InvoicePdfViewDataProvider-BIHBY608.js → InvoicePdfViewDataProvider-CKCp0TJ7.js} +3 -3
  15. package/dist/{InvoicePublicProFormaPdfViewDataProvider-KY8pN59k.js → InvoicePublicProFormaPdfViewDataProvider-CqAP9Ckj.js} +3 -3
  16. package/dist/{InvoicingFileUploadProvider-CxmF68sz.js → InvoicingFileUploadProvider-Da_JGESE.js} +9 -9
  17. package/dist/IssuerSettingsViewDataProvider-xXQEED2s.js +544 -0
  18. package/dist/{PeppolSettingsViewDataProvider-C7lwtu7n.js → PeppolSettingsViewDataProvider-B4Hu1RQk.js} +4 -4
  19. package/dist/{api.util-Ct8FnoLB.js → api.util-DpWaDY5y.js} +671 -587
  20. package/dist/{billingDocumentDetail.transformer-B3ypgtIv.js → billingDocumentDetail.transformer-BJQFbO87.js} +1 -1
  21. package/dist/client/index.d.ts +2 -2
  22. package/dist/client/sdk.gen.d.ts +3 -1
  23. package/dist/client/types.gen.d.ts +84 -0
  24. package/dist/client/zod.gen.d.ts +2236 -886
  25. package/dist/{creditNoteDetail.query-C2BYvPKC.js → creditNoteDetail.query-BVXYLSMf.js} +18 -18
  26. package/dist/{i18n.lib-8sQYo5_y.js → i18n.lib-Be2_Gg1d.js} +24 -0
  27. package/dist/index.d.ts +24 -0
  28. package/dist/index.js +905 -790
  29. package/dist/{invoice.service-CtePUw1R.js → invoice.service-Dugf3vP3.js} +110 -104
  30. package/dist/{invoiceApproval.service-CQzG8_wX.js → invoiceApproval.service-TTtH_nbV.js} +2 -2
  31. package/dist/{invoiceApprovalStatus.util-C4su45dU.js → invoiceApprovalStatus.util-BebJpPKg.js} +1 -1
  32. package/dist/{invoiceCustomer.service-CzbM3ey1.js → invoiceCustomer.service-BgaMvr34.js} +6 -6
  33. package/dist/{invoiceDetail.query-NNAoIuWN.js → invoiceDetail.query-DaY-Dwp4.js} +1 -1
  34. package/dist/{invoiceIndexCache.util-DI0WM-eW.js → invoiceIndexCache.util-8JQCyWbl.js} +2 -2
  35. package/dist/{invoicingConfig.composable-DXJ71Uq_.js → invoicingConfig.composable-DQTYsGa7.js} +2 -2
  36. package/dist/{issuerSettings.query-ggEHdk0S.js → issuerSettings.query-mMH2f5g6.js} +1 -1
  37. package/dist/libs/i18n.lib.d.ts +24 -0
  38. package/dist/locales/en-US.json.d.ts +12 -0
  39. package/dist/locales/nl-BE.json.d.ts +12 -0
  40. package/dist/modules/invoice/api/mutations/invoiceBulkDelete.mutation.d.ts +5 -0
  41. package/dist/modules/invoice/api/services/invoice.service.d.ts +3 -1
  42. package/dist/modules/invoice/use-cases/overview/components/InvoiceOverviewBulkActionBar.vue.d.ts +3 -0
  43. package/dist/modules/invoice/use-cases/overview/dialogs/InvoiceOverviewBulkActionDialog.vue.d.ts +1 -0
  44. package/dist/modules/invoice/use-cases/overview/dialogs/InvoiceOverviewBulkDeleteDialog.vue.d.ts +14 -0
  45. package/dist/{reminderConfig.query-C2xT3DJH.js → reminderConfig.query-Dn0_h7xY.js} +14 -14
  46. package/package.json +1 -1
  47. package/dist/IssuerSettingsViewDataProvider-DJzVZS8Q.js +0 -543
@@ -1124,17 +1124,17 @@ e.object({
1124
1124
  status: e.enum(["409"]),
1125
1125
  code: e.enum(["external_customer_contacts_read_only"])
1126
1126
  });
1127
- var w = e.object({
1127
+ var Bt = e.object({
1128
1128
  name: e.string().nullable(),
1129
1129
  email: e.email().max(255),
1130
1130
  ccEmails: e.array(e.email()).max(10),
1131
1131
  bccEmails: e.array(e.email()).max(10)
1132
1132
  });
1133
1133
  e.object({
1134
- invoice: w.nullish(),
1135
- creditNote: w.nullish(),
1136
- approval: w.nullish(),
1137
- dunning: w.nullish()
1134
+ invoice: Bt.nullish(),
1135
+ creditNote: Bt.nullish(),
1136
+ approval: Bt.nullish(),
1137
+ dunning: Bt.nullish()
1138
1138
  }), e.object({
1139
1139
  customerUuid: e.uuid(),
1140
1140
  email: e.string(),
@@ -1145,7 +1145,7 @@ e.object({
1145
1145
  status: e.enum(["404"]),
1146
1146
  code: e.enum(["recipient_not_found"])
1147
1147
  });
1148
- var Bt = e.object({
1148
+ var Vt = e.object({
1149
1149
  uuid: e.uuid(),
1150
1150
  name: e.string()
1151
1151
  });
@@ -1153,21 +1153,21 @@ e.object({
1153
1153
  uuid: e.uuid(),
1154
1154
  name: e.string().nullable(),
1155
1155
  email: e.string(),
1156
- customer: Bt,
1156
+ customer: Vt,
1157
1157
  isDefault: e.boolean()
1158
1158
  }), e.object({
1159
1159
  email: e.string(),
1160
1160
  name: e.string().nullish(),
1161
1161
  isDefault: e.boolean()
1162
1162
  });
1163
- var Vt = e.object({
1163
+ var Ht = e.object({
1164
1164
  uuid: e.uuid(),
1165
1165
  name: e.string().nullable(),
1166
1166
  email: e.email(),
1167
1167
  customerUuid: e.uuid(),
1168
1168
  isDefault: e.boolean()
1169
- }), Ht = e.object({
1170
- items: e.array(Vt),
1169
+ }), Ut = e.object({
1170
+ items: e.array(Ht),
1171
1171
  meta: g
1172
1172
  });
1173
1173
  e.object({
@@ -1175,29 +1175,29 @@ e.object({
1175
1175
  status: e.enum(["404"]),
1176
1176
  code: e.enum(["issuer_not_found"])
1177
1177
  });
1178
- var Ut = e.enum([
1178
+ var Wt = e.enum([
1179
1179
  "none",
1180
1180
  "YYYY",
1181
1181
  "YY",
1182
1182
  "YYYYMM",
1183
1183
  "YYMM",
1184
1184
  "YYYYMMDD"
1185
- ]), Wt = e.enum([
1185
+ ]), Gt = e.enum([
1186
1186
  "none",
1187
1187
  "hyphen",
1188
1188
  "slash",
1189
1189
  "underscore",
1190
1190
  "period"
1191
- ]), Gt = e.object({
1192
- value: Wt,
1191
+ ]), Kt = e.object({
1192
+ value: Gt,
1193
1193
  afterPrefix: e.boolean(),
1194
1194
  afterDate: e.boolean()
1195
- }), Kt = e.object({
1195
+ }), qt = e.object({
1196
1196
  prefix: e.string().max(10).nullable(),
1197
- dateFormat: Ut,
1197
+ dateFormat: Wt,
1198
1198
  minDigits: e.int().gte(0).lte(10),
1199
- separator: Gt
1200
- }), qt = e.enum(["never", "yearly"]), Jt = e.object({
1199
+ separator: Kt
1200
+ }), Jt = e.enum(["never", "yearly"]), Yt = e.object({
1201
1201
  uuid: e.uuid(),
1202
1202
  createdAt: e.string(),
1203
1203
  updatedAt: e.string(),
@@ -1210,12 +1210,12 @@ var Ut = e.enum([
1210
1210
  bic: e.string().nullable(),
1211
1211
  bankAccountNumber: e.string().nullable(),
1212
1212
  currency: y,
1213
- invoiceSequenceFormat: Kt,
1214
- creditNoteSequenceFormat: Kt,
1213
+ invoiceSequenceFormat: qt,
1214
+ creditNoteSequenceFormat: qt,
1215
1215
  shareCreditNoteSequence: e.boolean(),
1216
1216
  isSequenceFormatChangeImmediate: e.boolean(),
1217
1217
  isCreditNoteSequenceChangeImmediate: e.boolean(),
1218
- sequenceReset: qt,
1218
+ sequenceReset: Jt,
1219
1219
  defaultPaymentTerm: Pt,
1220
1220
  requiresInvoiceApprovalFile: e.boolean(),
1221
1221
  allowsEditingExternallyCreatedInvoices: e.boolean()
@@ -1229,7 +1229,7 @@ e.object({
1229
1229
  status: e.enum(["409"]),
1230
1230
  code: e.enum(["sequence_sharing_would_reuse_numbers"])
1231
1231
  });
1232
- var Yt = e.object({
1232
+ var Xt = e.object({
1233
1233
  email: e.email().nullable(),
1234
1234
  name: e.string().nullable(),
1235
1235
  phoneNumber: e.string().nullable(),
@@ -1239,10 +1239,10 @@ var Yt = e.object({
1239
1239
  bankAccountNumber: e.string().nullable(),
1240
1240
  bic: e.string().nullable(),
1241
1241
  currency: y,
1242
- invoiceSequenceFormat: Kt,
1243
- creditNoteSequenceFormat: Kt.optional(),
1242
+ invoiceSequenceFormat: qt,
1243
+ creditNoteSequenceFormat: qt.optional(),
1244
1244
  shareCreditNoteSequence: e.boolean().optional(),
1245
- sequenceReset: qt,
1245
+ sequenceReset: Jt,
1246
1246
  defaultPaymentTerm: Pt
1247
1247
  });
1248
1248
  e.object({
@@ -1250,23 +1250,23 @@ e.object({
1250
1250
  status: e.enum(["404"]),
1251
1251
  code: e.enum(["invoice_not_found"])
1252
1252
  });
1253
- var T = e.object({
1253
+ var w = e.object({
1254
1254
  definitionUuid: e.uuid(),
1255
1255
  type: e.enum(["text"]),
1256
1256
  value: e.string()
1257
- }), E = e.object({
1257
+ }), T = e.object({
1258
1258
  definitionUuid: e.uuid(),
1259
1259
  type: e.enum(["text_array"]),
1260
1260
  value: e.array(e.string())
1261
- }), D = e.object({
1261
+ }), E = e.object({
1262
1262
  definitionUuid: e.uuid(),
1263
1263
  type: e.enum(["number"]),
1264
1264
  value: e.number()
1265
- }), O = e.object({
1265
+ }), D = e.object({
1266
1266
  definitionUuid: e.uuid(),
1267
1267
  type: e.enum(["boolean"]),
1268
1268
  value: e.boolean()
1269
- }), k = e.object({
1269
+ }), O = e.object({
1270
1270
  definitionUuid: e.uuid(),
1271
1271
  type: e.enum(["date"]),
1272
1272
  value: e.union([
@@ -1274,27 +1274,27 @@ var T = e.object({
1274
1274
  e.enum(["infinity"]),
1275
1275
  e.enum(["-infinity"])
1276
1276
  ])
1277
- }), A = e.object({
1277
+ }), k = e.object({
1278
1278
  definitionUuid: e.uuid(),
1279
1279
  type: e.enum(["timestamp"]),
1280
1280
  value: e.iso.datetime()
1281
- }), j = e.object({
1281
+ }), A = e.object({
1282
1282
  definitionUuid: e.uuid(),
1283
1283
  type: e.enum(["single_select"]),
1284
1284
  value: e.string()
1285
- }), M = e.object({
1285
+ }), j = e.object({
1286
1286
  definitionUuid: e.uuid(),
1287
1287
  type: e.enum(["multi_select"]),
1288
1288
  value: e.array(e.string())
1289
- }), N = e.object({
1289
+ }), M = e.object({
1290
1290
  definitionUuid: e.uuid(),
1291
1291
  type: e.enum(["monetary"]),
1292
1292
  value: b
1293
- }), P = e.object({
1293
+ }), N = e.object({
1294
1294
  definitionUuid: e.uuid(),
1295
1295
  type: e.enum(["reference"]),
1296
1296
  value: e.string()
1297
- }), Xt = e.enum(["standard", "credit_note"]), Zt = e.object({
1297
+ }), Zt = e.enum(["standard", "credit_note"]), Qt = e.object({
1298
1298
  uuid: e.uuid(),
1299
1299
  name: e.string().nullable(),
1300
1300
  email: e.email().nullable(),
@@ -1304,11 +1304,11 @@ var T = e.object({
1304
1304
  vatNumber: e.string().nullable(),
1305
1305
  bankAccountNumber: e.string().nullable(),
1306
1306
  alternativeBankAccountNumber: e.string().nullable()
1307
- }), Qt = e.object({
1307
+ }), $t = e.object({
1308
1308
  uuid: e.uuid(),
1309
1309
  name: e.string().nullable(),
1310
1310
  email: e.email().nullable()
1311
- }), $t = e.object({
1311
+ }), en = e.object({
1312
1312
  uuid: e.uuid(),
1313
1313
  name: e.string().nullable(),
1314
1314
  email: e.email().nullable(),
@@ -1316,14 +1316,14 @@ var T = e.object({
1316
1316
  address: S.nullable(),
1317
1317
  vatNumber: e.string().nullable(),
1318
1318
  type: _
1319
- }), F = e.enum([
1319
+ }), P = e.enum([
1320
1320
  "draft",
1321
1321
  "ready",
1322
1322
  "finalized"
1323
- ]), en = e.object({
1323
+ ]), tn = e.object({
1324
1324
  locale: e.string(),
1325
1325
  value: e.string()
1326
- }), I = e.object({ items: e.array(en) }), tn = e.enum([
1326
+ }), F = e.object({ items: e.array(tn) }), nn = e.enum([
1327
1327
  "text",
1328
1328
  "text_array",
1329
1329
  "number",
@@ -1334,36 +1334,36 @@ var T = e.object({
1334
1334
  "multi_select",
1335
1335
  "monetary",
1336
1336
  "reference"
1337
- ]), nn = e.object({
1337
+ ]), rn = e.object({
1338
1338
  value: e.string(),
1339
- label: I,
1339
+ label: F,
1340
1340
  order: e.number()
1341
- }), rn = e.object({
1341
+ }), an = e.object({
1342
1342
  key: e.string(),
1343
1343
  order: e.number()
1344
- }), an = e.object({
1344
+ }), on = e.object({
1345
1345
  uuid: e.uuid(),
1346
1346
  tenantUuid: e.uuid().nullable(),
1347
1347
  entityType: e.string(),
1348
1348
  key: e.string(),
1349
- label: I,
1350
- description: I.nullable(),
1351
- type: tn,
1349
+ label: F,
1350
+ description: F.nullable(),
1351
+ type: nn,
1352
1352
  isRequired: e.boolean(),
1353
- choices: e.array(nn).nullable(),
1353
+ choices: e.array(rn).nullable(),
1354
1354
  rules: e.record(e.string(), e.unknown()).nullable(),
1355
- views: e.array(rn)
1356
- }), L = e.enum([
1355
+ views: e.array(an)
1356
+ }), I = e.enum([
1357
1357
  "0",
1358
1358
  "6",
1359
1359
  "12",
1360
1360
  "21"
1361
- ]), on = e.enum(["percentage", "amount"]), R = e.object({
1362
- type: on,
1361
+ ]), sn = e.enum(["percentage", "amount"]), L = e.object({
1362
+ type: sn,
1363
1363
  amount: b.nullable(),
1364
1364
  percentage: e.number().nullable(),
1365
1365
  description: e.string().nullable()
1366
- }), sn = e.enum([
1366
+ }), cn = e.enum([
1367
1367
  "piece",
1368
1368
  "hour",
1369
1369
  "day",
@@ -1373,13 +1373,14 @@ var T = e.object({
1373
1373
  "cubic_meter",
1374
1374
  "square_meter",
1375
1375
  "litre"
1376
- ]), cn = e.object({
1376
+ ]), ln = e.object({
1377
1377
  uuid: e.uuid(),
1378
1378
  groupUuid: e.uuid().nullable(),
1379
1379
  position: e.number(),
1380
1380
  name: e.string(),
1381
1381
  description: e.string().nullable(),
1382
1382
  customFields: e.array(e.union([
1383
+ w,
1383
1384
  T,
1384
1385
  E,
1385
1386
  D,
@@ -1388,24 +1389,24 @@ var T = e.object({
1388
1389
  A,
1389
1390
  j,
1390
1391
  M,
1391
- N,
1392
- P
1392
+ N
1393
1393
  ])),
1394
1394
  quantity: e.number(),
1395
1395
  unitPrice: b,
1396
- vatRate: L,
1396
+ vatRate: I,
1397
1397
  vatRatePercentage: e.number(),
1398
1398
  netAmount: b,
1399
1399
  grossAmount: b,
1400
- discount: R.nullable(),
1401
- unit: sn,
1400
+ discount: L.nullable(),
1401
+ unit: cn,
1402
1402
  isDiscount: e.boolean()
1403
- }), ln = e.object({
1403
+ }), un = e.object({
1404
1404
  uuid: e.uuid(),
1405
1405
  position: e.number(),
1406
1406
  name: e.string(),
1407
1407
  description: e.string().nullable(),
1408
1408
  customFields: e.array(e.union([
1409
+ w,
1409
1410
  T,
1410
1411
  E,
1411
1412
  D,
@@ -1414,44 +1415,44 @@ var T = e.object({
1414
1415
  A,
1415
1416
  j,
1416
1417
  M,
1417
- N,
1418
- P
1418
+ N
1419
1419
  ])),
1420
- lines: e.array(cn),
1421
- groups: e.array(e.lazy(() => ln))
1422
- }), un = e.object({
1423
- vatRate: L,
1420
+ lines: e.array(ln),
1421
+ groups: e.array(e.lazy(() => un))
1422
+ }), dn = e.object({
1423
+ vatRate: I,
1424
1424
  netAmount: b,
1425
1425
  vatAmount: b
1426
- }), dn = e.object({
1426
+ }), fn = e.object({
1427
1427
  uuid: e.uuid(),
1428
1428
  createdAt: e.iso.datetime(),
1429
1429
  status: v,
1430
1430
  sequence: e.string().nullable()
1431
- }), fn = e.enum([
1431
+ }), pn = e.enum([
1432
1432
  "unsent",
1433
1433
  "processing",
1434
1434
  "sent",
1435
1435
  "viewed",
1436
1436
  "failed"
1437
- ]), pn = e.object({
1437
+ ]), mn = e.object({
1438
1438
  uuid: e.uuid(),
1439
1439
  sequence: e.string().nullable(),
1440
- type: Xt,
1440
+ type: Zt,
1441
1441
  createdAt: e.iso.datetime(),
1442
1442
  updatedAt: e.iso.datetime(),
1443
1443
  issueOn: e.iso.date().nullable(),
1444
1444
  dueOn: e.iso.date().nullable(),
1445
1445
  deliveredOn: e.iso.date().nullable(),
1446
- issuer: Zt,
1447
- recipient: Qt.nullable(),
1448
- customer: $t,
1446
+ issuer: Qt,
1447
+ recipient: $t.nullable(),
1448
+ customer: en,
1449
1449
  status: v,
1450
- lifecycleStatus: F,
1450
+ lifecycleStatus: P,
1451
1451
  paymentReference: e.string().nullable(),
1452
1452
  subject: e.string().nullable(),
1453
1453
  poNumber: e.string().nullable(),
1454
1454
  customFields: e.array(e.union([
1455
+ w,
1455
1456
  T,
1456
1457
  E,
1457
1458
  D,
@@ -1460,34 +1461,33 @@ var T = e.object({
1460
1461
  A,
1461
1462
  j,
1462
1463
  M,
1463
- N,
1464
- P
1464
+ N
1465
1465
  ])),
1466
- customFieldDefinitions: e.array(an),
1467
- ungroupedLines: e.array(cn),
1468
- groups: e.array(ln),
1469
- vatSummaries: e.array(un),
1466
+ customFieldDefinitions: e.array(on),
1467
+ ungroupedLines: e.array(ln),
1468
+ groups: e.array(un),
1469
+ vatSummaries: e.array(dn),
1470
1470
  grossAmount: b,
1471
1471
  netAmount: b,
1472
1472
  effectiveNet: b,
1473
1473
  vatAmount: b,
1474
1474
  totalDiscountAmount: b.nullable(),
1475
- globalDiscount: R.nullable(),
1475
+ globalDiscount: L.nullable(),
1476
1476
  advancePaymentAmount: b.nullable(),
1477
1477
  amountDue: b,
1478
- originalInvoice: dn.nullable(),
1478
+ originalInvoice: fn.nullable(),
1479
1479
  externalRemarks: e.string().nullable(),
1480
- deliveryStatus: fn,
1480
+ deliveryStatus: pn,
1481
1481
  isDisputed: e.boolean()
1482
- }), mn = e.object({
1483
- billingDocument: w.nullish(),
1484
- approval: w.nullish()
1485
1482
  }), hn = e.object({
1483
+ billingDocument: Bt.nullish(),
1484
+ approval: Bt.nullish()
1485
+ }), gn = e.object({
1486
1486
  customerUuid: e.uuid(),
1487
1487
  requiresPriorApproval: e.boolean().optional(),
1488
1488
  isExternallyCreated: e.boolean().optional(),
1489
- contactOverride: mn.optional()
1490
- }), gn = e.object({ uuid: e.uuid() }), _n = e.object({
1489
+ contactOverride: hn.optional()
1490
+ }), _n = e.object({ uuid: e.uuid() }), vn = e.object({
1491
1491
  uuid: e.uuid(),
1492
1492
  name: e.string().nullable(),
1493
1493
  email: e.email().nullable(),
@@ -1497,14 +1497,14 @@ var T = e.object({
1497
1497
  vatNumber: e.string().nullable(),
1498
1498
  bankAccountNumber: e.string().nullable(),
1499
1499
  alternativeBankAccountNumber: e.string().nullable()
1500
- }), vn = e.object({
1500
+ }), yn = e.object({
1501
1501
  uuid: e.uuid(),
1502
1502
  name: e.string().nullable(),
1503
1503
  email: e.email().nullable()
1504
- }), yn = e.object({
1504
+ }), bn = e.object({
1505
1505
  billingDocument: C.nullable(),
1506
1506
  approval: C.nullable()
1507
- }), bn = e.object({
1507
+ }), xn = e.object({
1508
1508
  uuid: e.uuid(),
1509
1509
  name: e.string().nullable(),
1510
1510
  email: e.email().nullable(),
@@ -1514,11 +1514,11 @@ var T = e.object({
1514
1514
  vatNumber: e.string().nullable(),
1515
1515
  type: _,
1516
1516
  approvalEmail: e.email().nullable()
1517
- }), xn = e.object({
1517
+ }), Sn = e.object({
1518
1518
  uuid: e.uuid(),
1519
1519
  quantity: e.number(),
1520
1520
  remainingQuantity: e.number().nullable()
1521
- }), Sn = e.object({
1521
+ }), Cn = e.object({
1522
1522
  uuid: e.uuid(),
1523
1523
  groupUuid: e.uuid().nullable(),
1524
1524
  position: e.number(),
@@ -1526,6 +1526,7 @@ var T = e.object({
1526
1526
  description: e.string().nullable(),
1527
1527
  externalId: e.string().nullable(),
1528
1528
  customFields: e.array(e.union([
1529
+ w,
1529
1530
  T,
1530
1531
  E,
1531
1532
  D,
@@ -1534,26 +1535,26 @@ var T = e.object({
1534
1535
  A,
1535
1536
  j,
1536
1537
  M,
1537
- N,
1538
- P
1538
+ N
1539
1539
  ])),
1540
1540
  quantity: e.number(),
1541
1541
  unitPrice: b,
1542
- vatRate: L,
1542
+ vatRate: I,
1543
1543
  vatRatePercentage: e.number(),
1544
1544
  netAmount: b,
1545
1545
  grossAmount: b,
1546
- discount: R.nullable(),
1547
- unit: sn,
1546
+ discount: L.nullable(),
1547
+ unit: cn,
1548
1548
  isDiscount: e.boolean(),
1549
- originalLine: xn.nullable()
1550
- }), Cn = e.object({
1549
+ originalLine: Sn.nullable()
1550
+ }), wn = e.object({
1551
1551
  uuid: e.uuid(),
1552
1552
  position: e.number(),
1553
1553
  name: e.string(),
1554
1554
  description: e.string().nullable(),
1555
1555
  externalId: e.string().nullable(),
1556
1556
  customFields: e.array(e.union([
1557
+ w,
1557
1558
  T,
1558
1559
  E,
1559
1560
  D,
@@ -1562,21 +1563,20 @@ var T = e.object({
1562
1563
  A,
1563
1564
  j,
1564
1565
  M,
1565
- N,
1566
- P
1566
+ N
1567
1567
  ])),
1568
- lines: e.array(Sn),
1569
- groups: e.array(e.lazy(() => Cn))
1570
- }), wn = e.object({
1571
- vatRate: L,
1568
+ lines: e.array(Cn),
1569
+ groups: e.array(e.lazy(() => wn))
1570
+ }), Tn = e.object({
1571
+ vatRate: I,
1572
1572
  netAmount: b,
1573
1573
  vatAmount: b
1574
- }), Tn = e.object({
1574
+ }), En = e.object({
1575
1575
  uuid: e.uuid(),
1576
1576
  name: e.string(),
1577
1577
  mimeType: Ae,
1578
1578
  blurHash: e.string().nullable()
1579
- }), En = e.object({
1579
+ }), Dn = e.object({
1580
1580
  uuid: e.uuid(),
1581
1581
  createdAt: e.iso.datetime(),
1582
1582
  status: v,
@@ -1586,36 +1586,36 @@ var T = e.object({
1586
1586
  paidAmount: b.nullable(),
1587
1587
  balanceDueAmount: b.nullable(),
1588
1588
  creditableAmount: b.nullable()
1589
- }), Dn = e.object({
1589
+ }), On = e.object({
1590
1590
  uuid: e.string(),
1591
1591
  firstName: e.string().nullable(),
1592
1592
  lastName: e.string().nullable()
1593
- }), On = e.enum(["user", "service_user"]), kn = e.object({
1593
+ }), kn = e.enum(["user", "service_user"]), An = e.object({
1594
1594
  uuid: e.uuid(),
1595
1595
  firstName: e.string().nullable(),
1596
1596
  lastName: e.string().nullable(),
1597
- type: On
1598
- }), z = e.enum([
1597
+ type: kn
1598
+ }), R = e.enum([
1599
1599
  "unpaid",
1600
1600
  "partially_paid",
1601
1601
  "paid",
1602
1602
  "overpaid",
1603
1603
  "credited",
1604
1604
  "settled"
1605
- ]), An = e.object({
1605
+ ]), jn = e.object({
1606
1606
  uuid: e.uuid(),
1607
1607
  sentAt: e.iso.datetime()
1608
- }), jn = e.enum(["after_last_reminder", "after_due_date"]), Mn = e.object({
1608
+ }), Mn = e.enum(["after_last_reminder", "after_due_date"]), Nn = e.object({
1609
1609
  uuid: e.uuid(),
1610
1610
  sequence: e.number(),
1611
- schedule: jn,
1611
+ schedule: Mn,
1612
1612
  offsetDays: e.number()
1613
- }), Nn = e.enum([
1613
+ }), Pn = e.enum([
1614
1614
  "approved",
1615
1615
  "rejected",
1616
1616
  "requested",
1617
1617
  "expired"
1618
- ]), Pn = e.enum([
1618
+ ]), Fn = e.enum([
1619
1619
  "incorrect_price",
1620
1620
  "incorrect_quantity",
1621
1621
  "incorrect_customer_or_reference_data",
@@ -1623,40 +1623,41 @@ var T = e.object({
1623
1623
  "missing_or_incorrect_attachment",
1624
1624
  "missing_or_incorrect_po_reference",
1625
1625
  "other"
1626
- ]), Fn = e.union([e.literal(1), e.literal(2)]), In = e.object({
1626
+ ]), z = e.union([e.literal(1), e.literal(2)]), In = e.object({
1627
1627
  uuid: e.uuid(),
1628
1628
  sentAt: e.string().nullable(),
1629
- status: Nn,
1629
+ status: Pn,
1630
1630
  answeredAt: e.string().nullable(),
1631
1631
  customerRemark: e.string().nullable(),
1632
- proFormaFile: Tn.nullable(),
1633
- approvalProofs: e.array(Tn),
1632
+ proFormaFile: En.nullable(),
1633
+ approvalProofs: e.array(En),
1634
1634
  isActive: e.boolean(),
1635
1635
  remarks: e.string().nullable(),
1636
- rejectionReason: Pn.nullable(),
1637
- level: Fn.nullable(),
1636
+ rejectionReason: Fn.nullable(),
1637
+ level: z.nullable(),
1638
1638
  reminderSentAt: e.iso.datetime().nullable()
1639
1639
  }), Ln = e.object({
1640
1640
  uuid: e.uuid(),
1641
1641
  sequence: e.string().nullable(),
1642
- type: Xt,
1642
+ type: Zt,
1643
1643
  createdAt: e.iso.datetime(),
1644
1644
  updatedAt: e.iso.datetime(),
1645
1645
  issueOn: e.iso.date().nullable(),
1646
1646
  dueOn: e.iso.date().nullable(),
1647
1647
  deliveredOn: e.iso.date().nullable(),
1648
- issuer: _n,
1649
- recipient: vn.nullable(),
1648
+ issuer: vn,
1649
+ recipient: yn.nullable(),
1650
1650
  billingDocumentRecipient: C.nullable(),
1651
1651
  approvalRecipient: C.nullable(),
1652
- contactOverride: yn,
1653
- customer: bn,
1652
+ contactOverride: bn,
1653
+ customer: xn,
1654
1654
  status: v,
1655
- lifecycleStatus: F,
1655
+ lifecycleStatus: P,
1656
1656
  paymentReference: e.string().nullable(),
1657
1657
  subject: e.string().nullable(),
1658
1658
  poNumber: e.string().nullable(),
1659
1659
  customFields: e.array(e.union([
1660
+ w,
1660
1661
  T,
1661
1662
  E,
1662
1663
  D,
@@ -1665,38 +1666,37 @@ var T = e.object({
1665
1666
  A,
1666
1667
  j,
1667
1668
  M,
1668
- N,
1669
- P
1669
+ N
1670
1670
  ])),
1671
- ungroupedLines: e.array(Sn),
1672
- groups: e.array(Cn),
1673
- vatSummaries: e.array(wn),
1671
+ ungroupedLines: e.array(Cn),
1672
+ groups: e.array(wn),
1673
+ vatSummaries: e.array(Tn),
1674
1674
  grossAmount: b,
1675
1675
  netAmount: b,
1676
1676
  effectiveNet: b,
1677
1677
  vatAmount: b,
1678
1678
  totalDiscountAmount: b.nullable(),
1679
- globalDiscount: R.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(),
1679
+ globalDiscount: L.nullable(),
1680
+ attachments: e.array(En),
1681
+ approvalProofs: e.array(En),
1682
+ rejectionFiles: e.array(En),
1683
+ creditNotes: e.array(Dn),
1684
+ originalInvoice: Dn.nullable(),
1685
+ preparedBy: On,
1686
+ lastUpdatedBy: An.nullable(),
1687
+ file: En.nullable(),
1688
1688
  externalRemarks: e.string().nullable(),
1689
1689
  paidAmount: b.nullable(),
1690
- settlementStatus: z,
1690
+ settlementStatus: R,
1691
1691
  balanceDueAmount: b.nullable(),
1692
1692
  advancePaymentAmount: b.nullable(),
1693
1693
  amountDue: b,
1694
1694
  currency: y,
1695
- deliveryStatus: fn,
1695
+ deliveryStatus: pn,
1696
1696
  isDisputed: e.boolean(),
1697
1697
  isOverdue: e.boolean(),
1698
- reminders: e.array(An),
1699
- reminderConfigs: e.array(Mn),
1698
+ reminders: e.array(jn),
1699
+ reminderConfigs: e.array(Nn),
1700
1700
  requiresPriorApproval: e.boolean(),
1701
1701
  approval: e.array(In),
1702
1702
  hasChangesSinceApprovalSent: e.boolean(),
@@ -1771,14 +1771,14 @@ var T = e.object({
1771
1771
  "expired"
1772
1772
  ]), Vn = e.object({
1773
1773
  statuses: e.array(v).optional(),
1774
- lifecycleStatuses: e.array(F).optional(),
1774
+ lifecycleStatuses: e.array(P).optional(),
1775
1775
  customerUuids: e.array(e.uuid()).optional(),
1776
1776
  dueOnRange: Y.optional(),
1777
1777
  issuedOnRange: Y.optional(),
1778
1778
  invoiceUuids: X.optional(),
1779
1779
  isDisputed: e.boolean().optional(),
1780
1780
  isOverdue: e.boolean().optional(),
1781
- settlementStatuses: e.array(z).optional(),
1781
+ settlementStatuses: e.array(R).optional(),
1782
1782
  customerExternalIds: e.array(e.string()).optional(),
1783
1783
  isOutstanding: e.boolean().optional(),
1784
1784
  customFields: e.array(e.union([
@@ -1801,31 +1801,32 @@ var T = e.object({
1801
1801
  externalId: e.string().nullable(),
1802
1802
  name: e.string()
1803
1803
  }), Un = e.object({
1804
- status: Nn,
1805
- level: Fn.nullable(),
1804
+ status: Pn,
1805
+ level: z.nullable(),
1806
1806
  sentAt: e.iso.datetime().nullable(),
1807
1807
  reminderSentAt: e.iso.datetime().nullable()
1808
1808
  }), Wn = e.object({
1809
1809
  uuid: e.uuid(),
1810
- type: Xt,
1810
+ type: Zt,
1811
1811
  createdAt: e.iso.datetime(),
1812
1812
  issuedOn: e.iso.date().nullable(),
1813
1813
  dueOn: e.iso.date().nullable(),
1814
1814
  subject: e.string().nullable(),
1815
1815
  customer: Hn,
1816
1816
  status: v,
1817
- lifecycleStatus: F,
1817
+ lifecycleStatus: P,
1818
1818
  netAmount: b,
1819
1819
  grossAmount: b,
1820
1820
  sequence: e.string().nullable(),
1821
1821
  paidAmount: b.nullable(),
1822
1822
  totalCreditedAmount: b.nullable(),
1823
- settlementStatus: z,
1823
+ settlementStatus: R,
1824
1824
  balanceDueAmount: b.nullable(),
1825
1825
  isDisputed: e.boolean(),
1826
1826
  isOverdue: e.boolean(),
1827
- deliveryStatus: fn,
1827
+ deliveryStatus: pn,
1828
1828
  customFields: e.array(e.union([
1829
+ w,
1829
1830
  T,
1830
1831
  E,
1831
1832
  D,
@@ -1834,8 +1835,7 @@ var T = e.object({
1834
1835
  A,
1835
1836
  j,
1836
1837
  M,
1837
- N,
1838
- P
1838
+ N
1839
1839
  ])),
1840
1840
  requiresPriorApproval: e.boolean(),
1841
1841
  hasChangesSinceApprovalSent: e.boolean(),
@@ -1869,10 +1869,11 @@ var Kn = e.object({
1869
1869
  subject: e.string().nullable(),
1870
1870
  preparedByUuid: e.uuid(),
1871
1871
  recipientUuid: e.uuid().nullish(),
1872
- contactOverride: mn.optional(),
1872
+ contactOverride: hn.optional(),
1873
1873
  externalRemarks: e.string().nullable(),
1874
1874
  customerUuid: e.uuid().optional(),
1875
1875
  customFields: e.array(e.union([
1876
+ w,
1876
1877
  T,
1877
1878
  E,
1878
1879
  D,
@@ -1881,8 +1882,7 @@ var Kn = e.object({
1881
1882
  A,
1882
1883
  j,
1883
1884
  M,
1884
- N,
1885
- P
1885
+ N
1886
1886
  ])).optional()
1887
1887
  });
1888
1888
  e.object({
@@ -1913,11 +1913,12 @@ var qn = e.object({
1913
1913
  position: e.int(),
1914
1914
  quantity: e.number().lte(1e4),
1915
1915
  unitPrice: b,
1916
- vatRate: L,
1917
- discount: R.nullable(),
1918
- unit: sn,
1916
+ vatRate: I,
1917
+ discount: L.nullable(),
1918
+ unit: cn,
1919
1919
  isDiscount: e.boolean(),
1920
1920
  customFields: e.array(e.union([
1921
+ w,
1921
1922
  T,
1922
1923
  E,
1923
1924
  D,
@@ -1926,8 +1927,7 @@ var qn = e.object({
1926
1927
  A,
1927
1928
  j,
1928
1929
  M,
1929
- N,
1930
- P
1930
+ N
1931
1931
  ])).optional()
1932
1932
  }), Jn = e.object({
1933
1933
  name: e.string(),
@@ -1936,6 +1936,7 @@ var qn = e.object({
1936
1936
  position: e.int(),
1937
1937
  lines: e.array(qn),
1938
1938
  customFields: e.array(e.union([
1939
+ w,
1939
1940
  T,
1940
1941
  E,
1941
1942
  D,
@@ -1944,8 +1945,7 @@ var qn = e.object({
1944
1945
  A,
1945
1946
  j,
1946
1947
  M,
1947
- N,
1948
- P
1948
+ N
1949
1949
  ])).optional(),
1950
1950
  groups: e.array(e.lazy(() => Jn)).optional()
1951
1951
  }), Yn = e.object({
@@ -1956,8 +1956,8 @@ e.object({
1956
1956
  detail: e.string().optional(),
1957
1957
  status: e.enum(["409"]),
1958
1958
  code: e.enum(["global_discount_exceeds_total_net"])
1959
- }), e.object({ discount: R.nullable() });
1960
- var Xn = e.object({ discount: R });
1959
+ }), e.object({ discount: L.nullable() });
1960
+ var Xn = e.object({ discount: L });
1961
1961
  e.object({
1962
1962
  detail: e.string().optional(),
1963
1963
  status: e.enum(["409"]),
@@ -1978,8 +1978,8 @@ e.object({
1978
1978
  code: e.enum(["invoice_already_finalized"])
1979
1979
  });
1980
1980
  var Qn = e.object({
1981
- approvalStatus: Nn.nullable(),
1982
- level: Fn.nullable()
1981
+ approvalStatus: Pn.nullable(),
1982
+ level: z.nullable()
1983
1983
  });
1984
1984
  e.object({
1985
1985
  detail: e.string().optional(),
@@ -2030,11 +2030,12 @@ var nr = e.object({
2030
2030
  position: e.int(),
2031
2031
  quantity: e.number().lte(1e4),
2032
2032
  unitPrice: b,
2033
- vatRate: L,
2034
- discount: R.nullable(),
2035
- unit: sn,
2033
+ vatRate: I,
2034
+ discount: L.nullable(),
2035
+ unit: cn,
2036
2036
  isDiscount: e.boolean(),
2037
2037
  customFields: e.array(e.union([
2038
+ w,
2038
2039
  T,
2039
2040
  E,
2040
2041
  D,
@@ -2043,8 +2044,7 @@ var nr = e.object({
2043
2044
  A,
2044
2045
  j,
2045
2046
  M,
2046
- N,
2047
- P
2047
+ N
2048
2048
  ])).optional()
2049
2049
  }), rr = e.object({
2050
2050
  name: e.string(),
@@ -2053,6 +2053,7 @@ var nr = e.object({
2053
2053
  position: e.int(),
2054
2054
  lines: e.array(nr),
2055
2055
  customFields: e.array(e.union([
2056
+ w,
2056
2057
  T,
2057
2058
  E,
2058
2059
  D,
@@ -2061,14 +2062,13 @@ var nr = e.object({
2061
2062
  A,
2062
2063
  j,
2063
2064
  M,
2064
- N,
2065
- P
2065
+ N
2066
2066
  ])).optional(),
2067
2067
  groups: e.array(e.lazy(() => rr)).optional()
2068
2068
  }), ir = e.object({
2069
2069
  groups: e.array(rr),
2070
2070
  ungroupedLines: e.array(nr)
2071
- }), ar = e.object({ billingDocument: w.nullish() }), or = e.object({
2071
+ }), ar = e.object({ billingDocument: Bt.nullish() }), or = e.object({
2072
2072
  issuedOn: e.iso.date(),
2073
2073
  poNumber: e.string().nullable(),
2074
2074
  subject: e.string().nullable(),
@@ -2077,6 +2077,7 @@ var nr = e.object({
2077
2077
  externalRemarks: e.string().nullable(),
2078
2078
  preparedByUuid: e.uuid().optional(),
2079
2079
  customFields: e.array(e.union([
2080
+ w,
2080
2081
  T,
2081
2082
  E,
2082
2083
  D,
@@ -2085,8 +2086,7 @@ var nr = e.object({
2085
2086
  A,
2086
2087
  j,
2087
2088
  M,
2088
- N,
2089
- P
2089
+ N
2090
2090
  ])).optional()
2091
2091
  });
2092
2092
  e.object({
@@ -2120,14 +2120,14 @@ e.object({
2120
2120
  });
2121
2121
  var sr = e.object({
2122
2122
  statuses: e.array(v).optional(),
2123
- lifecycleStatuses: e.array(F).optional(),
2123
+ lifecycleStatuses: e.array(P).optional(),
2124
2124
  customerUuids: e.array(e.uuid()).optional(),
2125
2125
  dueOnRange: Y.optional(),
2126
2126
  issuedOnRange: Y.optional(),
2127
2127
  invoiceUuids: X.optional(),
2128
2128
  isDisputed: e.boolean().optional(),
2129
2129
  isOverdue: e.boolean().optional(),
2130
- settlementStatuses: e.array(z).optional(),
2130
+ settlementStatuses: e.array(R).optional(),
2131
2131
  customerExternalIds: e.array(e.string()).optional(),
2132
2132
  isOutstanding: e.boolean().optional(),
2133
2133
  customFields: e.array(e.union([
@@ -2168,14 +2168,14 @@ var sr = e.object({
2168
2168
  skipped: e.array($)
2169
2169
  }), fr = e.object({
2170
2170
  statuses: e.array(v).optional(),
2171
- lifecycleStatuses: e.array(F).optional(),
2171
+ lifecycleStatuses: e.array(P).optional(),
2172
2172
  customerUuids: e.array(e.uuid()).optional(),
2173
2173
  dueOnRange: Y.optional(),
2174
2174
  issuedOnRange: Y.optional(),
2175
2175
  invoiceUuids: X.optional(),
2176
2176
  isDisputed: e.boolean().optional(),
2177
2177
  isOverdue: e.boolean().optional(),
2178
- settlementStatuses: e.array(z).optional(),
2178
+ settlementStatuses: e.array(R).optional(),
2179
2179
  customerExternalIds: e.array(e.string()).optional(),
2180
2180
  isOutstanding: e.boolean().optional(),
2181
2181
  customFields: e.array(e.union([
@@ -2226,14 +2226,14 @@ e.object({
2226
2226
  });
2227
2227
  var hr = e.object({
2228
2228
  statuses: e.array(v).optional(),
2229
- lifecycleStatuses: e.array(F).optional(),
2229
+ lifecycleStatuses: e.array(P).optional(),
2230
2230
  customerUuids: e.array(e.uuid()).optional(),
2231
2231
  dueOnRange: Y.optional(),
2232
2232
  issuedOnRange: Y.optional(),
2233
2233
  invoiceUuids: X.optional(),
2234
2234
  isDisputed: e.boolean().optional(),
2235
2235
  isOverdue: e.boolean().optional(),
2236
- settlementStatuses: e.array(z).optional(),
2236
+ settlementStatuses: e.array(R).optional(),
2237
2237
  customerExternalIds: e.array(e.string()).optional(),
2238
2238
  isOutstanding: e.boolean().optional(),
2239
2239
  customFields: e.array(e.union([
@@ -2256,14 +2256,14 @@ var hr = e.object({
2256
2256
  skipped: e.array($)
2257
2257
  }), _r = e.object({
2258
2258
  statuses: e.array(v).optional(),
2259
- lifecycleStatuses: e.array(F).optional(),
2259
+ lifecycleStatuses: e.array(P).optional(),
2260
2260
  customerUuids: e.array(e.uuid()).optional(),
2261
2261
  dueOnRange: Y.optional(),
2262
2262
  issuedOnRange: Y.optional(),
2263
2263
  invoiceUuids: X.optional(),
2264
2264
  isDisputed: e.boolean().optional(),
2265
2265
  isOverdue: e.boolean().optional(),
2266
- settlementStatuses: e.array(z).optional(),
2266
+ settlementStatuses: e.array(R).optional(),
2267
2267
  customerExternalIds: e.array(e.string()).optional(),
2268
2268
  isOutstanding: e.boolean().optional(),
2269
2269
  customFields: e.array(e.union([
@@ -2292,14 +2292,14 @@ e.object({
2292
2292
  });
2293
2293
  var yr = e.object({
2294
2294
  statuses: e.array(v).optional(),
2295
- lifecycleStatuses: e.array(F).optional(),
2295
+ lifecycleStatuses: e.array(P).optional(),
2296
2296
  customerUuids: e.array(e.uuid()).optional(),
2297
2297
  dueOnRange: Y.optional(),
2298
2298
  issuedOnRange: Y.optional(),
2299
2299
  invoiceUuids: X.optional(),
2300
2300
  isDisputed: e.boolean().optional(),
2301
2301
  isOverdue: e.boolean().optional(),
2302
- settlementStatuses: e.array(z).optional(),
2302
+ settlementStatuses: e.array(R).optional(),
2303
2303
  customerExternalIds: e.array(e.string()).optional(),
2304
2304
  isOutstanding: e.boolean().optional(),
2305
2305
  customFields: e.array(e.union([
@@ -2322,14 +2322,14 @@ var yr = e.object({
2322
2322
  skipped: e.array($)
2323
2323
  }), xr = e.object({
2324
2324
  statuses: e.array(v).optional(),
2325
- lifecycleStatuses: e.array(F).optional(),
2325
+ lifecycleStatuses: e.array(P).optional(),
2326
2326
  customerUuids: e.array(e.uuid()).optional(),
2327
2327
  dueOnRange: Y.optional(),
2328
2328
  issuedOnRange: Y.optional(),
2329
2329
  invoiceUuids: X.optional(),
2330
2330
  isDisputed: e.boolean().optional(),
2331
2331
  isOverdue: e.boolean().optional(),
2332
- settlementStatuses: e.array(z).optional(),
2332
+ settlementStatuses: e.array(R).optional(),
2333
2333
  customerExternalIds: e.array(e.string()).optional(),
2334
2334
  isOutstanding: e.boolean().optional(),
2335
2335
  customFields: e.array(e.union([
@@ -2350,13 +2350,73 @@ var yr = e.object({
2350
2350
  }), Sr = e.object({
2351
2351
  meta: Q,
2352
2352
  skipped: e.array($)
2353
+ }), Cr = e.object({
2354
+ statuses: e.array(v).optional(),
2355
+ lifecycleStatuses: e.array(P).optional(),
2356
+ customerUuids: e.array(e.uuid()).optional(),
2357
+ dueOnRange: Y.optional(),
2358
+ issuedOnRange: Y.optional(),
2359
+ invoiceUuids: X.optional(),
2360
+ isDisputed: e.boolean().optional(),
2361
+ isOverdue: e.boolean().optional(),
2362
+ settlementStatuses: e.array(R).optional(),
2363
+ customerExternalIds: e.array(e.string()).optional(),
2364
+ isOutstanding: e.boolean().optional(),
2365
+ customFields: e.array(e.union([
2366
+ B,
2367
+ V,
2368
+ H,
2369
+ U,
2370
+ W,
2371
+ G,
2372
+ K,
2373
+ q,
2374
+ J
2375
+ ])).optional(),
2376
+ hasChangesSinceApprovalSent: e.boolean().optional(),
2377
+ approvalStatuses: e.array(Z).optional(),
2378
+ isApprovalCancelled: e.boolean().optional(),
2379
+ isExternallyCreated: e.boolean().optional()
2380
+ }), wr = e.object({
2381
+ meta: Q,
2382
+ skipped: e.array($)
2383
+ }), Tr = e.object({
2384
+ statuses: e.array(v).optional(),
2385
+ lifecycleStatuses: e.array(P).optional(),
2386
+ customerUuids: e.array(e.uuid()).optional(),
2387
+ dueOnRange: Y.optional(),
2388
+ issuedOnRange: Y.optional(),
2389
+ invoiceUuids: X.optional(),
2390
+ isDisputed: e.boolean().optional(),
2391
+ isOverdue: e.boolean().optional(),
2392
+ settlementStatuses: e.array(R).optional(),
2393
+ customerExternalIds: e.array(e.string()).optional(),
2394
+ isOutstanding: e.boolean().optional(),
2395
+ customFields: e.array(e.union([
2396
+ B,
2397
+ V,
2398
+ H,
2399
+ U,
2400
+ W,
2401
+ G,
2402
+ K,
2403
+ q,
2404
+ J
2405
+ ])).optional(),
2406
+ hasChangesSinceApprovalSent: e.boolean().optional(),
2407
+ approvalStatuses: e.array(Z).optional(),
2408
+ isApprovalCancelled: e.boolean().optional(),
2409
+ isExternallyCreated: e.boolean().optional()
2410
+ }), Er = e.object({
2411
+ meta: Q,
2412
+ skipped: e.array($)
2353
2413
  });
2354
2414
  e.object({
2355
2415
  detail: e.string().optional(),
2356
2416
  status: e.enum(["404"]),
2357
2417
  code: e.enum(["pro_forma_not_found"])
2358
2418
  });
2359
- var Cr = e.object({
2419
+ var Dr = e.object({
2360
2420
  entityUuids: e.array(e.uuid()).optional(),
2361
2421
  entityTypes: e.array(e.enum([
2362
2422
  "customer",
@@ -2374,13 +2434,13 @@ var Cr = e.object({
2374
2434
  "approval",
2375
2435
  "attachment"
2376
2436
  ])).optional()
2377
- }), wr = e.object({
2437
+ }), Or = e.object({
2378
2438
  createdAt: e.string(),
2379
2439
  uuid: e.uuid()
2380
- }), Tr = e.object({
2440
+ }), kr = e.object({
2381
2441
  limit: e.number().gte(0).lte(100).optional(),
2382
- key: wr.nullish()
2383
- }), Er = e.enum([
2442
+ key: Or.nullish()
2443
+ }), Ar = e.enum([
2384
2444
  "invoice-created",
2385
2445
  "invoice-updated",
2386
2446
  "invoice-finalized",
@@ -2404,40 +2464,40 @@ var Cr = e.object({
2404
2464
  "credit-note-created",
2405
2465
  "credit-note-updated",
2406
2466
  "customer-updated"
2407
- ]), Dr = e.enum([
2467
+ ]), jr = e.enum([
2408
2468
  "create",
2409
2469
  "update",
2410
2470
  "delete"
2411
- ]), Or = e.enum([
2471
+ ]), Mr = e.enum([
2412
2472
  "user",
2413
2473
  "service",
2414
2474
  "system"
2415
- ]), kr = e.object({
2475
+ ]), Nr = e.object({
2416
2476
  uuid: e.uuid(),
2417
2477
  firstName: e.string().nullable(),
2418
2478
  lastName: e.string().nullable(),
2419
2479
  email: e.string().nullable()
2420
- }), Ar = e.enum([
2480
+ }), Pr = e.enum([
2421
2481
  "actor",
2422
2482
  "customer",
2423
2483
  "invoice",
2424
2484
  "credit_note",
2425
2485
  "approval",
2426
2486
  "attachment"
2427
- ]), jr = e.enum([
2487
+ ]), Fr = e.enum([
2428
2488
  "customer",
2429
2489
  "invoice",
2430
2490
  "credit_note",
2431
2491
  "approval",
2432
2492
  "api_key",
2433
2493
  "file"
2434
- ]), Mr = e.object({
2435
- role: Ar,
2436
- type: jr,
2494
+ ]), Ir = e.object({
2495
+ role: Pr,
2496
+ type: Fr,
2437
2497
  uuid: e.uuid(),
2438
2498
  label: e.string().nullable()
2439
- }), Nr = e.object({
2440
- entityRole: Ar,
2499
+ }), Lr = e.object({
2500
+ entityRole: Pr,
2441
2501
  field: e.string(),
2442
2502
  from: e.union([
2443
2503
  e.string(),
@@ -2449,17 +2509,17 @@ var Cr = e.object({
2449
2509
  e.number(),
2450
2510
  e.boolean()
2451
2511
  ]).nullable()
2452
- }), Pr = e.object({
2512
+ }), Rr = e.object({
2453
2513
  createdAt: e.iso.datetime(),
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()
2514
+ action: Ar,
2515
+ changeType: jr,
2516
+ actorType: Mr,
2517
+ actor: Nr.nullable(),
2518
+ entities: e.array(Ir),
2519
+ changes: e.array(Lr).nullable()
2520
+ }), zr = e.object({
2521
+ logs: e.array(Rr),
2522
+ nextKey: Or.nullable()
2463
2523
  });
2464
2524
  e.object({
2465
2525
  detail: e.string().optional(),
@@ -2474,14 +2534,14 @@ e.object({
2474
2534
  status: e.enum(["409"]),
2475
2535
  code: e.enum(["payment_external_id_already_exists"])
2476
2536
  });
2477
- var Ir = e.enum(["standard", "advance"]), Lr = e.object({
2537
+ var Br = e.enum(["standard", "advance"]), Vr = e.object({
2478
2538
  amount: b,
2479
2539
  date: e.iso.date(),
2480
2540
  paymentReference: e.string().nullish(),
2481
2541
  remarks: e.string().nullish(),
2482
- type: Ir.optional(),
2542
+ type: Br.optional(),
2483
2543
  externalId: e.string().nullish()
2484
- }), Rr = e.object({ uuid: e.uuid() });
2544
+ }), Hr = e.object({ uuid: e.uuid() });
2485
2545
  e.object({
2486
2546
  detail: e.string().optional(),
2487
2547
  status: e.enum(["404"]),
@@ -2495,35 +2555,35 @@ e.object({
2495
2555
  status: e.enum(["409"]),
2496
2556
  code: e.enum(["advance_payment_locked"])
2497
2557
  });
2498
- var zr = e.enum(["manual", "exact"]), Br = e.object({
2558
+ var Ur = e.enum(["manual", "exact"]), Wr = e.object({
2499
2559
  uuid: e.uuid(),
2500
2560
  amount: b,
2501
2561
  date: e.iso.date(),
2502
2562
  createdAt: e.iso.datetime(),
2503
2563
  paymentReference: e.string().nullable(),
2504
2564
  remarks: e.string().nullable(),
2505
- source: zr,
2506
- type: Ir
2507
- }), Vr = e.object({ items: e.array(Br) }), Hr = e.union([
2565
+ source: Ur,
2566
+ type: Br
2567
+ }), Gr = e.object({ items: e.array(Wr) }), Kr = e.union([
2508
2568
  e.literal(1),
2509
2569
  e.literal(2),
2510
2570
  e.literal(3)
2511
- ]), Ur = e.object({
2512
- subject: I,
2513
- body: I
2514
- }), Wr = e.enum(["percentage", "amount"]), Gr = e.object({
2515
- type: Wr,
2571
+ ]), qr = e.object({
2572
+ subject: F,
2573
+ body: F
2574
+ }), Jr = e.enum(["percentage", "amount"]), Yr = e.object({
2575
+ type: Jr,
2516
2576
  amount: b.nullable(),
2517
2577
  percentage: e.number().nullable()
2518
- }), Kr = e.object({
2578
+ }), Xr = e.object({
2519
2579
  uuid: e.uuid(),
2520
2580
  issuerUuid: e.uuid(),
2521
- sequence: Hr,
2522
- schedule: jn,
2581
+ sequence: Kr,
2582
+ schedule: Mn,
2523
2583
  offsetDays: e.number(),
2524
- template: Ur,
2525
- fee: Gr
2526
- }), qr = e.object({ items: e.array(Kr) });
2584
+ template: qr,
2585
+ fee: Yr
2586
+ }), Zr = e.object({ items: e.array(Xr) });
2527
2587
  e.object({
2528
2588
  detail: e.string().optional(),
2529
2589
  status: e.enum(["400"]),
@@ -2537,36 +2597,36 @@ e.object({
2537
2597
  status: e.enum(["400"]),
2538
2598
  code: e.enum(["additional_reminder_config"])
2539
2599
  });
2540
- var Jr = e.object({
2541
- subject: I,
2542
- body: I
2543
- }), Yr = e.object({
2600
+ var Qr = e.object({
2601
+ subject: F,
2602
+ body: F
2603
+ }), $r = e.object({
2544
2604
  sequence: e.number(),
2545
2605
  offsetDays: e.int().gte(1),
2546
- schedule: jn,
2547
- template: Jr,
2548
- fee: Gr
2549
- }), Xr = e.object({ reminders: e.array(Yr) }), Zr = e.enum([
2606
+ schedule: Mn,
2607
+ template: Qr,
2608
+ fee: Yr
2609
+ }), ei = e.object({ reminders: e.array($r) }), ti = e.enum([
2550
2610
  "invoice",
2551
2611
  "invoice-line",
2552
2612
  "invoice-line-group"
2553
- ]), Qr = e.object({ entityTypes: e.array(Zr).optional() });
2613
+ ]), ni = e.object({ entityTypes: e.array(ti).optional() });
2554
2614
  e.object({
2555
2615
  detail: e.string().optional(),
2556
2616
  status: e.enum(["404"]),
2557
2617
  code: e.enum(["dunning_case_not_found"])
2558
2618
  });
2559
- var $r = e.object({
2619
+ var ri = e.object({
2560
2620
  uuid: e.uuid(),
2561
2621
  type: _,
2562
2622
  name: e.string(),
2563
2623
  vatNumber: e.string().nullable(),
2564
2624
  email: e.string().nullable()
2565
- }), ei = e.object({
2625
+ }), ii = e.object({
2566
2626
  uuid: e.uuid(),
2567
2627
  date: e.iso.date(),
2568
2628
  amount: b
2569
- }), ti = e.object({
2629
+ }), ai = e.object({
2570
2630
  uuid: e.uuid(),
2571
2631
  sequence: e.string(),
2572
2632
  grossAmount: b,
@@ -2575,7 +2635,7 @@ var $r = e.object({
2575
2635
  e.enum(["infinity"]),
2576
2636
  e.enum(["-infinity"])
2577
2637
  ])
2578
- }), ni = e.object({
2638
+ }), oi = e.object({
2579
2639
  uuid: e.uuid(),
2580
2640
  subject: e.string().nullable(),
2581
2641
  sequence: e.string(),
@@ -2586,10 +2646,10 @@ var $r = e.object({
2586
2646
  totalCreditedAmount: b,
2587
2647
  paidAmount: b,
2588
2648
  isDisputed: e.boolean(),
2589
- settlementStatus: z,
2590
- payments: e.array(ei),
2591
- creditNotes: e.array(ti)
2592
- }), ri = e.object({
2649
+ settlementStatus: R,
2650
+ payments: e.array(ii),
2651
+ creditNotes: e.array(ai)
2652
+ }), si = e.object({
2593
2653
  uuid: e.uuid(),
2594
2654
  sentAt: e.union([
2595
2655
  e.iso.datetime(),
@@ -2597,7 +2657,7 @@ var $r = e.object({
2597
2657
  e.enum(["-infinity"])
2598
2658
  ]).nullable(),
2599
2659
  hasErrors: e.boolean()
2600
- }), ii = e.enum(["missing_email"]), ai = e.object({
2660
+ }), ci = e.enum(["missing_email"]), li = e.object({
2601
2661
  uuid: e.uuid(),
2602
2662
  createdAt: e.iso.datetime(),
2603
2663
  updatedAt: e.iso.datetime(),
@@ -2605,8 +2665,8 @@ var $r = e.object({
2605
2665
  isClosed: e.boolean(),
2606
2666
  nextReminderOn: e.iso.date().nullable(),
2607
2667
  level: e.number().nullable(),
2608
- customer: $r,
2609
- invoices: e.array(ni),
2668
+ customer: ri,
2669
+ invoices: e.array(oi),
2610
2670
  outstandingBalance: b,
2611
2671
  totalPaid: b,
2612
2672
  totalInvoiced: b,
@@ -2619,17 +2679,17 @@ var $r = e.object({
2619
2679
  ]).nullable(),
2620
2680
  canSendReminder: e.boolean(),
2621
2681
  canRetryReminder: e.boolean(),
2622
- latestCreatedReminder: ri.nullable(),
2623
- blockedReason: ii.nullable()
2624
- }), oi = e.object({
2682
+ latestCreatedReminder: si.nullable(),
2683
+ blockedReason: ci.nullable()
2684
+ }), ui = e.object({
2625
2685
  isOpen: e.boolean().optional(),
2626
2686
  customerUuid: e.uuid().optional(),
2627
2687
  level: e.number().optional(),
2628
2688
  dunningCaseUuids: X.optional()
2629
- }), si = e.object({
2689
+ }), di = e.object({
2630
2690
  uuid: e.uuid(),
2631
2691
  name: e.string()
2632
- }), ci = e.object({
2692
+ }), fi = e.object({
2633
2693
  uuid: e.uuid(),
2634
2694
  sentAt: e.union([
2635
2695
  e.iso.datetime(),
@@ -2637,9 +2697,9 @@ var $r = e.object({
2637
2697
  e.enum(["-infinity"])
2638
2698
  ]).nullable(),
2639
2699
  hasErrors: e.boolean()
2640
- }), li = e.object({
2700
+ }), pi = e.object({
2641
2701
  uuid: e.uuid(),
2642
- customer: si,
2702
+ customer: di,
2643
2703
  level: e.number().nullable(),
2644
2704
  daysOverdue: e.number(),
2645
2705
  outstandingBalance: b,
@@ -2655,10 +2715,10 @@ var $r = e.object({
2655
2715
  ]).nullable(),
2656
2716
  canSendReminder: e.boolean(),
2657
2717
  canRetryReminder: e.boolean(),
2658
- latestCreatedReminder: ci.nullable(),
2659
- blockedReason: ii.nullable()
2660
- }), ui = e.object({
2661
- items: e.array(li),
2718
+ latestCreatedReminder: fi.nullable(),
2719
+ blockedReason: ci.nullable()
2720
+ }), mi = e.object({
2721
+ items: e.array(pi),
2662
2722
  meta: g
2663
2723
  });
2664
2724
  e.object({
@@ -2686,23 +2746,23 @@ e.object({
2686
2746
  status: e.enum(["409"]),
2687
2747
  code: e.enum(["dunning_case_reminder_not_retryable"])
2688
2748
  });
2689
- var di = e.object({
2749
+ var hi = e.object({
2690
2750
  isOpen: e.boolean().optional(),
2691
2751
  customerUuid: e.uuid().optional(),
2692
2752
  level: e.number().optional(),
2693
2753
  dunningCaseUuids: X.optional()
2694
- }), fi = e.object({
2754
+ }), gi = e.object({
2695
2755
  meta: Q,
2696
2756
  skipped: e.array($)
2697
- }), pi = e.object({
2757
+ }), _i = e.object({
2698
2758
  isOpen: e.boolean().optional(),
2699
2759
  customerUuid: e.uuid().optional(),
2700
2760
  level: e.number().optional(),
2701
2761
  dunningCaseUuids: X.optional()
2702
- }), mi = e.object({
2762
+ }), vi = e.object({
2703
2763
  meta: Q,
2704
2764
  skipped: e.array($)
2705
- }), hi = e.object({
2765
+ }), yi = e.object({
2706
2766
  name: e.string().nullable(),
2707
2767
  email: e.email().nullable(),
2708
2768
  phoneNumber: e.string().nullable(),
@@ -2712,7 +2772,7 @@ var di = e.object({
2712
2772
  bankAccountNumber: e.string().nullable(),
2713
2773
  alternativeBankAccountNumber: e.string().nullable(),
2714
2774
  currency: y
2715
- }), gi = e.object({
2775
+ }), bi = e.object({
2716
2776
  name: e.string(),
2717
2777
  address: S.nullable(),
2718
2778
  email: e.email().nullable(),
@@ -2722,10 +2782,10 @@ var di = e.object({
2722
2782
  type: _,
2723
2783
  locale: Fe,
2724
2784
  currency: y
2725
- }), _i = e.object({
2785
+ }), xi = e.object({
2726
2786
  name: e.string().nullable(),
2727
2787
  email: e.email()
2728
- }), vi = e.object({
2788
+ }), Si = e.object({
2729
2789
  sequence: e.string(),
2730
2790
  issuedOn: e.iso.date(),
2731
2791
  dueOn: e.iso.date(),
@@ -2734,21 +2794,21 @@ var di = e.object({
2734
2794
  daysOverdue: e.number(),
2735
2795
  fee: b,
2736
2796
  isNew: e.boolean()
2737
- }), yi = e.object({
2797
+ }), Ci = e.object({
2738
2798
  sequence: e.string(),
2739
2799
  issuedOn: e.iso.date(),
2740
2800
  dueOn: e.iso.date(),
2741
2801
  outstandingBalance: b,
2742
2802
  daysOverdue: e.number()
2743
- }), bi = e.object({
2803
+ }), wi = e.object({
2744
2804
  createdAt: e.iso.datetime(),
2745
2805
  sentAt: e.iso.datetime().nullable(),
2746
2806
  level: e.number(),
2747
- issuer: hi,
2748
- customer: gi,
2749
- recipient: _i,
2750
- invoices: e.array(vi),
2751
- outstandingInvoices: e.array(yi),
2807
+ issuer: yi,
2808
+ customer: bi,
2809
+ recipient: xi,
2810
+ invoices: e.array(Si),
2811
+ outstandingInvoices: e.array(Ci),
2752
2812
  totalFee: b
2753
2813
  });
2754
2814
  e.object({
@@ -2772,16 +2832,16 @@ e.object({
2772
2832
  status: e.enum(["409"]),
2773
2833
  code: e.enum(["customer_has_no_approval_email"])
2774
2834
  });
2775
- var xi = e.object({
2835
+ var Ti = e.object({
2776
2836
  statuses: e.array(v).optional(),
2777
- lifecycleStatuses: e.array(F).optional(),
2837
+ lifecycleStatuses: e.array(P).optional(),
2778
2838
  customerUuids: e.array(e.uuid()).optional(),
2779
2839
  dueOnRange: Y.optional(),
2780
2840
  issuedOnRange: Y.optional(),
2781
2841
  invoiceUuids: X.optional(),
2782
2842
  isDisputed: e.boolean().optional(),
2783
2843
  isOverdue: e.boolean().optional(),
2784
- settlementStatuses: e.array(z).optional(),
2844
+ settlementStatuses: e.array(R).optional(),
2785
2845
  customerExternalIds: e.array(e.string()).optional(),
2786
2846
  isOutstanding: e.boolean().optional(),
2787
2847
  customFields: e.array(e.union([
@@ -2799,19 +2859,19 @@ var xi = e.object({
2799
2859
  approvalStatuses: e.array(Z).optional(),
2800
2860
  isApprovalCancelled: e.boolean().optional(),
2801
2861
  isExternallyCreated: e.boolean().optional()
2802
- }), Si = e.object({
2862
+ }), Ei = e.object({
2803
2863
  meta: Q,
2804
2864
  skipped: e.array($)
2805
- }), Ci = e.object({
2865
+ }), Di = e.object({
2806
2866
  statuses: e.array(v).optional(),
2807
- lifecycleStatuses: e.array(F).optional(),
2867
+ lifecycleStatuses: e.array(P).optional(),
2808
2868
  customerUuids: e.array(e.uuid()).optional(),
2809
2869
  dueOnRange: Y.optional(),
2810
2870
  issuedOnRange: Y.optional(),
2811
2871
  invoiceUuids: X.optional(),
2812
2872
  isDisputed: e.boolean().optional(),
2813
2873
  isOverdue: e.boolean().optional(),
2814
- settlementStatuses: e.array(z).optional(),
2874
+ settlementStatuses: e.array(R).optional(),
2815
2875
  customerExternalIds: e.array(e.string()).optional(),
2816
2876
  isOutstanding: e.boolean().optional(),
2817
2877
  customFields: e.array(e.union([
@@ -2829,7 +2889,7 @@ var xi = e.object({
2829
2889
  approvalStatuses: e.array(Z).optional(),
2830
2890
  isApprovalCancelled: e.boolean().optional(),
2831
2891
  isExternallyCreated: e.boolean().optional()
2832
- }), wi = e.object({
2892
+ }), Oi = e.object({
2833
2893
  meta: Q,
2834
2894
  skipped: e.array($)
2835
2895
  });
@@ -2846,7 +2906,7 @@ e.object({
2846
2906
  status: e.enum(["400"]),
2847
2907
  code: e.enum(["missing_invoice_approval_file"])
2848
2908
  });
2849
- var Ti = e.object({
2909
+ var ki = e.object({
2850
2910
  fileUuids: e.array(e.uuid()).optional(),
2851
2911
  remarks: e.string().nullish()
2852
2912
  });
@@ -2855,9 +2915,9 @@ e.object({
2855
2915
  status: e.enum(["400"]),
2856
2916
  code: e.enum(["missing_rejection_remarks"])
2857
2917
  });
2858
- var Ei = e.object({
2918
+ var Ai = e.object({
2859
2919
  remarks: e.string().max(500).nullish(),
2860
- reason: Pn,
2920
+ reason: Fn,
2861
2921
  fileUuids: e.array(e.uuid()).optional()
2862
2922
  });
2863
2923
  e.object({
@@ -2877,18 +2937,18 @@ e.object({
2877
2937
  status: e.enum(["409"]),
2878
2938
  code: e.enum(["approval_restart_requires_active_approval"])
2879
2939
  });
2880
- var Di = e.object({
2881
- status: Nn.optional(),
2940
+ var ji = e.object({
2941
+ status: Pn.optional(),
2882
2942
  invoiceUuid: e.uuid().optional(),
2883
2943
  customerUuid: e.uuid().optional(),
2884
- level: Fn.optional(),
2944
+ level: z.optional(),
2885
2945
  hasChangesSinceApprovalSent: e.boolean().optional(),
2886
2946
  isCancelled: e.boolean().optional()
2887
- }), Oi = e.object({
2947
+ }), Mi = e.object({
2888
2948
  uuid: e.uuid(),
2889
2949
  subject: e.string().nullable(),
2890
2950
  hasChangesSinceApprovalSent: e.boolean()
2891
- }), ki = e.object({
2951
+ }), Ni = e.object({
2892
2952
  uuid: e.uuid(),
2893
2953
  issuedOn: e.union([
2894
2954
  e.iso.date(),
@@ -2898,16 +2958,16 @@ var Di = e.object({
2898
2958
  netAmount: b,
2899
2959
  grossAmount: b,
2900
2960
  balanceDueAmount: b.nullable()
2901
- }), Ai = e.object({
2961
+ }), Pi = e.object({
2902
2962
  uuid: e.uuid(),
2903
2963
  name: e.string().nullable()
2904
- }), ji = e.object({
2964
+ }), Fi = e.object({
2905
2965
  name: e.string().nullable(),
2906
2966
  email: e.email().nullable()
2907
- }), Mi = e.object({
2967
+ }), Ii = e.object({
2908
2968
  uuid: e.uuid(),
2909
2969
  createdAt: e.iso.datetime(),
2910
- status: Nn,
2970
+ status: Pn,
2911
2971
  sentAt: e.union([
2912
2972
  e.iso.datetime(),
2913
2973
  e.enum(["infinity"]),
@@ -2929,21 +2989,21 @@ var Di = e.object({
2929
2989
  e.enum(["-infinity"])
2930
2990
  ]).nullable(),
2931
2991
  customerRemark: e.string().nullable(),
2932
- rejectionReason: Pn.nullable(),
2933
- level: Fn.nullable(),
2992
+ rejectionReason: Fn.nullable(),
2993
+ level: z.nullable(),
2934
2994
  lastReminderSentAt: e.union([
2935
2995
  e.iso.datetime(),
2936
2996
  e.enum(["infinity"]),
2937
2997
  e.enum(["-infinity"])
2938
2998
  ]).nullable(),
2939
- invoice: Oi,
2940
- proForma: ki,
2941
- customer: Ai,
2942
- recipient: ji
2943
- }), Ni = e.object({
2944
- items: e.array(Mi),
2999
+ invoice: Mi,
3000
+ proForma: Ni,
3001
+ customer: Pi,
3002
+ recipient: Fi
3003
+ }), Li = e.object({
3004
+ items: e.array(Ii),
2945
3005
  meta: g
2946
- }), Pi = e.object({
3006
+ }), Ri = e.object({
2947
3007
  uuid: e.uuid(),
2948
3008
  name: e.string().nullable(),
2949
3009
  email: e.email().nullable(),
@@ -2953,7 +3013,7 @@ var Di = e.object({
2953
3013
  vatNumber: e.string().nullable(),
2954
3014
  bankAccountNumber: e.string().nullable(),
2955
3015
  alternativeBankAccountNumber: e.string().nullable()
2956
- }), Fi = e.object({
3016
+ }), zi = e.object({
2957
3017
  uuid: e.uuid(),
2958
3018
  name: e.string().nullable(),
2959
3019
  email: e.email().nullable(),
@@ -2961,13 +3021,14 @@ var Di = e.object({
2961
3021
  address: S.nullable(),
2962
3022
  vatNumber: e.string().nullable(),
2963
3023
  type: _
2964
- }), Ii = e.object({
3024
+ }), Bi = e.object({
2965
3025
  uuid: e.uuid(),
2966
3026
  groupUuid: e.uuid().nullable(),
2967
3027
  position: e.number(),
2968
3028
  name: e.string(),
2969
3029
  description: e.string().nullable(),
2970
3030
  customFields: e.array(e.union([
3031
+ w,
2971
3032
  T,
2972
3033
  E,
2973
3034
  D,
@@ -2976,24 +3037,24 @@ var Di = e.object({
2976
3037
  A,
2977
3038
  j,
2978
3039
  M,
2979
- N,
2980
- P
3040
+ N
2981
3041
  ])),
2982
3042
  quantity: e.number(),
2983
3043
  unitPrice: b,
2984
- vatRate: L,
3044
+ vatRate: I,
2985
3045
  vatRatePercentage: e.number(),
2986
3046
  netAmount: b,
2987
3047
  grossAmount: b,
2988
- discount: R.nullable(),
2989
- unit: sn,
3048
+ discount: L.nullable(),
3049
+ unit: cn,
2990
3050
  isDiscount: e.boolean()
2991
- }), Li = e.object({
3051
+ }), Vi = e.object({
2992
3052
  uuid: e.uuid(),
2993
3053
  position: e.number(),
2994
3054
  name: e.string(),
2995
3055
  description: e.string().nullable(),
2996
3056
  customFields: e.array(e.union([
3057
+ w,
2997
3058
  T,
2998
3059
  E,
2999
3060
  D,
@@ -3002,26 +3063,26 @@ var Di = e.object({
3002
3063
  A,
3003
3064
  j,
3004
3065
  M,
3005
- N,
3006
- P
3066
+ N
3007
3067
  ])),
3008
- lines: e.array(Ii),
3009
- groups: e.array(e.lazy(() => Li))
3010
- }), Ri = e.object({
3011
- vatRate: L,
3068
+ lines: e.array(Bi),
3069
+ groups: e.array(e.lazy(() => Vi))
3070
+ }), Hi = e.object({
3071
+ vatRate: I,
3012
3072
  netAmount: b,
3013
3073
  vatAmount: b
3014
- }), zi = e.object({
3074
+ }), Ui = e.object({
3015
3075
  uuid: e.uuid(),
3016
3076
  createdAt: e.iso.datetime(),
3017
3077
  updatedAt: e.iso.datetime(),
3018
3078
  issueOn: e.iso.date().nullable(),
3019
- issuer: Pi,
3020
- customer: Fi,
3079
+ issuer: Ri,
3080
+ customer: zi,
3021
3081
  paymentReference: e.string().nullable(),
3022
3082
  subject: e.string().nullable(),
3023
3083
  poNumber: e.string().nullable(),
3024
3084
  customFields: e.array(e.union([
3085
+ w,
3025
3086
  T,
3026
3087
  E,
3027
3088
  D,
@@ -3030,29 +3091,28 @@ var Di = e.object({
3030
3091
  A,
3031
3092
  j,
3032
3093
  M,
3033
- N,
3034
- P
3094
+ N
3035
3095
  ])),
3036
- ungroupedLines: e.array(Ii),
3037
- groups: e.array(Li),
3038
- vatSummaries: e.array(Ri),
3096
+ ungroupedLines: e.array(Bi),
3097
+ groups: e.array(Vi),
3098
+ vatSummaries: e.array(Hi),
3039
3099
  grossAmount: b,
3040
3100
  netAmount: b,
3041
3101
  effectiveNet: b,
3042
3102
  vatAmount: b,
3043
3103
  totalDiscountAmount: b.nullable(),
3044
- globalDiscount: R.nullable(),
3104
+ globalDiscount: L.nullable(),
3045
3105
  advancePaymentAmount: b.nullable(),
3046
3106
  amountDue: b,
3047
3107
  externalRemarks: e.string().nullable()
3048
- }), Bi = e.enum(["after_approval_request", "after_last_reminder"]), Vi = e.object({
3108
+ }), Wi = e.enum(["after_approval_request", "after_last_reminder"]), Gi = e.object({
3049
3109
  uuid: e.uuid(),
3050
3110
  issuerUuid: e.uuid(),
3051
- sequence: Fn,
3052
- schedule: Bi,
3111
+ sequence: z,
3112
+ schedule: Wi,
3053
3113
  offsetDays: e.number(),
3054
- template: Ur
3055
- }), Hi = e.object({ items: e.array(Vi) });
3114
+ template: qr
3115
+ }), Ki = e.object({ items: e.array(Gi) });
3056
3116
  e.object({
3057
3117
  detail: e.string().optional(),
3058
3118
  status: e.enum(["400"]),
@@ -3066,34 +3126,34 @@ e.object({
3066
3126
  status: e.enum(["400"]),
3067
3127
  code: e.enum(["additional_approval_reminder_config"])
3068
3128
  });
3069
- var Ui = e.object({
3070
- sequence: Fn,
3129
+ var qi = e.object({
3130
+ sequence: z,
3071
3131
  offsetDays: e.int().gte(1),
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,
3132
+ schedule: Wi,
3133
+ template: Qr
3134
+ }), Ji = e.object({ reminders: e.array(qi).max(2) }), Yi = e.enum(["soluz"]), Xi = e.object({
3135
+ provider: Yi,
3076
3136
  partyId: e.string(),
3077
3137
  enabled: e.boolean(),
3078
3138
  hasApiKey: e.boolean(),
3079
3139
  validatedAt: e.iso.datetime()
3080
- }), qi = e.object({
3081
- connection: Ki.nullable(),
3082
- providers: e.array(Gi)
3140
+ }), Zi = e.object({
3141
+ connection: Xi.nullable(),
3142
+ providers: e.array(Yi)
3083
3143
  });
3084
3144
  e.object({
3085
3145
  detail: e.string().optional(),
3086
3146
  status: e.enum(["400"]),
3087
3147
  code: e.enum(["peppol_error"]),
3088
3148
  meta: e.record(e.string(), e.unknown())
3089
- }), e.object({ provider: Gi });
3090
- var Ji = e.object({
3149
+ }), e.object({ provider: Yi });
3150
+ var Qi = e.object({
3091
3151
  id: e.string(),
3092
3152
  name: e.string(),
3093
3153
  vatNumber: e.string()
3094
- }), Yi = e.object({ companies: e.array(Ji) });
3154
+ }), $i = e.object({ companies: e.array(Qi) });
3095
3155
  e.object({
3096
- provider: Gi,
3156
+ provider: Yi,
3097
3157
  partyId: e.string(),
3098
3158
  enabled: e.boolean()
3099
3159
  }), e.object({
@@ -3101,11 +3161,11 @@ e.object({
3101
3161
  status: e.enum(["500"]),
3102
3162
  code: e.enum(["internal_server_error"])
3103
3163
  });
3104
- var Xi = e.object({
3105
- provider: Gi,
3164
+ var ea = e.object({
3165
+ provider: Yi,
3106
3166
  apiKey: e.string().optional()
3107
- }), Zi = e.object({
3108
- provider: Gi,
3167
+ }), ta = e.object({
3168
+ provider: Yi,
3109
3169
  apiKey: e.string().optional(),
3110
3170
  partyId: e.string(),
3111
3171
  enabled: e.boolean()
@@ -3117,14 +3177,14 @@ e.object({
3117
3177
  fresh: e.boolean(),
3118
3178
  collections: e.array(Ce).optional()
3119
3179
  }), e.object({ collections: e.array(Ce).optional() }), e.object({ user: e.uuid() }), e.object({ uuid: e.uuid() });
3120
- var Qi = e.object({
3180
+ var na = e.object({
3121
3181
  pagination: h.optional(),
3122
3182
  search: e.string().optional()
3123
- }), $i = De;
3183
+ }), ra = De;
3124
3184
  e.void(), e.void(), e.object({ role: e.uuid() }), e.void(), e.object({ role: e.uuid() }), e.object({ role: e.uuid() }), e.void();
3125
- var ea = je, ta = Me;
3185
+ var ia = je, aa = Me;
3126
3186
  e.object({ file: e.uuid() }), e.void();
3127
- var na = Ne, ra = e.object({ file: e.uuid() }), ia = e.void(), aa = e.object({ file: e.uuid() });
3187
+ var oa = Ne, sa = e.object({ file: e.uuid() }), ca = e.void(), la = e.object({ file: e.uuid() });
3128
3188
  e.object({ file: e.uuid() }), e.object({ token: e.string() }), e.object({
3129
3189
  filter: ze.optional(),
3130
3190
  pagination: Ve.optional()
@@ -3143,695 +3203,719 @@ e.object({ file: e.uuid() }), e.object({ token: e.string() }), e.object({
3143
3203
  pagination: h.optional(),
3144
3204
  search: e.string().optional()
3145
3205
  }), 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();
3146
- var oa = e.object({
3206
+ var ua = e.object({
3147
3207
  pagination: h.optional(),
3148
3208
  filter: Lt.optional(),
3149
3209
  search: e.string().optional()
3150
- }), sa = zt, ca = e.object({ uuid: e.uuid() }), la = It;
3210
+ }), da = zt, fa = e.object({ uuid: e.uuid() }), pa = It;
3151
3211
  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();
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({
3212
+ var ma = e.object({ uuid: e.uuid() }), ha = e.object({ pagination: h.optional() }), ga = Ut, _a = Yt, va = Xt, ya = e.void(), ba = e.object({ token: e.string() }), xa = mn, Sa = e.object({
3153
3213
  pagination: h.optional(),
3154
3214
  sort: e.array(zn).optional(),
3155
3215
  filter: Vn.optional(),
3156
3216
  search: e.string().optional()
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();
3217
+ }), Ca = Gn, wa = gn, Ta = _n, Ea = e.object({ uuid: e.uuid() }), Da = e.void(), Oa = e.object({ uuid: e.uuid() }), ka = Ln, Aa = Kn, ja = e.object({ uuid: e.uuid() }), Ma = e.void(), Na = Yn, Pa = e.object({ uuid: e.uuid() }), Fa = e.void();
3158
3218
  e.object({ uuid: e.uuid() }), e.void();
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({
3219
+ var Ia = Xn, La = e.object({ uuid: e.uuid() }), Ra = e.void(), za = Zn, Ba = e.object({ uuid: e.uuid() }), Va = e.void(), Ha = e.object({ uuid: e.uuid() }), Ua = e.object({ uuid: e.uuid() }), Wa = tr, Ga = ir, Ka = e.object({ uuid: e.uuid() }), qa = e.void(), Ja = or, Ya = e.object({ uuid: e.uuid() }), Xa = e.void(), Za = e.object({ uuid: e.uuid() }), Qa = e.object({ uuid: e.uuid() }), $a = e.object({
3160
3220
  filter: sr.optional(),
3161
3221
  search: e.string().optional()
3162
- }), Xa = dr, Za = e.object({
3222
+ }), eo = dr, to = e.object({
3163
3223
  filter: fr.optional(),
3164
3224
  search: e.string().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({
3225
+ }), no = pr, ro = e.object({ uuid: e.uuid() }), io = e.void(), ao = e.object({ uuid: e.uuid() }), oo = mr, 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({ uuid: e.uuid() }), ho = e.void(), go = e.object({ uuid: e.uuid() }), _o = e.void(), vo = e.object({
3166
3226
  filter: hr.optional(),
3167
3227
  search: e.string().optional()
3168
- }), ho = gr, go = e.object({
3228
+ }), yo = gr, bo = e.object({
3169
3229
  filter: _r.optional(),
3170
3230
  search: e.string().optional()
3171
- }), _o = vr, vo = e.object({ uuid: e.uuid() }), yo = e.void(), bo = e.object({
3231
+ }), xo = vr, So = e.object({ uuid: e.uuid() }), Co = e.void(), wo = e.object({
3172
3232
  filter: yr.optional(),
3173
3233
  search: e.string().optional()
3174
- }), xo = br, So = e.object({
3234
+ }), To = br, Eo = e.object({
3175
3235
  filter: xr.optional(),
3176
3236
  search: e.string().optional()
3177
- }), Co = Sr, wo = e.object({ uuid: e.uuid() }), To = e.void(), Eo = e.object({
3237
+ }), Do = Sr, Oo = e.object({
3178
3238
  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({
3239
+ search: e.string().optional()
3240
+ }), ko = wr, Ao = e.object({
3241
+ filter: Tr.optional(),
3242
+ search: e.string().optional()
3243
+ }), jo = Er, Mo = e.object({ uuid: e.uuid() }), No = e.void(), Po = e.object({
3244
+ filter: Dr.optional(),
3245
+ pagination: kr.optional()
3246
+ }), Fo = zr, Io = e.object({ uuid: e.uuid() }), Lo = Gr, Ro = Vr, zo = e.object({ uuid: e.uuid() }), Bo = Hr, Vo = e.object({
3181
3247
  uuid: e.uuid(),
3182
3248
  paymentUuid: e.uuid()
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({
3249
+ }), Ho = e.void(), Uo = Zr, Wo = ei, Go = e.void(), Ko = e.object({ filter: ni.optional() }), qo = e.array(on), Jo = e.object({ uuid: e.uuid() }), Yo = li, Xo = e.object({
3184
3250
  pagination: h.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(),
3251
+ filter: ui.optional()
3252
+ }), Zo = mi, Qo = e.object({ uuid: e.uuid() }), $o = e.object({ uuid: e.uuid() }), es = e.object({ filter: hi.optional() }), ts = gi, ns = e.object({ filter: _i.optional() }), rs = vi, is = e.object({ token: e.string() }), as = wi, os = e.object({ uuid: e.uuid() }), ss = e.object({
3253
+ filter: Ti.optional(),
3188
3254
  search: e.string().optional()
3189
- }), es = Si, ts = e.object({
3190
- filter: Ci.optional(),
3255
+ }), cs = Ei, ls = e.object({
3256
+ filter: Di.optional(),
3191
3257
  search: e.string().optional()
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({
3258
+ }), us = Oi, ds = ki, fs = e.object({ uuid: e.uuid() }), ps = e.void(), ms = Ai, hs = e.object({ uuid: e.uuid() }), gs = e.void(), _s = e.object({ uuid: e.uuid() }), vs = e.void(), ys = e.object({ uuid: e.uuid() }), bs = e.object({
3193
3259
  pagination: h.optional(),
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({
3260
+ filter: ji.optional()
3261
+ }), xs = Li, Ss = e.object({ token: e.string() }), Cs = Ui, ws = Ki, Ts = Ji, Es = e.void(), Ds = Zi, Os = ta, ks = ea, As = $i, js = (t) => (t?.client ?? p).get({
3196
3262
  requestValidator: async (t) => await e.object({
3197
3263
  body: e.never().optional(),
3198
3264
  path: e.never().optional(),
3199
- query: Qi.optional()
3265
+ query: na.optional()
3200
3266
  }).parseAsync(t),
3201
- responseValidator: async (e) => await $i.parseAsync(e),
3267
+ responseValidator: async (e) => await ra.parseAsync(e),
3202
3268
  url: "/api/v1/users",
3203
3269
  ...t
3204
- }), ws = (t) => (t.client ?? p).post({
3270
+ }), Ms = (t) => (t.client ?? p).post({
3205
3271
  requestValidator: async (t) => await e.object({
3206
- body: ea,
3272
+ body: ia,
3207
3273
  path: e.never().optional(),
3208
3274
  query: e.never().optional()
3209
3275
  }).parseAsync(t),
3210
- responseValidator: async (e) => await ta.parseAsync(e),
3276
+ responseValidator: async (e) => await aa.parseAsync(e),
3211
3277
  url: "/api/v1/files",
3212
3278
  ...t,
3213
3279
  headers: {
3214
3280
  "Content-Type": "application/json",
3215
3281
  ...t.headers
3216
3282
  }
3217
- }), Ts = (t) => (t.client ?? p).post({
3283
+ }), Ns = (t) => (t.client ?? p).post({
3218
3284
  requestValidator: async (t) => await e.object({
3219
- body: na,
3220
- path: ra,
3285
+ body: oa,
3286
+ path: sa,
3221
3287
  query: e.never().optional()
3222
3288
  }).parseAsync(t),
3223
- responseValidator: async (e) => await ia.parseAsync(e),
3289
+ responseValidator: async (e) => await ca.parseAsync(e),
3224
3290
  url: "/api/v2/files/{file}/confirm-upload",
3225
3291
  ...t,
3226
3292
  headers: {
3227
3293
  "Content-Type": "application/json",
3228
3294
  ...t.headers
3229
3295
  }
3230
- }), Es = (t) => (t.client ?? p).post({
3296
+ }), Ps = (t) => (t.client ?? p).post({
3231
3297
  requestValidator: async (t) => await e.object({
3232
3298
  body: e.never().optional(),
3233
- path: aa,
3299
+ path: la,
3234
3300
  query: e.never().optional()
3235
3301
  }).parseAsync(t),
3236
3302
  url: "/api/v1/files/{file}/download",
3237
3303
  ...t
3238
- }), Ds = (t) => (t?.client ?? p).get({
3304
+ }), Fs = (t) => (t?.client ?? p).get({
3239
3305
  requestValidator: async (t) => await e.object({
3240
3306
  body: e.never().optional(),
3241
3307
  path: e.never().optional(),
3242
- query: oa.optional()
3308
+ query: ua.optional()
3243
3309
  }).parseAsync(t),
3244
- responseValidator: async (e) => await sa.parseAsync(e),
3310
+ responseValidator: async (e) => await da.parseAsync(e),
3245
3311
  url: "/api/v1/customers",
3246
3312
  ...t
3247
- }), Os = (t) => (t.client ?? p).get({
3313
+ }), Is = (t) => (t.client ?? p).get({
3248
3314
  requestValidator: async (t) => await e.object({
3249
3315
  body: e.never().optional(),
3250
- path: ca,
3316
+ path: fa,
3251
3317
  query: e.never().optional()
3252
3318
  }).parseAsync(t),
3253
- responseValidator: async (e) => await la.parseAsync(e),
3319
+ responseValidator: async (e) => await pa.parseAsync(e),
3254
3320
  url: "/api/v1/customers/{uuid}",
3255
3321
  ...t
3256
- }), ks = (t) => (t.client ?? p).get({
3322
+ }), Ls = (t) => (t.client ?? p).get({
3257
3323
  requestValidator: async (t) => await e.object({
3258
3324
  body: e.never().optional(),
3259
- path: ua,
3260
- query: da.optional()
3325
+ path: ma,
3326
+ query: ha.optional()
3261
3327
  }).parseAsync(t),
3262
- responseValidator: async (e) => await fa.parseAsync(e),
3328
+ responseValidator: async (e) => await ga.parseAsync(e),
3263
3329
  url: "/api/v1/customers/{uuid}/recipients",
3264
3330
  ...t
3265
- }), As = (t) => (t?.client ?? p).get({
3331
+ }), Rs = (t) => (t?.client ?? p).get({
3266
3332
  requestValidator: async (t) => await e.object({
3267
3333
  body: e.never().optional(),
3268
3334
  path: e.never().optional(),
3269
3335
  query: e.never().optional()
3270
3336
  }).parseAsync(t),
3271
- responseValidator: async (e) => await pa.parseAsync(e),
3337
+ responseValidator: async (e) => await _a.parseAsync(e),
3272
3338
  url: "/api/v1/issuers",
3273
3339
  ...t
3274
- }), js = (t) => (t.client ?? p).put({
3340
+ }), zs = (t) => (t.client ?? p).put({
3275
3341
  requestValidator: async (t) => await e.object({
3276
- body: ma,
3342
+ body: va,
3277
3343
  path: e.never().optional(),
3278
3344
  query: e.never().optional()
3279
3345
  }).parseAsync(t),
3280
- responseValidator: async (e) => await ha.parseAsync(e),
3346
+ responseValidator: async (e) => await ya.parseAsync(e),
3281
3347
  url: "/api/v1/issuers",
3282
3348
  ...t,
3283
3349
  headers: {
3284
3350
  "Content-Type": "application/json",
3285
3351
  ...t.headers
3286
3352
  }
3287
- }), Ms = (t) => (t.client ?? p).get({
3353
+ }), Bs = (t) => (t.client ?? p).get({
3288
3354
  requestValidator: async (t) => await e.object({
3289
3355
  body: e.never().optional(),
3290
3356
  path: e.never().optional(),
3291
- query: ga
3357
+ query: ba
3292
3358
  }).parseAsync(t),
3293
- responseValidator: async (e) => await _a.parseAsync(e),
3359
+ responseValidator: async (e) => await xa.parseAsync(e),
3294
3360
  url: "/api/v1/public/invoices",
3295
3361
  ...t
3296
- }), Ns = (t) => (t?.client ?? p).get({
3362
+ }), Vs = (t) => (t?.client ?? p).get({
3297
3363
  requestValidator: async (t) => await e.object({
3298
3364
  body: e.never().optional(),
3299
3365
  path: e.never().optional(),
3300
- query: va.optional()
3366
+ query: Sa.optional()
3301
3367
  }).parseAsync(t),
3302
- responseValidator: async (e) => await ya.parseAsync(e),
3368
+ responseValidator: async (e) => await Ca.parseAsync(e),
3303
3369
  url: "/api/v1/invoices",
3304
3370
  ...t
3305
- }), Ps = (t) => (t.client ?? p).post({
3371
+ }), Hs = (t) => (t.client ?? p).post({
3306
3372
  requestValidator: async (t) => await e.object({
3307
- body: ba,
3373
+ body: wa,
3308
3374
  path: e.never().optional(),
3309
3375
  query: e.never().optional()
3310
3376
  }).parseAsync(t),
3311
- responseValidator: async (e) => await xa.parseAsync(e),
3377
+ responseValidator: async (e) => await Ta.parseAsync(e),
3312
3378
  url: "/api/v1/invoices",
3313
3379
  ...t,
3314
3380
  headers: {
3315
3381
  "Content-Type": "application/json",
3316
3382
  ...t.headers
3317
3383
  }
3318
- }), Fs = (t) => (t.client ?? p).delete({
3384
+ }), Us = (t) => (t.client ?? p).delete({
3319
3385
  requestValidator: async (t) => await e.object({
3320
3386
  body: e.never().optional(),
3321
- path: Sa,
3387
+ path: Ea,
3322
3388
  query: e.never().optional()
3323
3389
  }).parseAsync(t),
3324
- responseValidator: async (e) => await Ca.parseAsync(e),
3390
+ responseValidator: async (e) => await Da.parseAsync(e),
3325
3391
  url: "/api/v1/invoices/{uuid}",
3326
3392
  ...t
3327
- }), Is = (t) => (t.client ?? p).get({
3393
+ }), Ws = (t) => (t.client ?? p).get({
3328
3394
  requestValidator: async (t) => await e.object({
3329
3395
  body: e.never().optional(),
3330
- path: wa,
3396
+ path: Oa,
3331
3397
  query: e.never().optional()
3332
3398
  }).parseAsync(t),
3333
- responseValidator: async (e) => await Ta.parseAsync(e),
3399
+ responseValidator: async (e) => await ka.parseAsync(e),
3334
3400
  url: "/api/v1/invoices/{uuid}",
3335
3401
  ...t
3336
- }), Ls = (t) => (t.client ?? p).patch({
3402
+ }), Gs = (t) => (t.client ?? p).patch({
3337
3403
  requestValidator: async (t) => await e.object({
3338
- body: Ea,
3339
- path: Da,
3404
+ body: Aa,
3405
+ path: ja,
3340
3406
  query: e.never().optional()
3341
3407
  }).parseAsync(t),
3342
- responseValidator: async (e) => await Oa.parseAsync(e),
3408
+ responseValidator: async (e) => await Ma.parseAsync(e),
3343
3409
  url: "/api/v1/invoices/{uuid}",
3344
3410
  ...t,
3345
3411
  headers: {
3346
3412
  "Content-Type": "application/json",
3347
3413
  ...t.headers
3348
3414
  }
3349
- }), Rs = (t) => (t.client ?? p).patch({
3415
+ }), Ks = (t) => (t.client ?? p).patch({
3350
3416
  requestValidator: async (t) => await e.object({
3351
- body: ka,
3352
- path: Aa,
3417
+ body: Na,
3418
+ path: Pa,
3353
3419
  query: e.never().optional()
3354
3420
  }).parseAsync(t),
3355
- responseValidator: async (e) => await ja.parseAsync(e),
3421
+ responseValidator: async (e) => await Fa.parseAsync(e),
3356
3422
  url: "/api/v1/invoices/{uuid}/lines",
3357
3423
  ...t,
3358
3424
  headers: {
3359
3425
  "Content-Type": "application/json",
3360
3426
  ...t.headers
3361
3427
  }
3362
- }), zs = (t) => (t.client ?? p).patch({
3428
+ }), qs = (t) => (t.client ?? p).patch({
3363
3429
  requestValidator: async (t) => await e.object({
3364
- body: Ma,
3365
- path: Na,
3430
+ body: Ia,
3431
+ path: La,
3366
3432
  query: e.never().optional()
3367
3433
  }).parseAsync(t),
3368
- responseValidator: async (e) => await Pa.parseAsync(e),
3434
+ responseValidator: async (e) => await Ra.parseAsync(e),
3369
3435
  url: "/api/v2/invoices/{uuid}/discount",
3370
3436
  ...t,
3371
3437
  headers: {
3372
3438
  "Content-Type": "application/json",
3373
3439
  ...t.headers
3374
3440
  }
3375
- }), Bs = (t) => (t.client ?? p).patch({
3441
+ }), Js = (t) => (t.client ?? p).patch({
3376
3442
  requestValidator: async (t) => await e.object({
3377
- body: Fa,
3378
- path: Ia,
3443
+ body: za,
3444
+ path: Ba,
3379
3445
  query: e.never().optional()
3380
3446
  }).parseAsync(t),
3381
- responseValidator: async (e) => await La.parseAsync(e),
3447
+ responseValidator: async (e) => await Va.parseAsync(e),
3382
3448
  url: "/api/v1/invoices/{uuid}/attachments",
3383
3449
  ...t,
3384
3450
  headers: {
3385
3451
  "Content-Type": "application/json",
3386
3452
  ...t.headers
3387
3453
  }
3388
- }), Vs = (t) => (t.client ?? p).post({
3454
+ }), Ys = (t) => (t.client ?? p).post({
3389
3455
  requestValidator: async (t) => await e.object({
3390
3456
  body: e.never().optional(),
3391
- path: Ra,
3457
+ path: Ha,
3392
3458
  query: e.never().optional()
3393
3459
  }).parseAsync(t),
3394
3460
  url: "/api/v1/invoices/{uuid}/finalize",
3395
3461
  ...t
3396
- }), Hs = (t) => (t.client ?? p).post({
3462
+ }), Xs = (t) => (t.client ?? p).post({
3397
3463
  requestValidator: async (t) => await e.object({
3398
3464
  body: e.never().optional(),
3399
- path: za,
3465
+ path: Ua,
3400
3466
  query: e.never().optional()
3401
3467
  }).parseAsync(t),
3402
- responseValidator: async (e) => await Ba.parseAsync(e),
3468
+ responseValidator: async (e) => await Wa.parseAsync(e),
3403
3469
  url: "/api/v1/invoices/{uuid}/credit-note",
3404
3470
  ...t
3405
- }), Us = (t) => (t.client ?? p).patch({
3471
+ }), Zs = (t) => (t.client ?? p).patch({
3406
3472
  requestValidator: async (t) => await e.object({
3407
- body: Va,
3408
- path: Ha,
3473
+ body: Ga,
3474
+ path: Ka,
3409
3475
  query: e.never().optional()
3410
3476
  }).parseAsync(t),
3411
- responseValidator: async (e) => await Ua.parseAsync(e),
3477
+ responseValidator: async (e) => await qa.parseAsync(e),
3412
3478
  url: "/api/v1/credit-notes/{uuid}/lines",
3413
3479
  ...t,
3414
3480
  headers: {
3415
3481
  "Content-Type": "application/json",
3416
3482
  ...t.headers
3417
3483
  }
3418
- }), Ws = (t) => (t.client ?? p).patch({
3484
+ }), Qs = (t) => (t.client ?? p).patch({
3419
3485
  requestValidator: async (t) => await e.object({
3420
- body: Wa,
3421
- path: Ga,
3486
+ body: Ja,
3487
+ path: Ya,
3422
3488
  query: e.never().optional()
3423
3489
  }).parseAsync(t),
3424
- responseValidator: async (e) => await Ka.parseAsync(e),
3490
+ responseValidator: async (e) => await Xa.parseAsync(e),
3425
3491
  url: "/api/v1/credit-notes/{uuid}",
3426
3492
  ...t,
3427
3493
  headers: {
3428
3494
  "Content-Type": "application/json",
3429
3495
  ...t.headers
3430
3496
  }
3431
- }), Gs = (t) => (t.client ?? p).post({
3497
+ }), $s = (t) => (t.client ?? p).post({
3432
3498
  requestValidator: async (t) => await e.object({
3433
3499
  body: e.never().optional(),
3434
- path: qa,
3500
+ path: Za,
3435
3501
  query: e.never().optional()
3436
3502
  }).parseAsync(t),
3437
3503
  url: "/api/v1/credit-notes/{uuid}/finalize",
3438
3504
  ...t
3439
- }), Ks = (t) => (t.client ?? p).post({
3505
+ }), ec = (t) => (t.client ?? p).post({
3440
3506
  requestValidator: async (t) => await e.object({
3441
3507
  body: e.never().optional(),
3442
- path: Ja,
3508
+ path: Qa,
3443
3509
  query: e.never().optional()
3444
3510
  }).parseAsync(t),
3445
3511
  url: "/api/v1/invoices/{uuid}/send-email",
3446
3512
  ...t
3447
- }), qs = (t) => (t?.client ?? p).post({
3513
+ }), tc = (t) => (t?.client ?? p).post({
3448
3514
  requestValidator: async (t) => await e.object({
3449
3515
  body: e.never().optional(),
3450
3516
  path: e.never().optional(),
3451
- query: Ya.optional()
3517
+ query: $a.optional()
3452
3518
  }).parseAsync(t),
3453
- responseValidator: async (e) => await Xa.parseAsync(e),
3519
+ responseValidator: async (e) => await eo.parseAsync(e),
3454
3520
  url: "/api/v1/invoices/send-mail",
3455
3521
  ...t
3456
- }), Js = (t) => (t?.client ?? p).get({
3522
+ }), nc = (t) => (t?.client ?? p).get({
3457
3523
  requestValidator: async (t) => await e.object({
3458
3524
  body: e.never().optional(),
3459
3525
  path: e.never().optional(),
3460
- query: Za.optional()
3526
+ query: to.optional()
3461
3527
  }).parseAsync(t),
3462
- responseValidator: async (e) => await Qa.parseAsync(e),
3528
+ responseValidator: async (e) => await no.parseAsync(e),
3463
3529
  url: "/api/v1/invoices/send-mail/preview",
3464
3530
  ...t
3465
- }), Ys = (t) => (t.client ?? p).post({
3531
+ }), rc = (t) => (t.client ?? p).post({
3466
3532
  requestValidator: async (t) => await e.object({
3467
3533
  body: e.never().optional(),
3468
- path: $a,
3534
+ path: ro,
3469
3535
  query: e.never().optional()
3470
3536
  }).parseAsync(t),
3471
- responseValidator: async (e) => await eo.parseAsync(e),
3537
+ responseValidator: async (e) => await io.parseAsync(e),
3472
3538
  url: "/api/v1/invoices/{uuid}/mark-as-ready",
3473
3539
  ...t
3474
- }), Xs = (t) => (t.client ?? p).post({
3540
+ }), ic = (t) => (t.client ?? p).post({
3475
3541
  requestValidator: async (t) => await e.object({
3476
3542
  body: e.never().optional(),
3477
- path: to,
3543
+ path: ao,
3478
3544
  query: e.never().optional()
3479
3545
  }).parseAsync(t),
3480
- responseValidator: async (e) => await no.parseAsync(e),
3546
+ responseValidator: async (e) => await oo.parseAsync(e),
3481
3547
  url: "/api/v1/invoices/{uuid}/duplicate",
3482
3548
  ...t
3483
- }), Zs = (t) => (t.client ?? p).post({
3549
+ }), ac = (t) => (t.client ?? p).post({
3484
3550
  requestValidator: async (t) => await e.object({
3485
3551
  body: e.never().optional(),
3486
- path: ro,
3552
+ path: so,
3487
3553
  query: e.never().optional()
3488
3554
  }).parseAsync(t),
3489
- responseValidator: async (e) => await io.parseAsync(e),
3555
+ responseValidator: async (e) => await co.parseAsync(e),
3490
3556
  url: "/api/v1/invoices/{uuid}/mark-as-draft",
3491
3557
  ...t
3492
- }), Qs = (t) => (t.client ?? p).post({
3558
+ }), oc = (t) => (t.client ?? p).post({
3493
3559
  requestValidator: async (t) => await e.object({
3494
3560
  body: e.never().optional(),
3495
- path: ao,
3561
+ path: lo,
3496
3562
  query: e.never().optional()
3497
3563
  }).parseAsync(t),
3498
- responseValidator: async (e) => await oo.parseAsync(e),
3564
+ responseValidator: async (e) => await uo.parseAsync(e),
3499
3565
  url: "/api/v1/invoices/{uuid}/mark-as-prior-approval-required",
3500
3566
  ...t
3501
- }), $s = (t) => (t.client ?? p).post({
3567
+ }), sc = (t) => (t.client ?? p).post({
3502
3568
  requestValidator: async (t) => await e.object({
3503
3569
  body: e.never().optional(),
3504
- path: so,
3570
+ path: fo,
3505
3571
  query: e.never().optional()
3506
3572
  }).parseAsync(t),
3507
- responseValidator: async (e) => await co.parseAsync(e),
3573
+ responseValidator: async (e) => await po.parseAsync(e),
3508
3574
  url: "/api/v1/invoices/{uuid}/unmark-as-prior-approval-required",
3509
3575
  ...t
3510
- }), ec = (t) => (t.client ?? p).post({
3576
+ }), cc = (t) => (t.client ?? p).post({
3511
3577
  requestValidator: async (t) => await e.object({
3512
3578
  body: e.never().optional(),
3513
- path: lo,
3579
+ path: mo,
3514
3580
  query: e.never().optional()
3515
3581
  }).parseAsync(t),
3516
- responseValidator: async (e) => await uo.parseAsync(e),
3582
+ responseValidator: async (e) => await ho.parseAsync(e),
3517
3583
  url: "/api/v1/invoices/{uuid}/mark-as-disputed",
3518
3584
  ...t
3519
- }), tc = (t) => (t.client ?? p).post({
3585
+ }), lc = (t) => (t.client ?? p).post({
3520
3586
  requestValidator: async (t) => await e.object({
3521
3587
  body: e.never().optional(),
3522
- path: fo,
3588
+ path: go,
3523
3589
  query: e.never().optional()
3524
3590
  }).parseAsync(t),
3525
- responseValidator: async (e) => await po.parseAsync(e),
3591
+ responseValidator: async (e) => await _o.parseAsync(e),
3526
3592
  url: "/api/v1/invoices/{uuid}/mark-as-paid",
3527
3593
  ...t
3528
- }), nc = (t) => (t?.client ?? p).get({
3594
+ }), uc = (t) => (t?.client ?? p).get({
3529
3595
  requestValidator: async (t) => await e.object({
3530
3596
  body: e.never().optional(),
3531
3597
  path: e.never().optional(),
3532
- query: mo.optional()
3598
+ query: vo.optional()
3533
3599
  }).parseAsync(t),
3534
- responseValidator: async (e) => await ho.parseAsync(e),
3600
+ responseValidator: async (e) => await yo.parseAsync(e),
3535
3601
  url: "/api/v1/invoices/mark-as-ready/preview",
3536
3602
  ...t
3537
- }), rc = (t) => (t?.client ?? p).post({
3603
+ }), dc = (t) => (t?.client ?? p).post({
3538
3604
  requestValidator: async (t) => await e.object({
3539
3605
  body: e.never().optional(),
3540
3606
  path: e.never().optional(),
3541
- query: go.optional()
3607
+ query: bo.optional()
3542
3608
  }).parseAsync(t),
3543
- responseValidator: async (e) => await _o.parseAsync(e),
3609
+ responseValidator: async (e) => await xo.parseAsync(e),
3544
3610
  url: "/api/v1/invoices/mark-as-ready",
3545
3611
  ...t
3546
- }), ic = (t) => (t.client ?? p).post({
3612
+ }), fc = (t) => (t.client ?? p).post({
3547
3613
  requestValidator: async (t) => await e.object({
3548
3614
  body: e.never().optional(),
3549
- path: vo,
3615
+ path: So,
3550
3616
  query: e.never().optional()
3551
3617
  }).parseAsync(t),
3552
- responseValidator: async (e) => await yo.parseAsync(e),
3618
+ responseValidator: async (e) => await Co.parseAsync(e),
3553
3619
  url: "/api/v1/invoices/{uuid}/withdraw-disputed",
3554
3620
  ...t
3555
- }), ac = (t) => (t?.client ?? p).get({
3621
+ }), pc = (t) => (t?.client ?? p).get({
3556
3622
  requestValidator: async (t) => await e.object({
3557
3623
  body: e.never().optional(),
3558
3624
  path: e.never().optional(),
3559
- query: bo.optional()
3625
+ query: wo.optional()
3560
3626
  }).parseAsync(t),
3561
- responseValidator: async (e) => await xo.parseAsync(e),
3627
+ responseValidator: async (e) => await To.parseAsync(e),
3562
3628
  url: "/api/v1/invoices/finalize/preview",
3563
3629
  ...t
3564
- }), oc = (t) => (t?.client ?? p).post({
3630
+ }), mc = (t) => (t?.client ?? p).post({
3565
3631
  requestValidator: async (t) => await e.object({
3566
3632
  body: e.never().optional(),
3567
3633
  path: e.never().optional(),
3568
- query: So.optional()
3634
+ query: Eo.optional()
3569
3635
  }).parseAsync(t),
3570
- responseValidator: async (e) => await Co.parseAsync(e),
3636
+ responseValidator: async (e) => await Do.parseAsync(e),
3571
3637
  url: "/api/v1/invoices/finalize",
3572
3638
  ...t
3573
- }), sc = (t) => (t.client ?? p).post({
3639
+ }), hc = (t) => (t?.client ?? p).get({
3640
+ requestValidator: async (t) => await e.object({
3641
+ body: e.never().optional(),
3642
+ path: e.never().optional(),
3643
+ query: Oo.optional()
3644
+ }).parseAsync(t),
3645
+ responseValidator: async (e) => await ko.parseAsync(e),
3646
+ url: "/api/v1/invoices/delete/preview",
3647
+ ...t
3648
+ }), gc = (t) => (t?.client ?? p).post({
3649
+ requestValidator: async (t) => await e.object({
3650
+ body: e.never().optional(),
3651
+ path: e.never().optional(),
3652
+ query: Ao.optional()
3653
+ }).parseAsync(t),
3654
+ responseValidator: async (e) => await jo.parseAsync(e),
3655
+ url: "/api/v1/invoices/delete",
3656
+ ...t
3657
+ }), _c = (t) => (t.client ?? p).post({
3574
3658
  requestValidator: async (t) => await e.object({
3575
3659
  body: e.never().optional(),
3576
- path: wo,
3660
+ path: Mo,
3577
3661
  query: e.never().optional()
3578
3662
  }).parseAsync(t),
3579
- responseValidator: async (e) => await To.parseAsync(e),
3663
+ responseValidator: async (e) => await No.parseAsync(e),
3580
3664
  url: "/api/v1/invoices/{uuid}/restore-from-pro-forma",
3581
3665
  ...t
3582
- }), cc = (t) => (t?.client ?? p).get({
3666
+ }), vc = (t) => (t?.client ?? p).get({
3583
3667
  requestValidator: async (t) => await e.object({
3584
3668
  body: e.never().optional(),
3585
3669
  path: e.never().optional(),
3586
- query: Eo.optional()
3670
+ query: Po.optional()
3587
3671
  }).parseAsync(t),
3588
- responseValidator: async (e) => await Do.parseAsync(e),
3672
+ responseValidator: async (e) => await Fo.parseAsync(e),
3589
3673
  url: "/api/v1/activity-logs",
3590
3674
  ...t
3591
- }), lc = (t) => (t.client ?? p).get({
3675
+ }), yc = (t) => (t.client ?? p).get({
3592
3676
  requestValidator: async (t) => await e.object({
3593
3677
  body: e.never().optional(),
3594
- path: Oo,
3678
+ path: Io,
3595
3679
  query: e.never().optional()
3596
3680
  }).parseAsync(t),
3597
- responseValidator: async (e) => await ko.parseAsync(e),
3681
+ responseValidator: async (e) => await Lo.parseAsync(e),
3598
3682
  url: "/api/v1/invoices/{uuid}/payments",
3599
3683
  ...t
3600
- }), uc = (t) => (t.client ?? p).post({
3684
+ }), bc = (t) => (t.client ?? p).post({
3601
3685
  requestValidator: async (t) => await e.object({
3602
- body: Ao,
3603
- path: jo,
3686
+ body: Ro,
3687
+ path: zo,
3604
3688
  query: e.never().optional()
3605
3689
  }).parseAsync(t),
3606
- responseValidator: async (e) => await Mo.parseAsync(e),
3690
+ responseValidator: async (e) => await Bo.parseAsync(e),
3607
3691
  url: "/api/v1/invoices/{uuid}/payments",
3608
3692
  ...t,
3609
3693
  headers: {
3610
3694
  "Content-Type": "application/json",
3611
3695
  ...t.headers
3612
3696
  }
3613
- }), dc = (t) => (t.client ?? p).delete({
3697
+ }), xc = (t) => (t.client ?? p).delete({
3614
3698
  requestValidator: async (t) => await e.object({
3615
3699
  body: e.never().optional(),
3616
- path: No,
3700
+ path: Vo,
3617
3701
  query: e.never().optional()
3618
3702
  }).parseAsync(t),
3619
- responseValidator: async (e) => await Po.parseAsync(e),
3703
+ responseValidator: async (e) => await Ho.parseAsync(e),
3620
3704
  url: "/api/v1/invoices/{uuid}/payments/{paymentUuid}",
3621
3705
  ...t
3622
- }), fc = (t) => (t?.client ?? p).get({
3706
+ }), Sc = (t) => (t?.client ?? p).get({
3623
3707
  requestValidator: async (t) => await e.object({
3624
3708
  body: e.never().optional(),
3625
3709
  path: e.never().optional(),
3626
3710
  query: e.never().optional()
3627
3711
  }).parseAsync(t),
3628
- responseValidator: async (e) => await Fo.parseAsync(e),
3712
+ responseValidator: async (e) => await Uo.parseAsync(e),
3629
3713
  url: "/api/v1/issuers/reminder-configs",
3630
3714
  ...t
3631
- }), pc = (t) => (t.client ?? p).patch({
3715
+ }), Cc = (t) => (t.client ?? p).patch({
3632
3716
  requestValidator: async (t) => await e.object({
3633
- body: Io,
3717
+ body: Wo,
3634
3718
  path: e.never().optional(),
3635
3719
  query: e.never().optional()
3636
3720
  }).parseAsync(t),
3637
- responseValidator: async (e) => await Lo.parseAsync(e),
3721
+ responseValidator: async (e) => await Go.parseAsync(e),
3638
3722
  url: "/api/v1/issuers/reminder-configs",
3639
3723
  ...t,
3640
3724
  headers: {
3641
3725
  "Content-Type": "application/json",
3642
3726
  ...t.headers
3643
3727
  }
3644
- }), mc = (t) => (t?.client ?? p).get({
3728
+ }), wc = (t) => (t?.client ?? p).get({
3645
3729
  requestValidator: async (t) => await e.object({
3646
3730
  body: e.never().optional(),
3647
3731
  path: e.never().optional(),
3648
- query: Ro.optional()
3732
+ query: Ko.optional()
3649
3733
  }).parseAsync(t),
3650
- responseValidator: async (e) => await zo.parseAsync(e),
3734
+ responseValidator: async (e) => await qo.parseAsync(e),
3651
3735
  url: "/api/v1/custom-field-definitions",
3652
3736
  ...t
3653
- }), hc = (t) => (t.client ?? p).get({
3737
+ }), Tc = (t) => (t.client ?? p).get({
3654
3738
  requestValidator: async (t) => await e.object({
3655
3739
  body: e.never().optional(),
3656
- path: Bo,
3740
+ path: Jo,
3657
3741
  query: e.never().optional()
3658
3742
  }).parseAsync(t),
3659
- responseValidator: async (e) => await Vo.parseAsync(e),
3743
+ responseValidator: async (e) => await Yo.parseAsync(e),
3660
3744
  url: "/api/v1/dunning-cases/{uuid}",
3661
3745
  ...t
3662
- }), gc = (t) => (t?.client ?? p).get({
3746
+ }), Ec = (t) => (t?.client ?? p).get({
3663
3747
  requestValidator: async (t) => await e.object({
3664
3748
  body: e.never().optional(),
3665
3749
  path: e.never().optional(),
3666
- query: Ho.optional()
3750
+ query: Xo.optional()
3667
3751
  }).parseAsync(t),
3668
- responseValidator: async (e) => await Uo.parseAsync(e),
3752
+ responseValidator: async (e) => await Zo.parseAsync(e),
3669
3753
  url: "/api/v1/dunning-cases",
3670
3754
  ...t
3671
- }), _c = (t) => (t.client ?? p).post({
3755
+ }), Dc = (t) => (t.client ?? p).post({
3672
3756
  requestValidator: async (t) => await e.object({
3673
3757
  body: e.never().optional(),
3674
- path: Wo,
3758
+ path: Qo,
3675
3759
  query: e.never().optional()
3676
3760
  }).parseAsync(t),
3677
3761
  url: "/api/v1/dunning-cases/{uuid}/send",
3678
3762
  ...t
3679
- }), vc = (t) => (t.client ?? p).post({
3763
+ }), Oc = (t) => (t.client ?? p).post({
3680
3764
  requestValidator: async (t) => await e.object({
3681
3765
  body: e.never().optional(),
3682
- path: Go,
3766
+ path: $o,
3683
3767
  query: e.never().optional()
3684
3768
  }).parseAsync(t),
3685
3769
  url: "/api/v1/dunning-case-reminders/{uuid}/retry",
3686
3770
  ...t
3687
- }), yc = (t) => (t?.client ?? p).post({
3771
+ }), kc = (t) => (t?.client ?? p).post({
3688
3772
  requestValidator: async (t) => await e.object({
3689
3773
  body: e.never().optional(),
3690
3774
  path: e.never().optional(),
3691
- query: Ko.optional()
3775
+ query: es.optional()
3692
3776
  }).parseAsync(t),
3693
- responseValidator: async (e) => await qo.parseAsync(e),
3777
+ responseValidator: async (e) => await ts.parseAsync(e),
3694
3778
  url: "/api/v1/dunning-cases/send",
3695
3779
  ...t
3696
- }), bc = (t) => (t?.client ?? p).get({
3780
+ }), Ac = (t) => (t?.client ?? p).get({
3697
3781
  requestValidator: async (t) => await e.object({
3698
3782
  body: e.never().optional(),
3699
3783
  path: e.never().optional(),
3700
- query: Jo.optional()
3784
+ query: ns.optional()
3701
3785
  }).parseAsync(t),
3702
- responseValidator: async (e) => await Yo.parseAsync(e),
3786
+ responseValidator: async (e) => await rs.parseAsync(e),
3703
3787
  url: "/api/v1/dunning-cases/send/preview",
3704
3788
  ...t
3705
- }), xc = (t) => (t.client ?? p).get({
3789
+ }), jc = (t) => (t.client ?? p).get({
3706
3790
  requestValidator: async (t) => await e.object({
3707
3791
  body: e.never().optional(),
3708
3792
  path: e.never().optional(),
3709
- query: Xo
3793
+ query: is
3710
3794
  }).parseAsync(t),
3711
- responseValidator: async (e) => await Zo.parseAsync(e),
3795
+ responseValidator: async (e) => await as.parseAsync(e),
3712
3796
  url: "/api/v1/public/dunning-case-reminder-invoices",
3713
3797
  ...t
3714
- }), Sc = (t) => (t.client ?? p).post({
3798
+ }), Mc = (t) => (t.client ?? p).post({
3715
3799
  requestValidator: async (t) => await e.object({
3716
3800
  body: e.never().optional(),
3717
- path: Qo,
3801
+ path: os,
3718
3802
  query: e.never().optional()
3719
3803
  }).parseAsync(t),
3720
3804
  url: "/api/v1/invoices/{uuid}/send-approval",
3721
3805
  ...t
3722
- }), Cc = (t) => (t?.client ?? p).get({
3806
+ }), Nc = (t) => (t?.client ?? p).get({
3723
3807
  requestValidator: async (t) => await e.object({
3724
3808
  body: e.never().optional(),
3725
3809
  path: e.never().optional(),
3726
- query: $o.optional()
3810
+ query: ss.optional()
3727
3811
  }).parseAsync(t),
3728
- responseValidator: async (e) => await es.parseAsync(e),
3812
+ responseValidator: async (e) => await cs.parseAsync(e),
3729
3813
  url: "/api/v1/invoices/send-approval/preview",
3730
3814
  ...t
3731
- }), wc = (t) => (t?.client ?? p).post({
3815
+ }), Pc = (t) => (t?.client ?? p).post({
3732
3816
  requestValidator: async (t) => await e.object({
3733
3817
  body: e.never().optional(),
3734
3818
  path: e.never().optional(),
3735
- query: ts.optional()
3819
+ query: ls.optional()
3736
3820
  }).parseAsync(t),
3737
- responseValidator: async (e) => await ns.parseAsync(e),
3821
+ responseValidator: async (e) => await us.parseAsync(e),
3738
3822
  url: "/api/v1/invoices/send-approval",
3739
3823
  ...t
3740
- }), Tc = (t) => (t.client ?? p).post({
3824
+ }), Fc = (t) => (t.client ?? p).post({
3741
3825
  requestValidator: async (t) => await e.object({
3742
- body: rs,
3743
- path: is,
3826
+ body: ds,
3827
+ path: fs,
3744
3828
  query: e.never().optional()
3745
3829
  }).parseAsync(t),
3746
- responseValidator: async (e) => await as.parseAsync(e),
3830
+ responseValidator: async (e) => await ps.parseAsync(e),
3747
3831
  url: "/api/v1/invoice-approvals/{uuid}/approve",
3748
3832
  ...t,
3749
3833
  headers: {
3750
3834
  "Content-Type": "application/json",
3751
3835
  ...t.headers
3752
3836
  }
3753
- }), Ec = (t) => (t.client ?? p).post({
3837
+ }), Ic = (t) => (t.client ?? p).post({
3754
3838
  requestValidator: async (t) => await e.object({
3755
- body: os,
3756
- path: ss,
3839
+ body: ms,
3840
+ path: hs,
3757
3841
  query: e.never().optional()
3758
3842
  }).parseAsync(t),
3759
- responseValidator: async (e) => await cs.parseAsync(e),
3843
+ responseValidator: async (e) => await gs.parseAsync(e),
3760
3844
  url: "/api/v1/invoice-approvals/{uuid}/reject",
3761
3845
  ...t,
3762
3846
  headers: {
3763
3847
  "Content-Type": "application/json",
3764
3848
  ...t.headers
3765
3849
  }
3766
- }), Dc = (t) => (t.client ?? p).post({
3850
+ }), Lc = (t) => (t.client ?? p).post({
3767
3851
  requestValidator: async (t) => await e.object({
3768
3852
  body: e.never().optional(),
3769
- path: ls,
3853
+ path: _s,
3770
3854
  query: e.never().optional()
3771
3855
  }).parseAsync(t),
3772
- responseValidator: async (e) => await us.parseAsync(e),
3856
+ responseValidator: async (e) => await vs.parseAsync(e),
3773
3857
  url: "/api/v1/invoice-approvals/{uuid}/cancel",
3774
3858
  ...t
3775
- }), Oc = (t) => (t.client ?? p).post({
3859
+ }), Rc = (t) => (t.client ?? p).post({
3776
3860
  requestValidator: async (t) => await e.object({
3777
3861
  body: e.never().optional(),
3778
- path: ds,
3862
+ path: ys,
3779
3863
  query: e.never().optional()
3780
3864
  }).parseAsync(t),
3781
3865
  url: "/api/v1/invoices/{uuid}/restart-approval",
3782
3866
  ...t
3783
- }), kc = (t) => (t?.client ?? p).get({
3867
+ }), zc = (t) => (t?.client ?? p).get({
3784
3868
  requestValidator: async (t) => await e.object({
3785
3869
  body: e.never().optional(),
3786
3870
  path: e.never().optional(),
3787
- query: fs.optional()
3871
+ query: bs.optional()
3788
3872
  }).parseAsync(t),
3789
- responseValidator: async (e) => await ps.parseAsync(e),
3873
+ responseValidator: async (e) => await xs.parseAsync(e),
3790
3874
  url: "/api/v1/invoice-approvals",
3791
3875
  ...t
3792
- }), Ac = (t) => (t.client ?? p).get({
3876
+ }), Bc = (t) => (t.client ?? p).get({
3793
3877
  requestValidator: async (t) => await e.object({
3794
3878
  body: e.never().optional(),
3795
3879
  path: e.never().optional(),
3796
- query: ms
3880
+ query: Ss
3797
3881
  }).parseAsync(t),
3798
- responseValidator: async (e) => await hs.parseAsync(e),
3882
+ responseValidator: async (e) => await Cs.parseAsync(e),
3799
3883
  url: "/api/v1/public/pro-formas",
3800
3884
  ...t
3801
- }), jc = (t) => (t?.client ?? p).get({
3885
+ }), Vc = (t) => (t?.client ?? p).get({
3802
3886
  requestValidator: async (t) => await e.object({
3803
3887
  body: e.never().optional(),
3804
3888
  path: e.never().optional(),
3805
3889
  query: e.never().optional()
3806
3890
  }).parseAsync(t),
3807
- responseValidator: async (e) => await gs.parseAsync(e),
3891
+ responseValidator: async (e) => await ws.parseAsync(e),
3808
3892
  url: "/api/v1/issuers/approval-reminder-configs",
3809
3893
  ...t
3810
- }), Mc = (t) => (t.client ?? p).patch({
3894
+ }), Hc = (t) => (t.client ?? p).patch({
3811
3895
  requestValidator: async (t) => await e.object({
3812
- body: _s,
3896
+ body: Ts,
3813
3897
  path: e.never().optional(),
3814
3898
  query: e.never().optional()
3815
3899
  }).parseAsync(t),
3816
- responseValidator: async (e) => await vs.parseAsync(e),
3900
+ responseValidator: async (e) => await Es.parseAsync(e),
3817
3901
  url: "/api/v1/issuers/approval-reminder-configs",
3818
3902
  ...t,
3819
3903
  headers: {
3820
3904
  "Content-Type": "application/json",
3821
3905
  ...t.headers
3822
3906
  }
3823
- }), Nc = (t) => (t?.client ?? p).get({
3907
+ }), Uc = (t) => (t?.client ?? p).get({
3824
3908
  requestValidator: async (t) => await e.object({
3825
3909
  body: e.never().optional(),
3826
3910
  path: e.never().optional(),
3827
3911
  query: e.never().optional()
3828
3912
  }).parseAsync(t),
3829
- responseValidator: async (e) => await ys.parseAsync(e),
3913
+ responseValidator: async (e) => await Ds.parseAsync(e),
3830
3914
  url: "/api/v1/issuers/peppol-connection",
3831
3915
  ...t
3832
- }), Pc = (t) => (t.client ?? p).put({
3916
+ }), Wc = (t) => (t.client ?? p).put({
3833
3917
  requestValidator: async (t) => await e.object({
3834
- body: bs,
3918
+ body: Os,
3835
3919
  path: e.never().optional(),
3836
3920
  query: e.never().optional()
3837
3921
  }).parseAsync(t),
@@ -3841,13 +3925,13 @@ var Ma = Xn, Na = e.object({ uuid: e.uuid() }), Pa = e.void(), Fa = Zn, Ia = e.o
3841
3925
  "Content-Type": "application/json",
3842
3926
  ...t.headers
3843
3927
  }
3844
- }), Fc = (t) => (t.client ?? p).post({
3928
+ }), Gc = (t) => (t.client ?? p).post({
3845
3929
  requestValidator: async (t) => await e.object({
3846
- body: xs,
3930
+ body: ks,
3847
3931
  path: e.never().optional(),
3848
3932
  query: e.never().optional()
3849
3933
  }).parseAsync(t),
3850
- responseValidator: async (e) => await Ss.parseAsync(e),
3934
+ responseValidator: async (e) => await As.parseAsync(e),
3851
3935
  url: "/api/v1/issuers/peppol-connection/test",
3852
3936
  ...t,
3853
3937
  headers: {
@@ -3857,19 +3941,19 @@ var Ma = Xn, Na = e.object({ uuid: e.uuid() }), Pa = e.void(), Fa = Zn, Ia = e.o
3857
3941
  });
3858
3942
  //#endregion
3859
3943
  //#region src/utils/api.util.ts
3860
- function Ic(e) {
3944
+ function Kc(e) {
3861
3945
  return typeof e == "object" && !!e && Array.isArray(e.errors);
3862
3946
  }
3863
- function Lc(e) {
3864
- return Ic(e) || e instanceof Error ? e : Error(String(e));
3947
+ function qc(e) {
3948
+ return Kc(e) || e instanceof Error ? e : Error(String(e));
3865
3949
  }
3866
- var Rc = class {
3950
+ var Jc = class {
3867
3951
  static async fromPromise(e) {
3868
- return await t.fromPromise(e, Lc);
3952
+ return await t.fromPromise(e, qc);
3869
3953
  }
3870
3954
  static void(e) {
3871
3955
  return e.isErr() ? n(e.error) : r();
3872
3956
  }
3873
3957
  };
3874
3958
  //#endregion
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 };
3959
+ export { wc as $, Ac as A, Gc as B, ac as C, hc as D, rc as E, _c as F, Js as G, Hc as H, Oc as I, zs as J, Ks as K, Dc as L, nc as M, Ic as N, pc as O, Rc as P, Vc as Q, Mc as R, cc as S, oc as T, Zs as U, sc as V, Qs as W, Cc as X, Wc as Y, vc as Z, xc as _, p as _t, mc as a, zc as at, $s as b, Pc as c, yc as ct, Ns as d, jc as dt, Is as et, Xs as f, Bs as ft, Us as g, fc as gt, bc as h, js as ht, gc as i, Ec as it, Nc as j, uc as k, tc as l, Rs as lt, Hs as m, Sc as mt, qs as n, Ls as nt, dc as o, Ws as ot, Ms as p, Bc as pt, Gs as q, Fc as r, Tc as rt, kc as s, Vs as st, Jc as t, Fs as tt, Lc as u, Uc as ut, Ps as v, lc as w, Ys as x, ic as y, ec as z };