@erp-galoper/types 1.0.2059 → 1.0.2060

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 +1350 -90
  2. package/package.json +1 -1
package/openapi.ts CHANGED
@@ -21464,6 +21464,278 @@ export interface paths {
21464
21464
  patch?: never;
21465
21465
  trace?: never;
21466
21466
  };
21467
+ "/api/v1/reports/purchase-dashboard/": {
21468
+ parameters: {
21469
+ query?: never;
21470
+ header?: never;
21471
+ path?: never;
21472
+ cookie?: never;
21473
+ };
21474
+ /** Get Purchase Dashboard Data */
21475
+ get: operations["reports_purchasedashboard_views_get_purchase_dashboard_data"];
21476
+ put?: never;
21477
+ post?: never;
21478
+ delete?: never;
21479
+ options?: never;
21480
+ head?: never;
21481
+ patch?: never;
21482
+ trace?: never;
21483
+ };
21484
+ "/api/v1/reports/purchase-dashboard/summary/": {
21485
+ parameters: {
21486
+ query?: never;
21487
+ header?: never;
21488
+ path?: never;
21489
+ cookie?: never;
21490
+ };
21491
+ /** Get Purchase Dashboard Summary */
21492
+ get: operations["reports_purchasedashboard_views_get_purchase_dashboard_summary"];
21493
+ put?: never;
21494
+ post?: never;
21495
+ delete?: never;
21496
+ options?: never;
21497
+ head?: never;
21498
+ patch?: never;
21499
+ trace?: never;
21500
+ };
21501
+ "/api/v1/reports/purchase-dashboard/spend-trend/": {
21502
+ parameters: {
21503
+ query?: never;
21504
+ header?: never;
21505
+ path?: never;
21506
+ cookie?: never;
21507
+ };
21508
+ /** Get Purchase Dashboard Spend Trend */
21509
+ get: operations["reports_purchasedashboard_views_get_purchase_dashboard_spend_trend"];
21510
+ put?: never;
21511
+ post?: never;
21512
+ delete?: never;
21513
+ options?: never;
21514
+ head?: never;
21515
+ patch?: never;
21516
+ trace?: never;
21517
+ };
21518
+ "/api/v1/reports/purchase-dashboard/lifecycle-comparison/": {
21519
+ parameters: {
21520
+ query?: never;
21521
+ header?: never;
21522
+ path?: never;
21523
+ cookie?: never;
21524
+ };
21525
+ /** Get Purchase Dashboard Lifecycle Comparison */
21526
+ get: operations["reports_purchasedashboard_views_get_purchase_dashboard_lifecycle_comparison"];
21527
+ put?: never;
21528
+ post?: never;
21529
+ delete?: never;
21530
+ options?: never;
21531
+ head?: never;
21532
+ patch?: never;
21533
+ trace?: never;
21534
+ };
21535
+ "/api/v1/reports/purchase-dashboard/return-reasons/": {
21536
+ parameters: {
21537
+ query?: never;
21538
+ header?: never;
21539
+ path?: never;
21540
+ cookie?: never;
21541
+ };
21542
+ /** Get Purchase Dashboard Return Reasons */
21543
+ get: operations["reports_purchasedashboard_views_get_purchase_dashboard_return_reasons"];
21544
+ put?: never;
21545
+ post?: never;
21546
+ delete?: never;
21547
+ options?: never;
21548
+ head?: never;
21549
+ patch?: never;
21550
+ trace?: never;
21551
+ };
21552
+ "/api/v1/reports/purchase-dashboard/returns-by-stage/": {
21553
+ parameters: {
21554
+ query?: never;
21555
+ header?: never;
21556
+ path?: never;
21557
+ cookie?: never;
21558
+ };
21559
+ /** Get Purchase Dashboard Returns By Stage */
21560
+ get: operations["reports_purchasedashboard_views_get_purchase_dashboard_returns_by_stage"];
21561
+ put?: never;
21562
+ post?: never;
21563
+ delete?: never;
21564
+ options?: never;
21565
+ head?: never;
21566
+ patch?: never;
21567
+ trace?: never;
21568
+ };
21569
+ "/api/v1/reports/purchase-dashboard/spend-by-branch/": {
21570
+ parameters: {
21571
+ query?: never;
21572
+ header?: never;
21573
+ path?: never;
21574
+ cookie?: never;
21575
+ };
21576
+ /** Get Purchase Dashboard Spend By Branch */
21577
+ get: operations["reports_purchasedashboard_views_get_purchase_dashboard_spend_by_branch"];
21578
+ put?: never;
21579
+ post?: never;
21580
+ delete?: never;
21581
+ options?: never;
21582
+ head?: never;
21583
+ patch?: never;
21584
+ trace?: never;
21585
+ };
21586
+ "/api/v1/reports/purchase-dashboard/approval-status/": {
21587
+ parameters: {
21588
+ query?: never;
21589
+ header?: never;
21590
+ path?: never;
21591
+ cookie?: never;
21592
+ };
21593
+ /** Get Purchase Dashboard Approval Status */
21594
+ get: operations["reports_purchasedashboard_views_get_purchase_dashboard_approval_status"];
21595
+ put?: never;
21596
+ post?: never;
21597
+ delete?: never;
21598
+ options?: never;
21599
+ head?: never;
21600
+ patch?: never;
21601
+ trace?: never;
21602
+ };
21603
+ "/api/v1/reports/purchase-dashboard/pipeline/": {
21604
+ parameters: {
21605
+ query?: never;
21606
+ header?: never;
21607
+ path?: never;
21608
+ cookie?: never;
21609
+ };
21610
+ /** Get Purchase Dashboard Pipeline */
21611
+ get: operations["reports_purchasedashboard_views_get_purchase_dashboard_pipeline"];
21612
+ put?: never;
21613
+ post?: never;
21614
+ delete?: never;
21615
+ options?: never;
21616
+ head?: never;
21617
+ patch?: never;
21618
+ trace?: never;
21619
+ };
21620
+ "/api/v1/reports/purchase-dashboard/conversion-funnel/": {
21621
+ parameters: {
21622
+ query?: never;
21623
+ header?: never;
21624
+ path?: never;
21625
+ cookie?: never;
21626
+ };
21627
+ /** Get Purchase Dashboard Conversion Funnel */
21628
+ get: operations["reports_purchasedashboard_views_get_purchase_dashboard_conversion_funnel"];
21629
+ put?: never;
21630
+ post?: never;
21631
+ delete?: never;
21632
+ options?: never;
21633
+ head?: never;
21634
+ patch?: never;
21635
+ trace?: never;
21636
+ };
21637
+ "/api/v1/reports/purchase-dashboard/cash-flow/": {
21638
+ parameters: {
21639
+ query?: never;
21640
+ header?: never;
21641
+ path?: never;
21642
+ cookie?: never;
21643
+ };
21644
+ /** Get Purchase Dashboard Cash Flow */
21645
+ get: operations["reports_purchasedashboard_views_get_purchase_dashboard_cash_flow"];
21646
+ put?: never;
21647
+ post?: never;
21648
+ delete?: never;
21649
+ options?: never;
21650
+ head?: never;
21651
+ patch?: never;
21652
+ trace?: never;
21653
+ };
21654
+ "/api/v1/reports/purchase-dashboard/cash-flow/trend/": {
21655
+ parameters: {
21656
+ query?: never;
21657
+ header?: never;
21658
+ path?: never;
21659
+ cookie?: never;
21660
+ };
21661
+ /** Get Purchase Dashboard Cash Flow Trend */
21662
+ get: operations["reports_purchasedashboard_views_get_purchase_dashboard_cash_flow_trend"];
21663
+ put?: never;
21664
+ post?: never;
21665
+ delete?: never;
21666
+ options?: never;
21667
+ head?: never;
21668
+ patch?: never;
21669
+ trace?: never;
21670
+ };
21671
+ "/api/v1/reports/purchase-dashboard/top-items/": {
21672
+ parameters: {
21673
+ query?: never;
21674
+ header?: never;
21675
+ path?: never;
21676
+ cookie?: never;
21677
+ };
21678
+ /** Get Purchase Dashboard Top Items */
21679
+ get: operations["reports_purchasedashboard_views_get_purchase_dashboard_top_items"];
21680
+ put?: never;
21681
+ post?: never;
21682
+ delete?: never;
21683
+ options?: never;
21684
+ head?: never;
21685
+ patch?: never;
21686
+ trace?: never;
21687
+ };
21688
+ "/api/v1/reports/purchase-dashboard/top-suppliers/": {
21689
+ parameters: {
21690
+ query?: never;
21691
+ header?: never;
21692
+ path?: never;
21693
+ cookie?: never;
21694
+ };
21695
+ /** Get Purchase Dashboard Top Suppliers */
21696
+ get: operations["reports_purchasedashboard_views_get_purchase_dashboard_top_suppliers"];
21697
+ put?: never;
21698
+ post?: never;
21699
+ delete?: never;
21700
+ options?: never;
21701
+ head?: never;
21702
+ patch?: never;
21703
+ trace?: never;
21704
+ };
21705
+ "/api/v1/reports/purchase-dashboard/top-branches/": {
21706
+ parameters: {
21707
+ query?: never;
21708
+ header?: never;
21709
+ path?: never;
21710
+ cookie?: never;
21711
+ };
21712
+ /** Get Purchase Dashboard Top Branches */
21713
+ get: operations["reports_purchasedashboard_views_get_purchase_dashboard_top_branches"];
21714
+ put?: never;
21715
+ post?: never;
21716
+ delete?: never;
21717
+ options?: never;
21718
+ head?: never;
21719
+ patch?: never;
21720
+ trace?: never;
21721
+ };
21722
+ "/api/v1/reports/purchase-dashboard/alerts/": {
21723
+ parameters: {
21724
+ query?: never;
21725
+ header?: never;
21726
+ path?: never;
21727
+ cookie?: never;
21728
+ };
21729
+ /** Get Purchase Dashboard Alerts */
21730
+ get: operations["reports_purchasedashboard_views_get_purchase_dashboard_alerts"];
21731
+ put?: never;
21732
+ post?: never;
21733
+ delete?: never;
21734
+ options?: never;
21735
+ head?: never;
21736
+ patch?: never;
21737
+ trace?: never;
21738
+ };
21467
21739
  "/api/v1/task/status": {
21468
21740
  parameters: {
21469
21741
  query?: never;
@@ -25643,6 +25915,11 @@ export interface components {
25643
25915
  * @default []
25644
25916
  */
25645
25917
  project: components["schemas"]["BasePermissionsSchema_Report_Project"];
25918
+ /**
25919
+ * @description purchase actions
25920
+ * @default []
25921
+ */
25922
+ purchase: components["schemas"]["BasePermissionsSchema_Report_Purchase"];
25646
25923
  };
25647
25924
  /** BasePermissionsSchema_Report_Accounting */
25648
25925
  BasePermissionsSchema_Report_Accounting: {
@@ -25875,6 +26152,15 @@ export interface components {
25875
26152
  * @enum {string}
25876
26153
  */
25877
26154
  BasePermissionsSchema_Report_Project_ProjectstatementEnum: "export" | "view";
26155
+ /** BasePermissionsSchema_Report_Purchase */
26156
+ BasePermissionsSchema_Report_Purchase: {
26157
+ /**
26158
+ * Purchasedashboard
26159
+ * @description purchasedashboard actions
26160
+ * @default []
26161
+ */
26162
+ purchasedashboard: string[];
26163
+ };
25878
26164
  /** BasePermissionsSchema_Report_Sales */
25879
26165
  BasePermissionsSchema_Report_Sales: {
25880
26166
  /**
@@ -25919,6 +26205,12 @@ export interface components {
25919
26205
  * @default []
25920
26206
  */
25921
26207
  salesbywarehousereport: components["schemas"]["BasePermissionsSchema_Report_Sales_SalesbywarehousereportEnum"][];
26208
+ /**
26209
+ * Salesdashboard
26210
+ * @description salesdashboard actions
26211
+ * @default []
26212
+ */
26213
+ salesdashboard: components["schemas"]["BasePermissionsSchema_Report_Sales_SalesdashboardEnum"][];
25922
26214
  /**
25923
26215
  * Salessummaryreport
25924
26216
  * @description salessummaryreport actions
@@ -25931,12 +26223,6 @@ export interface components {
25931
26223
  * @default []
25932
26224
  */
25933
26225
  salestrendreport: components["schemas"]["BasePermissionsSchema_Report_Sales_SalestrendreportEnum"][];
25934
- /**
25935
- * Salesdashboard
25936
- * @description salesdashboard actions
25937
- * @default []
25938
- */
25939
- salesdashboard: string[];
25940
26226
  };
25941
26227
  /**
25942
26228
  * BasePermissionsSchema_Report_Sales_ReceivablesbycustomerregionreportEnum
@@ -25973,6 +26259,11 @@ export interface components {
25973
26259
  * @enum {string}
25974
26260
  */
25975
26261
  BasePermissionsSchema_Report_Sales_SalesbywarehousereportEnum: "export" | "view";
26262
+ /**
26263
+ * BasePermissionsSchema_Report_Sales_SalesdashboardEnum
26264
+ * @constant
26265
+ */
26266
+ BasePermissionsSchema_Report_Sales_SalesdashboardEnum: "view";
25976
26267
  /**
25977
26268
  * BasePermissionsSchema_Report_Sales_SalessummaryreportEnum
25978
26269
  * @enum {string}
@@ -65426,12 +65717,12 @@ export interface components {
65426
65717
  * Format: date
65427
65718
  */
65428
65719
  periodEnd: string;
65429
- inflows: components["schemas"]["CurrencyAmountSchema"];
65430
- /** Inflowtransactioncount */
65431
- inflowTransactionCount: number;
65432
- outflows: components["schemas"]["CurrencyAmountSchema"];
65433
- /** Outflowtransactioncount */
65434
- outflowTransactionCount: number;
65720
+ cashPaid: components["schemas"]["CurrencyAmountSchema"];
65721
+ /** Cashpaidtransactioncount */
65722
+ cashPaidTransactionCount: number;
65723
+ cashRefunded: components["schemas"]["CurrencyAmountSchema"];
65724
+ /** Cashrefundedtransactioncount */
65725
+ cashRefundedTransactionCount: number;
65435
65726
  };
65436
65727
  /** CashFlowTrendSchema */
65437
65728
  CashFlowTrendSchema: {
@@ -65664,10 +65955,7 @@ export interface components {
65664
65955
  periodEnd: string | null;
65665
65956
  primaryCurrency: components["schemas"]["CurrencyInfoSchema"];
65666
65957
  secondaryCurrency: components["schemas"]["CurrencyInfoSchema"] | null;
65667
- summaryCards: components["schemas"]["SummaryCardsSchema"];
65668
- salesBreakdown: components["schemas"]["SalesBreakdownSchema"];
65669
- orderMetrics: components["schemas"]["OrderMetricsSchema"];
65670
- returnSummary: components["schemas"]["ReturnSummarySchema"];
65958
+ summaryCards: components["schemas"]["PurchaseSummaryCardsSchema"];
65671
65959
  };
65672
65960
  /** DashboardPipelineResponseSchema */
65673
65961
  DashboardPipelineResponseSchema: {
@@ -65677,7 +65965,7 @@ export interface components {
65677
65965
  periodEnd: string | null;
65678
65966
  primaryCurrency: components["schemas"]["CurrencyInfoSchema"];
65679
65967
  secondaryCurrency: components["schemas"]["CurrencyInfoSchema"] | null;
65680
- salesPipeline: components["schemas"]["SalesPipelineSchema"];
65968
+ purchasePipeline: components["schemas"]["PurchasePipelineSchema"];
65681
65969
  };
65682
65970
  /** DashboardInvoiceInsightsResponseSchema */
65683
65971
  DashboardInvoiceInsightsResponseSchema: {
@@ -65697,7 +65985,7 @@ export interface components {
65697
65985
  periodEnd: string | null;
65698
65986
  primaryCurrency: components["schemas"]["CurrencyInfoSchema"];
65699
65987
  secondaryCurrency: components["schemas"]["CurrencyInfoSchema"] | null;
65700
- conversionFunnel: components["schemas"]["ConversionFunnelSchema"];
65988
+ conversionFunnel: components["schemas"]["PurchaseConversionFunnelSchema"];
65701
65989
  };
65702
65990
  /** DashboardCashFlowResponseSchema */
65703
65991
  DashboardCashFlowResponseSchema: {
@@ -65707,7 +65995,7 @@ export interface components {
65707
65995
  periodEnd: string | null;
65708
65996
  primaryCurrency: components["schemas"]["CurrencyInfoSchema"];
65709
65997
  secondaryCurrency: components["schemas"]["CurrencyInfoSchema"] | null;
65710
- cashFlowAnalysis: components["schemas"]["CashFlowAnalysisSchema"];
65998
+ cashFlowAnalysis: components["schemas"]["PurchaseCashFlowAnalysisSchema"];
65711
65999
  };
65712
66000
  /** DashboardCashFlowTrendResponseSchema */
65713
66001
  DashboardCashFlowTrendResponseSchema: {
@@ -65717,7 +66005,7 @@ export interface components {
65717
66005
  periodEnd: string | null;
65718
66006
  primaryCurrency: components["schemas"]["CurrencyInfoSchema"];
65719
66007
  secondaryCurrency: components["schemas"]["CurrencyInfoSchema"] | null;
65720
- cashFlowTrend: components["schemas"]["CashFlowTrendSchema"];
66008
+ cashFlowTrend: components["schemas"]["PurchaseCashFlowTrendSchema"];
65721
66009
  };
65722
66010
  /** DashboardItemCostDistributionResponseSchema */
65723
66011
  DashboardItemCostDistributionResponseSchema: {
@@ -65750,7 +66038,7 @@ export interface components {
65750
66038
  primaryCurrency: components["schemas"]["CurrencyInfoSchema"];
65751
66039
  secondaryCurrency: components["schemas"]["CurrencyInfoSchema"] | null;
65752
66040
  /** Topperformingitems */
65753
- topPerformingItems: components["schemas"]["TopPerformingItemSchema"][];
66041
+ topPerformingItems: components["schemas"]["TopPerformingPurchaseItemSchema"][];
65754
66042
  };
65755
66043
  /** DashboardTopCustomersResponseSchema */
65756
66044
  DashboardTopCustomersResponseSchema: {
@@ -65772,7 +66060,7 @@ export interface components {
65772
66060
  primaryCurrency: components["schemas"]["CurrencyInfoSchema"];
65773
66061
  secondaryCurrency: components["schemas"]["CurrencyInfoSchema"] | null;
65774
66062
  /** Topperformingbranches */
65775
- topPerformingBranches: components["schemas"]["TopPerformingBranchSchema"][];
66063
+ topPerformingBranches: components["schemas"]["TopPerformingPurchaseBranchSchema"][];
65776
66064
  };
65777
66065
  /** ReceivablesByCustomerRegionContactSchema */
65778
66066
  ReceivablesByCustomerRegionContactSchema: {
@@ -65860,6 +66148,286 @@ export interface components {
65860
66148
  ReceivablesByCustomerRegionReportSchema: {
65861
66149
  reportMeta: components["schemas"]["ReceivablesByCustomerRegionReportMetaSchema"];
65862
66150
  };
66151
+ /** ApprovalStatusByTypeSchema */
66152
+ ApprovalStatusByTypeSchema: {
66153
+ /** Documenttype */
66154
+ documentType: string;
66155
+ /** Approvedcount */
66156
+ approvedCount: number;
66157
+ /** Draftcount */
66158
+ draftCount: number;
66159
+ /** Pendingcount */
66160
+ pendingCount: number;
66161
+ /** Rejectedcount */
66162
+ rejectedCount: number;
66163
+ /** Notrequiredcount */
66164
+ notRequiredCount: number;
66165
+ };
66166
+ /** BranchSpendSchema */
66167
+ BranchSpendSchema: {
66168
+ /**
66169
+ * Branchid
66170
+ * Format: uuid
66171
+ */
66172
+ branchId: string;
66173
+ /** Branchname */
66174
+ branchName: string;
66175
+ purchaseAmount: components["schemas"]["CurrencyAmountSchema"];
66176
+ };
66177
+ /** LifecycleComparisonSchema */
66178
+ LifecycleComparisonSchema: {
66179
+ ordered: components["schemas"]["CurrencyAmountSchema"];
66180
+ invoiced: components["schemas"]["CurrencyAmountSchema"];
66181
+ received: components["schemas"]["CurrencyAmountSchema"];
66182
+ paid: components["schemas"]["CurrencyAmountSchema"];
66183
+ };
66184
+ /** PurchaseCashFlowAnalysisSchema */
66185
+ PurchaseCashFlowAnalysisSchema: {
66186
+ advancePayments: components["schemas"]["CurrencyAmountSchema"];
66187
+ paymentVouchers: components["schemas"]["CurrencyAmountSchema"];
66188
+ pendingPayables: components["schemas"]["CurrencyAmountSchema"];
66189
+ refundVouchers: components["schemas"]["CurrencyAmountSchema"];
66190
+ };
66191
+ /** PurchaseCashFlowTrendSchema */
66192
+ PurchaseCashFlowTrendSchema: {
66193
+ granularity: components["schemas"]["SalesReportGranularity"];
66194
+ /** Periods */
66195
+ periods: components["schemas"]["CashFlowTrendPeriodSchema"][];
66196
+ };
66197
+ /** PurchaseConversionFunnelSchema */
66198
+ PurchaseConversionFunnelSchema: {
66199
+ quotations: components["schemas"]["FunnelStageSchema"];
66200
+ orders: components["schemas"]["FunnelStageSchema"];
66201
+ invoices: components["schemas"]["FunnelStageSchema"];
66202
+ paid: components["schemas"]["FunnelStageSchema"];
66203
+ /** Quotationtoorder */
66204
+ quotationToOrder: string | null;
66205
+ /** Ordertoinvoice */
66206
+ orderToInvoice: string | null;
66207
+ /** Invoicetopaid */
66208
+ invoiceToPaid: string | null;
66209
+ };
66210
+ /** PurchaseDashboardAlertSchema */
66211
+ PurchaseDashboardAlertSchema: {
66212
+ /** Alerttype */
66213
+ alertType: string;
66214
+ /** Affectedrecords */
66215
+ affectedRecords: number;
66216
+ amount?: components["schemas"]["CurrencyAmountSchema"] | null;
66217
+ };
66218
+ /** PurchaseDashboardSchema */
66219
+ PurchaseDashboardSchema: {
66220
+ /** Periodstart */
66221
+ periodStart: string | null;
66222
+ /** Periodend */
66223
+ periodEnd: string | null;
66224
+ primaryCurrency: components["schemas"]["CurrencyInfoSchema"];
66225
+ secondaryCurrency: components["schemas"]["CurrencyInfoSchema"] | null;
66226
+ summaryCards: components["schemas"]["PurchaseSummaryCardsSchema"];
66227
+ purchaseSpendTrend: components["schemas"]["PurchaseSpendTrendSchema"];
66228
+ lifecycleComparison: components["schemas"]["LifecycleComparisonSchema"];
66229
+ /** Returnreasons */
66230
+ returnReasons: components["schemas"]["ReturnReasonBreakdownSchema"][];
66231
+ returnsValueByStage: components["schemas"]["ReturnsValueByStageSchema"];
66232
+ /** Spendbybranch */
66233
+ spendByBranch: components["schemas"]["BranchSpendSchema"][];
66234
+ /** Approvalstatusbydocumenttype */
66235
+ approvalStatusByDocumentType: components["schemas"]["ApprovalStatusByTypeSchema"][];
66236
+ purchasePipeline: components["schemas"]["PurchasePipelineSchema"];
66237
+ conversionFunnel: components["schemas"]["PurchaseConversionFunnelSchema"];
66238
+ cashFlowAnalysis: components["schemas"]["PurchaseCashFlowAnalysisSchema"];
66239
+ cashFlowTrend: components["schemas"]["PurchaseCashFlowTrendSchema"];
66240
+ /** Topperformingitems */
66241
+ topPerformingItems: components["schemas"]["TopPerformingPurchaseItemSchema"][];
66242
+ /** Topperformingsuppliers */
66243
+ topPerformingSuppliers: components["schemas"]["TopPerformingSupplierSchema"][];
66244
+ /** Topperformingbranches */
66245
+ topPerformingBranches: components["schemas"]["TopPerformingPurchaseBranchSchema"][];
66246
+ /** Alerts */
66247
+ alerts: components["schemas"]["PurchaseDashboardAlertSchema"][];
66248
+ };
66249
+ /** PurchasePipelineSchema */
66250
+ PurchasePipelineSchema: {
66251
+ quotationsConverted: components["schemas"]["QuotationsConvertedPipelineSchema"];
66252
+ orders: components["schemas"]["PipelineStageMetricsSchema"];
66253
+ receipts: components["schemas"]["PipelineStageMetricsSchema"];
66254
+ paymentVouchers: components["schemas"]["PipelineStageMetricsSchema"];
66255
+ payments: components["schemas"]["CurrencyAmountSchema"];
66256
+ };
66257
+ /** PurchaseSpendTrendPointSchema */
66258
+ PurchaseSpendTrendPointSchema: {
66259
+ /**
66260
+ * Periodstart
66261
+ * Format: date
66262
+ */
66263
+ periodStart: string;
66264
+ /**
66265
+ * Periodend
66266
+ * Format: date
66267
+ */
66268
+ periodEnd: string;
66269
+ currentPeriodSpend: components["schemas"]["CurrencyAmountSchema"];
66270
+ previousPeriodSpend: components["schemas"]["CurrencyAmountSchema"];
66271
+ };
66272
+ /** PurchaseSpendTrendSchema */
66273
+ PurchaseSpendTrendSchema: {
66274
+ granularity: components["schemas"]["SalesReportGranularity"];
66275
+ /** Periods */
66276
+ periods: components["schemas"]["PurchaseSpendTrendPointSchema"][];
66277
+ };
66278
+ /** PurchaseSummaryCardsSchema */
66279
+ PurchaseSummaryCardsSchema: {
66280
+ totalPurchaseSpend: components["schemas"]["CurrencyAmountSchema"];
66281
+ /** Totalpurchaseorders */
66282
+ totalPurchaseOrders: number;
66283
+ /** Pendingapprovals */
66284
+ pendingApprovals: number;
66285
+ advancePayments: components["schemas"]["CurrencyAmountSchema"];
66286
+ refunds: components["schemas"]["CurrencyAmountSchema"];
66287
+ creditNotes: components["schemas"]["CurrencyAmountSchema"];
66288
+ };
66289
+ /** ReturnReasonBreakdownSchema */
66290
+ ReturnReasonBreakdownSchema: {
66291
+ /** Reasonname */
66292
+ reasonName: string;
66293
+ /** Documentcount */
66294
+ documentCount: number;
66295
+ };
66296
+ /** ReturnsValueByStageSchema */
66297
+ ReturnsValueByStageSchema: {
66298
+ returnOrderValue: components["schemas"]["CurrencyAmountSchema"];
66299
+ returnInvoiceValue: components["schemas"]["CurrencyAmountSchema"];
66300
+ creditNoteValue: components["schemas"]["CurrencyAmountSchema"];
66301
+ refundVoucherValue: components["schemas"]["CurrencyAmountSchema"];
66302
+ };
66303
+ /** TopPerformingPurchaseBranchSchema */
66304
+ TopPerformingPurchaseBranchSchema: {
66305
+ /**
66306
+ * Branchid
66307
+ * Format: uuid
66308
+ */
66309
+ branchId: string;
66310
+ /** Branchname */
66311
+ branchName: string;
66312
+ purchasedAmount: components["schemas"]["CurrencyAmountSchema"];
66313
+ /** Purchasesharepercentage */
66314
+ purchaseSharePercentage: string | null;
66315
+ };
66316
+ /** TopPerformingPurchaseItemSchema */
66317
+ TopPerformingPurchaseItemSchema: {
66318
+ /**
66319
+ * Itemid
66320
+ * Format: uuid
66321
+ */
66322
+ itemId: string;
66323
+ /** Itemname */
66324
+ itemName: string;
66325
+ purchaseAmount: components["schemas"]["CurrencyAmountSchema"];
66326
+ /** Numberoforders */
66327
+ numberOfOrders: number;
66328
+ /** Growthpercentage */
66329
+ growthPercentage: string | null;
66330
+ };
66331
+ /** TopPerformingSupplierSchema */
66332
+ TopPerformingSupplierSchema: {
66333
+ /**
66334
+ * Supplierid
66335
+ * Format: uuid
66336
+ */
66337
+ supplierId: string;
66338
+ /** Suppliername */
66339
+ supplierName: string;
66340
+ purchasedAmount: components["schemas"]["CurrencyAmountSchema"];
66341
+ /** Numberoforders */
66342
+ numberOfOrders: number;
66343
+ /** Growthpercentage */
66344
+ growthPercentage: string | null;
66345
+ };
66346
+ /** DashboardSpendTrendResponseSchema */
66347
+ DashboardSpendTrendResponseSchema: {
66348
+ /** Periodstart */
66349
+ periodStart: string | null;
66350
+ /** Periodend */
66351
+ periodEnd: string | null;
66352
+ primaryCurrency: components["schemas"]["CurrencyInfoSchema"];
66353
+ secondaryCurrency: components["schemas"]["CurrencyInfoSchema"] | null;
66354
+ purchaseSpendTrend: components["schemas"]["PurchaseSpendTrendSchema"];
66355
+ };
66356
+ /** DashboardLifecycleComparisonResponseSchema */
66357
+ DashboardLifecycleComparisonResponseSchema: {
66358
+ /** Periodstart */
66359
+ periodStart: string | null;
66360
+ /** Periodend */
66361
+ periodEnd: string | null;
66362
+ primaryCurrency: components["schemas"]["CurrencyInfoSchema"];
66363
+ secondaryCurrency: components["schemas"]["CurrencyInfoSchema"] | null;
66364
+ lifecycleComparison: components["schemas"]["LifecycleComparisonSchema"];
66365
+ };
66366
+ /** DashboardReturnReasonsResponseSchema */
66367
+ DashboardReturnReasonsResponseSchema: {
66368
+ /** Periodstart */
66369
+ periodStart: string | null;
66370
+ /** Periodend */
66371
+ periodEnd: string | null;
66372
+ primaryCurrency: components["schemas"]["CurrencyInfoSchema"];
66373
+ secondaryCurrency: components["schemas"]["CurrencyInfoSchema"] | null;
66374
+ /** Returnreasons */
66375
+ returnReasons: components["schemas"]["ReturnReasonBreakdownSchema"][];
66376
+ };
66377
+ /** DashboardReturnsByStageResponseSchema */
66378
+ DashboardReturnsByStageResponseSchema: {
66379
+ /** Periodstart */
66380
+ periodStart: string | null;
66381
+ /** Periodend */
66382
+ periodEnd: string | null;
66383
+ primaryCurrency: components["schemas"]["CurrencyInfoSchema"];
66384
+ secondaryCurrency: components["schemas"]["CurrencyInfoSchema"] | null;
66385
+ returnsValueByStage: components["schemas"]["ReturnsValueByStageSchema"];
66386
+ };
66387
+ /** DashboardSpendByBranchResponseSchema */
66388
+ DashboardSpendByBranchResponseSchema: {
66389
+ /** Periodstart */
66390
+ periodStart: string | null;
66391
+ /** Periodend */
66392
+ periodEnd: string | null;
66393
+ primaryCurrency: components["schemas"]["CurrencyInfoSchema"];
66394
+ secondaryCurrency: components["schemas"]["CurrencyInfoSchema"] | null;
66395
+ /** Spendbybranch */
66396
+ spendByBranch: components["schemas"]["BranchSpendSchema"][];
66397
+ };
66398
+ /** DashboardApprovalStatusResponseSchema */
66399
+ DashboardApprovalStatusResponseSchema: {
66400
+ /** Periodstart */
66401
+ periodStart: string | null;
66402
+ /** Periodend */
66403
+ periodEnd: string | null;
66404
+ primaryCurrency: components["schemas"]["CurrencyInfoSchema"];
66405
+ secondaryCurrency: components["schemas"]["CurrencyInfoSchema"] | null;
66406
+ /** Approvalstatusbydocumenttype */
66407
+ approvalStatusByDocumentType: components["schemas"]["ApprovalStatusByTypeSchema"][];
66408
+ };
66409
+ /** DashboardTopSuppliersResponseSchema */
66410
+ DashboardTopSuppliersResponseSchema: {
66411
+ /** Periodstart */
66412
+ periodStart: string | null;
66413
+ /** Periodend */
66414
+ periodEnd: string | null;
66415
+ primaryCurrency: components["schemas"]["CurrencyInfoSchema"];
66416
+ secondaryCurrency: components["schemas"]["CurrencyInfoSchema"] | null;
66417
+ /** Topperformingsuppliers */
66418
+ topPerformingSuppliers: components["schemas"]["TopPerformingSupplierSchema"][];
66419
+ };
66420
+ /** DashboardAlertsResponseSchema */
66421
+ DashboardAlertsResponseSchema: {
66422
+ /** Periodstart */
66423
+ periodStart: string | null;
66424
+ /** Periodend */
66425
+ periodEnd: string | null;
66426
+ primaryCurrency: components["schemas"]["CurrencyInfoSchema"];
66427
+ secondaryCurrency: components["schemas"]["CurrencyInfoSchema"] | null;
66428
+ /** Alerts */
66429
+ alerts: components["schemas"]["PurchaseDashboardAlertSchema"][];
66430
+ };
65863
66431
  /** RetrieveStatus */
65864
66432
  RetrieveStatus: {
65865
66433
  /**
@@ -111282,18 +111850,557 @@ export interface operations {
111282
111850
  };
111283
111851
  };
111284
111852
  };
111285
- reports_salesreport_views_get_sales_by_warehouse_report: {
111853
+ reports_salesreport_views_get_sales_by_warehouse_report: {
111854
+ parameters: {
111855
+ query?: {
111856
+ periodType?: "today" | "yesterday" | "thisWeek" | "lastWeek" | "thisMonth" | "lastMonth" | "thisQuarter" | "lastQuarter" | "thisFiscalYear" | "lastFiscalYear" | "custom" | "all";
111857
+ /** @description Start date (YYYY-MM-DD) for custom period */
111858
+ startDate?: string | null;
111859
+ /** @description End date (YYYY-MM-DD) for custom period */
111860
+ endDate?: string | null;
111861
+ /** @description Data sources: salesInvoice, posInvoice, onlineOrder (empty for all) */
111862
+ sources?: components["schemas"]["SalesReportSourceType"][] | null;
111863
+ branchesIds?: string[] | null;
111864
+ warehousesIds?: string[] | null;
111865
+ };
111866
+ header?: never;
111867
+ path?: never;
111868
+ cookie?: never;
111869
+ };
111870
+ requestBody?: never;
111871
+ responses: {
111872
+ /** @description OK */
111873
+ 200: {
111874
+ headers: {
111875
+ [name: string]: unknown;
111876
+ };
111877
+ content: {
111878
+ "application/json": components["schemas"]["SalesByWarehouseListSchema"];
111879
+ };
111880
+ };
111881
+ /** @description Bad Request */
111882
+ 400: {
111883
+ headers: {
111884
+ [name: string]: unknown;
111885
+ };
111886
+ content: {
111887
+ "application/json": components["schemas"]["ErrorMessages"];
111888
+ };
111889
+ };
111890
+ /** @description Forbidden */
111891
+ 403: {
111892
+ headers: {
111893
+ [name: string]: unknown;
111894
+ };
111895
+ content: {
111896
+ "application/json": components["schemas"]["MessageResponse"];
111897
+ };
111898
+ };
111899
+ };
111900
+ };
111901
+ reports_salesreport_views_get_sales_summary_report: {
111902
+ parameters: {
111903
+ query?: {
111904
+ periodType?: "today" | "yesterday" | "thisWeek" | "lastWeek" | "thisMonth" | "lastMonth" | "thisQuarter" | "lastQuarter" | "thisFiscalYear" | "lastFiscalYear" | "custom" | "all";
111905
+ /** @description Start date (YYYY-MM-DD) for custom period */
111906
+ startDate?: string | null;
111907
+ /** @description End date (YYYY-MM-DD) for custom period */
111908
+ endDate?: string | null;
111909
+ /** @description Data sources: salesInvoice, posInvoice, onlineOrder (empty for all) */
111910
+ sources?: components["schemas"]["SalesReportSourceType"][] | null;
111911
+ branchesIds?: string[] | null;
111912
+ };
111913
+ header?: never;
111914
+ path?: never;
111915
+ cookie?: never;
111916
+ };
111917
+ requestBody?: never;
111918
+ responses: {
111919
+ /** @description OK */
111920
+ 200: {
111921
+ headers: {
111922
+ [name: string]: unknown;
111923
+ };
111924
+ content: {
111925
+ "application/json": components["schemas"]["SalesSummarySchema"];
111926
+ };
111927
+ };
111928
+ /** @description Bad Request */
111929
+ 400: {
111930
+ headers: {
111931
+ [name: string]: unknown;
111932
+ };
111933
+ content: {
111934
+ "application/json": components["schemas"]["ErrorMessages"];
111935
+ };
111936
+ };
111937
+ /** @description Forbidden */
111938
+ 403: {
111939
+ headers: {
111940
+ [name: string]: unknown;
111941
+ };
111942
+ content: {
111943
+ "application/json": components["schemas"]["MessageResponse"];
111944
+ };
111945
+ };
111946
+ };
111947
+ };
111948
+ reports_salesreport_views_get_sales_trend_report: {
111949
+ parameters: {
111950
+ query?: {
111951
+ /** @description Time granularity: daily, weekly, or monthly */
111952
+ granularity?: "daily" | "weekly" | "monthly";
111953
+ periodType?: "today" | "yesterday" | "thisWeek" | "lastWeek" | "thisMonth" | "lastMonth" | "thisQuarter" | "lastQuarter" | "thisFiscalYear" | "lastFiscalYear" | "custom" | "all";
111954
+ /** @description Start date (YYYY-MM-DD) for custom period */
111955
+ startDate?: string | null;
111956
+ /** @description End date (YYYY-MM-DD) for custom period */
111957
+ endDate?: string | null;
111958
+ /** @description Data sources: salesInvoice, posInvoice, onlineOrder (empty for all) */
111959
+ sources?: components["schemas"]["SalesReportSourceType"][] | null;
111960
+ branchesIds?: string[] | null;
111961
+ };
111962
+ header?: never;
111963
+ path?: never;
111964
+ cookie?: never;
111965
+ };
111966
+ requestBody?: never;
111967
+ responses: {
111968
+ /** @description OK */
111969
+ 200: {
111970
+ headers: {
111971
+ [name: string]: unknown;
111972
+ };
111973
+ content: {
111974
+ "application/json": components["schemas"]["SalesTrendSchema"];
111975
+ };
111976
+ };
111977
+ /** @description Bad Request */
111978
+ 400: {
111979
+ headers: {
111980
+ [name: string]: unknown;
111981
+ };
111982
+ content: {
111983
+ "application/json": components["schemas"]["ErrorMessages"];
111984
+ };
111985
+ };
111986
+ /** @description Forbidden */
111987
+ 403: {
111988
+ headers: {
111989
+ [name: string]: unknown;
111990
+ };
111991
+ content: {
111992
+ "application/json": components["schemas"]["MessageResponse"];
111993
+ };
111994
+ };
111995
+ };
111996
+ };
111997
+ reports_salesdashboard_views_get_sales_dashboard_data: {
111998
+ parameters: {
111999
+ query?: {
112000
+ periodType?: "today" | "yesterday" | "thisWeek" | "lastWeek" | "thisMonth" | "lastMonth" | "thisQuarter" | "lastQuarter" | "thisFiscalYear" | "lastFiscalYear" | "custom" | "all";
112001
+ startDate?: string | null;
112002
+ endDate?: string | null;
112003
+ sources?: components["schemas"]["SalesReportSourceType"][] | null;
112004
+ branchesIds?: string[] | null;
112005
+ cashFlowTrendGranularity?: "daily" | "weekly" | "monthly";
112006
+ };
112007
+ header?: never;
112008
+ path?: never;
112009
+ cookie?: never;
112010
+ };
112011
+ requestBody?: never;
112012
+ responses: {
112013
+ /** @description OK */
112014
+ 200: {
112015
+ headers: {
112016
+ [name: string]: unknown;
112017
+ };
112018
+ content: {
112019
+ "application/json": components["schemas"]["SalesDashboardSchema"];
112020
+ };
112021
+ };
112022
+ /** @description Bad Request */
112023
+ 400: {
112024
+ headers: {
112025
+ [name: string]: unknown;
112026
+ };
112027
+ content: {
112028
+ "application/json": components["schemas"]["ErrorMessages"];
112029
+ };
112030
+ };
112031
+ /** @description Forbidden */
112032
+ 403: {
112033
+ headers: {
112034
+ [name: string]: unknown;
112035
+ };
112036
+ content: {
112037
+ "application/json": components["schemas"]["MessageResponse"];
112038
+ };
112039
+ };
112040
+ };
112041
+ };
112042
+ reports_salesdashboard_views_get_sales_dashboard_summary: {
112043
+ parameters: {
112044
+ query?: {
112045
+ periodType?: "today" | "yesterday" | "thisWeek" | "lastWeek" | "thisMonth" | "lastMonth" | "thisQuarter" | "lastQuarter" | "thisFiscalYear" | "lastFiscalYear" | "custom" | "all";
112046
+ startDate?: string | null;
112047
+ endDate?: string | null;
112048
+ sources?: components["schemas"]["SalesReportSourceType"][] | null;
112049
+ branchesIds?: string[] | null;
112050
+ };
112051
+ header?: never;
112052
+ path?: never;
112053
+ cookie?: never;
112054
+ };
112055
+ requestBody?: never;
112056
+ responses: {
112057
+ /** @description OK */
112058
+ 200: {
112059
+ headers: {
112060
+ [name: string]: unknown;
112061
+ };
112062
+ content: {
112063
+ "application/json": components["schemas"]["DashboardSummaryResponseSchema"];
112064
+ };
112065
+ };
112066
+ /** @description Bad Request */
112067
+ 400: {
112068
+ headers: {
112069
+ [name: string]: unknown;
112070
+ };
112071
+ content: {
112072
+ "application/json": components["schemas"]["ErrorMessages"];
112073
+ };
112074
+ };
112075
+ /** @description Forbidden */
112076
+ 403: {
112077
+ headers: {
112078
+ [name: string]: unknown;
112079
+ };
112080
+ content: {
112081
+ "application/json": components["schemas"]["MessageResponse"];
112082
+ };
112083
+ };
112084
+ };
112085
+ };
112086
+ reports_salesdashboard_views_get_sales_dashboard_pipeline: {
112087
+ parameters: {
112088
+ query?: {
112089
+ periodType?: "today" | "yesterday" | "thisWeek" | "lastWeek" | "thisMonth" | "lastMonth" | "thisQuarter" | "lastQuarter" | "thisFiscalYear" | "lastFiscalYear" | "custom" | "all";
112090
+ startDate?: string | null;
112091
+ endDate?: string | null;
112092
+ sources?: components["schemas"]["SalesReportSourceType"][] | null;
112093
+ branchesIds?: string[] | null;
112094
+ };
112095
+ header?: never;
112096
+ path?: never;
112097
+ cookie?: never;
112098
+ };
112099
+ requestBody?: never;
112100
+ responses: {
112101
+ /** @description OK */
112102
+ 200: {
112103
+ headers: {
112104
+ [name: string]: unknown;
112105
+ };
112106
+ content: {
112107
+ "application/json": components["schemas"]["DashboardPipelineResponseSchema"];
112108
+ };
112109
+ };
112110
+ /** @description Bad Request */
112111
+ 400: {
112112
+ headers: {
112113
+ [name: string]: unknown;
112114
+ };
112115
+ content: {
112116
+ "application/json": components["schemas"]["ErrorMessages"];
112117
+ };
112118
+ };
112119
+ /** @description Forbidden */
112120
+ 403: {
112121
+ headers: {
112122
+ [name: string]: unknown;
112123
+ };
112124
+ content: {
112125
+ "application/json": components["schemas"]["MessageResponse"];
112126
+ };
112127
+ };
112128
+ };
112129
+ };
112130
+ reports_salesdashboard_views_get_sales_dashboard_invoice_insights: {
112131
+ parameters: {
112132
+ query?: {
112133
+ periodType?: "today" | "yesterday" | "thisWeek" | "lastWeek" | "thisMonth" | "lastMonth" | "thisQuarter" | "lastQuarter" | "thisFiscalYear" | "lastFiscalYear" | "custom" | "all";
112134
+ startDate?: string | null;
112135
+ endDate?: string | null;
112136
+ sources?: components["schemas"]["SalesReportSourceType"][] | null;
112137
+ branchesIds?: string[] | null;
112138
+ };
112139
+ header?: never;
112140
+ path?: never;
112141
+ cookie?: never;
112142
+ };
112143
+ requestBody?: never;
112144
+ responses: {
112145
+ /** @description OK */
112146
+ 200: {
112147
+ headers: {
112148
+ [name: string]: unknown;
112149
+ };
112150
+ content: {
112151
+ "application/json": components["schemas"]["DashboardInvoiceInsightsResponseSchema"];
112152
+ };
112153
+ };
112154
+ /** @description Bad Request */
112155
+ 400: {
112156
+ headers: {
112157
+ [name: string]: unknown;
112158
+ };
112159
+ content: {
112160
+ "application/json": components["schemas"]["ErrorMessages"];
112161
+ };
112162
+ };
112163
+ /** @description Forbidden */
112164
+ 403: {
112165
+ headers: {
112166
+ [name: string]: unknown;
112167
+ };
112168
+ content: {
112169
+ "application/json": components["schemas"]["MessageResponse"];
112170
+ };
112171
+ };
112172
+ };
112173
+ };
112174
+ reports_salesdashboard_views_get_sales_dashboard_conversion_funnel: {
112175
+ parameters: {
112176
+ query?: {
112177
+ periodType?: "today" | "yesterday" | "thisWeek" | "lastWeek" | "thisMonth" | "lastMonth" | "thisQuarter" | "lastQuarter" | "thisFiscalYear" | "lastFiscalYear" | "custom" | "all";
112178
+ startDate?: string | null;
112179
+ endDate?: string | null;
112180
+ sources?: components["schemas"]["SalesReportSourceType"][] | null;
112181
+ branchesIds?: string[] | null;
112182
+ };
112183
+ header?: never;
112184
+ path?: never;
112185
+ cookie?: never;
112186
+ };
112187
+ requestBody?: never;
112188
+ responses: {
112189
+ /** @description OK */
112190
+ 200: {
112191
+ headers: {
112192
+ [name: string]: unknown;
112193
+ };
112194
+ content: {
112195
+ "application/json": components["schemas"]["DashboardConversionFunnelResponseSchema"];
112196
+ };
112197
+ };
112198
+ /** @description Bad Request */
112199
+ 400: {
112200
+ headers: {
112201
+ [name: string]: unknown;
112202
+ };
112203
+ content: {
112204
+ "application/json": components["schemas"]["ErrorMessages"];
112205
+ };
112206
+ };
112207
+ /** @description Forbidden */
112208
+ 403: {
112209
+ headers: {
112210
+ [name: string]: unknown;
112211
+ };
112212
+ content: {
112213
+ "application/json": components["schemas"]["MessageResponse"];
112214
+ };
112215
+ };
112216
+ };
112217
+ };
112218
+ reports_salesdashboard_views_get_sales_dashboard_cash_flow: {
112219
+ parameters: {
112220
+ query?: {
112221
+ periodType?: "today" | "yesterday" | "thisWeek" | "lastWeek" | "thisMonth" | "lastMonth" | "thisQuarter" | "lastQuarter" | "thisFiscalYear" | "lastFiscalYear" | "custom" | "all";
112222
+ startDate?: string | null;
112223
+ endDate?: string | null;
112224
+ sources?: components["schemas"]["SalesReportSourceType"][] | null;
112225
+ branchesIds?: string[] | null;
112226
+ };
112227
+ header?: never;
112228
+ path?: never;
112229
+ cookie?: never;
112230
+ };
112231
+ requestBody?: never;
112232
+ responses: {
112233
+ /** @description OK */
112234
+ 200: {
112235
+ headers: {
112236
+ [name: string]: unknown;
112237
+ };
112238
+ content: {
112239
+ "application/json": components["schemas"]["DashboardCashFlowResponseSchema"];
112240
+ };
112241
+ };
112242
+ /** @description Bad Request */
112243
+ 400: {
112244
+ headers: {
112245
+ [name: string]: unknown;
112246
+ };
112247
+ content: {
112248
+ "application/json": components["schemas"]["ErrorMessages"];
112249
+ };
112250
+ };
112251
+ /** @description Forbidden */
112252
+ 403: {
112253
+ headers: {
112254
+ [name: string]: unknown;
112255
+ };
112256
+ content: {
112257
+ "application/json": components["schemas"]["MessageResponse"];
112258
+ };
112259
+ };
112260
+ };
112261
+ };
112262
+ reports_salesdashboard_views_get_sales_dashboard_cash_flow_trend: {
112263
+ parameters: {
112264
+ query?: {
112265
+ periodType?: "today" | "yesterday" | "thisWeek" | "lastWeek" | "thisMonth" | "lastMonth" | "thisQuarter" | "lastQuarter" | "thisFiscalYear" | "lastFiscalYear" | "custom" | "all";
112266
+ startDate?: string | null;
112267
+ endDate?: string | null;
112268
+ sources?: components["schemas"]["SalesReportSourceType"][] | null;
112269
+ branchesIds?: string[] | null;
112270
+ /** @description Daily, weekly, or monthly buckets within the selected period */
112271
+ granularity?: "daily" | "weekly" | "monthly";
112272
+ };
112273
+ header?: never;
112274
+ path?: never;
112275
+ cookie?: never;
112276
+ };
112277
+ requestBody?: never;
112278
+ responses: {
112279
+ /** @description OK */
112280
+ 200: {
112281
+ headers: {
112282
+ [name: string]: unknown;
112283
+ };
112284
+ content: {
112285
+ "application/json": components["schemas"]["DashboardCashFlowTrendResponseSchema"];
112286
+ };
112287
+ };
112288
+ /** @description Bad Request */
112289
+ 400: {
112290
+ headers: {
112291
+ [name: string]: unknown;
112292
+ };
112293
+ content: {
112294
+ "application/json": components["schemas"]["ErrorMessages"];
112295
+ };
112296
+ };
112297
+ /** @description Forbidden */
112298
+ 403: {
112299
+ headers: {
112300
+ [name: string]: unknown;
112301
+ };
112302
+ content: {
112303
+ "application/json": components["schemas"]["MessageResponse"];
112304
+ };
112305
+ };
112306
+ };
112307
+ };
112308
+ reports_salesdashboard_views_get_sales_dashboard_item_cost_distribution: {
112309
+ parameters: {
112310
+ query?: {
112311
+ periodType?: "today" | "yesterday" | "thisWeek" | "lastWeek" | "thisMonth" | "lastMonth" | "thisQuarter" | "lastQuarter" | "thisFiscalYear" | "lastFiscalYear" | "custom" | "all";
112312
+ startDate?: string | null;
112313
+ endDate?: string | null;
112314
+ sources?: components["schemas"]["SalesReportSourceType"][] | null;
112315
+ branchesIds?: string[] | null;
112316
+ };
112317
+ header?: never;
112318
+ path?: never;
112319
+ cookie?: never;
112320
+ };
112321
+ requestBody?: never;
112322
+ responses: {
112323
+ /** @description OK */
112324
+ 200: {
112325
+ headers: {
112326
+ [name: string]: unknown;
112327
+ };
112328
+ content: {
112329
+ "application/json": components["schemas"]["DashboardItemCostDistributionResponseSchema"];
112330
+ };
112331
+ };
112332
+ /** @description Bad Request */
112333
+ 400: {
112334
+ headers: {
112335
+ [name: string]: unknown;
112336
+ };
112337
+ content: {
112338
+ "application/json": components["schemas"]["ErrorMessages"];
112339
+ };
112340
+ };
112341
+ /** @description Forbidden */
112342
+ 403: {
112343
+ headers: {
112344
+ [name: string]: unknown;
112345
+ };
112346
+ content: {
112347
+ "application/json": components["schemas"]["MessageResponse"];
112348
+ };
112349
+ };
112350
+ };
112351
+ };
112352
+ reports_salesdashboard_views_get_sales_dashboard_net_sales_contribution: {
112353
+ parameters: {
112354
+ query?: {
112355
+ periodType?: "today" | "yesterday" | "thisWeek" | "lastWeek" | "thisMonth" | "lastMonth" | "thisQuarter" | "lastQuarter" | "thisFiscalYear" | "lastFiscalYear" | "custom" | "all";
112356
+ startDate?: string | null;
112357
+ endDate?: string | null;
112358
+ sources?: components["schemas"]["SalesReportSourceType"][] | null;
112359
+ branchesIds?: string[] | null;
112360
+ };
112361
+ header?: never;
112362
+ path?: never;
112363
+ cookie?: never;
112364
+ };
112365
+ requestBody?: never;
112366
+ responses: {
112367
+ /** @description OK */
112368
+ 200: {
112369
+ headers: {
112370
+ [name: string]: unknown;
112371
+ };
112372
+ content: {
112373
+ "application/json": components["schemas"]["DashboardNetSalesContributionResponseSchema"];
112374
+ };
112375
+ };
112376
+ /** @description Bad Request */
112377
+ 400: {
112378
+ headers: {
112379
+ [name: string]: unknown;
112380
+ };
112381
+ content: {
112382
+ "application/json": components["schemas"]["ErrorMessages"];
112383
+ };
112384
+ };
112385
+ /** @description Forbidden */
112386
+ 403: {
112387
+ headers: {
112388
+ [name: string]: unknown;
112389
+ };
112390
+ content: {
112391
+ "application/json": components["schemas"]["MessageResponse"];
112392
+ };
112393
+ };
112394
+ };
112395
+ };
112396
+ reports_salesdashboard_views_get_sales_dashboard_top_items: {
111286
112397
  parameters: {
111287
112398
  query?: {
111288
112399
  periodType?: "today" | "yesterday" | "thisWeek" | "lastWeek" | "thisMonth" | "lastMonth" | "thisQuarter" | "lastQuarter" | "thisFiscalYear" | "lastFiscalYear" | "custom" | "all";
111289
- /** @description Start date (YYYY-MM-DD) for custom period */
111290
112400
  startDate?: string | null;
111291
- /** @description End date (YYYY-MM-DD) for custom period */
111292
112401
  endDate?: string | null;
111293
- /** @description Data sources: salesInvoice, posInvoice, onlineOrder (empty for all) */
111294
112402
  sources?: components["schemas"]["SalesReportSourceType"][] | null;
111295
112403
  branchesIds?: string[] | null;
111296
- warehousesIds?: string[] | null;
111297
112404
  };
111298
112405
  header?: never;
111299
112406
  path?: never;
@@ -111307,7 +112414,7 @@ export interface operations {
111307
112414
  [name: string]: unknown;
111308
112415
  };
111309
112416
  content: {
111310
- "application/json": components["schemas"]["SalesByWarehouseListSchema"];
112417
+ "application/json": components["schemas"]["DashboardTopItemsResponseSchema"];
111311
112418
  };
111312
112419
  };
111313
112420
  /** @description Bad Request */
@@ -111330,15 +112437,12 @@ export interface operations {
111330
112437
  };
111331
112438
  };
111332
112439
  };
111333
- reports_salesreport_views_get_sales_summary_report: {
112440
+ reports_salesdashboard_views_get_sales_dashboard_top_customers: {
111334
112441
  parameters: {
111335
112442
  query?: {
111336
112443
  periodType?: "today" | "yesterday" | "thisWeek" | "lastWeek" | "thisMonth" | "lastMonth" | "thisQuarter" | "lastQuarter" | "thisFiscalYear" | "lastFiscalYear" | "custom" | "all";
111337
- /** @description Start date (YYYY-MM-DD) for custom period */
111338
112444
  startDate?: string | null;
111339
- /** @description End date (YYYY-MM-DD) for custom period */
111340
112445
  endDate?: string | null;
111341
- /** @description Data sources: salesInvoice, posInvoice, onlineOrder (empty for all) */
111342
112446
  sources?: components["schemas"]["SalesReportSourceType"][] | null;
111343
112447
  branchesIds?: string[] | null;
111344
112448
  };
@@ -111354,7 +112458,7 @@ export interface operations {
111354
112458
  [name: string]: unknown;
111355
112459
  };
111356
112460
  content: {
111357
- "application/json": components["schemas"]["SalesSummarySchema"];
112461
+ "application/json": components["schemas"]["DashboardTopCustomersResponseSchema"];
111358
112462
  };
111359
112463
  };
111360
112464
  /** @description Bad Request */
@@ -111377,17 +112481,12 @@ export interface operations {
111377
112481
  };
111378
112482
  };
111379
112483
  };
111380
- reports_salesreport_views_get_sales_trend_report: {
112484
+ reports_salesdashboard_views_get_sales_dashboard_top_branches: {
111381
112485
  parameters: {
111382
112486
  query?: {
111383
- /** @description Time granularity: daily, weekly, or monthly */
111384
- granularity?: "daily" | "weekly" | "monthly";
111385
112487
  periodType?: "today" | "yesterday" | "thisWeek" | "lastWeek" | "thisMonth" | "lastMonth" | "thisQuarter" | "lastQuarter" | "thisFiscalYear" | "lastFiscalYear" | "custom" | "all";
111386
- /** @description Start date (YYYY-MM-DD) for custom period */
111387
112488
  startDate?: string | null;
111388
- /** @description End date (YYYY-MM-DD) for custom period */
111389
112489
  endDate?: string | null;
111390
- /** @description Data sources: salesInvoice, posInvoice, onlineOrder (empty for all) */
111391
112490
  sources?: components["schemas"]["SalesReportSourceType"][] | null;
111392
112491
  branchesIds?: string[] | null;
111393
112492
  };
@@ -111403,7 +112502,7 @@ export interface operations {
111403
112502
  [name: string]: unknown;
111404
112503
  };
111405
112504
  content: {
111406
- "application/json": components["schemas"]["SalesTrendSchema"];
112505
+ "application/json": components["schemas"]["DashboardTopBranchesResponseSchema"];
111407
112506
  };
111408
112507
  };
111409
112508
  /** @description Bad Request */
@@ -111426,14 +112525,67 @@ export interface operations {
111426
112525
  };
111427
112526
  };
111428
112527
  };
111429
- reports_salesdashboard_views_get_sales_dashboard_data: {
112528
+ reports_receivablesreport_views_get_receivables_by_customer_region_report_view: {
112529
+ parameters: {
112530
+ query?: {
112531
+ /** @description Sales region(s) to filter customers (defaults to all regions) */
112532
+ regionIds?: number[] | null;
112533
+ /** @description Show invoices unpaid as of this date */
112534
+ asOfDate?: string | null;
112535
+ /** @description Filter by sales person assigned on the sales invoice (SalesInvoice.salesPerson), not by customer assignment. Returns unpaid/partially paid invoices for that sales person across all customers, then groups results by each customer's region. */
112536
+ salesPersonId?: string | null;
112537
+ /** @description Filter by customer group using route api/v1/common/contact-segmentation/ and filter by type equals customer */
112538
+ customerGroupIds?: string[] | null;
112539
+ /** @description Only include customers with overdue invoices */
112540
+ includeOverdueOnly?: boolean;
112541
+ /** @description Sort customers by city or sort regions alphabetically */
112542
+ sortBy?: "region" | "city";
112543
+ /** @description Branch filter (only for users with access to multiple branches) */
112544
+ branchesIds?: string[] | null;
112545
+ };
112546
+ header?: never;
112547
+ path?: never;
112548
+ cookie?: never;
112549
+ };
112550
+ requestBody?: never;
112551
+ responses: {
112552
+ /** @description OK */
112553
+ 200: {
112554
+ headers: {
112555
+ [name: string]: unknown;
112556
+ };
112557
+ content: {
112558
+ "application/json": components["schemas"]["ReceivablesByCustomerRegionReportSchema"];
112559
+ };
112560
+ };
112561
+ /** @description Bad Request */
112562
+ 400: {
112563
+ headers: {
112564
+ [name: string]: unknown;
112565
+ };
112566
+ content: {
112567
+ "application/json": components["schemas"]["ErrorMessages"];
112568
+ };
112569
+ };
112570
+ /** @description Forbidden */
112571
+ 403: {
112572
+ headers: {
112573
+ [name: string]: unknown;
112574
+ };
112575
+ content: {
112576
+ "application/json": components["schemas"]["MessageResponse"];
112577
+ };
112578
+ };
112579
+ };
112580
+ };
112581
+ reports_purchasedashboard_views_get_purchase_dashboard_data: {
111430
112582
  parameters: {
111431
112583
  query?: {
111432
112584
  periodType?: "today" | "yesterday" | "thisWeek" | "lastWeek" | "thisMonth" | "lastMonth" | "thisQuarter" | "lastQuarter" | "thisFiscalYear" | "lastFiscalYear" | "custom" | "all";
111433
112585
  startDate?: string | null;
111434
112586
  endDate?: string | null;
111435
- sources?: components["schemas"]["SalesReportSourceType"][] | null;
111436
112587
  branchesIds?: string[] | null;
112588
+ spendTrendGranularity?: "daily" | "weekly" | "monthly";
111437
112589
  cashFlowTrendGranularity?: "daily" | "weekly" | "monthly";
111438
112590
  };
111439
112591
  header?: never;
@@ -111448,7 +112600,7 @@ export interface operations {
111448
112600
  [name: string]: unknown;
111449
112601
  };
111450
112602
  content: {
111451
- "application/json": components["schemas"]["SalesDashboardSchema"];
112603
+ "application/json": components["schemas"]["PurchaseDashboardSchema"];
111452
112604
  };
111453
112605
  };
111454
112606
  /** @description Bad Request */
@@ -111471,13 +112623,12 @@ export interface operations {
111471
112623
  };
111472
112624
  };
111473
112625
  };
111474
- reports_salesdashboard_views_get_sales_dashboard_summary: {
112626
+ reports_purchasedashboard_views_get_purchase_dashboard_summary: {
111475
112627
  parameters: {
111476
112628
  query?: {
111477
112629
  periodType?: "today" | "yesterday" | "thisWeek" | "lastWeek" | "thisMonth" | "lastMonth" | "thisQuarter" | "lastQuarter" | "thisFiscalYear" | "lastFiscalYear" | "custom" | "all";
111478
112630
  startDate?: string | null;
111479
112631
  endDate?: string | null;
111480
- sources?: components["schemas"]["SalesReportSourceType"][] | null;
111481
112632
  branchesIds?: string[] | null;
111482
112633
  };
111483
112634
  header?: never;
@@ -111515,14 +112666,14 @@ export interface operations {
111515
112666
  };
111516
112667
  };
111517
112668
  };
111518
- reports_salesdashboard_views_get_sales_dashboard_pipeline: {
112669
+ reports_purchasedashboard_views_get_purchase_dashboard_spend_trend: {
111519
112670
  parameters: {
111520
112671
  query?: {
111521
112672
  periodType?: "today" | "yesterday" | "thisWeek" | "lastWeek" | "thisMonth" | "lastMonth" | "thisQuarter" | "lastQuarter" | "thisFiscalYear" | "lastFiscalYear" | "custom" | "all";
111522
112673
  startDate?: string | null;
111523
112674
  endDate?: string | null;
111524
- sources?: components["schemas"]["SalesReportSourceType"][] | null;
111525
112675
  branchesIds?: string[] | null;
112676
+ granularity?: "daily" | "weekly" | "monthly";
111526
112677
  };
111527
112678
  header?: never;
111528
112679
  path?: never;
@@ -111536,7 +112687,7 @@ export interface operations {
111536
112687
  [name: string]: unknown;
111537
112688
  };
111538
112689
  content: {
111539
- "application/json": components["schemas"]["DashboardPipelineResponseSchema"];
112690
+ "application/json": components["schemas"]["DashboardSpendTrendResponseSchema"];
111540
112691
  };
111541
112692
  };
111542
112693
  /** @description Bad Request */
@@ -111559,13 +112710,12 @@ export interface operations {
111559
112710
  };
111560
112711
  };
111561
112712
  };
111562
- reports_salesdashboard_views_get_sales_dashboard_invoice_insights: {
112713
+ reports_purchasedashboard_views_get_purchase_dashboard_lifecycle_comparison: {
111563
112714
  parameters: {
111564
112715
  query?: {
111565
112716
  periodType?: "today" | "yesterday" | "thisWeek" | "lastWeek" | "thisMonth" | "lastMonth" | "thisQuarter" | "lastQuarter" | "thisFiscalYear" | "lastFiscalYear" | "custom" | "all";
111566
112717
  startDate?: string | null;
111567
112718
  endDate?: string | null;
111568
- sources?: components["schemas"]["SalesReportSourceType"][] | null;
111569
112719
  branchesIds?: string[] | null;
111570
112720
  };
111571
112721
  header?: never;
@@ -111580,7 +112730,7 @@ export interface operations {
111580
112730
  [name: string]: unknown;
111581
112731
  };
111582
112732
  content: {
111583
- "application/json": components["schemas"]["DashboardInvoiceInsightsResponseSchema"];
112733
+ "application/json": components["schemas"]["DashboardLifecycleComparisonResponseSchema"];
111584
112734
  };
111585
112735
  };
111586
112736
  /** @description Bad Request */
@@ -111603,13 +112753,12 @@ export interface operations {
111603
112753
  };
111604
112754
  };
111605
112755
  };
111606
- reports_salesdashboard_views_get_sales_dashboard_conversion_funnel: {
112756
+ reports_purchasedashboard_views_get_purchase_dashboard_return_reasons: {
111607
112757
  parameters: {
111608
112758
  query?: {
111609
112759
  periodType?: "today" | "yesterday" | "thisWeek" | "lastWeek" | "thisMonth" | "lastMonth" | "thisQuarter" | "lastQuarter" | "thisFiscalYear" | "lastFiscalYear" | "custom" | "all";
111610
112760
  startDate?: string | null;
111611
112761
  endDate?: string | null;
111612
- sources?: components["schemas"]["SalesReportSourceType"][] | null;
111613
112762
  branchesIds?: string[] | null;
111614
112763
  };
111615
112764
  header?: never;
@@ -111624,7 +112773,7 @@ export interface operations {
111624
112773
  [name: string]: unknown;
111625
112774
  };
111626
112775
  content: {
111627
- "application/json": components["schemas"]["DashboardConversionFunnelResponseSchema"];
112776
+ "application/json": components["schemas"]["DashboardReturnReasonsResponseSchema"];
111628
112777
  };
111629
112778
  };
111630
112779
  /** @description Bad Request */
@@ -111647,13 +112796,12 @@ export interface operations {
111647
112796
  };
111648
112797
  };
111649
112798
  };
111650
- reports_salesdashboard_views_get_sales_dashboard_cash_flow: {
112799
+ reports_purchasedashboard_views_get_purchase_dashboard_returns_by_stage: {
111651
112800
  parameters: {
111652
112801
  query?: {
111653
112802
  periodType?: "today" | "yesterday" | "thisWeek" | "lastWeek" | "thisMonth" | "lastMonth" | "thisQuarter" | "lastQuarter" | "thisFiscalYear" | "lastFiscalYear" | "custom" | "all";
111654
112803
  startDate?: string | null;
111655
112804
  endDate?: string | null;
111656
- sources?: components["schemas"]["SalesReportSourceType"][] | null;
111657
112805
  branchesIds?: string[] | null;
111658
112806
  };
111659
112807
  header?: never;
@@ -111668,7 +112816,7 @@ export interface operations {
111668
112816
  [name: string]: unknown;
111669
112817
  };
111670
112818
  content: {
111671
- "application/json": components["schemas"]["DashboardCashFlowResponseSchema"];
112819
+ "application/json": components["schemas"]["DashboardReturnsByStageResponseSchema"];
111672
112820
  };
111673
112821
  };
111674
112822
  /** @description Bad Request */
@@ -111691,16 +112839,13 @@ export interface operations {
111691
112839
  };
111692
112840
  };
111693
112841
  };
111694
- reports_salesdashboard_views_get_sales_dashboard_cash_flow_trend: {
112842
+ reports_purchasedashboard_views_get_purchase_dashboard_spend_by_branch: {
111695
112843
  parameters: {
111696
112844
  query?: {
111697
112845
  periodType?: "today" | "yesterday" | "thisWeek" | "lastWeek" | "thisMonth" | "lastMonth" | "thisQuarter" | "lastQuarter" | "thisFiscalYear" | "lastFiscalYear" | "custom" | "all";
111698
112846
  startDate?: string | null;
111699
112847
  endDate?: string | null;
111700
- sources?: components["schemas"]["SalesReportSourceType"][] | null;
111701
112848
  branchesIds?: string[] | null;
111702
- /** @description Daily, weekly, or monthly buckets within the selected period */
111703
- granularity?: "daily" | "weekly" | "monthly";
111704
112849
  };
111705
112850
  header?: never;
111706
112851
  path?: never;
@@ -111714,7 +112859,7 @@ export interface operations {
111714
112859
  [name: string]: unknown;
111715
112860
  };
111716
112861
  content: {
111717
- "application/json": components["schemas"]["DashboardCashFlowTrendResponseSchema"];
112862
+ "application/json": components["schemas"]["DashboardSpendByBranchResponseSchema"];
111718
112863
  };
111719
112864
  };
111720
112865
  /** @description Bad Request */
@@ -111737,13 +112882,12 @@ export interface operations {
111737
112882
  };
111738
112883
  };
111739
112884
  };
111740
- reports_salesdashboard_views_get_sales_dashboard_item_cost_distribution: {
112885
+ reports_purchasedashboard_views_get_purchase_dashboard_approval_status: {
111741
112886
  parameters: {
111742
112887
  query?: {
111743
112888
  periodType?: "today" | "yesterday" | "thisWeek" | "lastWeek" | "thisMonth" | "lastMonth" | "thisQuarter" | "lastQuarter" | "thisFiscalYear" | "lastFiscalYear" | "custom" | "all";
111744
112889
  startDate?: string | null;
111745
112890
  endDate?: string | null;
111746
- sources?: components["schemas"]["SalesReportSourceType"][] | null;
111747
112891
  branchesIds?: string[] | null;
111748
112892
  };
111749
112893
  header?: never;
@@ -111758,7 +112902,7 @@ export interface operations {
111758
112902
  [name: string]: unknown;
111759
112903
  };
111760
112904
  content: {
111761
- "application/json": components["schemas"]["DashboardItemCostDistributionResponseSchema"];
112905
+ "application/json": components["schemas"]["DashboardApprovalStatusResponseSchema"];
111762
112906
  };
111763
112907
  };
111764
112908
  /** @description Bad Request */
@@ -111781,13 +112925,12 @@ export interface operations {
111781
112925
  };
111782
112926
  };
111783
112927
  };
111784
- reports_salesdashboard_views_get_sales_dashboard_net_sales_contribution: {
112928
+ reports_purchasedashboard_views_get_purchase_dashboard_pipeline: {
111785
112929
  parameters: {
111786
112930
  query?: {
111787
112931
  periodType?: "today" | "yesterday" | "thisWeek" | "lastWeek" | "thisMonth" | "lastMonth" | "thisQuarter" | "lastQuarter" | "thisFiscalYear" | "lastFiscalYear" | "custom" | "all";
111788
112932
  startDate?: string | null;
111789
112933
  endDate?: string | null;
111790
- sources?: components["schemas"]["SalesReportSourceType"][] | null;
111791
112934
  branchesIds?: string[] | null;
111792
112935
  };
111793
112936
  header?: never;
@@ -111802,7 +112945,7 @@ export interface operations {
111802
112945
  [name: string]: unknown;
111803
112946
  };
111804
112947
  content: {
111805
- "application/json": components["schemas"]["DashboardNetSalesContributionResponseSchema"];
112948
+ "application/json": components["schemas"]["DashboardPipelineResponseSchema"];
111806
112949
  };
111807
112950
  };
111808
112951
  /** @description Bad Request */
@@ -111825,13 +112968,142 @@ export interface operations {
111825
112968
  };
111826
112969
  };
111827
112970
  };
111828
- reports_salesdashboard_views_get_sales_dashboard_top_items: {
112971
+ reports_purchasedashboard_views_get_purchase_dashboard_conversion_funnel: {
112972
+ parameters: {
112973
+ query?: {
112974
+ periodType?: "today" | "yesterday" | "thisWeek" | "lastWeek" | "thisMonth" | "lastMonth" | "thisQuarter" | "lastQuarter" | "thisFiscalYear" | "lastFiscalYear" | "custom" | "all";
112975
+ startDate?: string | null;
112976
+ endDate?: string | null;
112977
+ branchesIds?: string[] | null;
112978
+ };
112979
+ header?: never;
112980
+ path?: never;
112981
+ cookie?: never;
112982
+ };
112983
+ requestBody?: never;
112984
+ responses: {
112985
+ /** @description OK */
112986
+ 200: {
112987
+ headers: {
112988
+ [name: string]: unknown;
112989
+ };
112990
+ content: {
112991
+ "application/json": components["schemas"]["DashboardConversionFunnelResponseSchema"];
112992
+ };
112993
+ };
112994
+ /** @description Bad Request */
112995
+ 400: {
112996
+ headers: {
112997
+ [name: string]: unknown;
112998
+ };
112999
+ content: {
113000
+ "application/json": components["schemas"]["ErrorMessages"];
113001
+ };
113002
+ };
113003
+ /** @description Forbidden */
113004
+ 403: {
113005
+ headers: {
113006
+ [name: string]: unknown;
113007
+ };
113008
+ content: {
113009
+ "application/json": components["schemas"]["MessageResponse"];
113010
+ };
113011
+ };
113012
+ };
113013
+ };
113014
+ reports_purchasedashboard_views_get_purchase_dashboard_cash_flow: {
113015
+ parameters: {
113016
+ query?: {
113017
+ periodType?: "today" | "yesterday" | "thisWeek" | "lastWeek" | "thisMonth" | "lastMonth" | "thisQuarter" | "lastQuarter" | "thisFiscalYear" | "lastFiscalYear" | "custom" | "all";
113018
+ startDate?: string | null;
113019
+ endDate?: string | null;
113020
+ branchesIds?: string[] | null;
113021
+ };
113022
+ header?: never;
113023
+ path?: never;
113024
+ cookie?: never;
113025
+ };
113026
+ requestBody?: never;
113027
+ responses: {
113028
+ /** @description OK */
113029
+ 200: {
113030
+ headers: {
113031
+ [name: string]: unknown;
113032
+ };
113033
+ content: {
113034
+ "application/json": components["schemas"]["DashboardCashFlowResponseSchema"];
113035
+ };
113036
+ };
113037
+ /** @description Bad Request */
113038
+ 400: {
113039
+ headers: {
113040
+ [name: string]: unknown;
113041
+ };
113042
+ content: {
113043
+ "application/json": components["schemas"]["ErrorMessages"];
113044
+ };
113045
+ };
113046
+ /** @description Forbidden */
113047
+ 403: {
113048
+ headers: {
113049
+ [name: string]: unknown;
113050
+ };
113051
+ content: {
113052
+ "application/json": components["schemas"]["MessageResponse"];
113053
+ };
113054
+ };
113055
+ };
113056
+ };
113057
+ reports_purchasedashboard_views_get_purchase_dashboard_cash_flow_trend: {
113058
+ parameters: {
113059
+ query?: {
113060
+ periodType?: "today" | "yesterday" | "thisWeek" | "lastWeek" | "thisMonth" | "lastMonth" | "thisQuarter" | "lastQuarter" | "thisFiscalYear" | "lastFiscalYear" | "custom" | "all";
113061
+ startDate?: string | null;
113062
+ endDate?: string | null;
113063
+ branchesIds?: string[] | null;
113064
+ granularity?: "daily" | "weekly" | "monthly";
113065
+ };
113066
+ header?: never;
113067
+ path?: never;
113068
+ cookie?: never;
113069
+ };
113070
+ requestBody?: never;
113071
+ responses: {
113072
+ /** @description OK */
113073
+ 200: {
113074
+ headers: {
113075
+ [name: string]: unknown;
113076
+ };
113077
+ content: {
113078
+ "application/json": components["schemas"]["DashboardCashFlowTrendResponseSchema"];
113079
+ };
113080
+ };
113081
+ /** @description Bad Request */
113082
+ 400: {
113083
+ headers: {
113084
+ [name: string]: unknown;
113085
+ };
113086
+ content: {
113087
+ "application/json": components["schemas"]["ErrorMessages"];
113088
+ };
113089
+ };
113090
+ /** @description Forbidden */
113091
+ 403: {
113092
+ headers: {
113093
+ [name: string]: unknown;
113094
+ };
113095
+ content: {
113096
+ "application/json": components["schemas"]["MessageResponse"];
113097
+ };
113098
+ };
113099
+ };
113100
+ };
113101
+ reports_purchasedashboard_views_get_purchase_dashboard_top_items: {
111829
113102
  parameters: {
111830
113103
  query?: {
111831
113104
  periodType?: "today" | "yesterday" | "thisWeek" | "lastWeek" | "thisMonth" | "lastMonth" | "thisQuarter" | "lastQuarter" | "thisFiscalYear" | "lastFiscalYear" | "custom" | "all";
111832
113105
  startDate?: string | null;
111833
113106
  endDate?: string | null;
111834
- sources?: components["schemas"]["SalesReportSourceType"][] | null;
111835
113107
  branchesIds?: string[] | null;
111836
113108
  };
111837
113109
  header?: never;
@@ -111869,13 +113141,12 @@ export interface operations {
111869
113141
  };
111870
113142
  };
111871
113143
  };
111872
- reports_salesdashboard_views_get_sales_dashboard_top_customers: {
113144
+ reports_purchasedashboard_views_get_purchase_dashboard_top_suppliers: {
111873
113145
  parameters: {
111874
113146
  query?: {
111875
113147
  periodType?: "today" | "yesterday" | "thisWeek" | "lastWeek" | "thisMonth" | "lastMonth" | "thisQuarter" | "lastQuarter" | "thisFiscalYear" | "lastFiscalYear" | "custom" | "all";
111876
113148
  startDate?: string | null;
111877
113149
  endDate?: string | null;
111878
- sources?: components["schemas"]["SalesReportSourceType"][] | null;
111879
113150
  branchesIds?: string[] | null;
111880
113151
  };
111881
113152
  header?: never;
@@ -111890,7 +113161,7 @@ export interface operations {
111890
113161
  [name: string]: unknown;
111891
113162
  };
111892
113163
  content: {
111893
- "application/json": components["schemas"]["DashboardTopCustomersResponseSchema"];
113164
+ "application/json": components["schemas"]["DashboardTopSuppliersResponseSchema"];
111894
113165
  };
111895
113166
  };
111896
113167
  /** @description Bad Request */
@@ -111913,13 +113184,12 @@ export interface operations {
111913
113184
  };
111914
113185
  };
111915
113186
  };
111916
- reports_salesdashboard_views_get_sales_dashboard_top_branches: {
113187
+ reports_purchasedashboard_views_get_purchase_dashboard_top_branches: {
111917
113188
  parameters: {
111918
113189
  query?: {
111919
113190
  periodType?: "today" | "yesterday" | "thisWeek" | "lastWeek" | "thisMonth" | "lastMonth" | "thisQuarter" | "lastQuarter" | "thisFiscalYear" | "lastFiscalYear" | "custom" | "all";
111920
113191
  startDate?: string | null;
111921
113192
  endDate?: string | null;
111922
- sources?: components["schemas"]["SalesReportSourceType"][] | null;
111923
113193
  branchesIds?: string[] | null;
111924
113194
  };
111925
113195
  header?: never;
@@ -111957,22 +113227,12 @@ export interface operations {
111957
113227
  };
111958
113228
  };
111959
113229
  };
111960
- reports_receivablesreport_views_get_receivables_by_customer_region_report_view: {
113230
+ reports_purchasedashboard_views_get_purchase_dashboard_alerts: {
111961
113231
  parameters: {
111962
113232
  query?: {
111963
- /** @description Sales region(s) to filter customers (defaults to all regions) */
111964
- regionIds?: number[] | null;
111965
- /** @description Show invoices unpaid as of this date */
111966
- asOfDate?: string | null;
111967
- /** @description Filter by sales person assigned on the sales invoice (SalesInvoice.salesPerson), not by customer assignment. Returns unpaid/partially paid invoices for that sales person across all customers, then groups results by each customer's region. */
111968
- salesPersonId?: string | null;
111969
- /** @description Filter by customer group using route api/v1/common/contact-segmentation/ and filter by type equals customer */
111970
- customerGroupIds?: string[] | null;
111971
- /** @description Only include customers with overdue invoices */
111972
- includeOverdueOnly?: boolean;
111973
- /** @description Sort customers by city or sort regions alphabetically */
111974
- sortBy?: "region" | "city";
111975
- /** @description Branch filter (only for users with access to multiple branches) */
113233
+ periodType?: "today" | "yesterday" | "thisWeek" | "lastWeek" | "thisMonth" | "lastMonth" | "thisQuarter" | "lastQuarter" | "thisFiscalYear" | "lastFiscalYear" | "custom" | "all";
113234
+ startDate?: string | null;
113235
+ endDate?: string | null;
111976
113236
  branchesIds?: string[] | null;
111977
113237
  };
111978
113238
  header?: never;
@@ -111987,7 +113247,7 @@ export interface operations {
111987
113247
  [name: string]: unknown;
111988
113248
  };
111989
113249
  content: {
111990
- "application/json": components["schemas"]["ReceivablesByCustomerRegionReportSchema"];
113250
+ "application/json": components["schemas"]["DashboardAlertsResponseSchema"];
111991
113251
  };
111992
113252
  };
111993
113253
  /** @description Bad Request */