@wisemen/wise-invoicing-web 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ApprovalReminderSettingsViewDataProvider-r9DcFi76.js → ApprovalReminderSettingsViewDataProvider-Dsp3ee3c.js} +4 -4
- package/dist/{BillingDocumentDetailViewDataProvider-CsqBeAiA.js → BillingDocumentDetailViewDataProvider-TX-tovKU.js} +1506 -1427
- package/dist/BillingDocumentDetailViewDataProvider.css +1 -1
- package/dist/{BillingDocumentPdf-thrvzGfh.js → BillingDocumentPdf-c-7N80u4.js} +5 -5
- package/dist/{CreditNoteDetailViewDataProvider-D6IMBwLn.js → CreditNoteDetailViewDataProvider-BNT0h67Q.js} +230 -223
- package/dist/{CreditNotePdfViewDataProvider-C4z1NE3Q.js → CreditNotePdfViewDataProvider-qgOuhUf_.js} +2 -2
- package/dist/{CustomFieldValueText-BRpCwCqJ.js → CustomFieldValueText-BP4bKQh7.js} +53 -38
- package/dist/{DunningCaseDetailViewDataProvider-DTotyRX8.js → DunningCaseDetailViewDataProvider-BNByfQTc.js} +13 -13
- package/dist/{DunningCaseOverviewView-kDq7UY5e.js → DunningCaseOverviewView-Dvwaw597.js} +23 -23
- package/dist/{DunningCaseReminderPdfViewDataProvider-DgKA-7lX.js → DunningCaseReminderPdfViewDataProvider-D1avIVyK.js} +1 -1
- package/dist/{DunningCaseSendDialog-DVfBVtgr.js → DunningCaseSendDialog-DwB_jFum.js} +8 -8
- package/dist/{InvoiceApprovalOutOfSyncIndicator-DPlrqqOs.js → InvoiceApprovalOutOfSyncIndicator-B_9HLzpt.js} +2 -2
- package/dist/{InvoiceApprovalOverviewView-B6naRElx.js → InvoiceApprovalOverviewView-jawT-M1t.js} +213 -213
- package/dist/{InvoiceApprovalStatusBadge-CDc_Pwsm.js → InvoiceApprovalStatusBadge-D6Sr6JmN.js} +4 -4
- package/dist/{InvoiceApproveDialogDataProvider-CK6ij8X1.js → InvoiceApproveDialogDataProvider-Bwb8bP1e.js} +16 -16
- package/dist/{InvoiceDetailViewDataProvider-BKurQPAV.js → InvoiceDetailViewDataProvider-B8mMYTQf.js} +592 -586
- package/dist/{InvoiceOverviewViewDataProvider-ChoyCi5L.js → InvoiceOverviewViewDataProvider-CLgV-Jcv.js} +440 -440
- package/dist/{InvoicePdfView-DLEKQ29O.js → InvoicePdfView-C518PlHp.js} +2 -2
- package/dist/{InvoicePdfViewDataProvider-C-b7iXiH.js → InvoicePdfViewDataProvider-ClfBkHUZ.js} +3 -3
- package/dist/{InvoicePublicPdfViewDataProvider-DZ4WQsvi.js → InvoicePublicPdfViewDataProvider-CoXBj3Je.js} +3 -3
- package/dist/{InvoicePublicProFormaPdfViewDataProvider-CsF8fPlp.js → InvoicePublicProFormaPdfViewDataProvider-WlVD7sw1.js} +3 -3
- package/dist/{InvoicingFileUploadProvider-t64Qiyn6.js → InvoicingFileUploadProvider-Dl1LvCPm.js} +2 -2
- package/dist/{IssuerSettingsViewDataProvider-Cc8R6ekd.js → IssuerSettingsViewDataProvider-CXyyCvoZ.js} +3 -3
- package/dist/{PeppolSettingsViewDataProvider-DpVIfFVG.js → PeppolSettingsViewDataProvider-Cptga29B.js} +2 -2
- package/dist/{ReminderSettingsViewDataProvider-QOh3LpMX.js → ReminderSettingsViewDataProvider-BZgzQIxM.js} +4 -4
- package/dist/{api.util-Do9BEwG4.js → api.util-CR2xLnNj.js} +536 -515
- package/dist/{billingDocumentDetail.transformer-BAOQ3Zrg.js → billingDocumentDetail.transformer-D1f6Nv-U.js} +8 -2
- package/dist/client/index.d.ts +1 -1
- package/dist/client/types.gen.d.ts +23 -17
- package/dist/client/zod.gen.d.ts +360 -0
- package/dist/composables/invoicingConfig.composable.d.ts +12 -0
- package/dist/{creditNoteDetail.query-C1rr54m1.js → creditNoteDetail.query-DGeG9_sO.js} +3 -3
- package/dist/{dist-DCbLgB6Y.js → dist-BMzyJZTx.js} +258 -114
- package/dist/{dist-CZAOPudv.js → dist-DALBiuub.js} +133 -133
- package/dist/{documentTitle.composable-C3k1m0Nz.js → documentTitle.composable-RvqrZTBa.js} +1 -1
- package/dist/{download.util-B5Q7KUC9.js → download.util-LyRpGWKA.js} +9 -0
- package/dist/{i18n.lib-Bkz_R954.js → i18n.lib-MOiHLIGc.js} +4 -0
- package/dist/index.d.ts +6 -2
- package/dist/index.js +219 -204
- package/dist/{invoice.service-DrI2ULIR.js → invoice.service-Fv4F4aZq.js} +3 -3
- package/dist/{invoiceApproval.service-Dpxiru7l.js → invoiceApproval.service-DJvXagC7.js} +2 -2
- package/dist/{invoiceApprovalStatus.util-CdOAcPzv.js → invoiceApprovalStatus.util-B98WeAf0.js} +2 -2
- package/dist/{invoiceCustomer.service-RRFosiYR.js → invoiceCustomer.service-CDyrtcwH.js} +2 -2
- package/dist/{invoiceDetail.query-BmtHdfj0.js → invoiceDetail.query-UHE0NCLh.js} +1 -1
- package/dist/{invoiceIndexCache.util-DKtJorc_.js → invoiceIndexCache.util-CLM7FO6z.js} +3 -3
- package/dist/{invoicingConfig.composable-CMTYHHS9.js → invoicingConfig.composable-UC7tGtBj.js} +14 -10
- package/dist/{issuerSettings.query-CKDhoStt.js → issuerSettings.query-CoiXblSm.js} +2 -2
- package/dist/libs/i18n.lib.d.ts +4 -0
- package/dist/locales/en-US.json.d.ts +2 -0
- package/dist/locales/nl-BE.json.d.ts +2 -0
- package/dist/modules/custom-field/components/CustomFieldList.vue.d.ts +0 -1
- package/dist/modules/custom-field/components/customFieldTypeIcon.d.ts +16 -0
- package/dist/modules/custom-field/components/customFieldValueText.spec.d.ts +1 -0
- package/dist/modules/custom-field/composables/customFieldReferenceLinks.composable.d.ts +16 -0
- package/dist/modules/custom-field/composables/customFieldReferenceLinks.composable.spec.d.ts +1 -0
- package/dist/modules/custom-field/models/custom-field-value/customFieldValue.model.d.ts +1 -1
- package/dist/modules/custom-field/models/custom-field-value/customFieldValue.util.d.ts +10 -0
- package/dist/modules/custom-field/test/builders/customFieldDefinition.builder.d.ts +1 -0
- package/dist/modules/invoice/use-cases/detail/composables/invoiceDetailPaymentsTableColumns.composable.d.ts +1 -1
- package/dist/{reminderConfig.query-yImUS5qt.js → reminderConfig.query-aRFzY6uZ.js} +2 -2
- package/dist/ui/billing-document/table/billingDocumentLineItemsTable.context.d.ts +114 -0
- package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsEditor.composable.d.ts +57 -36
- package/dist/ui/customer-invoice-list/composables/customerInvoiceTableColumns.composable.d.ts +6 -1
- package/dist/ui/customer-invoice-list/composables/customerInvoiceTableColumns.composable.spec.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1226,6 +1226,10 @@ var w = e.object({
|
|
|
1226
1226
|
definitionUuid: e.uuid(),
|
|
1227
1227
|
type: e.enum(["monetary"]),
|
|
1228
1228
|
value: x
|
|
1229
|
+
}), N = e.object({
|
|
1230
|
+
definitionUuid: e.uuid(),
|
|
1231
|
+
type: e.enum(["reference"]),
|
|
1232
|
+
value: e.string()
|
|
1229
1233
|
}), Ut = e.enum(["standard", "credit_note"]), Wt = e.object({
|
|
1230
1234
|
uuid: e.uuid(),
|
|
1231
1235
|
name: e.string().nullable(),
|
|
@@ -1248,14 +1252,14 @@ var w = e.object({
|
|
|
1248
1252
|
address: C.nullable(),
|
|
1249
1253
|
vatNumber: e.string().nullable(),
|
|
1250
1254
|
type: v
|
|
1251
|
-
}),
|
|
1255
|
+
}), P = e.enum([
|
|
1252
1256
|
"draft",
|
|
1253
1257
|
"ready",
|
|
1254
1258
|
"finalized"
|
|
1255
1259
|
]), qt = e.object({
|
|
1256
1260
|
locale: e.string(),
|
|
1257
1261
|
value: e.string()
|
|
1258
|
-
}),
|
|
1262
|
+
}), F = e.object({ items: e.array(qt) }), Jt = e.enum([
|
|
1259
1263
|
"text",
|
|
1260
1264
|
"text_array",
|
|
1261
1265
|
"number",
|
|
@@ -1264,10 +1268,11 @@ var w = e.object({
|
|
|
1264
1268
|
"date",
|
|
1265
1269
|
"single_select",
|
|
1266
1270
|
"multi_select",
|
|
1267
|
-
"monetary"
|
|
1271
|
+
"monetary",
|
|
1272
|
+
"reference"
|
|
1268
1273
|
]), Yt = e.object({
|
|
1269
1274
|
value: e.string(),
|
|
1270
|
-
label:
|
|
1275
|
+
label: F,
|
|
1271
1276
|
order: e.number()
|
|
1272
1277
|
}), Xt = e.object({
|
|
1273
1278
|
key: e.string(),
|
|
@@ -1277,19 +1282,19 @@ var w = e.object({
|
|
|
1277
1282
|
tenantUuid: e.uuid().nullable(),
|
|
1278
1283
|
entityType: e.string(),
|
|
1279
1284
|
key: e.string(),
|
|
1280
|
-
label:
|
|
1281
|
-
description:
|
|
1285
|
+
label: F,
|
|
1286
|
+
description: F.nullable(),
|
|
1282
1287
|
type: Jt,
|
|
1283
1288
|
isRequired: e.boolean(),
|
|
1284
1289
|
choices: e.array(Yt).nullable(),
|
|
1285
1290
|
rules: e.record(e.string(), e.unknown()).nullable(),
|
|
1286
1291
|
views: e.array(Xt)
|
|
1287
|
-
}),
|
|
1292
|
+
}), I = e.enum([
|
|
1288
1293
|
"0",
|
|
1289
1294
|
"6",
|
|
1290
1295
|
"12",
|
|
1291
1296
|
"21"
|
|
1292
|
-
]), Qt = e.enum(["percentage", "amount"]),
|
|
1297
|
+
]), Qt = e.enum(["percentage", "amount"]), L = e.object({
|
|
1293
1298
|
type: Qt,
|
|
1294
1299
|
amount: x.nullable(),
|
|
1295
1300
|
percentage: e.number().nullable(),
|
|
@@ -1319,15 +1324,16 @@ var w = e.object({
|
|
|
1319
1324
|
k,
|
|
1320
1325
|
A,
|
|
1321
1326
|
j,
|
|
1322
|
-
M
|
|
1327
|
+
M,
|
|
1328
|
+
N
|
|
1323
1329
|
])),
|
|
1324
1330
|
quantity: e.number(),
|
|
1325
1331
|
unitPrice: x,
|
|
1326
|
-
vatRate:
|
|
1332
|
+
vatRate: I,
|
|
1327
1333
|
vatRatePercentage: e.number(),
|
|
1328
1334
|
netAmount: x,
|
|
1329
1335
|
grossAmount: x,
|
|
1330
|
-
discount:
|
|
1336
|
+
discount: L.nullable(),
|
|
1331
1337
|
unit: $t,
|
|
1332
1338
|
isDiscount: e.boolean()
|
|
1333
1339
|
}), tn = e.object({
|
|
@@ -1344,12 +1350,13 @@ var w = e.object({
|
|
|
1344
1350
|
k,
|
|
1345
1351
|
A,
|
|
1346
1352
|
j,
|
|
1347
|
-
M
|
|
1353
|
+
M,
|
|
1354
|
+
N
|
|
1348
1355
|
])),
|
|
1349
1356
|
lines: e.array(en),
|
|
1350
1357
|
groups: e.array(e.lazy(() => tn))
|
|
1351
1358
|
}), nn = e.object({
|
|
1352
|
-
vatRate:
|
|
1359
|
+
vatRate: I,
|
|
1353
1360
|
netAmount: x,
|
|
1354
1361
|
vatAmount: x
|
|
1355
1362
|
}), rn = e.object({
|
|
@@ -1376,7 +1383,7 @@ var w = e.object({
|
|
|
1376
1383
|
recipient: Gt.nullable(),
|
|
1377
1384
|
customer: Kt,
|
|
1378
1385
|
status: y,
|
|
1379
|
-
lifecycleStatus:
|
|
1386
|
+
lifecycleStatus: P,
|
|
1380
1387
|
paymentReference: e.string().nullable(),
|
|
1381
1388
|
subject: e.string().nullable(),
|
|
1382
1389
|
poNumber: e.string().nullable(),
|
|
@@ -1389,7 +1396,8 @@ var w = e.object({
|
|
|
1389
1396
|
k,
|
|
1390
1397
|
A,
|
|
1391
1398
|
j,
|
|
1392
|
-
M
|
|
1399
|
+
M,
|
|
1400
|
+
N
|
|
1393
1401
|
])),
|
|
1394
1402
|
customFieldDefinitions: e.array(Zt),
|
|
1395
1403
|
ungroupedLines: e.array(en),
|
|
@@ -1400,7 +1408,7 @@ var w = e.object({
|
|
|
1400
1408
|
effectiveNet: x,
|
|
1401
1409
|
vatAmount: x,
|
|
1402
1410
|
totalDiscountAmount: x.nullable(),
|
|
1403
|
-
globalDiscount:
|
|
1411
|
+
globalDiscount: L.nullable(),
|
|
1404
1412
|
advancePaymentAmount: x.nullable(),
|
|
1405
1413
|
amountDue: x,
|
|
1406
1414
|
originalInvoice: rn.nullable(),
|
|
@@ -1450,15 +1458,16 @@ var w = e.object({
|
|
|
1450
1458
|
k,
|
|
1451
1459
|
A,
|
|
1452
1460
|
j,
|
|
1453
|
-
M
|
|
1461
|
+
M,
|
|
1462
|
+
N
|
|
1454
1463
|
])),
|
|
1455
1464
|
quantity: e.number(),
|
|
1456
1465
|
unitPrice: x,
|
|
1457
|
-
vatRate:
|
|
1466
|
+
vatRate: I,
|
|
1458
1467
|
vatRatePercentage: e.number(),
|
|
1459
1468
|
netAmount: x,
|
|
1460
1469
|
grossAmount: x,
|
|
1461
|
-
discount:
|
|
1470
|
+
discount: L.nullable(),
|
|
1462
1471
|
unit: $t,
|
|
1463
1472
|
isDiscount: e.boolean(),
|
|
1464
1473
|
originalLine: fn.nullable()
|
|
@@ -1476,20 +1485,21 @@ var w = e.object({
|
|
|
1476
1485
|
k,
|
|
1477
1486
|
A,
|
|
1478
1487
|
j,
|
|
1479
|
-
M
|
|
1488
|
+
M,
|
|
1489
|
+
N
|
|
1480
1490
|
])),
|
|
1481
1491
|
lines: e.array(pn),
|
|
1482
1492
|
groups: e.array(e.lazy(() => mn))
|
|
1483
1493
|
}), hn = e.object({
|
|
1484
|
-
vatRate:
|
|
1494
|
+
vatRate: I,
|
|
1485
1495
|
netAmount: x,
|
|
1486
1496
|
vatAmount: x
|
|
1487
|
-
}),
|
|
1497
|
+
}), gn = e.object({
|
|
1488
1498
|
uuid: e.uuid(),
|
|
1489
1499
|
name: e.string(),
|
|
1490
1500
|
mimeType: Ae,
|
|
1491
1501
|
blurHash: e.string().nullable()
|
|
1492
|
-
}),
|
|
1502
|
+
}), _n = e.object({
|
|
1493
1503
|
uuid: e.uuid(),
|
|
1494
1504
|
createdAt: e.iso.datetime(),
|
|
1495
1505
|
status: y,
|
|
@@ -1499,15 +1509,15 @@ var w = e.object({
|
|
|
1499
1509
|
paidAmount: x.nullable(),
|
|
1500
1510
|
balanceDueAmount: x.nullable(),
|
|
1501
1511
|
creditableAmount: x.nullable()
|
|
1502
|
-
}),
|
|
1512
|
+
}), vn = e.object({
|
|
1503
1513
|
uuid: e.string(),
|
|
1504
1514
|
firstName: e.string().nullable(),
|
|
1505
1515
|
lastName: e.string().nullable()
|
|
1506
|
-
}),
|
|
1516
|
+
}), yn = e.enum(["user", "service_user"]), bn = e.object({
|
|
1507
1517
|
uuid: e.uuid(),
|
|
1508
1518
|
firstName: e.string().nullable(),
|
|
1509
1519
|
lastName: e.string().nullable(),
|
|
1510
|
-
type:
|
|
1520
|
+
type: yn
|
|
1511
1521
|
}), R = e.enum([
|
|
1512
1522
|
"unpaid",
|
|
1513
1523
|
"partially_paid",
|
|
@@ -1515,20 +1525,20 @@ var w = e.object({
|
|
|
1515
1525
|
"overpaid",
|
|
1516
1526
|
"credited",
|
|
1517
1527
|
"settled"
|
|
1518
|
-
]),
|
|
1528
|
+
]), xn = e.object({
|
|
1519
1529
|
uuid: e.uuid(),
|
|
1520
1530
|
sentAt: e.iso.datetime()
|
|
1521
|
-
}),
|
|
1531
|
+
}), Sn = e.enum(["after_last_reminder", "after_due_date"]), Cn = e.object({
|
|
1522
1532
|
uuid: e.uuid(),
|
|
1523
1533
|
sequence: e.number(),
|
|
1524
|
-
schedule:
|
|
1534
|
+
schedule: Sn,
|
|
1525
1535
|
offsetDays: e.number()
|
|
1526
|
-
}),
|
|
1536
|
+
}), wn = e.enum([
|
|
1527
1537
|
"approved",
|
|
1528
1538
|
"rejected",
|
|
1529
1539
|
"requested",
|
|
1530
1540
|
"expired"
|
|
1531
|
-
]),
|
|
1541
|
+
]), Tn = e.enum([
|
|
1532
1542
|
"incorrect_price",
|
|
1533
1543
|
"incorrect_quantity",
|
|
1534
1544
|
"incorrect_customer_or_reference_data",
|
|
@@ -1536,20 +1546,20 @@ var w = e.object({
|
|
|
1536
1546
|
"missing_or_incorrect_attachment",
|
|
1537
1547
|
"missing_or_incorrect_po_reference",
|
|
1538
1548
|
"other"
|
|
1539
|
-
]), z = e.union([e.literal(1), e.literal(2)]),
|
|
1549
|
+
]), z = e.union([e.literal(1), e.literal(2)]), En = e.object({
|
|
1540
1550
|
uuid: e.uuid(),
|
|
1541
1551
|
sentAt: e.string().nullable(),
|
|
1542
|
-
status:
|
|
1552
|
+
status: wn,
|
|
1543
1553
|
answeredAt: e.string().nullable(),
|
|
1544
1554
|
customerRemark: e.string().nullable(),
|
|
1545
|
-
proFormaFile:
|
|
1546
|
-
approvalProofs: e.array(
|
|
1555
|
+
proFormaFile: gn.nullable(),
|
|
1556
|
+
approvalProofs: e.array(gn),
|
|
1547
1557
|
isActive: e.boolean(),
|
|
1548
1558
|
remarks: e.string().nullable(),
|
|
1549
|
-
rejectionReason:
|
|
1559
|
+
rejectionReason: Tn.nullable(),
|
|
1550
1560
|
level: z.nullable(),
|
|
1551
1561
|
reminderSentAt: e.iso.datetime().nullable()
|
|
1552
|
-
}),
|
|
1562
|
+
}), Dn = e.object({
|
|
1553
1563
|
uuid: e.uuid(),
|
|
1554
1564
|
sequence: e.string().nullable(),
|
|
1555
1565
|
type: Ut,
|
|
@@ -1562,7 +1572,7 @@ var w = e.object({
|
|
|
1562
1572
|
recipient: un.nullable(),
|
|
1563
1573
|
customer: dn,
|
|
1564
1574
|
status: y,
|
|
1565
|
-
lifecycleStatus:
|
|
1575
|
+
lifecycleStatus: P,
|
|
1566
1576
|
paymentReference: e.string().nullable(),
|
|
1567
1577
|
subject: e.string().nullable(),
|
|
1568
1578
|
poNumber: e.string().nullable(),
|
|
@@ -1575,7 +1585,8 @@ var w = e.object({
|
|
|
1575
1585
|
k,
|
|
1576
1586
|
A,
|
|
1577
1587
|
j,
|
|
1578
|
-
M
|
|
1588
|
+
M,
|
|
1589
|
+
N
|
|
1579
1590
|
])),
|
|
1580
1591
|
ungroupedLines: e.array(pn),
|
|
1581
1592
|
groups: e.array(mn),
|
|
@@ -1585,15 +1596,15 @@ var w = e.object({
|
|
|
1585
1596
|
effectiveNet: x,
|
|
1586
1597
|
vatAmount: x,
|
|
1587
1598
|
totalDiscountAmount: x.nullable(),
|
|
1588
|
-
globalDiscount:
|
|
1589
|
-
attachments: e.array(
|
|
1590
|
-
approvalProofs: e.array(
|
|
1591
|
-
rejectionFiles: e.array(
|
|
1592
|
-
creditNotes: e.array(
|
|
1593
|
-
originalInvoice:
|
|
1594
|
-
preparedBy:
|
|
1595
|
-
lastUpdatedBy:
|
|
1596
|
-
file:
|
|
1599
|
+
globalDiscount: L.nullable(),
|
|
1600
|
+
attachments: e.array(gn),
|
|
1601
|
+
approvalProofs: e.array(gn),
|
|
1602
|
+
rejectionFiles: e.array(gn),
|
|
1603
|
+
creditNotes: e.array(_n),
|
|
1604
|
+
originalInvoice: _n.nullable(),
|
|
1605
|
+
preparedBy: vn,
|
|
1606
|
+
lastUpdatedBy: bn.nullable(),
|
|
1607
|
+
file: gn.nullable(),
|
|
1597
1608
|
externalRemarks: e.string().nullable(),
|
|
1598
1609
|
paidAmount: x.nullable(),
|
|
1599
1610
|
settlementStatus: R,
|
|
@@ -1604,19 +1615,19 @@ var w = e.object({
|
|
|
1604
1615
|
deliveryStatus: an,
|
|
1605
1616
|
isDisputed: e.boolean(),
|
|
1606
1617
|
isOverdue: e.boolean(),
|
|
1607
|
-
reminders: e.array(
|
|
1608
|
-
reminderConfigs: e.array(
|
|
1618
|
+
reminders: e.array(xn),
|
|
1619
|
+
reminderConfigs: e.array(Cn),
|
|
1609
1620
|
requiresPriorApproval: e.boolean(),
|
|
1610
|
-
approval: e.array(
|
|
1621
|
+
approval: e.array(En),
|
|
1611
1622
|
hasChangesSinceApprovalSent: e.boolean()
|
|
1612
|
-
}),
|
|
1623
|
+
}), On = e.enum([
|
|
1613
1624
|
"created_at",
|
|
1614
1625
|
"issued_on",
|
|
1615
1626
|
"sequence",
|
|
1616
1627
|
"customer",
|
|
1617
1628
|
"netAmount"
|
|
1618
|
-
]),
|
|
1619
|
-
key:
|
|
1629
|
+
]), kn = e.object({
|
|
1630
|
+
key: On,
|
|
1620
1631
|
order: vt
|
|
1621
1632
|
}), B = e.object({
|
|
1622
1633
|
definitionUuid: e.uuid(),
|
|
@@ -1665,8 +1676,8 @@ var w = e.object({
|
|
|
1665
1676
|
e.enum(["infinity"]),
|
|
1666
1677
|
e.enum(["-infinity"])
|
|
1667
1678
|
])
|
|
1668
|
-
}),
|
|
1669
|
-
scope:
|
|
1679
|
+
}), An = e.enum(["include", "exclude"]), X = e.object({
|
|
1680
|
+
scope: An,
|
|
1670
1681
|
values: e.array(e.uuid())
|
|
1671
1682
|
}), Z = e.enum([
|
|
1672
1683
|
"no_approval_required",
|
|
@@ -1676,9 +1687,9 @@ var w = e.object({
|
|
|
1676
1687
|
"approved",
|
|
1677
1688
|
"rejected",
|
|
1678
1689
|
"expired"
|
|
1679
|
-
]),
|
|
1690
|
+
]), jn = e.object({
|
|
1680
1691
|
statuses: e.array(y).optional(),
|
|
1681
|
-
lifecycleStatuses: e.array(
|
|
1692
|
+
lifecycleStatuses: e.array(P).optional(),
|
|
1682
1693
|
customerUuids: e.array(e.uuid()).optional(),
|
|
1683
1694
|
dueOnRange: Y.optional(),
|
|
1684
1695
|
issuedOnRange: Y.optional(),
|
|
@@ -1702,25 +1713,25 @@ var w = e.object({
|
|
|
1702
1713
|
hasChangesSinceApprovalSent: e.boolean().optional(),
|
|
1703
1714
|
approvalStatuses: e.array(Z).optional(),
|
|
1704
1715
|
isApprovalCancelled: e.boolean().optional()
|
|
1705
|
-
}),
|
|
1716
|
+
}), Mn = e.object({
|
|
1706
1717
|
uuid: e.uuid(),
|
|
1707
1718
|
externalId: e.string().nullable(),
|
|
1708
1719
|
name: e.string()
|
|
1709
|
-
}),
|
|
1710
|
-
status:
|
|
1720
|
+
}), Nn = e.object({
|
|
1721
|
+
status: wn,
|
|
1711
1722
|
level: z.nullable(),
|
|
1712
1723
|
sentAt: e.iso.datetime().nullable(),
|
|
1713
1724
|
reminderSentAt: e.iso.datetime().nullable()
|
|
1714
|
-
}),
|
|
1725
|
+
}), Pn = e.object({
|
|
1715
1726
|
uuid: e.uuid(),
|
|
1716
1727
|
type: Ut,
|
|
1717
1728
|
createdAt: e.iso.datetime(),
|
|
1718
1729
|
issuedOn: e.iso.date().nullable(),
|
|
1719
1730
|
dueOn: e.iso.date().nullable(),
|
|
1720
1731
|
subject: e.string().nullable(),
|
|
1721
|
-
customer:
|
|
1732
|
+
customer: Mn,
|
|
1722
1733
|
status: y,
|
|
1723
|
-
lifecycleStatus:
|
|
1734
|
+
lifecycleStatus: P,
|
|
1724
1735
|
netAmount: x,
|
|
1725
1736
|
grossAmount: x,
|
|
1726
1737
|
sequence: e.string().nullable(),
|
|
@@ -1740,13 +1751,14 @@ var w = e.object({
|
|
|
1740
1751
|
k,
|
|
1741
1752
|
A,
|
|
1742
1753
|
j,
|
|
1743
|
-
M
|
|
1754
|
+
M,
|
|
1755
|
+
N
|
|
1744
1756
|
])),
|
|
1745
1757
|
requiresPriorApproval: e.boolean(),
|
|
1746
1758
|
hasChangesSinceApprovalSent: e.boolean(),
|
|
1747
|
-
approval:
|
|
1748
|
-
}),
|
|
1749
|
-
items: e.array(
|
|
1759
|
+
approval: Nn.nullable()
|
|
1760
|
+
}), Fn = e.object({
|
|
1761
|
+
items: e.array(Pn),
|
|
1750
1762
|
meta: g
|
|
1751
1763
|
});
|
|
1752
1764
|
e.object({
|
|
@@ -1762,7 +1774,7 @@ e.object({
|
|
|
1762
1774
|
status: e.enum(["409"]),
|
|
1763
1775
|
code: e.enum(["can_not_change_invoice_customer_with_approval_created"])
|
|
1764
1776
|
});
|
|
1765
|
-
var
|
|
1777
|
+
var In = e.object({
|
|
1766
1778
|
issuedOn: e.iso.date(),
|
|
1767
1779
|
deliveredOn: e.iso.date().nullable(),
|
|
1768
1780
|
dueOn: e.iso.date(),
|
|
@@ -1781,7 +1793,8 @@ var Fn = e.object({
|
|
|
1781
1793
|
k,
|
|
1782
1794
|
A,
|
|
1783
1795
|
j,
|
|
1784
|
-
M
|
|
1796
|
+
M,
|
|
1797
|
+
N
|
|
1785
1798
|
])).optional()
|
|
1786
1799
|
});
|
|
1787
1800
|
e.object({
|
|
@@ -1805,14 +1818,14 @@ e.object({
|
|
|
1805
1818
|
status: e.enum(["400"]),
|
|
1806
1819
|
code: e.enum(["invoice_line_group_max_depth_exceeded"])
|
|
1807
1820
|
});
|
|
1808
|
-
var
|
|
1821
|
+
var Ln = e.object({
|
|
1809
1822
|
name: e.string(),
|
|
1810
1823
|
description: e.string().nullable(),
|
|
1811
1824
|
position: e.int(),
|
|
1812
1825
|
quantity: e.number().lte(1e4),
|
|
1813
1826
|
unitPrice: x,
|
|
1814
|
-
vatRate:
|
|
1815
|
-
discount:
|
|
1827
|
+
vatRate: I,
|
|
1828
|
+
discount: L.nullable(),
|
|
1816
1829
|
unit: $t,
|
|
1817
1830
|
isDiscount: e.boolean(),
|
|
1818
1831
|
customFields: e.array(e.union([
|
|
@@ -1824,13 +1837,14 @@ var In = e.object({
|
|
|
1824
1837
|
k,
|
|
1825
1838
|
A,
|
|
1826
1839
|
j,
|
|
1827
|
-
M
|
|
1840
|
+
M,
|
|
1841
|
+
N
|
|
1828
1842
|
])).optional()
|
|
1829
|
-
}),
|
|
1843
|
+
}), Rn = e.object({
|
|
1830
1844
|
name: e.string(),
|
|
1831
1845
|
description: e.string().nullable(),
|
|
1832
1846
|
position: e.int(),
|
|
1833
|
-
lines: e.array(
|
|
1847
|
+
lines: e.array(Ln),
|
|
1834
1848
|
customFields: e.array(e.union([
|
|
1835
1849
|
w,
|
|
1836
1850
|
T,
|
|
@@ -1840,25 +1854,26 @@ var In = e.object({
|
|
|
1840
1854
|
k,
|
|
1841
1855
|
A,
|
|
1842
1856
|
j,
|
|
1843
|
-
M
|
|
1857
|
+
M,
|
|
1858
|
+
N
|
|
1844
1859
|
])).optional(),
|
|
1845
|
-
groups: e.array(e.lazy(() =>
|
|
1846
|
-
}),
|
|
1847
|
-
groups: e.array(
|
|
1848
|
-
ungroupedLines: e.array(
|
|
1860
|
+
groups: e.array(e.lazy(() => Rn)).optional()
|
|
1861
|
+
}), zn = e.object({
|
|
1862
|
+
groups: e.array(Rn),
|
|
1863
|
+
ungroupedLines: e.array(Ln)
|
|
1849
1864
|
});
|
|
1850
1865
|
e.object({
|
|
1851
1866
|
detail: e.string().optional(),
|
|
1852
1867
|
status: e.enum(["409"]),
|
|
1853
1868
|
code: e.enum(["global_discount_exceeds_total_net"])
|
|
1854
|
-
}), e.object({ discount:
|
|
1855
|
-
var
|
|
1869
|
+
}), e.object({ discount: L.nullable() });
|
|
1870
|
+
var Bn = e.object({ discount: L });
|
|
1856
1871
|
e.object({
|
|
1857
1872
|
detail: e.string().optional(),
|
|
1858
1873
|
status: e.enum(["409"]),
|
|
1859
1874
|
code: e.enum(["file_unconfirmed"])
|
|
1860
1875
|
});
|
|
1861
|
-
var
|
|
1876
|
+
var Vn = e.object({ fileUuids: e.array(e.uuid()) });
|
|
1862
1877
|
e.object({
|
|
1863
1878
|
detail: e.string().optional(),
|
|
1864
1879
|
status: e.enum(["404"]),
|
|
@@ -1872,15 +1887,15 @@ e.object({
|
|
|
1872
1887
|
status: e.enum(["409"]),
|
|
1873
1888
|
code: e.enum(["invoice_already_finalized"])
|
|
1874
1889
|
});
|
|
1875
|
-
var
|
|
1876
|
-
approvalStatus:
|
|
1890
|
+
var Hn = e.object({
|
|
1891
|
+
approvalStatus: wn.nullable(),
|
|
1877
1892
|
level: z.nullable()
|
|
1878
1893
|
});
|
|
1879
1894
|
e.object({
|
|
1880
1895
|
detail: e.string().optional(),
|
|
1881
1896
|
status: e.enum(["409"]),
|
|
1882
1897
|
code: e.enum(["invoice_finalization_requires_approval"]),
|
|
1883
|
-
meta:
|
|
1898
|
+
meta: Hn
|
|
1884
1899
|
}), e.object({
|
|
1885
1900
|
detail: e.string().optional(),
|
|
1886
1901
|
status: e.enum(["409"]),
|
|
@@ -1894,20 +1909,20 @@ e.object({
|
|
|
1894
1909
|
status: e.enum(["409"]),
|
|
1895
1910
|
code: e.enum(["credit_note_settled"])
|
|
1896
1911
|
});
|
|
1897
|
-
var
|
|
1912
|
+
var Un = e.object({ uuid: e.uuid() });
|
|
1898
1913
|
e.object({
|
|
1899
1914
|
detail: e.string().optional(),
|
|
1900
1915
|
status: e.enum(["409"]),
|
|
1901
1916
|
code: e.enum(["invoice_not_credit_note"])
|
|
1902
1917
|
});
|
|
1903
|
-
var
|
|
1918
|
+
var Wn = e.object({
|
|
1904
1919
|
name: e.string(),
|
|
1905
1920
|
description: e.string().nullable(),
|
|
1906
1921
|
position: e.int(),
|
|
1907
1922
|
quantity: e.number().lte(1e4),
|
|
1908
1923
|
unitPrice: x,
|
|
1909
|
-
vatRate:
|
|
1910
|
-
discount:
|
|
1924
|
+
vatRate: I,
|
|
1925
|
+
discount: L.nullable(),
|
|
1911
1926
|
unit: $t,
|
|
1912
1927
|
isDiscount: e.boolean(),
|
|
1913
1928
|
customFields: e.array(e.union([
|
|
@@ -1919,13 +1934,14 @@ var Un = e.object({
|
|
|
1919
1934
|
k,
|
|
1920
1935
|
A,
|
|
1921
1936
|
j,
|
|
1922
|
-
M
|
|
1937
|
+
M,
|
|
1938
|
+
N
|
|
1923
1939
|
])).optional()
|
|
1924
|
-
}),
|
|
1940
|
+
}), Gn = e.object({
|
|
1925
1941
|
name: e.string(),
|
|
1926
1942
|
description: e.string().nullable(),
|
|
1927
1943
|
position: e.int(),
|
|
1928
|
-
lines: e.array(
|
|
1944
|
+
lines: e.array(Wn),
|
|
1929
1945
|
customFields: e.array(e.union([
|
|
1930
1946
|
w,
|
|
1931
1947
|
T,
|
|
@@ -1935,13 +1951,14 @@ var Un = e.object({
|
|
|
1935
1951
|
k,
|
|
1936
1952
|
A,
|
|
1937
1953
|
j,
|
|
1938
|
-
M
|
|
1954
|
+
M,
|
|
1955
|
+
N
|
|
1939
1956
|
])).optional(),
|
|
1940
|
-
groups: e.array(e.lazy(() =>
|
|
1941
|
-
}), Gn = e.object({
|
|
1942
|
-
groups: e.array(Wn),
|
|
1943
|
-
ungroupedLines: e.array(Un)
|
|
1957
|
+
groups: e.array(e.lazy(() => Gn)).optional()
|
|
1944
1958
|
}), Kn = e.object({
|
|
1959
|
+
groups: e.array(Gn),
|
|
1960
|
+
ungroupedLines: e.array(Wn)
|
|
1961
|
+
}), qn = e.object({
|
|
1945
1962
|
issuedOn: e.iso.date(),
|
|
1946
1963
|
poNumber: e.string().nullable(),
|
|
1947
1964
|
subject: e.string().nullable(),
|
|
@@ -1957,7 +1974,8 @@ var Un = e.object({
|
|
|
1957
1974
|
k,
|
|
1958
1975
|
A,
|
|
1959
1976
|
j,
|
|
1960
|
-
M
|
|
1977
|
+
M,
|
|
1978
|
+
N
|
|
1961
1979
|
])).optional()
|
|
1962
1980
|
});
|
|
1963
1981
|
e.object({
|
|
@@ -1989,9 +2007,9 @@ e.object({
|
|
|
1989
2007
|
status: e.enum(["503"]),
|
|
1990
2008
|
code: e.enum(["mail_unavailable"])
|
|
1991
2009
|
});
|
|
1992
|
-
var
|
|
2010
|
+
var Jn = e.object({
|
|
1993
2011
|
statuses: e.array(y).optional(),
|
|
1994
|
-
lifecycleStatuses: e.array(
|
|
2012
|
+
lifecycleStatuses: e.array(P).optional(),
|
|
1995
2013
|
customerUuids: e.array(e.uuid()).optional(),
|
|
1996
2014
|
dueOnRange: Y.optional(),
|
|
1997
2015
|
issuedOnRange: Y.optional(),
|
|
@@ -2019,26 +2037,26 @@ var qn = e.object({
|
|
|
2019
2037
|
total: e.number(),
|
|
2020
2038
|
processed: e.number(),
|
|
2021
2039
|
skipped: e.number()
|
|
2022
|
-
}),
|
|
2040
|
+
}), Yn = e.object({ pointer: e.string() }), Xn = e.object({
|
|
2023
2041
|
code: e.string(),
|
|
2024
2042
|
detail: e.string().optional(),
|
|
2025
2043
|
title: e.string().optional(),
|
|
2026
2044
|
id: e.string().optional(),
|
|
2027
2045
|
status: e.string().optional(),
|
|
2028
|
-
source:
|
|
2046
|
+
source: Yn.optional(),
|
|
2029
2047
|
meta: e.record(e.string(), e.unknown()).optional()
|
|
2030
|
-
}),
|
|
2048
|
+
}), Zn = e.object({
|
|
2031
2049
|
status: e.number(),
|
|
2032
|
-
errors: e.array(
|
|
2050
|
+
errors: e.array(Xn)
|
|
2033
2051
|
}), $ = e.object({
|
|
2034
2052
|
uuid: e.string(),
|
|
2035
|
-
errors: e.array(
|
|
2036
|
-
}),
|
|
2053
|
+
errors: e.array(Zn)
|
|
2054
|
+
}), Qn = e.object({
|
|
2037
2055
|
meta: Q,
|
|
2038
2056
|
skipped: e.array($)
|
|
2039
|
-
}),
|
|
2057
|
+
}), $n = e.object({
|
|
2040
2058
|
statuses: e.array(y).optional(),
|
|
2041
|
-
lifecycleStatuses: e.array(
|
|
2059
|
+
lifecycleStatuses: e.array(P).optional(),
|
|
2042
2060
|
customerUuids: e.array(e.uuid()).optional(),
|
|
2043
2061
|
dueOnRange: Y.optional(),
|
|
2044
2062
|
issuedOnRange: Y.optional(),
|
|
@@ -2062,7 +2080,7 @@ var qn = e.object({
|
|
|
2062
2080
|
hasChangesSinceApprovalSent: e.boolean().optional(),
|
|
2063
2081
|
approvalStatuses: e.array(Z).optional(),
|
|
2064
2082
|
isApprovalCancelled: e.boolean().optional()
|
|
2065
|
-
}),
|
|
2083
|
+
}), er = e.object({
|
|
2066
2084
|
meta: Q,
|
|
2067
2085
|
skipped: e.array($)
|
|
2068
2086
|
});
|
|
@@ -2079,7 +2097,7 @@ e.object({
|
|
|
2079
2097
|
status: e.enum(["409"]),
|
|
2080
2098
|
code: e.enum(["delete_invoice_with_approval"])
|
|
2081
2099
|
});
|
|
2082
|
-
var
|
|
2100
|
+
var tr = e.object({ uuid: e.uuid() });
|
|
2083
2101
|
e.object({
|
|
2084
2102
|
detail: e.string().optional(),
|
|
2085
2103
|
status: e.enum(["409"]),
|
|
@@ -2093,9 +2111,9 @@ e.object({
|
|
|
2093
2111
|
status: e.enum(["409"]),
|
|
2094
2112
|
code: e.enum(["invoice_status_not_eligible_for_paid"])
|
|
2095
2113
|
});
|
|
2096
|
-
var
|
|
2114
|
+
var nr = e.object({
|
|
2097
2115
|
statuses: e.array(y).optional(),
|
|
2098
|
-
lifecycleStatuses: e.array(
|
|
2116
|
+
lifecycleStatuses: e.array(P).optional(),
|
|
2099
2117
|
customerUuids: e.array(e.uuid()).optional(),
|
|
2100
2118
|
dueOnRange: Y.optional(),
|
|
2101
2119
|
issuedOnRange: Y.optional(),
|
|
@@ -2119,12 +2137,12 @@ var tr = e.object({
|
|
|
2119
2137
|
hasChangesSinceApprovalSent: e.boolean().optional(),
|
|
2120
2138
|
approvalStatuses: e.array(Z).optional(),
|
|
2121
2139
|
isApprovalCancelled: e.boolean().optional()
|
|
2122
|
-
}),
|
|
2140
|
+
}), rr = e.object({
|
|
2123
2141
|
meta: Q,
|
|
2124
2142
|
skipped: e.array($)
|
|
2125
|
-
}),
|
|
2143
|
+
}), ir = e.object({
|
|
2126
2144
|
statuses: e.array(y).optional(),
|
|
2127
|
-
lifecycleStatuses: e.array(
|
|
2145
|
+
lifecycleStatuses: e.array(P).optional(),
|
|
2128
2146
|
customerUuids: e.array(e.uuid()).optional(),
|
|
2129
2147
|
dueOnRange: Y.optional(),
|
|
2130
2148
|
issuedOnRange: Y.optional(),
|
|
@@ -2148,7 +2166,7 @@ var tr = e.object({
|
|
|
2148
2166
|
hasChangesSinceApprovalSent: e.boolean().optional(),
|
|
2149
2167
|
approvalStatuses: e.array(Z).optional(),
|
|
2150
2168
|
isApprovalCancelled: e.boolean().optional()
|
|
2151
|
-
}),
|
|
2169
|
+
}), ar = e.object({
|
|
2152
2170
|
meta: Q,
|
|
2153
2171
|
skipped: e.array($)
|
|
2154
2172
|
});
|
|
@@ -2157,9 +2175,9 @@ e.object({
|
|
|
2157
2175
|
status: e.enum(["409"]),
|
|
2158
2176
|
code: e.enum(["invoice_not_disputed"])
|
|
2159
2177
|
});
|
|
2160
|
-
var
|
|
2178
|
+
var or = e.object({
|
|
2161
2179
|
statuses: e.array(y).optional(),
|
|
2162
|
-
lifecycleStatuses: e.array(
|
|
2180
|
+
lifecycleStatuses: e.array(P).optional(),
|
|
2163
2181
|
customerUuids: e.array(e.uuid()).optional(),
|
|
2164
2182
|
dueOnRange: Y.optional(),
|
|
2165
2183
|
issuedOnRange: Y.optional(),
|
|
@@ -2183,12 +2201,12 @@ var ar = e.object({
|
|
|
2183
2201
|
hasChangesSinceApprovalSent: e.boolean().optional(),
|
|
2184
2202
|
approvalStatuses: e.array(Z).optional(),
|
|
2185
2203
|
isApprovalCancelled: e.boolean().optional()
|
|
2186
|
-
}),
|
|
2204
|
+
}), sr = e.object({
|
|
2187
2205
|
meta: Q,
|
|
2188
2206
|
skipped: e.array($)
|
|
2189
|
-
}),
|
|
2207
|
+
}), cr = e.object({
|
|
2190
2208
|
statuses: e.array(y).optional(),
|
|
2191
|
-
lifecycleStatuses: e.array(
|
|
2209
|
+
lifecycleStatuses: e.array(P).optional(),
|
|
2192
2210
|
customerUuids: e.array(e.uuid()).optional(),
|
|
2193
2211
|
dueOnRange: Y.optional(),
|
|
2194
2212
|
issuedOnRange: Y.optional(),
|
|
@@ -2212,7 +2230,7 @@ var ar = e.object({
|
|
|
2212
2230
|
hasChangesSinceApprovalSent: e.boolean().optional(),
|
|
2213
2231
|
approvalStatuses: e.array(Z).optional(),
|
|
2214
2232
|
isApprovalCancelled: e.boolean().optional()
|
|
2215
|
-
}),
|
|
2233
|
+
}), lr = e.object({
|
|
2216
2234
|
meta: Q,
|
|
2217
2235
|
skipped: e.array($)
|
|
2218
2236
|
});
|
|
@@ -2221,7 +2239,7 @@ e.object({
|
|
|
2221
2239
|
status: e.enum(["404"]),
|
|
2222
2240
|
code: e.enum(["pro_forma_not_found"])
|
|
2223
2241
|
});
|
|
2224
|
-
var
|
|
2242
|
+
var ur = e.object({
|
|
2225
2243
|
entityUuids: e.array(e.uuid()).optional(),
|
|
2226
2244
|
entityTypes: e.array(e.enum([
|
|
2227
2245
|
"customer",
|
|
@@ -2239,13 +2257,13 @@ var lr = e.object({
|
|
|
2239
2257
|
"approval",
|
|
2240
2258
|
"attachment"
|
|
2241
2259
|
])).optional()
|
|
2242
|
-
}),
|
|
2260
|
+
}), dr = e.object({
|
|
2243
2261
|
createdAt: e.string(),
|
|
2244
2262
|
uuid: e.uuid()
|
|
2245
|
-
}),
|
|
2263
|
+
}), fr = e.object({
|
|
2246
2264
|
limit: e.number().gte(0).lte(100).optional(),
|
|
2247
|
-
key:
|
|
2248
|
-
}),
|
|
2265
|
+
key: dr.nullish()
|
|
2266
|
+
}), pr = e.enum([
|
|
2249
2267
|
"invoice-created",
|
|
2250
2268
|
"invoice-updated",
|
|
2251
2269
|
"invoice-finalized",
|
|
@@ -2269,40 +2287,40 @@ var lr = e.object({
|
|
|
2269
2287
|
"credit-note-created",
|
|
2270
2288
|
"credit-note-updated",
|
|
2271
2289
|
"customer-updated"
|
|
2272
|
-
]),
|
|
2290
|
+
]), mr = e.enum([
|
|
2273
2291
|
"create",
|
|
2274
2292
|
"update",
|
|
2275
2293
|
"delete"
|
|
2276
|
-
]),
|
|
2294
|
+
]), hr = e.enum([
|
|
2277
2295
|
"user",
|
|
2278
2296
|
"service",
|
|
2279
2297
|
"system"
|
|
2280
|
-
]),
|
|
2298
|
+
]), gr = e.object({
|
|
2281
2299
|
uuid: e.uuid(),
|
|
2282
2300
|
firstName: e.string().nullable(),
|
|
2283
2301
|
lastName: e.string().nullable(),
|
|
2284
2302
|
email: e.string().nullable()
|
|
2285
|
-
}),
|
|
2303
|
+
}), _r = e.enum([
|
|
2286
2304
|
"actor",
|
|
2287
2305
|
"customer",
|
|
2288
2306
|
"invoice",
|
|
2289
2307
|
"credit_note",
|
|
2290
2308
|
"approval",
|
|
2291
2309
|
"attachment"
|
|
2292
|
-
]),
|
|
2310
|
+
]), vr = e.enum([
|
|
2293
2311
|
"customer",
|
|
2294
2312
|
"invoice",
|
|
2295
2313
|
"credit_note",
|
|
2296
2314
|
"approval",
|
|
2297
2315
|
"api_key",
|
|
2298
2316
|
"file"
|
|
2299
|
-
]),
|
|
2300
|
-
role:
|
|
2301
|
-
type:
|
|
2317
|
+
]), yr = e.object({
|
|
2318
|
+
role: _r,
|
|
2319
|
+
type: vr,
|
|
2302
2320
|
uuid: e.uuid(),
|
|
2303
2321
|
label: e.string().nullable()
|
|
2304
|
-
}),
|
|
2305
|
-
entityRole:
|
|
2322
|
+
}), br = e.object({
|
|
2323
|
+
entityRole: _r,
|
|
2306
2324
|
field: e.string(),
|
|
2307
2325
|
from: e.union([
|
|
2308
2326
|
e.string(),
|
|
@@ -2314,17 +2332,17 @@ var lr = e.object({
|
|
|
2314
2332
|
e.number(),
|
|
2315
2333
|
e.boolean()
|
|
2316
2334
|
]).nullable()
|
|
2317
|
-
}), br = e.object({
|
|
2318
|
-
createdAt: e.iso.datetime(),
|
|
2319
|
-
action: fr,
|
|
2320
|
-
changeType: pr,
|
|
2321
|
-
actorType: mr,
|
|
2322
|
-
actor: hr.nullable(),
|
|
2323
|
-
entities: e.array(vr),
|
|
2324
|
-
changes: e.array(yr).nullable()
|
|
2325
2335
|
}), xr = e.object({
|
|
2326
|
-
|
|
2327
|
-
|
|
2336
|
+
createdAt: e.iso.datetime(),
|
|
2337
|
+
action: pr,
|
|
2338
|
+
changeType: mr,
|
|
2339
|
+
actorType: hr,
|
|
2340
|
+
actor: gr.nullable(),
|
|
2341
|
+
entities: e.array(yr),
|
|
2342
|
+
changes: e.array(br).nullable()
|
|
2343
|
+
}), Sr = e.object({
|
|
2344
|
+
logs: e.array(xr),
|
|
2345
|
+
nextKey: dr.nullable()
|
|
2328
2346
|
});
|
|
2329
2347
|
e.object({
|
|
2330
2348
|
detail: e.string().optional(),
|
|
@@ -2339,14 +2357,14 @@ e.object({
|
|
|
2339
2357
|
status: e.enum(["409"]),
|
|
2340
2358
|
code: e.enum(["payment_external_id_already_exists"])
|
|
2341
2359
|
});
|
|
2342
|
-
var
|
|
2360
|
+
var Cr = e.enum(["standard", "advance"]), wr = e.object({
|
|
2343
2361
|
amount: x,
|
|
2344
2362
|
date: e.iso.date(),
|
|
2345
2363
|
paymentReference: e.string().nullish(),
|
|
2346
2364
|
remarks: e.string().nullish(),
|
|
2347
|
-
type:
|
|
2365
|
+
type: Cr.optional(),
|
|
2348
2366
|
externalId: e.string().nullish()
|
|
2349
|
-
}),
|
|
2367
|
+
}), Tr = e.object({ uuid: e.uuid() });
|
|
2350
2368
|
e.object({
|
|
2351
2369
|
detail: e.string().optional(),
|
|
2352
2370
|
status: e.enum(["404"]),
|
|
@@ -2360,35 +2378,35 @@ e.object({
|
|
|
2360
2378
|
status: e.enum(["409"]),
|
|
2361
2379
|
code: e.enum(["advance_payment_locked"])
|
|
2362
2380
|
});
|
|
2363
|
-
var
|
|
2381
|
+
var Er = e.enum(["manual", "exact"]), Dr = e.object({
|
|
2364
2382
|
uuid: e.uuid(),
|
|
2365
2383
|
amount: x,
|
|
2366
2384
|
date: e.iso.date(),
|
|
2367
2385
|
createdAt: e.iso.datetime(),
|
|
2368
2386
|
paymentReference: e.string().nullable(),
|
|
2369
2387
|
remarks: e.string().nullable(),
|
|
2370
|
-
source:
|
|
2371
|
-
type:
|
|
2372
|
-
}),
|
|
2388
|
+
source: Er,
|
|
2389
|
+
type: Cr
|
|
2390
|
+
}), Or = e.object({ items: e.array(Dr) }), kr = e.union([
|
|
2373
2391
|
e.literal(1),
|
|
2374
2392
|
e.literal(2),
|
|
2375
2393
|
e.literal(3)
|
|
2376
|
-
]),
|
|
2377
|
-
subject:
|
|
2378
|
-
body:
|
|
2379
|
-
}),
|
|
2380
|
-
type:
|
|
2394
|
+
]), Ar = e.object({
|
|
2395
|
+
subject: F,
|
|
2396
|
+
body: F
|
|
2397
|
+
}), jr = e.enum(["percentage", "amount"]), Mr = e.object({
|
|
2398
|
+
type: jr,
|
|
2381
2399
|
amount: x.nullable(),
|
|
2382
2400
|
percentage: e.number().nullable()
|
|
2383
|
-
}),
|
|
2401
|
+
}), Nr = e.object({
|
|
2384
2402
|
uuid: e.uuid(),
|
|
2385
2403
|
issuerUuid: e.uuid(),
|
|
2386
|
-
sequence:
|
|
2387
|
-
schedule:
|
|
2404
|
+
sequence: kr,
|
|
2405
|
+
schedule: Sn,
|
|
2388
2406
|
offsetDays: e.number(),
|
|
2389
|
-
template:
|
|
2390
|
-
fee:
|
|
2391
|
-
}),
|
|
2407
|
+
template: Ar,
|
|
2408
|
+
fee: Mr
|
|
2409
|
+
}), Pr = e.object({ items: e.array(Nr) });
|
|
2392
2410
|
e.object({
|
|
2393
2411
|
detail: e.string().optional(),
|
|
2394
2412
|
status: e.enum(["400"]),
|
|
@@ -2402,36 +2420,36 @@ e.object({
|
|
|
2402
2420
|
status: e.enum(["400"]),
|
|
2403
2421
|
code: e.enum(["additional_reminder_config"])
|
|
2404
2422
|
});
|
|
2405
|
-
var
|
|
2406
|
-
subject:
|
|
2407
|
-
body:
|
|
2408
|
-
}),
|
|
2423
|
+
var Fr = e.object({
|
|
2424
|
+
subject: F,
|
|
2425
|
+
body: F
|
|
2426
|
+
}), Ir = e.object({
|
|
2409
2427
|
sequence: e.number(),
|
|
2410
2428
|
offsetDays: e.int().gte(1),
|
|
2411
|
-
schedule:
|
|
2412
|
-
template:
|
|
2413
|
-
fee:
|
|
2414
|
-
}),
|
|
2429
|
+
schedule: Sn,
|
|
2430
|
+
template: Fr,
|
|
2431
|
+
fee: Mr
|
|
2432
|
+
}), Lr = e.object({ reminders: e.array(Ir) }), Rr = e.enum([
|
|
2415
2433
|
"invoice",
|
|
2416
2434
|
"invoice-line",
|
|
2417
2435
|
"invoice-line-group"
|
|
2418
|
-
]),
|
|
2436
|
+
]), zr = e.object({ entityTypes: e.array(Rr).optional() });
|
|
2419
2437
|
e.object({
|
|
2420
2438
|
detail: e.string().optional(),
|
|
2421
2439
|
status: e.enum(["404"]),
|
|
2422
2440
|
code: e.enum(["dunning_case_not_found"])
|
|
2423
2441
|
});
|
|
2424
|
-
var
|
|
2442
|
+
var Br = e.object({
|
|
2425
2443
|
uuid: e.uuid(),
|
|
2426
2444
|
type: v,
|
|
2427
2445
|
name: e.string(),
|
|
2428
2446
|
vatNumber: e.string().nullable(),
|
|
2429
2447
|
email: e.string().nullable()
|
|
2430
|
-
}),
|
|
2448
|
+
}), Vr = e.object({
|
|
2431
2449
|
uuid: e.uuid(),
|
|
2432
2450
|
date: e.iso.date(),
|
|
2433
2451
|
amount: x
|
|
2434
|
-
}),
|
|
2452
|
+
}), Hr = e.object({
|
|
2435
2453
|
uuid: e.uuid(),
|
|
2436
2454
|
sequence: e.string(),
|
|
2437
2455
|
grossAmount: x,
|
|
@@ -2440,7 +2458,7 @@ var zr = e.object({
|
|
|
2440
2458
|
e.enum(["infinity"]),
|
|
2441
2459
|
e.enum(["-infinity"])
|
|
2442
2460
|
])
|
|
2443
|
-
}),
|
|
2461
|
+
}), Ur = e.object({
|
|
2444
2462
|
uuid: e.uuid(),
|
|
2445
2463
|
subject: e.string().nullable(),
|
|
2446
2464
|
sequence: e.string(),
|
|
@@ -2452,9 +2470,9 @@ var zr = e.object({
|
|
|
2452
2470
|
paidAmount: x,
|
|
2453
2471
|
isDisputed: e.boolean(),
|
|
2454
2472
|
settlementStatus: R,
|
|
2455
|
-
payments: e.array(
|
|
2456
|
-
creditNotes: e.array(
|
|
2457
|
-
}),
|
|
2473
|
+
payments: e.array(Vr),
|
|
2474
|
+
creditNotes: e.array(Hr)
|
|
2475
|
+
}), Wr = e.object({
|
|
2458
2476
|
uuid: e.uuid(),
|
|
2459
2477
|
sentAt: e.union([
|
|
2460
2478
|
e.iso.datetime(),
|
|
@@ -2462,7 +2480,7 @@ var zr = e.object({
|
|
|
2462
2480
|
e.enum(["-infinity"])
|
|
2463
2481
|
]).nullable(),
|
|
2464
2482
|
hasErrors: e.boolean()
|
|
2465
|
-
}),
|
|
2483
|
+
}), Gr = e.enum(["missing_email"]), Kr = e.object({
|
|
2466
2484
|
uuid: e.uuid(),
|
|
2467
2485
|
createdAt: e.iso.datetime(),
|
|
2468
2486
|
updatedAt: e.iso.datetime(),
|
|
@@ -2470,8 +2488,8 @@ var zr = e.object({
|
|
|
2470
2488
|
isClosed: e.boolean(),
|
|
2471
2489
|
nextReminderOn: e.iso.date().nullable(),
|
|
2472
2490
|
level: e.number().nullable(),
|
|
2473
|
-
customer:
|
|
2474
|
-
invoices: e.array(
|
|
2491
|
+
customer: Br,
|
|
2492
|
+
invoices: e.array(Ur),
|
|
2475
2493
|
outstandingBalance: x,
|
|
2476
2494
|
totalPaid: x,
|
|
2477
2495
|
totalInvoiced: x,
|
|
@@ -2484,17 +2502,17 @@ var zr = e.object({
|
|
|
2484
2502
|
]).nullable(),
|
|
2485
2503
|
canSendReminder: e.boolean(),
|
|
2486
2504
|
canRetryReminder: e.boolean(),
|
|
2487
|
-
latestCreatedReminder:
|
|
2488
|
-
blockedReason:
|
|
2489
|
-
}),
|
|
2505
|
+
latestCreatedReminder: Wr.nullable(),
|
|
2506
|
+
blockedReason: Gr.nullable()
|
|
2507
|
+
}), qr = e.object({
|
|
2490
2508
|
isOpen: e.boolean().optional(),
|
|
2491
2509
|
customerUuid: e.uuid().optional(),
|
|
2492
2510
|
level: e.number().optional(),
|
|
2493
2511
|
dunningCaseUuids: X.optional()
|
|
2494
|
-
}),
|
|
2512
|
+
}), Jr = e.object({
|
|
2495
2513
|
uuid: e.uuid(),
|
|
2496
2514
|
name: e.string()
|
|
2497
|
-
}),
|
|
2515
|
+
}), Yr = e.object({
|
|
2498
2516
|
uuid: e.uuid(),
|
|
2499
2517
|
sentAt: e.union([
|
|
2500
2518
|
e.iso.datetime(),
|
|
@@ -2502,9 +2520,9 @@ var zr = e.object({
|
|
|
2502
2520
|
e.enum(["-infinity"])
|
|
2503
2521
|
]).nullable(),
|
|
2504
2522
|
hasErrors: e.boolean()
|
|
2505
|
-
}),
|
|
2523
|
+
}), Xr = e.object({
|
|
2506
2524
|
uuid: e.uuid(),
|
|
2507
|
-
customer:
|
|
2525
|
+
customer: Jr,
|
|
2508
2526
|
level: e.number().nullable(),
|
|
2509
2527
|
daysOverdue: e.number(),
|
|
2510
2528
|
outstandingBalance: x,
|
|
@@ -2520,10 +2538,10 @@ var zr = e.object({
|
|
|
2520
2538
|
]).nullable(),
|
|
2521
2539
|
canSendReminder: e.boolean(),
|
|
2522
2540
|
canRetryReminder: e.boolean(),
|
|
2523
|
-
latestCreatedReminder:
|
|
2524
|
-
blockedReason:
|
|
2525
|
-
}),
|
|
2526
|
-
items: e.array(
|
|
2541
|
+
latestCreatedReminder: Yr.nullable(),
|
|
2542
|
+
blockedReason: Gr.nullable()
|
|
2543
|
+
}), Zr = e.object({
|
|
2544
|
+
items: e.array(Xr),
|
|
2527
2545
|
meta: g
|
|
2528
2546
|
});
|
|
2529
2547
|
e.object({
|
|
@@ -2551,23 +2569,23 @@ e.object({
|
|
|
2551
2569
|
status: e.enum(["409"]),
|
|
2552
2570
|
code: e.enum(["dunning_case_reminder_not_retryable"])
|
|
2553
2571
|
});
|
|
2554
|
-
var
|
|
2572
|
+
var Qr = e.object({
|
|
2555
2573
|
isOpen: e.boolean().optional(),
|
|
2556
2574
|
customerUuid: e.uuid().optional(),
|
|
2557
2575
|
level: e.number().optional(),
|
|
2558
2576
|
dunningCaseUuids: X.optional()
|
|
2559
|
-
}),
|
|
2577
|
+
}), $r = e.object({
|
|
2560
2578
|
meta: Q,
|
|
2561
2579
|
skipped: e.array($)
|
|
2562
|
-
}),
|
|
2580
|
+
}), ei = e.object({
|
|
2563
2581
|
isOpen: e.boolean().optional(),
|
|
2564
2582
|
customerUuid: e.uuid().optional(),
|
|
2565
2583
|
level: e.number().optional(),
|
|
2566
2584
|
dunningCaseUuids: X.optional()
|
|
2567
|
-
}),
|
|
2585
|
+
}), ti = e.object({
|
|
2568
2586
|
meta: Q,
|
|
2569
2587
|
skipped: e.array($)
|
|
2570
|
-
}),
|
|
2588
|
+
}), ni = e.object({
|
|
2571
2589
|
name: e.string().nullable(),
|
|
2572
2590
|
email: e.email().nullable(),
|
|
2573
2591
|
phoneNumber: e.string().nullable(),
|
|
@@ -2577,7 +2595,7 @@ var Zr = e.object({
|
|
|
2577
2595
|
bankAccountNumber: e.string().nullable(),
|
|
2578
2596
|
alternativeBankAccountNumber: e.string().nullable(),
|
|
2579
2597
|
currency: b
|
|
2580
|
-
}),
|
|
2598
|
+
}), ri = e.object({
|
|
2581
2599
|
name: e.string(),
|
|
2582
2600
|
address: C.nullable(),
|
|
2583
2601
|
email: e.email().nullable(),
|
|
@@ -2587,10 +2605,10 @@ var Zr = e.object({
|
|
|
2587
2605
|
type: v,
|
|
2588
2606
|
locale: _,
|
|
2589
2607
|
currency: b
|
|
2590
|
-
}),
|
|
2608
|
+
}), ii = e.object({
|
|
2591
2609
|
name: e.string().nullable(),
|
|
2592
2610
|
email: e.email()
|
|
2593
|
-
}),
|
|
2611
|
+
}), ai = e.object({
|
|
2594
2612
|
sequence: e.string(),
|
|
2595
2613
|
issuedOn: e.iso.date(),
|
|
2596
2614
|
dueOn: e.iso.date(),
|
|
@@ -2599,21 +2617,21 @@ var Zr = e.object({
|
|
|
2599
2617
|
daysOverdue: e.number(),
|
|
2600
2618
|
fee: x,
|
|
2601
2619
|
isNew: e.boolean()
|
|
2602
|
-
}),
|
|
2620
|
+
}), oi = e.object({
|
|
2603
2621
|
sequence: e.string(),
|
|
2604
2622
|
issuedOn: e.iso.date(),
|
|
2605
2623
|
dueOn: e.iso.date(),
|
|
2606
2624
|
outstandingBalance: x,
|
|
2607
2625
|
daysOverdue: e.number()
|
|
2608
|
-
}),
|
|
2626
|
+
}), si = e.object({
|
|
2609
2627
|
createdAt: e.iso.datetime(),
|
|
2610
2628
|
sentAt: e.iso.datetime().nullable(),
|
|
2611
2629
|
level: e.number(),
|
|
2612
|
-
issuer:
|
|
2613
|
-
customer:
|
|
2614
|
-
recipient:
|
|
2615
|
-
invoices: e.array(
|
|
2616
|
-
outstandingInvoices: e.array(
|
|
2630
|
+
issuer: ni,
|
|
2631
|
+
customer: ri,
|
|
2632
|
+
recipient: ii,
|
|
2633
|
+
invoices: e.array(ai),
|
|
2634
|
+
outstandingInvoices: e.array(oi),
|
|
2617
2635
|
totalFee: x
|
|
2618
2636
|
});
|
|
2619
2637
|
e.object({
|
|
@@ -2637,9 +2655,9 @@ e.object({
|
|
|
2637
2655
|
status: e.enum(["409"]),
|
|
2638
2656
|
code: e.enum(["customer_has_no_approval_email"])
|
|
2639
2657
|
});
|
|
2640
|
-
var
|
|
2658
|
+
var ci = e.object({
|
|
2641
2659
|
statuses: e.array(y).optional(),
|
|
2642
|
-
lifecycleStatuses: e.array(
|
|
2660
|
+
lifecycleStatuses: e.array(P).optional(),
|
|
2643
2661
|
customerUuids: e.array(e.uuid()).optional(),
|
|
2644
2662
|
dueOnRange: Y.optional(),
|
|
2645
2663
|
issuedOnRange: Y.optional(),
|
|
@@ -2663,12 +2681,12 @@ var si = e.object({
|
|
|
2663
2681
|
hasChangesSinceApprovalSent: e.boolean().optional(),
|
|
2664
2682
|
approvalStatuses: e.array(Z).optional(),
|
|
2665
2683
|
isApprovalCancelled: e.boolean().optional()
|
|
2666
|
-
}),
|
|
2684
|
+
}), li = e.object({
|
|
2667
2685
|
meta: Q,
|
|
2668
2686
|
skipped: e.array($)
|
|
2669
|
-
}),
|
|
2687
|
+
}), ui = e.object({
|
|
2670
2688
|
statuses: e.array(y).optional(),
|
|
2671
|
-
lifecycleStatuses: e.array(
|
|
2689
|
+
lifecycleStatuses: e.array(P).optional(),
|
|
2672
2690
|
customerUuids: e.array(e.uuid()).optional(),
|
|
2673
2691
|
dueOnRange: Y.optional(),
|
|
2674
2692
|
issuedOnRange: Y.optional(),
|
|
@@ -2692,7 +2710,7 @@ var si = e.object({
|
|
|
2692
2710
|
hasChangesSinceApprovalSent: e.boolean().optional(),
|
|
2693
2711
|
approvalStatuses: e.array(Z).optional(),
|
|
2694
2712
|
isApprovalCancelled: e.boolean().optional()
|
|
2695
|
-
}),
|
|
2713
|
+
}), di = e.object({
|
|
2696
2714
|
meta: Q,
|
|
2697
2715
|
skipped: e.array($)
|
|
2698
2716
|
});
|
|
@@ -2709,7 +2727,7 @@ e.object({
|
|
|
2709
2727
|
status: e.enum(["400"]),
|
|
2710
2728
|
code: e.enum(["missing_invoice_approval_file"])
|
|
2711
2729
|
});
|
|
2712
|
-
var
|
|
2730
|
+
var fi = e.object({
|
|
2713
2731
|
fileUuids: e.array(e.uuid()).optional(),
|
|
2714
2732
|
remarks: e.string().nullish()
|
|
2715
2733
|
});
|
|
@@ -2718,9 +2736,9 @@ e.object({
|
|
|
2718
2736
|
status: e.enum(["400"]),
|
|
2719
2737
|
code: e.enum(["missing_rejection_remarks"])
|
|
2720
2738
|
});
|
|
2721
|
-
var
|
|
2739
|
+
var pi = e.object({
|
|
2722
2740
|
remarks: e.string().max(500).nullish(),
|
|
2723
|
-
reason:
|
|
2741
|
+
reason: Tn,
|
|
2724
2742
|
fileUuids: e.array(e.uuid()).optional()
|
|
2725
2743
|
});
|
|
2726
2744
|
e.object({
|
|
@@ -2740,18 +2758,18 @@ e.object({
|
|
|
2740
2758
|
status: e.enum(["409"]),
|
|
2741
2759
|
code: e.enum(["approval_restart_requires_active_approval"])
|
|
2742
2760
|
});
|
|
2743
|
-
var
|
|
2744
|
-
status:
|
|
2761
|
+
var mi = e.object({
|
|
2762
|
+
status: wn.optional(),
|
|
2745
2763
|
invoiceUuid: e.uuid().optional(),
|
|
2746
2764
|
customerUuid: e.uuid().optional(),
|
|
2747
2765
|
level: z.optional(),
|
|
2748
2766
|
hasChangesSinceApprovalSent: e.boolean().optional(),
|
|
2749
2767
|
isCancelled: e.boolean().optional()
|
|
2750
|
-
}),
|
|
2768
|
+
}), hi = e.object({
|
|
2751
2769
|
uuid: e.uuid(),
|
|
2752
2770
|
subject: e.string().nullable(),
|
|
2753
2771
|
hasChangesSinceApprovalSent: e.boolean()
|
|
2754
|
-
}),
|
|
2772
|
+
}), gi = e.object({
|
|
2755
2773
|
uuid: e.uuid(),
|
|
2756
2774
|
issuedOn: e.union([
|
|
2757
2775
|
e.iso.date(),
|
|
@@ -2761,16 +2779,16 @@ var pi = e.object({
|
|
|
2761
2779
|
netAmount: x,
|
|
2762
2780
|
grossAmount: x,
|
|
2763
2781
|
balanceDueAmount: x.nullable()
|
|
2764
|
-
}),
|
|
2782
|
+
}), _i = e.object({
|
|
2765
2783
|
uuid: e.uuid(),
|
|
2766
2784
|
name: e.string().nullable()
|
|
2767
|
-
}),
|
|
2785
|
+
}), vi = e.object({
|
|
2768
2786
|
name: e.string().nullable(),
|
|
2769
2787
|
email: e.email().nullable()
|
|
2770
|
-
}),
|
|
2788
|
+
}), yi = e.object({
|
|
2771
2789
|
uuid: e.uuid(),
|
|
2772
2790
|
createdAt: e.iso.datetime(),
|
|
2773
|
-
status:
|
|
2791
|
+
status: wn,
|
|
2774
2792
|
sentAt: e.union([
|
|
2775
2793
|
e.iso.datetime(),
|
|
2776
2794
|
e.enum(["infinity"]),
|
|
@@ -2792,21 +2810,21 @@ var pi = e.object({
|
|
|
2792
2810
|
e.enum(["-infinity"])
|
|
2793
2811
|
]).nullable(),
|
|
2794
2812
|
customerRemark: e.string().nullable(),
|
|
2795
|
-
rejectionReason:
|
|
2813
|
+
rejectionReason: Tn.nullable(),
|
|
2796
2814
|
level: z.nullable(),
|
|
2797
2815
|
lastReminderSentAt: e.union([
|
|
2798
2816
|
e.iso.datetime(),
|
|
2799
2817
|
e.enum(["infinity"]),
|
|
2800
2818
|
e.enum(["-infinity"])
|
|
2801
2819
|
]).nullable(),
|
|
2802
|
-
invoice:
|
|
2803
|
-
proForma:
|
|
2804
|
-
customer:
|
|
2805
|
-
recipient:
|
|
2806
|
-
}), yi = e.object({
|
|
2807
|
-
items: e.array(vi),
|
|
2808
|
-
meta: g
|
|
2820
|
+
invoice: hi,
|
|
2821
|
+
proForma: gi,
|
|
2822
|
+
customer: _i,
|
|
2823
|
+
recipient: vi
|
|
2809
2824
|
}), bi = e.object({
|
|
2825
|
+
items: e.array(yi),
|
|
2826
|
+
meta: g
|
|
2827
|
+
}), xi = e.object({
|
|
2810
2828
|
uuid: e.uuid(),
|
|
2811
2829
|
name: e.string().nullable(),
|
|
2812
2830
|
email: e.email().nullable(),
|
|
@@ -2816,7 +2834,7 @@ var pi = e.object({
|
|
|
2816
2834
|
vatNumber: e.string().nullable(),
|
|
2817
2835
|
bankAccountNumber: e.string().nullable(),
|
|
2818
2836
|
alternativeBankAccountNumber: e.string().nullable()
|
|
2819
|
-
}),
|
|
2837
|
+
}), Si = e.object({
|
|
2820
2838
|
uuid: e.uuid(),
|
|
2821
2839
|
name: e.string().nullable(),
|
|
2822
2840
|
email: e.email().nullable(),
|
|
@@ -2824,7 +2842,7 @@ var pi = e.object({
|
|
|
2824
2842
|
address: C.nullable(),
|
|
2825
2843
|
vatNumber: e.string().nullable(),
|
|
2826
2844
|
type: v
|
|
2827
|
-
}),
|
|
2845
|
+
}), Ci = e.object({
|
|
2828
2846
|
uuid: e.uuid(),
|
|
2829
2847
|
groupUuid: e.uuid().nullable(),
|
|
2830
2848
|
position: e.number(),
|
|
@@ -2839,18 +2857,19 @@ var pi = e.object({
|
|
|
2839
2857
|
k,
|
|
2840
2858
|
A,
|
|
2841
2859
|
j,
|
|
2842
|
-
M
|
|
2860
|
+
M,
|
|
2861
|
+
N
|
|
2843
2862
|
])),
|
|
2844
2863
|
quantity: e.number(),
|
|
2845
2864
|
unitPrice: x,
|
|
2846
|
-
vatRate:
|
|
2865
|
+
vatRate: I,
|
|
2847
2866
|
vatRatePercentage: e.number(),
|
|
2848
2867
|
netAmount: x,
|
|
2849
2868
|
grossAmount: x,
|
|
2850
|
-
discount:
|
|
2869
|
+
discount: L.nullable(),
|
|
2851
2870
|
unit: $t,
|
|
2852
2871
|
isDiscount: e.boolean()
|
|
2853
|
-
}),
|
|
2872
|
+
}), wi = e.object({
|
|
2854
2873
|
uuid: e.uuid(),
|
|
2855
2874
|
position: e.number(),
|
|
2856
2875
|
name: e.string(),
|
|
@@ -2864,21 +2883,22 @@ var pi = e.object({
|
|
|
2864
2883
|
k,
|
|
2865
2884
|
A,
|
|
2866
2885
|
j,
|
|
2867
|
-
M
|
|
2886
|
+
M,
|
|
2887
|
+
N
|
|
2868
2888
|
])),
|
|
2869
|
-
lines: e.array(
|
|
2870
|
-
groups: e.array(e.lazy(() =>
|
|
2871
|
-
}),
|
|
2872
|
-
vatRate:
|
|
2889
|
+
lines: e.array(Ci),
|
|
2890
|
+
groups: e.array(e.lazy(() => wi))
|
|
2891
|
+
}), Ti = e.object({
|
|
2892
|
+
vatRate: I,
|
|
2873
2893
|
netAmount: x,
|
|
2874
2894
|
vatAmount: x
|
|
2875
|
-
}),
|
|
2895
|
+
}), Ei = e.object({
|
|
2876
2896
|
uuid: e.uuid(),
|
|
2877
2897
|
createdAt: e.iso.datetime(),
|
|
2878
2898
|
updatedAt: e.iso.datetime(),
|
|
2879
2899
|
issueOn: e.iso.date().nullable(),
|
|
2880
|
-
issuer:
|
|
2881
|
-
customer:
|
|
2900
|
+
issuer: xi,
|
|
2901
|
+
customer: Si,
|
|
2882
2902
|
paymentReference: e.string().nullable(),
|
|
2883
2903
|
subject: e.string().nullable(),
|
|
2884
2904
|
poNumber: e.string().nullable(),
|
|
@@ -2891,28 +2911,29 @@ var pi = e.object({
|
|
|
2891
2911
|
k,
|
|
2892
2912
|
A,
|
|
2893
2913
|
j,
|
|
2894
|
-
M
|
|
2914
|
+
M,
|
|
2915
|
+
N
|
|
2895
2916
|
])),
|
|
2896
|
-
ungroupedLines: e.array(
|
|
2897
|
-
groups: e.array(
|
|
2898
|
-
vatSummaries: e.array(
|
|
2917
|
+
ungroupedLines: e.array(Ci),
|
|
2918
|
+
groups: e.array(wi),
|
|
2919
|
+
vatSummaries: e.array(Ti),
|
|
2899
2920
|
grossAmount: x,
|
|
2900
2921
|
netAmount: x,
|
|
2901
2922
|
effectiveNet: x,
|
|
2902
2923
|
vatAmount: x,
|
|
2903
2924
|
totalDiscountAmount: x.nullable(),
|
|
2904
|
-
globalDiscount:
|
|
2925
|
+
globalDiscount: L.nullable(),
|
|
2905
2926
|
advancePaymentAmount: x.nullable(),
|
|
2906
2927
|
amountDue: x,
|
|
2907
2928
|
externalRemarks: e.string().nullable()
|
|
2908
|
-
}),
|
|
2929
|
+
}), Di = e.enum(["after_approval_request", "after_last_reminder"]), Oi = e.object({
|
|
2909
2930
|
uuid: e.uuid(),
|
|
2910
2931
|
issuerUuid: e.uuid(),
|
|
2911
2932
|
sequence: z,
|
|
2912
|
-
schedule:
|
|
2933
|
+
schedule: Di,
|
|
2913
2934
|
offsetDays: e.number(),
|
|
2914
|
-
template:
|
|
2915
|
-
}),
|
|
2935
|
+
template: Ar
|
|
2936
|
+
}), ki = e.object({ items: e.array(Oi) });
|
|
2916
2937
|
e.object({
|
|
2917
2938
|
detail: e.string().optional(),
|
|
2918
2939
|
status: e.enum(["400"]),
|
|
@@ -2926,34 +2947,34 @@ e.object({
|
|
|
2926
2947
|
status: e.enum(["400"]),
|
|
2927
2948
|
code: e.enum(["additional_approval_reminder_config"])
|
|
2928
2949
|
});
|
|
2929
|
-
var
|
|
2950
|
+
var Ai = e.object({
|
|
2930
2951
|
sequence: z,
|
|
2931
2952
|
offsetDays: e.int().gte(1),
|
|
2932
|
-
schedule:
|
|
2933
|
-
template:
|
|
2934
|
-
}),
|
|
2935
|
-
provider:
|
|
2953
|
+
schedule: Di,
|
|
2954
|
+
template: Fr
|
|
2955
|
+
}), ji = e.object({ reminders: e.array(Ai).max(2) }), Mi = e.enum(["soluz"]), Ni = e.object({
|
|
2956
|
+
provider: Mi,
|
|
2936
2957
|
partyId: e.string(),
|
|
2937
2958
|
enabled: e.boolean(),
|
|
2938
2959
|
hasApiKey: e.boolean(),
|
|
2939
2960
|
validatedAt: e.iso.datetime()
|
|
2940
|
-
}),
|
|
2941
|
-
connection:
|
|
2942
|
-
providers: e.array(
|
|
2961
|
+
}), Pi = e.object({
|
|
2962
|
+
connection: Ni.nullable(),
|
|
2963
|
+
providers: e.array(Mi)
|
|
2943
2964
|
});
|
|
2944
2965
|
e.object({
|
|
2945
2966
|
detail: e.string().optional(),
|
|
2946
2967
|
status: e.enum(["400"]),
|
|
2947
2968
|
code: e.enum(["peppol_error"]),
|
|
2948
2969
|
meta: e.record(e.string(), e.unknown())
|
|
2949
|
-
}), e.object({ provider:
|
|
2950
|
-
var
|
|
2970
|
+
}), e.object({ provider: Mi });
|
|
2971
|
+
var Fi = e.object({
|
|
2951
2972
|
id: e.string(),
|
|
2952
2973
|
name: e.string(),
|
|
2953
2974
|
vatNumber: e.string()
|
|
2954
|
-
}),
|
|
2975
|
+
}), Ii = e.object({ companies: e.array(Fi) });
|
|
2955
2976
|
e.object({
|
|
2956
|
-
provider:
|
|
2977
|
+
provider: Mi,
|
|
2957
2978
|
partyId: e.string(),
|
|
2958
2979
|
enabled: e.boolean()
|
|
2959
2980
|
}), e.object({
|
|
@@ -2961,11 +2982,11 @@ e.object({
|
|
|
2961
2982
|
status: e.enum(["500"]),
|
|
2962
2983
|
code: e.enum(["internal_server_error"])
|
|
2963
2984
|
});
|
|
2964
|
-
var
|
|
2965
|
-
provider:
|
|
2985
|
+
var Li = e.object({
|
|
2986
|
+
provider: Mi,
|
|
2966
2987
|
apiKey: e.string().optional()
|
|
2967
|
-
}),
|
|
2968
|
-
provider:
|
|
2988
|
+
}), Ri = e.object({
|
|
2989
|
+
provider: Mi,
|
|
2969
2990
|
apiKey: e.string().optional(),
|
|
2970
2991
|
partyId: e.string(),
|
|
2971
2992
|
enabled: e.boolean()
|
|
@@ -2977,14 +2998,14 @@ e.object({
|
|
|
2977
2998
|
fresh: e.boolean(),
|
|
2978
2999
|
collections: e.array(Ce).optional()
|
|
2979
3000
|
}), e.object({ collections: e.array(Ce).optional() }), e.object({ user: e.uuid() }), e.object({ uuid: e.uuid() });
|
|
2980
|
-
var
|
|
3001
|
+
var zi = e.object({
|
|
2981
3002
|
pagination: h.optional(),
|
|
2982
3003
|
search: e.string().optional()
|
|
2983
|
-
}),
|
|
3004
|
+
}), Bi = De;
|
|
2984
3005
|
e.void(), e.void(), e.object({ role: e.uuid() }), e.void(), e.object({ role: e.uuid() }), e.object({ role: e.uuid() }), e.void();
|
|
2985
|
-
var
|
|
3006
|
+
var Vi = je, Hi = Me;
|
|
2986
3007
|
e.object({ file: e.uuid() }), e.void();
|
|
2987
|
-
var
|
|
3008
|
+
var Ui = Ne, Wi = e.object({ file: e.uuid() }), Gi = e.void(), Ki = e.object({ file: e.uuid() });
|
|
2988
3009
|
e.object({ file: e.uuid() }), e.object({ token: e.string() }), e.object({
|
|
2989
3010
|
filter: Re.optional(),
|
|
2990
3011
|
pagination: Be.optional()
|
|
@@ -3003,695 +3024,695 @@ e.object({ file: e.uuid() }), e.object({ token: e.string() }), e.object({
|
|
|
3003
3024
|
pagination: h.optional(),
|
|
3004
3025
|
search: e.string().optional()
|
|
3005
3026
|
}), 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();
|
|
3006
|
-
var
|
|
3027
|
+
var qi = e.object({
|
|
3007
3028
|
pagination: h.optional(),
|
|
3008
3029
|
filter: Ft.optional(),
|
|
3009
3030
|
search: e.string().optional()
|
|
3010
|
-
}),
|
|
3031
|
+
}), Ji = Lt, Yi = e.object({ uuid: e.uuid() }), Xi = Pt;
|
|
3011
3032
|
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();
|
|
3012
|
-
var
|
|
3033
|
+
var Zi = e.object({ uuid: e.uuid() }), Qi = e.object({ pagination: h.optional() }), $i = Bt, ea = Vt, ta = Ht, na = e.void(), ra = e.object({ token: e.string() }), ia = on, aa = e.object({
|
|
3013
3034
|
pagination: h.optional(),
|
|
3014
|
-
sort: e.array(
|
|
3015
|
-
filter:
|
|
3035
|
+
sort: e.array(kn).optional(),
|
|
3036
|
+
filter: jn.optional(),
|
|
3016
3037
|
search: e.string().optional()
|
|
3017
|
-
}),
|
|
3038
|
+
}), oa = Fn, sa = sn, ca = cn, la = e.object({ uuid: e.uuid() }), ua = e.void(), da = e.object({ uuid: e.uuid() }), fa = Dn, pa = In, ma = e.object({ uuid: e.uuid() }), ha = e.void(), ga = zn, _a = e.object({ uuid: e.uuid() }), va = e.void();
|
|
3018
3039
|
e.object({ uuid: e.uuid() }), e.void();
|
|
3019
|
-
var
|
|
3020
|
-
filter:
|
|
3040
|
+
var ya = Bn, ba = e.object({ uuid: e.uuid() }), xa = e.void(), Sa = Vn, Ca = e.object({ uuid: e.uuid() }), wa = e.void(), Ta = e.object({ uuid: e.uuid() }), Ea = e.object({ uuid: e.uuid() }), Da = Un, Oa = Kn, ka = e.object({ uuid: e.uuid() }), Aa = e.void(), ja = qn, Ma = e.object({ uuid: e.uuid() }), Na = e.void(), Pa = e.object({ uuid: e.uuid() }), Fa = e.object({ uuid: e.uuid() }), Ia = e.object({
|
|
3041
|
+
filter: Jn.optional(),
|
|
3021
3042
|
search: e.string().optional()
|
|
3022
|
-
}),
|
|
3023
|
-
filter:
|
|
3043
|
+
}), La = Qn, Ra = e.object({
|
|
3044
|
+
filter: $n.optional(),
|
|
3024
3045
|
search: e.string().optional()
|
|
3025
|
-
}),
|
|
3026
|
-
filter:
|
|
3046
|
+
}), za = er, Ba = e.object({ uuid: e.uuid() }), Va = e.void(), Ha = e.object({ uuid: e.uuid() }), Ua = tr, Wa = e.object({ uuid: e.uuid() }), Ga = e.void(), Ka = e.object({ uuid: e.uuid() }), qa = e.void(), Ja = e.object({ uuid: e.uuid() }), Ya = e.void(), Xa = e.object({ uuid: e.uuid() }), Za = e.void(), Qa = e.object({ uuid: e.uuid() }), $a = e.void(), eo = e.object({
|
|
3047
|
+
filter: nr.optional(),
|
|
3027
3048
|
search: e.string().optional()
|
|
3028
|
-
}),
|
|
3029
|
-
filter:
|
|
3049
|
+
}), to = rr, no = e.object({
|
|
3050
|
+
filter: ir.optional(),
|
|
3030
3051
|
search: e.string().optional()
|
|
3031
|
-
}),
|
|
3032
|
-
filter:
|
|
3052
|
+
}), ro = ar, io = e.object({ uuid: e.uuid() }), ao = e.void(), oo = e.object({
|
|
3053
|
+
filter: or.optional(),
|
|
3033
3054
|
search: e.string().optional()
|
|
3034
|
-
}),
|
|
3035
|
-
filter:
|
|
3055
|
+
}), so = sr, co = e.object({
|
|
3056
|
+
filter: cr.optional(),
|
|
3036
3057
|
search: e.string().optional()
|
|
3037
|
-
}),
|
|
3038
|
-
filter:
|
|
3039
|
-
pagination:
|
|
3040
|
-
}),
|
|
3058
|
+
}), lo = lr, uo = e.object({ uuid: e.uuid() }), fo = e.void(), po = e.object({
|
|
3059
|
+
filter: ur.optional(),
|
|
3060
|
+
pagination: fr.optional()
|
|
3061
|
+
}), mo = Sr, ho = e.object({ uuid: e.uuid() }), go = Or, _o = wr, vo = e.object({ uuid: e.uuid() }), yo = Tr, bo = e.object({
|
|
3041
3062
|
uuid: e.uuid(),
|
|
3042
3063
|
paymentUuid: e.uuid()
|
|
3043
|
-
}),
|
|
3064
|
+
}), xo = e.void(), So = Pr, Co = Lr, wo = e.void(), To = e.object({ filter: zr.optional() }), Eo = e.array(Zt), Do = e.object({ uuid: e.uuid() }), Oo = Kr, ko = e.object({
|
|
3044
3065
|
pagination: h.optional(),
|
|
3045
|
-
filter:
|
|
3046
|
-
}),
|
|
3047
|
-
filter:
|
|
3066
|
+
filter: qr.optional()
|
|
3067
|
+
}), Ao = Zr, jo = e.object({ uuid: e.uuid() }), Mo = e.object({ uuid: e.uuid() }), No = e.object({ filter: Qr.optional() }), Po = $r, Fo = e.object({ filter: ei.optional() }), Io = ti, Lo = e.object({ token: e.string() }), Ro = si, zo = e.object({ uuid: e.uuid() }), Bo = e.object({
|
|
3068
|
+
filter: ci.optional(),
|
|
3048
3069
|
search: e.string().optional()
|
|
3049
|
-
}),
|
|
3050
|
-
filter:
|
|
3070
|
+
}), Vo = li, Ho = e.object({
|
|
3071
|
+
filter: ui.optional(),
|
|
3051
3072
|
search: e.string().optional()
|
|
3052
|
-
}),
|
|
3073
|
+
}), Uo = di, Wo = fi, Go = e.object({ uuid: e.uuid() }), Ko = e.void(), qo = pi, Jo = e.object({ uuid: e.uuid() }), Yo = e.void(), Xo = e.object({ uuid: e.uuid() }), Zo = e.void(), Qo = e.object({ uuid: e.uuid() }), $o = e.object({
|
|
3053
3074
|
pagination: h.optional(),
|
|
3054
|
-
filter:
|
|
3055
|
-
}),
|
|
3075
|
+
filter: mi.optional()
|
|
3076
|
+
}), es = bi, ts = e.object({ token: e.string() }), ns = Ei, rs = ki, is = ji, as = e.void(), os = Pi, ss = Ri, cs = Li, ls = Ii, us = (t) => (t?.client ?? p).get({
|
|
3056
3077
|
requestValidator: async (t) => await e.object({
|
|
3057
3078
|
body: e.never().optional(),
|
|
3058
3079
|
path: e.never().optional(),
|
|
3059
|
-
query:
|
|
3080
|
+
query: zi.optional()
|
|
3060
3081
|
}).parseAsync(t),
|
|
3061
|
-
responseValidator: async (e) => await
|
|
3082
|
+
responseValidator: async (e) => await Bi.parseAsync(e),
|
|
3062
3083
|
url: "/api/v1/users",
|
|
3063
3084
|
...t
|
|
3064
|
-
}),
|
|
3085
|
+
}), ds = (t) => (t.client ?? p).post({
|
|
3065
3086
|
requestValidator: async (t) => await e.object({
|
|
3066
|
-
body:
|
|
3087
|
+
body: Vi,
|
|
3067
3088
|
path: e.never().optional(),
|
|
3068
3089
|
query: e.never().optional()
|
|
3069
3090
|
}).parseAsync(t),
|
|
3070
|
-
responseValidator: async (e) => await
|
|
3091
|
+
responseValidator: async (e) => await Hi.parseAsync(e),
|
|
3071
3092
|
url: "/api/v1/files",
|
|
3072
3093
|
...t,
|
|
3073
3094
|
headers: {
|
|
3074
3095
|
"Content-Type": "application/json",
|
|
3075
3096
|
...t.headers
|
|
3076
3097
|
}
|
|
3077
|
-
}),
|
|
3098
|
+
}), fs = (t) => (t.client ?? p).post({
|
|
3078
3099
|
requestValidator: async (t) => await e.object({
|
|
3079
|
-
body:
|
|
3080
|
-
path:
|
|
3100
|
+
body: Ui,
|
|
3101
|
+
path: Wi,
|
|
3081
3102
|
query: e.never().optional()
|
|
3082
3103
|
}).parseAsync(t),
|
|
3083
|
-
responseValidator: async (e) => await
|
|
3104
|
+
responseValidator: async (e) => await Gi.parseAsync(e),
|
|
3084
3105
|
url: "/api/v2/files/{file}/confirm-upload",
|
|
3085
3106
|
...t,
|
|
3086
3107
|
headers: {
|
|
3087
3108
|
"Content-Type": "application/json",
|
|
3088
3109
|
...t.headers
|
|
3089
3110
|
}
|
|
3090
|
-
}),
|
|
3111
|
+
}), ps = (t) => (t.client ?? p).post({
|
|
3091
3112
|
requestValidator: async (t) => await e.object({
|
|
3092
3113
|
body: e.never().optional(),
|
|
3093
|
-
path:
|
|
3114
|
+
path: Ki,
|
|
3094
3115
|
query: e.never().optional()
|
|
3095
3116
|
}).parseAsync(t),
|
|
3096
3117
|
url: "/api/v1/files/{file}/download",
|
|
3097
3118
|
...t
|
|
3098
|
-
}),
|
|
3119
|
+
}), ms = (t) => (t?.client ?? p).get({
|
|
3099
3120
|
requestValidator: async (t) => await e.object({
|
|
3100
3121
|
body: e.never().optional(),
|
|
3101
3122
|
path: e.never().optional(),
|
|
3102
|
-
query:
|
|
3123
|
+
query: qi.optional()
|
|
3103
3124
|
}).parseAsync(t),
|
|
3104
|
-
responseValidator: async (e) => await
|
|
3125
|
+
responseValidator: async (e) => await Ji.parseAsync(e),
|
|
3105
3126
|
url: "/api/v1/customers",
|
|
3106
3127
|
...t
|
|
3107
|
-
}),
|
|
3128
|
+
}), hs = (t) => (t.client ?? p).get({
|
|
3108
3129
|
requestValidator: async (t) => await e.object({
|
|
3109
3130
|
body: e.never().optional(),
|
|
3110
|
-
path:
|
|
3131
|
+
path: Yi,
|
|
3111
3132
|
query: e.never().optional()
|
|
3112
3133
|
}).parseAsync(t),
|
|
3113
|
-
responseValidator: async (e) => await
|
|
3134
|
+
responseValidator: async (e) => await Xi.parseAsync(e),
|
|
3114
3135
|
url: "/api/v1/customers/{uuid}",
|
|
3115
3136
|
...t
|
|
3116
|
-
}),
|
|
3137
|
+
}), gs = (t) => (t.client ?? p).get({
|
|
3117
3138
|
requestValidator: async (t) => await e.object({
|
|
3118
3139
|
body: e.never().optional(),
|
|
3119
|
-
path:
|
|
3120
|
-
query:
|
|
3140
|
+
path: Zi,
|
|
3141
|
+
query: Qi.optional()
|
|
3121
3142
|
}).parseAsync(t),
|
|
3122
|
-
responseValidator: async (e) => await
|
|
3143
|
+
responseValidator: async (e) => await $i.parseAsync(e),
|
|
3123
3144
|
url: "/api/v1/customers/{uuid}/recipients",
|
|
3124
3145
|
...t
|
|
3125
|
-
}),
|
|
3146
|
+
}), _s = (t) => (t?.client ?? p).get({
|
|
3126
3147
|
requestValidator: async (t) => await e.object({
|
|
3127
3148
|
body: e.never().optional(),
|
|
3128
3149
|
path: e.never().optional(),
|
|
3129
3150
|
query: e.never().optional()
|
|
3130
3151
|
}).parseAsync(t),
|
|
3131
|
-
responseValidator: async (e) => await
|
|
3152
|
+
responseValidator: async (e) => await ea.parseAsync(e),
|
|
3132
3153
|
url: "/api/v1/issuers",
|
|
3133
3154
|
...t
|
|
3134
|
-
}),
|
|
3155
|
+
}), vs = (t) => (t.client ?? p).put({
|
|
3135
3156
|
requestValidator: async (t) => await e.object({
|
|
3136
|
-
body:
|
|
3157
|
+
body: ta,
|
|
3137
3158
|
path: e.never().optional(),
|
|
3138
3159
|
query: e.never().optional()
|
|
3139
3160
|
}).parseAsync(t),
|
|
3140
|
-
responseValidator: async (e) => await
|
|
3161
|
+
responseValidator: async (e) => await na.parseAsync(e),
|
|
3141
3162
|
url: "/api/v1/issuers",
|
|
3142
3163
|
...t,
|
|
3143
3164
|
headers: {
|
|
3144
3165
|
"Content-Type": "application/json",
|
|
3145
3166
|
...t.headers
|
|
3146
3167
|
}
|
|
3147
|
-
}),
|
|
3168
|
+
}), ys = (t) => (t.client ?? p).get({
|
|
3148
3169
|
requestValidator: async (t) => await e.object({
|
|
3149
3170
|
body: e.never().optional(),
|
|
3150
3171
|
path: e.never().optional(),
|
|
3151
|
-
query:
|
|
3172
|
+
query: ra
|
|
3152
3173
|
}).parseAsync(t),
|
|
3153
|
-
responseValidator: async (e) => await
|
|
3174
|
+
responseValidator: async (e) => await ia.parseAsync(e),
|
|
3154
3175
|
url: "/api/v1/public/invoices",
|
|
3155
3176
|
...t
|
|
3156
|
-
}),
|
|
3177
|
+
}), bs = (t) => (t?.client ?? p).get({
|
|
3157
3178
|
requestValidator: async (t) => await e.object({
|
|
3158
3179
|
body: e.never().optional(),
|
|
3159
3180
|
path: e.never().optional(),
|
|
3160
|
-
query:
|
|
3181
|
+
query: aa.optional()
|
|
3161
3182
|
}).parseAsync(t),
|
|
3162
|
-
responseValidator: async (e) => await
|
|
3183
|
+
responseValidator: async (e) => await oa.parseAsync(e),
|
|
3163
3184
|
url: "/api/v1/invoices",
|
|
3164
3185
|
...t
|
|
3165
|
-
}),
|
|
3186
|
+
}), xs = (t) => (t.client ?? p).post({
|
|
3166
3187
|
requestValidator: async (t) => await e.object({
|
|
3167
|
-
body:
|
|
3188
|
+
body: sa,
|
|
3168
3189
|
path: e.never().optional(),
|
|
3169
3190
|
query: e.never().optional()
|
|
3170
3191
|
}).parseAsync(t),
|
|
3171
|
-
responseValidator: async (e) => await
|
|
3192
|
+
responseValidator: async (e) => await ca.parseAsync(e),
|
|
3172
3193
|
url: "/api/v1/invoices",
|
|
3173
3194
|
...t,
|
|
3174
3195
|
headers: {
|
|
3175
3196
|
"Content-Type": "application/json",
|
|
3176
3197
|
...t.headers
|
|
3177
3198
|
}
|
|
3178
|
-
}),
|
|
3199
|
+
}), Ss = (t) => (t.client ?? p).delete({
|
|
3179
3200
|
requestValidator: async (t) => await e.object({
|
|
3180
3201
|
body: e.never().optional(),
|
|
3181
|
-
path:
|
|
3202
|
+
path: la,
|
|
3182
3203
|
query: e.never().optional()
|
|
3183
3204
|
}).parseAsync(t),
|
|
3184
|
-
responseValidator: async (e) => await
|
|
3205
|
+
responseValidator: async (e) => await ua.parseAsync(e),
|
|
3185
3206
|
url: "/api/v1/invoices/{uuid}",
|
|
3186
3207
|
...t
|
|
3187
|
-
}),
|
|
3208
|
+
}), Cs = (t) => (t.client ?? p).get({
|
|
3188
3209
|
requestValidator: async (t) => await e.object({
|
|
3189
3210
|
body: e.never().optional(),
|
|
3190
|
-
path:
|
|
3211
|
+
path: da,
|
|
3191
3212
|
query: e.never().optional()
|
|
3192
3213
|
}).parseAsync(t),
|
|
3193
|
-
responseValidator: async (e) => await
|
|
3214
|
+
responseValidator: async (e) => await fa.parseAsync(e),
|
|
3194
3215
|
url: "/api/v1/invoices/{uuid}",
|
|
3195
3216
|
...t
|
|
3196
|
-
}),
|
|
3217
|
+
}), ws = (t) => (t.client ?? p).patch({
|
|
3197
3218
|
requestValidator: async (t) => await e.object({
|
|
3198
|
-
body:
|
|
3199
|
-
path:
|
|
3219
|
+
body: pa,
|
|
3220
|
+
path: ma,
|
|
3200
3221
|
query: e.never().optional()
|
|
3201
3222
|
}).parseAsync(t),
|
|
3202
|
-
responseValidator: async (e) => await
|
|
3223
|
+
responseValidator: async (e) => await ha.parseAsync(e),
|
|
3203
3224
|
url: "/api/v1/invoices/{uuid}",
|
|
3204
3225
|
...t,
|
|
3205
3226
|
headers: {
|
|
3206
3227
|
"Content-Type": "application/json",
|
|
3207
3228
|
...t.headers
|
|
3208
3229
|
}
|
|
3209
|
-
}),
|
|
3230
|
+
}), Ts = (t) => (t.client ?? p).patch({
|
|
3210
3231
|
requestValidator: async (t) => await e.object({
|
|
3211
|
-
body:
|
|
3212
|
-
path:
|
|
3232
|
+
body: ga,
|
|
3233
|
+
path: _a,
|
|
3213
3234
|
query: e.never().optional()
|
|
3214
3235
|
}).parseAsync(t),
|
|
3215
|
-
responseValidator: async (e) => await
|
|
3236
|
+
responseValidator: async (e) => await va.parseAsync(e),
|
|
3216
3237
|
url: "/api/v1/invoices/{uuid}/lines",
|
|
3217
3238
|
...t,
|
|
3218
3239
|
headers: {
|
|
3219
3240
|
"Content-Type": "application/json",
|
|
3220
3241
|
...t.headers
|
|
3221
3242
|
}
|
|
3222
|
-
}),
|
|
3243
|
+
}), Es = (t) => (t.client ?? p).patch({
|
|
3223
3244
|
requestValidator: async (t) => await e.object({
|
|
3224
|
-
body:
|
|
3225
|
-
path:
|
|
3245
|
+
body: ya,
|
|
3246
|
+
path: ba,
|
|
3226
3247
|
query: e.never().optional()
|
|
3227
3248
|
}).parseAsync(t),
|
|
3228
|
-
responseValidator: async (e) => await
|
|
3249
|
+
responseValidator: async (e) => await xa.parseAsync(e),
|
|
3229
3250
|
url: "/api/v2/invoices/{uuid}/discount",
|
|
3230
3251
|
...t,
|
|
3231
3252
|
headers: {
|
|
3232
3253
|
"Content-Type": "application/json",
|
|
3233
3254
|
...t.headers
|
|
3234
3255
|
}
|
|
3235
|
-
}),
|
|
3256
|
+
}), Ds = (t) => (t.client ?? p).patch({
|
|
3236
3257
|
requestValidator: async (t) => await e.object({
|
|
3237
|
-
body:
|
|
3238
|
-
path:
|
|
3258
|
+
body: Sa,
|
|
3259
|
+
path: Ca,
|
|
3239
3260
|
query: e.never().optional()
|
|
3240
3261
|
}).parseAsync(t),
|
|
3241
|
-
responseValidator: async (e) => await
|
|
3262
|
+
responseValidator: async (e) => await wa.parseAsync(e),
|
|
3242
3263
|
url: "/api/v1/invoices/{uuid}/attachments",
|
|
3243
3264
|
...t,
|
|
3244
3265
|
headers: {
|
|
3245
3266
|
"Content-Type": "application/json",
|
|
3246
3267
|
...t.headers
|
|
3247
3268
|
}
|
|
3248
|
-
}),
|
|
3269
|
+
}), Os = (t) => (t.client ?? p).post({
|
|
3249
3270
|
requestValidator: async (t) => await e.object({
|
|
3250
3271
|
body: e.never().optional(),
|
|
3251
|
-
path:
|
|
3272
|
+
path: Ta,
|
|
3252
3273
|
query: e.never().optional()
|
|
3253
3274
|
}).parseAsync(t),
|
|
3254
3275
|
url: "/api/v1/invoices/{uuid}/finalize",
|
|
3255
3276
|
...t
|
|
3256
|
-
}),
|
|
3277
|
+
}), ks = (t) => (t.client ?? p).post({
|
|
3257
3278
|
requestValidator: async (t) => await e.object({
|
|
3258
3279
|
body: e.never().optional(),
|
|
3259
|
-
path:
|
|
3280
|
+
path: Ea,
|
|
3260
3281
|
query: e.never().optional()
|
|
3261
3282
|
}).parseAsync(t),
|
|
3262
|
-
responseValidator: async (e) => await
|
|
3283
|
+
responseValidator: async (e) => await Da.parseAsync(e),
|
|
3263
3284
|
url: "/api/v1/invoices/{uuid}/credit-note",
|
|
3264
3285
|
...t
|
|
3265
|
-
}),
|
|
3286
|
+
}), As = (t) => (t.client ?? p).patch({
|
|
3266
3287
|
requestValidator: async (t) => await e.object({
|
|
3267
|
-
body:
|
|
3268
|
-
path:
|
|
3288
|
+
body: Oa,
|
|
3289
|
+
path: ka,
|
|
3269
3290
|
query: e.never().optional()
|
|
3270
3291
|
}).parseAsync(t),
|
|
3271
|
-
responseValidator: async (e) => await
|
|
3292
|
+
responseValidator: async (e) => await Aa.parseAsync(e),
|
|
3272
3293
|
url: "/api/v1/credit-notes/{uuid}/lines",
|
|
3273
3294
|
...t,
|
|
3274
3295
|
headers: {
|
|
3275
3296
|
"Content-Type": "application/json",
|
|
3276
3297
|
...t.headers
|
|
3277
3298
|
}
|
|
3278
|
-
}),
|
|
3299
|
+
}), js = (t) => (t.client ?? p).patch({
|
|
3279
3300
|
requestValidator: async (t) => await e.object({
|
|
3280
|
-
body:
|
|
3281
|
-
path:
|
|
3301
|
+
body: ja,
|
|
3302
|
+
path: Ma,
|
|
3282
3303
|
query: e.never().optional()
|
|
3283
3304
|
}).parseAsync(t),
|
|
3284
|
-
responseValidator: async (e) => await
|
|
3305
|
+
responseValidator: async (e) => await Na.parseAsync(e),
|
|
3285
3306
|
url: "/api/v1/credit-notes/{uuid}",
|
|
3286
3307
|
...t,
|
|
3287
3308
|
headers: {
|
|
3288
3309
|
"Content-Type": "application/json",
|
|
3289
3310
|
...t.headers
|
|
3290
3311
|
}
|
|
3291
|
-
}),
|
|
3312
|
+
}), Ms = (t) => (t.client ?? p).post({
|
|
3292
3313
|
requestValidator: async (t) => await e.object({
|
|
3293
3314
|
body: e.never().optional(),
|
|
3294
|
-
path:
|
|
3315
|
+
path: Pa,
|
|
3295
3316
|
query: e.never().optional()
|
|
3296
3317
|
}).parseAsync(t),
|
|
3297
3318
|
url: "/api/v1/credit-notes/{uuid}/finalize",
|
|
3298
3319
|
...t
|
|
3299
|
-
}),
|
|
3320
|
+
}), Ns = (t) => (t.client ?? p).post({
|
|
3300
3321
|
requestValidator: async (t) => await e.object({
|
|
3301
3322
|
body: e.never().optional(),
|
|
3302
|
-
path:
|
|
3323
|
+
path: Fa,
|
|
3303
3324
|
query: e.never().optional()
|
|
3304
3325
|
}).parseAsync(t),
|
|
3305
3326
|
url: "/api/v1/invoices/{uuid}/send-email",
|
|
3306
3327
|
...t
|
|
3307
|
-
}),
|
|
3328
|
+
}), Ps = (t) => (t?.client ?? p).post({
|
|
3308
3329
|
requestValidator: async (t) => await e.object({
|
|
3309
3330
|
body: e.never().optional(),
|
|
3310
3331
|
path: e.never().optional(),
|
|
3311
|
-
query:
|
|
3332
|
+
query: Ia.optional()
|
|
3312
3333
|
}).parseAsync(t),
|
|
3313
|
-
responseValidator: async (e) => await
|
|
3334
|
+
responseValidator: async (e) => await La.parseAsync(e),
|
|
3314
3335
|
url: "/api/v1/invoices/send-mail",
|
|
3315
3336
|
...t
|
|
3316
|
-
}),
|
|
3337
|
+
}), Fs = (t) => (t?.client ?? p).get({
|
|
3317
3338
|
requestValidator: async (t) => await e.object({
|
|
3318
3339
|
body: e.never().optional(),
|
|
3319
3340
|
path: e.never().optional(),
|
|
3320
|
-
query:
|
|
3341
|
+
query: Ra.optional()
|
|
3321
3342
|
}).parseAsync(t),
|
|
3322
|
-
responseValidator: async (e) => await
|
|
3343
|
+
responseValidator: async (e) => await za.parseAsync(e),
|
|
3323
3344
|
url: "/api/v1/invoices/send-mail/preview",
|
|
3324
3345
|
...t
|
|
3325
|
-
}),
|
|
3346
|
+
}), Is = (t) => (t.client ?? p).post({
|
|
3326
3347
|
requestValidator: async (t) => await e.object({
|
|
3327
3348
|
body: e.never().optional(),
|
|
3328
|
-
path:
|
|
3349
|
+
path: Ba,
|
|
3329
3350
|
query: e.never().optional()
|
|
3330
3351
|
}).parseAsync(t),
|
|
3331
|
-
responseValidator: async (e) => await
|
|
3352
|
+
responseValidator: async (e) => await Va.parseAsync(e),
|
|
3332
3353
|
url: "/api/v1/invoices/{uuid}/mark-as-ready",
|
|
3333
3354
|
...t
|
|
3334
|
-
}),
|
|
3355
|
+
}), Ls = (t) => (t.client ?? p).post({
|
|
3335
3356
|
requestValidator: async (t) => await e.object({
|
|
3336
3357
|
body: e.never().optional(),
|
|
3337
|
-
path:
|
|
3358
|
+
path: Ha,
|
|
3338
3359
|
query: e.never().optional()
|
|
3339
3360
|
}).parseAsync(t),
|
|
3340
|
-
responseValidator: async (e) => await
|
|
3361
|
+
responseValidator: async (e) => await Ua.parseAsync(e),
|
|
3341
3362
|
url: "/api/v1/invoices/{uuid}/duplicate",
|
|
3342
3363
|
...t
|
|
3343
|
-
}),
|
|
3364
|
+
}), Rs = (t) => (t.client ?? p).post({
|
|
3344
3365
|
requestValidator: async (t) => await e.object({
|
|
3345
3366
|
body: e.never().optional(),
|
|
3346
|
-
path:
|
|
3367
|
+
path: Wa,
|
|
3347
3368
|
query: e.never().optional()
|
|
3348
3369
|
}).parseAsync(t),
|
|
3349
|
-
responseValidator: async (e) => await
|
|
3370
|
+
responseValidator: async (e) => await Ga.parseAsync(e),
|
|
3350
3371
|
url: "/api/v1/invoices/{uuid}/mark-as-draft",
|
|
3351
3372
|
...t
|
|
3352
|
-
}),
|
|
3373
|
+
}), zs = (t) => (t.client ?? p).post({
|
|
3353
3374
|
requestValidator: async (t) => await e.object({
|
|
3354
3375
|
body: e.never().optional(),
|
|
3355
|
-
path:
|
|
3376
|
+
path: Ka,
|
|
3356
3377
|
query: e.never().optional()
|
|
3357
3378
|
}).parseAsync(t),
|
|
3358
|
-
responseValidator: async (e) => await
|
|
3379
|
+
responseValidator: async (e) => await qa.parseAsync(e),
|
|
3359
3380
|
url: "/api/v1/invoices/{uuid}/mark-as-prior-approval-required",
|
|
3360
3381
|
...t
|
|
3361
|
-
}),
|
|
3382
|
+
}), Bs = (t) => (t.client ?? p).post({
|
|
3362
3383
|
requestValidator: async (t) => await e.object({
|
|
3363
3384
|
body: e.never().optional(),
|
|
3364
|
-
path:
|
|
3385
|
+
path: Ja,
|
|
3365
3386
|
query: e.never().optional()
|
|
3366
3387
|
}).parseAsync(t),
|
|
3367
|
-
responseValidator: async (e) => await
|
|
3388
|
+
responseValidator: async (e) => await Ya.parseAsync(e),
|
|
3368
3389
|
url: "/api/v1/invoices/{uuid}/unmark-as-prior-approval-required",
|
|
3369
3390
|
...t
|
|
3370
|
-
}),
|
|
3391
|
+
}), Vs = (t) => (t.client ?? p).post({
|
|
3371
3392
|
requestValidator: async (t) => await e.object({
|
|
3372
3393
|
body: e.never().optional(),
|
|
3373
|
-
path:
|
|
3394
|
+
path: Xa,
|
|
3374
3395
|
query: e.never().optional()
|
|
3375
3396
|
}).parseAsync(t),
|
|
3376
|
-
responseValidator: async (e) => await
|
|
3397
|
+
responseValidator: async (e) => await Za.parseAsync(e),
|
|
3377
3398
|
url: "/api/v1/invoices/{uuid}/mark-as-disputed",
|
|
3378
3399
|
...t
|
|
3379
|
-
}),
|
|
3400
|
+
}), Hs = (t) => (t.client ?? p).post({
|
|
3380
3401
|
requestValidator: async (t) => await e.object({
|
|
3381
3402
|
body: e.never().optional(),
|
|
3382
|
-
path:
|
|
3403
|
+
path: Qa,
|
|
3383
3404
|
query: e.never().optional()
|
|
3384
3405
|
}).parseAsync(t),
|
|
3385
|
-
responseValidator: async (e) => await
|
|
3406
|
+
responseValidator: async (e) => await $a.parseAsync(e),
|
|
3386
3407
|
url: "/api/v1/invoices/{uuid}/mark-as-paid",
|
|
3387
3408
|
...t
|
|
3388
|
-
}),
|
|
3409
|
+
}), Us = (t) => (t?.client ?? p).get({
|
|
3389
3410
|
requestValidator: async (t) => await e.object({
|
|
3390
3411
|
body: e.never().optional(),
|
|
3391
3412
|
path: e.never().optional(),
|
|
3392
|
-
query:
|
|
3413
|
+
query: eo.optional()
|
|
3393
3414
|
}).parseAsync(t),
|
|
3394
|
-
responseValidator: async (e) => await
|
|
3415
|
+
responseValidator: async (e) => await to.parseAsync(e),
|
|
3395
3416
|
url: "/api/v1/invoices/mark-as-ready/preview",
|
|
3396
3417
|
...t
|
|
3397
|
-
}),
|
|
3418
|
+
}), Ws = (t) => (t?.client ?? p).post({
|
|
3398
3419
|
requestValidator: async (t) => await e.object({
|
|
3399
3420
|
body: e.never().optional(),
|
|
3400
3421
|
path: e.never().optional(),
|
|
3401
|
-
query:
|
|
3422
|
+
query: no.optional()
|
|
3402
3423
|
}).parseAsync(t),
|
|
3403
|
-
responseValidator: async (e) => await
|
|
3424
|
+
responseValidator: async (e) => await ro.parseAsync(e),
|
|
3404
3425
|
url: "/api/v1/invoices/mark-as-ready",
|
|
3405
3426
|
...t
|
|
3406
|
-
}),
|
|
3427
|
+
}), Gs = (t) => (t.client ?? p).post({
|
|
3407
3428
|
requestValidator: async (t) => await e.object({
|
|
3408
3429
|
body: e.never().optional(),
|
|
3409
|
-
path:
|
|
3430
|
+
path: io,
|
|
3410
3431
|
query: e.never().optional()
|
|
3411
3432
|
}).parseAsync(t),
|
|
3412
|
-
responseValidator: async (e) => await
|
|
3433
|
+
responseValidator: async (e) => await ao.parseAsync(e),
|
|
3413
3434
|
url: "/api/v1/invoices/{uuid}/withdraw-disputed",
|
|
3414
3435
|
...t
|
|
3415
|
-
}),
|
|
3436
|
+
}), Ks = (t) => (t?.client ?? p).get({
|
|
3416
3437
|
requestValidator: async (t) => await e.object({
|
|
3417
3438
|
body: e.never().optional(),
|
|
3418
3439
|
path: e.never().optional(),
|
|
3419
|
-
query:
|
|
3440
|
+
query: oo.optional()
|
|
3420
3441
|
}).parseAsync(t),
|
|
3421
|
-
responseValidator: async (e) => await
|
|
3442
|
+
responseValidator: async (e) => await so.parseAsync(e),
|
|
3422
3443
|
url: "/api/v1/invoices/finalize/preview",
|
|
3423
3444
|
...t
|
|
3424
|
-
}),
|
|
3445
|
+
}), qs = (t) => (t?.client ?? p).post({
|
|
3425
3446
|
requestValidator: async (t) => await e.object({
|
|
3426
3447
|
body: e.never().optional(),
|
|
3427
3448
|
path: e.never().optional(),
|
|
3428
|
-
query:
|
|
3449
|
+
query: co.optional()
|
|
3429
3450
|
}).parseAsync(t),
|
|
3430
|
-
responseValidator: async (e) => await
|
|
3451
|
+
responseValidator: async (e) => await lo.parseAsync(e),
|
|
3431
3452
|
url: "/api/v1/invoices/finalize",
|
|
3432
3453
|
...t
|
|
3433
|
-
}),
|
|
3454
|
+
}), Js = (t) => (t.client ?? p).post({
|
|
3434
3455
|
requestValidator: async (t) => await e.object({
|
|
3435
3456
|
body: e.never().optional(),
|
|
3436
|
-
path:
|
|
3457
|
+
path: uo,
|
|
3437
3458
|
query: e.never().optional()
|
|
3438
3459
|
}).parseAsync(t),
|
|
3439
|
-
responseValidator: async (e) => await
|
|
3460
|
+
responseValidator: async (e) => await fo.parseAsync(e),
|
|
3440
3461
|
url: "/api/v1/invoices/{uuid}/restore-from-pro-forma",
|
|
3441
3462
|
...t
|
|
3442
|
-
}),
|
|
3463
|
+
}), Ys = (t) => (t?.client ?? p).get({
|
|
3443
3464
|
requestValidator: async (t) => await e.object({
|
|
3444
3465
|
body: e.never().optional(),
|
|
3445
3466
|
path: e.never().optional(),
|
|
3446
|
-
query:
|
|
3467
|
+
query: po.optional()
|
|
3447
3468
|
}).parseAsync(t),
|
|
3448
|
-
responseValidator: async (e) => await
|
|
3469
|
+
responseValidator: async (e) => await mo.parseAsync(e),
|
|
3449
3470
|
url: "/api/v1/activity-logs",
|
|
3450
3471
|
...t
|
|
3451
|
-
}),
|
|
3472
|
+
}), Xs = (t) => (t.client ?? p).get({
|
|
3452
3473
|
requestValidator: async (t) => await e.object({
|
|
3453
3474
|
body: e.never().optional(),
|
|
3454
|
-
path:
|
|
3475
|
+
path: ho,
|
|
3455
3476
|
query: e.never().optional()
|
|
3456
3477
|
}).parseAsync(t),
|
|
3457
|
-
responseValidator: async (e) => await
|
|
3478
|
+
responseValidator: async (e) => await go.parseAsync(e),
|
|
3458
3479
|
url: "/api/v1/invoices/{uuid}/payments",
|
|
3459
3480
|
...t
|
|
3460
|
-
}),
|
|
3481
|
+
}), Zs = (t) => (t.client ?? p).post({
|
|
3461
3482
|
requestValidator: async (t) => await e.object({
|
|
3462
|
-
body:
|
|
3463
|
-
path:
|
|
3483
|
+
body: _o,
|
|
3484
|
+
path: vo,
|
|
3464
3485
|
query: e.never().optional()
|
|
3465
3486
|
}).parseAsync(t),
|
|
3466
|
-
responseValidator: async (e) => await
|
|
3487
|
+
responseValidator: async (e) => await yo.parseAsync(e),
|
|
3467
3488
|
url: "/api/v1/invoices/{uuid}/payments",
|
|
3468
3489
|
...t,
|
|
3469
3490
|
headers: {
|
|
3470
3491
|
"Content-Type": "application/json",
|
|
3471
3492
|
...t.headers
|
|
3472
3493
|
}
|
|
3473
|
-
}),
|
|
3494
|
+
}), Qs = (t) => (t.client ?? p).delete({
|
|
3474
3495
|
requestValidator: async (t) => await e.object({
|
|
3475
3496
|
body: e.never().optional(),
|
|
3476
|
-
path:
|
|
3497
|
+
path: bo,
|
|
3477
3498
|
query: e.never().optional()
|
|
3478
3499
|
}).parseAsync(t),
|
|
3479
|
-
responseValidator: async (e) => await
|
|
3500
|
+
responseValidator: async (e) => await xo.parseAsync(e),
|
|
3480
3501
|
url: "/api/v1/invoices/{uuid}/payments/{paymentUuid}",
|
|
3481
3502
|
...t
|
|
3482
|
-
}),
|
|
3503
|
+
}), $s = (t) => (t?.client ?? p).get({
|
|
3483
3504
|
requestValidator: async (t) => await e.object({
|
|
3484
3505
|
body: e.never().optional(),
|
|
3485
3506
|
path: e.never().optional(),
|
|
3486
3507
|
query: e.never().optional()
|
|
3487
3508
|
}).parseAsync(t),
|
|
3488
|
-
responseValidator: async (e) => await
|
|
3509
|
+
responseValidator: async (e) => await So.parseAsync(e),
|
|
3489
3510
|
url: "/api/v1/issuers/reminder-configs",
|
|
3490
3511
|
...t
|
|
3491
|
-
}),
|
|
3512
|
+
}), ec = (t) => (t.client ?? p).patch({
|
|
3492
3513
|
requestValidator: async (t) => await e.object({
|
|
3493
|
-
body:
|
|
3514
|
+
body: Co,
|
|
3494
3515
|
path: e.never().optional(),
|
|
3495
3516
|
query: e.never().optional()
|
|
3496
3517
|
}).parseAsync(t),
|
|
3497
|
-
responseValidator: async (e) => await
|
|
3518
|
+
responseValidator: async (e) => await wo.parseAsync(e),
|
|
3498
3519
|
url: "/api/v1/issuers/reminder-configs",
|
|
3499
3520
|
...t,
|
|
3500
3521
|
headers: {
|
|
3501
3522
|
"Content-Type": "application/json",
|
|
3502
3523
|
...t.headers
|
|
3503
3524
|
}
|
|
3504
|
-
}),
|
|
3525
|
+
}), tc = (t) => (t?.client ?? p).get({
|
|
3505
3526
|
requestValidator: async (t) => await e.object({
|
|
3506
3527
|
body: e.never().optional(),
|
|
3507
3528
|
path: e.never().optional(),
|
|
3508
|
-
query:
|
|
3529
|
+
query: To.optional()
|
|
3509
3530
|
}).parseAsync(t),
|
|
3510
|
-
responseValidator: async (e) => await
|
|
3531
|
+
responseValidator: async (e) => await Eo.parseAsync(e),
|
|
3511
3532
|
url: "/api/v1/custom-field-definitions",
|
|
3512
3533
|
...t
|
|
3513
|
-
}),
|
|
3534
|
+
}), nc = (t) => (t.client ?? p).get({
|
|
3514
3535
|
requestValidator: async (t) => await e.object({
|
|
3515
3536
|
body: e.never().optional(),
|
|
3516
|
-
path:
|
|
3537
|
+
path: Do,
|
|
3517
3538
|
query: e.never().optional()
|
|
3518
3539
|
}).parseAsync(t),
|
|
3519
|
-
responseValidator: async (e) => await
|
|
3540
|
+
responseValidator: async (e) => await Oo.parseAsync(e),
|
|
3520
3541
|
url: "/api/v1/dunning-cases/{uuid}",
|
|
3521
3542
|
...t
|
|
3522
|
-
}),
|
|
3543
|
+
}), rc = (t) => (t?.client ?? p).get({
|
|
3523
3544
|
requestValidator: async (t) => await e.object({
|
|
3524
3545
|
body: e.never().optional(),
|
|
3525
3546
|
path: e.never().optional(),
|
|
3526
|
-
query:
|
|
3547
|
+
query: ko.optional()
|
|
3527
3548
|
}).parseAsync(t),
|
|
3528
|
-
responseValidator: async (e) => await
|
|
3549
|
+
responseValidator: async (e) => await Ao.parseAsync(e),
|
|
3529
3550
|
url: "/api/v1/dunning-cases",
|
|
3530
3551
|
...t
|
|
3531
|
-
}),
|
|
3552
|
+
}), ic = (t) => (t.client ?? p).post({
|
|
3532
3553
|
requestValidator: async (t) => await e.object({
|
|
3533
3554
|
body: e.never().optional(),
|
|
3534
|
-
path:
|
|
3555
|
+
path: jo,
|
|
3535
3556
|
query: e.never().optional()
|
|
3536
3557
|
}).parseAsync(t),
|
|
3537
3558
|
url: "/api/v1/dunning-cases/{uuid}/send",
|
|
3538
3559
|
...t
|
|
3539
|
-
}),
|
|
3560
|
+
}), ac = (t) => (t.client ?? p).post({
|
|
3540
3561
|
requestValidator: async (t) => await e.object({
|
|
3541
3562
|
body: e.never().optional(),
|
|
3542
|
-
path:
|
|
3563
|
+
path: Mo,
|
|
3543
3564
|
query: e.never().optional()
|
|
3544
3565
|
}).parseAsync(t),
|
|
3545
3566
|
url: "/api/v1/dunning-case-reminders/{uuid}/retry",
|
|
3546
3567
|
...t
|
|
3547
|
-
}),
|
|
3568
|
+
}), oc = (t) => (t?.client ?? p).post({
|
|
3548
3569
|
requestValidator: async (t) => await e.object({
|
|
3549
3570
|
body: e.never().optional(),
|
|
3550
3571
|
path: e.never().optional(),
|
|
3551
|
-
query:
|
|
3572
|
+
query: No.optional()
|
|
3552
3573
|
}).parseAsync(t),
|
|
3553
|
-
responseValidator: async (e) => await
|
|
3574
|
+
responseValidator: async (e) => await Po.parseAsync(e),
|
|
3554
3575
|
url: "/api/v1/dunning-cases/send",
|
|
3555
3576
|
...t
|
|
3556
|
-
}),
|
|
3577
|
+
}), sc = (t) => (t?.client ?? p).get({
|
|
3557
3578
|
requestValidator: async (t) => await e.object({
|
|
3558
3579
|
body: e.never().optional(),
|
|
3559
3580
|
path: e.never().optional(),
|
|
3560
|
-
query:
|
|
3581
|
+
query: Fo.optional()
|
|
3561
3582
|
}).parseAsync(t),
|
|
3562
|
-
responseValidator: async (e) => await
|
|
3583
|
+
responseValidator: async (e) => await Io.parseAsync(e),
|
|
3563
3584
|
url: "/api/v1/dunning-cases/send/preview",
|
|
3564
3585
|
...t
|
|
3565
|
-
}),
|
|
3586
|
+
}), cc = (t) => (t.client ?? p).get({
|
|
3566
3587
|
requestValidator: async (t) => await e.object({
|
|
3567
3588
|
body: e.never().optional(),
|
|
3568
3589
|
path: e.never().optional(),
|
|
3569
|
-
query:
|
|
3590
|
+
query: Lo
|
|
3570
3591
|
}).parseAsync(t),
|
|
3571
|
-
responseValidator: async (e) => await
|
|
3592
|
+
responseValidator: async (e) => await Ro.parseAsync(e),
|
|
3572
3593
|
url: "/api/v1/public/dunning-case-reminder-invoices",
|
|
3573
3594
|
...t
|
|
3574
|
-
}),
|
|
3595
|
+
}), lc = (t) => (t.client ?? p).post({
|
|
3575
3596
|
requestValidator: async (t) => await e.object({
|
|
3576
3597
|
body: e.never().optional(),
|
|
3577
|
-
path:
|
|
3598
|
+
path: zo,
|
|
3578
3599
|
query: e.never().optional()
|
|
3579
3600
|
}).parseAsync(t),
|
|
3580
3601
|
url: "/api/v1/invoices/{uuid}/send-approval",
|
|
3581
3602
|
...t
|
|
3582
|
-
}),
|
|
3603
|
+
}), uc = (t) => (t?.client ?? p).get({
|
|
3583
3604
|
requestValidator: async (t) => await e.object({
|
|
3584
3605
|
body: e.never().optional(),
|
|
3585
3606
|
path: e.never().optional(),
|
|
3586
|
-
query:
|
|
3607
|
+
query: Bo.optional()
|
|
3587
3608
|
}).parseAsync(t),
|
|
3588
|
-
responseValidator: async (e) => await
|
|
3609
|
+
responseValidator: async (e) => await Vo.parseAsync(e),
|
|
3589
3610
|
url: "/api/v1/invoices/send-approval/preview",
|
|
3590
3611
|
...t
|
|
3591
|
-
}),
|
|
3612
|
+
}), dc = (t) => (t?.client ?? p).post({
|
|
3592
3613
|
requestValidator: async (t) => await e.object({
|
|
3593
3614
|
body: e.never().optional(),
|
|
3594
3615
|
path: e.never().optional(),
|
|
3595
|
-
query:
|
|
3616
|
+
query: Ho.optional()
|
|
3596
3617
|
}).parseAsync(t),
|
|
3597
|
-
responseValidator: async (e) => await
|
|
3618
|
+
responseValidator: async (e) => await Uo.parseAsync(e),
|
|
3598
3619
|
url: "/api/v1/invoices/send-approval",
|
|
3599
3620
|
...t
|
|
3600
|
-
}),
|
|
3621
|
+
}), fc = (t) => (t.client ?? p).post({
|
|
3601
3622
|
requestValidator: async (t) => await e.object({
|
|
3602
|
-
body:
|
|
3603
|
-
path:
|
|
3623
|
+
body: Wo,
|
|
3624
|
+
path: Go,
|
|
3604
3625
|
query: e.never().optional()
|
|
3605
3626
|
}).parseAsync(t),
|
|
3606
|
-
responseValidator: async (e) => await
|
|
3627
|
+
responseValidator: async (e) => await Ko.parseAsync(e),
|
|
3607
3628
|
url: "/api/v1/invoice-approvals/{uuid}/approve",
|
|
3608
3629
|
...t,
|
|
3609
3630
|
headers: {
|
|
3610
3631
|
"Content-Type": "application/json",
|
|
3611
3632
|
...t.headers
|
|
3612
3633
|
}
|
|
3613
|
-
}),
|
|
3634
|
+
}), pc = (t) => (t.client ?? p).post({
|
|
3614
3635
|
requestValidator: async (t) => await e.object({
|
|
3615
|
-
body:
|
|
3616
|
-
path:
|
|
3636
|
+
body: qo,
|
|
3637
|
+
path: Jo,
|
|
3617
3638
|
query: e.never().optional()
|
|
3618
3639
|
}).parseAsync(t),
|
|
3619
|
-
responseValidator: async (e) => await
|
|
3640
|
+
responseValidator: async (e) => await Yo.parseAsync(e),
|
|
3620
3641
|
url: "/api/v1/invoice-approvals/{uuid}/reject",
|
|
3621
3642
|
...t,
|
|
3622
3643
|
headers: {
|
|
3623
3644
|
"Content-Type": "application/json",
|
|
3624
3645
|
...t.headers
|
|
3625
3646
|
}
|
|
3626
|
-
}),
|
|
3647
|
+
}), mc = (t) => (t.client ?? p).post({
|
|
3627
3648
|
requestValidator: async (t) => await e.object({
|
|
3628
3649
|
body: e.never().optional(),
|
|
3629
|
-
path:
|
|
3650
|
+
path: Xo,
|
|
3630
3651
|
query: e.never().optional()
|
|
3631
3652
|
}).parseAsync(t),
|
|
3632
|
-
responseValidator: async (e) => await
|
|
3653
|
+
responseValidator: async (e) => await Zo.parseAsync(e),
|
|
3633
3654
|
url: "/api/v1/invoice-approvals/{uuid}/cancel",
|
|
3634
3655
|
...t
|
|
3635
|
-
}),
|
|
3656
|
+
}), hc = (t) => (t.client ?? p).post({
|
|
3636
3657
|
requestValidator: async (t) => await e.object({
|
|
3637
3658
|
body: e.never().optional(),
|
|
3638
|
-
path:
|
|
3659
|
+
path: Qo,
|
|
3639
3660
|
query: e.never().optional()
|
|
3640
3661
|
}).parseAsync(t),
|
|
3641
3662
|
url: "/api/v1/invoices/{uuid}/restart-approval",
|
|
3642
3663
|
...t
|
|
3643
|
-
}),
|
|
3664
|
+
}), gc = (t) => (t?.client ?? p).get({
|
|
3644
3665
|
requestValidator: async (t) => await e.object({
|
|
3645
3666
|
body: e.never().optional(),
|
|
3646
3667
|
path: e.never().optional(),
|
|
3647
|
-
query:
|
|
3668
|
+
query: $o.optional()
|
|
3648
3669
|
}).parseAsync(t),
|
|
3649
|
-
responseValidator: async (e) => await
|
|
3670
|
+
responseValidator: async (e) => await es.parseAsync(e),
|
|
3650
3671
|
url: "/api/v1/invoice-approvals",
|
|
3651
3672
|
...t
|
|
3652
|
-
}),
|
|
3673
|
+
}), _c = (t) => (t.client ?? p).get({
|
|
3653
3674
|
requestValidator: async (t) => await e.object({
|
|
3654
3675
|
body: e.never().optional(),
|
|
3655
3676
|
path: e.never().optional(),
|
|
3656
|
-
query:
|
|
3677
|
+
query: ts
|
|
3657
3678
|
}).parseAsync(t),
|
|
3658
|
-
responseValidator: async (e) => await
|
|
3679
|
+
responseValidator: async (e) => await ns.parseAsync(e),
|
|
3659
3680
|
url: "/api/v1/public/pro-formas",
|
|
3660
3681
|
...t
|
|
3661
|
-
}),
|
|
3682
|
+
}), vc = (t) => (t?.client ?? p).get({
|
|
3662
3683
|
requestValidator: async (t) => await e.object({
|
|
3663
3684
|
body: e.never().optional(),
|
|
3664
3685
|
path: e.never().optional(),
|
|
3665
3686
|
query: e.never().optional()
|
|
3666
3687
|
}).parseAsync(t),
|
|
3667
|
-
responseValidator: async (e) => await
|
|
3688
|
+
responseValidator: async (e) => await rs.parseAsync(e),
|
|
3668
3689
|
url: "/api/v1/issuers/approval-reminder-configs",
|
|
3669
3690
|
...t
|
|
3670
|
-
}),
|
|
3691
|
+
}), yc = (t) => (t.client ?? p).patch({
|
|
3671
3692
|
requestValidator: async (t) => await e.object({
|
|
3672
|
-
body:
|
|
3693
|
+
body: is,
|
|
3673
3694
|
path: e.never().optional(),
|
|
3674
3695
|
query: e.never().optional()
|
|
3675
3696
|
}).parseAsync(t),
|
|
3676
|
-
responseValidator: async (e) => await
|
|
3697
|
+
responseValidator: async (e) => await as.parseAsync(e),
|
|
3677
3698
|
url: "/api/v1/issuers/approval-reminder-configs",
|
|
3678
3699
|
...t,
|
|
3679
3700
|
headers: {
|
|
3680
3701
|
"Content-Type": "application/json",
|
|
3681
3702
|
...t.headers
|
|
3682
3703
|
}
|
|
3683
|
-
}),
|
|
3704
|
+
}), bc = (t) => (t?.client ?? p).get({
|
|
3684
3705
|
requestValidator: async (t) => await e.object({
|
|
3685
3706
|
body: e.never().optional(),
|
|
3686
3707
|
path: e.never().optional(),
|
|
3687
3708
|
query: e.never().optional()
|
|
3688
3709
|
}).parseAsync(t),
|
|
3689
|
-
responseValidator: async (e) => await
|
|
3710
|
+
responseValidator: async (e) => await os.parseAsync(e),
|
|
3690
3711
|
url: "/api/v1/issuers/peppol-connection",
|
|
3691
3712
|
...t
|
|
3692
|
-
}),
|
|
3713
|
+
}), xc = (t) => (t.client ?? p).put({
|
|
3693
3714
|
requestValidator: async (t) => await e.object({
|
|
3694
|
-
body:
|
|
3715
|
+
body: ss,
|
|
3695
3716
|
path: e.never().optional(),
|
|
3696
3717
|
query: e.never().optional()
|
|
3697
3718
|
}).parseAsync(t),
|
|
@@ -3701,13 +3722,13 @@ var va = zn, ya = e.object({ uuid: e.uuid() }), ba = e.void(), xa = Bn, Sa = e.o
|
|
|
3701
3722
|
"Content-Type": "application/json",
|
|
3702
3723
|
...t.headers
|
|
3703
3724
|
}
|
|
3704
|
-
}),
|
|
3725
|
+
}), Sc = (t) => (t.client ?? p).post({
|
|
3705
3726
|
requestValidator: async (t) => await e.object({
|
|
3706
|
-
body:
|
|
3727
|
+
body: cs,
|
|
3707
3728
|
path: e.never().optional(),
|
|
3708
3729
|
query: e.never().optional()
|
|
3709
3730
|
}).parseAsync(t),
|
|
3710
|
-
responseValidator: async (e) => await
|
|
3731
|
+
responseValidator: async (e) => await ls.parseAsync(e),
|
|
3711
3732
|
url: "/api/v1/issuers/peppol-connection/test",
|
|
3712
3733
|
...t,
|
|
3713
3734
|
headers: {
|
|
@@ -3717,19 +3738,19 @@ var va = zn, ya = e.object({ uuid: e.uuid() }), ba = e.void(), xa = Bn, Sa = e.o
|
|
|
3717
3738
|
});
|
|
3718
3739
|
//#endregion
|
|
3719
3740
|
//#region src/utils/api.util.ts
|
|
3720
|
-
function
|
|
3741
|
+
function Cc(e) {
|
|
3721
3742
|
return typeof e == "object" && !!e && Array.isArray(e.errors);
|
|
3722
3743
|
}
|
|
3723
|
-
function
|
|
3724
|
-
return
|
|
3744
|
+
function wc(e) {
|
|
3745
|
+
return Cc(e) || e instanceof Error ? e : Error(String(e));
|
|
3725
3746
|
}
|
|
3726
|
-
var
|
|
3747
|
+
var Tc = class {
|
|
3727
3748
|
static async fromPromise(e) {
|
|
3728
|
-
return await t.fromPromise(e,
|
|
3749
|
+
return await t.fromPromise(e, wc);
|
|
3729
3750
|
}
|
|
3730
3751
|
static void(e) {
|
|
3731
3752
|
return e.isErr() ? n(e.error) : r();
|
|
3732
3753
|
}
|
|
3733
3754
|
};
|
|
3734
3755
|
//#endregion
|
|
3735
|
-
export {
|
|
3756
|
+
export { ms as $, Fs as A, yc as B, Hs as C, Us as D, Ks as E, ic as F, ws as G, js as H, lc as I, ec as J, vs as K, Ns as L, hc as M, Js as N, sc as O, ac as P, hs as Q, Sc as R, Rs as S, Is as T, Ds as U, As as V, Ts as W, vc as X, Ys as Y, tc as Z, ps as _, Ws as a, bs as at, Os as b, Ps as c, bc as ct, ks as d, _c as dt, gs as et, ds as f, $s as ft, Qs as g, Ss as h, p as ht, qs as i, Cs as it, pc as j, uc as k, mc as l, cc as lt, Zs as m, Gs as mt, Es as n, rc as nt, oc as o, Xs as ot, xs as p, us as pt, xc as q, fc as r, gc as rt, dc as s, _s as st, Tc as t, nc as tt, fs as u, ys as ut, Ls as v, zs as w, Vs as x, Ms as y, Bs as z };
|