@managesome/eposmatic-toolkit 0.4.14 → 0.4.16

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 (137) hide show
  1. package/esm/helpers/materialized-reports/index.js +1 -0
  2. package/esm/helpers/materialized-reports/materialized-report-drilldown-rows.js +162 -0
  3. package/esm/helpers/reporting-contract/report-contract.js +1 -0
  4. package/esm/schemas/models/index.js +1 -1
  5. package/esm/schemas/models/materialized_report_drilldown_rows.js +155 -0
  6. package/esm/schemas/types/index.js +1 -1
  7. package/esm/schemas/types/materialized_report_drilldown_rows.js +10 -0
  8. package/lib/helpers/materialized-reports/index.d.ts +1 -0
  9. package/lib/helpers/materialized-reports/index.js +1 -0
  10. package/lib/helpers/materialized-reports/materialized-report-drilldown-rows.d.ts +40 -0
  11. package/lib/helpers/materialized-reports/materialized-report-drilldown-rows.js +169 -0
  12. package/lib/helpers/reporting-contract/report-contract.d.ts +3 -0
  13. package/lib/helpers/reporting-contract/report-contract.js +1 -0
  14. package/lib/schemas/models/brands.d.ts +6 -6
  15. package/lib/schemas/models/categories.d.ts +6 -6
  16. package/lib/schemas/models/close_dates.d.ts +3 -3
  17. package/lib/schemas/models/courses.d.ts +3 -3
  18. package/lib/schemas/models/customer_redemptions.d.ts +3 -3
  19. package/lib/schemas/models/customers.d.ts +6 -6
  20. package/lib/schemas/models/deliveries.d.ts +9 -9
  21. package/lib/schemas/models/delivery_areas.d.ts +3 -3
  22. package/lib/schemas/models/dinein_floors.d.ts +3 -3
  23. package/lib/schemas/models/dinein_tables.d.ts +6 -6
  24. package/lib/schemas/models/dinein_tables_fingerprints.d.ts +9 -9
  25. package/lib/schemas/models/discounts.d.ts +27 -27
  26. package/lib/schemas/models/expense_categories.d.ts +3 -3
  27. package/lib/schemas/models/expense_details.d.ts +12 -12
  28. package/lib/schemas/models/gift_cards.d.ts +3 -3
  29. package/lib/schemas/models/halfhalf_setup.d.ts +153 -153
  30. package/lib/schemas/models/index.d.ts +1 -1
  31. package/lib/schemas/models/index.js +1 -1
  32. package/lib/schemas/models/internal_invoices.d.ts +3 -3
  33. package/lib/schemas/models/internal_staffs.d.ts +3 -3
  34. package/lib/schemas/models/inventories.d.ts +6 -6
  35. package/lib/schemas/models/inventory_categories.d.ts +3 -3
  36. package/lib/schemas/models/inventory_transactions.d.ts +9 -9
  37. package/lib/schemas/models/item_transactions.d.ts +9 -9
  38. package/lib/schemas/models/items.d.ts +216 -216
  39. package/lib/schemas/models/marketing_fingerprints.d.ts +9 -9
  40. package/lib/schemas/models/materialized_credit_bills.d.ts +21 -21
  41. package/lib/schemas/models/materialized_report_drilldown_rows.d.ts +130 -0
  42. package/lib/schemas/models/materialized_report_drilldown_rows.js +158 -0
  43. package/lib/schemas/models/materialized_tenant_cash_entries.d.ts +9 -9
  44. package/lib/schemas/models/materialized_tenant_cash_reports.d.ts +3 -3
  45. package/lib/schemas/models/materialized_tenant_delivery_entries.d.ts +3 -3
  46. package/lib/schemas/models/materialized_tenant_delivery_reports.d.ts +3 -3
  47. package/lib/schemas/models/materialized_tenant_discount_entries.d.ts +24 -24
  48. package/lib/schemas/models/materialized_tenant_discount_reports.d.ts +3 -3
  49. package/lib/schemas/models/materialized_tenant_hourly_comparison_entries.d.ts +3 -3
  50. package/lib/schemas/models/materialized_tenant_hourly_comparison_reports.d.ts +3 -3
  51. package/lib/schemas/models/materialized_tenant_payments_comparison_entries.d.ts +3 -3
  52. package/lib/schemas/models/materialized_tenant_payments_comparison_reports.d.ts +3 -3
  53. package/lib/schemas/models/materialized_tenant_prep_time_entries.d.ts +12 -12
  54. package/lib/schemas/models/materialized_tenant_prep_time_reports.d.ts +3 -3
  55. package/lib/schemas/models/materialized_tenant_reports_iterations.d.ts +3 -3
  56. package/lib/schemas/models/materialized_tenant_sales_comparison_entries.d.ts +9 -9
  57. package/lib/schemas/models/materialized_tenant_sales_comparison_reports.d.ts +3 -3
  58. package/lib/schemas/models/materialized_tenant_sales_overview_reports.d.ts +3 -3
  59. package/lib/schemas/models/menus.d.ts +21 -21
  60. package/lib/schemas/models/modifier_extras.d.ts +3 -3
  61. package/lib/schemas/models/offers.d.ts +24 -24
  62. package/lib/schemas/models/offers_fingerprints.d.ts +9 -9
  63. package/lib/schemas/models/operational_roles.d.ts +3 -3
  64. package/lib/schemas/models/orders.d.ts +18 -18
  65. package/lib/schemas/models/printer_settings.d.ts +3 -3
  66. package/lib/schemas/models/public_holidays.d.ts +3 -3
  67. package/lib/schemas/models/reservations.d.ts +6 -6
  68. package/lib/schemas/models/reviews.d.ts +12 -12
  69. package/lib/schemas/models/riders.d.ts +3 -3
  70. package/lib/schemas/models/specials.d.ts +48 -48
  71. package/lib/schemas/models/staff_shifts.d.ts +9 -9
  72. package/lib/schemas/models/tenant-activity-logs.d.ts +3 -3
  73. package/lib/schemas/models/tenant_active_jobs.d.ts +3 -3
  74. package/lib/schemas/models/tenant_calendar.d.ts +3 -3
  75. package/lib/schemas/models/tenant_cash_drawer_sessions.d.ts +36 -36
  76. package/lib/schemas/models/tenant_cash_drawers.d.ts +3 -3
  77. package/lib/schemas/models/tenant_cash_in_hand_transactions.d.ts +9 -9
  78. package/lib/schemas/models/tenant_cash_in_out.d.ts +9 -9
  79. package/lib/schemas/models/tenant_clients.d.ts +3 -3
  80. package/lib/schemas/models/tenant_day_sessions.d.ts +36 -36
  81. package/lib/schemas/models/tenant_hr_attendance_records.d.ts +3 -3
  82. package/lib/schemas/models/tenant_hr_biometric_enrollments.d.ts +3 -3
  83. package/lib/schemas/models/tenant_hr_departments.d.ts +3 -3
  84. package/lib/schemas/models/tenant_hr_documents.d.ts +3 -3
  85. package/lib/schemas/models/tenant_hr_employees.d.ts +24 -24
  86. package/lib/schemas/models/tenant_hr_leave_requests.d.ts +6 -6
  87. package/lib/schemas/models/tenant_hr_payrolls.d.ts +3 -3
  88. package/lib/schemas/models/tenant_hr_performance_reviews.d.ts +3 -3
  89. package/lib/schemas/models/tenant_hr_policies.d.ts +3 -3
  90. package/lib/schemas/models/tenant_hr_positions.d.ts +3 -3
  91. package/lib/schemas/models/tenant_hr_shift_schedules.d.ts +3 -3
  92. package/lib/schemas/models/tenant_hr_shifts.d.ts +3 -3
  93. package/lib/schemas/models/tenant_instore_shift_sessions.d.ts +36 -36
  94. package/lib/schemas/models/tenant_instore_shifts.d.ts +3 -3
  95. package/lib/schemas/models/tenant_inventory_department_transactions.d.ts +9 -9
  96. package/lib/schemas/models/tenant_inventory_department_utilities.d.ts +6 -6
  97. package/lib/schemas/models/tenant_inventory_departments.d.ts +6 -6
  98. package/lib/schemas/models/tenant_inventory_entries.d.ts +3 -3
  99. package/lib/schemas/models/tenant_metadata.d.ts +3 -3
  100. package/lib/schemas/models/tenant_order_item_instructions.d.ts +3 -3
  101. package/lib/schemas/models/tenant_purchase_order_vendor_returns.d.ts +6 -6
  102. package/lib/schemas/models/tenant_purchase_orders.d.ts +6 -6
  103. package/lib/schemas/models/tenant_shifts.d.ts +3 -3
  104. package/lib/schemas/models/tenant_staffs.d.ts +24 -24
  105. package/lib/schemas/models/tenant_vendors.d.ts +3 -3
  106. package/lib/schemas/models/tenants.d.ts +3 -3
  107. package/lib/schemas/models/terminal_devices.d.ts +3 -3
  108. package/lib/schemas/models/tokens.d.ts +9 -9
  109. package/lib/schemas/models/void_order_items.d.ts +27 -27
  110. package/lib/schemas/models/vouchers.d.ts +3 -3
  111. package/lib/schemas/models/wallet_transactions.d.ts +9 -9
  112. package/lib/schemas/models/wallets.d.ts +3 -3
  113. package/lib/schemas/models/warehouse_categories.d.ts +3 -3
  114. package/lib/schemas/models/warehouse_communications.d.ts +3 -3
  115. package/lib/schemas/models/warehouse_inventory_transactions.d.ts +6 -6
  116. package/lib/schemas/models/warehouse_item_transactions.d.ts +6 -6
  117. package/lib/schemas/models/warehouse_items.d.ts +3 -3
  118. package/lib/schemas/models/warehouse_purchase_order_receipts.d.ts +3 -3
  119. package/lib/schemas/models/warehouse_purchase_order_rfqs.d.ts +3 -3
  120. package/lib/schemas/models/warehouse_purchase_order_vendor_returns.d.ts +3 -3
  121. package/lib/schemas/models/warehouse_purchase_orders.d.ts +3 -3
  122. package/lib/schemas/models/warehouse_sale_deliveries.d.ts +3 -3
  123. package/lib/schemas/models/warehouse_sale_invoices.d.ts +3 -3
  124. package/lib/schemas/models/warehouse_sale_order_rfqs.d.ts +3 -3
  125. package/lib/schemas/models/warehouse_sale_orders.d.ts +3 -3
  126. package/lib/schemas/models/warehouse_staffs.d.ts +3 -3
  127. package/lib/schemas/models/warehouse_void_purchase_order_items.d.ts +21 -21
  128. package/lib/schemas/models/warehouse_void_sale_order_items.d.ts +21 -21
  129. package/lib/schemas/models/warehouses.d.ts +3 -3
  130. package/lib/schemas/types/index.d.ts +1 -1
  131. package/lib/schemas/types/index.js +1 -1
  132. package/lib/schemas/types/materialized_report_drilldown_rows.d.ts +64 -0
  133. package/lib/schemas/types/materialized_report_drilldown_rows.js +13 -0
  134. package/lib/tests/materialized-reports/materialized-report-drilldown-rows.test.d.ts +1 -0
  135. package/lib/tests/materialized-reports/materialized-report-drilldown-rows.test.js +143 -0
  136. package/lib/tests/reporting-contract.test.js +7 -0
  137. package/package.json +1 -1
@@ -8,19 +8,19 @@ export declare const ExpenseDetailsSchema: Schema<any, import("mongoose").Model<
8
8
  updatedAt: NativeDate;
9
9
  } & {
10
10
  _id: import("mongoose").Types.ObjectId;
11
- tenant_id: string;
12
- staff_id: string;
13
- staff_name: string;
14
- createdAt_mins: number;
15
11
  createdAt: NativeDate;
16
12
  updatedAt: NativeDate;
17
13
  description: string;
14
+ tenant_id: string;
15
+ createdAt_mins: number;
18
16
  amount: number;
19
17
  expense_category_id: import("mongoose").Types.ObjectId;
20
18
  expense_sub_category_id: import("mongoose").Types.ObjectId;
21
19
  payment_method: string;
22
20
  date_incurred: NativeDate;
23
21
  date_incurred_mins: number;
22
+ staff_id: string;
23
+ staff_name: string;
24
24
  receipt_image?: string | null | undefined;
25
25
  recurring?: {
26
26
  end_date: NativeDate;
@@ -32,19 +32,19 @@ export declare const ExpenseDetailsSchema: Schema<any, import("mongoose").Model<
32
32
  updatedAt: NativeDate;
33
33
  } & {
34
34
  _id: import("mongoose").Types.ObjectId;
35
- tenant_id: string;
36
- staff_id: string;
37
- staff_name: string;
38
- createdAt_mins: number;
39
35
  createdAt: NativeDate;
40
36
  updatedAt: NativeDate;
41
37
  description: string;
38
+ tenant_id: string;
39
+ createdAt_mins: number;
42
40
  amount: number;
43
41
  expense_category_id: import("mongoose").Types.ObjectId;
44
42
  expense_sub_category_id: import("mongoose").Types.ObjectId;
45
43
  payment_method: string;
46
44
  date_incurred: NativeDate;
47
45
  date_incurred_mins: number;
46
+ staff_id: string;
47
+ staff_name: string;
48
48
  receipt_image?: string | null | undefined;
49
49
  recurring?: {
50
50
  end_date: NativeDate;
@@ -56,19 +56,19 @@ export declare const ExpenseDetailsSchema: Schema<any, import("mongoose").Model<
56
56
  updatedAt: NativeDate;
57
57
  } & {
58
58
  _id: import("mongoose").Types.ObjectId;
59
- tenant_id: string;
60
- staff_id: string;
61
- staff_name: string;
62
- createdAt_mins: number;
63
59
  createdAt: NativeDate;
64
60
  updatedAt: NativeDate;
65
61
  description: string;
62
+ tenant_id: string;
63
+ createdAt_mins: number;
66
64
  amount: number;
67
65
  expense_category_id: import("mongoose").Types.ObjectId;
68
66
  expense_sub_category_id: import("mongoose").Types.ObjectId;
69
67
  payment_method: string;
70
68
  date_incurred: NativeDate;
71
69
  date_incurred_mins: number;
70
+ staff_id: string;
71
+ staff_name: string;
72
72
  receipt_image?: string | null | undefined;
73
73
  recurring?: {
74
74
  end_date: NativeDate;
@@ -11,10 +11,10 @@ export declare const GiftCardsSchema: Schema<any, import("mongoose").Model<any,
11
11
  code: string;
12
12
  _id: import("mongoose").Types.ObjectId;
13
13
  name: string;
14
- tenants: string[];
15
14
  createdAt: NativeDate;
16
15
  updatedAt: NativeDate;
17
16
  brand_id: string;
17
+ tenants: string[];
18
18
  active: boolean;
19
19
  description: string;
20
20
  reward_type: GIFT_CARD_REWARD_TYPE_ENUM;
@@ -145,10 +145,10 @@ export declare const GiftCardsSchema: Schema<any, import("mongoose").Model<any,
145
145
  code: string;
146
146
  _id: import("mongoose").Types.ObjectId;
147
147
  name: string;
148
- tenants: string[];
149
148
  createdAt: NativeDate;
150
149
  updatedAt: NativeDate;
151
150
  brand_id: string;
151
+ tenants: string[];
152
152
  active: boolean;
153
153
  description: string;
154
154
  reward_type: GIFT_CARD_REWARD_TYPE_ENUM;
@@ -279,10 +279,10 @@ export declare const GiftCardsSchema: Schema<any, import("mongoose").Model<any,
279
279
  code: string;
280
280
  _id: import("mongoose").Types.ObjectId;
281
281
  name: string;
282
- tenants: string[];
283
282
  createdAt: NativeDate;
284
283
  updatedAt: NativeDate;
285
284
  brand_id: string;
285
+ tenants: string[];
286
286
  active: boolean;
287
287
  description: string;
288
288
  reward_type: GIFT_CARD_REWARD_TYPE_ENUM;
@@ -28,54 +28,11 @@ export declare const HalfHalfSetupSchema: Schema<any, import("mongoose").Model<a
28
28
  } & {
29
29
  _id: import("mongoose").Types.ObjectId;
30
30
  name: string;
31
- tenants: string[];
32
- discount_amount: {
33
- "POS_WALK-IN": number;
34
- "POS_TAKE-AWAY": number;
35
- POS_DELIVERY: number;
36
- "POS_DINE-IN": number;
37
- "POS_DRIVE-THRU": number;
38
- POS_KIOSK: number;
39
- "WEB_TAKE-AWAY": number;
40
- WEB_DELIVERY: number;
41
- "WEB_DINE-IN": number;
42
- "APP_TAKE-AWAY": number;
43
- APP_DELIVERY: number;
44
- "APP_DINE-IN": number;
45
- "FOODPANDA_TAKE-AWAY": number;
46
- FOODPANDA_DELIVERY: number;
47
- "FOODPAPA_TAKE-AWAY": number;
48
- FOODPAPA_DELIVERY: number;
49
- "DOORDASH_TAKE-AWAY": number;
50
- DOORDASH_DELIVERY: number;
51
- "UBER-EATS_TAKE-AWAY": number;
52
- "UBER-EATS_DELIVERY": number;
53
- "MENU-LOG_TAKE-AWAY": number;
54
- "MENU-LOG_DELIVERY": number;
55
- "GFO_TAKE-AWAY": number;
56
- GFO_DELIVERY: number;
57
- "TALABAT_TAKE-AWAY": number;
58
- TALABAT_DELIVERY: number;
59
- "NOON_TAKE-AWAY": number;
60
- NOON_DELIVERY: number;
61
- "SMILES_TAKE-AWAY": number;
62
- SMILES_DELIVERY: number;
63
- "CAREEM_TAKE-AWAY": number;
64
- CAREEM_DELIVERY: number;
65
- "DELIVEROO_TAKE-AWAY": number;
66
- DELIVEROO_DELIVERY: number;
67
- "ZOMATO_TAKE-AWAY": number;
68
- ZOMATO_DELIVERY: number;
69
- "EATEASY_TAKE-AWAY": number;
70
- EATEASY_DELIVERY: number;
71
- "KEETA_TAKE-AWAY": number;
72
- KEETA_DELIVERY: number;
73
- BASE_PRICE: number;
74
- };
31
+ image_url: string;
75
32
  createdAt: NativeDate;
76
33
  updatedAt: NativeDate;
77
- image_url: string;
78
34
  brand_id: string;
35
+ tenants: string[];
79
36
  active: boolean;
80
37
  sort_id: number;
81
38
  category_id: import("mongoose").Types.ObjectId;
@@ -219,6 +176,49 @@ export declare const HalfHalfSetupSchema: Schema<any, import("mongoose").Model<a
219
176
  };
220
177
  }>;
221
178
  description: string;
179
+ discount_amount: {
180
+ "POS_WALK-IN": number;
181
+ "POS_TAKE-AWAY": number;
182
+ POS_DELIVERY: number;
183
+ "POS_DINE-IN": number;
184
+ "POS_DRIVE-THRU": number;
185
+ POS_KIOSK: number;
186
+ "WEB_TAKE-AWAY": number;
187
+ WEB_DELIVERY: number;
188
+ "WEB_DINE-IN": number;
189
+ "APP_TAKE-AWAY": number;
190
+ APP_DELIVERY: number;
191
+ "APP_DINE-IN": number;
192
+ "FOODPANDA_TAKE-AWAY": number;
193
+ FOODPANDA_DELIVERY: number;
194
+ "FOODPAPA_TAKE-AWAY": number;
195
+ FOODPAPA_DELIVERY: number;
196
+ "DOORDASH_TAKE-AWAY": number;
197
+ DOORDASH_DELIVERY: number;
198
+ "UBER-EATS_TAKE-AWAY": number;
199
+ "UBER-EATS_DELIVERY": number;
200
+ "MENU-LOG_TAKE-AWAY": number;
201
+ "MENU-LOG_DELIVERY": number;
202
+ "GFO_TAKE-AWAY": number;
203
+ GFO_DELIVERY: number;
204
+ "TALABAT_TAKE-AWAY": number;
205
+ TALABAT_DELIVERY: number;
206
+ "NOON_TAKE-AWAY": number;
207
+ NOON_DELIVERY: number;
208
+ "SMILES_TAKE-AWAY": number;
209
+ SMILES_DELIVERY: number;
210
+ "CAREEM_TAKE-AWAY": number;
211
+ CAREEM_DELIVERY: number;
212
+ "DELIVEROO_TAKE-AWAY": number;
213
+ DELIVEROO_DELIVERY: number;
214
+ "ZOMATO_TAKE-AWAY": number;
215
+ ZOMATO_DELIVERY: number;
216
+ "EATEASY_TAKE-AWAY": number;
217
+ EATEASY_DELIVERY: number;
218
+ "KEETA_TAKE-AWAY": number;
219
+ KEETA_DELIVERY: number;
220
+ BASE_PRICE: number;
221
+ };
222
222
  is_discount_percentage: boolean;
223
223
  sold_out: string[];
224
224
  choose_expensive_segment_price: boolean;
@@ -232,7 +232,7 @@ export declare const HalfHalfSetupSchema: Schema<any, import("mongoose").Model<a
232
232
  end_date: NativeDate;
233
233
  is_discount_percentage: boolean;
234
234
  excluded_platforms: import("../..").PLATFORMS_ENUM[];
235
- discount_amount?: {
235
+ price?: {
236
236
  "POS_WALK-IN": number;
237
237
  "POS_TAKE-AWAY": number;
238
238
  POS_DELIVERY: number;
@@ -275,7 +275,7 @@ export declare const HalfHalfSetupSchema: Schema<any, import("mongoose").Model<a
275
275
  KEETA_DELIVERY: number;
276
276
  BASE_PRICE: number;
277
277
  } | null | undefined;
278
- price?: {
278
+ discount_amount?: {
279
279
  "POS_WALK-IN": number;
280
280
  "POS_TAKE-AWAY": number;
281
281
  POS_DELIVERY: number;
@@ -327,7 +327,7 @@ export declare const HalfHalfSetupSchema: Schema<any, import("mongoose").Model<a
327
327
  end_date: NativeDate;
328
328
  is_discount_percentage: boolean;
329
329
  excluded_platforms: import("../..").PLATFORMS_ENUM[];
330
- discount_amount?: {
330
+ price?: {
331
331
  "POS_WALK-IN": number;
332
332
  "POS_TAKE-AWAY": number;
333
333
  POS_DELIVERY: number;
@@ -370,7 +370,7 @@ export declare const HalfHalfSetupSchema: Schema<any, import("mongoose").Model<a
370
370
  KEETA_DELIVERY: number;
371
371
  BASE_PRICE: number;
372
372
  } | null | undefined;
373
- price?: {
373
+ discount_amount?: {
374
374
  "POS_WALK-IN": number;
375
375
  "POS_TAKE-AWAY": number;
376
376
  POS_DELIVERY: number;
@@ -422,7 +422,7 @@ export declare const HalfHalfSetupSchema: Schema<any, import("mongoose").Model<a
422
422
  end_date: NativeDate;
423
423
  is_discount_percentage: boolean;
424
424
  excluded_platforms: import("../..").PLATFORMS_ENUM[];
425
- discount_amount?: {
425
+ price?: {
426
426
  "POS_WALK-IN": number;
427
427
  "POS_TAKE-AWAY": number;
428
428
  POS_DELIVERY: number;
@@ -465,7 +465,7 @@ export declare const HalfHalfSetupSchema: Schema<any, import("mongoose").Model<a
465
465
  KEETA_DELIVERY: number;
466
466
  BASE_PRICE: number;
467
467
  } | null | undefined;
468
- price?: {
468
+ discount_amount?: {
469
469
  "POS_WALK-IN": number;
470
470
  "POS_TAKE-AWAY": number;
471
471
  POS_DELIVERY: number;
@@ -573,54 +573,11 @@ export declare const HalfHalfSetupSchema: Schema<any, import("mongoose").Model<a
573
573
  } & {
574
574
  _id: import("mongoose").Types.ObjectId;
575
575
  name: string;
576
- tenants: string[];
577
- discount_amount: {
578
- "POS_WALK-IN": number;
579
- "POS_TAKE-AWAY": number;
580
- POS_DELIVERY: number;
581
- "POS_DINE-IN": number;
582
- "POS_DRIVE-THRU": number;
583
- POS_KIOSK: number;
584
- "WEB_TAKE-AWAY": number;
585
- WEB_DELIVERY: number;
586
- "WEB_DINE-IN": number;
587
- "APP_TAKE-AWAY": number;
588
- APP_DELIVERY: number;
589
- "APP_DINE-IN": number;
590
- "FOODPANDA_TAKE-AWAY": number;
591
- FOODPANDA_DELIVERY: number;
592
- "FOODPAPA_TAKE-AWAY": number;
593
- FOODPAPA_DELIVERY: number;
594
- "DOORDASH_TAKE-AWAY": number;
595
- DOORDASH_DELIVERY: number;
596
- "UBER-EATS_TAKE-AWAY": number;
597
- "UBER-EATS_DELIVERY": number;
598
- "MENU-LOG_TAKE-AWAY": number;
599
- "MENU-LOG_DELIVERY": number;
600
- "GFO_TAKE-AWAY": number;
601
- GFO_DELIVERY: number;
602
- "TALABAT_TAKE-AWAY": number;
603
- TALABAT_DELIVERY: number;
604
- "NOON_TAKE-AWAY": number;
605
- NOON_DELIVERY: number;
606
- "SMILES_TAKE-AWAY": number;
607
- SMILES_DELIVERY: number;
608
- "CAREEM_TAKE-AWAY": number;
609
- CAREEM_DELIVERY: number;
610
- "DELIVEROO_TAKE-AWAY": number;
611
- DELIVEROO_DELIVERY: number;
612
- "ZOMATO_TAKE-AWAY": number;
613
- ZOMATO_DELIVERY: number;
614
- "EATEASY_TAKE-AWAY": number;
615
- EATEASY_DELIVERY: number;
616
- "KEETA_TAKE-AWAY": number;
617
- KEETA_DELIVERY: number;
618
- BASE_PRICE: number;
619
- };
576
+ image_url: string;
620
577
  createdAt: NativeDate;
621
578
  updatedAt: NativeDate;
622
- image_url: string;
623
579
  brand_id: string;
580
+ tenants: string[];
624
581
  active: boolean;
625
582
  sort_id: number;
626
583
  category_id: import("mongoose").Types.ObjectId;
@@ -764,6 +721,49 @@ export declare const HalfHalfSetupSchema: Schema<any, import("mongoose").Model<a
764
721
  };
765
722
  }>;
766
723
  description: string;
724
+ discount_amount: {
725
+ "POS_WALK-IN": number;
726
+ "POS_TAKE-AWAY": number;
727
+ POS_DELIVERY: number;
728
+ "POS_DINE-IN": number;
729
+ "POS_DRIVE-THRU": number;
730
+ POS_KIOSK: number;
731
+ "WEB_TAKE-AWAY": number;
732
+ WEB_DELIVERY: number;
733
+ "WEB_DINE-IN": number;
734
+ "APP_TAKE-AWAY": number;
735
+ APP_DELIVERY: number;
736
+ "APP_DINE-IN": number;
737
+ "FOODPANDA_TAKE-AWAY": number;
738
+ FOODPANDA_DELIVERY: number;
739
+ "FOODPAPA_TAKE-AWAY": number;
740
+ FOODPAPA_DELIVERY: number;
741
+ "DOORDASH_TAKE-AWAY": number;
742
+ DOORDASH_DELIVERY: number;
743
+ "UBER-EATS_TAKE-AWAY": number;
744
+ "UBER-EATS_DELIVERY": number;
745
+ "MENU-LOG_TAKE-AWAY": number;
746
+ "MENU-LOG_DELIVERY": number;
747
+ "GFO_TAKE-AWAY": number;
748
+ GFO_DELIVERY: number;
749
+ "TALABAT_TAKE-AWAY": number;
750
+ TALABAT_DELIVERY: number;
751
+ "NOON_TAKE-AWAY": number;
752
+ NOON_DELIVERY: number;
753
+ "SMILES_TAKE-AWAY": number;
754
+ SMILES_DELIVERY: number;
755
+ "CAREEM_TAKE-AWAY": number;
756
+ CAREEM_DELIVERY: number;
757
+ "DELIVEROO_TAKE-AWAY": number;
758
+ DELIVEROO_DELIVERY: number;
759
+ "ZOMATO_TAKE-AWAY": number;
760
+ ZOMATO_DELIVERY: number;
761
+ "EATEASY_TAKE-AWAY": number;
762
+ EATEASY_DELIVERY: number;
763
+ "KEETA_TAKE-AWAY": number;
764
+ KEETA_DELIVERY: number;
765
+ BASE_PRICE: number;
766
+ };
767
767
  is_discount_percentage: boolean;
768
768
  sold_out: string[];
769
769
  choose_expensive_segment_price: boolean;
@@ -777,7 +777,7 @@ export declare const HalfHalfSetupSchema: Schema<any, import("mongoose").Model<a
777
777
  end_date: NativeDate;
778
778
  is_discount_percentage: boolean;
779
779
  excluded_platforms: import("../..").PLATFORMS_ENUM[];
780
- discount_amount?: {
780
+ price?: {
781
781
  "POS_WALK-IN": number;
782
782
  "POS_TAKE-AWAY": number;
783
783
  POS_DELIVERY: number;
@@ -820,7 +820,7 @@ export declare const HalfHalfSetupSchema: Schema<any, import("mongoose").Model<a
820
820
  KEETA_DELIVERY: number;
821
821
  BASE_PRICE: number;
822
822
  } | null | undefined;
823
- price?: {
823
+ discount_amount?: {
824
824
  "POS_WALK-IN": number;
825
825
  "POS_TAKE-AWAY": number;
826
826
  POS_DELIVERY: number;
@@ -872,7 +872,7 @@ export declare const HalfHalfSetupSchema: Schema<any, import("mongoose").Model<a
872
872
  end_date: NativeDate;
873
873
  is_discount_percentage: boolean;
874
874
  excluded_platforms: import("../..").PLATFORMS_ENUM[];
875
- discount_amount?: {
875
+ price?: {
876
876
  "POS_WALK-IN": number;
877
877
  "POS_TAKE-AWAY": number;
878
878
  POS_DELIVERY: number;
@@ -915,7 +915,7 @@ export declare const HalfHalfSetupSchema: Schema<any, import("mongoose").Model<a
915
915
  KEETA_DELIVERY: number;
916
916
  BASE_PRICE: number;
917
917
  } | null | undefined;
918
- price?: {
918
+ discount_amount?: {
919
919
  "POS_WALK-IN": number;
920
920
  "POS_TAKE-AWAY": number;
921
921
  POS_DELIVERY: number;
@@ -967,7 +967,7 @@ export declare const HalfHalfSetupSchema: Schema<any, import("mongoose").Model<a
967
967
  end_date: NativeDate;
968
968
  is_discount_percentage: boolean;
969
969
  excluded_platforms: import("../..").PLATFORMS_ENUM[];
970
- discount_amount?: {
970
+ price?: {
971
971
  "POS_WALK-IN": number;
972
972
  "POS_TAKE-AWAY": number;
973
973
  POS_DELIVERY: number;
@@ -1010,7 +1010,7 @@ export declare const HalfHalfSetupSchema: Schema<any, import("mongoose").Model<a
1010
1010
  KEETA_DELIVERY: number;
1011
1011
  BASE_PRICE: number;
1012
1012
  } | null | undefined;
1013
- price?: {
1013
+ discount_amount?: {
1014
1014
  "POS_WALK-IN": number;
1015
1015
  "POS_TAKE-AWAY": number;
1016
1016
  POS_DELIVERY: number;
@@ -1118,54 +1118,11 @@ export declare const HalfHalfSetupSchema: Schema<any, import("mongoose").Model<a
1118
1118
  } & {
1119
1119
  _id: import("mongoose").Types.ObjectId;
1120
1120
  name: string;
1121
- tenants: string[];
1122
- discount_amount: {
1123
- "POS_WALK-IN": number;
1124
- "POS_TAKE-AWAY": number;
1125
- POS_DELIVERY: number;
1126
- "POS_DINE-IN": number;
1127
- "POS_DRIVE-THRU": number;
1128
- POS_KIOSK: number;
1129
- "WEB_TAKE-AWAY": number;
1130
- WEB_DELIVERY: number;
1131
- "WEB_DINE-IN": number;
1132
- "APP_TAKE-AWAY": number;
1133
- APP_DELIVERY: number;
1134
- "APP_DINE-IN": number;
1135
- "FOODPANDA_TAKE-AWAY": number;
1136
- FOODPANDA_DELIVERY: number;
1137
- "FOODPAPA_TAKE-AWAY": number;
1138
- FOODPAPA_DELIVERY: number;
1139
- "DOORDASH_TAKE-AWAY": number;
1140
- DOORDASH_DELIVERY: number;
1141
- "UBER-EATS_TAKE-AWAY": number;
1142
- "UBER-EATS_DELIVERY": number;
1143
- "MENU-LOG_TAKE-AWAY": number;
1144
- "MENU-LOG_DELIVERY": number;
1145
- "GFO_TAKE-AWAY": number;
1146
- GFO_DELIVERY: number;
1147
- "TALABAT_TAKE-AWAY": number;
1148
- TALABAT_DELIVERY: number;
1149
- "NOON_TAKE-AWAY": number;
1150
- NOON_DELIVERY: number;
1151
- "SMILES_TAKE-AWAY": number;
1152
- SMILES_DELIVERY: number;
1153
- "CAREEM_TAKE-AWAY": number;
1154
- CAREEM_DELIVERY: number;
1155
- "DELIVEROO_TAKE-AWAY": number;
1156
- DELIVEROO_DELIVERY: number;
1157
- "ZOMATO_TAKE-AWAY": number;
1158
- ZOMATO_DELIVERY: number;
1159
- "EATEASY_TAKE-AWAY": number;
1160
- EATEASY_DELIVERY: number;
1161
- "KEETA_TAKE-AWAY": number;
1162
- KEETA_DELIVERY: number;
1163
- BASE_PRICE: number;
1164
- };
1121
+ image_url: string;
1165
1122
  createdAt: NativeDate;
1166
1123
  updatedAt: NativeDate;
1167
- image_url: string;
1168
1124
  brand_id: string;
1125
+ tenants: string[];
1169
1126
  active: boolean;
1170
1127
  sort_id: number;
1171
1128
  category_id: import("mongoose").Types.ObjectId;
@@ -1309,6 +1266,49 @@ export declare const HalfHalfSetupSchema: Schema<any, import("mongoose").Model<a
1309
1266
  };
1310
1267
  }>;
1311
1268
  description: string;
1269
+ discount_amount: {
1270
+ "POS_WALK-IN": number;
1271
+ "POS_TAKE-AWAY": number;
1272
+ POS_DELIVERY: number;
1273
+ "POS_DINE-IN": number;
1274
+ "POS_DRIVE-THRU": number;
1275
+ POS_KIOSK: number;
1276
+ "WEB_TAKE-AWAY": number;
1277
+ WEB_DELIVERY: number;
1278
+ "WEB_DINE-IN": number;
1279
+ "APP_TAKE-AWAY": number;
1280
+ APP_DELIVERY: number;
1281
+ "APP_DINE-IN": number;
1282
+ "FOODPANDA_TAKE-AWAY": number;
1283
+ FOODPANDA_DELIVERY: number;
1284
+ "FOODPAPA_TAKE-AWAY": number;
1285
+ FOODPAPA_DELIVERY: number;
1286
+ "DOORDASH_TAKE-AWAY": number;
1287
+ DOORDASH_DELIVERY: number;
1288
+ "UBER-EATS_TAKE-AWAY": number;
1289
+ "UBER-EATS_DELIVERY": number;
1290
+ "MENU-LOG_TAKE-AWAY": number;
1291
+ "MENU-LOG_DELIVERY": number;
1292
+ "GFO_TAKE-AWAY": number;
1293
+ GFO_DELIVERY: number;
1294
+ "TALABAT_TAKE-AWAY": number;
1295
+ TALABAT_DELIVERY: number;
1296
+ "NOON_TAKE-AWAY": number;
1297
+ NOON_DELIVERY: number;
1298
+ "SMILES_TAKE-AWAY": number;
1299
+ SMILES_DELIVERY: number;
1300
+ "CAREEM_TAKE-AWAY": number;
1301
+ CAREEM_DELIVERY: number;
1302
+ "DELIVEROO_TAKE-AWAY": number;
1303
+ DELIVEROO_DELIVERY: number;
1304
+ "ZOMATO_TAKE-AWAY": number;
1305
+ ZOMATO_DELIVERY: number;
1306
+ "EATEASY_TAKE-AWAY": number;
1307
+ EATEASY_DELIVERY: number;
1308
+ "KEETA_TAKE-AWAY": number;
1309
+ KEETA_DELIVERY: number;
1310
+ BASE_PRICE: number;
1311
+ };
1312
1312
  is_discount_percentage: boolean;
1313
1313
  sold_out: string[];
1314
1314
  choose_expensive_segment_price: boolean;
@@ -1322,7 +1322,7 @@ export declare const HalfHalfSetupSchema: Schema<any, import("mongoose").Model<a
1322
1322
  end_date: NativeDate;
1323
1323
  is_discount_percentage: boolean;
1324
1324
  excluded_platforms: import("../..").PLATFORMS_ENUM[];
1325
- discount_amount?: {
1325
+ price?: {
1326
1326
  "POS_WALK-IN": number;
1327
1327
  "POS_TAKE-AWAY": number;
1328
1328
  POS_DELIVERY: number;
@@ -1365,7 +1365,7 @@ export declare const HalfHalfSetupSchema: Schema<any, import("mongoose").Model<a
1365
1365
  KEETA_DELIVERY: number;
1366
1366
  BASE_PRICE: number;
1367
1367
  } | null | undefined;
1368
- price?: {
1368
+ discount_amount?: {
1369
1369
  "POS_WALK-IN": number;
1370
1370
  "POS_TAKE-AWAY": number;
1371
1371
  POS_DELIVERY: number;
@@ -1417,7 +1417,7 @@ export declare const HalfHalfSetupSchema: Schema<any, import("mongoose").Model<a
1417
1417
  end_date: NativeDate;
1418
1418
  is_discount_percentage: boolean;
1419
1419
  excluded_platforms: import("../..").PLATFORMS_ENUM[];
1420
- discount_amount?: {
1420
+ price?: {
1421
1421
  "POS_WALK-IN": number;
1422
1422
  "POS_TAKE-AWAY": number;
1423
1423
  POS_DELIVERY: number;
@@ -1460,7 +1460,7 @@ export declare const HalfHalfSetupSchema: Schema<any, import("mongoose").Model<a
1460
1460
  KEETA_DELIVERY: number;
1461
1461
  BASE_PRICE: number;
1462
1462
  } | null | undefined;
1463
- price?: {
1463
+ discount_amount?: {
1464
1464
  "POS_WALK-IN": number;
1465
1465
  "POS_TAKE-AWAY": number;
1466
1466
  POS_DELIVERY: number;
@@ -1512,7 +1512,7 @@ export declare const HalfHalfSetupSchema: Schema<any, import("mongoose").Model<a
1512
1512
  end_date: NativeDate;
1513
1513
  is_discount_percentage: boolean;
1514
1514
  excluded_platforms: import("../..").PLATFORMS_ENUM[];
1515
- discount_amount?: {
1515
+ price?: {
1516
1516
  "POS_WALK-IN": number;
1517
1517
  "POS_TAKE-AWAY": number;
1518
1518
  POS_DELIVERY: number;
@@ -1555,7 +1555,7 @@ export declare const HalfHalfSetupSchema: Schema<any, import("mongoose").Model<a
1555
1555
  KEETA_DELIVERY: number;
1556
1556
  BASE_PRICE: number;
1557
1557
  } | null | undefined;
1558
- price?: {
1558
+ discount_amount?: {
1559
1559
  "POS_WALK-IN": number;
1560
1560
  "POS_TAKE-AWAY": number;
1561
1561
  POS_DELIVERY: number;
@@ -1,5 +1,4 @@
1
1
  export * from './app_configs';
2
- export * from './applied_order_discounts';
3
2
  export * from './brands';
4
3
  export * from './categories';
5
4
  export * from './close_dates';
@@ -38,6 +37,7 @@ export * from './materialized_tenant_cash_reports';
38
37
  export * from './materialized_tenant_prep_time_entries';
39
38
  export * from './materialized_tenant_prep_time_reports';
40
39
  export * from './materialized_tenant_reports_iterations';
40
+ export * from './materialized_report_drilldown_rows';
41
41
  export * from './materialized_tenant_sales_comparison_entries';
42
42
  export * from './materialized_tenant_sales_comparison_reports';
43
43
  export * from './materialized_tenant_hourly_comparison_entries';
@@ -15,7 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./app_configs"), exports);
18
- __exportStar(require("./applied_order_discounts"), exports);
19
18
  __exportStar(require("./brands"), exports);
20
19
  __exportStar(require("./categories"), exports);
21
20
  __exportStar(require("./close_dates"), exports);
@@ -54,6 +53,7 @@ __exportStar(require("./materialized_tenant_cash_reports"), exports);
54
53
  __exportStar(require("./materialized_tenant_prep_time_entries"), exports);
55
54
  __exportStar(require("./materialized_tenant_prep_time_reports"), exports);
56
55
  __exportStar(require("./materialized_tenant_reports_iterations"), exports);
56
+ __exportStar(require("./materialized_report_drilldown_rows"), exports);
57
57
  __exportStar(require("./materialized_tenant_sales_comparison_entries"), exports);
58
58
  __exportStar(require("./materialized_tenant_sales_comparison_reports"), exports);
59
59
  __exportStar(require("./materialized_tenant_hourly_comparison_entries"), exports);
@@ -8,10 +8,10 @@ export declare const InternalInvoiceSchema: Schema<any, import("mongoose").Model
8
8
  updatedAt: NativeDate;
9
9
  } & {
10
10
  _id: import("mongoose").Types.ObjectId;
11
- discount_amount: number;
12
11
  createdAt: NativeDate;
13
12
  updatedAt: NativeDate;
14
13
  description: string;
14
+ discount_amount: number;
15
15
  ref_id: string;
16
16
  customer_name: string;
17
17
  status: import("../../constants").INTERNAL_INVOICE_STATUS_ENUM;
@@ -36,10 +36,10 @@ export declare const InternalInvoiceSchema: Schema<any, import("mongoose").Model
36
36
  updatedAt: NativeDate;
37
37
  } & {
38
38
  _id: import("mongoose").Types.ObjectId;
39
- discount_amount: number;
40
39
  createdAt: NativeDate;
41
40
  updatedAt: NativeDate;
42
41
  description: string;
42
+ discount_amount: number;
43
43
  ref_id: string;
44
44
  customer_name: string;
45
45
  status: import("../../constants").INTERNAL_INVOICE_STATUS_ENUM;
@@ -64,10 +64,10 @@ export declare const InternalInvoiceSchema: Schema<any, import("mongoose").Model
64
64
  updatedAt: NativeDate;
65
65
  } & {
66
66
  _id: import("mongoose").Types.ObjectId;
67
- discount_amount: number;
68
67
  createdAt: NativeDate;
69
68
  updatedAt: NativeDate;
70
69
  description: string;
70
+ discount_amount: number;
71
71
  ref_id: string;
72
72
  customer_name: string;
73
73
  status: import("../../constants").INTERNAL_INVOICE_STATUS_ENUM;
@@ -8,9 +8,9 @@ export declare const InternalStaffSchema: Schema<any, import("mongoose").Model<a
8
8
  updatedAt: NativeDate;
9
9
  } & {
10
10
  _id: import("mongoose").Types.ObjectId;
11
+ image_url: string;
11
12
  createdAt: NativeDate;
12
13
  updatedAt: NativeDate;
13
- image_url: string;
14
14
  phone_number: string;
15
15
  uid: string;
16
16
  display_name: string;
@@ -24,9 +24,9 @@ export declare const InternalStaffSchema: Schema<any, import("mongoose").Model<a
24
24
  updatedAt: NativeDate;
25
25
  } & {
26
26
  _id: import("mongoose").Types.ObjectId;
27
+ image_url: string;
27
28
  createdAt: NativeDate;
28
29
  updatedAt: NativeDate;
29
- image_url: string;
30
30
  phone_number: string;
31
31
  uid: string;
32
32
  display_name: string;
@@ -40,9 +40,9 @@ export declare const InternalStaffSchema: Schema<any, import("mongoose").Model<a
40
40
  updatedAt: NativeDate;
41
41
  } & {
42
42
  _id: import("mongoose").Types.ObjectId;
43
+ image_url: string;
43
44
  createdAt: NativeDate;
44
45
  updatedAt: NativeDate;
45
- image_url: string;
46
46
  phone_number: string;
47
47
  uid: string;
48
48
  display_name: string;