@erp-galoper/main-package 1.0.104 → 1.0.106

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/openapi.ts +1397 -92
  2. package/package.json +1 -1
package/openapi.ts CHANGED
@@ -465,6 +465,13 @@ export interface paths {
465
465
  */
466
466
  get: operations["reports_views_profit_and_loss"];
467
467
  };
468
+ "/api/v1/reports/balance_sheet/": {
469
+ /**
470
+ * Balance Sheet
471
+ * @description
472
+ */
473
+ get: operations["reports_views_balance_sheet"];
474
+ };
468
475
  "/api/v1/currencies/primary_and_secondary/": {
469
476
  /** Get Primary And Secondary Currency */
470
477
  get: operations["common_currency_views_get_primary_and_secondary_currency"];
@@ -485,6 +492,148 @@ export interface paths {
485
492
  */
486
493
  get: operations["common_currency_views_list_currencies_in_export"];
487
494
  };
495
+ "/api/v1/pos/sessions/": {
496
+ /**
497
+ * List Sessions
498
+ * @description Endpoint to list sessions
499
+ * Possible Responses:
500
+ * - 200:
501
+ * - ListSessionSchema
502
+ * - 400:
503
+ * - invalidFilterFormat
504
+ * - paginationError
505
+ * - 403:
506
+ * - permissionDenied
507
+ * - 500:
508
+ * - internalServerError
509
+ */
510
+ get: operations["pos_session_views_list_sessions"];
511
+ };
512
+ "/api/v1/pos/sessions/{id}/x-report/": {
513
+ /**
514
+ * Get X Report
515
+ * @description Endpoint to get X report
516
+ * Possible Responses:
517
+ * - 200:
518
+ * - XReportSchema
519
+ * - 400:
520
+ * - invalidFilterFormat
521
+ * - paginationError
522
+ * - sessionNotClosed
523
+ * - 403:
524
+ * - permissionDenied
525
+ * - 404:
526
+ * - sessionDoesNotExist
527
+ * - settingsDoesNotExist
528
+ * - companyDoesNotExist
529
+ */
530
+ get: operations["pos_session_views_get_x_report"];
531
+ };
532
+ "/api/v1/pos/sessions/{id}/invoices/": {
533
+ /**
534
+ * Get Invoices
535
+ * @description endpoint to get invoices
536
+ * Possible Responses:
537
+ * - 200:
538
+ * - ListInvoiceSchema
539
+ * - 400:
540
+ * - invalidFilterFormat
541
+ * - paginationError
542
+ * - 403:
543
+ * - permissionDenied
544
+ * - 404:
545
+ * - sessionDoesNotExist
546
+ * - 500:
547
+ * - internalServerError
548
+ */
549
+ get: operations["pos_session_views_get_invoices"];
550
+ };
551
+ "/api/v1/pos/sessions/{id}/exchanged_invoices/": {
552
+ /**
553
+ * Get Exchange Invoices
554
+ * @description endpoint to get exchanged invoices
555
+ * Possible Responses:
556
+ * - 200:
557
+ * - ListInvoiceSchema
558
+ * - 400:
559
+ * - invalidFilterFormat
560
+ * - paginationError
561
+ * - 403:
562
+ * - permissionDenied
563
+ * - 404:
564
+ * - sessionDoesNotExist
565
+ * - 500:
566
+ * - internalServerError
567
+ */
568
+ get: operations["pos_session_views_get_exchange_invoices"];
569
+ };
570
+ "/api/v1/pos/sessions/{id}/return_invoices/": {
571
+ /**
572
+ * Get Return Invoices
573
+ * @description endpoint to get return invoices
574
+ * Possible Responses:
575
+ * - 200:
576
+ * - ListInvoiceSchema
577
+ * - 400:
578
+ * - invalidFilterFormat
579
+ * - paginationError
580
+ * - 403:
581
+ * - permissionDenied
582
+ * - 404:
583
+ * - sessionDoesNotExist
584
+ * - 500:
585
+ * - internalServerError
586
+ */
587
+ get: operations["pos_session_views_get_return_invoices"];
588
+ };
589
+ "/api/v1/pos/sessions/invoices/{id}/": {
590
+ /**
591
+ * Get Invoice
592
+ * @description Get invoice by id
593
+ * possible responses:
594
+ * 200:
595
+ * - InvoiceInfoSchema
596
+ * 404:
597
+ * - invoiceDoesNotExist
598
+ * 403:
599
+ * - permissionDenied
600
+ * 500:
601
+ * - internalServerError
602
+ */
603
+ get: operations["pos_invoice_views_get_invoice"];
604
+ };
605
+ "/api/v1/pos/sessions/exchanges/{id}/": {
606
+ /**
607
+ * Get Exchange Invoice
608
+ * @description Get exchange by id
609
+ * possible responses:
610
+ * 200:
611
+ * - InvoiceInfoSchema
612
+ * 404:
613
+ * - invoiceNotFound
614
+ * 403:
615
+ * - permissionDenied
616
+ * 500:
617
+ * - internalServerError
618
+ */
619
+ get: operations["pos_invoice_views_get_exchange_invoice"];
620
+ };
621
+ "/api/v1/pos/sessions/returns/{id}/": {
622
+ /**
623
+ * Get Return Invoice
624
+ * @description Get return by id
625
+ * possible responses:
626
+ * 200:
627
+ * - InvoiceInfoSchema
628
+ * 404:
629
+ * - invoiceNotFound
630
+ * 403:
631
+ * - permissionDenied
632
+ * 500:
633
+ * - internalServerError
634
+ */
635
+ get: operations["pos_invoice_views_get_return_invoice"];
636
+ };
488
637
  "/api/v1/accounting/journal_vouchers/": {
489
638
  /**
490
639
  * List Journal Vouchers In Export
@@ -1105,15 +1254,127 @@ export interface components {
1105
1254
  name: string;
1106
1255
 
1107
1256
  };
1108
- /** AccountInfo */
1109
- AccountInfo: {
1257
+ /** ListSessionSchema */
1258
+ ListSessionSchema: {
1259
+ info: components["schemas"]["PageInfoSchema"];
1260
+ /** Results */
1261
+ results: components["schemas"]["SessionSchema"][];
1262
+
1263
+ };
1264
+ /** SessionSchema */
1265
+ SessionSchema: {
1266
+ /**
1267
+ * Id
1268
+ * Format: uuid
1269
+ */
1270
+ id: string;
1271
+ user: components["schemas"]["UserInfo"];
1272
+ /**
1273
+ * Startdate
1274
+ * Format: date-time
1275
+ */
1276
+ startDate: string;
1277
+ /** Enddate */
1278
+ endDate: string | null;
1279
+ /** Posted */
1280
+ posted: boolean | null;
1281
+ /** Audited */
1282
+ audited: boolean | null;
1283
+ /** Closed */
1284
+ closed: boolean;
1285
+
1286
+ };
1287
+ /** UserInfo */
1288
+ UserInfo: {
1289
+ /** Id */
1290
+ id: number;
1291
+ /** Username */
1292
+ username: string;
1293
+
1294
+ };
1295
+ /** CompanyInfoSchema */
1296
+ CompanyInfoSchema: {
1110
1297
  /** Name */
1111
1298
  name: string;
1112
- /** Accountnumber */
1113
- accountnumber: string;
1299
+ /** Address */
1300
+ address: string;
1301
+ /** Phone */
1302
+ phone: string;
1114
1303
  /** Currency */
1115
1304
  currency: string;
1116
1305
 
1306
+ };
1307
+ /** CountSchema */
1308
+ CountSchema: {
1309
+ /** Paidinvoices */
1310
+ paidInvoices: number;
1311
+ /** Paidexchanges */
1312
+ paidExchanges: number;
1313
+ /** Paidreturns */
1314
+ paidReturns: number;
1315
+ /** Voidinvoices */
1316
+ voidInvoices: number;
1317
+ /** Voidexchanges */
1318
+ voidExchanges: number;
1319
+ /** Voidreturns */
1320
+ voidReturns: number;
1321
+
1322
+ };
1323
+ /** SessionInfoSchema */
1324
+ SessionInfoSchema: {
1325
+ /**
1326
+ * Sessionstartat
1327
+ * Format: date-time
1328
+ */
1329
+ sessionStartAt: string;
1330
+ /**
1331
+ * Sessionclosedat
1332
+ * Format: date-time
1333
+ */
1334
+ sessionClosedAt: string;
1335
+ /** Cashier */
1336
+ cashier: string;
1337
+ /** Openingbalanceusd */
1338
+ openingBalanceUsd: number;
1339
+ /** Openingbalancecompany */
1340
+ openingBalanceCompany: number;
1341
+ /** Closedbalanceusd */
1342
+ closedBalanceUsd: number;
1343
+ /** Closedbalancecompany */
1344
+ closedBalanceCompany: number;
1345
+
1346
+ };
1347
+ /** TotalsSchema */
1348
+ TotalsSchema: {
1349
+ /** Totalsalesusd */
1350
+ totalSalesUsd: number;
1351
+ /** Totalsalescompany */
1352
+ totalSalesCompany: number;
1353
+ /** Totaldiscountsusd */
1354
+ totalDiscountsUsd: number;
1355
+ /** Totaldiscountscompany */
1356
+ totalDiscountsCompany: number;
1357
+ /** Totalrefundsusd */
1358
+ totalRefundsUsd: number;
1359
+ /** Totalrefundscompany */
1360
+ totalRefundsCompany: number;
1361
+ /** Netsalesusd */
1362
+ netSalesUsd: number;
1363
+ /** Netsalescompany */
1364
+ netSalesCompany: number;
1365
+
1366
+ };
1367
+ /** XReportSchema */
1368
+ XReportSchema: {
1369
+ companyInfo: components["schemas"]["CompanyInfoSchema"];
1370
+ sessionInfo: components["schemas"]["SessionInfoSchema"];
1371
+ totals: components["schemas"]["TotalsSchema"];
1372
+ counts: components["schemas"]["CountSchema"];
1373
+ /** Expectedcashusd */
1374
+ expectedCashUsd: number;
1375
+ /** Note */
1376
+ note: string;
1377
+
1117
1378
  };
1118
1379
  /** CustomerInfo */
1119
1380
  CustomerInfo: {
@@ -1125,113 +1386,685 @@ export interface components {
1125
1386
  currency: string;
1126
1387
 
1127
1388
  };
1128
- /** JournalHeaderDetails */
1129
- JournalHeaderDetails: {
1130
- /** Id */
1131
- id: number;
1132
- /** Intnumber */
1133
- intNumber: string;
1389
+ /** InvoiceSchema */
1390
+ InvoiceSchema: {
1134
1391
  /**
1135
- * Date
1136
- * Format: date
1392
+ * Id
1393
+ * Format: uuid
1137
1394
  */
1138
- date: string;
1139
- project?: components["schemas"]["ProjectInfo"] | null;
1140
- /** Reverse */
1141
- reverse?: string | null;
1142
-
1143
- };
1144
- /** ListJournalVouchersInExport */
1145
- ListJournalVouchersInExport: {
1146
- /** Description */
1147
- description?: string | null;
1395
+ id: string;
1396
+ /** Invoicenumber */
1397
+ invoiceNumber: string;
1398
+ customer: components["schemas"]["CustomerInfo"];
1399
+ currency: components["schemas"]["CurrencyList"];
1148
1400
  /**
1149
- * Debitamount
1150
- * @default 0
1401
+ * Status
1402
+ * @example in_progress
1151
1403
  */
1152
- debitAmount?: number | null;
1404
+ status: string;
1153
1405
  /**
1154
- * Creditamount
1155
- * @default 0
1406
+ * Barcode
1407
+ * @example 123456789
1156
1408
  */
1157
- creditAmount?: number | null;
1409
+ barcode: number;
1158
1410
  /**
1159
- * Companydebit
1160
- * @default 0
1411
+ * Companysubtotal
1412
+ * @example 1
1161
1413
  */
1162
- companyDebit?: number | null;
1414
+ companySubTotal: number;
1163
1415
  /**
1164
- * Companycredit
1165
- * @default 0
1416
+ * Companyitemsdiscountamount
1417
+ * @example 1
1166
1418
  */
1167
- companyCredit?: number | null;
1419
+ companyItemsDiscountAmount: number;
1168
1420
  /**
1169
- * Usddebit
1170
- * @default 0
1421
+ * Companytotaldiscountamount
1422
+ * @example 1
1171
1423
  */
1172
- usdDebit?: number | null;
1424
+ companyTotalDiscountAmount: number;
1173
1425
  /**
1174
- * Usdcredit
1175
- * @default 0
1426
+ * Usdtotaldiscountamount
1427
+ * @example 1
1176
1428
  */
1177
- usdCredit?: number | null;
1429
+ usdTotalDiscountAmount: number;
1178
1430
  /**
1179
- * Rate
1431
+ * Companynetitemstotal
1432
+ * @example 1
1433
+ */
1434
+ companyNetItemsTotal: number;
1435
+ /**
1436
+ * Totalcompany
1437
+ * @example 1
1438
+ */
1439
+ totalCompany: number;
1440
+ /**
1441
+ * Companytax
1442
+ * @example 1
1443
+ */
1444
+ companyTax: number;
1445
+ /**
1446
+ * Companynettotal
1447
+ * @example 1
1448
+ */
1449
+ companyNetTotal: number;
1450
+ /**
1451
+ * Usdsubtotal
1452
+ * @example 1
1453
+ */
1454
+ usdSubTotal: number;
1455
+ /**
1456
+ * Usditemsdiscountamount
1457
+ * @example 1
1458
+ */
1459
+ usdItemsDiscountAmount: number;
1460
+ /**
1461
+ * Usdnetitemstotal
1462
+ * @example 1
1463
+ */
1464
+ usdNetItemsTotal: number;
1465
+ /**
1466
+ * Totalusd
1467
+ * @example 1
1468
+ */
1469
+ totalUsd: number;
1470
+ /**
1471
+ * Usdtax
1472
+ * @example 1
1473
+ */
1474
+ usdTax: number;
1475
+ /**
1476
+ * Usdnettotal
1477
+ * @example 1
1478
+ */
1479
+ usdNetTotal: number;
1480
+ /**
1481
+ * Usdinvoicediscount
1180
1482
  * @default 0
1483
+ * @example 1
1181
1484
  */
1182
- rate?: number | null;
1485
+ usdInvoiceDiscount?: number | null;
1183
1486
  /**
1184
- * Usdrate
1487
+ * Companyinvoicediscount
1185
1488
  * @default 0
1489
+ * @example 1
1186
1490
  */
1187
- usdRate?: number | null;
1188
- /** Isdoe */
1189
- isDoe?: string | null;
1190
- journalvoucher: components["schemas"]["JournalHeaderDetails"];
1191
- account?: components["schemas"]["AccountInfo"] | null;
1192
- customer?: components["schemas"]["CustomerInfo"] | null;
1193
- supplier?: components["schemas"]["SupplierInfo"] | null;
1194
- vatAccount?: components["schemas"]["VatAccountInfo"] | null;
1491
+ companyInvoiceDiscount?: number | null;
1195
1492
 
1196
1493
  };
1197
- /** ProjectInfo */
1198
- ProjectInfo: {
1199
- /** Name */
1200
- name: string;
1494
+ /** ListInvoiceSchema */
1495
+ ListInvoiceSchema: {
1496
+ info: components["schemas"]["PageInfoSchema"];
1497
+ /** Results */
1498
+ results: components["schemas"]["InvoiceSchema"][];
1201
1499
 
1202
1500
  };
1203
- /** SupplierInfo */
1204
- SupplierInfo: {
1205
- /** Company */
1206
- company: string;
1207
- /** Accountnumber */
1208
- accountnumber: string;
1209
- /** Currency */
1210
- currency: string;
1501
+ /** ListReturnSchema */
1502
+ ListReturnSchema: {
1503
+ info: components["schemas"]["PageInfoSchema"];
1504
+ /** Results */
1505
+ results: components["schemas"]["ReturnSchema"][];
1211
1506
 
1212
1507
  };
1213
- /** VatAccountInfo */
1214
- VatAccountInfo: {
1215
- /** Name */
1216
- name?: string | null;
1217
- /** Accountnumber */
1218
- accountnumber: string;
1219
- /** Currency */
1220
- currency?: string | null;
1508
+ /** ReturnSchema */
1509
+ ReturnSchema: {
1510
+ /**
1511
+ * Id
1512
+ * Format: uuid
1513
+ */
1514
+ id: string;
1515
+ /** Returnnumber */
1516
+ returnNumber: string;
1517
+ customer: components["schemas"]["CustomerInfo"];
1518
+ currency: components["schemas"]["CurrencyList"];
1519
+ /**
1520
+ * Status
1521
+ * @example in_progress
1522
+ */
1523
+ status: string;
1524
+ /**
1525
+ * Barcode
1526
+ * @example 123456789
1527
+ */
1528
+ barcode: number;
1529
+ /**
1530
+ * Companysubtotal
1531
+ * @example 1
1532
+ */
1533
+ companySubTotal: number;
1534
+ /**
1535
+ * Companyitemsdiscountamount
1536
+ * @example 1
1537
+ */
1538
+ companyItemsDiscountAmount: number;
1539
+ /**
1540
+ * Companytotaldiscountamount
1541
+ * @example 1
1542
+ */
1543
+ companyTotalDiscountAmount: number;
1544
+ /**
1545
+ * Usdtotaldiscountamount
1546
+ * @example 1
1547
+ */
1548
+ usdTotalDiscountAmount: number;
1549
+ /**
1550
+ * Companynetitemstotal
1551
+ * @example 1
1552
+ */
1553
+ companyNetItemsTotal: number;
1554
+ /**
1555
+ * Totalcompany
1556
+ * @example 1
1557
+ */
1558
+ totalCompany: number;
1559
+ /**
1560
+ * Companytax
1561
+ * @example 1
1562
+ */
1563
+ companyTax: number;
1564
+ /**
1565
+ * Companynettotal
1566
+ * @example 1
1567
+ */
1568
+ companyNetTotal: number;
1569
+ /**
1570
+ * Usdsubtotal
1571
+ * @example 1
1572
+ */
1573
+ usdSubTotal: number;
1574
+ /**
1575
+ * Usditemsdiscountamount
1576
+ * @example 1
1577
+ */
1578
+ usdItemsDiscountAmount: number;
1579
+ /**
1580
+ * Usdnetitemstotal
1581
+ * @example 1
1582
+ */
1583
+ usdNetItemsTotal: number;
1584
+ /**
1585
+ * Totalusd
1586
+ * @example 1
1587
+ */
1588
+ totalUsd: number;
1589
+ /**
1590
+ * Usdtax
1591
+ * @example 1
1592
+ */
1593
+ usdTax: number;
1594
+ /**
1595
+ * Usdnettotal
1596
+ * @example 1
1597
+ */
1598
+ usdNetTotal: number;
1599
+ /**
1600
+ * Usdinvoicediscount
1601
+ * @default 0
1602
+ * @example 1
1603
+ */
1604
+ usdInvoiceDiscount?: number | null;
1605
+ /**
1606
+ * Companyinvoicediscount
1607
+ * @default 0
1608
+ * @example 1
1609
+ */
1610
+ companyInvoiceDiscount?: number | null;
1221
1611
 
1222
1612
  };
1223
- };
1224
- responses: never;
1225
- parameters: never;
1226
- requestBodies: never;
1227
- headers: never;
1228
- pathItems: never;
1229
- }
1230
-
1231
- export type $defs = Record<string, never>;
1232
-
1233
- export type external = Record<string, never>;
1234
-
1613
+ /** InvoiceInfoSchema */
1614
+ InvoiceInfoSchema: {
1615
+ /**
1616
+ * Id
1617
+ * Format: uuid
1618
+ */
1619
+ id: string;
1620
+ /** Invoicenumber */
1621
+ invoiceNumber: string;
1622
+ customer: components["schemas"]["CustomerInfo"];
1623
+ currency: components["schemas"]["CurrencyList"];
1624
+ /**
1625
+ * Status
1626
+ * @example in_progress
1627
+ */
1628
+ status: string;
1629
+ /**
1630
+ * Barcode
1631
+ * @example 123456789
1632
+ */
1633
+ barcode: number;
1634
+ /**
1635
+ * Companysubtotal
1636
+ * @example 1
1637
+ */
1638
+ companySubTotal: number;
1639
+ /**
1640
+ * Companyitemsdiscountamount
1641
+ * @example 1
1642
+ */
1643
+ companyItemsDiscountAmount: number;
1644
+ /**
1645
+ * Companytotaldiscountamount
1646
+ * @example 1
1647
+ */
1648
+ companyTotalDiscountAmount: number;
1649
+ /**
1650
+ * Usdtotaldiscountamount
1651
+ * @example 1
1652
+ */
1653
+ usdTotalDiscountAmount: number;
1654
+ /**
1655
+ * Companynetitemstotal
1656
+ * @example 1
1657
+ */
1658
+ companyNetItemsTotal: number;
1659
+ /**
1660
+ * Totalcompany
1661
+ * @example 1
1662
+ */
1663
+ totalCompany: number;
1664
+ /**
1665
+ * Companytax
1666
+ * @example 1
1667
+ */
1668
+ companyTax: number;
1669
+ /**
1670
+ * Companynettotal
1671
+ * @example 1
1672
+ */
1673
+ companyNetTotal: number;
1674
+ /**
1675
+ * Usdsubtotal
1676
+ * @example 1
1677
+ */
1678
+ usdSubTotal: number;
1679
+ /**
1680
+ * Usditemsdiscountamount
1681
+ * @example 1
1682
+ */
1683
+ usdItemsDiscountAmount: number;
1684
+ /**
1685
+ * Usdnetitemstotal
1686
+ * @example 1
1687
+ */
1688
+ usdNetItemsTotal: number;
1689
+ /**
1690
+ * Totalusd
1691
+ * @example 1
1692
+ */
1693
+ totalUsd: number;
1694
+ /**
1695
+ * Usdtax
1696
+ * @example 1
1697
+ */
1698
+ usdTax: number;
1699
+ /**
1700
+ * Usdnettotal
1701
+ * @example 1
1702
+ */
1703
+ usdNetTotal: number;
1704
+ /**
1705
+ * Usdinvoicediscount
1706
+ * @default 0
1707
+ * @example 1
1708
+ */
1709
+ usdInvoiceDiscount?: number | null;
1710
+ /**
1711
+ * Companyinvoicediscount
1712
+ * @default 0
1713
+ * @example 1
1714
+ */
1715
+ companyInvoiceDiscount?: number | null;
1716
+ /** Invoiceitems */
1717
+ invoiceItems: components["schemas"]["InvoiceItemGetSchema"][];
1718
+ /** Invoicepayments */
1719
+ invoicePayments: components["schemas"]["InvoicePaymentSchema"][];
1720
+
1721
+ };
1722
+ /** InvoiceItemGetSchema */
1723
+ InvoiceItemGetSchema: {
1724
+ item: components["schemas"]["Item"];
1725
+ /**
1726
+ * Id
1727
+ * Format: uuid
1728
+ * @example fe9af9f8-ed03-4461-b1a3-af1aeb0f2a8f
1729
+ */
1730
+ id: string;
1731
+ /**
1732
+ * Quantity
1733
+ * @example 1
1734
+ */
1735
+ quantity: number;
1736
+ /**
1737
+ * Status
1738
+ * @example purchased
1739
+ */
1740
+ status: string;
1741
+ /**
1742
+ * Discount
1743
+ * @example 1
1744
+ */
1745
+ discount: number;
1746
+ /**
1747
+ * Companyunitprice
1748
+ * @example 1
1749
+ */
1750
+ companyUnitPrice: number;
1751
+ /**
1752
+ * Subtotalcompany
1753
+ * @example 1
1754
+ */
1755
+ subTotalCompany: number;
1756
+ /**
1757
+ * Totalcompany
1758
+ * @example 1
1759
+ */
1760
+ totalCompany: number;
1761
+ /**
1762
+ * Companytax
1763
+ * @example 1
1764
+ */
1765
+ companyTax: number;
1766
+ /**
1767
+ * Companynettotal
1768
+ * @example 1
1769
+ */
1770
+ companyNetTotal: number;
1771
+ /**
1772
+ * Usdunitprice
1773
+ * @example 1
1774
+ */
1775
+ usdUnitPrice: number;
1776
+ /**
1777
+ * Subtotalusd
1778
+ * @example 1
1779
+ */
1780
+ subTotalUsd: number;
1781
+ /**
1782
+ * Totalusd
1783
+ * @example 1
1784
+ */
1785
+ totalUsd: number;
1786
+ /**
1787
+ * Usdtax
1788
+ * @example 1
1789
+ */
1790
+ usdTax: number;
1791
+ /**
1792
+ * Usdnettotal
1793
+ * @example 1
1794
+ */
1795
+ usdNetTotal: number;
1796
+
1797
+ };
1798
+ /** InvoicePaymentSchema */
1799
+ InvoicePaymentSchema: {
1800
+ /** Amount */
1801
+ amount: number;
1802
+ /** Changeduecompany */
1803
+ changeDueCompany: number;
1804
+ /** Changedueusd */
1805
+ changeDueUsd: number;
1806
+ currency: components["schemas"]["CurrencyList"];
1807
+ /** @example cash */
1808
+ paymentMethod: components["schemas"]["PaymentMethodSchema"];
1809
+
1810
+ };
1811
+ /** Item */
1812
+ Item: {
1813
+ /** Barcode */
1814
+ barcode: string;
1815
+ /** Name */
1816
+ name: string;
1817
+ /** Id */
1818
+ id: number;
1819
+
1820
+ };
1821
+ /** PaymentMethodSchema */
1822
+ PaymentMethodSchema: {
1823
+ /** Id */
1824
+ id: number;
1825
+ /** Name */
1826
+ name: string;
1827
+
1828
+ };
1829
+ /** PosRefundSchema */
1830
+ PosRefundSchema: {
1831
+ /** Amount */
1832
+ amount: number;
1833
+ /** Customeradditionalpaymentcompany */
1834
+ customerAdditionalPaymentCompany: number;
1835
+ /** Customeradditionalpaymentusd */
1836
+ customerAdditionalPaymentUsd: number;
1837
+ currency: components["schemas"]["CurrencyList"];
1838
+ /** @example cash */
1839
+ paymentMethod: components["schemas"]["PaymentMethodSchema"];
1840
+
1841
+ };
1842
+ /** ReturnInvoiceInfoSchema */
1843
+ ReturnInvoiceInfoSchema: {
1844
+ /**
1845
+ * Id
1846
+ * Format: uuid
1847
+ */
1848
+ id: string;
1849
+ /** Returnnumber */
1850
+ returnNumber: string;
1851
+ customer: components["schemas"]["CustomerInfo"];
1852
+ currency: components["schemas"]["CurrencyList"];
1853
+ /**
1854
+ * Status
1855
+ * @example in_progress
1856
+ */
1857
+ status: string;
1858
+ /**
1859
+ * Barcode
1860
+ * @example 123456789
1861
+ */
1862
+ barcode: number;
1863
+ /**
1864
+ * Companysubtotal
1865
+ * @example 1
1866
+ */
1867
+ companySubTotal: number;
1868
+ /**
1869
+ * Companyitemsdiscountamount
1870
+ * @example 1
1871
+ */
1872
+ companyItemsDiscountAmount: number;
1873
+ /**
1874
+ * Companytotaldiscountamount
1875
+ * @example 1
1876
+ */
1877
+ companyTotalDiscountAmount: number;
1878
+ /**
1879
+ * Usdtotaldiscountamount
1880
+ * @example 1
1881
+ */
1882
+ usdTotalDiscountAmount: number;
1883
+ /**
1884
+ * Companynetitemstotal
1885
+ * @example 1
1886
+ */
1887
+ companyNetItemsTotal: number;
1888
+ /**
1889
+ * Totalcompany
1890
+ * @example 1
1891
+ */
1892
+ totalCompany: number;
1893
+ /**
1894
+ * Companytax
1895
+ * @example 1
1896
+ */
1897
+ companyTax: number;
1898
+ /**
1899
+ * Companynettotal
1900
+ * @example 1
1901
+ */
1902
+ companyNetTotal: number;
1903
+ /**
1904
+ * Usdsubtotal
1905
+ * @example 1
1906
+ */
1907
+ usdSubTotal: number;
1908
+ /**
1909
+ * Usditemsdiscountamount
1910
+ * @example 1
1911
+ */
1912
+ usdItemsDiscountAmount: number;
1913
+ /**
1914
+ * Usdnetitemstotal
1915
+ * @example 1
1916
+ */
1917
+ usdNetItemsTotal: number;
1918
+ /**
1919
+ * Totalusd
1920
+ * @example 1
1921
+ */
1922
+ totalUsd: number;
1923
+ /**
1924
+ * Usdtax
1925
+ * @example 1
1926
+ */
1927
+ usdTax: number;
1928
+ /**
1929
+ * Usdnettotal
1930
+ * @example 1
1931
+ */
1932
+ usdNetTotal: number;
1933
+ /**
1934
+ * Usdinvoicediscount
1935
+ * @default 0
1936
+ * @example 1
1937
+ */
1938
+ usdInvoiceDiscount?: number | null;
1939
+ /**
1940
+ * Companyinvoicediscount
1941
+ * @default 0
1942
+ * @example 1
1943
+ */
1944
+ companyInvoiceDiscount?: number | null;
1945
+ /** Invoiceitems */
1946
+ invoiceItems: components["schemas"]["InvoiceItemGetSchema"][];
1947
+ /** Invoicerefunds */
1948
+ invoiceRefunds: components["schemas"]["PosRefundSchema"][];
1949
+
1950
+ };
1951
+ /** AccountInfo */
1952
+ AccountInfo: {
1953
+ /** Name */
1954
+ name: string;
1955
+ /** Accountnumber */
1956
+ accountnumber: string;
1957
+ /** Currency */
1958
+ currency: string;
1959
+
1960
+ };
1961
+ /** JournalHeaderDetails */
1962
+ JournalHeaderDetails: {
1963
+ /** Id */
1964
+ id: number;
1965
+ /** Intnumber */
1966
+ intNumber: string;
1967
+ /**
1968
+ * Date
1969
+ * Format: date
1970
+ */
1971
+ date: string;
1972
+ project?: components["schemas"]["ProjectInfo"] | null;
1973
+ /** Reverse */
1974
+ reverse?: string | null;
1975
+
1976
+ };
1977
+ /** ListJournalVouchersInExport */
1978
+ ListJournalVouchersInExport: {
1979
+ /** Description */
1980
+ description?: string | null;
1981
+ /**
1982
+ * Debitamount
1983
+ * @default 0
1984
+ */
1985
+ debitAmount?: number | null;
1986
+ /**
1987
+ * Creditamount
1988
+ * @default 0
1989
+ */
1990
+ creditAmount?: number | null;
1991
+ /**
1992
+ * Companydebit
1993
+ * @default 0
1994
+ */
1995
+ companyDebit?: number | null;
1996
+ /**
1997
+ * Companycredit
1998
+ * @default 0
1999
+ */
2000
+ companyCredit?: number | null;
2001
+ /**
2002
+ * Usddebit
2003
+ * @default 0
2004
+ */
2005
+ usdDebit?: number | null;
2006
+ /**
2007
+ * Usdcredit
2008
+ * @default 0
2009
+ */
2010
+ usdCredit?: number | null;
2011
+ /**
2012
+ * Rate
2013
+ * @default 0
2014
+ */
2015
+ rate?: number | null;
2016
+ /**
2017
+ * Usdrate
2018
+ * @default 0
2019
+ */
2020
+ usdRate?: number | null;
2021
+ /** Isdoe */
2022
+ isDoe?: string | null;
2023
+ journalvoucher: components["schemas"]["JournalHeaderDetails"];
2024
+ account?: components["schemas"]["AccountInfo"] | null;
2025
+ customer?: components["schemas"]["CustomerInfo"] | null;
2026
+ supplier?: components["schemas"]["SupplierInfo"] | null;
2027
+ vatAccount?: components["schemas"]["VatAccountInfo"] | null;
2028
+
2029
+ };
2030
+ /** ProjectInfo */
2031
+ ProjectInfo: {
2032
+ /** Name */
2033
+ name: string;
2034
+
2035
+ };
2036
+ /** SupplierInfo */
2037
+ SupplierInfo: {
2038
+ /** Company */
2039
+ company: string;
2040
+ /** Accountnumber */
2041
+ accountnumber: string;
2042
+ /** Currency */
2043
+ currency: string;
2044
+
2045
+ };
2046
+ /** VatAccountInfo */
2047
+ VatAccountInfo: {
2048
+ /** Name */
2049
+ name?: string | null;
2050
+ /** Accountnumber */
2051
+ accountnumber: string;
2052
+ /** Currency */
2053
+ currency?: string | null;
2054
+
2055
+ };
2056
+ };
2057
+ responses: never;
2058
+ parameters: never;
2059
+ requestBodies: never;
2060
+ headers: never;
2061
+ pathItems: never;
2062
+ }
2063
+
2064
+ export type $defs = Record<string, never>;
2065
+
2066
+ export type external = Record<string, never>;
2067
+
1235
2068
  export interface operations {
1236
2069
 
1237
2070
  /**
@@ -2586,15 +3419,55 @@ export interface operations {
2586
3419
  };
2587
3420
  };
2588
3421
  };
2589
- /** Get Primary And Secondary Currency */
2590
- common_currency_views_get_primary_and_secondary_currency: {
2591
- responses: {
2592
- /** @description OK */
2593
- 200: {
2594
- content: {
2595
- "application/json": components["schemas"]["CurrencyList"][];
2596
- };
2597
- };
3422
+ /**
3423
+ * Balance Sheet
3424
+ * @description
3425
+ */
3426
+ reports_views_balance_sheet: {
3427
+ parameters: {
3428
+ query: {
3429
+ currenciesIds: number[];
3430
+ branchesIds: number[];
3431
+ /** @description End date for custom range (YYYY-MM-DD) */
3432
+ endDate: string;
3433
+ };
3434
+ };
3435
+ responses: {
3436
+ /** @description OK */
3437
+ 200: {
3438
+ content: {
3439
+ "application/json": components["schemas"]["profitAndLossSchema"][];
3440
+ };
3441
+ };
3442
+ /** @description Bad Request */
3443
+ 400: {
3444
+ content: {
3445
+ "application/json": components["schemas"]["MessageResponse"];
3446
+ };
3447
+ };
3448
+ /** @description Forbidden */
3449
+ 403: {
3450
+ content: {
3451
+ "application/json": components["schemas"]["MessageResponse"];
3452
+ };
3453
+ };
3454
+ /** @description Not Found */
3455
+ 404: {
3456
+ content: {
3457
+ "application/json": components["schemas"]["MessageResponse"];
3458
+ };
3459
+ };
3460
+ };
3461
+ };
3462
+ /** Get Primary And Secondary Currency */
3463
+ common_currency_views_get_primary_and_secondary_currency: {
3464
+ responses: {
3465
+ /** @description OK */
3466
+ 200: {
3467
+ content: {
3468
+ "application/json": components["schemas"]["CurrencyList"][];
3469
+ };
3470
+ };
2598
3471
  };
2599
3472
  };
2600
3473
  /**
@@ -2638,6 +3511,438 @@ export interface operations {
2638
3511
  };
2639
3512
  };
2640
3513
  };
3514
+ /**
3515
+ * List Sessions
3516
+ * @description Endpoint to list sessions
3517
+ * Possible Responses:
3518
+ * - 200:
3519
+ * - ListSessionSchema
3520
+ * - 400:
3521
+ * - invalidFilterFormat
3522
+ * - paginationError
3523
+ * - 403:
3524
+ * - permissionDenied
3525
+ * - 500:
3526
+ * - internalServerError
3527
+ */
3528
+ pos_session_views_list_sessions: {
3529
+ parameters: {
3530
+ query: {
3531
+ branches: number[];
3532
+ filters?: string;
3533
+ /** @description Page number */
3534
+ page?: number;
3535
+ /** @description Page size */
3536
+ pageSize?: number;
3537
+ };
3538
+ };
3539
+ responses: {
3540
+ /** @description OK */
3541
+ 200: {
3542
+ content: {
3543
+ "application/json": components["schemas"]["ListSessionSchema"];
3544
+ };
3545
+ };
3546
+ /** @description Bad Request */
3547
+ 400: {
3548
+ content: {
3549
+ "application/json": components["schemas"]["MessageResponse"];
3550
+ };
3551
+ };
3552
+ /** @description Forbidden */
3553
+ 403: {
3554
+ content: {
3555
+ "application/json": components["schemas"]["MessageResponse"];
3556
+ };
3557
+ };
3558
+ /** @description Internal Server Error */
3559
+ 500: {
3560
+ content: {
3561
+ "application/json": components["schemas"]["MessageResponse"];
3562
+ };
3563
+ };
3564
+ };
3565
+ };
3566
+ /**
3567
+ * Get X Report
3568
+ * @description Endpoint to get X report
3569
+ * Possible Responses:
3570
+ * - 200:
3571
+ * - XReportSchema
3572
+ * - 400:
3573
+ * - invalidFilterFormat
3574
+ * - paginationError
3575
+ * - sessionNotClosed
3576
+ * - 403:
3577
+ * - permissionDenied
3578
+ * - 404:
3579
+ * - sessionDoesNotExist
3580
+ * - settingsDoesNotExist
3581
+ * - companyDoesNotExist
3582
+ */
3583
+ pos_session_views_get_x_report: {
3584
+ parameters: {
3585
+ path: {
3586
+ id: string;
3587
+ };
3588
+ };
3589
+ responses: {
3590
+ /** @description OK */
3591
+ 200: {
3592
+ content: {
3593
+ "application/json": components["schemas"]["XReportSchema"];
3594
+ };
3595
+ };
3596
+ /** @description Bad Request */
3597
+ 400: {
3598
+ content: {
3599
+ "application/json": components["schemas"]["MessageResponse"];
3600
+ };
3601
+ };
3602
+ /** @description Forbidden */
3603
+ 403: {
3604
+ content: {
3605
+ "application/json": components["schemas"]["MessageResponse"];
3606
+ };
3607
+ };
3608
+ /** @description Not Found */
3609
+ 404: {
3610
+ content: {
3611
+ "application/json": components["schemas"]["MessageResponse"];
3612
+ };
3613
+ };
3614
+ };
3615
+ };
3616
+ /**
3617
+ * Get Invoices
3618
+ * @description endpoint to get invoices
3619
+ * Possible Responses:
3620
+ * - 200:
3621
+ * - ListInvoiceSchema
3622
+ * - 400:
3623
+ * - invalidFilterFormat
3624
+ * - paginationError
3625
+ * - 403:
3626
+ * - permissionDenied
3627
+ * - 404:
3628
+ * - sessionDoesNotExist
3629
+ * - 500:
3630
+ * - internalServerError
3631
+ */
3632
+ pos_session_views_get_invoices: {
3633
+ parameters: {
3634
+ query?: {
3635
+ filters?: string;
3636
+ /** @description Page number */
3637
+ page?: number;
3638
+ /** @description Page size */
3639
+ pageSize?: number;
3640
+ };
3641
+ path: {
3642
+ id: string;
3643
+ };
3644
+ };
3645
+ responses: {
3646
+ /** @description OK */
3647
+ 200: {
3648
+ content: {
3649
+ "application/json": components["schemas"]["ListInvoiceSchema"];
3650
+ };
3651
+ };
3652
+ /** @description Bad Request */
3653
+ 400: {
3654
+ content: {
3655
+ "application/json": components["schemas"]["MessageResponse"];
3656
+ };
3657
+ };
3658
+ /** @description Unauthorized */
3659
+ 401: {
3660
+ content: {
3661
+ "application/json": components["schemas"]["MessageResponse"];
3662
+ };
3663
+ };
3664
+ /** @description Forbidden */
3665
+ 403: {
3666
+ content: {
3667
+ "application/json": components["schemas"]["MessageResponse"];
3668
+ };
3669
+ };
3670
+ /** @description Not Found */
3671
+ 404: {
3672
+ content: {
3673
+ "application/json": components["schemas"]["MessageResponse"];
3674
+ };
3675
+ };
3676
+ /** @description Internal Server Error */
3677
+ 500: {
3678
+ content: {
3679
+ "application/json": components["schemas"]["MessageResponse"];
3680
+ };
3681
+ };
3682
+ };
3683
+ };
3684
+ /**
3685
+ * Get Exchange Invoices
3686
+ * @description endpoint to get exchanged invoices
3687
+ * Possible Responses:
3688
+ * - 200:
3689
+ * - ListInvoiceSchema
3690
+ * - 400:
3691
+ * - invalidFilterFormat
3692
+ * - paginationError
3693
+ * - 403:
3694
+ * - permissionDenied
3695
+ * - 404:
3696
+ * - sessionDoesNotExist
3697
+ * - 500:
3698
+ * - internalServerError
3699
+ */
3700
+ pos_session_views_get_exchange_invoices: {
3701
+ parameters: {
3702
+ query?: {
3703
+ filters?: string;
3704
+ /** @description Page number */
3705
+ page?: number;
3706
+ /** @description Page size */
3707
+ pageSize?: number;
3708
+ };
3709
+ path: {
3710
+ id: string;
3711
+ };
3712
+ };
3713
+ responses: {
3714
+ /** @description OK */
3715
+ 200: {
3716
+ content: {
3717
+ "application/json": components["schemas"]["ListInvoiceSchema"];
3718
+ };
3719
+ };
3720
+ /** @description Bad Request */
3721
+ 400: {
3722
+ content: {
3723
+ "application/json": components["schemas"]["MessageResponse"];
3724
+ };
3725
+ };
3726
+ /** @description Unauthorized */
3727
+ 401: {
3728
+ content: {
3729
+ "application/json": components["schemas"]["MessageResponse"];
3730
+ };
3731
+ };
3732
+ /** @description Not Found */
3733
+ 404: {
3734
+ content: {
3735
+ "application/json": components["schemas"]["MessageResponse"];
3736
+ };
3737
+ };
3738
+ /** @description Internal Server Error */
3739
+ 500: {
3740
+ content: {
3741
+ "application/json": components["schemas"]["MessageResponse"];
3742
+ };
3743
+ };
3744
+ };
3745
+ };
3746
+ /**
3747
+ * Get Return Invoices
3748
+ * @description endpoint to get return invoices
3749
+ * Possible Responses:
3750
+ * - 200:
3751
+ * - ListInvoiceSchema
3752
+ * - 400:
3753
+ * - invalidFilterFormat
3754
+ * - paginationError
3755
+ * - 403:
3756
+ * - permissionDenied
3757
+ * - 404:
3758
+ * - sessionDoesNotExist
3759
+ * - 500:
3760
+ * - internalServerError
3761
+ */
3762
+ pos_session_views_get_return_invoices: {
3763
+ parameters: {
3764
+ query?: {
3765
+ filters?: string;
3766
+ /** @description Page number */
3767
+ page?: number;
3768
+ /** @description Page size */
3769
+ pageSize?: number;
3770
+ };
3771
+ path: {
3772
+ id: string;
3773
+ };
3774
+ };
3775
+ responses: {
3776
+ /** @description OK */
3777
+ 200: {
3778
+ content: {
3779
+ "application/json": components["schemas"]["ListReturnSchema"];
3780
+ };
3781
+ };
3782
+ /** @description Bad Request */
3783
+ 400: {
3784
+ content: {
3785
+ "application/json": components["schemas"]["MessageResponse"];
3786
+ };
3787
+ };
3788
+ /** @description Unauthorized */
3789
+ 401: {
3790
+ content: {
3791
+ "application/json": components["schemas"]["MessageResponse"];
3792
+ };
3793
+ };
3794
+ /** @description Not Found */
3795
+ 404: {
3796
+ content: {
3797
+ "application/json": components["schemas"]["MessageResponse"];
3798
+ };
3799
+ };
3800
+ /** @description Internal Server Error */
3801
+ 500: {
3802
+ content: {
3803
+ "application/json": components["schemas"]["MessageResponse"];
3804
+ };
3805
+ };
3806
+ };
3807
+ };
3808
+ /**
3809
+ * Get Invoice
3810
+ * @description Get invoice by id
3811
+ * possible responses:
3812
+ * 200:
3813
+ * - InvoiceInfoSchema
3814
+ * 404:
3815
+ * - invoiceDoesNotExist
3816
+ * 403:
3817
+ * - permissionDenied
3818
+ * 500:
3819
+ * - internalServerError
3820
+ */
3821
+ pos_invoice_views_get_invoice: {
3822
+ parameters: {
3823
+ path: {
3824
+ id: string;
3825
+ };
3826
+ };
3827
+ responses: {
3828
+ /** @description OK */
3829
+ 200: {
3830
+ content: {
3831
+ "application/json": components["schemas"]["InvoiceInfoSchema"];
3832
+ };
3833
+ };
3834
+ /** @description Forbidden */
3835
+ 403: {
3836
+ content: {
3837
+ "application/json": components["schemas"]["MessageResponse"];
3838
+ };
3839
+ };
3840
+ /** @description Not Found */
3841
+ 404: {
3842
+ content: {
3843
+ "application/json": components["schemas"]["MessageResponse"];
3844
+ };
3845
+ };
3846
+ /** @description Internal Server Error */
3847
+ 500: {
3848
+ content: {
3849
+ "application/json": components["schemas"]["MessageResponse"];
3850
+ };
3851
+ };
3852
+ };
3853
+ };
3854
+ /**
3855
+ * Get Exchange Invoice
3856
+ * @description Get exchange by id
3857
+ * possible responses:
3858
+ * 200:
3859
+ * - InvoiceInfoSchema
3860
+ * 404:
3861
+ * - invoiceNotFound
3862
+ * 403:
3863
+ * - permissionDenied
3864
+ * 500:
3865
+ * - internalServerError
3866
+ */
3867
+ pos_invoice_views_get_exchange_invoice: {
3868
+ parameters: {
3869
+ path: {
3870
+ id: string;
3871
+ };
3872
+ };
3873
+ responses: {
3874
+ /** @description OK */
3875
+ 200: {
3876
+ content: {
3877
+ "application/json": components["schemas"]["InvoiceInfoSchema"];
3878
+ };
3879
+ };
3880
+ /** @description Forbidden */
3881
+ 403: {
3882
+ content: {
3883
+ "application/json": components["schemas"]["MessageResponse"];
3884
+ };
3885
+ };
3886
+ /** @description Not Found */
3887
+ 404: {
3888
+ content: {
3889
+ "application/json": components["schemas"]["MessageResponse"];
3890
+ };
3891
+ };
3892
+ /** @description Internal Server Error */
3893
+ 500: {
3894
+ content: {
3895
+ "application/json": components["schemas"]["MessageResponse"];
3896
+ };
3897
+ };
3898
+ };
3899
+ };
3900
+ /**
3901
+ * Get Return Invoice
3902
+ * @description Get return by id
3903
+ * possible responses:
3904
+ * 200:
3905
+ * - InvoiceInfoSchema
3906
+ * 404:
3907
+ * - invoiceNotFound
3908
+ * 403:
3909
+ * - permissionDenied
3910
+ * 500:
3911
+ * - internalServerError
3912
+ */
3913
+ pos_invoice_views_get_return_invoice: {
3914
+ parameters: {
3915
+ path: {
3916
+ id: string;
3917
+ };
3918
+ };
3919
+ responses: {
3920
+ /** @description OK */
3921
+ 200: {
3922
+ content: {
3923
+ "application/json": components["schemas"]["ReturnInvoiceInfoSchema"];
3924
+ };
3925
+ };
3926
+ /** @description Forbidden */
3927
+ 403: {
3928
+ content: {
3929
+ "application/json": components["schemas"]["MessageResponse"];
3930
+ };
3931
+ };
3932
+ /** @description Not Found */
3933
+ 404: {
3934
+ content: {
3935
+ "application/json": components["schemas"]["MessageResponse"];
3936
+ };
3937
+ };
3938
+ /** @description Internal Server Error */
3939
+ 500: {
3940
+ content: {
3941
+ "application/json": components["schemas"]["MessageResponse"];
3942
+ };
3943
+ };
3944
+ };
3945
+ };
2641
3946
  /**
2642
3947
  * List Journal Vouchers In Export
2643
3948
  * @description Endpoint for list journal vouchers in export