hgs-twilio-class-lib 1.1.62 → 1.1.63

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.
package/README.md CHANGED
@@ -1,5 +1,5 @@
1
- # Flex V2 Backend Code
2
-
3
- Package to manage Flex V2 Backend.
4
-
5
- Run "npm install hgs-twilio-class-lib --save"
1
+ # Flex V2 Backend Code
2
+
3
+ Package to manage Flex V2 Backend.
4
+
5
+ Run "npm install hgs-twilio-class-lib --save"
@@ -107,7 +107,9 @@ class HoopHolidaysController {
107
107
  const dbTransaction = database.transaction(DatabaseConfig_1.databaseConfig.tables.hoopHolidays, "readwrite");
108
108
  // Access object store
109
109
  let table = dbTransaction.objectStore(DatabaseConfig_1.databaseConfig.tables.hoopHolidays);
110
- const allowedFields = [];
110
+ const allowedFields = [
111
+ "profileId"
112
+ ];
111
113
  if (query.getFilterContent) {
112
114
  query.allowedFields = allowedFields;
113
115
  }
@@ -1,9 +1,11 @@
1
1
  import { MultiFieldFilter, FilterDataObject } from "../../../common/interface/IFilter";
2
- import { HolidaysFilterFields } from "../../../models/Hoop.model";
3
2
  import { Filter } from "../../../common/abstract/Filter";
4
3
  export declare class HoopHolidaysFilterService extends Filter {
5
4
  private data;
6
- allowedFields: HolidaysFilterFields;
5
+ allowedFields: {
6
+ date: string;
7
+ profileId: string;
8
+ };
7
9
  constructor(data: any[]);
8
10
  applyFilter(data: any[]): any[];
9
11
  filterApply(filterParams: MultiFieldFilter): any[];
@@ -9,7 +9,8 @@ class HoopHolidaysFilterService extends Filter_1.Filter {
9
9
  super({ fieldName: "", value: null, filterType: FilterTypes_1.FilterTypes.Equality, caseSensitive: false, ignoreNull: true });
10
10
  // Define allowed fields for AuditLog filters
11
11
  this.allowedFields = {
12
- date: "dateRange"
12
+ date: "dateRange",
13
+ profileId: "string"
13
14
  };
14
15
  this.data = data;
15
16
  }
@@ -34,6 +35,8 @@ class HoopHolidaysFilterService extends Filter_1.Filter {
34
35
  typeof filter.value.endDate === "string" &&
35
36
  !isNaN(Date.parse(filter.value.startDate)) &&
36
37
  !isNaN(Date.parse(filter.value.endDate)));
38
+ case "string":
39
+ return typeof filter.value === "string" || typeof filter.value === "object";
37
40
  default:
38
41
  return false;
39
42
  }
@@ -1,6 +1,9 @@
1
1
  export type HolidaysFilterFields = {
2
2
  date: "dateRange";
3
3
  };
4
+ export declare enum HolidaysFilterAllowedFields {
5
+ profileId = 0
6
+ }
4
7
  export type PartialDaysFilterFields = {
5
8
  date: "dateRange";
6
9
  };
@@ -7,3 +7,8 @@
7
7
  // updatedAt: Date | undefined;
8
8
  // };
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.HolidaysFilterAllowedFields = void 0;
11
+ var HolidaysFilterAllowedFields;
12
+ (function (HolidaysFilterAllowedFields) {
13
+ HolidaysFilterAllowedFields[HolidaysFilterAllowedFields["profileId"] = 0] = "profileId";
14
+ })(HolidaysFilterAllowedFields || (exports.HolidaysFilterAllowedFields = HolidaysFilterAllowedFields = {}));
package/package.json CHANGED
@@ -1,56 +1,56 @@
1
- {
2
- "name": "hgs-twilio-class-lib",
3
- "version": "1.1.62",
4
- "description": "Flex 2.0 backend to connect with any database ",
5
- "main": "./lib/index.js",
6
- "types": "./types/index.d.ts",
7
- "type": "commonjs",
8
- "files": [
9
- "lib",
10
- "types",
11
- "package.json"
12
- ],
13
- "publishConfig": {
14
- "directory": "lib"
15
- },
16
- "scripts": {
17
- "clean": "rimraf lib types",
18
- "build": "npm run clean && tsc",
19
- "start": "node lib/server.js",
20
- "dev": "nodemon server.ts",
21
- "test": "echo \"Error: no test specified\" && exit 1",
22
- "check:unused": "ts-prune"
23
- },
24
- "author": "HGS",
25
- "license": "",
26
- "devDependencies": {
27
- "@rollup/plugin-commonjs": "^28.0.3",
28
- "@rollup/plugin-node-resolve": "^16.0.1",
29
- "@rollup/plugin-typescript": "^12.1.2",
30
- "@types/express": "4.17.21",
31
- "@types/node": "20.11.17",
32
- "@types/uuid": "9.0.8",
33
- "esbuild": "^0.25.4",
34
- "express": "^4.18.2",
35
- "fast-glob": "^3.3.3",
36
- "nodemon": "^3.1.0",
37
- "rimraf": "^6.0.1",
38
- "rollup": "^2.79.2",
39
- "rollup-plugin-terser": "^7.0.2",
40
- "rollup-plugin-visualizer": "^5.14.0",
41
- "ts-loader": "9.5.1",
42
- "ts-node": "^10.9.2",
43
- "typescript": "5.3.3"
44
- },
45
- "dependencies": {
46
- "@aws-sdk/client-connect": "^3.723.0",
47
- "cors": "^2.8.5",
48
- "moment": "2.30.1",
49
- "moment-timezone": "^0.5.46",
50
- "twilio": "4.22.0",
51
- "uuid": "^9.0.1"
52
- },
53
- "engines": {
54
- "node": ">=18"
55
- }
56
- }
1
+ {
2
+ "name": "hgs-twilio-class-lib",
3
+ "version": "1.1.63",
4
+ "description": "Flex 2.0 backend to connect with any database ",
5
+ "main": "./lib/index.js",
6
+ "types": "./types/index.d.ts",
7
+ "type": "commonjs",
8
+ "files": [
9
+ "lib",
10
+ "types",
11
+ "package.json"
12
+ ],
13
+ "publishConfig": {
14
+ "directory": "lib"
15
+ },
16
+ "scripts": {
17
+ "clean": "rimraf lib types",
18
+ "build": "npm run clean && tsc",
19
+ "start": "node lib/server.js",
20
+ "dev": "nodemon server.ts",
21
+ "test": "echo \"Error: no test specified\" && exit 1",
22
+ "check:unused": "ts-prune"
23
+ },
24
+ "author": "HGS",
25
+ "license": "",
26
+ "devDependencies": {
27
+ "@rollup/plugin-commonjs": "^28.0.3",
28
+ "@rollup/plugin-node-resolve": "^16.0.1",
29
+ "@rollup/plugin-typescript": "^12.1.2",
30
+ "@types/express": "4.17.21",
31
+ "@types/node": "20.11.17",
32
+ "@types/uuid": "9.0.8",
33
+ "esbuild": "^0.25.4",
34
+ "express": "^4.18.2",
35
+ "fast-glob": "^3.3.3",
36
+ "nodemon": "^3.1.0",
37
+ "rimraf": "^6.0.1",
38
+ "rollup": "^2.79.2",
39
+ "rollup-plugin-terser": "^7.0.2",
40
+ "rollup-plugin-visualizer": "^5.14.0",
41
+ "ts-loader": "9.5.1",
42
+ "ts-node": "^10.9.2",
43
+ "typescript": "5.3.3"
44
+ },
45
+ "dependencies": {
46
+ "@aws-sdk/client-connect": "^3.723.0",
47
+ "cors": "^2.8.5",
48
+ "moment": "2.30.1",
49
+ "moment-timezone": "^0.5.46",
50
+ "twilio": "4.22.0",
51
+ "uuid": "^9.0.1"
52
+ },
53
+ "engines": {
54
+ "node": ">=18"
55
+ }
56
+ }