@managesome/eposmatic-toolkit 0.4.68 → 0.4.69
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.
|
@@ -219,6 +219,8 @@ export const CUSTOMER_COLLECTION_NAME = 'customers';
|
|
|
219
219
|
* be passed straight to `.hint()`.
|
|
220
220
|
* - `_id`: unique primary key.
|
|
221
221
|
* - `brand_id__phone_number`: per-brand customer lookups by phone number.
|
|
222
|
+
* - `brand_id__email`: per-brand customer lookups by email (email/Google login).
|
|
223
|
+
* - `brand_id__uid`: per-brand customer lookups by Firebase uid.
|
|
222
224
|
* - `brand_id__createdAt`: per-brand customer lookups newest first.
|
|
223
225
|
* - `brand_id__total_spent`: per-brand customer lookups by total spent.
|
|
224
226
|
* - `brand_id__total_orders`: per-brand customer lookups by total orders.
|
|
@@ -234,6 +236,14 @@ export const CUSTOMER_COLLECTION_INDEXES = {
|
|
|
234
236
|
brand_id: 1,
|
|
235
237
|
phone_number: 1,
|
|
236
238
|
}, // per-brand customer lookups by phone number
|
|
239
|
+
brand_id__email: {
|
|
240
|
+
brand_id: 1,
|
|
241
|
+
email: 1,
|
|
242
|
+
}, // per-brand customer lookups by email (email login / account resolution)
|
|
243
|
+
brand_id__uid: {
|
|
244
|
+
brand_id: 1,
|
|
245
|
+
uid: 1,
|
|
246
|
+
}, // per-brand customer lookups by Firebase uid
|
|
237
247
|
brand_id__createdAt: {
|
|
238
248
|
brand_id: 1,
|
|
239
249
|
createdAt: -1,
|
|
@@ -572,6 +572,8 @@ export declare const CUSTOMER_COLLECTION_NAME = "customers";
|
|
|
572
572
|
* be passed straight to `.hint()`.
|
|
573
573
|
* - `_id`: unique primary key.
|
|
574
574
|
* - `brand_id__phone_number`: per-brand customer lookups by phone number.
|
|
575
|
+
* - `brand_id__email`: per-brand customer lookups by email (email/Google login).
|
|
576
|
+
* - `brand_id__uid`: per-brand customer lookups by Firebase uid.
|
|
575
577
|
* - `brand_id__createdAt`: per-brand customer lookups newest first.
|
|
576
578
|
* - `brand_id__total_spent`: per-brand customer lookups by total spent.
|
|
577
579
|
* - `brand_id__total_orders`: per-brand customer lookups by total orders.
|
|
@@ -589,6 +591,14 @@ export declare const CUSTOMER_COLLECTION_INDEXES: {
|
|
|
589
591
|
brand_id: number;
|
|
590
592
|
phone_number: number;
|
|
591
593
|
};
|
|
594
|
+
brand_id__email: {
|
|
595
|
+
brand_id: number;
|
|
596
|
+
email: number;
|
|
597
|
+
};
|
|
598
|
+
brand_id__uid: {
|
|
599
|
+
brand_id: number;
|
|
600
|
+
uid: number;
|
|
601
|
+
};
|
|
592
602
|
brand_id__createdAt: {
|
|
593
603
|
brand_id: number;
|
|
594
604
|
createdAt: number;
|
|
@@ -222,6 +222,8 @@ exports.CUSTOMER_COLLECTION_NAME = 'customers';
|
|
|
222
222
|
* be passed straight to `.hint()`.
|
|
223
223
|
* - `_id`: unique primary key.
|
|
224
224
|
* - `brand_id__phone_number`: per-brand customer lookups by phone number.
|
|
225
|
+
* - `brand_id__email`: per-brand customer lookups by email (email/Google login).
|
|
226
|
+
* - `brand_id__uid`: per-brand customer lookups by Firebase uid.
|
|
225
227
|
* - `brand_id__createdAt`: per-brand customer lookups newest first.
|
|
226
228
|
* - `brand_id__total_spent`: per-brand customer lookups by total spent.
|
|
227
229
|
* - `brand_id__total_orders`: per-brand customer lookups by total orders.
|
|
@@ -237,6 +239,14 @@ exports.CUSTOMER_COLLECTION_INDEXES = {
|
|
|
237
239
|
brand_id: 1,
|
|
238
240
|
phone_number: 1,
|
|
239
241
|
}, // per-brand customer lookups by phone number
|
|
242
|
+
brand_id__email: {
|
|
243
|
+
brand_id: 1,
|
|
244
|
+
email: 1,
|
|
245
|
+
}, // per-brand customer lookups by email (email login / account resolution)
|
|
246
|
+
brand_id__uid: {
|
|
247
|
+
brand_id: 1,
|
|
248
|
+
uid: 1,
|
|
249
|
+
}, // per-brand customer lookups by Firebase uid
|
|
240
250
|
brand_id__createdAt: {
|
|
241
251
|
brand_id: 1,
|
|
242
252
|
createdAt: -1,
|