@erp-galoper/types 1.0.1255 → 1.0.1257

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 +1201 -151
  2. package/package.json +1 -1
package/openapi.ts CHANGED
@@ -19368,6 +19368,252 @@ export interface paths {
19368
19368
  patch?: never;
19369
19369
  trace?: never;
19370
19370
  };
19371
+ "/api/v1/reports/by-item/": {
19372
+ parameters: {
19373
+ query?: never;
19374
+ header?: never;
19375
+ path?: never;
19376
+ cookie?: never;
19377
+ };
19378
+ /**
19379
+ * Get Sales By Item Report
19380
+ * @description Sales Report by Item - Sales performance at the individual item level.
19381
+ *
19382
+ * **Possible Responses:**
19383
+ * - 200: Report data grouped by item
19384
+ * - 400:
19385
+ * - startDateAndEndDateAreRequiredForCustomPeriodType
19386
+ * - invalidDateFormat
19387
+ * - 403: permissionDenied
19388
+ *
19389
+ * **Permission Keys:**
19390
+ * - salesbyitemreport: ["view"]
19391
+ */
19392
+ get: operations["reports_salesreport_views_get_sales_by_item_report"];
19393
+ put?: never;
19394
+ post?: never;
19395
+ delete?: never;
19396
+ options?: never;
19397
+ head?: never;
19398
+ patch?: never;
19399
+ trace?: never;
19400
+ };
19401
+ "/api/v1/reports/by-category/": {
19402
+ parameters: {
19403
+ query?: never;
19404
+ header?: never;
19405
+ path?: never;
19406
+ cookie?: never;
19407
+ };
19408
+ /**
19409
+ * Get Sales By Category Report
19410
+ * @description Sales Report by Category - Aggregated sales per item category.
19411
+ *
19412
+ * **Possible Responses:**
19413
+ * - 200: Report data grouped by category
19414
+ * - 400:
19415
+ * - startDateAndEndDateAreRequiredForCustomPeriodType
19416
+ * - invalidDateFormat
19417
+ * - 403: permissionDenied
19418
+ *
19419
+ * **Permission Keys:**
19420
+ * - salesbycategoryreport: ["view"]
19421
+ */
19422
+ get: operations["reports_salesreport_views_get_sales_by_category_report"];
19423
+ put?: never;
19424
+ post?: never;
19425
+ delete?: never;
19426
+ options?: never;
19427
+ head?: never;
19428
+ patch?: never;
19429
+ trace?: never;
19430
+ };
19431
+ "/api/v1/reports/by-brand/": {
19432
+ parameters: {
19433
+ query?: never;
19434
+ header?: never;
19435
+ path?: never;
19436
+ cookie?: never;
19437
+ };
19438
+ /**
19439
+ * Get Sales By Brand Report
19440
+ * @description Sales Report by Brand - Sales contribution of each brand.
19441
+ *
19442
+ * **Possible Responses:**
19443
+ * - 200: Report data grouped by brand
19444
+ * - 400:
19445
+ * - startDateAndEndDateAreRequiredForCustomPeriodType
19446
+ * - invalidDateFormat
19447
+ * - 403: permissionDenied
19448
+ *
19449
+ * **Permission Keys:**
19450
+ * - salesbybrandreport: ["view"]
19451
+ */
19452
+ get: operations["reports_salesreport_views_get_sales_by_brand_report"];
19453
+ put?: never;
19454
+ post?: never;
19455
+ delete?: never;
19456
+ options?: never;
19457
+ head?: never;
19458
+ patch?: never;
19459
+ trace?: never;
19460
+ };
19461
+ "/api/v1/reports/by-customer/": {
19462
+ parameters: {
19463
+ query?: never;
19464
+ header?: never;
19465
+ path?: never;
19466
+ cookie?: never;
19467
+ };
19468
+ /**
19469
+ * Get Sales By Customer Report
19470
+ * @description Sales Report by Customer - Sales analysis per customer.
19471
+ *
19472
+ * **Possible Responses:**
19473
+ * - 200: Report data grouped by customer
19474
+ * - 400:
19475
+ * - startDateAndEndDateAreRequiredForCustomPeriodType
19476
+ * - invalidDateFormat
19477
+ * - 403: permissionDenied
19478
+ *
19479
+ * **Permission Keys:**
19480
+ * - salesbycustomerreport: ["view"]
19481
+ */
19482
+ get: operations["reports_salesreport_views_get_sales_by_customer_report"];
19483
+ put?: never;
19484
+ post?: never;
19485
+ delete?: never;
19486
+ options?: never;
19487
+ head?: never;
19488
+ patch?: never;
19489
+ trace?: never;
19490
+ };
19491
+ "/api/v1/reports/by-salesperson/": {
19492
+ parameters: {
19493
+ query?: never;
19494
+ header?: never;
19495
+ path?: never;
19496
+ cookie?: never;
19497
+ };
19498
+ /**
19499
+ * Get Sales By Salesperson Report
19500
+ * @description Sales Report by Salesperson - Performance tracking of sales staff.
19501
+ * Note: This report only uses Sales Invoices (not POS).
19502
+ *
19503
+ * **Possible Responses:**
19504
+ * - 200: Report data grouped by salesperson
19505
+ * - 400:
19506
+ * - startDateAndEndDateAreRequiredForCustomPeriodType
19507
+ * - invalidDateFormat
19508
+ * - 403: permissionDenied
19509
+ *
19510
+ * **Permission Keys:**
19511
+ * - salesbysalespersonreport: ["view"]
19512
+ */
19513
+ get: operations["reports_salesreport_views_get_sales_by_salesperson_report"];
19514
+ put?: never;
19515
+ post?: never;
19516
+ delete?: never;
19517
+ options?: never;
19518
+ head?: never;
19519
+ patch?: never;
19520
+ trace?: never;
19521
+ };
19522
+ "/api/v1/reports/by-warehouse/": {
19523
+ parameters: {
19524
+ query?: never;
19525
+ header?: never;
19526
+ path?: never;
19527
+ cookie?: never;
19528
+ };
19529
+ /**
19530
+ * Get Sales By Warehouse Report
19531
+ * @description Sales Report by Warehouse - Branch/warehouse performance comparison.
19532
+ *
19533
+ * **Possible Responses:**
19534
+ * - 200: Report data grouped by warehouse
19535
+ * - 400:
19536
+ * - startDateAndEndDateAreRequiredForCustomPeriodType
19537
+ * - invalidDateFormat
19538
+ * - 403: permissionDenied
19539
+ *
19540
+ * **Permission Keys:**
19541
+ * - salesbywarehousereport: ["view"]
19542
+ */
19543
+ get: operations["reports_salesreport_views_get_sales_by_warehouse_report"];
19544
+ put?: never;
19545
+ post?: never;
19546
+ delete?: never;
19547
+ options?: never;
19548
+ head?: never;
19549
+ patch?: never;
19550
+ trace?: never;
19551
+ };
19552
+ "/api/v1/reports/summary/": {
19553
+ parameters: {
19554
+ query?: never;
19555
+ header?: never;
19556
+ path?: never;
19557
+ cookie?: never;
19558
+ };
19559
+ /**
19560
+ * Get Sales Summary Report
19561
+ * @description Sales Summary Report - Overall sales summary and profitability.
19562
+ *
19563
+ * **Possible Responses:**
19564
+ * - 200: Summary report data
19565
+ * - 400:
19566
+ * - startDateAndEndDateAreRequiredForCustomPeriodType
19567
+ * - invalidDateFormat
19568
+ * - 403: permissionDenied
19569
+ *
19570
+ * **Permission Keys:**
19571
+ * - salessummaryreport: ["view"]
19572
+ */
19573
+ get: operations["reports_salesreport_views_get_sales_summary_report"];
19574
+ put?: never;
19575
+ post?: never;
19576
+ delete?: never;
19577
+ options?: never;
19578
+ head?: never;
19579
+ patch?: never;
19580
+ trace?: never;
19581
+ };
19582
+ "/api/v1/reports/trend/": {
19583
+ parameters: {
19584
+ query?: never;
19585
+ header?: never;
19586
+ path?: never;
19587
+ cookie?: never;
19588
+ };
19589
+ /**
19590
+ * Get Sales Trend Report
19591
+ * @description Sales Trend Report - Time-based sales analysis.
19592
+ *
19593
+ * **Granularity Options:**
19594
+ * - `daily`: Day-by-day breakdown (best for short periods like thisWeek, lastWeek, thisMonth)
19595
+ * - `weekly`: Week-by-week breakdown (best for medium periods like thisMonth, thisQuarter)
19596
+ * - `monthly`: Month-by-month breakdown (best for longer periods like thisYear, lastYear)
19597
+ *
19598
+ * **Possible Responses:**
19599
+ * - 200: Trend report data (daily, weekly, or monthly)
19600
+ * - 400:
19601
+ * - startDateAndEndDateAreRequiredForCustomPeriodType
19602
+ * - invalidDateFormat
19603
+ * - 403: permissionDenied
19604
+ *
19605
+ * **Permission Keys:**
19606
+ * - salestrendreport: ["view"]
19607
+ */
19608
+ get: operations["reports_salesreport_views_get_sales_trend_report"];
19609
+ put?: never;
19610
+ post?: never;
19611
+ delete?: never;
19612
+ options?: never;
19613
+ head?: never;
19614
+ patch?: never;
19615
+ trace?: never;
19616
+ };
19371
19617
  "/api/v1/task/status": {
19372
19618
  parameters: {
19373
19619
  query?: never;
@@ -20517,16 +20763,10 @@ export interface paths {
20517
20763
  * Possible Responses:
20518
20764
  * - 200:
20519
20765
  * - RetrieveNotificationSetting
20520
- * - 403:
20521
- * - permissionDenied
20522
- * - noModuleAccess
20523
20766
  * - 404:
20524
20767
  * - notificationSettingDoesNotExist
20525
20768
  * - 500:
20526
20769
  * - internalServerError
20527
- *
20528
- * Permission Key:
20529
- * 'erp_settings.notificationsettings = ['view']'
20530
20770
  */
20531
20771
  get: operations["erp_settings_notificationsettings_views_get_notification_setting"];
20532
20772
  /**
@@ -20535,18 +20775,12 @@ export interface paths {
20535
20775
  * Possible Responses:
20536
20776
  * - 200:
20537
20777
  * - RetrieveNotificationSetting
20538
- * - 403:
20539
- * - permissionDenied
20540
- * - noModuleAccess
20541
20778
  * - 400:
20542
20779
  * - ValidationError
20543
20780
  * - 404:
20544
20781
  * - notificationSettingDoesNotExist
20545
20782
  * - 500:
20546
20783
  * - internalServerError
20547
- *
20548
- * Permsission Key:
20549
- * 'erp_settings.notificationsettings = ['change']'
20550
20784
  */
20551
20785
  put: operations["erp_settings_notificationsettings_views_edit_notification_setting"];
20552
20786
  post?: never;
@@ -20573,38 +20807,12 @@ export interface paths {
20573
20807
  * - 400:
20574
20808
  * - invalidFilterFormat
20575
20809
  * - paginationError
20576
- * - 403:
20577
- * - permissionDenied
20578
- * - noModuleAccess
20579
20810
  * - 500:
20580
20811
  * - internalServerError
20581
- *
20582
- * Permission Key:
20583
- * 'erp_settings.notificationsettings = ["view"]'
20584
20812
  */
20585
20813
  get: operations["erp_settings_notificationsettings_views_list_notification_settings"];
20586
20814
  put?: never;
20587
- /**
20588
- * Create Notification Setting
20589
- * @description Endpoint for create comment
20590
- * Possible Responses:
20591
- * - 201:
20592
- * - RetrieveNotificationSetting
20593
- * - 403:
20594
- * - permissionDenied
20595
- * - noModuleAccess
20596
- * - 400:
20597
- * - ValidationError
20598
- * - contentTypeDoesNotExist
20599
- * - 409:
20600
- * - DuplicateNotificationSetting
20601
- * - 500:
20602
- * - internalServerError
20603
- *
20604
- * Permission key:
20605
- * 'erp_settings.notificationsettings = ['add']'
20606
- */
20607
- post: operations["erp_settings_notificationsettings_views_create_notification_setting"];
20815
+ post?: never;
20608
20816
  delete?: never;
20609
20817
  options?: never;
20610
20818
  head?: never;
@@ -20629,7 +20837,7 @@ export interface paths {
20629
20837
  * the client's browser
20630
20838
  *
20631
20839
  * How SSE works >>>
20632
- * - Client initiates a GET request; the server validates permissions
20840
+ * - Client initiates a GET request;
20633
20841
  * - Upon success, a persistent HTTP connection is opened, subscribing to the Redis channel unique for request user
20634
20842
  * - An initial `{"type":"connected"}` JSON payload is sent immediately to confirm the stream is active.
20635
20843
  * - The server runs an asynchronous loop, yielding any messages published to Redis directly to the client in SSE format.
@@ -20661,14 +20869,8 @@ export interface paths {
20661
20869
  * - 400:
20662
20870
  * - invalidFilterFormat
20663
20871
  * - paginationError
20664
- * - 403:
20665
- * - permissionDenied
20666
- * - noModuleAccess
20667
20872
  * - 500:
20668
20873
  * - internalServerError
20669
- *
20670
- * Permission Key:
20671
- * 'notificationrecipient = ["view"]'
20672
20874
  */
20673
20875
  get: operations["notification_views_list_notification"];
20674
20876
  put?: never;
@@ -20701,22 +20903,15 @@ export interface paths {
20701
20903
  * - RetrieveNotificationRecipient
20702
20904
  * - 400:
20703
20905
  * - ValidationError
20704
- * - 403:
20705
- * - permissionDenied
20706
- * - noModuleAccess
20707
20906
  * - 404:
20708
20907
  * - NotificationDoesNotExist
20709
20908
  * - 500:
20710
20909
  * - internalServerError
20711
- *
20712
- * Permission Key:
20713
- * 'notificationrecipient = ['mark_read']' Permission key to mark notification as read only
20714
- * 'notificationrecipient = ['mark_unread']' Permission key to mark notification as unread only
20715
20910
  */
20716
20911
  patch: operations["notification_views_update_notification_status"];
20717
20912
  trace?: never;
20718
20913
  };
20719
- "/api/v1/notification/{id}/batch-update": {
20914
+ "/api/v1/notification/batch-update/": {
20720
20915
  parameters: {
20721
20916
  query?: never;
20722
20917
  header?: never;
@@ -20733,17 +20928,10 @@ export interface paths {
20733
20928
  * - MessageResponse
20734
20929
  * - 400:
20735
20930
  * - ValidationError
20736
- * - 403:
20737
- * - permissionDenied
20738
- * - noModuleAccess
20739
20931
  * - 404:
20740
20932
  * - NotificationDoesNotExist
20741
20933
  * - 500:
20742
20934
  * - internalServerError
20743
- *
20744
- * Permission Key:
20745
- * 'notificationrecipient = ['mark_read']' Permission key to mark notification as read only
20746
- * 'notificationrecipient = ['mark_unread']' Permission key to mark notification as unread only
20747
20935
  */
20748
20936
  put: operations["notification_views_batch_update_notification_status"];
20749
20937
  post?: never;
@@ -20767,16 +20955,10 @@ export interface paths {
20767
20955
  * Possible Responses:
20768
20956
  * - 200:
20769
20957
  * - RetrieveNotificationRecipient
20770
- * - 403:
20771
- * - permissionDenied
20772
- * - noModuleAccess
20773
20958
  * - 404:
20774
20959
  * - notificationDoesNotExist
20775
20960
  * - 500:
20776
20961
  * - internalServerError
20777
- *
20778
- * Permission Key:
20779
- * 'notificationrecipient = ['view']'
20780
20962
  */
20781
20963
  get: operations["notification_views_get_notification"];
20782
20964
  put?: never;
@@ -21906,6 +22088,11 @@ export interface components {
21906
22088
  * @default []
21907
22089
  */
21908
22090
  expenses: components["schemas"]["BasePermissionsSchema_Expenses"];
22091
+ /**
22092
+ * @description notification actions
22093
+ * @default []
22094
+ */
22095
+ notification: components["schemas"]["BasePermissionsSchema_Notification"];
21909
22096
  /**
21910
22097
  * @description pos actions
21911
22098
  * @default []
@@ -22304,6 +22491,53 @@ export interface components {
22304
22491
  * @enum {string}
22305
22492
  */
22306
22493
  BasePermissionsSchema_Inventory_WarehouseEnum: "add" | "change" | "delete" | "view";
22494
+ /** BasePermissionsSchema_Notification */
22495
+ BasePermissionsSchema_Notification: {
22496
+ /**
22497
+ * Notification
22498
+ * @description notification actions
22499
+ * @default []
22500
+ */
22501
+ notification: components["schemas"]["BasePermissionsSchema_Notification_NotificationEnum"][];
22502
+ /**
22503
+ * Notificationrecipient
22504
+ * @description notificationrecipient actions
22505
+ * @default []
22506
+ */
22507
+ notificationrecipient: components["schemas"]["BasePermissionsSchema_Notification_NotificationrecipientEnum"][];
22508
+ /**
22509
+ * Read Notificationrecipient
22510
+ * @description read_notificationrecipient actions
22511
+ * @default []
22512
+ */
22513
+ read_notificationrecipient: components["schemas"]["BasePermissionsSchema_Notification_Read_notificationrecipientEnum"][];
22514
+ /**
22515
+ * Unread Notificationrecipient
22516
+ * @description unread_notificationrecipient actions
22517
+ * @default []
22518
+ */
22519
+ unread_notificationrecipient: components["schemas"]["BasePermissionsSchema_Notification_Unread_notificationrecipientEnum"][];
22520
+ };
22521
+ /**
22522
+ * BasePermissionsSchema_Notification_NotificationEnum
22523
+ * @enum {string}
22524
+ */
22525
+ BasePermissionsSchema_Notification_NotificationEnum: "add" | "change" | "delete" | "view";
22526
+ /**
22527
+ * BasePermissionsSchema_Notification_NotificationrecipientEnum
22528
+ * @enum {string}
22529
+ */
22530
+ BasePermissionsSchema_Notification_NotificationrecipientEnum: "add" | "change" | "delete" | "view";
22531
+ /**
22532
+ * BasePermissionsSchema_Notification_Read_notificationrecipientEnum
22533
+ * @constant
22534
+ */
22535
+ BasePermissionsSchema_Notification_Read_notificationrecipientEnum: "mark";
22536
+ /**
22537
+ * BasePermissionsSchema_Notification_Unread_notificationrecipientEnum
22538
+ * @constant
22539
+ */
22540
+ BasePermissionsSchema_Notification_Unread_notificationrecipientEnum: "mark";
22307
22541
  /** BasePermissionsSchema_Pos */
22308
22542
  BasePermissionsSchema_Pos: {
22309
22543
  /**
@@ -22820,6 +23054,42 @@ export interface components {
22820
23054
  * @default []
22821
23055
  */
22822
23056
  salesrefundvoucher: components["schemas"]["BasePermissionsSchema_Sales_SalesrefundvoucherEnum"][];
23057
+ /**
23058
+ * Salesbybrandreport
23059
+ * @description salesbybrandreport actions
23060
+ * @default []
23061
+ */
23062
+ salesbybrandreport: components["schemas"]["BasePermissionsSchema_Sales_SalesbybrandreportEnum"][];
23063
+ /**
23064
+ * Salesbycategoryreport
23065
+ * @description salesbycategoryreport actions
23066
+ * @default []
23067
+ */
23068
+ salesbycategoryreport: components["schemas"]["BasePermissionsSchema_Sales_SalesbycategoryreportEnum"][];
23069
+ /**
23070
+ * Salesbycustomerreport
23071
+ * @description salesbycustomerreport actions
23072
+ * @default []
23073
+ */
23074
+ salesbycustomerreport: components["schemas"]["BasePermissionsSchema_Sales_SalesbycustomerreportEnum"][];
23075
+ /**
23076
+ * Salesbyitemreport
23077
+ * @description salesbyitemreport actions
23078
+ * @default []
23079
+ */
23080
+ salesbyitemreport: components["schemas"]["BasePermissionsSchema_Sales_SalesbyitemreportEnum"][];
23081
+ /**
23082
+ * Salesbysalespersonreport
23083
+ * @description salesbysalespersonreport actions
23084
+ * @default []
23085
+ */
23086
+ salesbysalespersonreport: components["schemas"]["BasePermissionsSchema_Sales_SalesbysalespersonreportEnum"][];
23087
+ /**
23088
+ * Salesbywarehousereport
23089
+ * @description salesbywarehousereport actions
23090
+ * @default []
23091
+ */
23092
+ salesbywarehousereport: components["schemas"]["BasePermissionsSchema_Sales_SalesbywarehousereportEnum"][];
22823
23093
  /**
22824
23094
  * Cost
22825
23095
  * @description cost actions
@@ -22844,6 +23114,18 @@ export interface components {
22844
23114
  * @default []
22845
23115
  */
22846
23116
  profit: components["schemas"]["BasePermissionsSchema_Sales_ProfitEnum"][];
23117
+ /**
23118
+ * Salessummaryreport
23119
+ * @description salessummaryreport actions
23120
+ * @default []
23121
+ */
23122
+ salessummaryreport: components["schemas"]["BasePermissionsSchema_Sales_SalessummaryreportEnum"][];
23123
+ /**
23124
+ * Salestrendreport
23125
+ * @description salestrendreport actions
23126
+ * @default []
23127
+ */
23128
+ salestrendreport: components["schemas"]["BasePermissionsSchema_Sales_SalestrendreportEnum"][];
22847
23129
  };
22848
23130
  /**
22849
23131
  * BasePermissionsSchema_Sales_CostEnum
@@ -22880,6 +23162,36 @@ export interface components {
22880
23162
  * @enum {string}
22881
23163
  */
22882
23164
  BasePermissionsSchema_Sales_ReceiptvoucherEnum: "add" | "approve" | "cancel" | "change" | "delete" | "export" | "resettodraft" | "send" | "view";
23165
+ /**
23166
+ * BasePermissionsSchema_Sales_SalesbybrandreportEnum
23167
+ * @constant
23168
+ */
23169
+ BasePermissionsSchema_Sales_SalesbybrandreportEnum: "view";
23170
+ /**
23171
+ * BasePermissionsSchema_Sales_SalesbycategoryreportEnum
23172
+ * @constant
23173
+ */
23174
+ BasePermissionsSchema_Sales_SalesbycategoryreportEnum: "view";
23175
+ /**
23176
+ * BasePermissionsSchema_Sales_SalesbycustomerreportEnum
23177
+ * @constant
23178
+ */
23179
+ BasePermissionsSchema_Sales_SalesbycustomerreportEnum: "view";
23180
+ /**
23181
+ * BasePermissionsSchema_Sales_SalesbyitemreportEnum
23182
+ * @constant
23183
+ */
23184
+ BasePermissionsSchema_Sales_SalesbyitemreportEnum: "view";
23185
+ /**
23186
+ * BasePermissionsSchema_Sales_SalesbysalespersonreportEnum
23187
+ * @constant
23188
+ */
23189
+ BasePermissionsSchema_Sales_SalesbysalespersonreportEnum: "view";
23190
+ /**
23191
+ * BasePermissionsSchema_Sales_SalesbywarehousereportEnum
23192
+ * @constant
23193
+ */
23194
+ BasePermissionsSchema_Sales_SalesbywarehousereportEnum: "view";
22883
23195
  /**
22884
23196
  * BasePermissionsSchema_Sales_SalescreditnoteEnum
22885
23197
  * @enum {string}
@@ -22920,6 +23232,16 @@ export interface components {
22920
23232
  * @enum {string}
22921
23233
  */
22922
23234
  BasePermissionsSchema_Sales_SalesreturnorderEnum: "add" | "approve" | "cancel" | "change" | "delete" | "export" | "resettodraft" | "view";
23235
+ /**
23236
+ * BasePermissionsSchema_Sales_SalessummaryreportEnum
23237
+ * @constant
23238
+ */
23239
+ BasePermissionsSchema_Sales_SalessummaryreportEnum: "view";
23240
+ /**
23241
+ * BasePermissionsSchema_Sales_SalestrendreportEnum
23242
+ * @constant
23243
+ */
23244
+ BasePermissionsSchema_Sales_SalestrendreportEnum: "view";
22923
23245
  /** BasePermissionsSchema_Settings */
22924
23246
  BasePermissionsSchema_Settings: {
22925
23247
  /**
@@ -22972,6 +23294,11 @@ export interface components {
22972
23294
  * @default []
22973
23295
  */
22974
23296
  settings: components["schemas"]["BasePermissionsSchema_Settings_Settings"];
23297
+ /**
23298
+ * @description notification actions
23299
+ * @default []
23300
+ */
23301
+ notification: components["schemas"]["BasePermissionsSchema_Settings_Notification"];
22975
23302
  /**
22976
23303
  * @description pos actions
22977
23304
  * @default []
@@ -23575,6 +23902,20 @@ export interface components {
23575
23902
  * @enum {string}
23576
23903
  */
23577
23904
  BasePermissionsSchema_Settings_Miscellaneous_ZoneEnum: "add" | "change" | "delete" | "view";
23905
+ /** BasePermissionsSchema_Settings_Notification */
23906
+ BasePermissionsSchema_Settings_Notification: {
23907
+ /**
23908
+ * Notificationsetting
23909
+ * @description notificationsetting actions
23910
+ * @default []
23911
+ */
23912
+ notificationsetting: components["schemas"]["BasePermissionsSchema_Settings_Notification_NotificationsettingEnum"][];
23913
+ };
23914
+ /**
23915
+ * BasePermissionsSchema_Settings_Notification_NotificationsettingEnum
23916
+ * @enum {string}
23917
+ */
23918
+ BasePermissionsSchema_Settings_Notification_NotificationsettingEnum: "add" | "change" | "delete" | "view";
23578
23919
  /** BasePermissionsSchema_Settings_Pos */
23579
23920
  BasePermissionsSchema_Settings_Pos: {
23580
23921
  /**
@@ -52575,6 +52916,398 @@ export interface components {
52575
52916
  */
52576
52917
  locations: components["schemas"]["ItemLocationSchema"][];
52577
52918
  };
52919
+ /**
52920
+ * SalesReportPeriodType
52921
+ * @enum {string}
52922
+ */
52923
+ SalesReportPeriodType: "today" | "yesterday" | "thisWeek" | "lastWeek" | "thisMonth" | "lastMonth" | "thisQuarter" | "lastQuarter" | "thisYear" | "lastYear" | "custom";
52924
+ /**
52925
+ * SalesReportSourceType
52926
+ * @enum {string}
52927
+ */
52928
+ SalesReportSourceType: "salesInvoice" | "posInvoice" | "onlineOrder";
52929
+ /** BrandSummarySchema */
52930
+ BrandSummarySchema: {
52931
+ /** Id */
52932
+ id: number;
52933
+ /** Name */
52934
+ name: string;
52935
+ };
52936
+ /** CategorySummarySchema */
52937
+ CategorySummarySchema: {
52938
+ /** Id */
52939
+ id: number;
52940
+ /** Name */
52941
+ name: string;
52942
+ };
52943
+ /**
52944
+ * CurrencyAmountSchema
52945
+ * @description Amount in both primary and secondary currencies
52946
+ */
52947
+ CurrencyAmountSchema: {
52948
+ /** Primary */
52949
+ primary: number;
52950
+ /** Secondary */
52951
+ secondary: number;
52952
+ };
52953
+ /** FamilySummarySchema */
52954
+ FamilySummarySchema: {
52955
+ /** Id */
52956
+ id: number;
52957
+ /** Name */
52958
+ name: string;
52959
+ };
52960
+ /** ItemSummarySchema */
52961
+ ItemSummarySchema: {
52962
+ /** Id */
52963
+ id: number;
52964
+ /** Name */
52965
+ name: string;
52966
+ /** Skucode */
52967
+ skuCode?: string | null;
52968
+ };
52969
+ /** SalesByItemListSchema */
52970
+ SalesByItemListSchema: {
52971
+ info: components["schemas"]["PageInfoSchema"];
52972
+ /** Results */
52973
+ results: components["schemas"]["SalesByItemSchema"][];
52974
+ totals?: components["schemas"]["SalesTotalsSchema"] | null;
52975
+ };
52976
+ /**
52977
+ * SalesByItemSchema
52978
+ * @description Sales performance at the individual item level
52979
+ */
52980
+ SalesByItemSchema: {
52981
+ item: components["schemas"]["ItemSummarySchema"];
52982
+ category?: components["schemas"]["CategorySummarySchema"] | null;
52983
+ brand?: components["schemas"]["BrandSummarySchema"] | null;
52984
+ family?: components["schemas"]["FamilySummarySchema"] | null;
52985
+ /** Quantitysold */
52986
+ quantitySold: number;
52987
+ /** @description Total sales before discounts */
52988
+ grossSalesAmount: components["schemas"]["CurrencyAmountSchema"];
52989
+ discountAmount: components["schemas"]["CurrencyAmountSchema"];
52990
+ /** @description Sales after discounts */
52991
+ netSalesAmount: components["schemas"]["CurrencyAmountSchema"];
52992
+ taxAmount: components["schemas"]["CurrencyAmountSchema"];
52993
+ /** @description Net sales + tax */
52994
+ totalAmount: components["schemas"]["CurrencyAmountSchema"];
52995
+ /** @description Cost of goods sold (COGS) */
52996
+ cost: components["schemas"]["CurrencyAmountSchema"];
52997
+ /** @description Net sales - COGS */
52998
+ grossProfit: components["schemas"]["CurrencyAmountSchema"];
52999
+ /**
53000
+ * Profitmargin
53001
+ * @description Profit margin percentage
53002
+ */
53003
+ profitMargin: number;
53004
+ };
53005
+ /**
53006
+ * SalesTotalsSchema
53007
+ * @description Summary totals for sales reports
53008
+ */
53009
+ SalesTotalsSchema: {
53010
+ /** Totalquantitysold */
53011
+ totalQuantitySold: number;
53012
+ grossSalesAmount: components["schemas"]["CurrencyAmountSchema"];
53013
+ totalDiscounts: components["schemas"]["CurrencyAmountSchema"];
53014
+ netSalesAmount: components["schemas"]["CurrencyAmountSchema"];
53015
+ totalTaxAmount: components["schemas"]["CurrencyAmountSchema"];
53016
+ totalAmount: components["schemas"]["CurrencyAmountSchema"];
53017
+ totalCost: components["schemas"]["CurrencyAmountSchema"];
53018
+ grossProfit: components["schemas"]["CurrencyAmountSchema"];
53019
+ /** Profitmargin */
53020
+ profitMargin: number;
53021
+ };
53022
+ /** SalesByCategoryListSchema */
53023
+ SalesByCategoryListSchema: {
53024
+ info: components["schemas"]["PageInfoSchema"];
53025
+ /** Results */
53026
+ results: components["schemas"]["SalesByCategorySchema"][];
53027
+ totals?: components["schemas"]["SalesTotalsSchema"] | null;
53028
+ };
53029
+ /**
53030
+ * SalesByCategorySchema
53031
+ * @description Aggregated sales per item category
53032
+ */
53033
+ SalesByCategorySchema: {
53034
+ category: components["schemas"]["CategorySummarySchema"];
53035
+ /** Quantitysold */
53036
+ quantitySold: number;
53037
+ grossSalesAmount: components["schemas"]["CurrencyAmountSchema"];
53038
+ discountAmount: components["schemas"]["CurrencyAmountSchema"];
53039
+ netSalesAmount: components["schemas"]["CurrencyAmountSchema"];
53040
+ taxAmount: components["schemas"]["CurrencyAmountSchema"];
53041
+ totalAmount: components["schemas"]["CurrencyAmountSchema"];
53042
+ cost: components["schemas"]["CurrencyAmountSchema"];
53043
+ grossProfit: components["schemas"]["CurrencyAmountSchema"];
53044
+ /** Profitmargin */
53045
+ profitMargin: number;
53046
+ /**
53047
+ * Contributionpercentage
53048
+ * @description Category's contribution to total sales
53049
+ */
53050
+ contributionPercentage: number;
53051
+ };
53052
+ /** SalesByBrandListSchema */
53053
+ SalesByBrandListSchema: {
53054
+ info: components["schemas"]["PageInfoSchema"];
53055
+ /** Results */
53056
+ results: components["schemas"]["SalesByBrandSchema"][];
53057
+ totals?: components["schemas"]["SalesTotalsSchema"] | null;
53058
+ };
53059
+ /**
53060
+ * SalesByBrandSchema
53061
+ * @description Sales contribution of each brand
53062
+ */
53063
+ SalesByBrandSchema: {
53064
+ brand: components["schemas"]["BrandSummarySchema"];
53065
+ /** Quantitysold */
53066
+ quantitySold: number;
53067
+ grossSalesAmount: components["schemas"]["CurrencyAmountSchema"];
53068
+ discountAmount: components["schemas"]["CurrencyAmountSchema"];
53069
+ netSalesAmount: components["schemas"]["CurrencyAmountSchema"];
53070
+ taxAmount: components["schemas"]["CurrencyAmountSchema"];
53071
+ totalAmount: components["schemas"]["CurrencyAmountSchema"];
53072
+ cost: components["schemas"]["CurrencyAmountSchema"];
53073
+ grossProfit: components["schemas"]["CurrencyAmountSchema"];
53074
+ /** Profitmargin */
53075
+ profitMargin: number;
53076
+ };
53077
+ /** CustomerSummarySchema */
53078
+ CustomerSummarySchema: {
53079
+ /** Id */
53080
+ id: number;
53081
+ /** Name */
53082
+ name: string;
53083
+ /** Code */
53084
+ code?: string | null;
53085
+ };
53086
+ /** SalesByCustomerListSchema */
53087
+ SalesByCustomerListSchema: {
53088
+ info: components["schemas"]["PageInfoSchema"];
53089
+ /** Results */
53090
+ results: components["schemas"]["SalesByCustomerSchema"][];
53091
+ totals?: components["schemas"]["SalesTotalsSchema"] | null;
53092
+ };
53093
+ /**
53094
+ * SalesByCustomerSchema
53095
+ * @description Sales analysis per customer
53096
+ */
53097
+ SalesByCustomerSchema: {
53098
+ customer: components["schemas"]["CustomerSummarySchema"];
53099
+ /** Totalinvoices */
53100
+ totalInvoices: number;
53101
+ /** Quantitysold */
53102
+ quantitySold: number;
53103
+ grossSalesAmount: components["schemas"]["CurrencyAmountSchema"];
53104
+ discountAmount: components["schemas"]["CurrencyAmountSchema"];
53105
+ netSalesAmount: components["schemas"]["CurrencyAmountSchema"];
53106
+ taxAmount: components["schemas"]["CurrencyAmountSchema"];
53107
+ totalAmount: components["schemas"]["CurrencyAmountSchema"];
53108
+ cost: components["schemas"]["CurrencyAmountSchema"];
53109
+ grossProfit: components["schemas"]["CurrencyAmountSchema"];
53110
+ /** Profitmargin */
53111
+ profitMargin: number;
53112
+ };
53113
+ /** SalesBySalespersonListSchema */
53114
+ SalesBySalespersonListSchema: {
53115
+ info: components["schemas"]["PageInfoSchema"];
53116
+ /** Results */
53117
+ results: components["schemas"]["SalesBySalespersonSchema"][];
53118
+ totals?: components["schemas"]["SalesTotalsSchema"] | null;
53119
+ };
53120
+ /**
53121
+ * SalesBySalespersonSchema
53122
+ * @description Performance tracking of sales staff
53123
+ */
53124
+ SalesBySalespersonSchema: {
53125
+ salesperson: components["schemas"]["SalespersonSummarySchema"];
53126
+ /** Numberofinvoices */
53127
+ numberOfInvoices: number;
53128
+ /** Quantitysold */
53129
+ quantitySold: number;
53130
+ grossSalesAmount: components["schemas"]["CurrencyAmountSchema"];
53131
+ discountAmount: components["schemas"]["CurrencyAmountSchema"];
53132
+ netSalesAmount: components["schemas"]["CurrencyAmountSchema"];
53133
+ taxAmount: components["schemas"]["CurrencyAmountSchema"];
53134
+ totalAmount: components["schemas"]["CurrencyAmountSchema"];
53135
+ cost: components["schemas"]["CurrencyAmountSchema"];
53136
+ grossProfit: components["schemas"]["CurrencyAmountSchema"];
53137
+ /** Profitmargin */
53138
+ profitMargin: number;
53139
+ averageInvoiceValue: components["schemas"]["CurrencyAmountSchema"];
53140
+ };
53141
+ /** SalespersonSummarySchema */
53142
+ SalespersonSummarySchema: {
53143
+ /**
53144
+ * Id
53145
+ * Format: uuid
53146
+ */
53147
+ id: string;
53148
+ /** Name */
53149
+ name: string;
53150
+ };
53151
+ /** BranchSummarySchema */
53152
+ BranchSummarySchema: {
53153
+ /** Id */
53154
+ id: number;
53155
+ /** Name */
53156
+ name: string;
53157
+ };
53158
+ /** SalesByWarehouseListSchema */
53159
+ SalesByWarehouseListSchema: {
53160
+ info: components["schemas"]["PageInfoSchema"];
53161
+ /** Results */
53162
+ results: components["schemas"]["SalesByWarehouseSchema"][];
53163
+ totals?: components["schemas"]["SalesTotalsSchema"] | null;
53164
+ };
53165
+ /**
53166
+ * SalesByWarehouseSchema
53167
+ * @description Sales per warehouse/branch
53168
+ */
53169
+ SalesByWarehouseSchema: {
53170
+ branch: components["schemas"]["BranchSummarySchema"];
53171
+ warehouse?: components["schemas"]["WarehouseSummarySchema"] | null;
53172
+ /** Quantitysold */
53173
+ quantitySold: number;
53174
+ grossSalesAmount: components["schemas"]["CurrencyAmountSchema"];
53175
+ discountAmount: components["schemas"]["CurrencyAmountSchema"];
53176
+ netSalesAmount: components["schemas"]["CurrencyAmountSchema"];
53177
+ taxAmount: components["schemas"]["CurrencyAmountSchema"];
53178
+ totalAmount: components["schemas"]["CurrencyAmountSchema"];
53179
+ cost: components["schemas"]["CurrencyAmountSchema"];
53180
+ grossProfit: components["schemas"]["CurrencyAmountSchema"];
53181
+ /** Profitmargin */
53182
+ profitMargin: number;
53183
+ };
53184
+ /** WarehouseSummarySchema */
53185
+ WarehouseSummarySchema: {
53186
+ /** Id */
53187
+ id: number;
53188
+ /** Name */
53189
+ name: string;
53190
+ };
53191
+ /**
53192
+ * SalesSummarySchema
53193
+ * @description Overall sales summary and profitability
53194
+ */
53195
+ SalesSummarySchema: {
53196
+ /**
53197
+ * Periodstart
53198
+ * Format: date
53199
+ */
53200
+ periodStart: string;
53201
+ /**
53202
+ * Periodend
53203
+ * Format: date
53204
+ */
53205
+ periodEnd: string;
53206
+ /** Totalinvoices */
53207
+ totalInvoices: number;
53208
+ /** Totalcustomers */
53209
+ totalCustomers: number;
53210
+ /** Totalitemssold */
53211
+ totalItemsSold: number;
53212
+ grossSales: components["schemas"]["CurrencyAmountSchema"];
53213
+ totalDiscounts: components["schemas"]["CurrencyAmountSchema"];
53214
+ netSales: components["schemas"]["CurrencyAmountSchema"];
53215
+ totalTax: components["schemas"]["CurrencyAmountSchema"];
53216
+ totalRevenue: components["schemas"]["CurrencyAmountSchema"];
53217
+ costOfGoodsSold: components["schemas"]["CurrencyAmountSchema"];
53218
+ grossProfit: components["schemas"]["CurrencyAmountSchema"];
53219
+ /** Grossmarginpercentage */
53220
+ grossMarginPercentage: number;
53221
+ averageOrderValue: components["schemas"]["CurrencyAmountSchema"];
53222
+ /** Averageitemsperorder */
53223
+ averageItemsPerOrder: number;
53224
+ };
53225
+ /**
53226
+ * SalesReportGranularity
53227
+ * @enum {string}
53228
+ */
53229
+ SalesReportGranularity: "daily" | "weekly" | "monthly";
53230
+ /**
53231
+ * DailySalesSchema
53232
+ * @description Daily sales data
53233
+ */
53234
+ DailySalesSchema: {
53235
+ /**
53236
+ * Date
53237
+ * Format: date
53238
+ */
53239
+ date: string;
53240
+ salesAmount: components["schemas"]["CurrencyAmountSchema"];
53241
+ /** Invoicecount */
53242
+ invoiceCount: number;
53243
+ /** Quantitysold */
53244
+ quantitySold: number;
53245
+ };
53246
+ /**
53247
+ * MonthlySalesSchema
53248
+ * @description Monthly sales data
53249
+ */
53250
+ MonthlySalesSchema: {
53251
+ /** Year */
53252
+ year: number;
53253
+ /** Month */
53254
+ month: number;
53255
+ /** Monthname */
53256
+ monthName: string;
53257
+ salesAmount: components["schemas"]["CurrencyAmountSchema"];
53258
+ /** Invoicecount */
53259
+ invoiceCount: number;
53260
+ /** Quantitysold */
53261
+ quantitySold: number;
53262
+ /**
53263
+ * Growthpercentage
53264
+ * @description Month-over-month growth
53265
+ */
53266
+ growthPercentage?: number | null;
53267
+ };
53268
+ /**
53269
+ * SalesTrendSchema
53270
+ * @description Sales trend over time
53271
+ */
53272
+ SalesTrendSchema: {
53273
+ /** Daily */
53274
+ daily?: components["schemas"]["DailySalesSchema"][] | null;
53275
+ /** Weekly */
53276
+ weekly?: components["schemas"]["WeeklySalesSchema"][] | null;
53277
+ /** Monthly */
53278
+ monthly?: components["schemas"]["MonthlySalesSchema"][] | null;
53279
+ summary: components["schemas"]["SalesTotalsSchema"];
53280
+ };
53281
+ /**
53282
+ * WeeklySalesSchema
53283
+ * @description Weekly sales data
53284
+ */
53285
+ WeeklySalesSchema: {
53286
+ /** Year */
53287
+ year: number;
53288
+ /** Week */
53289
+ week: number;
53290
+ /**
53291
+ * Weekstart
53292
+ * Format: date
53293
+ */
53294
+ weekStart: string;
53295
+ /**
53296
+ * Weekend
53297
+ * Format: date
53298
+ */
53299
+ weekEnd: string;
53300
+ salesAmount: components["schemas"]["CurrencyAmountSchema"];
53301
+ /** Invoicecount */
53302
+ invoiceCount: number;
53303
+ /** Quantitysold */
53304
+ quantitySold: number;
53305
+ /**
53306
+ * Growthpercentage
53307
+ * @description Week-over-week growth
53308
+ */
53309
+ growthPercentage?: number | null;
53310
+ };
52578
53311
  /** RetrieveStatus */
52579
53312
  RetrieveStatus: {
52580
53313
  /**
@@ -53379,11 +54112,20 @@ export interface components {
53379
54112
  };
53380
54113
  /** UpdateNotificationSetting */
53381
54114
  UpdateNotificationSetting: {
53382
- /** Whatsappenabled */
54115
+ /**
54116
+ * Whatsappenabled
54117
+ * @default false
54118
+ */
53383
54119
  whatsappEnabled: boolean | null;
53384
- /** Emailenabled */
54120
+ /**
54121
+ * Emailenabled
54122
+ * @default false
54123
+ */
53385
54124
  emailEnabled: boolean | null;
53386
- /** Ingaloperenabled */
54125
+ /**
54126
+ * Ingaloperenabled
54127
+ * @default false
54128
+ */
53387
54129
  inGaloperEnabled: boolean | null;
53388
54130
  };
53389
54131
  /** NotificationSettingList */
@@ -53392,17 +54134,6 @@ export interface components {
53392
54134
  /** Results */
53393
54135
  results: components["schemas"]["RetrieveNotificationSetting"][];
53394
54136
  };
53395
- /** CreateNotificationSetting */
53396
- CreateNotificationSetting: {
53397
- notificationType: components["schemas"]["NotificationType"];
53398
- /** Whatsappenabled */
53399
- whatsappEnabled: boolean | null;
53400
- /** Emailenabled */
53401
- emailEnabled: boolean | null;
53402
- /** Ingaloperenabled */
53403
- inGaloperEnabled: boolean | null;
53404
- documentContentType: components["schemas"]["CombinedModelName"];
53405
- };
53406
54137
  /** NotificationsList */
53407
54138
  NotificationsList: {
53408
54139
  info: components["schemas"]["PageInfoSchema"];
@@ -92979,6 +93710,394 @@ export interface operations {
92979
93710
  };
92980
93711
  };
92981
93712
  };
93713
+ reports_salesreport_views_get_sales_by_item_report: {
93714
+ parameters: {
93715
+ query?: {
93716
+ periodType?: "today" | "yesterday" | "thisWeek" | "lastWeek" | "thisMonth" | "lastMonth" | "thisQuarter" | "lastQuarter" | "thisYear" | "lastYear" | "custom";
93717
+ /** @description Start date (YYYY-MM-DD) for custom period */
93718
+ startDate?: string | null;
93719
+ /** @description End date (YYYY-MM-DD) for custom period */
93720
+ endDate?: string | null;
93721
+ /** @description Data sources: salesInvoice, posInvoice, onlineOrder (empty for all) */
93722
+ sources?: components["schemas"]["SalesReportSourceType"][] | null;
93723
+ branchesIds?: number[] | null;
93724
+ warehousesIds?: number[] | null;
93725
+ categoriesIds?: number[] | null;
93726
+ brandsIds?: number[] | null;
93727
+ familiesIds?: number[] | null;
93728
+ itemsIds?: number[] | null;
93729
+ };
93730
+ header?: never;
93731
+ path?: never;
93732
+ cookie?: never;
93733
+ };
93734
+ requestBody?: never;
93735
+ responses: {
93736
+ /** @description OK */
93737
+ 200: {
93738
+ headers: {
93739
+ [name: string]: unknown;
93740
+ };
93741
+ content: {
93742
+ "application/json": components["schemas"]["SalesByItemListSchema"];
93743
+ };
93744
+ };
93745
+ /** @description Bad Request */
93746
+ 400: {
93747
+ headers: {
93748
+ [name: string]: unknown;
93749
+ };
93750
+ content: {
93751
+ "application/json": components["schemas"]["ErrorMessages"];
93752
+ };
93753
+ };
93754
+ /** @description Forbidden */
93755
+ 403: {
93756
+ headers: {
93757
+ [name: string]: unknown;
93758
+ };
93759
+ content: {
93760
+ "application/json": components["schemas"]["MessageResponse"];
93761
+ };
93762
+ };
93763
+ };
93764
+ };
93765
+ reports_salesreport_views_get_sales_by_category_report: {
93766
+ parameters: {
93767
+ query?: {
93768
+ periodType?: "today" | "yesterday" | "thisWeek" | "lastWeek" | "thisMonth" | "lastMonth" | "thisQuarter" | "lastQuarter" | "thisYear" | "lastYear" | "custom";
93769
+ /** @description Start date (YYYY-MM-DD) for custom period */
93770
+ startDate?: string | null;
93771
+ /** @description End date (YYYY-MM-DD) for custom period */
93772
+ endDate?: string | null;
93773
+ /** @description Data sources: salesInvoice, posInvoice, onlineOrder (empty for all) */
93774
+ sources?: components["schemas"]["SalesReportSourceType"][] | null;
93775
+ branchesIds?: number[] | null;
93776
+ warehousesIds?: number[] | null;
93777
+ categoriesIds?: number[] | null;
93778
+ };
93779
+ header?: never;
93780
+ path?: never;
93781
+ cookie?: never;
93782
+ };
93783
+ requestBody?: never;
93784
+ responses: {
93785
+ /** @description OK */
93786
+ 200: {
93787
+ headers: {
93788
+ [name: string]: unknown;
93789
+ };
93790
+ content: {
93791
+ "application/json": components["schemas"]["SalesByCategoryListSchema"];
93792
+ };
93793
+ };
93794
+ /** @description Bad Request */
93795
+ 400: {
93796
+ headers: {
93797
+ [name: string]: unknown;
93798
+ };
93799
+ content: {
93800
+ "application/json": components["schemas"]["ErrorMessages"];
93801
+ };
93802
+ };
93803
+ /** @description Forbidden */
93804
+ 403: {
93805
+ headers: {
93806
+ [name: string]: unknown;
93807
+ };
93808
+ content: {
93809
+ "application/json": components["schemas"]["MessageResponse"];
93810
+ };
93811
+ };
93812
+ };
93813
+ };
93814
+ reports_salesreport_views_get_sales_by_brand_report: {
93815
+ parameters: {
93816
+ query?: {
93817
+ periodType?: "today" | "yesterday" | "thisWeek" | "lastWeek" | "thisMonth" | "lastMonth" | "thisQuarter" | "lastQuarter" | "thisYear" | "lastYear" | "custom";
93818
+ /** @description Start date (YYYY-MM-DD) for custom period */
93819
+ startDate?: string | null;
93820
+ /** @description End date (YYYY-MM-DD) for custom period */
93821
+ endDate?: string | null;
93822
+ /** @description Data sources: salesInvoice, posInvoice, onlineOrder (empty for all) */
93823
+ sources?: components["schemas"]["SalesReportSourceType"][] | null;
93824
+ branchesIds?: number[] | null;
93825
+ warehousesIds?: number[] | null;
93826
+ brandsIds?: number[] | null;
93827
+ };
93828
+ header?: never;
93829
+ path?: never;
93830
+ cookie?: never;
93831
+ };
93832
+ requestBody?: never;
93833
+ responses: {
93834
+ /** @description OK */
93835
+ 200: {
93836
+ headers: {
93837
+ [name: string]: unknown;
93838
+ };
93839
+ content: {
93840
+ "application/json": components["schemas"]["SalesByBrandListSchema"];
93841
+ };
93842
+ };
93843
+ /** @description Bad Request */
93844
+ 400: {
93845
+ headers: {
93846
+ [name: string]: unknown;
93847
+ };
93848
+ content: {
93849
+ "application/json": components["schemas"]["ErrorMessages"];
93850
+ };
93851
+ };
93852
+ /** @description Forbidden */
93853
+ 403: {
93854
+ headers: {
93855
+ [name: string]: unknown;
93856
+ };
93857
+ content: {
93858
+ "application/json": components["schemas"]["MessageResponse"];
93859
+ };
93860
+ };
93861
+ };
93862
+ };
93863
+ reports_salesreport_views_get_sales_by_customer_report: {
93864
+ parameters: {
93865
+ query?: {
93866
+ periodType?: "today" | "yesterday" | "thisWeek" | "lastWeek" | "thisMonth" | "lastMonth" | "thisQuarter" | "lastQuarter" | "thisYear" | "lastYear" | "custom";
93867
+ /** @description Start date (YYYY-MM-DD) for custom period */
93868
+ startDate?: string | null;
93869
+ /** @description End date (YYYY-MM-DD) for custom period */
93870
+ endDate?: string | null;
93871
+ /** @description Data sources: salesInvoice, posInvoice, onlineOrder (empty for all) */
93872
+ sources?: components["schemas"]["SalesReportSourceType"][] | null;
93873
+ branchesIds?: number[] | null;
93874
+ customersIds?: number[] | null;
93875
+ };
93876
+ header?: never;
93877
+ path?: never;
93878
+ cookie?: never;
93879
+ };
93880
+ requestBody?: never;
93881
+ responses: {
93882
+ /** @description OK */
93883
+ 200: {
93884
+ headers: {
93885
+ [name: string]: unknown;
93886
+ };
93887
+ content: {
93888
+ "application/json": components["schemas"]["SalesByCustomerListSchema"];
93889
+ };
93890
+ };
93891
+ /** @description Bad Request */
93892
+ 400: {
93893
+ headers: {
93894
+ [name: string]: unknown;
93895
+ };
93896
+ content: {
93897
+ "application/json": components["schemas"]["ErrorMessages"];
93898
+ };
93899
+ };
93900
+ /** @description Forbidden */
93901
+ 403: {
93902
+ headers: {
93903
+ [name: string]: unknown;
93904
+ };
93905
+ content: {
93906
+ "application/json": components["schemas"]["MessageResponse"];
93907
+ };
93908
+ };
93909
+ };
93910
+ };
93911
+ reports_salesreport_views_get_sales_by_salesperson_report: {
93912
+ parameters: {
93913
+ query?: {
93914
+ periodType?: "today" | "yesterday" | "thisWeek" | "lastWeek" | "thisMonth" | "lastMonth" | "thisQuarter" | "lastQuarter" | "thisYear" | "lastYear" | "custom";
93915
+ /** @description Start date (YYYY-MM-DD) for custom period */
93916
+ startDate?: string | null;
93917
+ /** @description End date (YYYY-MM-DD) for custom period */
93918
+ endDate?: string | null;
93919
+ branchesIds?: number[] | null;
93920
+ salespersonsIds?: string[] | null;
93921
+ };
93922
+ header?: never;
93923
+ path?: never;
93924
+ cookie?: never;
93925
+ };
93926
+ requestBody?: never;
93927
+ responses: {
93928
+ /** @description OK */
93929
+ 200: {
93930
+ headers: {
93931
+ [name: string]: unknown;
93932
+ };
93933
+ content: {
93934
+ "application/json": components["schemas"]["SalesBySalespersonListSchema"];
93935
+ };
93936
+ };
93937
+ /** @description Bad Request */
93938
+ 400: {
93939
+ headers: {
93940
+ [name: string]: unknown;
93941
+ };
93942
+ content: {
93943
+ "application/json": components["schemas"]["ErrorMessages"];
93944
+ };
93945
+ };
93946
+ /** @description Forbidden */
93947
+ 403: {
93948
+ headers: {
93949
+ [name: string]: unknown;
93950
+ };
93951
+ content: {
93952
+ "application/json": components["schemas"]["MessageResponse"];
93953
+ };
93954
+ };
93955
+ };
93956
+ };
93957
+ reports_salesreport_views_get_sales_by_warehouse_report: {
93958
+ parameters: {
93959
+ query?: {
93960
+ periodType?: "today" | "yesterday" | "thisWeek" | "lastWeek" | "thisMonth" | "lastMonth" | "thisQuarter" | "lastQuarter" | "thisYear" | "lastYear" | "custom";
93961
+ /** @description Start date (YYYY-MM-DD) for custom period */
93962
+ startDate?: string | null;
93963
+ /** @description End date (YYYY-MM-DD) for custom period */
93964
+ endDate?: string | null;
93965
+ /** @description Data sources: salesInvoice, posInvoice, onlineOrder (empty for all) */
93966
+ sources?: components["schemas"]["SalesReportSourceType"][] | null;
93967
+ branchesIds?: number[] | null;
93968
+ warehousesIds?: number[] | null;
93969
+ };
93970
+ header?: never;
93971
+ path?: never;
93972
+ cookie?: never;
93973
+ };
93974
+ requestBody?: never;
93975
+ responses: {
93976
+ /** @description OK */
93977
+ 200: {
93978
+ headers: {
93979
+ [name: string]: unknown;
93980
+ };
93981
+ content: {
93982
+ "application/json": components["schemas"]["SalesByWarehouseListSchema"];
93983
+ };
93984
+ };
93985
+ /** @description Bad Request */
93986
+ 400: {
93987
+ headers: {
93988
+ [name: string]: unknown;
93989
+ };
93990
+ content: {
93991
+ "application/json": components["schemas"]["ErrorMessages"];
93992
+ };
93993
+ };
93994
+ /** @description Forbidden */
93995
+ 403: {
93996
+ headers: {
93997
+ [name: string]: unknown;
93998
+ };
93999
+ content: {
94000
+ "application/json": components["schemas"]["MessageResponse"];
94001
+ };
94002
+ };
94003
+ };
94004
+ };
94005
+ reports_salesreport_views_get_sales_summary_report: {
94006
+ parameters: {
94007
+ query?: {
94008
+ periodType?: "today" | "yesterday" | "thisWeek" | "lastWeek" | "thisMonth" | "lastMonth" | "thisQuarter" | "lastQuarter" | "thisYear" | "lastYear" | "custom";
94009
+ /** @description Start date (YYYY-MM-DD) for custom period */
94010
+ startDate?: string | null;
94011
+ /** @description End date (YYYY-MM-DD) for custom period */
94012
+ endDate?: string | null;
94013
+ /** @description Data sources: salesInvoice, posInvoice, onlineOrder (empty for all) */
94014
+ sources?: components["schemas"]["SalesReportSourceType"][] | null;
94015
+ branchesIds?: number[] | null;
94016
+ };
94017
+ header?: never;
94018
+ path?: never;
94019
+ cookie?: never;
94020
+ };
94021
+ requestBody?: never;
94022
+ responses: {
94023
+ /** @description OK */
94024
+ 200: {
94025
+ headers: {
94026
+ [name: string]: unknown;
94027
+ };
94028
+ content: {
94029
+ "application/json": components["schemas"]["SalesSummarySchema"];
94030
+ };
94031
+ };
94032
+ /** @description Bad Request */
94033
+ 400: {
94034
+ headers: {
94035
+ [name: string]: unknown;
94036
+ };
94037
+ content: {
94038
+ "application/json": components["schemas"]["ErrorMessages"];
94039
+ };
94040
+ };
94041
+ /** @description Forbidden */
94042
+ 403: {
94043
+ headers: {
94044
+ [name: string]: unknown;
94045
+ };
94046
+ content: {
94047
+ "application/json": components["schemas"]["MessageResponse"];
94048
+ };
94049
+ };
94050
+ };
94051
+ };
94052
+ reports_salesreport_views_get_sales_trend_report: {
94053
+ parameters: {
94054
+ query?: {
94055
+ /** @description Time granularity: daily, weekly, or monthly */
94056
+ granularity?: "daily" | "weekly" | "monthly";
94057
+ periodType?: "today" | "yesterday" | "thisWeek" | "lastWeek" | "thisMonth" | "lastMonth" | "thisQuarter" | "lastQuarter" | "thisYear" | "lastYear" | "custom";
94058
+ /** @description Start date (YYYY-MM-DD) for custom period */
94059
+ startDate?: string | null;
94060
+ /** @description End date (YYYY-MM-DD) for custom period */
94061
+ endDate?: string | null;
94062
+ /** @description Data sources: salesInvoice, posInvoice, onlineOrder (empty for all) */
94063
+ sources?: components["schemas"]["SalesReportSourceType"][] | null;
94064
+ branchesIds?: number[] | null;
94065
+ };
94066
+ header?: never;
94067
+ path?: never;
94068
+ cookie?: never;
94069
+ };
94070
+ requestBody?: never;
94071
+ responses: {
94072
+ /** @description OK */
94073
+ 200: {
94074
+ headers: {
94075
+ [name: string]: unknown;
94076
+ };
94077
+ content: {
94078
+ "application/json": components["schemas"]["SalesTrendSchema"];
94079
+ };
94080
+ };
94081
+ /** @description Bad Request */
94082
+ 400: {
94083
+ headers: {
94084
+ [name: string]: unknown;
94085
+ };
94086
+ content: {
94087
+ "application/json": components["schemas"]["ErrorMessages"];
94088
+ };
94089
+ };
94090
+ /** @description Forbidden */
94091
+ 403: {
94092
+ headers: {
94093
+ [name: string]: unknown;
94094
+ };
94095
+ content: {
94096
+ "application/json": components["schemas"]["MessageResponse"];
94097
+ };
94098
+ };
94099
+ };
94100
+ };
92982
94101
  task_views_list_status_by_order: {
92983
94102
  parameters: {
92984
94103
  query?: {
@@ -95705,75 +96824,6 @@ export interface operations {
95705
96824
  };
95706
96825
  };
95707
96826
  };
95708
- erp_settings_notificationsettings_views_create_notification_setting: {
95709
- parameters: {
95710
- query?: never;
95711
- header?: never;
95712
- path?: never;
95713
- cookie?: never;
95714
- };
95715
- requestBody: {
95716
- content: {
95717
- "application/json": components["schemas"]["CreateNotificationSetting"];
95718
- };
95719
- };
95720
- responses: {
95721
- /** @description Created */
95722
- 201: {
95723
- headers: {
95724
- [name: string]: unknown;
95725
- };
95726
- content: {
95727
- "application/json": components["schemas"]["RetrieveNotificationSetting"];
95728
- };
95729
- };
95730
- /** @description Bad Request */
95731
- 400: {
95732
- headers: {
95733
- [name: string]: unknown;
95734
- };
95735
- content: {
95736
- "application/json": components["schemas"]["ErrorMessages"];
95737
- };
95738
- };
95739
- /** @description Forbidden */
95740
- 403: {
95741
- headers: {
95742
- [name: string]: unknown;
95743
- };
95744
- content: {
95745
- "application/json": components["schemas"]["MessageResponse"];
95746
- };
95747
- };
95748
- /** @description Not Found */
95749
- 404: {
95750
- headers: {
95751
- [name: string]: unknown;
95752
- };
95753
- content: {
95754
- "application/json": components["schemas"]["MessageResponse"];
95755
- };
95756
- };
95757
- /** @description Conflict */
95758
- 409: {
95759
- headers: {
95760
- [name: string]: unknown;
95761
- };
95762
- content: {
95763
- "application/json": components["schemas"]["MessageResponse"];
95764
- };
95765
- };
95766
- /** @description Internal Server Error */
95767
- 500: {
95768
- headers: {
95769
- [name: string]: unknown;
95770
- };
95771
- content: {
95772
- "application/json": components["schemas"]["MessageResponse"];
95773
- };
95774
- };
95775
- };
95776
- };
95777
96827
  notification_views_notification_stream: {
95778
96828
  parameters: {
95779
96829
  query?: never;
@@ -95813,7 +96863,7 @@ export interface operations {
95813
96863
  notification_views_list_notification: {
95814
96864
  parameters: {
95815
96865
  query?: {
95816
- /** @description Search notification by title, message, or document type */
96866
+ /** @description Search notification by title or message */
95817
96867
  search?: string | null;
95818
96868
  };
95819
96869
  header?: never;