@managesome/eposmatic-toolkit 0.2.237 → 0.2.239

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 (90) hide show
  1. package/lib/constants/ENUMS.d.ts +1 -0
  2. package/lib/constants/ENUMS.js +2 -1
  3. package/lib/constants/REPORT_WEBVIEW.d.ts +28 -0
  4. package/lib/constants/REPORT_WEBVIEW.js +31 -0
  5. package/lib/constants/index.d.ts +1 -0
  6. package/lib/constants/index.js +1 -0
  7. package/lib/helpers/store/cart-actions.js +1 -1
  8. package/lib/helpers/types/index.d.ts +1 -0
  9. package/lib/helpers/types/index.js +1 -0
  10. package/lib/helpers/types/report-webview.d.ts +130 -0
  11. package/lib/helpers/utils/receipt-engine.js +1 -1
  12. package/lib/schemas/models/tenant.d.ts +3 -0
  13. package/lib/schemas/models/tenant.js +5 -0
  14. package/package.json +1 -1
  15. package/lib/helpers/store/warehouse-cart-actions.d.ts +0 -54
  16. package/lib/helpers/store/warehouse-cart-actions.js +0 -486
  17. package/lib/helpers/store/warehouse-catalog-actions.d.ts +0 -4
  18. package/lib/helpers/store/warehouse-catalog-actions.js +0 -46
  19. package/lib/helpers/types/printer-settings.d.ts +0 -11
  20. package/lib/helpers/types/printer-settings.js +0 -3
  21. package/lib/helpers/types/usable-offers.d.ts +0 -27
  22. package/lib/helpers/types/warehouse-cart-actions.d.ts +0 -51
  23. package/lib/helpers/types/warehouse-cart-actions.js +0 -2
  24. package/lib/helpers/utils/comparison-report-helpers.d.ts +0 -27
  25. package/lib/helpers/utils/comparison-report-helpers.js +0 -802
  26. package/lib/helpers/utils/comparitive-report-helpers.d.ts +0 -7
  27. package/lib/helpers/utils/comparitive-report-helpers.js +0 -826
  28. package/lib/helpers/utils/short-inventory.d.ts +0 -3
  29. package/lib/helpers/utils/short-inventory.js +0 -26
  30. package/lib/helpers/utils/simplified-warehouse-catalog.d.ts +0 -10
  31. package/lib/helpers/utils/simplified-warehouse-catalog.js +0 -108
  32. package/lib/helpers/utils/stock-details.d.ts +0 -3
  33. package/lib/helpers/utils/stock-details.js +0 -26
  34. package/lib/helpers/utils/stock-wastage.d.ts +0 -3
  35. package/lib/helpers/utils/stock-wastage.js +0 -26
  36. package/lib/helpers/utils/warehouse-order-engine.d.ts +0 -9
  37. package/lib/helpers/utils/warehouse-order-engine.js +0 -34
  38. package/lib/schemas/models/drivers.d.ts +0 -55
  39. package/lib/schemas/models/drivers.js +0 -60
  40. package/lib/schemas/models/internal_expense_details.d.ts +0 -55
  41. package/lib/schemas/models/internal_expense_details.js +0 -63
  42. package/lib/schemas/models/internal_restaurant_details.d.ts +0 -64
  43. package/lib/schemas/models/internal_restaurant_details.js +0 -77
  44. package/lib/schemas/models/platform.d.ts +0 -34
  45. package/lib/schemas/models/platform.js +0 -30
  46. package/lib/schemas/models/short_inventory.d.ts +0 -65
  47. package/lib/schemas/models/short_inventory.js +0 -46
  48. package/lib/schemas/models/stock_consumption.d.ts +0 -77
  49. package/lib/schemas/models/stock_consumption.js +0 -64
  50. package/lib/schemas/models/stock_entry.d.ts +0 -65
  51. package/lib/schemas/models/stock_entry.js +0 -46
  52. package/lib/schemas/models/stock_wastage.d.ts +0 -71
  53. package/lib/schemas/models/stock_wastage.js +0 -54
  54. package/lib/schemas/models/tenant_shift_sessions.d.ts +0 -146
  55. package/lib/schemas/models/tenant_shift_sessions.js +0 -125
  56. package/lib/schemas/models/warehouse_settings.d.ts +0 -40
  57. package/lib/schemas/models/warehouse_settings.js +0 -40
  58. package/lib/schemas/types/drivers.d.ts +0 -13
  59. package/lib/schemas/types/drivers.js +0 -2
  60. package/lib/schemas/types/internal_expense_details.d.ts +0 -14
  61. package/lib/schemas/types/internal_expense_details.js +0 -2
  62. package/lib/schemas/types/internal_restaurant_details.d.ts +0 -17
  63. package/lib/schemas/types/internal_restaurant_details.js +0 -2
  64. package/lib/schemas/types/marketing.d.ts +0 -10
  65. package/lib/schemas/types/marketing.js +0 -2
  66. package/lib/schemas/types/platform.d.ts +0 -6
  67. package/lib/schemas/types/platform.js +0 -2
  68. package/lib/schemas/types/pos_days.d.ts +0 -29
  69. package/lib/schemas/types/pos_days.js +0 -2
  70. package/lib/schemas/types/pos_shifts.d.ts +0 -33
  71. package/lib/schemas/types/pos_shifts.js +0 -2
  72. package/lib/schemas/types/short_inventory.d.ts +0 -9
  73. package/lib/schemas/types/short_inventory.js +0 -2
  74. package/lib/schemas/types/split_bill.d.ts +0 -18
  75. package/lib/schemas/types/split_bill.js +0 -2
  76. package/lib/schemas/types/stock_consumption.d.ts +0 -13
  77. package/lib/schemas/types/stock_consumption.js +0 -2
  78. package/lib/schemas/types/stock_entry.d.ts +0 -9
  79. package/lib/schemas/types/stock_entry.js +0 -2
  80. package/lib/schemas/types/stock_wastage.d.ts +0 -11
  81. package/lib/schemas/types/stock_wastage.js +0 -2
  82. package/lib/schemas/types/tenant_shift_sessions.d.ts +0 -33
  83. package/lib/schemas/types/tenant_shift_sessions.js +0 -2
  84. package/lib/schemas/types/third_party_payments.d.ts +0 -41
  85. package/lib/schemas/types/third_party_payments.js +0 -2
  86. package/lib/schemas/types/used_ingredients.d.ts +0 -8
  87. package/lib/schemas/types/used_ingredients.js +0 -2
  88. package/lib/schemas/types/warehouse_settings.d.ts +0 -8
  89. package/lib/schemas/types/warehouse_settings.js +0 -2
  90. /package/lib/helpers/types/{usable-offers.js → report-webview.js} +0 -0
@@ -1046,3 +1046,4 @@ export declare enum RECEIPT_QR_CODE_TYPE_ENUM {
1046
1046
  TIKTOK_FOLLOW = "TIKTOK_FOLLOW",
1047
1047
  TWITTER_FOLLOW = "TWITTER_FOLLOW"
1048
1048
  }
1049
+ export declare const ALL_RECEIPT_QR_CODE_TYPES: RECEIPT_QR_CODE_TYPE_ENUM[];
@@ -4,7 +4,7 @@ exports.ALL_CATEGORY_DISPLAY_TYPES = exports.CATEGORY_DISPLAY_TYPE_ENUM = export
4
4
  exports.PRINTING_PREFERENCE_ENUM = exports.ALL_PRINTER_BRAND_TYPES = exports.PRINTER_BRAND_TYPE_ENUM = exports.ALL_ORDER_ITEM_TYPES = exports.ORDER_ITEM_TYPE_ENUM = exports.ALL_PLATFORM_PROVIDER_IDS = exports.PLATFORM_PROVIDER_IDS_ENUM = exports.ALL_MARKETING_RECEIPIENT_TYPES = exports.MARKETING_RECEIPIENT_ENUM = exports.ALL_MARKETING_TYPES = exports.MARKETING_TYPE_ENUM = exports.ALL_TOKEN_TYPES = exports.TOKEN_TYPE_ENUM = exports.ALL_EMAIL_PROCESSING_PROVIDERS = exports.EMAIL_PROCESSING_PROVIDERS_ENUM = exports.ALL_SMS_PROCESSING_PROVIDERS = exports.SMS_PROCESSING_PROVIDERS_ENUM = exports.ALL_TERMINAL_TYPES = exports.TERMINAL_TYPE_ENUM = exports.ALL_TERMINAL_PROCESSING_PROVIDERS = exports.TERMINAL_PROCESSING_PROVIDERS_ENUM = exports.TRANSACTION_TYPE_ENUM = exports.ALL_CARD_PROCESSING_PROVIDERS = exports.CARD_PROCESSING_PROVIDERS_ENUM = exports.ALL_PAYMENT_PROVIDERS = exports.PAYMENT_PROVIDERS_ENUM = exports.ALL_SUPPORT_SPECIALIST_PERMISSIONS = exports.ALL_MODERATOR_PERMISSIONS = exports.ALL_USER_PERMISSIONS = exports.USER_PERMISSIONS_ENUM = exports.ALL_OFFER_TYPES = exports.OFFER_TYPE_ENUM = exports.ALL_OFFER_USE_TYPES = exports.OFFER_USE_TYPE_ENUM = exports.ALL_OFFER_CODE_USAGE_TYPES = exports.OFFER_CODE_USAGE_TYPE_ENUM = exports.ALL_PATHWAY_TO_UNLOCK_TYPES = exports.PATHWAY_TO_UNLOCK_TYPE_ENUM = exports.ALL_OFFER_REWARD_TYPES = exports.OFFER_REWARD_TYPE_ENUM = exports.ALL_USER_ROLES = exports.USER_ROLES_ENUM = exports.ALL_PLATFORM_TYPES = exports.PLATFORM_TYPE_ENUM = exports.ALL_ORDER_NUMBER_GROUPING_TYPES = exports.ORDER_NUMBER_GROUPING_TYPE_ENUM = exports.ALL_TRACK_ORDER_NUMBER_TYPES = exports.TRACK_ORDER_NUMBER_ENUM = exports.ALL_TABLE_TYPES = exports.TABLE_TYPE_ENUM = void 0;
5
5
  exports.ALL_MULTI_TENANT_WEBSITE_TYPES = exports.MULTI_TENANT_WEBSITE_TYPE_ENUM = exports.ALL_TIME_RANGE_ENUMS = exports.TIME_RANGE_ENUM = exports.ALL_ITEM_TRANSACTION_TYPES = exports.ITEM_TRANSACTION_TYPE_ENUM = exports.INVENTORY_OUTBOUND_TRANSACTIONS = exports.INVENTORY_INBOUND_TRANSACTIONS = exports.ALL_INVENTORY_TRANSACTION_CATEGORIES = exports.INVENTORY_TRANSACTION_CATEGORY_ENUM = exports.ALL_INVENTORY_TRANSACTION_TYPES = exports.INVENTORY_TRANSACTION_TYPE_ENUM = exports.ALL_GST_TYPES = exports.GST_TYPE_ENUM = exports.ALL_EXPENSE_REACCURING_TYPES = exports.EXPENSE_REACCURING_TYPE_ENUM = exports.PAYMENT_EXTENSION_ENUM = exports.ALL_PRINTER_INTERFACES = exports.PRINTER_INTERFACE_ENUM = exports.RECEIPT_WIDTHS = exports.ALL_NUM_OF_COLUMNS = exports.NUM_OF_COLUMNS_ENUM = exports.SPLIT_SYNC_SOURCE_ENUM = exports.ALL_SPLIT_BILL_TYPES = exports.SPLIT_BILL_TYPE_ENUM = exports.ALL_RIDER_FEE_TYPES = exports.RIDER_FEE_TYPE_ENUM = exports.ALL_DELIVERY_AREAS_SEARCH_TYPES = exports.DELIVERY_AREAS_SEARCH_TYPE_ENUM = exports.ALL_WEB_AUTH_TYPES = exports.WEB_AUTH_TYPE_ENUM = exports.KITCHEN_RECEIPT_TYPE_ENUM = exports.PRINTER_EVENT_TYPE_ENUM = exports.SORT_TYPE_ENUM = exports.BLACKLISTED_SMS_COUNTRY_CODES = exports.ALL_OTP_TYPES = exports.OTP_TYPE_ENUM = exports.ALL_TAX_INVOICE_PROVIDERS = exports.TAX_INVOICE_PROVIDER_ENUM = exports.ALL_RESERVATION_STATUS_TYPES = exports.RESERVATION_STATUS_ENUM = exports.TENANT_AMOUNT_DUE_TYPE_ENUM = exports.ALL_KITCHEN_DOCKET_FONT_TYPES = exports.KITCHEN_DOCKET_FONT_TYPE_ENUM = exports.ALL_SORT_ORDER_BY_TYPES = exports.SORT_ORDER_BY_ENUM = exports.RECEIPT_IMAGE_TYPE_ENUM = exports.ALL_RECEIPT_TYPES = exports.RECEIPT_TYPE_ENUM = exports.ALL_PRINTING_PREFERENCES = void 0;
6
6
  exports.ALL_CASH_IN_OUT_TYPES = exports.CASH_IN_OUT_TYPE_ENUM = exports.ALL_POS_SHIFT_STATUS = exports.POS_SHIFT_STATUS_ENUM = exports.ALL_POS_DAY_STATUS = exports.POS_DAY_STATUS_ENUM = exports.ALL_MODIFIER_OPTION_REF_TYPES = exports.MODIFIER_OPTION_REF_TYPE_ENUM = exports.ALL_WAREHOUSE_CLIENT_TYPES = exports.WAREHOUSE_CLIENT_TYPE_ENUM = exports.ALL_ONLINE_ORDERING_DESIGN_TYPES = exports.ONLINE_ORDERING_DESIGN_TYPE_ENUM = exports.ALL_NOTIFICATION_PROVIDERS = exports.NOTIFICATION_PROVIDER_ENUM = exports.ALL_ORDER_COMPLETION_TYPES = exports.ORDER_COMPLETION_TYPE_ENUM = exports.ITEM_COMPARISON_FIELD_ENUM = exports.VOID_ITEM_STAFF_REPORT_ENUM = exports.ALL_DISCOUNT_APPLICABILITY_TYPES = exports.DISCOUNT_APPLICABILITY_ENUM = exports.ALL_DISCOUNT_TYPES = exports.DISCOUNT_TYPE_ENUM = exports.EMAIL_TEMPLATES_TYPE_ENUM = exports.ALL_ALERT_NOTIFICATIONS_TYPES = exports.ALERT_NOTIFICATIONS_TYPE_ENUM = exports.ALL_WALLET_TRANSACTION_STATUS = exports.WALLET_TRANSACTION_STATUS_ENUM = exports.ALL_WALLET_TRANSACTION_CATEGORIES = exports.WALLET_TRANSACTION_CATEGORY_ENUM = exports.ALL_WALLET_TRANSACTION_TYPES = exports.WALLET_TRANSACTION_TYPE_ENUM = exports.ALL_WAREHOUSE_SUPPORT_SPECIALIST_PERMISSIONS = exports.ALL_WAREHOUSE_MODERATOR_PERMISSIONS = exports.ALL_WAREHOUSE_USER_PERMISSIONS = exports.WAREHOUSE_USER_PERMISSIONS_ENUM = exports.ALL_WAREHOUSE_INVOICE_STATUS_NAMES = exports.WAREHOUSE_INVOICE_STATUS_ENUM = exports.ALL_PURCHASE_ORDER_STATUS_NAMES = exports.PURCHASE_ORDER_STATUS_ENUM = exports.ALL_DELIVERY_STATUS = exports.DELIVERY_STATUS_ENUM = exports.ALL_INVENTORY_ITEM_TYPES = exports.INVENTORY_ITEM_TYPE_ENUM = exports.ALL_RATING_TYPES = exports.RATING_TYPE_ENUM = exports.ALL_SUBSCRIPTION_STATUS = exports.SUBSCRIPTION_STATUS_ENUM = exports.ALL_VOID_ORDER_ITEM_TYPES = exports.VOID_ORDER_ITEM_TYPE_ENUM = exports.COMPARISON_REPORT_TYPE_ENUM = void 0;
7
- exports.RECEIPT_QR_CODE_TYPE_ENUM = exports.ALL_INTERNAL_LEAD_STATUS = exports.INTERNAL_LEAD_STATUS_ENUM = exports.ALL_INTERNAL_LEAD_SOURCES = exports.INTERNAL_LEAD_SOURCE_ENUM = exports.ALL_CASH_DRAWER_STATUS = exports.CASH_DRAWER_STATUS_ENUM = exports.ALL_CASH_IN_HAND_TRANSACTION_CATEGORIES = exports.CASH_IN_HAND_TRANSACTION_CATEGORY_ENUM = exports.ALL_CASH_IN_HAND_TRANSACTION_TYPES = exports.CASH_IN_HAND_TRANSACTION_TYPE_ENUM = void 0;
7
+ exports.ALL_RECEIPT_QR_CODE_TYPES = exports.RECEIPT_QR_CODE_TYPE_ENUM = exports.ALL_INTERNAL_LEAD_STATUS = exports.INTERNAL_LEAD_STATUS_ENUM = exports.ALL_INTERNAL_LEAD_SOURCES = exports.INTERNAL_LEAD_SOURCE_ENUM = exports.ALL_CASH_DRAWER_STATUS = exports.CASH_DRAWER_STATUS_ENUM = exports.ALL_CASH_IN_HAND_TRANSACTION_CATEGORIES = exports.CASH_IN_HAND_TRANSACTION_CATEGORY_ENUM = exports.ALL_CASH_IN_HAND_TRANSACTION_TYPES = exports.CASH_IN_HAND_TRANSACTION_TYPE_ENUM = void 0;
8
8
  var ORDER_FROM_ENUM;
9
9
  (function (ORDER_FROM_ENUM) {
10
10
  ORDER_FROM_ENUM["WEB"] = "WEB";
@@ -1743,3 +1743,4 @@ var RECEIPT_QR_CODE_TYPE_ENUM;
1743
1743
  RECEIPT_QR_CODE_TYPE_ENUM["TIKTOK_FOLLOW"] = "TIKTOK_FOLLOW";
1744
1744
  RECEIPT_QR_CODE_TYPE_ENUM["TWITTER_FOLLOW"] = "TWITTER_FOLLOW";
1745
1745
  })(RECEIPT_QR_CODE_TYPE_ENUM || (exports.RECEIPT_QR_CODE_TYPE_ENUM = RECEIPT_QR_CODE_TYPE_ENUM = {}));
1746
+ exports.ALL_RECEIPT_QR_CODE_TYPES = Object.values(RECEIPT_QR_CODE_TYPE_ENUM);
@@ -0,0 +1,28 @@
1
+ export declare const WEBVIEW_RA_GET_REPORT_OVERVIEW_RECEIPT = "WEBVIEW_RA_GET_REPORT_OVERVIEW_RECEIPT";
2
+ export declare const WEBVIEW_RA_GET_REPORT_OVERVIEW_PDF = "WEBVIEW_RA_GET_REPORT_OVERVIEW_PDF";
3
+ export declare const WEBVIEW_RA_GET_REPORT_OVERVIEW_IMAGE = "WEBVIEW_RA_GET_REPORT_OVERVIEW_IMAGE";
4
+ export declare const WEBVIEW_RA_GET_REPORT_OVERVIEW_PRINT = "WEBVIEW_RA_GET_REPORT_OVERVIEW_PRINT";
5
+ export declare const WEBVIEW_RA_GET_REPORT_SUMMARY_RECEIPT = "WEBVIEW_RA_GET_REPORT_SUMMARY_RECEIPT";
6
+ export declare const WEBVIEW_RA_GET_REPORT_SUMMARY_PDF = "WEBVIEW_RA_GET_REPORT_SUMMARY_PDF";
7
+ export declare const WEBVIEW_RA_GET_REPORT_SUMMARY_IMAGE = "WEBVIEW_RA_GET_REPORT_SUMMARY_IMAGE";
8
+ export declare const WEBVIEW_RA_GET_REPORT_SUMMARY_PRINT = "WEBVIEW_RA_GET_REPORT_SUMMARY_PRINT";
9
+ export declare const WEBVIEW_RA_GET_REPORT_VOIDATION_SUMMARY_RECEIPT = "WEBVIEW_RA_GET_REPORT_VOIDATION_SUMMARY_RECEIPT";
10
+ export declare const WEBVIEW_RA_GET_REPORT_VOIDATION_SUMMARY_PDF = "WEBVIEW_RA_GET_REPORT_VOIDATION_SUMMARY_PDF";
11
+ export declare const WEBVIEW_RA_GET_REPORT_VOIDATION_SUMMARY_IMAGE = "WEBVIEW_RA_GET_REPORT_VOIDATION_SUMMARY_IMAGE";
12
+ export declare const WEBVIEW_RA_GET_REPORT_X_REPORT_RECEIPT = "WEBVIEW_RA_GET_REPORT_X_REPORT_RECEIPT";
13
+ export declare const WEBVIEW_RA_GET_REPORT_X_REPORT_PDF = "WEBVIEW_RA_GET_REPORT_X_REPORT_PDF";
14
+ export declare const WEBVIEW_RA_GET_REPORT_X_REPORT_IMAGE = "WEBVIEW_RA_GET_REPORT_X_REPORT_IMAGE";
15
+ export declare const WEBVIEW_RA_GET_REPORT_X_REPORT_CSV = "WEBVIEW_RA_GET_REPORT_X_REPORT_CSV";
16
+ export declare const WEBVIEW_RA_GET_REPORT_X_REPORT_PRINT = "WEBVIEW_RA_GET_REPORT_X_REPORT_PRINT";
17
+ export declare const WEBVIEW_RA_GET_REPORT_RIDER_RECEIPT = "WEBVIEW_RA_GET_REPORT_RIDER_RECEIPT";
18
+ export declare const WEBVIEW_RA_GET_REPORT_RIDER_PDF = "WEBVIEW_RA_GET_REPORT_RIDER_PDF";
19
+ export declare const WEBVIEW_RA_GET_REPORT_RIDER_IMAGE = "WEBVIEW_RA_GET_REPORT_RIDER_IMAGE";
20
+ export declare const WEBVIEW_RA_GET_REPORT_RIDER_CSV = "WEBVIEW_RA_GET_REPORT_RIDER_CSV";
21
+ export declare const WEBVIEW_RA_GET_REPORT_RIDER_PRINT = "WEBVIEW_RA_GET_REPORT_RIDER_PRINT";
22
+ export declare const WEBVIEW_RA_GET_REPORT_ITEMS_SALE_RECEIPT = "WEBVIEW_RA_GET_REPORT_ITEMS_SALE_RECEIPT";
23
+ export declare const WEBVIEW_RA_GET_REPORT_ITEMS_SALE_PDF = "WEBVIEW_RA_GET_REPORT_ITEMS_SALE_PDF";
24
+ export declare const WEBVIEW_RA_GET_REPORT_ITEMS_SALE_IMAGE = "WEBVIEW_RA_GET_REPORT_ITEMS_SALE_IMAGE";
25
+ export declare const WEBVIEW_RA_GET_REPORT_ITEMS_SALE_CSV = "WEBVIEW_RA_GET_REPORT_ITEMS_SALE_CSV";
26
+ export declare const WEBVIEW_RA_GET_REPORT_ITEMS_SALE_PRINT = "WEBVIEW_RA_GET_REPORT_ITEMS_SALE_PRINT";
27
+ export declare const WEBVIEW_RA_GET_REPORT_COSTING_PDF = "WEBVIEW_RA_GET_REPORT_COSTING_PDF";
28
+ export declare const WEBVIEW_RA_GET_REPORT_COSTING_IMAGE = "WEBVIEW_RA_GET_REPORT_COSTING_IMAGE";
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WEBVIEW_RA_GET_REPORT_COSTING_IMAGE = exports.WEBVIEW_RA_GET_REPORT_COSTING_PDF = exports.WEBVIEW_RA_GET_REPORT_ITEMS_SALE_PRINT = exports.WEBVIEW_RA_GET_REPORT_ITEMS_SALE_CSV = exports.WEBVIEW_RA_GET_REPORT_ITEMS_SALE_IMAGE = exports.WEBVIEW_RA_GET_REPORT_ITEMS_SALE_PDF = exports.WEBVIEW_RA_GET_REPORT_ITEMS_SALE_RECEIPT = exports.WEBVIEW_RA_GET_REPORT_RIDER_PRINT = exports.WEBVIEW_RA_GET_REPORT_RIDER_CSV = exports.WEBVIEW_RA_GET_REPORT_RIDER_IMAGE = exports.WEBVIEW_RA_GET_REPORT_RIDER_PDF = exports.WEBVIEW_RA_GET_REPORT_RIDER_RECEIPT = exports.WEBVIEW_RA_GET_REPORT_X_REPORT_PRINT = exports.WEBVIEW_RA_GET_REPORT_X_REPORT_CSV = exports.WEBVIEW_RA_GET_REPORT_X_REPORT_IMAGE = exports.WEBVIEW_RA_GET_REPORT_X_REPORT_PDF = exports.WEBVIEW_RA_GET_REPORT_X_REPORT_RECEIPT = exports.WEBVIEW_RA_GET_REPORT_VOIDATION_SUMMARY_IMAGE = exports.WEBVIEW_RA_GET_REPORT_VOIDATION_SUMMARY_PDF = exports.WEBVIEW_RA_GET_REPORT_VOIDATION_SUMMARY_RECEIPT = exports.WEBVIEW_RA_GET_REPORT_SUMMARY_PRINT = exports.WEBVIEW_RA_GET_REPORT_SUMMARY_IMAGE = exports.WEBVIEW_RA_GET_REPORT_SUMMARY_PDF = exports.WEBVIEW_RA_GET_REPORT_SUMMARY_RECEIPT = exports.WEBVIEW_RA_GET_REPORT_OVERVIEW_PRINT = exports.WEBVIEW_RA_GET_REPORT_OVERVIEW_IMAGE = exports.WEBVIEW_RA_GET_REPORT_OVERVIEW_PDF = exports.WEBVIEW_RA_GET_REPORT_OVERVIEW_RECEIPT = void 0;
4
+ exports.WEBVIEW_RA_GET_REPORT_OVERVIEW_RECEIPT = 'WEBVIEW_RA_GET_REPORT_OVERVIEW_RECEIPT';
5
+ exports.WEBVIEW_RA_GET_REPORT_OVERVIEW_PDF = 'WEBVIEW_RA_GET_REPORT_OVERVIEW_PDF';
6
+ exports.WEBVIEW_RA_GET_REPORT_OVERVIEW_IMAGE = 'WEBVIEW_RA_GET_REPORT_OVERVIEW_IMAGE';
7
+ exports.WEBVIEW_RA_GET_REPORT_OVERVIEW_PRINT = 'WEBVIEW_RA_GET_REPORT_OVERVIEW_PRINT';
8
+ exports.WEBVIEW_RA_GET_REPORT_SUMMARY_RECEIPT = 'WEBVIEW_RA_GET_REPORT_SUMMARY_RECEIPT';
9
+ exports.WEBVIEW_RA_GET_REPORT_SUMMARY_PDF = 'WEBVIEW_RA_GET_REPORT_SUMMARY_PDF';
10
+ exports.WEBVIEW_RA_GET_REPORT_SUMMARY_IMAGE = 'WEBVIEW_RA_GET_REPORT_SUMMARY_IMAGE';
11
+ exports.WEBVIEW_RA_GET_REPORT_SUMMARY_PRINT = 'WEBVIEW_RA_GET_REPORT_SUMMARY_PRINT';
12
+ exports.WEBVIEW_RA_GET_REPORT_VOIDATION_SUMMARY_RECEIPT = 'WEBVIEW_RA_GET_REPORT_VOIDATION_SUMMARY_RECEIPT';
13
+ exports.WEBVIEW_RA_GET_REPORT_VOIDATION_SUMMARY_PDF = 'WEBVIEW_RA_GET_REPORT_VOIDATION_SUMMARY_PDF';
14
+ exports.WEBVIEW_RA_GET_REPORT_VOIDATION_SUMMARY_IMAGE = 'WEBVIEW_RA_GET_REPORT_VOIDATION_SUMMARY_IMAGE';
15
+ exports.WEBVIEW_RA_GET_REPORT_X_REPORT_RECEIPT = 'WEBVIEW_RA_GET_REPORT_X_REPORT_RECEIPT';
16
+ exports.WEBVIEW_RA_GET_REPORT_X_REPORT_PDF = 'WEBVIEW_RA_GET_REPORT_X_REPORT_PDF';
17
+ exports.WEBVIEW_RA_GET_REPORT_X_REPORT_IMAGE = 'WEBVIEW_RA_GET_REPORT_X_REPORT_IMAGE';
18
+ exports.WEBVIEW_RA_GET_REPORT_X_REPORT_CSV = 'WEBVIEW_RA_GET_REPORT_X_REPORT_CSV';
19
+ exports.WEBVIEW_RA_GET_REPORT_X_REPORT_PRINT = 'WEBVIEW_RA_GET_REPORT_X_REPORT_PRINT';
20
+ exports.WEBVIEW_RA_GET_REPORT_RIDER_RECEIPT = 'WEBVIEW_RA_GET_REPORT_RIDER_RECEIPT';
21
+ exports.WEBVIEW_RA_GET_REPORT_RIDER_PDF = 'WEBVIEW_RA_GET_REPORT_RIDER_PDF';
22
+ exports.WEBVIEW_RA_GET_REPORT_RIDER_IMAGE = 'WEBVIEW_RA_GET_REPORT_RIDER_IMAGE';
23
+ exports.WEBVIEW_RA_GET_REPORT_RIDER_CSV = 'WEBVIEW_RA_GET_REPORT_RIDER_CSV';
24
+ exports.WEBVIEW_RA_GET_REPORT_RIDER_PRINT = 'WEBVIEW_RA_GET_REPORT_RIDER_PRINT';
25
+ exports.WEBVIEW_RA_GET_REPORT_ITEMS_SALE_RECEIPT = 'WEBVIEW_RA_GET_REPORT_ITEMS_SALE_RECEIPT';
26
+ exports.WEBVIEW_RA_GET_REPORT_ITEMS_SALE_PDF = 'WEBVIEW_RA_GET_REPORT_ITEMS_SALE_PDF';
27
+ exports.WEBVIEW_RA_GET_REPORT_ITEMS_SALE_IMAGE = 'WEBVIEW_RA_GET_REPORT_ITEMS_SALE_IMAGE';
28
+ exports.WEBVIEW_RA_GET_REPORT_ITEMS_SALE_CSV = 'WEBVIEW_RA_GET_REPORT_ITEMS_SALE_CSV';
29
+ exports.WEBVIEW_RA_GET_REPORT_ITEMS_SALE_PRINT = 'WEBVIEW_RA_GET_REPORT_ITEMS_SALE_PRINT';
30
+ exports.WEBVIEW_RA_GET_REPORT_COSTING_PDF = 'WEBVIEW_RA_GET_REPORT_COSTING_PDF';
31
+ exports.WEBVIEW_RA_GET_REPORT_COSTING_IMAGE = 'WEBVIEW_RA_GET_REPORT_COSTING_IMAGE';
@@ -8,6 +8,7 @@ export * from './NOTIFICATIONS';
8
8
  export * from './ORDER';
9
9
  export * from './PRA_ENUMS';
10
10
  export * from './PURCHASE_ORDER';
11
+ export * from './REPORT_WEBVIEW';
11
12
  export * from './SMARTPAY_ENUMS';
12
13
  export * from './SOCKET';
13
14
  export * from './SRB_ENUMS';
@@ -24,6 +24,7 @@ __exportStar(require("./NOTIFICATIONS"), exports);
24
24
  __exportStar(require("./ORDER"), exports);
25
25
  __exportStar(require("./PRA_ENUMS"), exports);
26
26
  __exportStar(require("./PURCHASE_ORDER"), exports);
27
+ __exportStar(require("./REPORT_WEBVIEW"), exports);
27
28
  __exportStar(require("./SMARTPAY_ENUMS"), exports);
28
29
  __exportStar(require("./SOCKET"), exports);
29
30
  __exportStar(require("./SRB_ENUMS"), exports);
@@ -495,7 +495,7 @@ function calculateCartOrderInfoAndSyncData(data, courses, listnerSettings, calcu
495
495
  }
496
496
  }
497
497
  grand_total += delivery_cost;
498
- // Add packaging fee to grand_total
498
+ // Add packaging charges to grand_total
499
499
  grand_total += packaging_charges;
500
500
  // Add adjustment amount (can be positive or negative)
501
501
  grand_total += data.adjustment_amount ?? 0;
@@ -15,6 +15,7 @@ export * from './marketing';
15
15
  export * from './order-engine';
16
16
  export * from './pra-generate-invoice';
17
17
  export * from './purchase-order-cart-actions';
18
+ export * from './report-webview';
18
19
  export * from './reports';
19
20
  export * from './smartpay-apis';
20
21
  export * from './split_bill';
@@ -31,6 +31,7 @@ __exportStar(require("./marketing"), exports);
31
31
  __exportStar(require("./order-engine"), exports);
32
32
  __exportStar(require("./pra-generate-invoice"), exports);
33
33
  __exportStar(require("./purchase-order-cart-actions"), exports);
34
+ __exportStar(require("./report-webview"), exports);
34
35
  __exportStar(require("./reports"), exports);
35
36
  __exportStar(require("./smartpay-apis"), exports);
36
37
  __exportStar(require("./split_bill"), exports);
@@ -0,0 +1,130 @@
1
+ import type { IItemReportProps } from '../utils/item-report-helpers';
2
+ import type { IRidersReportProps } from '../utils/riders-report-helpers';
3
+ import type { ISaleOverViewReportProps } from '../utils/sales-overview-report-helpers';
4
+ import type { ISummaryReportProps } from '../utils/sales-summary-report-helpers';
5
+ import type { IVoidationsSummaryReportProps } from '../utils/voidations-summary-report-helpers';
6
+ import type { IXReportProps } from '../utils/x-report-helpers';
7
+ export interface IWebviewGetReportOverviewReceipt extends ISaleOverViewReportProps {
8
+ request_id: string;
9
+ target: string;
10
+ }
11
+ export interface IWebviewGetReportOverviewPDF extends ISaleOverViewReportProps {
12
+ request_id: string;
13
+ }
14
+ export interface IWebviewGetReportOverviewImage extends ISaleOverViewReportProps {
15
+ request_id: string;
16
+ }
17
+ export interface IWebviewGetReportOverviewPrint extends ISaleOverViewReportProps {
18
+ request_id: string;
19
+ }
20
+ export interface IWebviewGetReportSummaryReceipt extends ISummaryReportProps {
21
+ request_id: string;
22
+ target: string;
23
+ }
24
+ export interface IWebviewGetReportSummaryPDF extends ISummaryReportProps {
25
+ request_id: string;
26
+ }
27
+ export interface IWebviewGetReportSummaryImage extends ISummaryReportProps {
28
+ request_id: string;
29
+ }
30
+ export interface IWebviewGetReportSummaryPrint extends ISummaryReportProps {
31
+ request_id: string;
32
+ }
33
+ export interface IWebviewGetReportVoidationSummaryReceipt extends IVoidationsSummaryReportProps {
34
+ request_id: string;
35
+ target: string;
36
+ }
37
+ export interface IWebviewGetReportVoidationSummaryPDF extends IVoidationsSummaryReportProps {
38
+ request_id: string;
39
+ }
40
+ export interface IWebviewGetReportVoidationSummaryImage extends IVoidationsSummaryReportProps {
41
+ request_id: string;
42
+ }
43
+ export interface IWebviewGetReportXReportReceipt extends IXReportProps {
44
+ request_id: string;
45
+ target: string;
46
+ }
47
+ export interface IWebviewGetReportXReportPDF extends IXReportProps {
48
+ request_id: string;
49
+ }
50
+ export interface IWebviewGetReportXReportImage extends IXReportProps {
51
+ request_id: string;
52
+ }
53
+ export interface IWebviewGetReportXReportCSV extends IXReportProps {
54
+ request_id: string;
55
+ }
56
+ export interface IWebviewGetReportXReportPrint extends IXReportProps {
57
+ request_id: string;
58
+ }
59
+ export interface IWebviewGetReportRiderReceipt extends IRidersReportProps {
60
+ request_id: string;
61
+ target: string;
62
+ }
63
+ export interface IWebviewGetReportRiderPDF extends IRidersReportProps {
64
+ request_id: string;
65
+ }
66
+ export interface IWebviewGetReportRiderImage extends IRidersReportProps {
67
+ request_id: string;
68
+ }
69
+ export interface IWebviewGetReportRiderCSV extends IRidersReportProps {
70
+ request_id: string;
71
+ }
72
+ export interface IWebviewGetReportRiderPrint extends IRidersReportProps {
73
+ request_id: string;
74
+ }
75
+ export interface IWebviewGetReportItemsSaleReceipt extends IItemReportProps {
76
+ request_id: string;
77
+ target: string;
78
+ }
79
+ export interface IWebviewGetReportItemsSalePDF extends IItemReportProps {
80
+ request_id: string;
81
+ }
82
+ export interface IWebviewGetReportItemsSaleImage extends IItemReportProps {
83
+ request_id: string;
84
+ }
85
+ export interface IWebviewGetReportItemsSaleCSV extends IItemReportProps {
86
+ request_id: string;
87
+ }
88
+ export interface IWebviewGetReportItemsSalePrint extends IItemReportProps {
89
+ request_id: string;
90
+ }
91
+ export interface IWebviewCostingReportItem {
92
+ item_name: string;
93
+ category_name: string;
94
+ total_transactions: number;
95
+ quantity_consumed: number;
96
+ cost_price: number;
97
+ selling_price: number;
98
+ profit: number;
99
+ markup_percentage: number;
100
+ profit_margin: number;
101
+ }
102
+ export interface IWebviewCostingReportMetrics {
103
+ total_transactions: number;
104
+ quantity_consumed: number;
105
+ selling_price: number;
106
+ cost_price: number;
107
+ profit: number;
108
+ markup_percentage: number;
109
+ profit_margin: number;
110
+ }
111
+ export interface IWebviewGetReportCostingPDF {
112
+ request_id: string;
113
+ from: Date | null;
114
+ to: Date | null;
115
+ data: IWebviewCostingReportItem[];
116
+ metrics: IWebviewCostingReportMetrics;
117
+ currency_symbol: string | undefined;
118
+ tenantName: string;
119
+ isFilterApplied: boolean;
120
+ }
121
+ export interface IWebviewGetReportCostingImage {
122
+ request_id: string;
123
+ from: Date | null;
124
+ to: Date | null;
125
+ data: IWebviewCostingReportItem[];
126
+ metrics: IWebviewCostingReportMetrics;
127
+ currency_symbol: string | undefined;
128
+ tenantName: string;
129
+ isFilterApplied: boolean;
130
+ }
@@ -178,7 +178,7 @@ function getReceiptEngineFooterDetails(order, settings) {
178
178
  right,
179
179
  });
180
180
  }
181
- // 12. Packaging Fee
181
+ // 12. Packaging charges
182
182
  if (order.packaging_charges) {
183
183
  const right = (0, common_1.localeAmount)(currencySymbol, order.packaging_charges);
184
184
  details.push({
@@ -170,6 +170,7 @@ export declare const TenantSchema: Schema<any, import("mongoose").Model<any, any
170
170
  instagram_link?: string | null | undefined;
171
171
  fb_link?: string | null | undefined;
172
172
  tiktok_link?: string | null | undefined;
173
+ receipt_qr_type?: import("../../constants").RECEIPT_QR_CODE_TYPE_ENUM | null | undefined;
173
174
  }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
174
175
  createdAt: NativeDate;
175
176
  updatedAt: NativeDate;
@@ -336,6 +337,7 @@ export declare const TenantSchema: Schema<any, import("mongoose").Model<any, any
336
337
  instagram_link?: string | null | undefined;
337
338
  fb_link?: string | null | undefined;
338
339
  tiktok_link?: string | null | undefined;
340
+ receipt_qr_type?: import("../../constants").RECEIPT_QR_CODE_TYPE_ENUM | null | undefined;
339
341
  }>> & import("mongoose").FlatRecord<{
340
342
  createdAt: NativeDate;
341
343
  updatedAt: NativeDate;
@@ -502,6 +504,7 @@ export declare const TenantSchema: Schema<any, import("mongoose").Model<any, any
502
504
  instagram_link?: string | null | undefined;
503
505
  fb_link?: string | null | undefined;
504
506
  tiktok_link?: string | null | undefined;
507
+ receipt_qr_type?: import("../../constants").RECEIPT_QR_CODE_TYPE_ENUM | null | undefined;
505
508
  }> & Required<{
506
509
  _id: string;
507
510
  }> & {
@@ -710,6 +710,11 @@ exports.TenantSchema = new mongoose_1.Schema({
710
710
  type: String,
711
711
  required: false,
712
712
  },
713
+ receipt_qr_type: {
714
+ type: String,
715
+ enum: constants_1.ALL_RECEIPT_QR_CODE_TYPES,
716
+ required: false,
717
+ },
713
718
  // ====><====
714
719
  createdAt: {
715
720
  type: mongoose_1.Schema.Types.Date,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@managesome/eposmatic-toolkit",
3
- "version": "0.2.237",
3
+ "version": "0.2.239",
4
4
  "description": "A Toolkit Library for Eposmatic",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -1,54 +0,0 @@
1
- import { PURCHASE_ORDER_STATUS_ENUM } from '../../constants';
2
- import { IPurchaseOrder, IPurchaseOrderCategory, IPurchaseOrderItem, IPurchaseOrderIteration } from '../../schemas';
3
- export declare function calculateCartPurchaseOrderInfoAndSyncData<T extends IPurchaseOrder | Partial<IPurchaseOrder>>(data: T, calculateItemMetadata?: boolean): T;
4
- export declare const getPurchaseOrderItemComaparableData: (item: IPurchaseOrderItem) => Partial<IPurchaseOrderItem>;
5
- export declare function getUpdatedWarehouseCartInfoOnInit(data: Partial<IPurchaseOrder>, order: Partial<IPurchaseOrder>): {
6
- _id?: string | undefined;
7
- warehouse_id?: string | undefined;
8
- vendor_id?: string | undefined;
9
- iterations?: IPurchaseOrderIteration[] | undefined;
10
- amount_collected?: number | undefined;
11
- order_number?: number | null | undefined;
12
- delete_reason?: string | null;
13
- cancel_reason?: string | null;
14
- is_deleted?: boolean | undefined;
15
- order_status_updated_at?: Date | undefined;
16
- is_reopened?: boolean;
17
- order_settled_at?: Date | undefined;
18
- order_settled_at_mins?: number | undefined;
19
- createdAt_mins?: number | undefined;
20
- createdAt?: Date | undefined;
21
- categories?: IPurchaseOrderCategory[] | undefined;
22
- payments?: import("../../schemas").IOrderPayment[] | undefined;
23
- staff_details?: import("../../schemas").IStaffDetails | undefined;
24
- is_gst_inclusive?: boolean;
25
- gst?: number;
26
- gst_amount?: number;
27
- special_instructions?: string | undefined;
28
- order_status?: PURCHASE_ORDER_STATUS_ENUM | undefined;
29
- price?: number | undefined;
30
- amount_earned?: number | undefined;
31
- grand_total?: number | undefined;
32
- tax_number?: string | undefined;
33
- updatedAt?: Date | undefined;
34
- };
35
- export declare function getRemoveItemFromWarehouseCartData(data: Partial<IPurchaseOrder>, payload: {
36
- _id: string;
37
- void_reason?: string;
38
- }): Partial<IPurchaseOrder>;
39
- export declare function getUpdateWarehouseCartInfoData(data: Partial<IPurchaseOrder>, payload: Partial<IPurchaseOrder>): Partial<IPurchaseOrder>;
40
- export interface ISetAddItemToWarehouseCartActionPayload {
41
- name: string;
42
- category_id: string;
43
- item: IPurchaseOrderItem;
44
- replace_id?: string;
45
- }
46
- export declare function getAddItemToWarehouseCartData(data: Partial<IPurchaseOrder>, payload: ISetAddItemToWarehouseCartActionPayload): Partial<IPurchaseOrder>;
47
- export declare function getUpdateItemInWarehouseCartData(data: Partial<IPurchaseOrder>, payload: Partial<IPurchaseOrderItem>): Partial<IPurchaseOrder>;
48
- export declare function getUpdateItemsInWarehouseCartData(data: Partial<IPurchaseOrder>, payload: Partial<IPurchaseOrderItem>[]): Partial<IPurchaseOrder>;
49
- export interface IGetSplitWarehouseCartItemToTwo {
50
- data: Partial<IPurchaseOrder>;
51
- orderItemId: string;
52
- }
53
- export declare function getSplitWarehouseCartItemToTwo({ data, orderItemId, }: IGetSplitWarehouseCartItemToTwo): Partial<IPurchaseOrder>;
54
- export declare function getAddItemsToWarehouseCartData(data: Partial<IPurchaseOrder>, payload: ISetAddItemToWarehouseCartActionPayload[]): Partial<IPurchaseOrder>;