hgs-twilio-class-lib 1.1.63 → 1.1.64
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/lib/controller/twilio/HoopPartialDaysController.js +3 -1
- package/lib/controller/twilio/filterImpl/HoopPartialDaysFilter.d.ts +4 -2
- package/lib/controller/twilio/filterImpl/HoopPartialDaysFilter.js +4 -1
- package/lib/models/Hoop.model.d.ts +3 -0
- package/lib/models/Hoop.model.js +5 -1
- package/package.json +1 -1
|
@@ -107,7 +107,9 @@ class HoopPartialDaysController {
|
|
|
107
107
|
// Access object store
|
|
108
108
|
let table = dbTransaction.objectStore(DatabaseConfig_1.databaseConfig.tables.hoopPartialDays);
|
|
109
109
|
// Retrieve all data from the object store
|
|
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 { PartialDaysFilterFields } from "../../../models/Hoop.model";
|
|
3
2
|
import { Filter } from "../../../common/abstract/Filter";
|
|
4
3
|
export declare class HoopPartialDaysFilterService extends Filter {
|
|
5
4
|
private data;
|
|
6
|
-
allowedFields:
|
|
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 HoopPartialDaysFilterService 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 HoopPartialDaysFilterService 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
|
}
|
package/lib/models/Hoop.model.js
CHANGED
|
@@ -7,8 +7,12 @@
|
|
|
7
7
|
// updatedAt: Date | undefined;
|
|
8
8
|
// };
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.HolidaysFilterAllowedFields = void 0;
|
|
10
|
+
exports.PartialDaysFilterAllowedFields = exports.HolidaysFilterAllowedFields = void 0;
|
|
11
11
|
var HolidaysFilterAllowedFields;
|
|
12
12
|
(function (HolidaysFilterAllowedFields) {
|
|
13
13
|
HolidaysFilterAllowedFields[HolidaysFilterAllowedFields["profileId"] = 0] = "profileId";
|
|
14
14
|
})(HolidaysFilterAllowedFields || (exports.HolidaysFilterAllowedFields = HolidaysFilterAllowedFields = {}));
|
|
15
|
+
var PartialDaysFilterAllowedFields;
|
|
16
|
+
(function (PartialDaysFilterAllowedFields) {
|
|
17
|
+
PartialDaysFilterAllowedFields[PartialDaysFilterAllowedFields["profileId"] = 0] = "profileId";
|
|
18
|
+
})(PartialDaysFilterAllowedFields || (exports.PartialDaysFilterAllowedFields = PartialDaysFilterAllowedFields = {}));
|