@routebot/constants 0.3.43 → 0.3.46

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.
@@ -52,6 +52,13 @@ const QR_CODE_TYPES = {
52
52
  NOT_USED: "2",
53
53
  };
54
54
 
55
+ const VEHICLE_QR_ATTENDANCE_TYPES = {
56
+ NOT_USED: "NOT_USED",
57
+ PICK_UP_ONLY: "PICK_UP_ONLY",
58
+ DROP_OFF_ONLY: "DROP_OFF_ONLY",
59
+ BOTH: "BOTH",
60
+ };
61
+
55
62
  // Helpers
56
63
  function isSchoolPersonel(school) {
57
64
  return school?.type === SCHOOL_TYPES.PERSONEL;
@@ -177,6 +184,7 @@ module.exports = {
177
184
  SCHOOL_TYPES,
178
185
  isSchoolPersonel,
179
186
  QR_CODE_TYPES,
187
+ VEHICLE_QR_ATTENDANCE_TYPES,
180
188
  COLORS,
181
189
  CLIENT_STATUSES,
182
190
  };
@@ -222,6 +222,10 @@ module.exports = {
222
222
  const country = COUNTRIES.find((c) => c.code?.toUpperCase?.() === code?.toUpperCase?.());
223
223
  return country ? country.smsEnabled : false;
224
224
  },
225
+ isSmsEnabledForCountryPhonePrefixWithPlus: (prefix) => {
226
+ const country = COUNTRIES.find((c) => c?.phonePrefix === prefix);
227
+ return country ? country.smsEnabled : false;
228
+ },
225
229
  getAllCountryCodesLowerCase: () => {
226
230
  return COUNTRIES.map((country) => country.code?.toLowerCase?.());
227
231
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@routebot/constants",
3
- "version": "0.3.43",
3
+ "version": "0.3.46",
4
4
  "description": "Shared constants for RouteBot FE/BE",
5
5
  "main": "index.js",
6
6
  "files": [