@managesome/eposmatic-toolkit 0.2.641 → 0.2.643

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.
@@ -305,13 +305,13 @@ exports.PAYMENT_CHARGES_MAP = new Map([
305
305
  [ENUMS_1.TRANSACTION_TYPE_ENUM.LOCAL]: {
306
306
  bank_percentage_charges: 0,
307
307
  bank_fixed_charges: 0,
308
- provider_percentage_charges: 100, // 1% PKR
308
+ provider_percentage_charges: 350, // 3.5% PKR
309
309
  provider_fixed_charges: 0, // 10 PKR
310
310
  },
311
311
  [ENUMS_1.TRANSACTION_TYPE_ENUM.INTERNATIONAL]: {
312
312
  bank_percentage_charges: 0,
313
313
  bank_fixed_charges: 0,
314
- provider_percentage_charges: 100, // 1% PKR
314
+ provider_percentage_charges: 350, // 3.5% PKR
315
315
  provider_fixed_charges: 0,
316
316
  },
317
317
  },
@@ -858,11 +858,6 @@ export declare enum ITEM_TRANSACTION_TYPE_ENUM {
858
858
  OUTBOUND = "OUTBOUND"
859
859
  }
860
860
  export declare const ALL_ITEM_TRANSACTION_TYPES: ITEM_TRANSACTION_TYPE_ENUM[];
861
- export declare enum TIME_RANGE_ENUM {
862
- COMBINED = "COMBINED",
863
- DAILY = "DAILY"
864
- }
865
- export declare const ALL_TIME_RANGE_ENUMS: TIME_RANGE_ENUM[];
866
861
  export declare enum MULTI_TENANT_WEBSITE_TYPE_ENUM {
867
862
  DEFAULT = "DEFAULT",
868
863
  BRANCH_FIRST = "BRANCH_FIRST",
@@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.COUNTRY_NAME_ENUM = exports.ALL_COUNTRY_ALPHA_3_TYPES = exports.COUNTRY_ALPHA_3_ENUM = exports.ALL_COUNTRY_ALPHA_2_TYPES = exports.COUNTRY_ALPHA_2_ENUM = exports.ALL_COUNTRY_CODES = exports.COUNTRY_CODE_ENUM = exports.ALL_CURRENCY_SYMBOLS = exports.CURRENCY_SYMBOL_ENUM = exports.ALL_CURRENCY_NAMES = exports.CURRENCY_NAME_ENUM = exports.ALL_CURRENCY_CODES = exports.CURRENCY_CODE_ENUM = exports.ALL_DAY_INDEX = exports.DAY_INDEX_ENUM = exports.ALL_INVENTORY_UNIT_TYPES = exports.INVENTORY_ITEM_UNIT_ENUM = exports.ALL_DIETARY_PREFERENCES = exports.ITEM_DIETARY_PREFERENCE_ENUM = exports.ALL_CAVEATS = exports.ITEM_CAVEATS_ENUM = exports.ALL_PAYMENT_STATUS = exports.PAYMENT_STATUS_ENUM = exports.ALL_ORDER_STATUS_NAMES = exports.ORDER_STATUS_ENUM = exports.TRANSACTION_TYPE_ENUM = exports.ALL_CARD_PROCESSING_PROVIDERS = exports.CARD_PROCESSING_PROVIDERS_ENUM = exports.ALL_TERMINAL_PROVIDER_NAMES = exports.TERMINAL_PROVIDER_ENUM = exports.ALL_PAYMENT_PROVIDERS = exports.PAYMENT_PROVIDERS_ENUM = exports.ALL_TERMINAL_PAYMENT_TYPE_NAMES = exports.TERMINAL_PAYMENT_TYPE_ENUM = exports.PaymentTypeDescriptions = exports.ALL_PAYMENT_TYPE_NAMES = exports.PAYMENT_TYPE_ENUM = exports.ALL_API_STATUS_NAMES = exports.API_STATUS_ENUM = exports.ALL_INTEGRATIONS = exports.INTEGRATIONS_ENUM = exports.PLATFORM_NAMES = exports.PLATFORMS_BY_ORDER_FROM = exports.PLATFORMS_BY_ORDER_TYPE = exports.ALL_PLATFORMS = exports.PLATFORMS_ENUM = exports.ALL_ORDER_TYPE_NAMES = exports.ORDER_TYPE_ENUM = exports.ALL_ORDER_FROM_NAMES = exports.ORDER_FROM_ENUM = void 0;
4
4
  exports.EMAIL_STATUS_ENUM = exports.ALL_COMMUNICATION_CHANNELS = exports.COMMUNICATION_CHANNEL_ENUM = exports.ALL_EMAIL_DOCUMENT_KINDS = exports.EMAIL_DOCUMENT_KIND_ENUM = exports.ALL_EMAIL_PROCESSING_PROVIDERS = exports.EMAIL_PROCESSING_PROVIDERS_ENUM = exports.ALL_SMS_PROCESSING_PROVIDERS = exports.SMS_PROCESSING_PROVIDERS_ENUM = exports.ALL_SUPPORT_SPECIALIST_PERMISSIONS = exports.ALL_MODERATOR_PERMISSIONS = exports.ALL_USER_PERMISSIONS = exports.USER_PERMISSIONS_ENUM = exports.ALL_REWARDS_USAGE_REF_TYPES = exports.REWARDS_USAGE_REF_TYPE_ENUM = exports.ALL_PATHWAY_TO_UNLOCK_TYPE_ORDERS_SCOPES = exports.PATHWAY_TO_UNLOCK_TYPE_ORDERS_SCOPE_ENUM = exports.ALL_PATHWAY_TO_UNLOCK_TYPES = exports.PATHWAY_TO_UNLOCK_TYPE_ENUM = exports.ALL_MYSTERY_GIFT_POPUP_TYPES = exports.MYSTERY_GIFT_POPUP_TYPE_ENUM = exports.ALL_MYSTERY_GIFT_TYPES = exports.MYSTERY_GIFT_TYPE_ENUM = exports.ALL_GIFT_CARD_REWARD_TYPES = exports.GIFT_CARD_REWARD_TYPE_ENUM = exports.ALL_CUSTOMER_REDEMPTION_TYPES = exports.CUSTOMER_REDEMPTION_TYPE_ENUM = exports.ALL_CUSTOMER_REDEMPTION_SOURCE_TYPES = exports.CUSTOMER_REDEMPTION_SOURCE_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 = exports.ALL_CATEGORY_DISPLAY_TYPES = exports.CATEGORY_DISPLAY_TYPE_ENUM = exports.ALL_PAYMENT_METHOD_EXPECTED = exports.PAYMENT_METHOD_EXPECTED_ENUM = exports.ALL_WEB_UNPAID_PAYMENT_TYPES = exports.WEB_UNPAID_PAYMENT_TYPE_ENUM = exports.ALL_COUNTRY_FLAG_TYPES = exports.COUNTRY_FLAG_ENUM = exports.ALL_COUNTRY_NAME_TYPES = void 0;
5
5
  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.WHITELISTED_API_SMS_COUNTRY_CODES = 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 = 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_STATUS = void 0;
6
- exports.MODIFIER_OPTION_REF_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_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_PURCHASE_ORDER_ITEM_TYPES = exports.VOID_PURCHASE_ORDER_ITEM_TYPE_ENUM = exports.ALL_VOID_ORDER_ITEM_TYPES = exports.VOID_ORDER_ITEM_TYPE_ENUM = exports.COMPARISON_REPORT_TYPE_ENUM = 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 = void 0;
7
- exports.HR_BIOMETRIC_ENROLLMENT_TYPE_ENUM = exports.ALL_HR_CHECK_IN_METHOD_NAMES = exports.HR_CHECK_IN_METHOD_ENUM = exports.ALL_HR_ATTENDANCE_STATUS_NAMES = exports.HR_ATTENDANCE_STATUS_ENUM = exports.ALL_HR_EMPLOYMENT_STATUS_NAMES = exports.HR_EMPLOYMENT_STATUS_ENUM = exports.ALL_INTERNAL_CUSTOMER_PAYMENT_METHOD_NAMES = exports.INTERNAL_CUSTOMER_PAYMENT_METHOD_ENUM = exports.ALL_INTERNAL_CUSTOMER_SUBSCRIPTION_SERVICE_NAMES = exports.INTERNAL_CUSTOMER_SUBSCRIPTION_SERVICE_ENUM = exports.ALL_INTERNAL_CUSTOMER_SUBSCRIPTION_PLAN_NAMES = exports.INTERNAL_CUSTOMER_SUBSCRIPTION_PLAN_ENUM = exports.ALL_INTERNAL_CUSTOMER_BILLING_CYCLE_NAMES = exports.INTERNAL_CUSTOMER_BILLING_CYCLE_ENUM = exports.ALL_INTERNAL_CUSTOMER_TYPE_NAMES = exports.INTERNAL_CUSTOMER_TYPE_ENUM = exports.ALL_INTERNAL_INVOICE_TYPE_NAMES = exports.INTERNAL_INVOICE_TYPE_ENUM = exports.ALL_INTERNAL_INVOICE_STATUS_NAMES = exports.INTERNAL_INVOICE_STATUS_ENUM = exports.ALL_SUBSCRIPTION_HARDWARE_NAMES = exports.SUBSCRIPTION_HARDWARE_ENUM = exports.ALL_CUSTOMER_TARGET_MODES = exports.CUSTOMER_TARGET_MODE_ENUM = exports.ALL_WALLET_ASSIGNMENT_BEHAVIORS = exports.WALLET_ASSIGNMENT_BEHAVIOR_ENUM = exports.ALL_WALLET_ASSET_TYPES = exports.WALLET_ASSET_TYPE_ENUM = 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 = exports.ALL_CASH_IN_OUT_REFS = exports.CASH_IN_OUT_REF_ENUM = 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 = void 0;
8
- exports.ALL_HR_EMPLOYEE_DOCUMENT_TYPES = exports.HR_EMPLOYEE_DOCUMENT_TYPE_ENUM = exports.ALL_HR_SHIFT_STATUS_NAMES = exports.HR_SHIFT_STATUS_ENUM = exports.ALL_HR_SHIFT_TYPE_NAMES = exports.HR_SHIFT_TYPE_ENUM = exports.ALL_HR_BIOMETRIC_ENROLLMENT_TYPE_NAMES = void 0;
6
+ exports.POS_DAY_STATUS_ENUM = exports.ALL_MODIFIER_OPTION_REF_TYPES = exports.MODIFIER_OPTION_REF_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_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_PURCHASE_ORDER_ITEM_TYPES = exports.VOID_PURCHASE_ORDER_ITEM_TYPE_ENUM = exports.ALL_VOID_ORDER_ITEM_TYPES = exports.VOID_ORDER_ITEM_TYPE_ENUM = exports.COMPARISON_REPORT_TYPE_ENUM = exports.ALL_MULTI_TENANT_WEBSITE_TYPES = exports.MULTI_TENANT_WEBSITE_TYPE_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 = void 0;
7
+ exports.HR_SHIFT_TYPE_ENUM = exports.ALL_HR_BIOMETRIC_ENROLLMENT_TYPE_NAMES = exports.HR_BIOMETRIC_ENROLLMENT_TYPE_ENUM = exports.ALL_HR_CHECK_IN_METHOD_NAMES = exports.HR_CHECK_IN_METHOD_ENUM = exports.ALL_HR_ATTENDANCE_STATUS_NAMES = exports.HR_ATTENDANCE_STATUS_ENUM = exports.ALL_HR_EMPLOYMENT_STATUS_NAMES = exports.HR_EMPLOYMENT_STATUS_ENUM = exports.ALL_INTERNAL_CUSTOMER_PAYMENT_METHOD_NAMES = exports.INTERNAL_CUSTOMER_PAYMENT_METHOD_ENUM = exports.ALL_INTERNAL_CUSTOMER_SUBSCRIPTION_SERVICE_NAMES = exports.INTERNAL_CUSTOMER_SUBSCRIPTION_SERVICE_ENUM = exports.ALL_INTERNAL_CUSTOMER_SUBSCRIPTION_PLAN_NAMES = exports.INTERNAL_CUSTOMER_SUBSCRIPTION_PLAN_ENUM = exports.ALL_INTERNAL_CUSTOMER_BILLING_CYCLE_NAMES = exports.INTERNAL_CUSTOMER_BILLING_CYCLE_ENUM = exports.ALL_INTERNAL_CUSTOMER_TYPE_NAMES = exports.INTERNAL_CUSTOMER_TYPE_ENUM = exports.ALL_INTERNAL_INVOICE_TYPE_NAMES = exports.INTERNAL_INVOICE_TYPE_ENUM = exports.ALL_INTERNAL_INVOICE_STATUS_NAMES = exports.INTERNAL_INVOICE_STATUS_ENUM = exports.ALL_SUBSCRIPTION_HARDWARE_NAMES = exports.SUBSCRIPTION_HARDWARE_ENUM = exports.ALL_CUSTOMER_TARGET_MODES = exports.CUSTOMER_TARGET_MODE_ENUM = exports.ALL_WALLET_ASSIGNMENT_BEHAVIORS = exports.WALLET_ASSIGNMENT_BEHAVIOR_ENUM = exports.ALL_WALLET_ASSET_TYPES = exports.WALLET_ASSET_TYPE_ENUM = 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 = exports.ALL_CASH_IN_OUT_REFS = exports.CASH_IN_OUT_REF_ENUM = 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 = void 0;
8
+ exports.ALL_HR_EMPLOYEE_DOCUMENT_TYPES = exports.HR_EMPLOYEE_DOCUMENT_TYPE_ENUM = exports.ALL_HR_SHIFT_STATUS_NAMES = exports.HR_SHIFT_STATUS_ENUM = exports.ALL_HR_SHIFT_TYPE_NAMES = void 0;
9
9
  var ORDER_FROM_ENUM;
10
10
  (function (ORDER_FROM_ENUM) {
11
11
  ORDER_FROM_ENUM["WEB"] = "WEB";
@@ -1467,13 +1467,6 @@ var ITEM_TRANSACTION_TYPE_ENUM;
1467
1467
  })(ITEM_TRANSACTION_TYPE_ENUM || (exports.ITEM_TRANSACTION_TYPE_ENUM = ITEM_TRANSACTION_TYPE_ENUM = {}));
1468
1468
  exports.ALL_ITEM_TRANSACTION_TYPES = Object.values(ITEM_TRANSACTION_TYPE_ENUM);
1469
1469
  // ======================>> <<====================== //
1470
- var TIME_RANGE_ENUM;
1471
- (function (TIME_RANGE_ENUM) {
1472
- TIME_RANGE_ENUM["COMBINED"] = "COMBINED";
1473
- TIME_RANGE_ENUM["DAILY"] = "DAILY";
1474
- })(TIME_RANGE_ENUM || (exports.TIME_RANGE_ENUM = TIME_RANGE_ENUM = {}));
1475
- exports.ALL_TIME_RANGE_ENUMS = Object.values(TIME_RANGE_ENUM);
1476
- // ======================>> <<====================== //
1477
1470
  var MULTI_TENANT_WEBSITE_TYPE_ENUM;
1478
1471
  (function (MULTI_TENANT_WEBSITE_TYPE_ENUM) {
1479
1472
  MULTI_TENANT_WEBSITE_TYPE_ENUM["DEFAULT"] = "DEFAULT";
@@ -465,3 +465,58 @@ export declare const CustomersSchema: Schema<any, import("mongoose").Model<any,
465
465
  __v: number;
466
466
  }>;
467
467
  export declare const CUSTOMER_COLLECTION_NAME = "customers";
468
+ /**
469
+ * Describes the indexes for `customers`. Values are Mongo key patterns that can
470
+ * be passed straight to `.hint()`.
471
+ * - `_id`: unique primary key.
472
+ * - `brand_id__phone_number`: per-brand customer lookups by phone number.
473
+ * - `brand_id__createdAt`: per-brand customer lookups newest first.
474
+ * - `brand_id__total_spent`: per-brand customer lookups by total spent.
475
+ * - `brand_id__total_orders`: per-brand customer lookups by total orders.
476
+ * - `brand_id__loyalty_points`: per-brand customer lookups by loyalty points.
477
+ * - `brand_id__cashback_balance`: per-brand customer lookups by cashback.
478
+ * - `brand_id__last_order_at`: per-brand customer lookups by last order time.
479
+ * - `brand_id__gift_cards`: per-brand customer lookups by gift cards.
480
+ * - `brand_id__voucher_codes`: per-brand customer lookups by voucher codes.
481
+ */
482
+ export declare const CUSTOMER_COLLECTION_INDEXES: {
483
+ _id: {
484
+ _id: number;
485
+ };
486
+ brand_id__phone_number: {
487
+ brand_id: number;
488
+ phone_number: number;
489
+ };
490
+ brand_id__createdAt: {
491
+ brand_id: number;
492
+ createdAt: number;
493
+ };
494
+ brand_id__total_spent: {
495
+ brand_id: number;
496
+ total_spent: number;
497
+ };
498
+ brand_id__total_orders: {
499
+ brand_id: number;
500
+ total_orders: number;
501
+ };
502
+ brand_id__loyalty_points: {
503
+ brand_id: number;
504
+ loyalty_points: number;
505
+ };
506
+ brand_id__cashback_balance: {
507
+ brand_id: number;
508
+ cashback_balance: number;
509
+ };
510
+ brand_id__last_order_at: {
511
+ brand_id: number;
512
+ last_order_at: number;
513
+ };
514
+ brand_id__gift_cards: {
515
+ brand_id: number;
516
+ gift_cards: number;
517
+ };
518
+ brand_id__voucher_codes: {
519
+ brand_id: number;
520
+ voucher_codes: number;
521
+ };
522
+ };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CUSTOMER_COLLECTION_NAME = exports.CustomersSchema = void 0;
3
+ exports.CUSTOMER_COLLECTION_INDEXES = exports.CUSTOMER_COLLECTION_NAME = exports.CustomersSchema = void 0;
4
4
  const mongoose_1 = require("mongoose");
5
5
  const constants_1 = require("../../constants");
6
6
  const common_models_1 = require("./common-models");
@@ -213,3 +213,56 @@ exports.CustomersSchema = new mongoose_1.Schema({
213
213
  minimize: false,
214
214
  });
215
215
  exports.CUSTOMER_COLLECTION_NAME = 'customers';
216
+ /**
217
+ * Describes the indexes for `customers`. Values are Mongo key patterns that can
218
+ * be passed straight to `.hint()`.
219
+ * - `_id`: unique primary key.
220
+ * - `brand_id__phone_number`: per-brand customer lookups by phone number.
221
+ * - `brand_id__createdAt`: per-brand customer lookups newest first.
222
+ * - `brand_id__total_spent`: per-brand customer lookups by total spent.
223
+ * - `brand_id__total_orders`: per-brand customer lookups by total orders.
224
+ * - `brand_id__loyalty_points`: per-brand customer lookups by loyalty points.
225
+ * - `brand_id__cashback_balance`: per-brand customer lookups by cashback.
226
+ * - `brand_id__last_order_at`: per-brand customer lookups by last order time.
227
+ * - `brand_id__gift_cards`: per-brand customer lookups by gift cards.
228
+ * - `brand_id__voucher_codes`: per-brand customer lookups by voucher codes.
229
+ */
230
+ exports.CUSTOMER_COLLECTION_INDEXES = {
231
+ _id: { _id: 1 }, // Unique Index
232
+ brand_id__phone_number: {
233
+ brand_id: 1,
234
+ phone_number: 1,
235
+ }, // per-brand customer lookups by phone number
236
+ brand_id__createdAt: {
237
+ brand_id: 1,
238
+ createdAt: -1,
239
+ }, // per-brand customer lookups newest first
240
+ brand_id__total_spent: {
241
+ brand_id: 1,
242
+ total_spent: -1,
243
+ }, // per-brand customer lookups by total spent
244
+ brand_id__total_orders: {
245
+ brand_id: 1,
246
+ total_orders: -1,
247
+ }, // per-brand customer lookups by total orders
248
+ brand_id__loyalty_points: {
249
+ brand_id: 1,
250
+ loyalty_points: 1,
251
+ }, // per-brand customer lookups by loyalty points
252
+ brand_id__cashback_balance: {
253
+ brand_id: 1,
254
+ cashback_balance: 1,
255
+ }, // per-brand customer lookups by cashback
256
+ brand_id__last_order_at: {
257
+ brand_id: 1,
258
+ last_order_at: 1,
259
+ }, // per-brand customer lookups by last order time
260
+ brand_id__gift_cards: {
261
+ brand_id: 1,
262
+ gift_cards: 1,
263
+ }, // per-brand customer lookups by gift cards
264
+ brand_id__voucher_codes: {
265
+ brand_id: 1,
266
+ voucher_codes: 1,
267
+ }, // per-brand customer lookups by voucher codes
268
+ };
@@ -127,3 +127,24 @@ export declare const DeliveriesSchema: Schema<any, import("mongoose").Model<any,
127
127
  __v: number;
128
128
  }>;
129
129
  export declare const DELIVERIES_COLLECTION_NAME = "deliveries";
130
+ /**
131
+ * Describes the indexes for `deliveries`. Values are Mongo key patterns that can
132
+ * be passed straight to `.hint()`.
133
+ * - `_id`: unique primary key.
134
+ * - `rider_id__createdAt`: per-rider delivery lookups newest first.
135
+ * - `order_id__rider_id`: UNIQUE per (order_id, rider_id) — one delivery per
136
+ * order per rider.
137
+ */
138
+ export declare const DELIVERIES_COLLECTION_INDEXES: {
139
+ _id: {
140
+ _id: number;
141
+ };
142
+ order_id__rider_id: {
143
+ order_id: number;
144
+ rider_id: number;
145
+ };
146
+ rider_id__createdAt: {
147
+ rider_id: number;
148
+ createdAt: number;
149
+ };
150
+ };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DELIVERIES_COLLECTION_NAME = exports.DeliveriesSchema = void 0;
3
+ exports.DELIVERIES_COLLECTION_INDEXES = exports.DELIVERIES_COLLECTION_NAME = exports.DeliveriesSchema = void 0;
4
4
  const mongoose_1 = require("mongoose");
5
5
  const constants_1 = require("../../constants");
6
6
  exports.DeliveriesSchema = new mongoose_1.Schema({
@@ -119,3 +119,22 @@ exports.DeliveriesSchema = new mongoose_1.Schema({
119
119
  minimize: false,
120
120
  });
121
121
  exports.DELIVERIES_COLLECTION_NAME = 'deliveries';
122
+ /**
123
+ * Describes the indexes for `deliveries`. Values are Mongo key patterns that can
124
+ * be passed straight to `.hint()`.
125
+ * - `_id`: unique primary key.
126
+ * - `rider_id__createdAt`: per-rider delivery lookups newest first.
127
+ * - `order_id__rider_id`: UNIQUE per (order_id, rider_id) — one delivery per
128
+ * order per rider.
129
+ */
130
+ exports.DELIVERIES_COLLECTION_INDEXES = {
131
+ _id: { _id: 1 }, // Unique Index
132
+ order_id__rider_id: {
133
+ order_id: 1,
134
+ rider_id: 1,
135
+ }, // UNIQUE per (order_id, rider_id) — one delivery per order per rider
136
+ rider_id__createdAt: {
137
+ rider_id: 1,
138
+ createdAt: -1,
139
+ }, // per-rider delivery lookups newest first
140
+ };
@@ -63,3 +63,19 @@ export declare const DineinTableFingerprintSchema: Schema<any, import("mongoose"
63
63
  __v: number;
64
64
  }>;
65
65
  export declare const DINEIN_TABLES_FINGERPRINT_COLLECTION_NAME = "dinein_tables_fingerprints";
66
+ /**
67
+ * Describes the indexes for `dinein_tables_fingerprints`. Values are Mongo key
68
+ * patterns that can be passed straight to `.hint()`.
69
+ * - `_id`: unique primary key.
70
+ * - `tenant_id__createdAt`: per-tenant fingerprint lookups sorted by creation
71
+ * time, newest first.
72
+ */
73
+ export declare const DINEIN_TABLES_FINGERPRINT_COLLECTION_INDEXES: {
74
+ _id: {
75
+ _id: number;
76
+ };
77
+ tenant_id__createdAt: {
78
+ tenant_id: number;
79
+ createdAt: number;
80
+ };
81
+ };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DINEIN_TABLES_FINGERPRINT_COLLECTION_NAME = exports.DineinTableFingerprintSchema = void 0;
3
+ exports.DINEIN_TABLES_FINGERPRINT_COLLECTION_INDEXES = exports.DINEIN_TABLES_FINGERPRINT_COLLECTION_NAME = exports.DineinTableFingerprintSchema = void 0;
4
4
  const mongoose_1 = require("mongoose");
5
5
  const constants_1 = require("../../constants");
6
6
  exports.DineinTableFingerprintSchema = new mongoose_1.Schema({
@@ -83,3 +83,17 @@ exports.DineinTableFingerprintSchema = new mongoose_1.Schema({
83
83
  minimize: false,
84
84
  });
85
85
  exports.DINEIN_TABLES_FINGERPRINT_COLLECTION_NAME = 'dinein_tables_fingerprints';
86
+ /**
87
+ * Describes the indexes for `dinein_tables_fingerprints`. Values are Mongo key
88
+ * patterns that can be passed straight to `.hint()`.
89
+ * - `_id`: unique primary key.
90
+ * - `tenant_id__createdAt`: per-tenant fingerprint lookups sorted by creation
91
+ * time, newest first.
92
+ */
93
+ exports.DINEIN_TABLES_FINGERPRINT_COLLECTION_INDEXES = {
94
+ _id: { _id: 1 }, // Unique Index
95
+ tenant_id__createdAt: {
96
+ tenant_id: 1,
97
+ createdAt: -1,
98
+ }, // per-tenant fingerprint lookups by creation time, newest first
99
+ };
@@ -81,3 +81,30 @@ export declare const ExpenseDetailsSchema: Schema<any, import("mongoose").Model<
81
81
  __v: number;
82
82
  }>;
83
83
  export declare const EXPENSE_DETAILS_COLLECTION_NAME = "expense_details";
84
+ /**
85
+ * Describes the indexes for `expense_details`. Values are Mongo key patterns
86
+ * that can be passed straight to `.hint()`.
87
+ * - `_id`: unique primary key.
88
+ * - `tenant_id__expense_category_id`: per-tenant expense lookups by category.
89
+ * - `tenant_id__date_incurred`: per-tenant expense lookups sorted by date
90
+ * incurred, newest first.
91
+ * - `tenant_id__createdAt`: per-tenant expense lookups sorted by creation time,
92
+ * newest first.
93
+ */
94
+ export declare const EXPENSE_DETAILS_COLLECTION_INDEXES: {
95
+ _id: {
96
+ _id: number;
97
+ };
98
+ tenant_id__expense_category_id: {
99
+ tenant_id: number;
100
+ expense_category_id: number;
101
+ };
102
+ tenant_id__date_incurred: {
103
+ tenant_id: number;
104
+ date_incurred: number;
105
+ };
106
+ tenant_id__createdAt: {
107
+ tenant_id: number;
108
+ createdAt: number;
109
+ };
110
+ };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EXPENSE_DETAILS_COLLECTION_NAME = exports.ExpenseDetailsSchema = void 0;
3
+ exports.EXPENSE_DETAILS_COLLECTION_INDEXES = exports.EXPENSE_DETAILS_COLLECTION_NAME = exports.ExpenseDetailsSchema = void 0;
4
4
  const mongoose_1 = require("mongoose");
5
5
  const constants_1 = require("../../constants");
6
6
  const ExpenseReacurringSchema = new mongoose_1.Schema({
@@ -106,3 +106,28 @@ exports.ExpenseDetailsSchema = new mongoose_1.Schema({
106
106
  minimize: false,
107
107
  });
108
108
  exports.EXPENSE_DETAILS_COLLECTION_NAME = 'expense_details';
109
+ /**
110
+ * Describes the indexes for `expense_details`. Values are Mongo key patterns
111
+ * that can be passed straight to `.hint()`.
112
+ * - `_id`: unique primary key.
113
+ * - `tenant_id__expense_category_id`: per-tenant expense lookups by category.
114
+ * - `tenant_id__date_incurred`: per-tenant expense lookups sorted by date
115
+ * incurred, newest first.
116
+ * - `tenant_id__createdAt`: per-tenant expense lookups sorted by creation time,
117
+ * newest first.
118
+ */
119
+ exports.EXPENSE_DETAILS_COLLECTION_INDEXES = {
120
+ _id: { _id: 1 }, // Unique Index
121
+ tenant_id__expense_category_id: {
122
+ tenant_id: 1,
123
+ expense_category_id: 1,
124
+ }, // per-tenant expense lookups by category
125
+ tenant_id__date_incurred: {
126
+ tenant_id: 1,
127
+ date_incurred: -1,
128
+ }, // per-tenant expense lookups by date incurred, newest first
129
+ tenant_id__createdAt: {
130
+ tenant_id: 1,
131
+ createdAt: -1,
132
+ }, // per-tenant expense lookups by creation time, newest first
133
+ };
@@ -87,3 +87,39 @@ export declare const InventoryTransactionsSchema: Schema<any, import("mongoose")
87
87
  __v: number;
88
88
  }>;
89
89
  export declare const INVENTORY_TRANSACTIONS_COLLECTION_NAME = "inventory_transactions";
90
+ /**
91
+ * Describes the indexes for `inventory_transactions`. Values are Mongo key
92
+ * patterns that can be passed straight to `.hint()`.
93
+ * - `_id`: unique primary key.
94
+ * - `order_id__tenant_id`: inventory-transaction lookups by order, scoped by
95
+ * tenant.
96
+ * - `tenant_id__inventory_code__createdAt`: per-tenant inventory transaction
97
+ * lookups by inventory code, newest first.
98
+ * - `tenant_id__createdAt`: per-tenant inventory transaction lookups newest
99
+ * first.
100
+ * - `tenant_id__order_id__ref_id`: UNIQUE per (tenant_id, order_id, ref_id) —
101
+ * one transaction per order ref.
102
+ */
103
+ export declare const INVENTORY_TRANSACTIONS_COLLECTION_INDEXES: {
104
+ _id: {
105
+ _id: number;
106
+ };
107
+ order_id__tenant_id: {
108
+ order_id: number;
109
+ tenant_id: number;
110
+ };
111
+ tenant_id__order_id__ref_id: {
112
+ tenant_id: number;
113
+ order_id: number;
114
+ ref_id: number;
115
+ };
116
+ tenant_id__inventory_code__createdAt: {
117
+ tenant_id: number;
118
+ inventory_code: number;
119
+ createdAt: number;
120
+ };
121
+ tenant_id__createdAt: {
122
+ tenant_id: number;
123
+ createdAt: number;
124
+ };
125
+ };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.INVENTORY_TRANSACTIONS_COLLECTION_NAME = exports.InventoryTransactionsSchema = void 0;
3
+ exports.INVENTORY_TRANSACTIONS_COLLECTION_INDEXES = exports.INVENTORY_TRANSACTIONS_COLLECTION_NAME = exports.InventoryTransactionsSchema = void 0;
4
4
  const mongoose_1 = require("mongoose");
5
5
  const constants_1 = require("../../constants");
6
6
  exports.InventoryTransactionsSchema = new mongoose_1.Schema({
@@ -116,3 +116,37 @@ exports.InventoryTransactionsSchema = new mongoose_1.Schema({
116
116
  minimize: false,
117
117
  });
118
118
  exports.INVENTORY_TRANSACTIONS_COLLECTION_NAME = 'inventory_transactions';
119
+ /**
120
+ * Describes the indexes for `inventory_transactions`. Values are Mongo key
121
+ * patterns that can be passed straight to `.hint()`.
122
+ * - `_id`: unique primary key.
123
+ * - `order_id__tenant_id`: inventory-transaction lookups by order, scoped by
124
+ * tenant.
125
+ * - `tenant_id__inventory_code__createdAt`: per-tenant inventory transaction
126
+ * lookups by inventory code, newest first.
127
+ * - `tenant_id__createdAt`: per-tenant inventory transaction lookups newest
128
+ * first.
129
+ * - `tenant_id__order_id__ref_id`: UNIQUE per (tenant_id, order_id, ref_id) —
130
+ * one transaction per order ref.
131
+ */
132
+ exports.INVENTORY_TRANSACTIONS_COLLECTION_INDEXES = {
133
+ _id: { _id: 1 }, // Unique Index
134
+ order_id__tenant_id: {
135
+ order_id: 1,
136
+ tenant_id: 1,
137
+ }, // inventory-transaction lookups by order, scoped by tenant
138
+ tenant_id__order_id__ref_id: {
139
+ tenant_id: 1,
140
+ order_id: 1,
141
+ ref_id: 1,
142
+ }, // UNIQUE per (tenant_id, order_id, ref_id) — one transaction per order ref
143
+ tenant_id__inventory_code__createdAt: {
144
+ tenant_id: 1,
145
+ inventory_code: 1,
146
+ createdAt: -1,
147
+ }, // per-tenant inventory transaction lookups by inventory code, newest first
148
+ tenant_id__createdAt: {
149
+ tenant_id: 1,
150
+ createdAt: -1,
151
+ }, // per-tenant inventory transaction lookups newest first
152
+ };
@@ -69,3 +69,30 @@ export declare const ItemTransactionsSchema: Schema<any, import("mongoose").Mode
69
69
  __v: number;
70
70
  }>;
71
71
  export declare const ITEM_TRANSACTIONS_COLLECTION_NAME = "item_transactions";
72
+ /**
73
+ * Describes the indexes for `item_transactions`. Values are Mongo key patterns
74
+ * that can be passed straight to `.hint()`.
75
+ * - `_id`: unique primary key.
76
+ * - `order_id__tenant_id`: item-transaction lookups by order, scoped by tenant.
77
+ * - `tenant_id__item_id__createdAt`: per-tenant item transaction lookups by
78
+ * item, newest first.
79
+ * - `tenant_id__createdAt`: per-tenant item transaction lookups newest first.
80
+ */
81
+ export declare const ITEM_TRANSACTIONS_COLLECTION_INDEXES: {
82
+ _id: {
83
+ _id: number;
84
+ };
85
+ order_id__tenant_id: {
86
+ order_id: number;
87
+ tenant_id: number;
88
+ };
89
+ tenant_id__item_id__createdAt: {
90
+ tenant_id: number;
91
+ item_id: number;
92
+ createdAt: number;
93
+ };
94
+ tenant_id__createdAt: {
95
+ tenant_id: number;
96
+ createdAt: number;
97
+ };
98
+ };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ITEM_TRANSACTIONS_COLLECTION_NAME = exports.ItemTransactionsSchema = void 0;
3
+ exports.ITEM_TRANSACTIONS_COLLECTION_INDEXES = exports.ITEM_TRANSACTIONS_COLLECTION_NAME = exports.ItemTransactionsSchema = void 0;
4
4
  const mongoose_1 = require("mongoose");
5
5
  const constants_1 = require("../../constants");
6
6
  exports.ItemTransactionsSchema = new mongoose_1.Schema({
@@ -93,3 +93,28 @@ exports.ItemTransactionsSchema = new mongoose_1.Schema({
93
93
  minimize: false,
94
94
  });
95
95
  exports.ITEM_TRANSACTIONS_COLLECTION_NAME = 'item_transactions';
96
+ /**
97
+ * Describes the indexes for `item_transactions`. Values are Mongo key patterns
98
+ * that can be passed straight to `.hint()`.
99
+ * - `_id`: unique primary key.
100
+ * - `order_id__tenant_id`: item-transaction lookups by order, scoped by tenant.
101
+ * - `tenant_id__item_id__createdAt`: per-tenant item transaction lookups by
102
+ * item, newest first.
103
+ * - `tenant_id__createdAt`: per-tenant item transaction lookups newest first.
104
+ */
105
+ exports.ITEM_TRANSACTIONS_COLLECTION_INDEXES = {
106
+ _id: { _id: 1 }, // Unique Index
107
+ order_id__tenant_id: {
108
+ order_id: 1,
109
+ tenant_id: 1,
110
+ }, // item-transaction lookups by order, scoped by tenant
111
+ tenant_id__item_id__createdAt: {
112
+ tenant_id: 1,
113
+ item_id: 1,
114
+ createdAt: -1,
115
+ }, // per-tenant item transaction lookups by item, newest first
116
+ tenant_id__createdAt: {
117
+ tenant_id: 1,
118
+ createdAt: -1,
119
+ }, // per-tenant item transaction lookups newest first
120
+ };
@@ -60,3 +60,19 @@ export declare const MarketingFingerprintSchema: Schema<any, import("mongoose").
60
60
  __v: number;
61
61
  }>;
62
62
  export declare const MARKETING_FINGERPRINT_COLLECTION_NAME = "marketing_fingerprints";
63
+ /**
64
+ * Describes the indexes for `marketing_fingerprints`. Values are Mongo key
65
+ * patterns that can be passed straight to `.hint()`.
66
+ * - `_id`: unique primary key.
67
+ * - `tenant_id__createdAt`: per-tenant fingerprint lookups sorted by creation
68
+ * time, newest first.
69
+ */
70
+ export declare const MARKETING_FINGERPRINT_COLLECTION_INDEXES: {
71
+ _id: {
72
+ _id: number;
73
+ };
74
+ tenant_id__createdAt: {
75
+ tenant_id: number;
76
+ createdAt: number;
77
+ };
78
+ };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MARKETING_FINGERPRINT_COLLECTION_NAME = exports.MarketingFingerprintSchema = void 0;
3
+ exports.MARKETING_FINGERPRINT_COLLECTION_INDEXES = exports.MARKETING_FINGERPRINT_COLLECTION_NAME = exports.MarketingFingerprintSchema = void 0;
4
4
  const mongoose_1 = require("mongoose");
5
5
  const constants_1 = require("../../constants");
6
6
  exports.MarketingFingerprintSchema = new mongoose_1.Schema({
@@ -79,3 +79,17 @@ exports.MarketingFingerprintSchema = new mongoose_1.Schema({
79
79
  minimize: false,
80
80
  });
81
81
  exports.MARKETING_FINGERPRINT_COLLECTION_NAME = 'marketing_fingerprints';
82
+ /**
83
+ * Describes the indexes for `marketing_fingerprints`. Values are Mongo key
84
+ * patterns that can be passed straight to `.hint()`.
85
+ * - `_id`: unique primary key.
86
+ * - `tenant_id__createdAt`: per-tenant fingerprint lookups sorted by creation
87
+ * time, newest first.
88
+ */
89
+ exports.MARKETING_FINGERPRINT_COLLECTION_INDEXES = {
90
+ _id: { _id: 1 }, // Unique Index
91
+ tenant_id__createdAt: {
92
+ tenant_id: 1,
93
+ createdAt: -1,
94
+ }, // per-tenant fingerprint lookups by creation time, newest first
95
+ };
@@ -15427,6 +15427,8 @@ export declare const ORDERS_COLLECTION_NAME = "orders";
15427
15427
  * create with `partialFilterExpression: { source_tenant_id: { $exists: true } }`
15428
15428
  * (source_tenant_id is an optional string). Supports per-source-tenant order
15429
15429
  * lookups filtered by is_deleted, newest first.
15430
+ * - `tenant_id__is_deleted__consumer.phone__createdAt`: per-tenant order
15431
+ * lookups by consumer phone, filtered by is_deleted, newest first.
15430
15432
  */
15431
15433
  export declare const ORDERS_COLLECTION_INDEXES: {
15432
15434
  _id: {
@@ -15449,4 +15451,10 @@ export declare const ORDERS_COLLECTION_INDEXES: {
15449
15451
  localDate: number;
15450
15452
  createdAt: number;
15451
15453
  };
15454
+ tenant_id__is_deleted__consumer_phone__createdAt: {
15455
+ tenant_id: number;
15456
+ is_deleted: number;
15457
+ 'consumer.phone': number;
15458
+ createdAt: number;
15459
+ };
15452
15460
  };
@@ -988,6 +988,8 @@ exports.ORDERS_COLLECTION_NAME = 'orders';
988
988
  * create with `partialFilterExpression: { source_tenant_id: { $exists: true } }`
989
989
  * (source_tenant_id is an optional string). Supports per-source-tenant order
990
990
  * lookups filtered by is_deleted, newest first.
991
+ * - `tenant_id__is_deleted__consumer.phone__createdAt`: per-tenant order
992
+ * lookups by consumer phone, filtered by is_deleted, newest first.
991
993
  */
992
994
  exports.ORDERS_COLLECTION_INDEXES = {
993
995
  _id: { _id: 1 }, // Unique Index
@@ -1008,4 +1010,10 @@ exports.ORDERS_COLLECTION_INDEXES = {
1008
1010
  localDate: 1,
1009
1011
  createdAt: -1,
1010
1012
  }, // partial index (partialFilterExpression: { localDate: { $exists: true } }) — per-tenant local-date order lookups filtered by is_deleted, newest first
1013
+ tenant_id__is_deleted__consumer_phone__createdAt: {
1014
+ tenant_id: 1,
1015
+ is_deleted: 1,
1016
+ 'consumer.phone': 1,
1017
+ createdAt: -1,
1018
+ }, // per-tenant order lookups by consumer phone, filtered by is_deleted, newest first
1011
1019
  };
@@ -171,3 +171,49 @@ export declare const VoidOrderItemSchema: Schema<any, import("mongoose").Model<a
171
171
  __v: number;
172
172
  }>;
173
173
  export declare const VOID_ORDER_ITEMS_COLLECTION_NAME = "void_order_items";
174
+ /**
175
+ * Describes the indexes for `void_order_items`. Values are Mongo key patterns
176
+ * that can be passed straight to `.hint()`.
177
+ * - `_id`: unique primary key.
178
+ * - `item_id__order_id__order_item_id__tenant_id`: void-item lookups by item
179
+ * and order, scoped by the original order item and tenant.
180
+ * - `tenant_id__createdAt`: per-tenant void-item lookups sorted by creation
181
+ * time, newest first.
182
+ * - `tenant_id__staff_id__item_id__createdAt`: per-tenant void-item lookups by
183
+ * staff and item, newest first.
184
+ * - `tenant_id__item_id__createdAt`: per-tenant void-item lookups by item,
185
+ * newest first.
186
+ * - `tenant_id__staff_id__createdAt`: per-tenant void-item lookups by staff,
187
+ * newest first.
188
+ */
189
+ export declare const VOID_ORDER_ITEMS_COLLECTION_INDEXES: {
190
+ _id: {
191
+ _id: number;
192
+ };
193
+ item_id__order_id__order_item_id__tenant_id: {
194
+ item_id: number;
195
+ order_id: number;
196
+ order_item_id: number;
197
+ tenant_id: number;
198
+ };
199
+ tenant_id__createdAt: {
200
+ tenant_id: number;
201
+ createdAt: number;
202
+ };
203
+ tenant_id__staff_id__item_id__createdAt: {
204
+ tenant_id: number;
205
+ staff_id: number;
206
+ item_id: number;
207
+ createdAt: number;
208
+ };
209
+ tenant_id__item_id__createdAt: {
210
+ tenant_id: number;
211
+ item_id: number;
212
+ createdAt: number;
213
+ };
214
+ tenant_id__staff_id__createdAt: {
215
+ tenant_id: number;
216
+ staff_id: number;
217
+ createdAt: number;
218
+ };
219
+ };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.VOID_ORDER_ITEMS_COLLECTION_NAME = exports.VoidOrderItemSchema = void 0;
3
+ exports.VOID_ORDER_ITEMS_COLLECTION_INDEXES = exports.VOID_ORDER_ITEMS_COLLECTION_NAME = exports.VoidOrderItemSchema = void 0;
4
4
  const mongoose_1 = require("mongoose");
5
5
  const constants_1 = require("../../constants");
6
6
  const VoidOrderItemAdjustmentSchema = new mongoose_1.Schema({
@@ -167,3 +167,47 @@ exports.VoidOrderItemSchema = new mongoose_1.Schema({
167
167
  minimize: false,
168
168
  });
169
169
  exports.VOID_ORDER_ITEMS_COLLECTION_NAME = 'void_order_items';
170
+ /**
171
+ * Describes the indexes for `void_order_items`. Values are Mongo key patterns
172
+ * that can be passed straight to `.hint()`.
173
+ * - `_id`: unique primary key.
174
+ * - `item_id__order_id__order_item_id__tenant_id`: void-item lookups by item
175
+ * and order, scoped by the original order item and tenant.
176
+ * - `tenant_id__createdAt`: per-tenant void-item lookups sorted by creation
177
+ * time, newest first.
178
+ * - `tenant_id__staff_id__item_id__createdAt`: per-tenant void-item lookups by
179
+ * staff and item, newest first.
180
+ * - `tenant_id__item_id__createdAt`: per-tenant void-item lookups by item,
181
+ * newest first.
182
+ * - `tenant_id__staff_id__createdAt`: per-tenant void-item lookups by staff,
183
+ * newest first.
184
+ */
185
+ exports.VOID_ORDER_ITEMS_COLLECTION_INDEXES = {
186
+ _id: { _id: 1 }, // Unique Index
187
+ item_id__order_id__order_item_id__tenant_id: {
188
+ item_id: 1,
189
+ order_id: 1,
190
+ order_item_id: 1,
191
+ tenant_id: 1,
192
+ }, // void-item lookups by item and order, scoped by original order item and tenant
193
+ tenant_id__createdAt: {
194
+ tenant_id: 1,
195
+ createdAt: -1,
196
+ }, // per-tenant void-item lookups by creation time, newest first
197
+ tenant_id__staff_id__item_id__createdAt: {
198
+ tenant_id: 1,
199
+ staff_id: 1,
200
+ item_id: 1,
201
+ createdAt: -1,
202
+ }, // per-tenant void-item lookups by staff and item, newest first
203
+ tenant_id__item_id__createdAt: {
204
+ tenant_id: 1,
205
+ item_id: 1,
206
+ createdAt: -1,
207
+ }, // per-tenant void-item lookups by item, newest first
208
+ tenant_id__staff_id__createdAt: {
209
+ tenant_id: 1,
210
+ staff_id: 1,
211
+ createdAt: -1,
212
+ }, // per-tenant void-item lookups by staff, newest first
213
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@managesome/eposmatic-toolkit",
3
- "version": "0.2.641",
3
+ "version": "0.2.643",
4
4
  "description": "A Toolkit Library for Eposmatic",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",