@homeworksenergy/utility-service 1.0.22 → 1.0.23

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 (2) hide show
  1. package/index.js +6 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -140,6 +140,11 @@ const getEventTypeForDepartment = (department, state = 'MA') => {
140
140
  return `${stateId}${departmentId}%`;
141
141
  };
142
142
 
143
+ const isHWEUser = (user)=>{
144
+ const { company } = user;
145
+ return company?.toLowerCase()?.includes('hwe') || false;
146
+ }
147
+
143
148
  module.exports = {
144
149
  decodeEventType,
145
150
  getHweCode,
@@ -152,4 +157,5 @@ module.exports = {
152
157
  addStartEndTimesToEvents,
153
158
  getStartEndTimesForEvent,
154
159
  getDatabaseInsertSlots,
160
+ isHWEUser
155
161
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@homeworksenergy/utility-service",
3
- "version": "1.0.22",
3
+ "version": "1.0.23",
4
4
  "description": "Event type Transaction",
5
5
  "main": "index.js",
6
6
  "scripts": {