@managesome/eposmatic-toolkit 0.2.427 → 0.2.430

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 (135) hide show
  1. package/lib/helpers/order/generate-purchase-order-rfq.d.ts +3 -0
  2. package/lib/helpers/order/generate-purchase-order-rfq.js +64 -0
  3. package/lib/helpers/order/index.d.ts +1 -0
  4. package/lib/helpers/order/index.js +1 -0
  5. package/lib/helpers/store/index.d.ts +1 -0
  6. package/lib/helpers/store/index.js +1 -0
  7. package/lib/helpers/store/purchase-order-rfq-cart-actions.d.ts +19 -0
  8. package/lib/helpers/store/purchase-order-rfq-cart-actions.js +373 -0
  9. package/lib/schemas/models/applied_order_discounts.d.ts +80 -0
  10. package/lib/schemas/models/applied_order_discounts.js +106 -0
  11. package/lib/schemas/models/brands.d.ts +45 -0
  12. package/lib/schemas/models/brands.js +45 -0
  13. package/lib/schemas/models/categories.d.ts +60 -0
  14. package/lib/schemas/models/categories.js +67 -0
  15. package/lib/schemas/models/close_dates.js +2 -2
  16. package/lib/schemas/models/dinein_tables.d.ts +6 -6
  17. package/lib/schemas/models/dinein_tables_fingerprints.d.ts +65 -0
  18. package/lib/schemas/models/dinein_tables_fingerprints.js +85 -0
  19. package/lib/schemas/models/discounts.js +3 -3
  20. package/lib/schemas/models/expense_categories.d.ts +83 -0
  21. package/lib/schemas/models/expense_categories.js +64 -0
  22. package/lib/schemas/models/halfhalf_setup.js +3 -3
  23. package/lib/schemas/models/index.d.ts +23 -23
  24. package/lib/schemas/models/index.js +23 -23
  25. package/lib/schemas/models/inventories.d.ts +99 -0
  26. package/lib/schemas/models/inventories.js +87 -0
  27. package/lib/schemas/models/inventory_lot_serial_numbers.d.ts +15 -15
  28. package/lib/schemas/models/items.d.ts +11269 -0
  29. package/lib/schemas/models/items.js +333 -0
  30. package/lib/schemas/models/menus.d.ts +941 -0
  31. package/lib/schemas/models/menus.js +69 -0
  32. package/lib/schemas/models/offers.js +3 -3
  33. package/lib/schemas/models/orders.d.ts +15437 -0
  34. package/lib/schemas/models/orders.js +891 -0
  35. package/lib/schemas/models/public_holidays.js +2 -2
  36. package/lib/schemas/models/purchase_order_receipts.d.ts +3 -3
  37. package/lib/schemas/models/purchase_order_receipts.js +2 -2
  38. package/lib/schemas/models/purchase_order_rfqs.d.ts +1959 -0
  39. package/lib/schemas/models/purchase_order_rfqs.js +328 -0
  40. package/lib/schemas/models/purchase_order_vendor_returns.d.ts +15 -15
  41. package/lib/schemas/models/purchase_order_vendor_returns.js +2 -2
  42. package/lib/schemas/models/purchase_orders.js +4 -4
  43. package/lib/schemas/models/riders.d.ts +65 -0
  44. package/lib/schemas/models/riders.js +74 -0
  45. package/lib/schemas/models/specials.js +3 -3
  46. package/lib/schemas/models/tenant_staffs.d.ts +932 -0
  47. package/lib/schemas/models/tenant_staffs.js +96 -0
  48. package/lib/schemas/models/tenants.d.ts +528 -0
  49. package/lib/schemas/models/tenants.js +755 -0
  50. package/lib/schemas/models/track_order_numbers.d.ts +413 -0
  51. package/lib/schemas/models/track_order_numbers.js +45 -0
  52. package/lib/schemas/models/void_purchase_order_items.js +2 -2
  53. package/lib/schemas/models/void_warehouse_invoice_items.d.ts +6 -6
  54. package/lib/schemas/models/void_warehouse_invoice_items.js +2 -2
  55. package/lib/schemas/models/wallets.d.ts +38 -0
  56. package/lib/schemas/models/wallets.js +37 -0
  57. package/lib/schemas/models/warehouse-activity-logs.js +2 -2
  58. package/lib/schemas/models/warehouse_communications.d.ts +228 -0
  59. package/lib/schemas/models/warehouse_communications.js +216 -0
  60. package/lib/schemas/models/warehouse_internal_movements.d.ts +33 -34
  61. package/lib/schemas/models/warehouse_internal_movements.js +2 -34
  62. package/lib/schemas/models/warehouse_invoices.js +2 -2
  63. package/lib/schemas/models/warehouse_items.js +2 -2
  64. package/lib/schemas/models/warehouse_sale_deliveries.d.ts +167 -0
  65. package/lib/schemas/models/warehouse_sale_deliveries.js +155 -0
  66. package/lib/schemas/models/warehouse_sale_invoices.d.ts +227 -0
  67. package/lib/schemas/models/warehouse_sale_invoices.js +206 -0
  68. package/lib/schemas/models/warehouse_sale_order_rfqs.d.ts +1938 -0
  69. package/lib/schemas/models/warehouse_sale_order_rfqs.js +309 -0
  70. package/lib/schemas/models/warehouse_sale_orders.d.ts +1943 -0
  71. package/lib/schemas/models/warehouse_sale_orders.js +324 -0
  72. package/lib/schemas/models/warehouse_staffs.d.ts +65 -0
  73. package/lib/schemas/models/warehouse_staffs.js +78 -0
  74. package/lib/schemas/models/warehouse_track_order_numbers.d.ts +50 -0
  75. package/lib/schemas/models/warehouse_track_order_numbers.js +52 -0
  76. package/lib/schemas/models/warehouse_vendors.d.ts +3 -3
  77. package/lib/schemas/models/warehouses.d.ts +162 -0
  78. package/lib/schemas/models/warehouses.js +222 -0
  79. package/lib/schemas/types/applied_order_discounts.d.ts +22 -0
  80. package/lib/schemas/types/applied_order_discounts.js +2 -0
  81. package/lib/schemas/types/brands.d.ts +32 -0
  82. package/lib/schemas/types/brands.js +2 -0
  83. package/lib/schemas/types/categories.d.ts +15 -0
  84. package/lib/schemas/types/categories.js +2 -0
  85. package/lib/schemas/types/deliveries.d.ts +1 -1
  86. package/lib/schemas/types/expense_categories.d.ts +20 -0
  87. package/lib/schemas/types/expense_categories.js +2 -0
  88. package/lib/schemas/types/expense_details.d.ts +1 -1
  89. package/lib/schemas/types/index.d.ts +22 -22
  90. package/lib/schemas/types/index.js +22 -22
  91. package/lib/schemas/types/inventories.d.ts +48 -0
  92. package/lib/schemas/types/inventories.js +2 -0
  93. package/lib/schemas/types/items.d.ts +89 -0
  94. package/lib/schemas/types/items.js +2 -0
  95. package/lib/schemas/types/menus.d.ts +17 -0
  96. package/lib/schemas/types/menus.js +2 -0
  97. package/lib/schemas/types/multi_tenants.d.ts +2 -2
  98. package/lib/schemas/types/orders.d.ts +242 -0
  99. package/lib/schemas/types/orders.js +2 -0
  100. package/lib/schemas/types/purchase_order_common.d.ts +1 -1
  101. package/lib/schemas/types/purchase_order_rfqs.d.ts +33 -0
  102. package/lib/schemas/types/purchase_order_rfqs.js +2 -0
  103. package/lib/schemas/types/purchase_orders.d.ts +1 -1
  104. package/lib/schemas/types/reservations.d.ts +1 -1
  105. package/lib/schemas/types/riders.d.ts +16 -0
  106. package/lib/schemas/types/riders.js +2 -0
  107. package/lib/schemas/types/sale_order_common.d.ts +1 -1
  108. package/lib/schemas/types/specials.d.ts +1 -1
  109. package/lib/schemas/types/tenant_staffs.d.ts +22 -0
  110. package/lib/schemas/types/tenant_staffs.js +2 -0
  111. package/lib/schemas/types/tenants.d.ts +205 -0
  112. package/lib/schemas/types/tenants.js +2 -0
  113. package/lib/schemas/types/track_order_numbers.d.ts +10 -0
  114. package/lib/schemas/types/track_order_numbers.js +2 -0
  115. package/lib/schemas/types/wallets.d.ts +7 -0
  116. package/lib/schemas/types/wallets.js +2 -0
  117. package/lib/schemas/types/warehouse_communications.d.ts +54 -0
  118. package/lib/schemas/types/warehouse_communications.js +2 -0
  119. package/lib/schemas/types/warehouse_internal_movements.d.ts +2 -2
  120. package/lib/schemas/types/warehouse_invoices.d.ts +1 -1
  121. package/lib/schemas/types/warehouse_sale_deliveries.d.ts +67 -0
  122. package/lib/schemas/types/warehouse_sale_deliveries.js +2 -0
  123. package/lib/schemas/types/warehouse_sale_invoices.d.ts +49 -0
  124. package/lib/schemas/types/warehouse_sale_invoices.js +2 -0
  125. package/lib/schemas/types/warehouse_sale_order_rfqs.d.ts +25 -0
  126. package/lib/schemas/types/warehouse_sale_order_rfqs.js +2 -0
  127. package/lib/schemas/types/warehouse_sale_orders.d.ts +30 -0
  128. package/lib/schemas/types/warehouse_sale_orders.js +2 -0
  129. package/lib/schemas/types/warehouse_staffs.d.ts +17 -0
  130. package/lib/schemas/types/warehouse_staffs.js +2 -0
  131. package/lib/schemas/types/warehouse_track_order_numbers.d.ts +11 -0
  132. package/lib/schemas/types/warehouse_track_order_numbers.js +2 -0
  133. package/lib/schemas/types/warehouses.d.ts +49 -0
  134. package/lib/schemas/types/warehouses.js +2 -0
  135. package/package.json +1 -1
@@ -0,0 +1,96 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TENANT_STAFF_COLLECTION_NAME = exports.TenantStaffSchema = void 0;
4
+ const mongoose_1 = require("mongoose");
5
+ const constants_1 = require("../../constants");
6
+ const items_1 = require("./items");
7
+ const AllowedPlatformsSchema = { type: String, enum: constants_1.ALL_PLATFORM_TYPES };
8
+ exports.TenantStaffSchema = new mongoose_1.Schema({
9
+ _id: {
10
+ type: mongoose_1.Schema.Types.ObjectId,
11
+ required: true,
12
+ immutable: true,
13
+ },
14
+ uid: {
15
+ type: String,
16
+ required: true,
17
+ immutable: true,
18
+ },
19
+ tenant_id: {
20
+ type: String,
21
+ required: true,
22
+ immutable: true,
23
+ ref: 'tenants',
24
+ },
25
+ phone_number: {
26
+ type: String,
27
+ required: true,
28
+ minlength: 10,
29
+ immutable: true,
30
+ },
31
+ staff_auth_code: {
32
+ type: String,
33
+ default: null,
34
+ },
35
+ email: {
36
+ type: String,
37
+ default: null,
38
+ },
39
+ email_verified: {
40
+ type: Boolean,
41
+ default: false,
42
+ },
43
+ display_name: {
44
+ type: String,
45
+ default: null,
46
+ },
47
+ image_url: {
48
+ type: String,
49
+ default: null,
50
+ },
51
+ is_disabled: {
52
+ type: Boolean,
53
+ default: false,
54
+ },
55
+ phone_number_verified: {
56
+ type: Boolean,
57
+ default: false,
58
+ },
59
+ role: {
60
+ type: String,
61
+ required: true,
62
+ enum: constants_1.ALL_USER_ROLES,
63
+ },
64
+ allowed_platforms: {
65
+ type: [AllowedPlatformsSchema],
66
+ default: constants_1.ALL_PLATFORM_TYPES,
67
+ },
68
+ assigned_tables: {
69
+ type: [String],
70
+ default: () => null,
71
+ },
72
+ operational_hours: {
73
+ type: [items_1.SpecialHoursSchema],
74
+ required: false,
75
+ },
76
+ cash_in_hand: {
77
+ type: Number,
78
+ required: false,
79
+ },
80
+ createdAt: {
81
+ type: Date,
82
+ required: true,
83
+ immutable: true,
84
+ default: () => new Date(),
85
+ },
86
+ updatedAt: {
87
+ type: Date,
88
+ required: true,
89
+ default: () => new Date(),
90
+ },
91
+ }, {
92
+ timestamps: true,
93
+ versionKey: false,
94
+ minimize: false,
95
+ });
96
+ exports.TENANT_STAFF_COLLECTION_NAME = 'tenant_staffs';
@@ -0,0 +1,528 @@
1
+ import { Schema } from 'mongoose';
2
+ import { COUNTRY_ALPHA_2_ENUM, COUNTRY_ALPHA_3_ENUM, COUNTRY_CODE_ENUM, COUNTRY_FLAG_ENUM, COUNTRY_NAME_ENUM, CURRENCY_CODE_ENUM, CURRENCY_NAME_ENUM, CURRENCY_SYMBOL_ENUM, GST_TYPE_ENUM, ONLINE_ORDERING_DESIGN_TYPE_ENUM, ORDER_COMPLETION_TYPE_ENUM, ORDER_NUMBER_GROUPING_TYPE_ENUM, ORDER_STATUS_ENUM, PLATFORMS_ENUM, RIDER_FEE_TYPE_ENUM, TRACK_ORDER_NUMBER_ENUM } from '../../constants';
3
+ export declare const TenantSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
4
+ timestamps: true;
5
+ versionKey: false;
6
+ minimize: false;
7
+ }, {
8
+ createdAt: NativeDate;
9
+ updatedAt: NativeDate;
10
+ } & {
11
+ _id: string;
12
+ name: string;
13
+ createdAt: NativeDate;
14
+ updatedAt: NativeDate;
15
+ image_url: string;
16
+ brand_id: string;
17
+ active: boolean;
18
+ city: string;
19
+ country_code: COUNTRY_CODE_ENUM;
20
+ delivery_free_over: number;
21
+ business_website: string;
22
+ staff_ordering_domain: string;
23
+ public_business_name: string;
24
+ restaurant_address: string;
25
+ store_description: string;
26
+ web_favicon: string;
27
+ brand_color: string;
28
+ business_type: string;
29
+ web_enable_takeaway: boolean;
30
+ web_enable_delivery: boolean;
31
+ web_enable_dine_in: boolean;
32
+ country_name: COUNTRY_NAME_ENUM;
33
+ coordinates: number[];
34
+ web_cover_image: string;
35
+ provider_id: string;
36
+ packaging_charges: number;
37
+ tax_business_number: string;
38
+ support_email: string;
39
+ public_phone_numbers: string[];
40
+ currency_code: CURRENCY_CODE_ENUM;
41
+ currency_symbol: CURRENCY_SYMBOL_ENUM;
42
+ currency_name: CURRENCY_NAME_ENUM;
43
+ country_alpha_2: COUNTRY_ALPHA_2_ENUM;
44
+ country_alpha_3: COUNTRY_ALPHA_3_ENUM;
45
+ country_flag: COUNTRY_FLAG_ENUM;
46
+ operational_time_zone_offset_gmt: number;
47
+ operational_start_time: number;
48
+ operational_end_time: number;
49
+ alert_phone_numbers: string[];
50
+ alert_email_addresses: string[];
51
+ alert_when: string[];
52
+ google_review_link: string;
53
+ takeaway_time: number;
54
+ delivery_time: number;
55
+ enable_inventory: boolean;
56
+ pay_first_for_dine_in: boolean;
57
+ closed_store_message: string;
58
+ break_time_message: string;
59
+ announcement_message: string;
60
+ review_emails: string[];
61
+ review_phone_numbers: string[];
62
+ enabled_review_platforms: PLATFORMS_ENUM[];
63
+ payment_report_emails: string[];
64
+ pos_enable_internal_auth: boolean;
65
+ pos_enable_takeaway: boolean;
66
+ pos_enable_delivery: boolean;
67
+ pos_enable_dine_in: boolean;
68
+ pos_enable_drive_thru: boolean;
69
+ pos_enable_kiosk: boolean;
70
+ pos_opt_in_for_holiday_surcharge: boolean;
71
+ pos_holiday_surcharge: number;
72
+ pos_enable_card_payments: boolean;
73
+ pos_min_takeaway_order_value: number;
74
+ pos_end_seating_when_order_paid_off: boolean;
75
+ web_charge_customer_for_online_processing: boolean;
76
+ web_allow_ordering_till_closing_time: boolean;
77
+ default_prep_minutes: number;
78
+ web_opt_in_for_holiday_surcharge: boolean;
79
+ web_holiday_surcharge: number;
80
+ web_enable_cash_payments_takeaway: boolean;
81
+ web_enable_cash_payments_delivery: boolean;
82
+ web_enable_cash_payments_dine_in: boolean;
83
+ web_min_takeaway_order_value: number;
84
+ web_max_cash_order_value: number;
85
+ web_stop_taking_orders: {
86
+ date: NativeDate;
87
+ order_types: string[];
88
+ };
89
+ web_unpaid_payment_types: string[];
90
+ opt_in_for_radius_based_delivery: boolean;
91
+ min_delivery_order_value: number;
92
+ delivery_radius: number;
93
+ delivery_min_cost: number;
94
+ delivery_min_cost_distance_mtrs: number;
95
+ delivery_cost_per_meter: number;
96
+ delivery_order_value_per_meter: number;
97
+ static_delivery_cost_multiplier: number;
98
+ rider_revenue_type: RIDER_FEE_TYPE_ENUM;
99
+ rider_revenue_per_meter: number;
100
+ static_rider_revenue_multiplier: number;
101
+ min_service_fee_order_value: number;
102
+ packaging_charges_free_over: number;
103
+ min_packaging_charges_order_value: number;
104
+ cash_in_hand_limit: number;
105
+ track_order_number_by: TRACK_ORDER_NUMBER_ENUM;
106
+ order_number_grouping_type: ORDER_NUMBER_GROUPING_TYPE_ENUM;
107
+ web_show_featured_items: boolean;
108
+ featured_category_name: string;
109
+ card_gst: number;
110
+ cash_gst: number;
111
+ default_gst_type: GST_TYPE_ENUM;
112
+ web_design_type: ONLINE_ORDERING_DESIGN_TYPE_ENUM;
113
+ dinein_service_fee: number;
114
+ send_sms_on_order_status: ORDER_STATUS_ENUM[];
115
+ send_email_on_order_status: ORDER_STATUS_ENUM[];
116
+ auto_sms_platforms: PLATFORMS_ENUM[];
117
+ auto_email_platforms: PLATFORMS_ENUM[];
118
+ auto_accept_order_for_platforms: PLATFORMS_ENUM[];
119
+ custom_payment_types: string[];
120
+ expense_payment_types: string[];
121
+ reservation_enabled: boolean;
122
+ integrations: string[];
123
+ exempt_gst_for_platforms: PLATFORMS_ENUM[];
124
+ enabled_rating_types: import("../../constants").RATING_TYPE_ENUM[];
125
+ order_completion_type: ORDER_COMPLETION_TYPE_ENUM;
126
+ fb_link?: string | null | undefined;
127
+ instagram_link?: string | null | undefined;
128
+ twitter_link?: string | null | undefined;
129
+ tiktok_link?: string | null | undefined;
130
+ dark_mode?: boolean | null | undefined;
131
+ delivery_areas_search_type?: import("../../constants").DELIVERY_AREAS_SEARCH_TYPE_ENUM | null | undefined;
132
+ is_surcharge_percentage?: boolean | null | undefined;
133
+ is_surcharge_taxable?: boolean | null | undefined;
134
+ is_service_fee_percentage?: boolean | null | undefined;
135
+ is_service_fee_taxable?: boolean | null | undefined;
136
+ exclude_discount_from_gst?: boolean | null | undefined;
137
+ apply_service_fee_on_original_price?: boolean | null | undefined;
138
+ is_gst_inclusive?: boolean | null | undefined;
139
+ hide_gst_value?: boolean | null | undefined;
140
+ tax_invoice_provider?: import("../../constants").TAX_INVOICE_PROVIDER_ENUM | null | undefined;
141
+ tax_invoice_generation_id?: string | null | undefined;
142
+ _tax_invoice_generation_token?: string | null | undefined;
143
+ pos_pre_ordering_days?: number | null | undefined;
144
+ pos_accedental_touch_protection_enabled?: boolean | null | undefined;
145
+ web_pre_ordering_days?: number | null | undefined;
146
+ max_preorder_delivery_minutes?: number | null | undefined;
147
+ max_preorder_takeaway_minutes?: number | null | undefined;
148
+ web_enable_pre_ordering?: boolean | null | undefined;
149
+ web_pre_ordering_visibility_minutes?: number | null | undefined;
150
+ rider_pickup_food_image_mandatory?: boolean | null | undefined;
151
+ rider_dropoff_food_image_mandatory?: boolean | null | undefined;
152
+ disable_reason_for_discount?: boolean | null | undefined;
153
+ card_processing_provider?: import("../../constants").CARD_PROCESSING_PROVIDERS_ENUM | null | undefined;
154
+ card_processing_account_id?: string | null | undefined;
155
+ _card_processing_account_token?: string | null | undefined;
156
+ sms_processing_provider?: import("../../constants").SMS_PROCESSING_PROVIDERS_ENUM.NONE | null | undefined;
157
+ sms_processing_account_id?: string | null | undefined;
158
+ email_processing_provider?: import("../../constants").EMAIL_PROCESSING_PROVIDERS_ENUM.NONE | null | undefined;
159
+ email_processing_account_id?: string | null | undefined;
160
+ takeaway_is_pickup?: boolean | null | undefined;
161
+ ms_clarity_id?: string | null | undefined;
162
+ fb_pixel_id?: string | null | undefined;
163
+ gtm_id?: string | null | undefined;
164
+ web_hide_order_total_for_staff?: boolean | null | undefined;
165
+ apply_tax_on_complimentary_payment?: boolean | null | undefined;
166
+ web_auth_type?: import("../../constants").WEB_AUTH_TYPE_ENUM | null | undefined;
167
+ edit_settled_order?: boolean | null | undefined;
168
+ omit_offers_for_anonymous?: boolean | null | undefined;
169
+ playstore_url?: string | null | undefined;
170
+ appstore_url?: string | null | undefined;
171
+ subscription_expiry?: NativeDate | null | undefined;
172
+ digital_menu_images?: string[] | null | undefined;
173
+ web_slider_images?: string[] | null | undefined;
174
+ specials_name?: string | null | undefined;
175
+ receipt_qr_type?: import("../../constants").RECEIPT_QR_CODE_TYPE_ENUM | null | undefined;
176
+ menu_source?: string | null | undefined;
177
+ app_version?: string | null | undefined;
178
+ force_isolated_printing?: boolean | null | undefined;
179
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
180
+ createdAt: NativeDate;
181
+ updatedAt: NativeDate;
182
+ } & {
183
+ _id: string;
184
+ name: string;
185
+ createdAt: NativeDate;
186
+ updatedAt: NativeDate;
187
+ image_url: string;
188
+ brand_id: string;
189
+ active: boolean;
190
+ city: string;
191
+ country_code: COUNTRY_CODE_ENUM;
192
+ delivery_free_over: number;
193
+ business_website: string;
194
+ staff_ordering_domain: string;
195
+ public_business_name: string;
196
+ restaurant_address: string;
197
+ store_description: string;
198
+ web_favicon: string;
199
+ brand_color: string;
200
+ business_type: string;
201
+ web_enable_takeaway: boolean;
202
+ web_enable_delivery: boolean;
203
+ web_enable_dine_in: boolean;
204
+ country_name: COUNTRY_NAME_ENUM;
205
+ coordinates: number[];
206
+ web_cover_image: string;
207
+ provider_id: string;
208
+ packaging_charges: number;
209
+ tax_business_number: string;
210
+ support_email: string;
211
+ public_phone_numbers: string[];
212
+ currency_code: CURRENCY_CODE_ENUM;
213
+ currency_symbol: CURRENCY_SYMBOL_ENUM;
214
+ currency_name: CURRENCY_NAME_ENUM;
215
+ country_alpha_2: COUNTRY_ALPHA_2_ENUM;
216
+ country_alpha_3: COUNTRY_ALPHA_3_ENUM;
217
+ country_flag: COUNTRY_FLAG_ENUM;
218
+ operational_time_zone_offset_gmt: number;
219
+ operational_start_time: number;
220
+ operational_end_time: number;
221
+ alert_phone_numbers: string[];
222
+ alert_email_addresses: string[];
223
+ alert_when: string[];
224
+ google_review_link: string;
225
+ takeaway_time: number;
226
+ delivery_time: number;
227
+ enable_inventory: boolean;
228
+ pay_first_for_dine_in: boolean;
229
+ closed_store_message: string;
230
+ break_time_message: string;
231
+ announcement_message: string;
232
+ review_emails: string[];
233
+ review_phone_numbers: string[];
234
+ enabled_review_platforms: PLATFORMS_ENUM[];
235
+ payment_report_emails: string[];
236
+ pos_enable_internal_auth: boolean;
237
+ pos_enable_takeaway: boolean;
238
+ pos_enable_delivery: boolean;
239
+ pos_enable_dine_in: boolean;
240
+ pos_enable_drive_thru: boolean;
241
+ pos_enable_kiosk: boolean;
242
+ pos_opt_in_for_holiday_surcharge: boolean;
243
+ pos_holiday_surcharge: number;
244
+ pos_enable_card_payments: boolean;
245
+ pos_min_takeaway_order_value: number;
246
+ pos_end_seating_when_order_paid_off: boolean;
247
+ web_charge_customer_for_online_processing: boolean;
248
+ web_allow_ordering_till_closing_time: boolean;
249
+ default_prep_minutes: number;
250
+ web_opt_in_for_holiday_surcharge: boolean;
251
+ web_holiday_surcharge: number;
252
+ web_enable_cash_payments_takeaway: boolean;
253
+ web_enable_cash_payments_delivery: boolean;
254
+ web_enable_cash_payments_dine_in: boolean;
255
+ web_min_takeaway_order_value: number;
256
+ web_max_cash_order_value: number;
257
+ web_stop_taking_orders: {
258
+ date: NativeDate;
259
+ order_types: string[];
260
+ };
261
+ web_unpaid_payment_types: string[];
262
+ opt_in_for_radius_based_delivery: boolean;
263
+ min_delivery_order_value: number;
264
+ delivery_radius: number;
265
+ delivery_min_cost: number;
266
+ delivery_min_cost_distance_mtrs: number;
267
+ delivery_cost_per_meter: number;
268
+ delivery_order_value_per_meter: number;
269
+ static_delivery_cost_multiplier: number;
270
+ rider_revenue_type: RIDER_FEE_TYPE_ENUM;
271
+ rider_revenue_per_meter: number;
272
+ static_rider_revenue_multiplier: number;
273
+ min_service_fee_order_value: number;
274
+ packaging_charges_free_over: number;
275
+ min_packaging_charges_order_value: number;
276
+ cash_in_hand_limit: number;
277
+ track_order_number_by: TRACK_ORDER_NUMBER_ENUM;
278
+ order_number_grouping_type: ORDER_NUMBER_GROUPING_TYPE_ENUM;
279
+ web_show_featured_items: boolean;
280
+ featured_category_name: string;
281
+ card_gst: number;
282
+ cash_gst: number;
283
+ default_gst_type: GST_TYPE_ENUM;
284
+ web_design_type: ONLINE_ORDERING_DESIGN_TYPE_ENUM;
285
+ dinein_service_fee: number;
286
+ send_sms_on_order_status: ORDER_STATUS_ENUM[];
287
+ send_email_on_order_status: ORDER_STATUS_ENUM[];
288
+ auto_sms_platforms: PLATFORMS_ENUM[];
289
+ auto_email_platforms: PLATFORMS_ENUM[];
290
+ auto_accept_order_for_platforms: PLATFORMS_ENUM[];
291
+ custom_payment_types: string[];
292
+ expense_payment_types: string[];
293
+ reservation_enabled: boolean;
294
+ integrations: string[];
295
+ exempt_gst_for_platforms: PLATFORMS_ENUM[];
296
+ enabled_rating_types: import("../../constants").RATING_TYPE_ENUM[];
297
+ order_completion_type: ORDER_COMPLETION_TYPE_ENUM;
298
+ fb_link?: string | null | undefined;
299
+ instagram_link?: string | null | undefined;
300
+ twitter_link?: string | null | undefined;
301
+ tiktok_link?: string | null | undefined;
302
+ dark_mode?: boolean | null | undefined;
303
+ delivery_areas_search_type?: import("../../constants").DELIVERY_AREAS_SEARCH_TYPE_ENUM | null | undefined;
304
+ is_surcharge_percentage?: boolean | null | undefined;
305
+ is_surcharge_taxable?: boolean | null | undefined;
306
+ is_service_fee_percentage?: boolean | null | undefined;
307
+ is_service_fee_taxable?: boolean | null | undefined;
308
+ exclude_discount_from_gst?: boolean | null | undefined;
309
+ apply_service_fee_on_original_price?: boolean | null | undefined;
310
+ is_gst_inclusive?: boolean | null | undefined;
311
+ hide_gst_value?: boolean | null | undefined;
312
+ tax_invoice_provider?: import("../../constants").TAX_INVOICE_PROVIDER_ENUM | null | undefined;
313
+ tax_invoice_generation_id?: string | null | undefined;
314
+ _tax_invoice_generation_token?: string | null | undefined;
315
+ pos_pre_ordering_days?: number | null | undefined;
316
+ pos_accedental_touch_protection_enabled?: boolean | null | undefined;
317
+ web_pre_ordering_days?: number | null | undefined;
318
+ max_preorder_delivery_minutes?: number | null | undefined;
319
+ max_preorder_takeaway_minutes?: number | null | undefined;
320
+ web_enable_pre_ordering?: boolean | null | undefined;
321
+ web_pre_ordering_visibility_minutes?: number | null | undefined;
322
+ rider_pickup_food_image_mandatory?: boolean | null | undefined;
323
+ rider_dropoff_food_image_mandatory?: boolean | null | undefined;
324
+ disable_reason_for_discount?: boolean | null | undefined;
325
+ card_processing_provider?: import("../../constants").CARD_PROCESSING_PROVIDERS_ENUM | null | undefined;
326
+ card_processing_account_id?: string | null | undefined;
327
+ _card_processing_account_token?: string | null | undefined;
328
+ sms_processing_provider?: import("../../constants").SMS_PROCESSING_PROVIDERS_ENUM.NONE | null | undefined;
329
+ sms_processing_account_id?: string | null | undefined;
330
+ email_processing_provider?: import("../../constants").EMAIL_PROCESSING_PROVIDERS_ENUM.NONE | null | undefined;
331
+ email_processing_account_id?: string | null | undefined;
332
+ takeaway_is_pickup?: boolean | null | undefined;
333
+ ms_clarity_id?: string | null | undefined;
334
+ fb_pixel_id?: string | null | undefined;
335
+ gtm_id?: string | null | undefined;
336
+ web_hide_order_total_for_staff?: boolean | null | undefined;
337
+ apply_tax_on_complimentary_payment?: boolean | null | undefined;
338
+ web_auth_type?: import("../../constants").WEB_AUTH_TYPE_ENUM | null | undefined;
339
+ edit_settled_order?: boolean | null | undefined;
340
+ omit_offers_for_anonymous?: boolean | null | undefined;
341
+ playstore_url?: string | null | undefined;
342
+ appstore_url?: string | null | undefined;
343
+ subscription_expiry?: NativeDate | null | undefined;
344
+ digital_menu_images?: string[] | null | undefined;
345
+ web_slider_images?: string[] | null | undefined;
346
+ specials_name?: string | null | undefined;
347
+ receipt_qr_type?: import("../../constants").RECEIPT_QR_CODE_TYPE_ENUM | null | undefined;
348
+ menu_source?: string | null | undefined;
349
+ app_version?: string | null | undefined;
350
+ force_isolated_printing?: boolean | null | undefined;
351
+ }>> & import("mongoose").FlatRecord<{
352
+ createdAt: NativeDate;
353
+ updatedAt: NativeDate;
354
+ } & {
355
+ _id: string;
356
+ name: string;
357
+ createdAt: NativeDate;
358
+ updatedAt: NativeDate;
359
+ image_url: string;
360
+ brand_id: string;
361
+ active: boolean;
362
+ city: string;
363
+ country_code: COUNTRY_CODE_ENUM;
364
+ delivery_free_over: number;
365
+ business_website: string;
366
+ staff_ordering_domain: string;
367
+ public_business_name: string;
368
+ restaurant_address: string;
369
+ store_description: string;
370
+ web_favicon: string;
371
+ brand_color: string;
372
+ business_type: string;
373
+ web_enable_takeaway: boolean;
374
+ web_enable_delivery: boolean;
375
+ web_enable_dine_in: boolean;
376
+ country_name: COUNTRY_NAME_ENUM;
377
+ coordinates: number[];
378
+ web_cover_image: string;
379
+ provider_id: string;
380
+ packaging_charges: number;
381
+ tax_business_number: string;
382
+ support_email: string;
383
+ public_phone_numbers: string[];
384
+ currency_code: CURRENCY_CODE_ENUM;
385
+ currency_symbol: CURRENCY_SYMBOL_ENUM;
386
+ currency_name: CURRENCY_NAME_ENUM;
387
+ country_alpha_2: COUNTRY_ALPHA_2_ENUM;
388
+ country_alpha_3: COUNTRY_ALPHA_3_ENUM;
389
+ country_flag: COUNTRY_FLAG_ENUM;
390
+ operational_time_zone_offset_gmt: number;
391
+ operational_start_time: number;
392
+ operational_end_time: number;
393
+ alert_phone_numbers: string[];
394
+ alert_email_addresses: string[];
395
+ alert_when: string[];
396
+ google_review_link: string;
397
+ takeaway_time: number;
398
+ delivery_time: number;
399
+ enable_inventory: boolean;
400
+ pay_first_for_dine_in: boolean;
401
+ closed_store_message: string;
402
+ break_time_message: string;
403
+ announcement_message: string;
404
+ review_emails: string[];
405
+ review_phone_numbers: string[];
406
+ enabled_review_platforms: PLATFORMS_ENUM[];
407
+ payment_report_emails: string[];
408
+ pos_enable_internal_auth: boolean;
409
+ pos_enable_takeaway: boolean;
410
+ pos_enable_delivery: boolean;
411
+ pos_enable_dine_in: boolean;
412
+ pos_enable_drive_thru: boolean;
413
+ pos_enable_kiosk: boolean;
414
+ pos_opt_in_for_holiday_surcharge: boolean;
415
+ pos_holiday_surcharge: number;
416
+ pos_enable_card_payments: boolean;
417
+ pos_min_takeaway_order_value: number;
418
+ pos_end_seating_when_order_paid_off: boolean;
419
+ web_charge_customer_for_online_processing: boolean;
420
+ web_allow_ordering_till_closing_time: boolean;
421
+ default_prep_minutes: number;
422
+ web_opt_in_for_holiday_surcharge: boolean;
423
+ web_holiday_surcharge: number;
424
+ web_enable_cash_payments_takeaway: boolean;
425
+ web_enable_cash_payments_delivery: boolean;
426
+ web_enable_cash_payments_dine_in: boolean;
427
+ web_min_takeaway_order_value: number;
428
+ web_max_cash_order_value: number;
429
+ web_stop_taking_orders: {
430
+ date: NativeDate;
431
+ order_types: string[];
432
+ };
433
+ web_unpaid_payment_types: string[];
434
+ opt_in_for_radius_based_delivery: boolean;
435
+ min_delivery_order_value: number;
436
+ delivery_radius: number;
437
+ delivery_min_cost: number;
438
+ delivery_min_cost_distance_mtrs: number;
439
+ delivery_cost_per_meter: number;
440
+ delivery_order_value_per_meter: number;
441
+ static_delivery_cost_multiplier: number;
442
+ rider_revenue_type: RIDER_FEE_TYPE_ENUM;
443
+ rider_revenue_per_meter: number;
444
+ static_rider_revenue_multiplier: number;
445
+ min_service_fee_order_value: number;
446
+ packaging_charges_free_over: number;
447
+ min_packaging_charges_order_value: number;
448
+ cash_in_hand_limit: number;
449
+ track_order_number_by: TRACK_ORDER_NUMBER_ENUM;
450
+ order_number_grouping_type: ORDER_NUMBER_GROUPING_TYPE_ENUM;
451
+ web_show_featured_items: boolean;
452
+ featured_category_name: string;
453
+ card_gst: number;
454
+ cash_gst: number;
455
+ default_gst_type: GST_TYPE_ENUM;
456
+ web_design_type: ONLINE_ORDERING_DESIGN_TYPE_ENUM;
457
+ dinein_service_fee: number;
458
+ send_sms_on_order_status: ORDER_STATUS_ENUM[];
459
+ send_email_on_order_status: ORDER_STATUS_ENUM[];
460
+ auto_sms_platforms: PLATFORMS_ENUM[];
461
+ auto_email_platforms: PLATFORMS_ENUM[];
462
+ auto_accept_order_for_platforms: PLATFORMS_ENUM[];
463
+ custom_payment_types: string[];
464
+ expense_payment_types: string[];
465
+ reservation_enabled: boolean;
466
+ integrations: string[];
467
+ exempt_gst_for_platforms: PLATFORMS_ENUM[];
468
+ enabled_rating_types: import("../../constants").RATING_TYPE_ENUM[];
469
+ order_completion_type: ORDER_COMPLETION_TYPE_ENUM;
470
+ fb_link?: string | null | undefined;
471
+ instagram_link?: string | null | undefined;
472
+ twitter_link?: string | null | undefined;
473
+ tiktok_link?: string | null | undefined;
474
+ dark_mode?: boolean | null | undefined;
475
+ delivery_areas_search_type?: import("../../constants").DELIVERY_AREAS_SEARCH_TYPE_ENUM | null | undefined;
476
+ is_surcharge_percentage?: boolean | null | undefined;
477
+ is_surcharge_taxable?: boolean | null | undefined;
478
+ is_service_fee_percentage?: boolean | null | undefined;
479
+ is_service_fee_taxable?: boolean | null | undefined;
480
+ exclude_discount_from_gst?: boolean | null | undefined;
481
+ apply_service_fee_on_original_price?: boolean | null | undefined;
482
+ is_gst_inclusive?: boolean | null | undefined;
483
+ hide_gst_value?: boolean | null | undefined;
484
+ tax_invoice_provider?: import("../../constants").TAX_INVOICE_PROVIDER_ENUM | null | undefined;
485
+ tax_invoice_generation_id?: string | null | undefined;
486
+ _tax_invoice_generation_token?: string | null | undefined;
487
+ pos_pre_ordering_days?: number | null | undefined;
488
+ pos_accedental_touch_protection_enabled?: boolean | null | undefined;
489
+ web_pre_ordering_days?: number | null | undefined;
490
+ max_preorder_delivery_minutes?: number | null | undefined;
491
+ max_preorder_takeaway_minutes?: number | null | undefined;
492
+ web_enable_pre_ordering?: boolean | null | undefined;
493
+ web_pre_ordering_visibility_minutes?: number | null | undefined;
494
+ rider_pickup_food_image_mandatory?: boolean | null | undefined;
495
+ rider_dropoff_food_image_mandatory?: boolean | null | undefined;
496
+ disable_reason_for_discount?: boolean | null | undefined;
497
+ card_processing_provider?: import("../../constants").CARD_PROCESSING_PROVIDERS_ENUM | null | undefined;
498
+ card_processing_account_id?: string | null | undefined;
499
+ _card_processing_account_token?: string | null | undefined;
500
+ sms_processing_provider?: import("../../constants").SMS_PROCESSING_PROVIDERS_ENUM.NONE | null | undefined;
501
+ sms_processing_account_id?: string | null | undefined;
502
+ email_processing_provider?: import("../../constants").EMAIL_PROCESSING_PROVIDERS_ENUM.NONE | null | undefined;
503
+ email_processing_account_id?: string | null | undefined;
504
+ takeaway_is_pickup?: boolean | null | undefined;
505
+ ms_clarity_id?: string | null | undefined;
506
+ fb_pixel_id?: string | null | undefined;
507
+ gtm_id?: string | null | undefined;
508
+ web_hide_order_total_for_staff?: boolean | null | undefined;
509
+ apply_tax_on_complimentary_payment?: boolean | null | undefined;
510
+ web_auth_type?: import("../../constants").WEB_AUTH_TYPE_ENUM | null | undefined;
511
+ edit_settled_order?: boolean | null | undefined;
512
+ omit_offers_for_anonymous?: boolean | null | undefined;
513
+ playstore_url?: string | null | undefined;
514
+ appstore_url?: string | null | undefined;
515
+ subscription_expiry?: NativeDate | null | undefined;
516
+ digital_menu_images?: string[] | null | undefined;
517
+ web_slider_images?: string[] | null | undefined;
518
+ specials_name?: string | null | undefined;
519
+ receipt_qr_type?: import("../../constants").RECEIPT_QR_CODE_TYPE_ENUM | null | undefined;
520
+ menu_source?: string | null | undefined;
521
+ app_version?: string | null | undefined;
522
+ force_isolated_printing?: boolean | null | undefined;
523
+ }> & Required<{
524
+ _id: string;
525
+ }> & {
526
+ __v: number;
527
+ }>;
528
+ export declare const TENANTS_COLLECTION_NAME = "tenants";