hgs-twilio-class-lib 1.1.54 → 1.1.55

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.
@@ -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.55",
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",