@managesome/eposmatic-toolkit 0.2.634 → 0.2.635
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.
|
@@ -65,37 +65,29 @@ export declare const MESSAGING_DEVICE_COLLECTION_NAME = "messaging_devices";
|
|
|
65
65
|
* Describes the indexes for `messaging_devices`. Values are Mongo key patterns
|
|
66
66
|
* that can be passed straight to `.hint()`.
|
|
67
67
|
* - `_id`: unique primary key.
|
|
68
|
-
* - `domain__phone_number`: per-domain lookups by phone number.
|
|
69
68
|
* - `domain__uid__device_id`: per-domain lookups by uid and device id.
|
|
70
|
-
* - `domain__active__provider_id__uid__createdAt`: per-domain active devices
|
|
71
|
-
* by provider and uid, newest first.
|
|
72
69
|
* - `domain__uid__active__createdAt`: per-domain lookups by uid and active state,
|
|
73
70
|
* newest first.
|
|
71
|
+
* - `domain__phone_number__active`: per-domain lookups by phone number.
|
|
74
72
|
*/
|
|
75
73
|
export declare const MESSAGING_DEVICE_COLLECTION_INDEXES: {
|
|
76
74
|
_id: {
|
|
77
75
|
_id: number;
|
|
78
76
|
};
|
|
79
|
-
domain__phone_number: {
|
|
80
|
-
domain: number;
|
|
81
|
-
phone_number: number;
|
|
82
|
-
};
|
|
83
77
|
domain__uid__device_id: {
|
|
84
78
|
domain: number;
|
|
85
79
|
uid: number;
|
|
86
80
|
device_id: number;
|
|
87
81
|
};
|
|
88
|
-
|
|
82
|
+
domain__uid__active__createdAt: {
|
|
89
83
|
domain: number;
|
|
90
|
-
active: number;
|
|
91
|
-
provider_id: number;
|
|
92
84
|
uid: number;
|
|
85
|
+
active: number;
|
|
93
86
|
createdAt: number;
|
|
94
87
|
};
|
|
95
|
-
|
|
88
|
+
domain__phone_number__active: {
|
|
96
89
|
domain: number;
|
|
97
|
-
|
|
90
|
+
phone_number: number;
|
|
98
91
|
active: number;
|
|
99
|
-
createdAt: number;
|
|
100
92
|
};
|
|
101
93
|
};
|
|
@@ -76,35 +76,27 @@ exports.MESSAGING_DEVICE_COLLECTION_NAME = 'messaging_devices';
|
|
|
76
76
|
* Describes the indexes for `messaging_devices`. Values are Mongo key patterns
|
|
77
77
|
* that can be passed straight to `.hint()`.
|
|
78
78
|
* - `_id`: unique primary key.
|
|
79
|
-
* - `domain__phone_number`: per-domain lookups by phone number.
|
|
80
79
|
* - `domain__uid__device_id`: per-domain lookups by uid and device id.
|
|
81
|
-
* - `domain__active__provider_id__uid__createdAt`: per-domain active devices
|
|
82
|
-
* by provider and uid, newest first.
|
|
83
80
|
* - `domain__uid__active__createdAt`: per-domain lookups by uid and active state,
|
|
84
81
|
* newest first.
|
|
82
|
+
* - `domain__phone_number__active`: per-domain lookups by phone number.
|
|
85
83
|
*/
|
|
86
84
|
exports.MESSAGING_DEVICE_COLLECTION_INDEXES = {
|
|
87
85
|
_id: { _id: 1 }, // Unique Index
|
|
88
|
-
domain__phone_number: {
|
|
89
|
-
domain: 1,
|
|
90
|
-
phone_number: 1,
|
|
91
|
-
}, // per-domain lookups by phone number
|
|
92
86
|
domain__uid__device_id: {
|
|
93
87
|
domain: 1,
|
|
94
88
|
uid: 1,
|
|
95
89
|
device_id: 1,
|
|
96
90
|
}, // per-domain lookups by uid and device id
|
|
97
|
-
domain__active__provider_id__uid__createdAt: {
|
|
98
|
-
domain: 1,
|
|
99
|
-
active: 1,
|
|
100
|
-
provider_id: 1,
|
|
101
|
-
uid: 1,
|
|
102
|
-
createdAt: -1,
|
|
103
|
-
}, // per-domain active devices by provider and uid, newest first
|
|
104
91
|
domain__uid__active__createdAt: {
|
|
105
92
|
domain: 1,
|
|
106
93
|
uid: 1,
|
|
107
94
|
active: 1,
|
|
108
95
|
createdAt: -1,
|
|
109
96
|
}, // per-domain lookups by uid and active state, newest first
|
|
97
|
+
domain__phone_number__active: {
|
|
98
|
+
domain: 1,
|
|
99
|
+
phone_number: 1,
|
|
100
|
+
active: 1,
|
|
101
|
+
}, // per-domain lookups by phone number
|
|
110
102
|
};
|