hgs-twilio-class-lib 1.1.54 → 1.1.56

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.
@@ -62,6 +62,7 @@ class HoopBusinessHoursController {
62
62
  itemsPerPage: 200,
63
63
  pageNo: 1,
64
64
  });
65
+ console.log("-------------------------", profileInfo1.result.items, query.profileName);
65
66
  const profilesList = profileInfo1.result.items;
66
67
  const isProfileAvailable = profilesList.find((profile) => profile.profileName === query.profileName);
67
68
  const profileId = isProfileAvailable.profileId;
@@ -116,7 +117,7 @@ class HoopBusinessHoursController {
116
117
  const now = (0, moment_timezone_1.default)().tz(timezone); // Current time in specified timezone
117
118
  const today = (0, moment_timezone_1.default)().tz(timezone).format("YYYY-MM-DD");
118
119
  const endDateTime = endDatePeriod
119
- ? moment_timezone_1.default.tz(endDatePeriod, "YYYY-MM-DD HH:mm", timezone)
120
+ ? moment_timezone_1.default.tz(endDatePeriod, "YYYY-MM-DD HH:mm", timezone).endOf('day')
120
121
  : null;
121
122
  // Handle various branch statuses before endDatePeriod
122
123
  if (endDateTime &&
@@ -108,13 +108,6 @@ class CxGpmUIConfigModel extends BaseModel_1.BaseModel {
108
108
  return errors;
109
109
  },
110
110
  },
111
- key: {
112
- validator: (value) => {
113
- return typeof value === "string" && value.trim() !== ""
114
- ? []
115
- : ["Key must be a non-empty string."];
116
- },
117
- },
118
111
  value: {
119
112
  validator: (value) => {
120
113
  const errors = [];
@@ -97,12 +97,12 @@ class CxConfiguratorGPMAssetModel extends BaseModel_1.BaseModel {
97
97
  type: {
98
98
  validator: (value) => {
99
99
  const errors = [];
100
- const validAudioTypes = [".mp3", ".wav"];
100
+ const validFileTypes = [".mp3", ".wav", ".png", ".jpeg"];
101
101
  if (typeof value !== "string" || value.trim() === "") {
102
102
  errors.push("Type must be a non-empty string.");
103
103
  }
104
- else if (!validAudioTypes.some(ext => value.toLowerCase().endsWith(ext))) {
105
- errors.push(`Type must be a valid audio file type (${validAudioTypes.join(", ")}).`);
104
+ else if (!validFileTypes.some(ext => value.toLowerCase().endsWith(ext))) {
105
+ errors.push(`Type must be a valid file type (${validFileTypes.join(", ")}).`);
106
106
  }
107
107
  return errors;
108
108
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hgs-twilio-class-lib",
3
- "version": "1.1.54",
3
+ "version": "1.1.56",
4
4
  "description": "Flex 2.0 backend to connect with any database ",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./types/index.d.ts",